/* ==========================================================================
   CSS Variables & Reset
   ========================================================================== */
:root {
    /* Color Palette */
    --primary-color: #FFD700;
    /* Golden Yellow */
    --secondary-color: #1A1A2E;
    /* Deep Navy */
    --accent-color: #FF6B35;
    /* Warm Orange */
    --background-color: #FFFDF4;
    /* Soft Cream */
    --text-color: #2D2D2D;
    /* Charcoal */
    --white: #FFFFFF;
    --gray-light: #F4F4F4;
    --gray-dark: #666666;

    /* Typography */
    --font-heading: 'Nunito', sans-serif;
    --font-body: 'Quicksand', sans-serif;

    /* Transitions & Shadows */
    --transition-fast: 0.2s ease-in-out;
    --transition-smooth: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 15px 30px rgba(0, 0, 0, 0.15);
    --shadow-hover: 0 20px 40px rgba(255, 107, 53, 0.15);

    /* Border Radius - More organic feel */
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 30px;
    --radius-pill: 50px;
    --radius-blob: 60% 40% 55% 45% / 50% 60% 40% 50%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.2;
    color: var(--secondary-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.highlight {
    color: var(--accent-color);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.section-header {
    margin-bottom: 3rem;
    position: relative;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--gray-dark);
}

/* ==========================================================================
   Buttons - Storybook Style
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: var(--radius-pill);
    cursor: pointer;
    text-align: center;
    border: none;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #F4C400 100%);
    color: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4), inset 0 -2px 0 rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 30px rgba(255, 215, 0, 0.5);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--accent-color) 0%, #E85A28 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4), inset 0 -2px 0 rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 30px rgba(255, 107, 53, 0.5);
}

.w-100 {
    width: 100%;
}

/* ==========================================================================
   Header & Navigation - Storybook Style
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-smooth);
}

.header.scrolled .navbar {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.top-bar {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #2A2A4A 100%);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.9rem;
    font-weight: 600;
}

.top-bar .contact-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar span {
    margin-right: 20px;
}

.top-bar a:hover {
    color: var(--primary-color);
}

.rating-badge {
    color: var(--primary-color);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px;
    background: var(--white);
    border-radius: 0 0 20px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-smooth);
}

.logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    animation: logo-bounce 2s ease-in-out infinite;
}

@keyframes logo-bounce {

    0%,
    100% {
        transform: translateY(0) rotate(-5deg);
    }

    50% {
        transform: translateY(-5px) rotate(5deg);
    }
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--secondary-color);
    position: relative;
    padding: 8px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    transition: var(--transition-smooth);
    border-radius: 2px;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    padding: 8px 24px;
}

/* Staff Login link — sleek, subtle pill */
.nav-staff-login {
    font-size: 0.95rem !important;
    color: var(--secondary-color) !important;
    background: rgba(26, 26, 46, 0.04);
    border: 1px solid rgba(26, 26, 46, 0.08);
    border-radius: var(--radius-pill);
    padding: 8px 18px !important;
    font-weight: 700 !important;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav-staff-login:hover {
    background: rgba(26, 26, 46, 0.08);
    border-color: rgba(26, 26, 46, 0.15);
    transform: translateY(-2px);
    color: var(--primary-color) !important;
}

.nav-staff-login::after {
    display: none !important;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--secondary-color);
    cursor: pointer;
    padding: 10px;
    border-radius: 10px;
    transition: var(--transition-fast);
}

.mobile-menu-btn:hover {
    background: var(--gray-light);
}

/* ==========================================================================
   Storybook Parallax Container - Reusable
   ========================================================================== */
.parallax-section {
    position: relative;
    overflow: hidden;
}

.parallax-bg-element {
    position: absolute;
    pointer-events: none;
    will-change: transform;
    transition: transform 0.1s ease-out;
    z-index: 0;
}

.parallax-blob {
    filter: blur(30px);
    opacity: 0.5;
    border-radius: 50%;
}

.parallax-float {
    transition: transform 0.15s ease-out;
}

/* ==========================================================================
   Hero Section - Immersive 3D Parallax
   ========================================================================== */
.hero {
    padding-top: 110px;
    padding-bottom: 60px;
    background: linear-gradient(160deg, var(--background-color) 0%, #FFF8E1 50%, #FFF5D1 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    z-index: 10;
    perspective: 1000px;
    perspective-origin: center center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
    gap: 50px;
    position: relative;
    z-index: 4;
    transform-style: preserve-3d;
}

/* Deep background gradient blobs - slowest parallax */
.hero-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: visible;
    transform-style: preserve-3d;
}

.hero-blobs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: visible;
    transform-style: preserve-3d;
}

/* Blob base - controlled by JavaScript */
.blob {
    position: absolute;
    border-radius: 50%;
    will-change: transform;
    transform: translate3d(0px, 0px, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    filter: drop-shadow(0 40px 80px rgba(0, 0, 0, 0.25));
}

.blob::after {
    content: '';
    position: absolute;
    top: 20%;
    left: 20%;
    width: 40%;
    height: 40%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.5) 0%, transparent 80%);
    border-radius: 50%;
    filter: blur(10px);
    pointer-events: none;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.7) 0%, rgba(255, 224, 102, 0.4) 40%, transparent 70%);
    top: -200px;
    right: -150px;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.6) 0%, rgba(255, 143, 90, 0.3) 40%, transparent 70%);
    bottom: 50px;
    /* Lifted up to avoid clashing with wave */
    left: -150px;
    opacity: 0.8;
}

