/* ================================================================
   Scholar Kidz Zone — Main Stylesheet
   ================================================================
   Sections:
   1.  CSS Variables
   2.  Reset & Base
   3.  Utility classes
   4.  Buttons
   5.  Header / Navbar
   6.  Hero Section
   7.  About Section
   8.  Programs Section
   9.  Gallery Section
   10. Contact Section
   11. Enquiry Form
   12. Footer
   13. Back-to-Top
   14. Scroll animations
   15. Keyframe animations
   16. Responsive — Tablet (≤992px)
   17. Responsive — Mobile (≤600px)
================================================================ */

/* ----------------------------------------------------------------
   1. CSS VARIABLES
---------------------------------------------------------------- */
:root {
    /* Brand colours */
    --primary:        #FF6B6B;
    --primary-dark:   #e85555;
    --secondary:      #4ECDC4;
    --secondary-dark: #3ab8b0;
    --accent-yellow:  #FFE66D;
    --accent-green:   #A8E6CF;
    --accent-purple:  #6C5CE7;
    --accent-pink:    #FD79A8;
    --accent-orange:  #FDCB6E;

    /* Neutrals */
    --text-dark:   #2D3436;
    --text-medium: #636e72;
    --text-light:  #b2bec3;
    --white:       #FFFFFF;
    --bg-light:    #FFF9F0;
    --bg-section:  #F8F4FF;

    /* Typography */
    --font-heading: 'Fredoka One', cursive;
    --font-body:    'Nunito', sans-serif;

    /* Layout */
    --section-padding:  80px 0;
    --container-max:    1200px;
    --container-pad:    0 24px;

    /* Effects */
    --radius:      20px;
    --radius-sm:   12px;
    --shadow:      0 10px 40px rgba(0,0,0,.10);
    --shadow-lg:   0 20px 60px rgba(0,0,0,.15);
    --transition:  all 0.3s ease;
}

/* ----------------------------------------------------------------
   2. RESET & BASE
---------------------------------------------------------------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

img   { max-width: 100%; height: auto; display: block; }
a     { text-decoration: none; color: inherit; }
ul    { list-style: none; }
address { font-style: normal; }
button  { cursor: pointer; border: none; background: none; font-family: var(--font-body); }

/* ----------------------------------------------------------------
   3. UTILITY CLASSES
---------------------------------------------------------------- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--container-pad);
}

.section { padding: var(--section-padding); }

.hidden { display: none !important; }

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-badge {
    display: inline-block;
    background: var(--accent-yellow);
    color: var(--text-dark);
    font-weight: 700;
    font-size: .875rem;
    padding: 6px 20px;
    border-radius: 50px;
    margin-bottom: 14px;
    letter-spacing: .4px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-medium);
    max-width: 580px;
    margin: 0 auto;
}

/* ----------------------------------------------------------------
   4. BUTTONS
---------------------------------------------------------------- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
    border: 3px solid transparent;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 6px 20px rgba(255,107,107,.35);
}
.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255,107,107,.45);
}

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

.btn-submit {
    width: 100%;
    font-size: 1.1rem;
    padding: 16px;
    margin-top: 8px;
}

/* ----------------------------------------------------------------
   5. HEADER / NAVBAR
---------------------------------------------------------------- */
.header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0,0,0,.08);
    transition: var(--transition);
}
.header.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,.14); }

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 12px 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo-icon {
    font-size: 2rem;
    animation: bounce 2.2s ease-in-out infinite;
}
.logo-text   { display: flex; flex-direction: column; }
.logo-main   { font-family: var(--font-heading); font-size: 1.25rem; color: var(--primary); line-height: 1; }
.logo-sub    { font-size: .68rem; color: var(--text-medium); font-weight: 600; letter-spacing: .4px; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav-links a {
    font-weight: 600;
    color: var(--text-dark);
    padding: 8px 14px;
    border-radius: 50px;
    transition: var(--transition);
    font-size: .93rem;
}
.nav-links a:hover,
.nav-links a.active { color: var(--primary); background: rgba(255,107,107,.09); }

.nav-links .nav-cta {
    background: var(--primary);
    color: var(--white) !important;
    box-shadow: 0 4px 15px rgba(255,107,107,.3);
}
.nav-links .nav-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,107,107,.4);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    border: 2px solid var(--primary);
    border-radius: 8px;
    transition: var(--transition);
}
.hamburger span {
    display: block;
    width: 22px;
    height: 2.5px;
    background: var(--primary);
    border-radius: 3px;
    transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ----------------------------------------------------------------
   6. HERO SECTION
---------------------------------------------------------------- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #FFF9F0 0%, #FFE8E8 45%, #E8F8FF 100%);
    padding: 100px 24px 80px;
}

