/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --green-900: #1b5e20;
    --green-700: #2e7d32;
    --green-600: #388e3c;
    --green-500: #4caf50;
    --pink-600: #e91e63;
    --pink-800: #ad1457;
    --text-dark: rgba(15, 25, 20, 0.92);
    --glass: rgba(255, 255, 255, 0.38);
    --glass-border: rgba(255, 255, 255, 0.58);
    --shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    background:
        radial-gradient(1200px 800px at 10% 10%, rgba(168, 230, 207, 0.88) 0%, rgba(168, 230, 207, 0) 58%),
        radial-gradient(1000px 700px at 90% 20%, rgba(248, 187, 217, 0.72) 0%, rgba(248, 187, 217, 0) 62%),
        linear-gradient(135deg, rgba(220, 237, 200, 0.72) 0%, rgba(248, 187, 217, 0.55) 100%),
        url('background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-dark);
    min-height: 100vh;
    position: relative;
}

/* Add the leafy background overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(900px 600px at 50% 0%, rgba(255, 255, 255, 0.30) 0%, rgba(255, 255, 255, 0) 62%),
        radial-gradient(1000px 700px at 50% 120%, rgba(0, 0, 0, 0.24) 0%, rgba(0, 0, 0, 0) 58%);
    z-index: 0;
    pointer-events: none;
}

/* Subtle vignette + texture */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(1200px 900px at 50% 40%, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.18) 75%, rgba(0, 0, 0, 0.28) 100%),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.03) 1px, rgba(0, 0, 0, 0.02) 2px);
    mix-blend-mode: soft-light;
    opacity: 0.85;
}

/* Floating Elements for Parallax */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
}

.flower, .leaf, .butterfly, .photo-container {
    position: absolute;
    font-size: 2rem;
    opacity: 0.7;
    will-change: transform;
    transform: translate(-50%, -50%)
        translate3d(var(--dx, 0px), var(--dy, 0px), 0)
        rotate(var(--rot, 0deg))
        scale(var(--scale, 1));
}

/* Photo containers for parallax */
.photo-container {
    width: 150px;
    height: 150px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    border: 3px solid rgba(255,255,255,0.8);
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.65);
    padding: 6px;
}

.parallax-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 17px;
}

.photo-1 { top: 20%; left: 10%; animation-delay: -1s; }
.photo-2 { top: 60%; left: 75%; animation-delay: -3s; }
.photo-3 { top: 40%; left: 45%; animation-delay: -2s; }

.flower-1 { top: 15%; left: 15%; animation-delay: 0s; }
.flower-2 { top: 35%; left: 70%; animation-delay: -1s; }
.flower-3 { top: 65%; left: 25%; animation-delay: -2s; }
.flower-4 { top: 85%; left: 80%; animation-delay: -3s; }
.flower-5 { top: 50%; left: 50%; animation-delay: -4s; }

.leaf-1 { top: 25%; left: 5%; animation-delay: -0.5s; }
.leaf-2 { top: 70%; left: 90%; animation-delay: -2.5s; }
.leaf-3 { top: 45%; left: 35%; animation-delay: -1.5s; }

.butterfly-1 { top: 20%; left: 60%; animation-delay: -1s; animation-duration: 8s; }
.butterfly-2 { top: 75%; left: 40%; animation-delay: -3s; animation-duration: 8s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(5deg); }
    66% { transform: translateY(-10px) rotate(-3deg); }
}

/* Sections */
section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    z-index: 2;
    background: transparent;
    isolation: isolate;
}

.content {
    text-align: center;
    max-width: 90%;
    width: 100%;
    z-index: 3;
    position: relative;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 26px;
    padding: 22px 18px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

/* Hero Section */
.hero {
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(129, 199, 132, 0.45) 0%, rgba(165, 214, 167, 0.15) 100%);
    z-index: 1;
}

.hero h1 {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    color: var(--green-900);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(255,255,255,0.3);
}

.hero .subtitle {
    font-size: 1.2rem;
    color: var(--green-600);
    margin-bottom: 3rem;
    font-weight: 300;
}

.scroll-indicator {
    color: var(--green-500);
    font-weight: 500;
}

.arrow {
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    margin-top: 0.5rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.background-garden {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    z-index: 1;
}

.grass {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, #4caf50, #66bb6a);
    border-radius: 50px 50px 0 0;
}

.flowers-bg {
    position: absolute;
    bottom: 60px;
    left: 10%;
    right: 0;
    height: 90px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20'%3E%3Ctext y='15' font-size='12'%3E🌸🌼🌺🌷🌻%3C/text%3E%3C/svg%3E") repeat-x;
    opacity: 0.6;
}

/* Section 2 */
.section-2 {
    position: relative;
}

.section-2::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(200, 230, 201, 0.35) 0%, rgba(220, 237, 200, 0.12) 100%);
    z-index: 1;
}

.section-2 h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    color: var(--green-900);
    margin-bottom: 2rem;
}

