/* Override body background for index page */
body {
    background: var(--sky-light);
}

/* Override paragraph size for index page */
p {
    font-size: 1.1rem;
}

/* Override heading sizes for index page */
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.6rem); }

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    padding-top: 100px;
    padding-bottom: 180px;
    background: linear-gradient(180deg, var(--sky-light) 0%, var(--sky-mid) 50%, var(--sky-deep) 100%);
    position: relative;
    overflow: hidden;
}

/* Rainbow */
.rainbow-container {
    position: absolute;
    bottom: -50px;
    left: -10%;
    width: 1800px;
    height: 1800px;
    z-index: 1;
    pointer-events: none;
}

.rainbow-svg {
    width: 100%;
    height: 100%;
    opacity: 0.55;
}

/* Clouds */
.cloud {
    position: absolute;
    background: white;
    border-radius: 100px;
    opacity: 0.9;
    animation: float 20s ease-in-out infinite;
    z-index: 2;
}

.cloud::before, .cloud::after {
    content: '';
    position: absolute;
    background: white;
    border-radius: 50%;
}

.cloud-1 { width: 130px; height: 42px; top: 14%; left: 8%; animation-delay: 0s; }
.cloud-1::before { width: 50px; height: 50px; top: -25px; left: 22px; }
.cloud-1::after { width: 38px; height: 38px; top: -16px; left: 60px; }

.cloud-2 { width: 90px; height: 30px; top: 10%; left: 32%; animation-delay: -4s; opacity: 0.8; }
.cloud-2::before { width: 36px; height: 36px; top: -18px; left: 14px; }
.cloud-2::after { width: 26px; height: 26px; top: -10px; left: 42px; }

.cloud-3 { width: 110px; height: 36px; top: 16%; left: 55%; animation-delay: -8s; }
.cloud-3::before { width: 44px; height: 44px; top: -22px; left: 18px; }
.cloud-3::after { width: 32px; height: 32px; top: -14px; left: 55px; }

.cloud-4 { width: 100px; height: 34px; top: 11%; right: 10%; animation-delay: -12s; }
.cloud-4::before { width: 40px; height: 40px; top: -20px; left: 15px; }
.cloud-4::after { width: 30px; height: 30px; top: -12px; left: 48px; }

.cloud-5 { width: 75px; height: 26px; top: 32%; left: 4%; animation-delay: -2s; opacity: 0.75; }
.cloud-5::before { width: 30px; height: 30px; top: -15px; left: 10px; }
.cloud-5::after { width: 22px; height: 22px; top: -9px; left: 35px; }

.cloud-6 { width: 85px; height: 28px; top: 28%; left: 45%; animation-delay: -6s; opacity: 0.7; }
.cloud-6::before { width: 34px; height: 34px; top: -17px; left: 12px; }
.cloud-6::after { width: 25px; height: 25px; top: -10px; left: 40px; }

.cloud-7 { width: 95px; height: 32px; top: 35%; right: 12%; animation-delay: -10s; opacity: 0.8; }
.cloud-7::before { width: 38px; height: 38px; top: -19px; left: 14px; }
.cloud-7::after { width: 28px; height: 28px; top: -11px; left: 46px; }

.cloud-8 { width: 70px; height: 24px; top: 45%; left: 62%; animation-delay: -14s; opacity: 0.65; }
.cloud-8::before { width: 28px; height: 28px; top: -14px; left: 10px; }
.cloud-8::after { width: 20px; height: 20px; top: -8px; left: 32px; }

@keyframes float {
    0%, 100% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(15px) translateY(-8px); }
    50% { transform: translateX(30px) translateY(4px); }
    75% { transform: translateX(15px) translateY(-4px); }
}

/* Hero Content */
.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    min-height: 60vh;
    position: relative;
    z-index: 3;
}

.hero-text h1 {
    color: var(--text-dark);
    margin-bottom: 20px;
    text-shadow: 2px 2px 0 rgba(255,255,255,0.8);
}

.hero-text p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    max-width: 480px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent-red);
    color: white;
    box-shadow: 0 4px 15px rgba(233, 58, 67, 0.4);
}

.btn-primary:hover {
    background: #d32f2f;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(233, 58, 67, 0.5);
}

.btn-secondary {
    background: white;
    color: var(--accent-blue);
    border: 3px solid var(--accent-blue);
}

.btn-secondary:hover {
    background: var(--accent-yellow);
    border-color: var(--accent-yellow);
    color: var(--text-dark);
    transform: translateY(-3px);
}

/* Hero Logo */
.hero-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo-inner {
    position: relative;
    display: inline-block;
    animation: gentle-float 6s ease-in-out infinite;
}

@keyframes gentle-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.hero-logo img {
    display: block;
    width: 100%;
    max-width: 400px;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.15));
}

/* Balloons */
.balloon {
    position: absolute;
    filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.15));
}

.balloon svg {
    width: 100%;
    height: 100%;
}

.balloon-red {
    width: 44px;
    height: 130px;
    top: -80px;
    left: -25%;
    animation: balloon-sway 4s ease-in-out infinite;
}

.balloon-yellow {
    width: 42px;
    height: 70px;
    top: -45px;
    right: 18%;
    z-index: 1;
    animation: balloon-sway 4.5s ease-in-out infinite 0.3s;
}

.balloon-blue {
    width: 42px;
    height: 120px;
    top: -70px;
    right: -20%;
    z-index: 1;
    animation: balloon-sway 3.8s ease-in-out infinite 0.6s;
}

@keyframes balloon-sway {
    0%, 100% { transform: rotate(-2deg); }
    50% { transform: rotate(2deg); }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 180px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
    animation: bounce 2s ease-in-out infinite;
}