/* Animated background bubbles */
.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.shape {
    position: absolute;
    border-radius: 50%;
    opacity: .12;
    animation: floatBig 7s ease-in-out infinite;
}
.shape-1 { width: 340px; height: 340px; background: var(--primary);       top: -120px; right: -120px; animation-delay: 0s; }
.shape-2 { width: 220px; height: 220px; background: var(--secondary);     bottom: 80px; left: -80px;  animation-delay: 2s; }
.shape-3 { width: 160px; height: 160px; background: var(--accent-yellow); top: 220px;  left: 8%;     animation-delay: 1s; }
.shape-4 { width: 110px; height: 110px; background: var(--accent-purple); bottom: 180px; right: 12%; animation-delay: 3s; }

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    max-width: var(--container-max);
    width: 100%;
    position: relative;
    z-index: 1;
}

/* Hero text */
.hero-text { flex: 1; max-width: 580px; }

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-yellow), var(--accent-orange));
    color: var(--text-dark);
    font-weight: 700;
    font-size: .88rem;
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(255,203,110,.45);
    animation: pulse 2.5s ease-in-out infinite;
}
.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 6vw, 3.8rem);
    color: var(--primary);
    line-height: 1.1;
    margin-bottom: 8px;
}
.hero-subtitle {
    font-family: var(--font-heading);
    font-size: clamp(1.15rem, 2.8vw, 1.7rem);
    color: var(--accent-purple);
    margin-bottom: 14px;
}
.hero-tagline {
    font-size: clamp(1rem, 2.2vw, 1.3rem);
    font-weight: 800;
    color: var(--secondary-dark);
    margin-bottom: 16px;
}
.hero-desc {
    font-size: 1.05rem;
    color: var(--text-medium);
    margin-bottom: 32px;
    line-height: 1.75;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* CSS school illustration */
.hero-illustration {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    position: relative;
}
.school-building {
    position: relative;
    width: 260px;
    text-align: center;
}
.building-roof {
    width: 0; height: 0;
    border-left: 130px solid transparent;
    border-right: 130px solid transparent;
    border-bottom: 90px solid var(--primary);
    margin: 0 auto;
    filter: drop-shadow(0 4px 12px rgba(255,107,107,.35));
    animation: floatSm 3.5s ease-in-out infinite;
}
.building-body {
    background: var(--white);
    border: 4px solid var(--primary);
    border-top: none;
    border-radius: 0 0 8px 8px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 20px;
    position: relative;
    box-shadow: 0 8px 30px rgba(0,0,0,.1);
}
.window {
    width: 44px; height: 50px;
    background: linear-gradient(135deg, var(--accent-yellow), var(--accent-orange));
    border: 3px solid var(--accent-orange);
    border-radius: 6px 6px 0 0;
}
.door {
    width: 34px; height: 58px;
    background: var(--secondary);
    border: 3px solid var(--secondary-dark);
    border-radius: 50px 50px 0 0;
    position: absolute;
    bottom: 0;
}
.sun  { font-size: 2.4rem; position: absolute; top: -55px; right: 0; animation: spinSlow 22s linear infinite; }
.cloud-1, .cloud-2 { font-size: 1.9rem; position: absolute; animation: floatBig 5s ease-in-out infinite; }
.cloud-1 { top: -28px; left: 14px;  animation-delay: 0s; }
.cloud-2 { top: -10px; right: 50px; font-size: 1.4rem; animation-delay: 1.8s; }

.kids-row { display: flex; justify-content: center; gap: 18px; margin-top: 10px; }
.kid { font-size: 2.4rem; animation: bounce 1.6s ease-in-out infinite; }
.kid-1 { animation-delay: 0s; }
.kid-2 { animation-delay: .3s; }
.kid-3 { animation-delay: .6s; }

/* Scroll cue */
.hero-scroll {
    position: absolute;
    bottom: 28px; left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 1;
    opacity: .55;
}
.hero-scroll span { display: block; font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.scroll-arrow     { font-size: 1.2rem; animation: bounce 1.6s infinite; }

/* ----------------------------------------------------------------
   7. ABOUT SECTION
---------------------------------------------------------------- */
.about { background: var(--white); }

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content p {
    font-size: 1.04rem;
    color: var(--text-medium);
    margin-bottom: 18px;
    line-height: 1.8;
}
.about-content p strong { color: var(--text-dark); }

.about-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 28px;
}
.highlight {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-light);
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: .9rem;
    border: 2px solid transparent;
    transition: var(--transition);
}
.highlight:hover { border-color: var(--secondary); background: rgba(78,205,196,.07); }
.highlight-icon  { font-size: 1.5rem; }

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.stat-card {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    border: 3px solid transparent;
    transition: var(--transition);
}
.stat-card:nth-child(1) { border-color: var(--primary); }
.stat-card:nth-child(2) { border-color: var(--secondary); }
.stat-card:nth-child(3) { border-color: var(--accent-yellow); }
.stat-card:nth-child(4) { border-color: var(--accent-purple); }
.stat-card:hover        { transform: translateY(-6px); box-shadow: var(--shadow); }