/* Floating particles layer - controlled by JavaScript */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.4;
    will-change: transform;
}

.particle:nth-child(1) {
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    top: 20%;
    left: 15%;
}

.particle:nth-child(2) {
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    top: 60%;
    left: 80%;
}

.particle:nth-child(3) {
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    top: 75%;
    left: 25%;
}

.particle:nth-child(4) {
    width: 10px;
    height: 10px;
    background: var(--accent-color);
    top: 30%;
    left: 70%;
}

.particle:nth-child(5) {
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    top: 85%;
    left: 60%;
}


/* Hero Text - Left Side */
.hero-text {
    z-index: 5;
    position: relative;
}

.hero-text::before {
    content: '';
    position: absolute;
    top: -30px;
    left: -60px;
    width: 120px;
    height: 120px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 5 L61 35 L97 35 L68 57 L79 91 L50 70 L21 91 L32 57 L3 35 L39 35 Z' fill='%23FFD700'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
    opacity: 0.6;
    filter: blur(2px);
    z-index: -1;
}

.badge {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3) 0%, rgba(255, 107, 53, 0.2) 100%);
    color: var(--accent-color);
    font-weight: 700;
    border-radius: 50px;
    margin-bottom: 25px;
    font-size: 1rem;
    border: 2px solid rgba(255, 215, 0, 0.5);
    animation: pulse-glow 2.5s ease-in-out infinite;
    position: relative;
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 25px rgba(255, 215, 0, 0.4), 0 0 50px rgba(255, 215, 0, 0.2);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 40px rgba(255, 215, 0, 0.6), 0 0 80px rgba(255, 215, 0, 0.3);
        transform: scale(1.03);
    }
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 25px;
    line-height: 1.15;
    text-shadow: 2px 2px 0 rgba(255, 215, 0, 0.2);
}

.hero p {
    font-size: 1.25rem;
    color: var(--gray-dark);
    margin-bottom: 35px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    grid-column: 1;
    /* Desktop: stay in left text column */
}

/* Hero Image - Right Side - Immersive 3D Collage */
.hero-image {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 550px;
    overflow: visible;
    transform-style: preserve-3d;
}

/* Collage container with layered elements */
.collage-container {
    position: relative;
    width: 420px;
    height: 480px;
    padding: 80px;
    margin: -80px;
    overflow: visible;
    pointer-events: none;
    /* No preserve-3d here: it causes filter-atomization conflicts that
       push emojis behind blobs. Parallax depth comes from the JS speed
       differences, not CSS 3D stacking. */
    z-index: 3;
}

/* Collage blobs - stacked by CSS z-index inside the flat container */
.collage-blob {
    position: absolute;
    border-radius: 50%;
    will-change: transform;
    transform: translate3d(0px, 0px, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    pointer-events: none;
    /* box-shadow instead of filter: drop-shadow (filter atomizes in preserve-3d) */
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.18);
}

.collage-blob::after {
    content: '';
    position: absolute;
    top: 15%;
    left: 15%;
    width: 35%;
    height: 35%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.4) 0%, transparent 75%);
    border-radius: 50%;
    filter: blur(8px);
    pointer-events: none;
}