.text-container p {
    font-size: 1.1rem;
    color: var(--green-700);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    background: rgba(255,255,255,0.32);
    padding: 1rem;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(6px);
}

/* Section 3 */
.section-3 {
    position: relative;
}

.section-3::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(220, 237, 200, 0.22) 0%, rgba(241, 248, 233, 0.10) 100%);
    z-index: 1;
}

.section-3 h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    color: var(--green-900);
    margin-bottom: 2rem;
}

.growing-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 2rem 0;
}

.seed, .bloom {
    font-size: 3rem;
    margin: 0.5rem 0;
}

.arrow-down {
    font-size: 2rem;
    color: var(--green-500);
    margin: 0.5rem 0;
}

.section-3 p {
    font-size: 1.1rem;
    color: var(--green-700);
    background: rgba(255,255,255,0.32);
    padding: 1rem;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(6px);
}

/* Question Section */
.question-section {
    position: relative;
}

.question-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(248, 187, 217, 0.32) 0%, rgba(244, 143, 177, 0.12) 100%);
    z-index: 1;
}

.big-question {
    font-family: 'Dancing Script', cursive;
    font-size: 2.8rem;
    color: var(--pink-800);
    margin-bottom: 3rem;
    text-shadow: 2px 2px 4px rgba(255,255,255,0.3);
}

.buttons-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.btn {
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
    font-family: 'Poppins', sans-serif;
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
}

.btn::before {
    content: '';
    position: absolute;
    inset: -40% -40% auto -40%;
    height: 140%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.45), rgba(255,255,255,0) 60%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.btn:active {
    transform: translateY(1px) scale(0.99);
}

.btn:hover::before {
    opacity: 1;
}

.btn-yes {
    background: linear-gradient(135deg, var(--pink-600) 0%, var(--pink-800) 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(233, 30, 99, 0.3);
}

.btn-yes:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(233, 30, 99, 0.4);
}

.btn-sure {
    background: linear-gradient(135deg, var(--green-500) 0%, var(--green-700) 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.3);
}

.btn-sure:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(76, 175, 80, 0.4);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
}

.modal-content {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    margin: 20% auto;
    padding: 2rem;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-content h3 {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #e91e63;
}

.modal-content p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #333;
}

.celebration {
    font-size: 2rem;
    margin: 1rem 0;
    animation: celebration 1s ease infinite;
}

@keyframes celebration {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.small-text {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

.fade-in.delay-1 { animation-delay: 0.3s; }
.fade-in.delay-2 { animation-delay: 0.6s; }
.fade-in.delay-3 { animation-delay: 0.9s; }
.fade-in.delay-4 { animation-delay: 1.2s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInLeft 1s ease forwards;
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    animation: slideInRight 1s ease forwards;
}

.slide-in-up {
    opacity: 0;
    transform: translateY(50px);
    animation: slideInUp 1s ease forwards;
}

.slide-in-left.delay-1 { animation-delay: 0.3s; }
.slide-in-right.delay-1 { animation-delay: 0.3s; }
.slide-in-left.delay-2 { animation-delay: 0.6s; }
.slide-in-right.delay-2 { animation-delay: 0.6s; }
.slide-in-left.delay-3 { animation-delay: 0.9s; }
.slide-in-right.delay-3 { animation-delay: 0.9s; }
.slide-in-up.delay-1 { animation-delay: 0.3s; }
.slide-in-up.delay-2 { animation-delay: 0.6s; }
.slide-in-up.delay-3 { animation-delay: 0.9s; }
.slide-in-up.delay-4 { animation-delay: 1.2s; }

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .subtitle {
        font-size: 1rem;
    }
    
    .section-2 h2, .section-3 h2 {
        font-size: 2rem;
    }
    
    .big-question {
        font-size: 2.2rem;
    }
    
    .text-container p, .section-3 p {
        font-size: 1rem;
        padding: 0.8rem;
    }
    
    .btn {
        min-width: 180px;
        padding: 0.8rem 2rem;
        font-size: 1.1rem;
    }
    
    .flower, .leaf, .butterfly {
        font-size: 1.5rem;
    }
    
    .photo-container {
        width: 120px;
        height: 120px;
    }
    
    .modal-content {
        margin: 30% auto;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .big-question {
        font-size: 1.8rem;
    }
    
    .section-2 h2, .section-3 h2 {
        font-size: 1.7rem;
    }
    
    .content {
        max-width: 95%;
    }
    
    .btn {
        min-width: 160px;
        font-size: 1rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 40% auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* Autoplay-friendly sound banner (mobile browsers often block audio until user interaction) */
.sound-banner {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(12px);
}

.sound-banner__text {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.98rem;
}

.sound-banner__btn {
    border: none;
    cursor: pointer;
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--green-500) 0%, var(--green-700) 100%);
    box-shadow: 0 10px 22px rgba(46, 125, 50, 0.25);
}

.sound-banner__btn:active {
    transform: translateY(1px);
}