* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Quicksand', sans-serif;
    background: linear-gradient(135deg, #e8f4ff 0%, #e0f0ff 25%, #e8f4ff 50%, #d9ecff 75%, #f0f8ff 100%);
    color: #4a4a4a;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    padding: 15px;
}

.floating-elements {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.balloon {
    position: absolute;
    font-size: 40px;
    opacity: 0.6;
    animation: float-up 15s infinite ease-in-out;
}

.balloon:nth-child(1) { left: 10%; animation-delay: 0s; }
.balloon:nth-child(2) { left: 25%; animation-delay: 3s; font-size: 50px; }
.balloon:nth-child(3) { left: 45%; animation-delay: 6s; }
.balloon:nth-child(4) { left: 65%; animation-delay: 2s; font-size: 45px; }
.balloon:nth-child(5) { left: 80%; animation-delay: 5s; }
.balloon:nth-child(6) { left: 15%; animation-delay: 8s; font-size: 35px; }
.balloon:nth-child(7) { left: 55%; animation-delay: 4s; }
.balloon:nth-child(8) { left: 90%; animation-delay: 7s; font-size: 42px; }
.balloon:nth-child(9) { left: 35%; animation-delay: 9s; }

@keyframes float-up {
    0% { transform: translateY(110vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { transform: translateY(-120px) rotate(20deg); opacity: 0; }
}

.decorative-frame {
    position: fixed;
    top: 10px; left: 10px; right: 10px; bottom: 10px;
    border: 8px solid transparent;
    background: 
        linear-gradient(white, white) padding-box,
        linear-gradient(135deg, #6bb5ff 0%, #4a9eff 25%, #80c1ff 50%, #5aa8ff 75%, #6bb5ff 100%) border-box;
    pointer-events: none;
    z-index: 1;
    border-radius: 30px;
    box-shadow: 
        inset 0 0 40px rgba(90, 168, 255, 0.3),
        0 0 50px rgba(90, 168, 255, 0.4);
}

.corner-decoration {
    position: fixed;
    width: 100px; height: 100px;
    pointer-events: none;
    z-index: 2;
    font-size: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 4px 10px rgba(90, 168, 255, 0.4));
}

.corner-decoration.top-left { top: 25px; left: 25px; }
.corner-decoration.top-right { top: 25px; right: 25px; }
.corner-decoration.bottom-left { bottom: 25px; left: 25px; }
.corner-decoration.bottom-right { bottom: 25px; right: 25px; }

.music-control {
    position: fixed; top: 35px; right: 35px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(240, 248, 255, 0.98) 100%);
    border: 3px solid rgba(90, 168, 255, 0.6);
    border-radius: 50%;
    width: 65px; height: 65px;
    display: flex; align-items: center; justify-content: center;
    font-size: 30px; cursor: pointer; z-index: 10001;
    box-shadow: 0 8px 25px rgba(90, 168, 255, 0.5), 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    pointer-events: auto;
}

.music-control:hover {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 12px 35px rgba(90, 168, 255, 0.7), 0 4px 15px rgba(0, 0, 0, 0.2);
}

.music-control.playing {
    animation: pulse-music 2s ease-in-out infinite;
    border-color: rgba(90, 168, 255, 0.9);
}

@keyframes pulse-music {
    0%, 100% { transform: scale(1); box-shadow: 0 8px 25px rgba(90, 168, 255, 0.5); }
    50% { transform: scale(1.12); box-shadow: 0 12px 35px rgba(90, 168, 255, 0.7); }
}

.main-container {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.hero-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 248, 255, 0.95) 100%);
    padding: 80px 40px;
    border-radius: 40px;
    text-align: center;
    margin-bottom: 40px;
    box-shadow: 0 20px 60px rgba(90, 168, 255, 0.3);
    border: 3px solid rgba(90, 168, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(128, 193, 255, 0.2) 0%, transparent 70%);
    animation: rotate-glow 20s linear infinite;
}

@keyframes rotate-glow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.main-icon {
    width: 200px;
    height: 200px;
    margin: 0 auto 30px;
    animation: bounce-icon 3s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(90, 168, 255, 0.4));
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid rgba(90, 168, 255, 0.5);
    box-shadow: 0 15px 40px rgba(90, 168, 255, 0.4);
}