.blob-accent {
    width: 340px;
    height: 360px;
    background: linear-gradient(145deg, var(--accent-color) 0%, #FF8F5A 60%, var(--primary-color) 100%);
    top: 50px;
    left: 30px;
    z-index: 1;
}

.blob-gold {
    width: 200px;
    height: 220px;
    background: linear-gradient(160deg, var(--primary-color) 0%, #FFE566 100%);
    top: -10px;
    right: 10px;
    z-index: 1;
    /* under blob-cream (z-index: 6) */
}

.blob-cream {
    width: 180px;
    height: 200px;
    background: linear-gradient(135deg, #FFF5D1 0%, #FFEDC2 100%);
    bottom: 60px;
    left: 10px;
    z-index: 1;
}

/* Main image container - stays centered, no Z axis */
.image-blob-container {
    position: absolute;
    width: 280px;
    height: 320px;
    top: 50%;
    left: 50%;
    transform: translate3d(-50%, -50%, 0);
    z-index: 5;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.image-blob {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #e8e8e8 0%, #f8f8f8 100%);
    border-radius: 60% 40% 50% 50% / 50% 60% 40% 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    box-shadow:
        0 30px 60px rgba(255, 107, 53, 0.3),
        0 15px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

.image-blob::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 60% 40% 50% 50% / 50% 60% 40% 50%;
    z-index: -1;
}

.image-blob span {
    color: #999;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    padding: 20px;
}

.image-blob .bee-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

/* Decorative floating elements - always on top of blobs via z-index */
.decorative-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 99;
}

.decor-bee {
    position: absolute;
    font-size: 1.4rem;
    opacity: 0.85;
    will-change: transform;
}

.decor-bee:nth-child(1) {
    top: 30px;
    left: 30px;
}

.decor-bee:nth-child(2) {
    bottom: 100px;
    right: 10px;
}

.decor-bee:nth-child(3) {
    top: 55%;
    left: -30px;
}

.decor-star {
    position: absolute;
    width: 22px;
    height: 22px;
    will-change: transform;
}

.decor-star svg {
    width: 100%;
    height: 100%;
    fill: var(--primary-color);
    filter: drop-shadow(0 3px 8px rgba(255, 215, 0, 0.5));
}

.decor-star:nth-child(4) {
    top: 120px;
    right: 50px;
}

.decor-star:nth-child(5) {
    bottom: 180px;
    left: 80px;
}

.decor-star:nth-child(6) {
    top: 220px;
    left: -15px;
}

.decor-dot {
    position: absolute;
    width: 14px;
    height: 14px;
    background: var(--accent-color);
    border-radius: 50%;
    opacity: 0.7;
    will-change: transform;
}

.decor-dot:nth-child(7) {
    top: 180px;
    left: 35%;
}

.decor-dot:nth-child(8) {
    bottom: 230px;
    right: 28%;
}

.decor-dot:nth-child(9) {
    top: 65%;
    right: 5%;
}

.decor-heart {
    font-size: 1.1rem;
    color: var(--accent-color);
    opacity: 0.6;
    will-change: transform;
}

.decor-heart:nth-child(10) {
    top: 35%;
    right: -20px;
}

.decor-heart:nth-child(11) {
    bottom: 120px;
    left: 30px;
}

/* Wave Separator */
.wave-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
    z-index: 3;
}

.wave-bottom svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

.wave-bottom .shape-fill {
    fill: var(--white);
}

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

    .collage-container {
        width: 380px;
        height: 440px;
    }

    .image-blob-container {
        width: 260px;
        height: 300px;
    }

    .hero h1 {
        font-size: 3.4rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 90px;
        padding-bottom: 40px;
        min-height: 90vh;
        display: flex;
        align-items: center;
        perspective: 800px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .hero h1 {
        font-size: 2.2rem;
        margin-bottom: 10px;
    }

    .hero p {
        max-width: 100%;
        font-size: 1rem;
        margin-bottom: 15px;
    }

    .hero-text {
        order: 1;
    }

    .hero-buttons {
        order: 3;
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
        grid-column: unset;
        margin-bottom: 15px;
    }

    .hero-image {
        order: 2;
        min-height: 280px;
        display: flex;
        justify-content: center;
        overflow: visible;
    }

    .collage-container {
        width: 340px;
        height: 380px;
        padding: 60px;
        margin: -60px;
        overflow: visible;
    }

    .blob-accent {
        width: 240px;
        height: 260px;
        top: 30px;
        left: 20px;
    }

    .blob-gold {
        width: 140px;
        height: 160px;
        top: -5px;
        right: 5px;
    }

    .blob-cream {
        width: 120px;
        height: 140px;
        bottom: 40px;
        left: 5px;
    }

    .image-blob-container {
        width: 200px;
        height: 230px;
    }

    /* Scale down decorative elements for mobile */
    .decorative-elements {
        display: none;
        /* Hide on mobile for performance */
    }

    /* Disable heavy particle animations on mobile for performance */
    .hero-particles {
        display: none;
    }

    /* Reduce blob animation complexity on mobile */
    .blob-1,
    .blob-2 {
        animation: none;
    }

    .blob-accent,
    .blob-gold,
    .blob-cream {
        animation: none;
    }

    .hero-text::before {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 80px;
        padding-bottom: 30px;
    }

    .hero h1 {
        font-size: 1.9rem;
    }

    .collage-container {
        width: 320px;
        height: 360px;
    }

    .blob-accent {
        width: 220px;
        height: 240px;
        top: 40px;
        left: 30px;
    }

    .blob-gold {
        width: 140px;
        height: 160px;
    }

    .blob-cream {
        width: 130px;
        height: 150px;
    }

    .image-blob-container {
        width: 190px;
        height: 220px;
    }

    .decor-bee {
        font-size: 1.2rem;
    }

    .decor-heart {
        font-size: 1.1rem;
    }

    .decor-star {
        width: 18px;
        height: 18px;
    }
}

/* ==========================================================================
   Stats Section - Storybook Style
   ========================================================================== */
.stats-section {
    background-color: var(--white);
    padding: 60px 0;
    margin-top: -40px;
    position: relative;
    z-index: 5;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    position: relative;
}

.stats-grid::before {
    content: '🐝';
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.5rem;
    background: var(--white);
    padding: 0 20px;
    border-radius: 50%;
}

.stat-card {
    text-align: center;
    padding: 20px 15px;
    border-radius: var(--radius-md);
    transition: var(--transition-smooth);
    position: relative;
}

.stat-card:hover, .stat-card.mobile-active {
    transform: translateY(-8px);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 107, 53, 0.05));
}