.scroll-indicator span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    opacity: 0.7;
}

.scroll-indicator .arrow {
    width: 24px;
    height: 24px;
    border: 3px solid var(--text-dark);
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
    opacity: 0.5;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* Grass Wave */
.grass-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    z-index: 4;
}

.grass-wave svg {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100%;
}

/* Flowers */
.grass-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    z-index: 5;
    pointer-events: none;
}

.flower {
    position: absolute;
    bottom: 20px;
}

.flower::before {
    font-size: 24px;
}

.flower:nth-child(1) { left: 5%; }
.flower:nth-child(1)::before { content: '🌸'; }
.flower:nth-child(2) { left: 12%; bottom: 35px; }
.flower:nth-child(2)::before { content: '🌼'; }
.flower:nth-child(3) { left: 22%; bottom: 25px; }
.flower:nth-child(3)::before { content: '🌷'; }
.flower:nth-child(4) { left: 35%; bottom: 30px; }
.flower:nth-child(4)::before { content: '🌸'; }
.flower:nth-child(5) { right: 30%; bottom: 35px; }
.flower:nth-child(5)::before { content: '🌻'; }
.flower:nth-child(6) { right: 18%; bottom: 28px; }
.flower:nth-child(6)::before { content: '🌺'; }
.flower:nth-child(7) { right: 8%; bottom: 32px; }
.flower:nth-child(7)::before { content: '🌼'; }
.flower:nth-child(8) { right: 2%; bottom: 22px; }
.flower:nth-child(8)::before { content: '🌷'; }

/* ===== Programs Section ===== */
.programs {
    background: var(--cream);
    padding: 80px 0;
}

.section-title {
    text-align: center;
    color: var(--accent-blue);
    margin-bottom: 50px;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.program-card {
    background: white;
    border-radius: 24px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.program-card:nth-child(1)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--accent-yellow);
}

.program-card:nth-child(2)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--accent-red);
}

.program-card:nth-child(3)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--accent-blue);
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card);
}

.program-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.program-card:nth-child(1) .program-icon { background: #fff9e6; }
.program-card:nth-child(2) .program-icon { background: #ffebee; }
.program-card:nth-child(3) .program-icon { background: #e3f2fd; }

.program-card h3 {
    margin-bottom: 12px;
}

.program-card:nth-child(1) h3 { color: var(--accent-orange); }
.program-card:nth-child(2) h3 { color: var(--accent-red); }
.program-card:nth-child(3) h3 { color: var(--accent-blue); }

.program-card p {
    font-size: 1rem;
    margin-bottom: 20px;
}

.program-link {
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s ease;
}

.program-card:nth-child(1) .program-link { color: var(--accent-orange); }
.program-card:nth-child(2) .program-link { color: var(--accent-red); }
.program-card:nth-child(3) .program-link { color: var(--accent-blue); }

.program-link:hover {
    gap: 12px;
}

/* ===== Benefits Section ===== */
.benefits {
    background: linear-gradient(180deg, #e3f2fd 0%, var(--sky-light) 100%);
    padding: 100px 0;
}

.benefits-header {
    text-align: center;
    margin-bottom: 60px;
}

.benefits-header h2 {
    color: var(--accent-blue);
    margin-bottom: 16px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.benefit-item {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.benefit-item:nth-child(1) .benefit-icon {
    background: linear-gradient(135deg, var(--accent-yellow) 0%, #ffe066 100%);
}

.benefit-item:nth-child(2) .benefit-icon {
    background: linear-gradient(135deg, #ffcccb 0%, #ffabab 100%);
}

.benefit-item:nth-child(3) .benefit-icon {
    background: linear-gradient(135deg, #b3e5fc 0%, #81d4fa 100%);
}

.benefit-item:nth-child(4) .benefit-icon {
    background: linear-gradient(135deg, #c8e6c9 0%, #a5d6a7 100%);
}

.benefit-item h4 {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.benefit-item p {
    font-size: 0.95rem;
}

/* ===== CTA Section ===== */
.cta {
    background: linear-gradient(135deg, var(--accent-blue) 0%, #1976d2 100%);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.cta::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -5%;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
}

.cta h2 {
    color: white;
    margin-bottom: 16px;
}

.cta p {
    color: rgba(255,255,255,0.9);
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.cta .btn-primary {
    background: var(--accent-yellow);
    color: var(--text-dark);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cta .btn-primary:hover {
    background: white;
    transform: translateY(-3px);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-text p {
        margin: 0 auto 30px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-logo {
        order: -1;
    }

    .hero-logo img {
        max-width: 280px;
    }

    .rainbow-container {
        width: 1400px;
        height: 1400px;
        left: -20%;
        bottom: -30px;
    }

    .programs-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .scroll-indicator {
        bottom: 160px;
    }

    .balloon-red { width: 36px; height: 105px; top: -65px; left: -20%; }
    .balloon-yellow { width: 35px; height: 58px; top: -38px; }
    .balloon-blue { width: 35px; height: 100px; top: -58px; right: -15%; }
}

@media (max-width: 600px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .hero-logo img {
        max-width: 220px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .scroll-indicator {
        bottom: 100px;
    }

    .rainbow-container {
        width: 1100px;
        height: 1100px;
        left: -30%;
        bottom: -20px;
    }

    .balloon-red { width: 30px; height: 85px; top: -55px; left: -15%; }
    .balloon-yellow { width: 30px; height: 50px; top: -32px; right: 15%; }
    .balloon-blue { width: 30px; height: 80px; top: -50px; right: -12%; }
}

@media (max-width: 400px) {
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .btn {
        justify-content: center;
        width: 100%;
    }
}