.stat-number { display: block; font-family: var(--font-heading); font-size: 2.8rem; line-height: 1; margin-bottom: 8px; }
.stat-card:nth-child(1) .stat-number { color: var(--primary); }
.stat-card:nth-child(2) .stat-number { color: var(--secondary-dark); }
.stat-card:nth-child(3) .stat-number { color: #d4a017; }
.stat-card:nth-child(4) .stat-number { color: var(--accent-purple); }
.stat-label { font-size: .88rem; font-weight: 700; color: var(--text-medium); }

/* ----------------------------------------------------------------
   8. PROGRAMS SECTION
---------------------------------------------------------------- */
.programs { background: var(--bg-light); }

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

.program-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px 26px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,.06);
    border: 3px solid transparent;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
/* Coloured top stripe */
.program-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    border-radius: var(--radius) var(--radius) 0 0;
}
.program-card:nth-child(1)::before { background: var(--primary); }
.program-card:nth-child(2)::before { background: var(--secondary); }
.program-card:nth-child(3)::before { background: var(--accent-yellow); }
.program-card:nth-child(4)::before { background: var(--accent-purple); }
.program-card:nth-child(5)::before { background: var(--accent-green); }
.program-card:nth-child(6)::before { background: var(--accent-orange); }

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

.program-icon {
    font-size: 2.9rem;
    margin-bottom: 18px;
    display: block;
    animation: wobble 3.5s ease-in-out infinite;
}
.program-card:nth-child(1) .program-icon { animation-delay: 0s; }
.program-card:nth-child(2) .program-icon { animation-delay: .5s; }
.program-card:nth-child(3) .program-icon { animation-delay: 1s; }
.program-card:nth-child(4) .program-icon { animation-delay: 1.5s; }
.program-card:nth-child(5) .program-icon { animation-delay: 2s; }
.program-card:nth-child(6) .program-icon { animation-delay: 2.5s; }

.program-card h3 { font-family: var(--font-heading); font-size: 1.25rem; color: var(--text-dark); margin-bottom: 12px; }
.program-card p  { font-size: .94rem; color: var(--text-medium); line-height: 1.7; }

/* ----------------------------------------------------------------
   9. GALLERY SECTION
---------------------------------------------------------------- */
.gallery { background: var(--white); }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
    cursor: pointer;
    background: var(--bg-light);
    transition: transform .3s ease, box-shadow .3s ease;
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}
.gallery-item:hover img { transform: scale(1.08); }

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,107,107,.82), rgba(78,205,196,.82));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .3s ease;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-overlay span {
    color: var(--white);
    font-size: .95rem;
    font-weight: 700;
    text-align: center;
    padding: 12px;
}