.stat-card h3 {
    display: inline-block;
    font-size: 2.8rem;
    color: var(--accent-color);
    font-weight: 800;
}

.stat-card span {
    font-size: 2.2rem;
    color: var(--primary-color);
    font-weight: 800;
}

.stat-card p {
    font-weight: 700;
    color: var(--secondary-color);
    margin-top: 5px;
    font-size: 1rem;
}

/* ==========================================================================
   About Section - Storybook Style
   ========================================================================== */
.about {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--white) 0%, var(--background-color) 100%);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 50px;
    right: -150px;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-color), transparent);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
}

.about::after {
    content: '🐝';
    position: absolute;
    top: 80px;
    left: 30px;
    font-size: 4rem;
    opacity: 0.1;
    animation: bee-float 4s ease-in-out infinite;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.about-image {
    flex: 1.2;
    position: relative;
}

.about-real-image {
    width: 100%;
    height: 460px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-real-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -30px;
    left: -30px;
    right: 30px;
    bottom: 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: var(--radius-blob);
    z-index: -1;
    opacity: 0.3;
}

.floating-badge {
    position: absolute;
    bottom: -25px;
    right: -25px;
    background: linear-gradient(135deg, var(--white), var(--background-color));
    padding: 18px 28px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: float-badge 4s ease-in-out infinite;
    z-index: 2;
}

@keyframes float-badge {

    0%,
    100% {
        transform: translateY(0) rotate(-2deg);
    }

    50% {
        transform: translateY(-12px) rotate(2deg);
    }
}

.floating-badge .icon {
    font-size: 1.8rem;
}

.floating-badge p {
    margin: 0;
    font-weight: 800;
    color: var(--secondary-color);
    font-family: var(--font-heading);
}

.about-text {
    flex: 1;
}

.about-text h2 {
    position: relative;
}

.about-text h2::after {
    content: '✨';
    position: absolute;
    top: -10px;
    right: -40px;
}

.about-text p {
    margin-bottom: 18px;
    font-size: 1.05rem;
    line-height: 1.8;
}

.mission-vision {
    display: flex;
    gap: 25px;
    margin-top: 35px;
}

.mv-card {
    flex: 1;
    background: linear-gradient(145deg, var(--background-color), var(--white));
    padding: 25px;
    border-radius: var(--radius-md);
    border-left: 5px solid var(--primary-color);
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
}

.mv-card:hover, .mv-card.mobile-active {
    transform: translateY(-5px) rotateX(5deg) rotateY(-5deg);
    box-shadow: var(--shadow-hover);
}

.mv-card:nth-child(2) {
    border-left-color: var(--accent-color);
}

.mv-card i {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-bottom: 12px;
}

.mv-card h4 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.mv-card p {
    font-size: 0.95rem;
    margin: 0;
}

/* ==========================================================================
   Features Section - Storybook Style
   ========================================================================== */
.features {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--background-color) 0%, #FFF8E1 100%);
    position: relative;
    overflow: hidden;
}

/* Removed features::before to prevent sharp color stripes at the seam */

.features .section-header::before {
    content: '🌟';
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.feature-card {
    background: linear-gradient(145deg, var(--white), var(--background-color));
    padding: 35px 25px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: box-shadow var(--transition-smooth), filter var(--transition-smooth);
    border-bottom: 5px solid transparent;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-card:hover::before, .feature-card.mobile-active::before {
    transform: scaleX(1);
}

.feature-card:hover, .feature-card.mobile-active {
    box-shadow: 0 35px 60px rgba(255, 107, 53, 0.25);
    filter: brightness(1.05);
    transform: translateY(-5px);
}

.feature-card .icon {
    font-size: 3.5rem;
    margin-bottom: 18px;
    display: block;
}

.feature-card h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--gray-dark);
}

/* ==========================================================================
   Programmes Section - Storybook Style
   ========================================================================== */
.programmes {
    padding: 120px 0;
    background: linear-gradient(180deg, #E8F4F8 0%, #D4E8ED 50%, var(--background-color) 100%);
    position: relative;
    overflow: hidden;
}

/* Removed programmes::before to prevent sharp color stripes at the seam */

.programmes .section-header::before {
    content: '📚';
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3rem;
}

.wave-top {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-top svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 70px;
}

.wave-top .shape-fill {
    fill: #FFF8E1;
}

.programmes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
    margin-bottom: 70px;
    position: relative;
    z-index: 1;
}

.programme-card {
    background: linear-gradient(145deg, var(--white), #FAFAFA);
    padding: 35px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
    transition: box-shadow var(--transition-smooth), filter var(--transition-smooth), translate var(--transition-smooth);
    overflow: hidden;
    border-top: 5px solid var(--primary-color);
}

.programme-card::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.1;
    transition: var(--transition-smooth);
}