.main-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes bounce-icon {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

.pre-title {
    font-family: 'Quicksand', sans-serif;
    font-size: 20px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #4a9eff;
    margin-bottom: 20px;
    font-weight: 600;
    opacity: 0;
    animation: fadeInUp 1s ease 0.3s forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.main-title {
    font-family: 'Pacifico', cursive;
    font-size: 70px;
    color: #3a8cff;
    margin: 20px 0;
    opacity: 0;
    animation: fadeInScale 1.2s ease 0.6s forwards;
    text-shadow: 2px 2px 4px rgba(90, 168, 255, 0.3);
    line-height: 1.3;
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.baby-name {
    font-family: 'Caveat', cursive;
    font-size: 80px;
    color: #5aa8ff;
    margin: 30px 0;
    opacity: 0;
    animation: fadeInUp 1s ease 0.9s forwards;
    text-shadow: 3px 3px 6px rgba(90, 168, 255, 0.3);
}

.subtitle {
    font-size: 24px;
    color: #666;
    margin-top: 20px;
    opacity: 0;
    animation: fadeInUp 1s ease 1.2s forwards;
    font-weight: 500;
}

.wave-divider {
    width: 150px;
    height: 30px;
    margin: 30px auto;
    opacity: 0;
    animation: fadeIn 1s ease 1.5s forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.content-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 253, 255, 0.98) 100%);
    margin: 30px 0;
    padding: 60px 40px;
    border-radius: 30px;
    box-shadow: 0 15px 40px rgba(90, 168, 255, 0.25);
    border: 2px solid rgba(90, 168, 255, 0.2);
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.content-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.card-title {
    font-family: 'Pacifico', cursive;
    font-size: 42px;
    text-align: center;
    color: #3a8cff;
    margin-bottom: 40px;
    position: relative;
    text-shadow: 1px 1px 3px rgba(90, 168, 255, 0.3);
}

.card-title::after {
    content: '~';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 30px;
    color: #6bb5ff;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.info-box {
    background: linear-gradient(135deg, #f9fcff 0%, #ffffff 100%);
    padding: 35px;
    border-radius: 25px;
    text-align: center;
    border: 2px solid rgba(90, 168, 255, 0.2);
    transition: all 0.4s ease;
    box-shadow: 0 5px 20px rgba(90, 168, 255, 0.15);
}

.info-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(90, 168, 255, 0.3);
    border-color: rgba(90, 168, 255, 0.4);
}

.info-icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.info-label {
    font-size: 18px;
    color: #4a9eff;
    margin-bottom: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.info-text {
    font-size: 20px;
    color: #555;
    line-height: 1.6;
    font-weight: 500;
}

.info-text.large {
    font-size: 28px;
    color: #3a8cff;
    font-weight: 700;
}

.message-box {
    background: linear-gradient(135deg, #f0f8ff 0%, #e8f4ff 100%);
    padding: 50px;
    border-radius: 25px;
    text-align: center;
    margin: 40px 0;
    border: 2px dashed rgba(90, 168, 255, 0.4);
}

.message-text {
    font-size: 22px;
    line-height: 1.8;
    color: #666;
    font-style: italic;
    max-width: 700px;
    margin: 0 auto;
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

.btn {
    padding: 18px 45px;
    border: 3px solid #5aa8ff;
    background: transparent;
    color: #3a8cff;
    font-family: 'Quicksand', sans-serif;
    font-size: 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.4s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(90, 168, 255, 0.3);
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    background: #5aa8ff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
    z-index: -1;
}

.btn:hover::before {
    width: 400%; height: 400%;
}

.btn:hover {
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(90, 168, 255, 0.5);
}

.btn-primary {
    background: linear-gradient(135deg, #5aa8ff 0%, #3a8cff 100%);
    color: white;
    border-color: #5aa8ff;
}

.btn-primary::before {
    background: linear-gradient(135deg, #6bb5ff 0%, #4a9eff 100%);
}

.btn.confirmed {
    background: linear-gradient(135deg, #e0e0e0 0%, #cccccc 100%);
    border-color: #999;
    color: #666;
    cursor: not-allowed;
}

.btn.confirmed:hover {
    transform: none;
}

.footer-message {
    text-align: center;
    margin-top: 50px;
    padding: 40px;
}

.footer-message .hearts {
    font-size: 40px;
    margin-bottom: 20px;
}

.footer-image {
    width: 180px;
    height: 180px;
    margin: 30px auto;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid rgba(90, 168, 255, 0.5);
    box-shadow: 0 15px 40px rgba(90, 168, 255, 0.4);
}

.footer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer-message .text {
    font-family: 'Caveat', cursive;
    font-size: 36px;
    color: #3a8cff;
}

#youtubePlayer { display: none; }

@media (max-width: 768px) {
    body { padding: 10px; }
    
    .decorative-frame { 
        top: 8px; left: 8px; right: 8px; bottom: 8px; 
        border-radius: 20px;
    }
    
    .corner-decoration { 
        width: 60px; height: 60px; 
        font-size: 40px; 
    }
    .corner-decoration.top-left { top: 20px; left: 20px; }
    .corner-decoration.top-right { top: 20px; right: 20px; }
    .corner-decoration.bottom-left { bottom: 20px; left: 20px; }
    .corner-decoration.bottom-right { bottom: 20px; right: 20px; }
    
    .music-control { 
        top: 25px; right: 25px; 
        width: 55px; height: 55px; 
        font-size: 26px; 
    }
    
    .hero-section { 
        padding: 60px 25px; 
        border-radius: 25px; 
    }
    
    .main-icon { 
        width: 150px; 
        height: 150px; 
    }
    .main-title { font-size: 48px; }
    .baby-name { font-size: 56px; }
    .subtitle { font-size: 20px; }
    .card-title { font-size: 34px; }
    
    .content-card { 
        padding: 40px 25px; 
        border-radius: 20px; 
    }
    
    .info-grid { 
        grid-template-columns: 1fr; 
        gap: 20px; 
    }
    
    .message-box { 
        padding: 35px 25px; 
        border-radius: 20px; 
    }
    
    .message-text { font-size: 18px; }
    
    .action-buttons { 
        flex-direction: column; 
        align-items: stretch; 
    }
    
    .btn { 
        width: 100%; 
        justify-content: center; 
    }
    
    .footer-image {
        width: 140px;
        height: 140px;
    }
    
    .balloon { font-size: 30px; }
}