/* Placeholder shown when no images configured */
.gallery-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-light);
    border-radius: var(--radius);
    border: 3px dashed var(--text-light);
}
.gallery-placeholder p  { color: var(--text-medium); font-size: 1.05rem; margin-top: 10px; }
.gallery-placeholder code { background: #eee; padding: 2px 6px; border-radius: 4px; font-size: .9rem; }

.gallery-note { text-align: center; color: var(--text-medium); font-size: .85rem; margin-top: 20px; font-style: italic; }

/* ----------------------------------------------------------------
   10. CONTACT SECTION
---------------------------------------------------------------- */
.contact { background: linear-gradient(135deg, #FFF9F0 0%, #E8F8FF 100%); }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 40px;
    align-items: start;
}

.contact-info   { display: flex; flex-direction: column; gap: 20px; }
.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--white);
    padding: 22px 24px;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 16px rgba(0,0,0,.07);
    border-left: 5px solid var(--primary);
    transition: var(--transition);
}
.contact-card:nth-child(2) { border-color: var(--secondary); }
.contact-card:nth-child(3) { border-color: var(--accent-purple); }
.contact-card:hover { transform: translateX(5px); box-shadow: var(--shadow); }

.contact-icon { font-size: 1.75rem; flex-shrink: 0; }
.contact-card h4 { font-family: var(--font-body); font-weight: 500; font-size: .95rem; color: var(--text-dark); margin-bottom: 4px; }
.contact-card p,
.contact-card address,
.contact-card a  { font-size: .95rem; color: var(--text-medium); line-height: 1.65; }
.contact-card a:hover { color: var(--primary); }

.map-container {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 4px solid var(--white);
    outline: 3px solid var(--secondary);
}
.map-iframe { width: 100%; height: 360px; border: 0; display: block; }

/* ----------------------------------------------------------------
   11. ENQUIRY FORM
---------------------------------------------------------------- */
.enquiry { background: var(--bg-section); }

.form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius);
    padding: 48px 44px;
    box-shadow: var(--shadow);
    border: 3px solid rgba(78,205,196,.18);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 7px;
    font-size: .94rem;
}
.required { color: var(--primary); }

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 13px 18px;
    border: 2.5px solid #e0e0e0;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: .94rem;
    color: var(--text-dark);
    background: var(--white);
    transition: border-color .25s, box-shadow .25s;
    outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(78,205,196,.14);
}
.form-group input.error,
.form-group textarea.error {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255,107,107,.12);
}
.form-group textarea { resize: vertical; min-height: 130px; }

.error-msg  { display: block; font-size: .82rem; color: var(--primary); margin-top: 5px; font-weight: 600; min-height: 18px; }