.programme-card:hover, .programme-card.mobile-active {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    filter: brightness(1.05);
    translate: 0 -8px;
}

.programme-card:hover::after, .programme-card.mobile-active::after {
    transform: scale(2);
    opacity: 0.15;
}

.programme-card.special-card {
    border-top-color: var(--accent-color);
}

.programme-card.special-card::after {
    background: var(--accent-color);
}

.prog-age {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.1), rgba(255, 107, 53, 0.1));
    color: var(--secondary-color);
    font-weight: 700;
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    margin-bottom: 18px;
}

.programme-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.programme-card p {
    color: var(--gray-dark);
    line-height: 1.7;
}

.teaching-philosophy {
    display: flex;
    background: linear-gradient(145deg, var(--white), var(--background-color));
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.phil-text {
    flex: 1;
    padding: 50px;
}

.phil-text h3 {
    font-size: 2.2rem;
    margin-bottom: 18px;
    position: relative;
}

.phil-text h3::before {
    content: '✨';
    position: absolute;
    top: -5px;
    right: -10px;
    font-size: 1.5rem;
}

.phil-text>p {
    margin-bottom: 25px;
    font-size: 1.05rem;
    line-height: 1.8;
}

.phil-list li {
    margin-bottom: 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 1rem;
}

.phil-list i {
    color: var(--accent-color);
    margin-top: 4px;
    font-size: 1.1rem;
}

.phil-image {
    flex: 1;
    position: relative;
}

.phil-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    opacity: 0.1;
}

.phil-image .image-placeholder {
    height: 100%;
    border: none;
    border-radius: 0;
    min-height: 350px;
}

.programmes .wave-bottom .shape-fill {
    fill: var(--white);
}

/* ==========================================================================
   Admissions Section - Storybook Style
   ========================================================================== */
.admissions {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--white) 0%, var(--background-color) 100%);
    position: relative;
    overflow: hidden;
}

.admissions::before {
    content: '🐝';
    position: absolute;
    top: 50%;
    left: -50px;
    font-size: 300px;
    opacity: 0.03;
}

.admissions-card {
    background: linear-gradient(145deg, var(--secondary-color) 0%, #2A2A4A 50%, #1A1A2E 100%);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 60px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.admissions-card::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.1;
}

.admissions-card::after {
    content: '🌟';
    position: absolute;
    right: 40px;
    bottom: 40px;
    font-size: 120px;
    opacity: 0.1;
}

.adm-content {
    position: relative;
    z-index: 2;
}

.adm-content h2 {
    color: var(--primary-color);
    margin-bottom: 18px;
    font-size: 2.5rem;
}

.adm-content h2::before {
    content: '✨ ';
}

.adm-content>p {
    font-size: 1.15rem;
    margin-bottom: 35px;
    max-width: 850px;
    line-height: 1.7;
}

.adm-steps,
.adm-docs {
    margin-bottom: 35px;
}

.adm-steps h4,
.adm-docs h4 {
    color: var(--primary-color);
    margin-bottom: 18px;
    font-size: 1.3rem;
}

.adm-steps ol {
    padding-left: 25px;
    list-style: none;
}

.adm-steps li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 30px;
}

.adm-steps li::before {
    content: counter(瓊);
    counter-increment: steps;
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.adm-steps {
    counter-reset: steps;
}

.adm-docs ul {
    padding-left: 20px;
    list-style: none;
}

.adm-docs li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 25px;
}

.adm-docs li::before {
    content: '📋';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1rem;
}

.small-text {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 12px;
}

.adm-buttons {
    display: flex;
    gap: 20px;
    margin-top: 45px;
}

/* ==========================================================================
   Testimonials Section - Storybook Style
   ========================================================================== */
.testimonials {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--background-color) 0%, #FFF8E1 50%, var(--white) 100%);
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.testimonials .section-header::before {
    content: '💬';
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3rem;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    position: relative;
    z-index: 1;
}

.testimonial-card {
    background: linear-gradient(145deg, var(--white), var(--background-color));
    padding: 35px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
    transition: var(--transition-smooth);
    border: 3px solid transparent;
}

.testimonial-card:hover, .testimonial-card.mobile-active {
    translate: 0 -8px;
    rotate: -1deg;
    transform: rotateX(5deg) rotateY(-5deg);
    border-color: var(--primary-color) !important;
}

.testimonial-card::before {
    content: '\201C';
    font-family: Georgia, serif;
    font-size: 100px;
    color: var(--primary-color);
    opacity: 0.15;
    position: absolute;
    top: -20px;
    left: 20px;
    line-height: 1;
}

.testimonial-card::after {
    content: '⭐';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
}

.stars {
    margin-bottom: 18px;
    font-size: 1.3rem;
    color: var(--primary-color);
}

.review {
    font-style: italic;
    margin-bottom: 22px;
    color: var(--gray-dark);
    line-height: 1.7;
    font-size: 1.02rem;
}

.reviewer strong {
    display: block;
    color: var(--secondary-color);
    font-size: 1.05rem;
}

.reviewer span {
    font-size: 0.9rem;
    color: #888;
}

/* ==========================================================================
   Gallery Section - Storybook Style
   ========================================================================== */
.gallery {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--white) 0%, var(--background-color) 100%);
    position: relative;
    overflow: hidden;
}

.gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--primary-color));
}


.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.gallery-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    position: relative;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 1;
}

.gallery-item:hover, .gallery-item.mobile-active {
    scale: 1.03;
    rotate: -1deg;
    box-shadow: 0 25px 50px rgba(255, 107, 53, 0.25) !important;
}

.gallery-item:hover::before, .gallery-item.mobile-active::before {
    opacity: 0.2;
}

.gallery-item .image-placeholder {
    width: 100%;
    height: 250px;
    border: none;
    border-radius: 0;
    background: linear-gradient(135deg, #f0f0f0, #e8e8e8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-weight: 600;
}

.gallery .text-center {
    margin-top: 35px;
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   Contact Section - Storybook Style
   ========================================================================== */
.contact {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--background-color) 0%, #FFF8E1 100%);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 350px;
    height: 350px;
    background: var(--primary-color);
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.2;
}

.contact-wrapper {
    display: flex;
    gap: 50px;
    background: linear-gradient(145deg, var(--white), var(--background-color));
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.contact-form-container {
    flex: 3;
    padding: 55px;
}

.contact-form-container h2 {
    margin-bottom: 12px;
}

.contact-form-container h2::after {
    content: ' ✨';
}

.contact-form-container p {
    margin-bottom: 35px;
    color: var(--gray-dark);
}

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

.form-row {
    display: flex;
    gap: 22px;
}

.form-row .form-group {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--secondary-color);
    font-family: var(--font-heading);
}

input,
select,
textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e8e8e8;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-fast);
    background: var(--white);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.15);
}

.contact-info-container {
    flex: 2;
    background: linear-gradient(145deg, var(--secondary-color) 0%, #2A2A4A 100%);
    color: var(--white);
    padding: 55px;
    position: relative;
    overflow: hidden;
}

.contact-info-container::before {
    content: '🐝';
    position: absolute;
    bottom: -30px;
    right: -30px;
    font-size: 200px;
    opacity: 0.05;
}

.contact-info-container h3 {
    color: var(--primary-color);
    margin-bottom: 35px;
    font-size: 1.6rem;
}

.info-item {
    display: flex;
    gap: 18px;
    margin-bottom: 28px;
}

.info-item i {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-top: 4px;
}

.info-item h4 {
    color: var(--white);
    margin-bottom: 6px;
    font-size: 1.15rem;
}

.info-item p {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.6;
}

.info-item a {
    color: var(--white);
    transition: var(--transition-fast);
}

.info-item a:hover {
    color: var(--primary-color);
}

.map-container {
    margin-top: 35px;
    border-radius: var(--radius-md);
    overflow: hidden;
}

/* ==========================================================================
   Footer - Storybook Style
   ========================================================================== */
.footer {
    background: linear-gradient(180deg, #111122 0%, #0A0A15 100%);
    color: var(--white);
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--primary-color), var(--accent-color));
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.footer-col {
    flex: 1;
    min-width: 260px;
}

.brand-col h3 {
    color: var(--white);
    font-size: 1.6rem;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-col p {
    color: #aaa;
    margin-bottom: 22px;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition-smooth);
    font-size: 1.2rem;
}

.social-links a:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--secondary-color);
    transform: translateY(-5px) rotate(10deg);
}

.footer-col h4 {
    color: var(--primary-color);
    margin-bottom: 22px;
    font-size: 1.25rem;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #aaa;
    transition: var(--transition-fast);
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    padding-left: 8px;
}

.footer-col p {
    color: #aaa;
    margin-bottom: 12px;
    line-height: 1.6;
}