.form-message {
    margin-top: 18px;
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    text-align: center;
    font-size: 1rem;
}
.form-message.success   { background: rgba(168,230,207,.25); border: 2px solid var(--accent-green); color: #1e8449; }
.form-message.form-error { background: rgba(255,107,107,.1);  border: 2px solid var(--primary);      color: var(--primary-dark); }

/* ----------------------------------------------------------------
   12. FOOTER
---------------------------------------------------------------- */
.footer {
    background: #2D3436;
    color: rgba(255,255,255,.82);
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-brand { display: flex; flex-direction: column; gap: 5px; }
.footer-logo-icon { font-size: 2.4rem; }
.footer-name { font-family: var(--font-heading); font-size: 1.35rem; color: var(--primary); }
.footer-brand p { font-size: .88rem; opacity: .65; }
.footer-tagline { margin-top: 6px; font-style: italic; color: var(--accent-yellow) !important; opacity: 1 !important; }

.footer-links h4,
.footer-contact h4 { font-family: var(--font-heading); font-size: 1.05rem; color: var(--white); margin-bottom: 16px; }

.footer-links ul { display: flex; flex-direction: column; gap: 8px; }
.footer-links a  { font-size: .88rem; opacity: .65; transition: var(--transition); }
.footer-links a:hover { opacity: 1; color: var(--secondary); padding-left: 6px; }

.footer-contact p,
.footer-contact address,
.footer-contact a { font-size: .88rem; opacity: .65; line-height: 1.7; }
.footer-contact a:hover { opacity: 1; color: var(--secondary); }

.footer-bottom { padding: 20px 0; text-align: center; font-size: .82rem; opacity: .45; }

/* ----------------------------------------------------------------
   13. BACK-TO-TOP BUTTON
---------------------------------------------------------------- */
.back-to-top {
    position: fixed;
    bottom: 30px; right: 30px;
    width: 50px; height: 50px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(255,107,107,.4);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}
.back-to-top.visible { opacity: 1; pointer-events: all; }
.back-to-top:hover   { background: var(--primary-dark); transform: translateY(-3px); }

/* ----------------------------------------------------------------
   14. SCROLL ANIMATIONS (toggled by IntersectionObserver in JS)
---------------------------------------------------------------- */
.fade-in {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .65s ease, transform .65s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ----------------------------------------------------------------
   15. KEYFRAME ANIMATIONS
---------------------------------------------------------------- */
@keyframes floatBig {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-18px); }
}
@keyframes floatSm {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
}
@keyframes pulse {
    0%, 100% { transform: scale(1);    box-shadow: 0 4px 16px rgba(255,203,110,.42); }
    50%       { transform: scale(1.04); box-shadow: 0 6px 26px rgba(255,203,110,.62); }
}
@keyframes spinSlow {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
@keyframes wobble {
    0%, 100% { transform: rotate(0deg); }
    25%       { transform: rotate(-6deg); }
    75%       { transform: rotate(6deg); }
}

/* ----------------------------------------------------------------
   16. RESPONSIVE — TABLET (≤ 992px)
---------------------------------------------------------------- */
@media (max-width: 992px) {
    /* Mobile nav drawer */
    .nav-links {
        position: fixed;
        top: 68px; left: 0;
        width: 100%;
        background: rgba(255,255,255,.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 20px;
        gap: 4px;
        box-shadow: 0 10px 30px rgba(0,0,0,.1);
        transform: translateY(-110%);
        opacity: 0;
        pointer-events: none;
        transition: transform .35s ease, opacity .35s ease;
    }
    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    .nav-links a { display: block; padding: 12px 16px; text-align: center; border-radius: var(--radius-sm); }
    .hamburger   { display: flex; }

    .hero-content { flex-direction: column-reverse; text-align: center; }
    .hero-text    { max-width: 100%; }
    .hero-buttons { justify-content: center; }

    .about-grid    { grid-template-columns: 1fr; gap: 40px; }
    .programs-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid  { grid-template-columns: 1fr; }

    .footer-content { grid-template-columns: 1fr 1fr; }
    .footer-brand   { grid-column: 1 / -1; }
}

/* ----------------------------------------------------------------
   17. RESPONSIVE — MOBILE (≤ 600px)
---------------------------------------------------------------- */
@media (max-width: 600px) {
    :root { --section-padding: 56px 0; }

    .programs-grid { grid-template-columns: 1fr; }
    .form-row      { grid-template-columns: 1fr; }
    .form-wrapper  { padding: 28px 18px; }

    .about-highlights { grid-template-columns: 1fr; }
    .about-stats      { grid-template-columns: 1fr 1fr; }
    .footer-content   { grid-template-columns: 1fr; }

    .back-to-top { bottom: 18px; right: 18px; width: 44px; height: 44px; font-size: 1.1rem; }

    .school-building { width: 200px; }
    .building-roof   { border-left-width: 100px; border-right-width: 100px; border-bottom-width: 75px; }

    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}

/* ----------------------------------------------------------------
   18. PLAYFUL KIDS THEME — Vibrant section backgrounds & colors
---------------------------------------------------------------- */

/* Hero — more vivid rainbow gradient */
.hero {
    background: linear-gradient(135deg, #FFF0F5 0%, #FFE0EE 18%, #F0E0FF 36%, #E0EEFF 54%, #E0FFF5 72%, #FFFCE0 100%);
}
.shape { opacity: .18; }

/* About — warm dotted background */
.about {
    background: #FFFBF7;
    background-image: radial-gradient(circle, rgba(255,107,107,.07) 1.5px, transparent 1.5px);
    background-size: 30px 30px;
}

/* About highlights — colored borders permanently */
.highlight:nth-child(1) { border-color: var(--primary);       background: #FFF5F5; }
.highlight:nth-child(2) { border-color: var(--secondary);     background: #F0FFFD; }
.highlight:nth-child(3) { border-color: var(--accent-yellow); background: #FFFDE0; }
.highlight:nth-child(4) { border-color: var(--accent-purple); background: #F5F0FF; }

/* Stat cards — colored gradient backgrounds */
.stat-card:nth-child(1) { background: linear-gradient(135deg, #FFF5F5, #FFE8E8); }
.stat-card:nth-child(2) { background: linear-gradient(135deg, #F0FFFD, #DCF8F5); }
.stat-card:nth-child(3) { background: linear-gradient(135deg, #FFFDE0, #FFF5CC); }
.stat-card:nth-child(4) { background: linear-gradient(135deg, #F5F0FF, #EBE0FF); }

/* Programs — rainbow gradient background */
.programs {
    background: linear-gradient(160deg, #FFF5FF 0%, #FFF9E0 50%, #E8FFF8 100%);
}

/* Program cards — subtle tinted backgrounds */
.program-card:nth-child(1) { background: linear-gradient(160deg, #FFF8F8, #FFFFFF); }
.program-card:nth-child(2) { background: linear-gradient(160deg, #F5FFFE, #FFFFFF); }
.program-card:nth-child(3) { background: linear-gradient(160deg, #FFFDF0, #FFFFFF); }
.program-card:nth-child(4) { background: linear-gradient(160deg, #F8F5FF, #FFFFFF); }
.program-card:nth-child(5) { background: linear-gradient(160deg, #F0FFF8, #FFFFFF); }
.program-card:nth-child(6) { background: linear-gradient(160deg, #FFF8F0, #FFFFFF); }

/* Gallery — soft pastel gradient */
.gallery {
    background: linear-gradient(135deg, #FFF0F8 0%, #F0FFFD 100%);
}

/* Contact — playful multi-color gradient */
.contact {
    background: linear-gradient(160deg, #FFF8FF 0%, #F0FFFA 50%, #FFF5E8 100%);
}

/* Enquiry — warm rainbow gradient */
.enquiry {
    background: linear-gradient(135deg, #FFF9E0 0%, #FFF0F8 50%, #EFF8FF 100%);
}

/* Section badges — unique color per section */
#about   .section-badge { background: var(--accent-yellow);  color: var(--text-dark); }
#programs .section-badge { background: var(--primary);        color: var(--white); }
#gallery  .section-badge { background: var(--secondary);      color: var(--white); }
#contact  .section-badge { background: var(--accent-purple);  color: var(--white); }
#enquiry  .section-badge { background: var(--accent-pink);    color: var(--white); }

/* ----------------------------------------------------------------
   19. GALLERY LIGHTBOX
---------------------------------------------------------------- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}
.lightbox.open { display: flex; }

.lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .90);
    cursor: pointer;
}

.lightbox-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 92vw;
}

.lightbox-img {
    max-width: 88vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 14px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .55);
    display: block;
}

.lightbox-caption {
    color: rgba(255, 255, 255, .80);
    font-size: .9rem;
    margin-top: 14px;
    text-align: center;
    font-weight: 600;
}

.lightbox-counter {
    color: rgba(255, 255, 255, .45);
    font-size: .80rem;
    margin-top: 4px;
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
    width: 46px;
    height: 46px;
    background: rgba(255, 255, 255, .15);
    color: var(--white);
    font-size: 1.3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, transform .2s;
    cursor: pointer;
    border: 2px solid rgba(255,255,255,.25);
}
.lightbox-close:hover { background: var(--primary); transform: scale(1.1); }

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, .15);
    color: var(--white);
    font-size: 2.4rem;
    line-height: 1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, transform .2s;
    cursor: pointer;
    border: 2px solid rgba(255,255,255,.25);
}
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }
.lightbox-prev:hover { background: var(--secondary); transform: translateY(-50%) scale(1.12); }
.lightbox-next:hover { background: var(--secondary); transform: translateY(-50%) scale(1.12); }

@media (max-width: 600px) {
    .lightbox-prev { left: 8px; width: 44px; height: 44px; font-size: 2rem; }
    .lightbox-next { right: 8px; width: 44px; height: 44px; font-size: 2rem; }
    .lightbox-img  { max-width: 96vw; max-height: 75vh; }
}