.footer-bottom {
    background: #050508;
    text-align: center;
    padding: 25px 0;
    color: #666;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

.footer-bottom::before {
    content: 'Made with ❤️ for little learners ✨';
}

/* ==========================================================================
   WhatsApp Floating Button - Storybook Style
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 35px;
    right: 35px;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    z-index: 100;
    transition: var(--transition-smooth);
    animation: whatsapp-pulse 2.5s ease-in-out infinite;
}

@keyframes whatsapp-pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 10px 30px rgba(37, 211, 102, 0.6);
    }
}

.whatsapp-float:hover {
    transform: scale(1.15) rotate(10deg);
}

/* ==========================================================================
   Gyroscope Floating Button
   ========================================================================== */
.gyro-float {
    position: fixed;
    bottom: 115px;
    right: 35px;
    background: linear-gradient(135deg, var(--accent-color), #ff4e00);
    color: white;
    border: none;
    border-radius: var(--radius-pill);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    z-index: 100;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: none;
}

.gyro-float i {
    font-size: 1.2rem;
}

.gyro-float.active {
    background: linear-gradient(135deg, #2A2A4A, var(--secondary-color));
    box-shadow: 0 6px 20px rgba(42, 42, 74, 0.4);
}

.gyro-float:hover {
    transform: scale(1.05);
}

/* ==========================================================================
   Storybook Floating Decorations - Global
   ========================================================================== */
.storybook-float {
    position: fixed;
    pointer-events: none;
    z-index: 50;
    opacity: 0.6;
    transition: transform 0.3s ease-out;
}

.storybook-float.bee-1 {
    top: 20%;
    left: 5%;
    font-size: 2rem;
    animation: float-bee-1 8s ease-in-out infinite;
}

.storybook-float.star-1 {
    top: 40%;
    right: 8%;
    font-size: 1.5rem;
    animation: float-star-1 10s ease-in-out infinite;
}

.storybook-float.bee-2 {
    bottom: 25%;
    left: 3%;
    font-size: 1.8rem;
    animation: float-bee-2 12s ease-in-out infinite;
}

.storybook-float.heart-1 {
    bottom: 15%;
    right: 5%;
    font-size: 1.5rem;
    animation: float-heart-1 9s ease-in-out infinite;
}

@keyframes float-bee-1 {

    0%,
    100% {
        transform: translate(0, 0) rotate(-10deg);
    }

    25% {
        transform: translate(20px, -30px) rotate(10deg);
    }

    50% {
        transform: translate(10px, -15px) rotate(-5deg);
    }

    75% {
        transform: translate(30px, -25px) rotate(15deg);
    }
}

@keyframes float-star-1 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(-15px, 20px) rotate(180deg);
    }
}

@keyframes float-bee-2 {

    0%,
    100% {
        transform: translate(0, 0) rotate(5deg);
    }

    33% {
        transform: translate(-25px, 15px) rotate(-10deg);
    }

    66% {
        transform: translate(15px, -20px) rotate(8deg);
    }
}

@keyframes float-heart-1 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-20px, -15px) scale(1.2);
    }
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3.2rem;
    }

    .contact-wrapper {
        flex-direction: column;
    }

    .teaching-philosophy {
        flex-direction: column;
    }

    .phil-text {
        padding: 35px;
    }

    .phil-image .image-placeholder {
        min-height: 250px;
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }

    .nav-links,
    .nav-cta {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .navbar {
        padding: 15px 20px;
    }

    .hero {
        padding-top: 110px;
        padding-bottom: 90px;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
    }

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

    .about-container {
        flex-direction: column;
    }

    .about-image {
        order: -1;
        width: 100%;
        margin-bottom: 30px;
    }

    .about-real-image {
        height: 250px;
    }

    .mission-vision {
        flex-direction: column;
    }

    .admissions-card {
        padding: 35px 25px;
    }

    .adm-buttons {
        flex-direction: column;
    }

    .contact-form-container {
        padding: 35px 25px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .storybook-float {
        display: none;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
        padding: 25px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .programme-card {
        padding: 25px;
    }

    .adm-content h2 {
        font-size: 2rem;
    }
}

/* Mobile Menu Active State */
.nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    padding: 25px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    gap: 18px;
    border-radius: 0 0 20px 20px;
}

.nav-links.active a {
    display: block;
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.nav-links.active a::after {
    display: none;
}

/* ==========================================================================
   Parallax Scroll Effects - Global
   ========================================================================== */
[data-parallax] {
    will-change: transform;
    transition: transform 0.1s ease-out;
}

/* ==========================================================================
   Buttery Alternating Slide-In Card Animation
   ========================================================================== */

/* Base state: before card is revealed */
.slide-from-left,
.slide-from-right {
    opacity: 0;
    will-change: transform, opacity;
    /* Buttery easing: slow start, smooth overshoot settle */
    transition:
        transform 0.75s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.slide-from-left {
    transform: translateX(-120px) translateY(-80px);
}

.slide-from-right {
    transform: translateX(120px) translateY(-80px);
}

/* Revealed state: card snaps smoothly into place */
.slide-from-left.slide-in,
.slide-from-right.slide-in {
    opacity: 1;
    transform: translateX(0);
}

/* Floating element parallax */
.floating-parallax {
    animation: gentle-float 6s ease-in-out infinite;
}

@keyframes gentle-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* ==========================================================================
   Mobile Performance Optimizations
   ========================================================================== */
@media (max-width: 768px) {
    /* Remove GPU-heavy blur filters from moving 3D elements */
    .blob::after, .collage-blob::after, .hero-text::before {
        display: none !important;
        filter: none !important;
    }

    /* Remove heavy box-shadows inside preserve-3d layers */
    .collage-blob {
        box-shadow: none !important;
    }

    .image-blob {
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
    }
}
/* ==========================================================================
   Mobile Pure CSS Scroll Animations (Slide Up)
   ========================================================================== */
@media (max-width: 768px) {
    .mobile-slide-left, .mobile-slide-right {
        opacity: 0;
    }
    .mobile-slide-left.in-view {
        animation: mobileSlideLeftAnim 0.6s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
    }
    .mobile-slide-right.in-view {
        animation: mobileSlideRightAnim 0.6s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
    }

    @keyframes mobileSlideLeftAnim {
        0% {
            opacity: 0;
            transform: translate3d(-60px, 40px, 0);
        }
        100% {
            opacity: 1;
            transform: translate3d(0, 0, 0);
        }
    }
    
    @keyframes mobileSlideRightAnim {
        0% {
            opacity: 0;
            transform: translate3d(60px, 40px, 0);
        }
        100% {
            opacity: 1;
            transform: translate3d(0, 0, 0);
        }
    }
}

/* ==========================================================================
   Enquiry Success Modal
   ========================================================================== */

.eq-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
    animation: eqOverlayIn 0.3s ease;
}

@keyframes eqOverlayIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.eq-modal-overlay.eq-modal-exit {
    animation: eqOverlayOut 0.35s ease forwards;
}

@keyframes eqOverlayOut {
    to { opacity: 0; }
}

.eq-modal {
    background: #ffffff;
    border-radius: 28px;
    padding: 2.5rem 2rem 2rem;
    max-width: 440px;
    width: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(0,0,0,0.04);
    animation: eqModalIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes eqModalIn {
    from { opacity: 0; transform: scale(0.78) translateY(24px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.eq-modal-exit .eq-modal {
    animation: eqModalOut 0.3s ease forwards;
}

@keyframes eqModalOut {
    to { opacity: 0; transform: scale(0.88) translateY(16px); }
}

/* Confetti dots */
.eq-confetti {
    position: absolute;
    top: -8px;
    left: var(--x, 50%);
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: var(--c, #fbbf24);
    animation: eqConfettiFall 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) var(--d, 0s) both;
    pointer-events: none;
}

@keyframes eqConfettiFall {
    0%   { transform: translateY(0) rotate(0deg) scale(1);   opacity: 1; }
    100% { transform: translateY(180px) rotate(720deg) scale(0.4); opacity: 0; }
}

/* Animated check icon */
.eq-icon-wrap {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.25rem;
}

.eq-icon-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    animation: eqRingPulse 2s ease-in-out infinite;
}

@keyframes eqRingPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.35); }
    50%       { box-shadow: 0 0 0 14px rgba(34, 197, 94, 0); }
}

.eq-check {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #16a34a;
    line-height: 80px;
    animation: eqCheckBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s both;
}

@keyframes eqCheckBounce {
    from { opacity: 0; transform: scale(0.3) rotate(-20deg); }
    to   { opacity: 1; transform: scale(1) rotate(0deg); }
}

/* Text */
.eq-title {
    font-size: 1.55rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.4rem;
    line-height: 1.25;
}

.eq-sub {
    font-size: 0.97rem;
    color: #475569;
    margin: 0 0 1.5rem;
    line-height: 1.6;
}

/* Detail rows */
.eq-details {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1rem 1.1rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    text-align: left;
}

.eq-detail-row {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.5;
}

.eq-detail-row i {
    color: var(--primary, #f59e0b);
    font-size: 0.9rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.eq-detail-row a {
    color: var(--primary, #f59e0b);
    text-decoration: none;
}

.eq-detail-row strong {
    color: #1e293b;
}

/* Action buttons */
.eq-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.eq-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.7rem 1.4rem;
    border-radius: 50px;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
    border: none;
    font-family: inherit;
}

.eq-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.14);
}

.eq-btn:active {
    transform: translateY(0);
}

.eq-btn-wa {
    background: #25d366;
    color: #fff;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
}

.eq-btn-wa:hover {
    background: #22be5c;
    color: #fff;
}

.eq-btn-close {
    background: #f1f5f9;
    color: #475569;
}

.eq-btn-close:hover {
    background: #e2e8f0;
    color: #1e293b;
}

/* ==========================================================================
   Enquiry Error Toast
   ========================================================================== */

.eq-error-toast {
    position: fixed;
    top: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #1e293b;
    color: #f8fafc;
    border-left: 4px solid #ef4444;
    border-radius: 12px;
    padding: 0.85rem 1.1rem 0.85rem 1rem;
    font-size: 0.92rem;
    font-weight: 500;
    max-width: min(480px, calc(100vw - 2rem));
    width: max-content;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    animation: eqToastIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    line-height: 1.45;
}

@keyframes eqToastIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-20px) scale(0.94); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0)      scale(1);    }
}

.eq-error-toast i.fa-circle-exclamation {
    color: #ef4444;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.eq-error-toast button {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.1rem 0.2rem;
    margin-left: 0.25rem;
    flex-shrink: 0;
    transition: color 0.15s;
}

.eq-error-toast button:hover {
    color: #f8fafc;
}

@media (max-width: 480px) {
    .eq-modal {
        padding: 2rem 1.25rem 1.5rem;
        border-radius: 20px;
    }

    .eq-title {
        font-size: 1.3rem;
    }

    .eq-actions {
        flex-direction: column;
    }

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