/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--off-white);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Color Variables */
:root {
    --primary-color: #7ED4E6;
    /* Soft Sky Blue */
    --secondary-color: #FFB7B2;
    /* Warm Peach/Pink */
    --accent-color: #A8E6CF;
    /* Mint Green */
    --highlight-color: #FFD3B6;
    /* Butter Yellow */
    --text-dark: #2C3E50;
    --text-light: #5F7182;
    --white: #ffffff;
    --off-white: #FFFDF9;
    /* Warm organic background */
    --light-gray: #F0F4F8;

    /* Organic Soft Shadows */
    --shadow: 0 12px 35px rgba(126, 212, 230, 0.15);
    --shadow-light: 0 6px 18px rgba(126, 212, 230, 0.1);
    --shadow-strong: 0 15px 40px rgba(44, 62, 80, 0.1);

    /* Playful Border Radii */
    --border-radius: 16px;
    --border-radius-organic: 20px 40px 20px 40px;
    --border-radius-organic-alt: 40px 20px 40px 20px;

    --transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Bouncy spring transition */

    /* Additional pastel colors for sections */
    --pastel-blue: #7ED4E6;
    --pastel-pink: #FFB7B2;
    --pastel-mint: #A8E6CF;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Baloo 2', cursive;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* Global Icon Styling */
.fas,
.fab,
.far {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* Override gradient-clip icon styling for containers with colored backgrounds */
/* These icons need solid color (white or inherit), NOT the transparent gradient-clip effect */
.cta-button .fas,
.cta-button .far,
.cta-button .fab,
.social-link .fab,
.social-link .fas,
.footer-social-link .fab,
.footer-social-link .fas,
.value-icon .fas,
.value-icon .far,
.value-icon .fab,
.philosophy-icon .fas,
.philosophy-icon .far,
.platform-icon .fab,
.platform-icon .fas,
.slider-btn .fas,
.slider-btn .far,
.scroll-indicator .fas,
.scroll-indicator .far,
.video-play-overlay .fas,
.fallback-icon .fas,
.fallback-icon .far,
.footer-contact-icon .fas,
.footer-contact-icon .far,
.info-icon .fas,
.info-icon .far,
.whatsapp-float .fab,
.whatsapp-float .fas,
.step-number .fas,
.step-number .far,
.contact-cta-button .fas,
.contact-cta-button .far,
.hero-content .fas,
.hero-content .far,
.tab-button .fab,
.tab-button .fas,
.platform-badge .fab,
.platform-badge .fas,
.platform-follow-btn .fab,
.platform-follow-btn .fas,
.facebook-link .fab,
.instagram-link .fab,
.platform-cta .fab,
.platform-header .fab,
.philosophy-quote .fas,
.philosophy-quote .far {
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: currentcolor;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Enhanced Navigation with Glassmorphism */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 253, 249, 0.7);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-light);
    z-index: 1000;
    transition: var(--transition);
}

/* Enhanced navbar scroll effects with glassmorphism */
.navbar.scrolled {
    background: rgba(255, 253, 249, 0.95);
    box-shadow: var(--shadow);
    backdrop-filter: blur(28px) saturate(150%);
    -webkit-backdrop-filter: blur(28px) saturate(150%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.8);
}

.navbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-family: 'Baloo 2', cursive;
}

/* Desktop - Increase gap between logo image and text */
@media (min-width: 769px) {
    .nav-logo {
        gap: 1rem;
        /* Increased gap for desktop users */
    }
}

/* Mobile - Decrease gap between logo image and text */
@media (max-width: 768px) {
    .nav-logo {
        gap: 0.01rem;
        /* Minimal gap for mobile users */
    }
}

.nav-logo a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 65px;
    height: 65px;
    border-radius: 50%;
}

.logo-img {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.logo-text {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.4rem;
}

.logo-text strong {
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    color: #2c3e50;
    font-weight: 800;
    font-family: 'Baloo 2', cursive;
    line-height: 1.1;
}

.logo-text small {
    font-size: 0.7rem;
    font-weight: 400;
    display: block;
    margin-top: -0.3rem;
    color: var(--text-light);
}

/* Desktop - Reduce gap between main text and subtitle */
@media (min-width: 769px) {
    .logo-text small {
        margin-top: -0.8rem;
    }
}

/* Large screens - Increase title text size */
@media (min-width: 376px) {
    .logo-text strong {
        font-size: clamp(1.6rem, 2.2vw, 2rem);
        color: #2c3e50;
        font-weight: 800;
    }
}

/* Even larger screens - Further increase title text size */
@media (min-width: 400px) {
    .logo-text strong {
        font-size: clamp(1.8rem, 2.5vw, 2.3rem);
        color: #2c3e50;
        font-weight: 800;
    }
}

/* Desktop - Larger logo text */
@media (min-width: 769px) {
    .logo-text {
        font-size: clamp(1.6rem, 2vw, 2rem);
    }

    .logo-text strong {
        font-size: clamp(1.8rem, 2.5vw, 2.2rem);
        color: #2c3e50;
        font-weight: 800;
    }

    .logo-text small {
        font-size: 0.9rem;
        margin-top: -0.6rem;
    }

    /* Hide mobile spaces on desktop */
    .mobile-space {
        display: none;
    }

    /* Mobile navigation title-subtitle spacing and positioning */
    @media (max-width: 768px) {
        .logo-text small {
            margin-top: -0.55rem;
            /* Enhanced spacing for better subtitle positioning on mobile */
        }

        /* Move title text slightly upwards on mobile */
        .logo-text strong {
            margin-top: -2px;
            /* Move title up by 2px */
        }

        /* Reduce nav container height for mobile */
        .nav-container {
            height: 70px;
            /* Reduced from 80px */
            padding: 0 1rem;
            /* Reduced horizontal padding */
        }

        /* Adjust navbar height for mobile */
        .navbar {
            height: 70px;
            /* Match container height */
        }
    }
}

.nav-menu {
    display: flex;
    gap: 0.375rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
    font-size: 0.95rem;
    display: inline-block;
}

.nav-link.active {
    color: var(--text-dark);
    background: rgba(126, 212, 230, 0.15);
    transform: translateY(-2px);
}

@media (hover: hover) {
    .nav-link:hover {
        color: var(--text-dark);
        background: rgba(126, 212, 230, 0.15);
        transform: translateY(-2px);
    }
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.hamburger:hover {
    background-color: rgba(135, 206, 235, 0.1);
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

/* Hamburger to X animation */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero Section */
.hero {
    min-height: clamp(70vh, 90vh, 100vh);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, var(--off-white) 0%, rgba(135, 206, 235, 0.1) 100%);
    overflow: hidden;
}

/* Desktop Home Page Hero - 850px height */
@media (min-width: 769px) {
    body.home-page .hero {
        min-height: 850px;
        height: 850px;
    }

    body.home-page .hero-background {
        min-height: 850px;
        height: 850px;
    }
}

/* Compact Hero for Non-Home Pages - made larger for desktop while keeping mobile compact */
body:not(.home-page) .hero {
    min-height: clamp(40vh, 65vh, 80vh);
}

.hero-background {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Compact Hero Background for Non-Home Pages - made larger for desktop */
body:not(.home-page) .hero-background {
    min-height: 600px;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
    opacity: 0.15;
    pointer-events: none;
}

/* Hero Background Video */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 1;
    pointer-events: none;
    transform: scale(1.02);
    /* Slight scale to ensure no gaps */
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

/* Enhanced Video Fallback for Non-Supporting Browsers */
.video-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,
            #87CEEB 0%,
            #FFB6C1 25%,
            #98FB98 50%,
            #87CEEB 75%,
            #FFB6C1 100%);
    z-index: 1;
    cursor: pointer;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Video play button overlay */
.video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    opacity: 0;
    visibility: hidden;
}

.video-play-overlay:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.video-play-overlay.show {
    opacity: 1;
    visibility: visible;
}

.fallback-content {
    text-align: center;
    color: var(--text-dark);
    padding: 2rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    animation: fadeInUp 1s ease-out;
}

.fallback-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    animation: gentlePulse 2s ease-in-out infinite;
}

.fallback-content h2 {
    font-family: 'Baloo 2', cursive;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #2c3e50, #e74c3c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.fallback-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-weight: 500;
}

.fallback-features {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.feature-tag {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(135, 206, 235, 0.3);
    animation: slideInUp 0.6s ease-out;
}

.feature-tag:nth-child(2) {
    animation-delay: 0.2s;
}

.feature-tag:nth-child(3) {
    animation-delay: 0.4s;
}

/* Hero Overlay for Smoky Effect */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(0, 0, 0, 0.3) 0%,
            rgba(0, 0, 0, 0.2) 30%,
            rgba(0, 0, 0, 0.4) 70%,
            rgba(0, 0, 0, 0.5) 100%);
    z-index: 2;
    pointer-events: none;
}

/* Background Leaves - Site Wide */
.background-leaves {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* Ensure floating elements are visible behind content */
.background-leaves .leaf {
    z-index: 0;
    position: absolute;
}

.leaf {
    position: absolute;
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    animation: gentleFloat 12s ease-in-out infinite;
    opacity: 0.15;
    transition: opacity 0.5s ease;
    color: var(--primary-color);
}

/* Disable background leaves on mobile for better performance */
@media (max-width: 768px) {
    .background-leaves {
        display: none;
    }
}

/* Distributed positioning across entire viewport */
.leaf-1 {
    top: 8%;
    left: 5%;
    animation-delay: 0s;
    animation-duration: 15s;
}

.leaf-2 {
    top: 15%;
    right: 8%;
    animation-delay: 3s;
    animation-duration: 12s;
}

.leaf-3 {
    bottom: 25%;
    left: 12%;
    animation-delay: 6s;
    animation-duration: 18s;
}

.leaf-4 {
    bottom: 35%;
    right: 6%;
    animation-delay: 9s;
    animation-duration: 14s;
}

.leaf-5 {
    top: 5%;
    left: 25%;
    animation-delay: 2s;
    animation-duration: 16s;
}

.leaf-6 {
    top: 30%;
    left: 2%;
    animation-delay: 8s;
    animation-duration: 13s;
}

.leaf-7 {
    bottom: 12%;
    right: 20%;
    animation-delay: 5s;
    animation-duration: 17s;
}

.leaf-8 {
    bottom: 45%;
    left: 3%;
    animation-delay: 11s;
    animation-duration: 19s;
}

.leaf-9 {
    top: 40%;
    right: 4%;
    animation-delay: 1s;
    animation-duration: 11s;
}

.leaf-10 {
    top: 3%;
    right: 25%;
    animation-delay: 7s;
    animation-duration: 20s;
}

.leaf-11 {
    top: 20%;
    left: 15%;
    animation-delay: 4s;
    animation-duration: 14s;
}

.leaf-12 {
    bottom: 8%;
    right: 12%;
    animation-delay: 10s;
    animation-duration: 16s;
}

.leaf-13 {
    top: 35%;
    left: 8%;
    animation-delay: 12s;
    animation-duration: 13s;
}

.leaf-14 {
    bottom: 30%;
    left: 18%;
    animation-delay: 14s;
    animation-duration: 15s;
}

.leaf-15 {
    top: 12%;
    right: 15%;
    animation-delay: 13s;
    animation-duration: 12s;
}

/* Montessori-inspired leaf symbols */
.leaf::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, currentColor 20%, transparent 80%);
    border-radius: 50% 0 50% 0;
    opacity: 0.3;
}

/* Apply different animation combinations and 3D depth */
.leaf:nth-child(odd) {
    animation: gentleFloat 8s ease-in-out infinite, gentleSway 4s ease-in-out infinite 1s;
    filter: blur(2px);
    z-index: 0;
}

.leaf:nth-child(even) {
    animation: gentleFloat 10s ease-in-out infinite reverse, gentleSway 5s ease-in-out infinite 2s;
    filter: blur(4px);
    transform: scale(0.8);
    z-index: -1;
}

@keyframes gentleFloat {
    0% {
        transform: translateY(0px) translateX(0px) rotate3d(1, 1, 1, 0deg) scale(1);
        opacity: 0.15;
    }

    33% {
        transform: translateY(-15px) translateX(10px) rotate3d(1, 1, 1, 15deg) scale(1.05);
        opacity: 0.25;
    }

    66% {
        transform: translateY(-5px) translateX(-5px) rotate3d(1, 1, 1, -10deg) scale(0.95);
        opacity: 0.20;
    }

    100% {
        transform: translateY(0px) translateX(0px) rotate3d(1, 1, 1, 0deg) scale(1);
        opacity: 0.15;
    }
}

/* Sway animation for additional natural movement */
@keyframes gentleSway {

    0%,
    100% {
        transform: translateX(0px) rotate(0deg);
    }

    25% {
        transform: translateX(3px) rotate(2deg);
    }

    75% {
        transform: translateX(-3px) rotate(-2deg);
    }
}

/* Apply different animation combinations */
.leaf:nth-child(odd) {
    animation: gentleFloat 8s ease-in-out infinite, gentleSway 4s ease-in-out infinite 1s;
}

.leaf:nth-child(even) {
    animation: gentleFloat 10s ease-in-out infinite reverse, gentleSway 5s ease-in-out infinite 2s;
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 900px;
    padding: 0 2rem 3rem 2rem;
}

/* Compact Hero Content for Non-Home Pages */
body:not(.home-page) .hero-content {
    max-width: 700px;
    padding: 0 1.5rem 2rem 1.5rem;
}

/* Position hero content at bottom for non-Home pages */
body:not(.home-page) .hero-content {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0 2rem 2rem 2rem;
    max-width: 600px;
    text-align: center;
}

/* Hide CTA button on non-home pages for more compact design */
body:not(.home-page) .cta-button {
    display: none;
}

.hero-title {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
}

/* Hero title gradient effect for all pages except home */
body:not(.home-page) .hero-title {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Home page hero title gradient effect for "Nurturing Curiosity," */
body.home-page .hero-title {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight {
    color: var(--accent-color);
    -webkit-text-fill-color: var(--accent-color);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: white;
}

/* Compact hero subtitle for non-home pages */
body:not(.home-page) .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.cta-button {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--text-dark);
    border: none;
    padding: 1rem 2.2rem;
    font-size: 1.15rem;
    font-weight: 700;
    font-family: 'Baloo 2', cursive;
    border-radius: var(--border-radius-organic);
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    box-shadow: var(--shadow-light);
    letter-spacing: 0.5px;
}

@media (hover: hover) {
    .cta-button:hover {
        transform: translateY(-5px) scale(1.03) rotate(-1deg);
        box-shadow: var(--shadow);
        border-radius: var(--border-radius-organic-alt);
        background: linear-gradient(135deg, var(--secondary-color), var(--highlight-color));
    }
}

.arrow {
    transition: var(--transition);
}

@media (hover: hover) {
    .cta-button:hover .arrow {
        transform: translateY(3px);
    }

    /* Enhanced button/link hover animations */
    button:hover,
    a:hover {
        transform: translateY(-2px);
    }
}

button,
a {
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

/* Additional hover effects for interactive elements */
.nav-link,
.cta-button,
.form-submit,
.social-link,
.footer-social-link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (hover: hover) {

    .nav-link:hover,
    .cta-button:hover,
    .form-submit:hover,
    .social-link:hover,
    .footer-social-link:hover {
        transform: translateY(-2px);
    }
}

/* Mobile layout adjustments */
@media (max-width: 768px) {
    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        width: auto;
        justify-content: center;
    }

    /* Make hero content wider and show full text on mobile */
    .hero-content {
        padding: 0 1rem 2rem 1rem;
        max-width: 100%;
        width: 100%;
    }

    /* Ensure text displays fully without line restrictions */
    .hero-title,
    .hero-subtitle {
        line-height: 1.3;
        margin-bottom: 1rem;
    }

    /* Compact mobile hero content for non-home pages */
    body:not(.home-page) .hero-content {
        padding: 0 0.75rem 1.5rem 0.75rem;
        bottom: 1rem;
    }


    body:not(.home-page) .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
}

@keyframes gentlePulse {

    0%,
    100% {
        box-shadow: var(--shadow-light);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 8px 25px rgba(135, 206, 235, 0.3);
        transform: scale(1.05);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Advanced Micro-interactions System */
.interactive-element {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.interactive-element::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    pointer-events: none;
    z-index: 0;
}

.interactive-element:hover::before {
    width: 300px;
    height: 300px;
}

.interactive-element>* {
    position: relative;
    z-index: 1;
}

/* Staggered Animation System */
.stagger-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.stagger-item {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    animation: staggerIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.stagger-item:nth-child(1) {
    animation-delay: 0.1s;
}

.stagger-item:nth-child(2) {
    animation-delay: 0.2s;
}

.stagger-item:nth-child(3) {
    animation-delay: 0.3s;
}

.stagger-item:nth-child(4) {
    animation-delay: 0.4s;
}

.stagger-item:nth-child(5) {
    animation-delay: 0.5s;
}

.stagger-item:nth-child(6) {
    animation-delay: 0.6s;
}

@keyframes staggerIn {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95) rotateX(10deg);
    }

    60% {
        opacity: 0.8;
        transform: translateY(-5px) scale(1.02) rotateX(-2deg);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotateX(0deg);
    }
}


/* Magnetic Hover Effect */
.magnetic-hover {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.magnetic-hover:hover {
    transform: scale(1.05) rotate(1deg);
    animation: magneticPulse 2s ease-in-out infinite;
}

@keyframes magneticPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(135, 206, 235, 0.4);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(135, 206, 235, 0);
    }
}

/* Morphing Elements */
.morphing-element {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
}

.morphing-element:hover {
    border-radius: 50%;
    transform: rotate(180deg) scale(1.1);
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
}


/* Advanced Button States */
.btn-advanced {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.btn-advanced::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: left 0.6s ease;
}

.btn-advanced:hover::before {
    left: 100%;
}

.btn-advanced:hover {
    transform: translateY(-3px) rotateX(5deg);
    box-shadow: 0 15px 35px rgba(135, 206, 235, 0.4);
}

.btn-advanced:active {
    transform: translateY(-1px) rotateX(2deg) scale(0.98);
    transition: transform 0.1s ease;
}

/* Interactive Card System */
.interactive-card {
    position: relative;
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    overflow: hidden;
}

.interactive-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(135, 206, 235, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    transform: rotate(45deg);
}

.interactive-card:hover::before {
    opacity: 1;
}

.interactive-card:hover {
    transform: translateY(-8px) rotateY(5deg) rotateX(2deg) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Breathing Animation for Subtle Feedback */
.breathing {
    animation: breathe 3s ease-in-out infinite;
}

@keyframes breathe {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

/* Typewriter Effect */
.typewriter {
    overflow: hidden;
    border-right: 2px solid var(--primary-color);
    white-space: nowrap;
    animation: typewriter 3s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typewriter {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent;
    }

    50% {
        border-color: var(--primary-color);
    }
}

/* Complex Keyframe Animations System */
.physics-animation {
    animation: physicsFloat 4s ease-in-out infinite;
    transform-origin: center;
}

@keyframes physicsFloat {
    0% {
        transform: translateY(0px) rotate(0deg) scale(1);
        animation-timing-function: ease-out;
    }

    10% {
        transform: translateY(-15px) rotate(2deg) scale(1.02);
        animation-timing-function: ease-in;
    }

    35% {
        transform: translateY(-5px) rotate(-1deg) scale(0.98);
        animation-timing-function: ease-out;
    }

    50% {
        transform: translateY(-20px) rotate(3deg) scale(1.05);
        animation-timing-function: ease-in;
    }

    75% {
        transform: translateY(-8px) rotate(-2deg) scale(0.97);
        animation-timing-function: ease-out;
    }

    100% {
        transform: translateY(0px) rotate(0deg) scale(1);
        animation-timing-function: ease-in;
    }
}

/* Morphing Shape Animation */
.morphing-shape {
    animation: morphShape 6s ease-in-out infinite;
    transform-origin: center;
}

@keyframes morphShape {
    0% {
        border-radius: 50% 30% 70% 40%;
        transform: rotate(0deg) scale(1);
    }

    25% {
        border-radius: 30% 70% 40% 60%;
        transform: rotate(90deg) scale(1.1);
    }

    50% {
        border-radius: 70% 40% 60% 30%;
        transform: rotate(180deg) scale(0.9);
    }

    75% {
        border-radius: 40% 60% 30% 70%;
        transform: rotate(270deg) scale(1.05);
    }

    100% {
        border-radius: 50% 30% 70% 40%;
        transform: rotate(360deg) scale(1);
    }
}

/* Advanced Loading Spinner */
.loading-spinner {
    animation: advancedSpin 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    transform-style: preserve-3d;
}

@keyframes advancedSpin {
    0% {
        transform: rotateY(0deg) rotateX(0deg) scale(1);
        opacity: 1;
    }

    25% {
        transform: rotateY(90deg) rotateX(45deg) scale(1.1);
        opacity: 0.8;
    }

    50% {
        transform: rotateY(180deg) rotateX(90deg) scale(0.9);
        opacity: 0.6;
    }

    75% {
        transform: rotateY(270deg) rotateX(135deg) scale(1.1);
        opacity: 0.8;
    }

    100% {
        transform: rotateY(360deg) rotateX(180deg) scale(1);
        opacity: 1;
    }
}

/* Particle System Animation */
.particle-system-animation {
    position: relative;
    overflow: hidden;
}

.particle-item {
    position: absolute;
    animation: particleFlow 8s linear infinite;
    opacity: 0;
}

@keyframes particleFlow {
    0% {
        transform: translateX(-100px) translateY(100px) scale(0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
        transform: translateX(-50px) translateY(75px) scale(0.5) rotate(45deg);
    }

    35% {
        transform: translateX(25px) translateY(25px) scale(1) rotate(180deg);
        opacity: 0.8;
    }

    65% {
        transform: translateX(100px) translateY(-25px) scale(0.8) rotate(270deg);
        opacity: 0.6;
    }

    90% {
        transform: translateX(150px) translateY(-50px) scale(0.3) rotate(315deg);
        opacity: 0.2;
    }

    100% {
        transform: translateX(200px) translateY(-100px) scale(0) rotate(360deg);
        opacity: 0;
    }
}

/* Elastic Animation */
.elastic-element {
    animation: elasticBounce 3s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

@keyframes elasticBounce {
    0% {
        transform: scale(1);
        animation-timing-function: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }

    10% {
        transform: scale(1.2);
        animation-timing-function: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }

    20% {
        transform: scale(0.9);
        animation-timing-function: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }

    30% {
        transform: scale(1.1);
        animation-timing-function: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }

    50% {
        transform: scale(0.95);
        animation-timing-function: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }

    70% {
        transform: scale(1.05);
        animation-timing-function: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }

    100% {
        transform: scale(1);
        animation-timing-function: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }
}

/* Wave Text Animation */
.wave-text {
    display: inline-block;
}

.wave-text span {
    display: inline-block;
    animation: waveChar 2s ease-in-out infinite;
}

@keyframes waveChar {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    25% {
        transform: translateY(-10px) rotate(2deg);
    }

    50% {
        transform: translateY(0px) rotate(0deg);
    }

    75% {
        transform: translateY(5px) rotate(-1deg);
    }
}

/* Complex Hover Chain Reaction */
.hover-chain {
    position: relative;
    overflow: hidden;
}

.hover-chain::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.1) 50%,
            transparent 100%);
    animation: chainReaction 0.8s ease-in-out;
}

@keyframes chainReaction {
    0% {
        left: -100%;
    }

    50% {
        left: 0%;
    }

    100% {
        left: 100%;
    }
}

/* 3D Card Flip Animation */
.flip-card {
    perspective: 1000px;
    transform-style: preserve-3d;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.flip-card-back {
    transform: rotateY(180deg);
}

/* Advanced Background Pattern Animation */
.animated-bg {
    position: relative;
    overflow: hidden;
}

.bg-pattern {
    position: absolute;
    animation: bgPatternFlow 20s linear infinite;
    opacity: 0.1;
}

@keyframes bgPatternFlow {
    0% {
        transform: translateX(-100px) translateY(-100px) rotate(0deg) scale(1);
    }

    25% {
        transform: translateX(100px) translateY(-50px) rotate(90deg) scale(1.1);
    }

    50% {
        transform: translateX(50px) translateY(100px) rotate(180deg) scale(0.9);
    }

    75% {
        transform: translateX(-50px) translateY(50px) rotate(270deg) scale(1.1);
    }

    100% {
        transform: translateX(-100px) translateY(-100px) rotate(360deg) scale(1);
    }
}

/* Morphing Border Animation */
.morphing-border {
    position: relative;
    animation: morphingBorder 4s ease-in-out infinite;
}

@keyframes morphingBorder {
    0% {
        border-radius: 12px;
        border: 2px solid var(--primary-color);
    }

    25% {
        border-radius: 25px 50px 25px 50px;
        border: 3px solid var(--secondary-color);
    }

    50% {
        border-radius: 50%;
        border: 4px solid var(--accent-color);
    }

    75% {
        border-radius: 50px 25px 50px 25px;
        border: 3px solid var(--primary-color);
    }

    100% {
        border-radius: 12px;
        border: 2px solid var(--primary-color);
    }
}

/* Advanced Shadow Animation */
.shadow-animation {
    position: relative;
}

.shadow-animation::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 10px;
    background: radial-gradient(ellipse, rgba(0, 0, 0, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: shadowPulse 3s ease-in-out infinite;
}

@keyframes shadowPulse {

    0%,
    100% {
        transform: translateX(-50%) scaleX(1);
        opacity: 0.3;
    }

    50% {
        transform: translateX(-50%) scaleX(1.2);
        opacity: 0.6;
    }
}

/* Advanced Loading & Progressive Enhancement System */
.skeleton-loader {
    background: linear-gradient(90deg,
            rgba(135, 206, 235, 0.1) 25%,
            rgba(135, 206, 235, 0.3) 50%,
            rgba(135, 206, 235, 0.1) 75%);
    background-size: 200% 100%;
    animation: skeletonLoading 1.5s infinite;
    border-radius: var(--border-radius);
}

@keyframes skeletonLoading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Skeleton Text Lines */
.skeleton-text {
    height: 1em;
    background: linear-gradient(90deg,
            rgba(135, 206, 235, 0.2) 25%,
            rgba(135, 206, 235, 0.4) 50%,
            rgba(135, 206, 235, 0.2) 75%);
    background-size: 200% 100%;
    animation: skeletonLoading 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 0.5em;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-text.medium {
    width: 80%;
}

.skeleton-text.long {
    width: 100%;
}

/* Skeleton Image Placeholder */
.skeleton-image {
    background: linear-gradient(90deg,
            rgba(135, 206, 235, 0.1) 25%,
            rgba(135, 206, 235, 0.3) 50%,
            rgba(135, 206, 235, 0.1) 75%);
    background-size: 200% 100%;
    animation: skeletonLoading 1.5s infinite;
    border-radius: 50%;
    aspect-ratio: 1;
}

/* Progressive Image Loading */
.progressive-image {
    position: relative;
    overflow: hidden;
}

.progressive-image img {
    opacity: 0;
    transition: opacity 0.5s ease;
    transform: scale(1.1);
}

.progressive-image img.loaded {
    opacity: 1;
    transform: scale(1);
}

.progressive-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(135, 206, 235, 0.1) 0%,
            rgba(152, 251, 152, 0.1) 100%);
    animation: pulse 2s ease-in-out infinite;
    z-index: 1;
}

.progressive-image img.loaded~ ::before {
    animation: none;
    opacity: 0;
}

/* Content Reveal Animations */
.content-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.content-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.content-reveal-up {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.content-reveal-up.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Staggered Content Reveal */
.stagger-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.stagger-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Loading States */
.loading-container {
    position: relative;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    backdrop-filter: blur(5px);
}

.loading-dots {
    display: flex;
    gap: 4px;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-color);
    animation: loadingDots 1.4s ease-in-out infinite both;
}

.loading-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes loadingDots {

    0%,
    80%,
    100% {
        transform: scale(0);
        opacity: 0.5;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Progressive Enhancement Indicators */
.enhancement-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.enhancement-indicator.show {
    opacity: 1;
}

/* Smooth State Transitions */
.state-transition {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.state-loading {
    opacity: 0.7;
    transform: scale(0.98);
    pointer-events: none;
}

.state-loaded {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.state-error {
    opacity: 0.5;
    filter: grayscale(100%);
}

/* Content Placeholder Animations */
.content-placeholder {
    background: linear-gradient(135deg,
            rgba(135, 206, 235, 0.05) 0%,
            rgba(152, 251, 152, 0.05) 100%);
    border: 2px dashed rgba(135, 206, 235, 0.3);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-style: italic;
    animation: placeholderPulse 2s ease-in-out infinite;
}

@keyframes placeholderPulse {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.02);
    }
}

/* Advanced Interactive Component Enhancements */
.enhanced-card {
    position: relative;
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    overflow: hidden;
}

.enhanced-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);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.enhanced-card:hover::before {
    transform: scaleX(1);
}

.enhanced-card:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(2deg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.enhanced-card:active {
    transform: translateY(-5px) rotateX(2deg) scale(0.98);
    transition: transform 0.1s ease;
}

/* Enhanced Button System */
.btn-enhanced {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    transform-style: preserve-3d;
}

.btn-enhanced::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: left 0.6s ease;
}

.btn-enhanced:hover::before {
    left: 100%;
}

.btn-enhanced:hover {
    transform: translateY(-3px) rotateX(5deg) scale(1.05);
    box-shadow: 0 15px 35px rgba(135, 206, 235, 0.4);
}

.btn-enhanced:active {
    transform: translateY(-1px) rotateX(2deg) scale(0.98);
    transition: transform 0.1s ease;
}

/* Enhanced Form Elements */
.form-enhanced {
    position: relative;
    transform-style: preserve-3d;
}

.form-input-enhanced {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid rgba(135, 206, 235, 0.3);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.form-input-enhanced:focus {
    transform: translateY(-2px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(135, 206, 235, 0.3);
    background: rgba(255, 255, 255, 0.95);
}

.form-input-enhanced::placeholder {
    color: rgba(135, 206, 235, 0.6);
    transition: color 0.3s ease;
}

.form-input-enhanced:focus::placeholder {
    color: rgba(135, 206, 235, 0.3);
    transform: translateX(5px);
}

/* Enhanced Navigation */
.nav-enhanced {
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-enhanced::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.4s ease;
}

.nav-enhanced:hover::after,
.nav-enhanced.active::after {
    transform: scaleX(1);
}

.nav-enhanced:hover {
    transform: translateY(-2px);
    color: var(--primary-color);
}

/* Enhanced Testimonial Slider */
.testimonial-enhanced {
    position: relative;
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius);
    padding: 3rem 2rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.testimonial-enhanced::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--border-radius);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.testimonial-enhanced:hover::before {
    opacity: 0.3;
}

.testimonial-enhanced:hover {
    transform: translateY(-5px) rotateX(2deg) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Enhanced Stats Counter */
.stat-enhanced {
    position: relative;
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(135, 206, 235, 0.1));
    border-radius: var(--border-radius);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.stat-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(135, 206, 235, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.stat-enhanced:hover::before {
    opacity: 1;
}

.stat-enhanced:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 35px rgba(135, 206, 235, 0.3);
}

.stat-number-enhanced {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.5s ease;
}

.stat-enhanced:hover .stat-number-enhanced {
    transform: scale(1.1) rotate(2deg);
    filter: brightness(1.2);
}

/* Enhanced Social Icons */
.social-icon-enhanced {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    transform-style: preserve-3d;
}

.social-icon-enhanced::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.social-icon-enhanced:hover::before {
    width: 100%;
    height: 100%;
}

.social-icon-enhanced:hover {
    transform: translateY(-3px) rotateY(180deg) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.social-icon-enhanced i {
    position: relative;
    z-index: 1;
    transition: transform 0.4s ease;
}

.social-icon-enhanced:hover i {
    transform: rotateY(180deg);
}

/* Enhanced Gallery Items */
.gallery-item-enhanced {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.gallery-item-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(135, 206, 235, 0.2) 0%,
            rgba(152, 251, 152, 0.2) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.gallery-item-enhanced:hover::before {
    opacity: 1;
}

.gallery-item-enhanced:hover {
    transform: translateY(-8px) rotateX(5deg) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.gallery-item-enhanced img {
    transition: transform 0.5s ease;
}

.gallery-item-enhanced:hover img {
    transform: scale(1.1) rotate(2deg);
}

/* Enhanced Footer Elements */
.footer-enhanced {
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-enhanced:hover {
    transform: translateY(-2px);
}

.footer-link-enhanced {
    position: relative;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 0.5rem 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.footer-link-enhanced::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.4s ease;
}

.footer-link-enhanced:hover::after {
    width: 100%;
}

.footer-link-enhanced:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* Interactive Timeline Enhancement */
.timeline-item-enhanced {
    position: relative;
    padding: 2rem 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(30px);
}

.timeline-item-enhanced.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item-enhanced::before {
    content: '';
    position: absolute;
    left: -2px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.5s ease;
}

.timeline-item-enhanced.visible::before {
    transform: scaleY(1);
}

.timeline-item-enhanced:hover {
    transform: translateX(10px) translateY(-5px);
    background: rgba(135, 206, 235, 0.05);
    border-radius: var(--border-radius);
    padding: 2rem 1rem;
}

/* Component State Indicators */
.component-state {
    position: relative;
}

.component-state::after {
    content: '';
    position: absolute;
    top: 5px;
    right: 5px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-color);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.component-state.loaded::after {
    opacity: 1;
    background: #28a745;
}

.component-state.error::after {
    opacity: 1;
    background: #dc3545;
}

.component-state.loading::after {
    opacity: 1;
    background: #ffc107;
    animation: pulse 1s ease-in-out infinite;
}

/* Enhanced Accessibility & Motion Preferences */
.accessibility-controls {
    position: fixed;
    top: 100px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 1rem;
    box-shadow: var(--shadow);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.accessibility-controls.show {
    opacity: 1;
    visibility: visible;
}

.accessibility-controls:hover {
    transform: translateX(-5px);
}

.accessibility-toggle {
    background: var(--primary-color);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.accessibility-toggle:hover {
    transform: scale(1.1);
    background: var(--accent-color);
}

.accessibility-panel {
    display: none;
    margin-top: 1rem;
}

.accessibility-panel.show {
    display: block;
}

.accessibility-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.accessibility-option:hover {
    background: rgba(135, 206, 235, 0.1);
}

.accessibility-option input[type="checkbox"] {
    margin: 0;
}

/* Screen Reader Only Content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* High Contrast Mode Enhancements */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0066cc;
        --secondary-color: #cc0066;
        --accent-color: #66cc00;
        --text-dark: #000000;
        --text-light: #333333;
        --shadow: 0 0 0 2px var(--text-dark);
        --shadow-light: 0 0 0 1px var(--text-light);
    }

    .enhanced-card,
    .interactive-card,
    .btn-enhanced {
        border: 2px solid var(--text-dark);
    }

    .accessibility-controls {
        border: 2px solid var(--text-dark);
        background: white;
    }
}

/* Motion Preference Enhancements */
@media (prefers-reduced-motion: reduce) {
    .accessibility-controls {
        position: static;
        margin: 1rem;
        opacity: 1;
        visibility: visible;
    }

    .sr-only-motion {
        position: static;
        width: auto;
        height: auto;
        padding: 0.5rem;
        margin: 0.5rem 0;
        overflow: visible;
        clip: auto;
        white-space: normal;
        background: var(--primary-color);
        color: white;
        border-radius: 8px;
        text-align: center;
    }
}

/* Focus Management for Accessibility */
.focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

.focus-within {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Keyboard Navigation Enhancements */
.keyboard-navigation *:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
    animation: focusPulse 2s ease-in-out infinite;
}

@keyframes focusPulse {

    0%,
    100% {
        outline-color: var(--primary-color);
    }

    50% {
        outline-color: var(--accent-color);
    }
}

/* Animation Control Interface */
.animation-controls {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 1rem;
    box-shadow: var(--shadow);
    z-index: 1000;
    display: none;
}

.animation-controls.show {
    display: block;
}

/* Hide animation controls on mobile */
@media (max-width: 768px) {
    .animation-controls {
        display: none !important;
    }
}

.animation-control-btn {
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    margin: 0.25rem;
    transition: all 0.3s ease;
}

.animation-control-btn:hover {
    transform: translateY(-2px);
    background: var(--accent-color);
}

.animation-control-btn.active {
    background: var(--accent-color);
    box-shadow: 0 0 10px rgba(152, 251, 152, 0.5);
}

/* Accessible Animation States */
.animation-paused * {
    animation-play-state: paused !important;
}

.animation-disabled * {
    animation: none !important;
    transition: opacity 0.3s ease !important;
}

/* Motion Sensitivity Controls */
.motion-sensitive {
    animation-duration: 2s !important;
    transition-duration: 0.5s !important;
}

.motion-moderate {
    animation-duration: 1s !important;
    transition-duration: 0.3s !important;
}

.motion-normal {
    animation-duration: 0.6s !important;
    transition-duration: 0.2s !important;
}

/* Visual Accessibility Enhancements */
.visually-accessible {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-dark);
}

.visually-accessible h1,
.visually-accessible h2,
.visually-accessible h3 {
    color: var(--text-dark);
    font-weight: 700;
}

.visually-accessible .enhanced-card {
    background: white;
    border: 2px solid var(--text-light);
    padding: 1.5rem;
}

.visually-accessible .btn-enhanced {
    background: var(--text-dark);
    color: white;
    border: 2px solid var(--text-dark);
    padding: 1rem 2rem;
    font-weight: 600;
}

/* Cognitive Accessibility */
.cognitively-accessible {
    max-width: 70ch;
    margin: 0 auto;
    padding: 0 1rem;
}

.cognitively-accessible .stagger-item {
    animation: none;
    opacity: 1;
    transform: none;
}

.cognitively-accessible .complex-animation {
    animation: simpleFadeIn 0.5s ease-out;
}

@keyframes simpleFadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Motor Accessibility */
.motor-accessible {
    min-height: 44px;
    min-width: 44px;
}

.motor-accessible .btn-enhanced,
.motor-accessible .nav-link,
.motor-accessible .cta-button {
    min-height: 48px;
    min-width: 48px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.motor-accessible .touch-target {
    position: relative;
}

.motor-accessible .touch-target::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
}

/* Animation Accessibility Labels */
.animation-label {
    position: absolute;
    top: -9999px;
    left: -9999px;
}

/* Accessible Live Regions */
.live-region {
    position: absolute;
    top: -9999px;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Focus Indicators */
.focus-indicator {
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 3px solid var(--primary-color);
    border-radius: calc(var(--border-radius) + 4px);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.focused .focus-indicator {
    opacity: 1;
}

/* Reduced Motion Fallbacks */
.reduced-motion-fallback {
    opacity: 1 !important;
    transform: none !important;
    transition: opacity 0.3s ease !important;
}

/* Animation Status Indicators */
.animation-status {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.animation-status.show {
    opacity: 1;
}

.animation-status.reduced-motion {
    background: #ffc107;
    color: #000;
}

.animation-status.performance-mode {
    background: #dc3545;
}

.animation-status.accessibility-mode {
    background: #28a745;
}

/* Timeline Animation Styles */
.timeline-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item.timeline-visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-year {
    position: relative;
    overflow: hidden;
}

.timeline-year::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: left 0.8s ease;
}

.timeline-item:hover .timeline-year::before {
    left: 100%;
}

.timeline-content {
    transition: all 0.4s ease 0.2s;
}

.timeline-item:hover .timeline-content {
    transform: translateX(10px);
}

/* Simple Mobile Timeline Animations */
@media (max-width: 768px) {
    .timeline-item {
        opacity: 0;
        transform: translateY(10px);
        transition: all 0.4s ease-out;
    }

    .timeline-item.timeline-visible {
        opacity: 1;
        transform: translateY(0);
    }

    .timeline-year {
        transition: all 0.3s ease;
    }

    .timeline-content {
        transition: all 0.3s ease 0.1s;
    }

    .timeline-item:hover .timeline-year {
        transform: scale(1.05);
    }

    .timeline-item:hover .timeline-content {
        transform: translateX(5px);
    }
}

@keyframes timelineSlideIn {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    60% {
        opacity: 0.8;
        transform: translateY(-5px) scale(1.02);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes yearPulse {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes contentFadeIn {
    0% {
        opacity: 0;
        transform: translateX(20px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Staggered animation delays for better visual flow */
.timeline-item:nth-child(1) {
    animation-delay: 0s;
}

.timeline-item:nth-child(2) {
    animation-delay: 0.2s;
}

.timeline-item:nth-child(3) {
    animation-delay: 0.4s;
}

.timeline-item:nth-child(4) {
    animation-delay: 0.6s;
}

.timeline-item:nth-child(5) {
    animation-delay: 0.8s;
}

.timeline-item:nth-child(6) {
    animation-delay: 1.0s;
}

/* Responsive Hero Section */
@media (min-width: 1200px) {
    .hero {
        min-height: clamp(80vh, 95vh, 100vh);
    }

    /* Compact hero for non-home pages on large screens - made larger for desktop */
    body:not(.home-page) .hero {
        min-height: clamp(60vh, 70vh, 80vh);
    }

    /* Increase hero title size for large desktop screens */
    .hero-title {
        font-size: clamp(2.5rem, 4vw, 3.5rem);
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .hero {
        min-height: clamp(75vh, 90vh, 95vh);
    }

    /* Compact hero for non-home pages on medium screens - made larger for tablet */
    body:not(.home-page) .hero {
        min-height: clamp(50vh, 60vh, 70vh);
    }

    /* Increase hero title size for medium desktop screens */
    .hero-title {
        font-size: clamp(2.5rem, 4vw, 3.5rem);
    }
}

@media (max-width: 767px) {
    .hero {
        min-height: 500px;
    }

    .hero-background {
        min-height: 500px;
    }

    .hero-content {
        padding: 0 1.5rem 1.5rem 1.5rem;
        max-width: 100%;
    }

    /* Compact mobile hero for non-home pages */
    body:not(.home-page) .hero {
        min-height: clamp(35vh, 40vh, 45vh);
    }

    body:not(.home-page) .hero-background {
        min-height: 350px;
    }

    body:not(.home-page) .hero-content {
        padding: 0 1rem 1.5rem 1rem;
        max-width: 100%;
    }
}

/* Responsive Video Background */
@media (max-width: 768px) {
    .hero-video {
        /* On mobile, optimize for portrait orientation */
        width: 100%;
        height: 100vh;
        min-height: 600px;
        object-fit: cover;
        object-position: center 35%;
        /* Focus on center-top for mobile */
        transform: scale(1.05);
        /* Ensure full coverage with new height */
    }

    .hero-overlay {
        background: linear-gradient(135deg,
                rgba(0, 0, 0, 0.4) 0%,
                rgba(0, 0, 0, 0.3) 30%,
                rgba(0, 0, 0, 0.5) 70%,
                rgba(0, 0, 0, 0.6) 100%);
    }
}

@media (min-width: 769px) {
    .hero-video {
        /* Desktop optimization for landscape */
        object-position: center center;
        transform: scale(1.02);
    }
}

@media (max-width: 480px) {
    .hero-video {
        /* Further optimization for very small screens */
        height: 100vh;
        min-height: 600px;
        transform: scale(1.08);
        object-position: center 30%;
        /* Adjust focus point for small screens */
    }

    .fallback-content h2 {
        font-size: 1.8rem;
    }

    .fallback-content p {
        font-size: 1rem;
    }

    /* Compact hero for very small screens on non-home pages */
    body:not(.home-page) .hero {
        min-height: clamp(30vh, 35vh, 40vh);
    }

    body:not(.home-page) .hero-background {
        min-height: 300px;
    }

    body:not(.home-page) .hero-content {
        padding: 0 0.75rem 1rem 0.75rem;
    }
}

/* Landscape orientation optimization */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-video {
        object-position: center 40%;
        /* Adjust for landscape mobile */
        transform: scale(1.08);
    }
}

/* High DPI / Retina Display Optimization */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    .hero-video {
        /* Ensure crisp video on high-DPI displays */
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .hero-video {
        /* Pause animation but keep video playing */
        animation-play-state: paused;
    }
}

/* Dark mode support (if needed in future) */
@media (prefers-color-scheme: dark) {
    .hero-overlay {
        background: linear-gradient(135deg,
                rgba(0, 0, 0, 0.5) 0%,
                rgba(0, 0, 0, 0.4) 30%,
                rgba(0, 0, 0, 0.6) 70%,
                rgba(0, 0, 0, 0.7) 100%);
    }
}

/* Video Performance Optimizations */
.hero-video {
    /* Hardware acceleration for better performance */
    transform: translateZ(0);
    will-change: transform;

    /* Optimize video rendering */
    backface-visibility: hidden;
    perspective: 1000px;

    /* Smooth transitions for multi-video support */
    transition: opacity 0.5s ease-in-out;
}

/* Enhanced Video Loading States */
.hero-video.loading {
    opacity: 0.7;
    filter: blur(1px);
    transition: opacity 0.5s ease, filter 0.5s ease;
}

.hero-video.loaded {
    opacity: 1;
    filter: none;
}

.hero-video.error {
    opacity: 0.3;
    filter: grayscale(100%);
}

/* Multi-video transition states */
.hero-video.transitioning {
    opacity: 0.8;
    transform: scale(1.02);
}

.hero-video.changing {
    opacity: 0.9;
    filter: blur(0.5px);
}

/* Video loading state */
.hero-video[data-loading="true"] {
    opacity: 0.7;
    filter: blur(2px);
}

.hero-video[data-error="true"] {
    display: none;
}

/* Video fallback enhancements */
.video-fallback {
    background: linear-gradient(135deg,
            var(--primary-color) 0%,
            var(--secondary-color) 50%,
            var(--accent-color) 100%);
    animation: gentlePulse 4s ease-in-out infinite;
}

.fallback-content h2 {
    animation: fadeInUp 1s ease-out 0.5s both;
}

.fallback-content p {
    animation: fadeInUp 1s ease-out 0.7s both;
}

/* Intersection Observer for video loading optimization */
.hero-video[data-lazy-load="true"] {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.hero-video[data-lazy-load="true"].loaded {
    opacity: 1;
}

/* Page Hero (for internal pages) */
.page-hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--off-white) 0%, rgba(135, 206, 235, 0.1) 100%);
    text-align: center;
}

/* Sections */
section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--text-dark);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Introduction Section */
.introduction {
    background: var(--white);
}

.intro-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.intro-text {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.intro-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--off-white), rgba(135, 206, 235, 0.05));
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.stat:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-light);
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-light);
    font-weight: 500;
}

/* Why Montessori Section */
.why-montessori {
    background: var(--off-white);
}

.montessori-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Enhanced Why Montessori Slider Styles */
.why-montessori .value-icon {
    width: 70px;
    height: 70px;
    min-width: 70px;
    min-height: 70px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    position: relative;
    aspect-ratio: 1;
    flex-shrink: 0;
}

.why-montessori .value-icon:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(135, 206, 235, 0.4);
}

.why-montessori .value-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-family: 'Baloo 2', cursive;
    text-align: center;
    line-height: 1.3;
}

.why-montessori .value-description {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
    text-align: center;
    max-width: 280px;
    margin: 0 auto;
}

.benefit-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-5px) rotate(1deg);
    box-shadow: var(--shadow);
    animation: cardGlow 0.3s ease-out;
}

@keyframes cardGlow {
    0% {
        box-shadow: var(--shadow-light);
    }

    100% {
        box-shadow: 0 15px 35px rgba(152, 251, 152, 0.2);
    }
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.benefit-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

.benefit-image:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 30px rgba(135, 206, 235, 0.3);
}

.benefit-card h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

/* Programs Overview */
.programs-overview {
    background: var(--white);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.program-card {
    background: linear-gradient(135deg, var(--off-white), rgba(135, 206, 235, 0.05));
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.program-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.program-age {
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 1rem;
}

.program-description {
    margin-bottom: 1.5rem;
}

.program-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.program-link:hover {
    color: var(--text-dark);
}

/* Colorful Programs Section - Enhanced Design */
.programs-section {
    background: linear-gradient(135deg,
            rgba(135, 206, 235, 0.1) 0%,
            rgba(152, 251, 152, 0.1) 25%,
            rgba(255, 182, 193, 0.1) 50%,
            rgba(135, 206, 235, 0.15) 75%,
            rgba(152, 251, 152, 0.1) 100%);
    position: relative;
    overflow: hidden;
    padding: 5rem 0;
}

/* Cartoon Icons Background Pattern */
.programs-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(135, 206, 235, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(152, 251, 152, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 182, 193, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.programs-section .container {
    position: relative;
    z-index: 2;
}

/* Floating Cartoon Icons */
.cartoon-icons {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.cartoon-icon {
    position: absolute;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    animation: gentleFloat 8s ease-in-out infinite;
    opacity: 0.15;
    z-index: 1;
}

/* Distributed cartoon icons */
.cartoon-icon:nth-child(1) {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.cartoon-icon:nth-child(2) {
    top: 20%;
    right: 8%;
    animation-delay: 2s;
}

.cartoon-icon:nth-child(3) {
    bottom: 30%;
    left: 10%;
    animation-delay: 4s;
}

.cartoon-icon:nth-child(4) {
    bottom: 20%;
    right: 5%;
    animation-delay: 6s;
}

.cartoon-icon:nth-child(5) {
    top: 30%;
    left: 15%;
    animation-delay: 1s;
}

.cartoon-icon:nth-child(6) {
    top: 50%;
    right: 12%;
    animation-delay: 3s;
}

.cartoon-icon:nth-child(7) {
    bottom: 40%;
    left: 20%;
    animation-delay: 5s;
}

.cartoon-icon:nth-child(8) {
    top: 15%;
    left: 25%;
    animation-delay: 7s;
}

/* Programs Section Header */
.programs-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 3;
}

.programs-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-family: 'Baloo 2', cursive;
    font-weight: 800;
    margin-bottom: 0;
    position: relative;
    z-index: 3;
}

.programs-title .our {
    color: #2c3e50;
    display: inline-block;
}

.programs-title .programs {
    color: #2c3e50;
    display: inline-block;
    margin-left: 0.5rem;
}

/* Note: Circular images are now inside program cards */

/* Enhanced Program Cards */
.programs-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    position: relative;
    z-index: 3;
}

.program-card-enhanced {
    background: rgba(255, 253, 249, 0.85);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius-organic);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.6);
    box-shadow: var(--shadow-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}

.program-card-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-color), var(--highlight-color), var(--accent-color));
}

@media (hover: hover) {
    .program-card-enhanced:hover {
        transform: translateY(-12px) rotate(1.5deg) scale(1.02);
        box-shadow: var(--shadow-strong);
        background: rgba(255, 255, 255, 0.95);
        border-radius: var(--border-radius-organic-alt);
        border: 2px solid rgba(255, 255, 255, 0.9);
    }
}

.program-card-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: block;
}

.program-card-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-family: 'Baloo 2', cursive;
}

.program-card-age {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, rgba(126, 212, 230, 0.2), rgba(168, 230, 207, 0.2));
    padding: 0.6rem 1.2rem;
    border-radius: var(--border-radius-organic);
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.program-card-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.program-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--text-dark);
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius-organic);
    font-weight: 700;
    margin-top: auto;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
}

@media (hover: hover) {
    .program-card-link:hover {
        transform: translateY(-3px) scale(1.05);
        background: linear-gradient(135deg, var(--highlight-color), var(--secondary-color));
        border-radius: var(--border-radius-organic-alt);
    }
}


/* Program Card Image - Circular */
.program-card-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 4px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.program-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: var(--transition);
}

.program-card-image:hover img {
    transform: scale(1.1);
}

/* Program Card Content */
.program-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Responsive Design for Enhanced Programs */
@media (max-width: 768px) {
    .programs-section {
        padding: 3rem 0;
    }

    .programs-cards {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 2rem;
    }

    .program-card-enhanced {
        padding: 1.5rem;
    }

    .member-avatar {
        width: 100px;
        height: 100px;
        border-width: 3px;
    }

    .program-card-image {
        width: 100px;
        height: 100px;
        margin-bottom: 1rem;
        border-width: 3px;
    }

    .cartoon-icon {
        font-size: clamp(1rem, 2vw, 1.5rem);
    }

    /* Reduce number of background icons on mobile */
    .cartoon-icon:nth-child(n+6) {
        display: none;
    }
}

@media (max-width: 480px) {
    .programs-title {
        font-size: 2rem;
    }

    .member-avatar {
        width: 80px;
        height: 80px;
        border-width: 2px;
    }

    .program-card-image {
        width: 80px;
        height: 80px;
        border-width: 2px;
        margin-bottom: 0.75rem;
    }

    .program-card-title {
        font-size: 1.5rem;
    }

    .program-card-enhanced {
        padding: 1.25rem;
    }

    /* Hide more background elements on very small screens */
    .cartoon-icon:nth-child(n+4) {
        display: none;
    }
}

/* Testimonials */
.testimonials {
    background: linear-gradient(135deg, rgba(255, 255, 0, 0.15) 0%, rgba(255, 215, 0, 0.1) 50%, rgba(255, 255, 224, 0.08) 100%);
    padding: 5rem 0;
    position: relative;
}

.testimonial-slider-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial-slide {
    background: rgba(255, 255, 255, 0.9);
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    text-align: center;
    display: none;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 2;
}

.testimonial-slide.active {
    display: block;
    animation: fadeInUp 0.6s ease-out;
}

.testimonial-slide:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
}

.testimonial-slide .testimonial-content {
    margin-bottom: 2rem;
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-dark);
    font-style: italic;
    position: relative;
    font-weight: 400;
}

.testimonial-slide .testimonial-content::before {
    content: '"';
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.3;
    font-family: serif;
    position: absolute;
    top: -1rem;
    left: -1rem;
}

.testimonial-slide .testimonial-author {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(135, 206, 235, 0.3);
}

.testimonial-slide .testimonial-author strong {
    display: block;
    color: var(--text-dark);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-family: 'Baloo 2', cursive;
}

.testimonial-slide .testimonial-author span {
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 500;
}

.testimonial-navigation {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 3rem;
}

.nav-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(135, 206, 235, 0.3);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.nav-dot.active {
    background: var(--primary-color);
    transform: scale(1.3);
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 12px rgba(135, 206, 235, 0.5);
}

.nav-dot:hover {
    background: var(--primary-color);
    opacity: 0.8;
    transform: scale(1.15);
}

/* Contact Details */
.contact-details {
    background: var(--white);
    padding: 5rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: stretch;
    margin-top: 2rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    background: var(--off-white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-light);
    height: 100%;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: var(--off-white);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.contact-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
    text-align: center;
    width: 60px;
}

.contact-text strong {
    display: block;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.contact-text p {
    margin: 0;
    line-height: 1.6;
}

.contact-map {
    background: var(--off-white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-light);
    height: fit-content;
}

.contact-map iframe {
    border-radius: var(--border-radius);
    width: 100%;
    height: 450px;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    color: white;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
}

.social-link.facebook {
    background: #1877f2;
}

.social-link.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 2rem 0 0.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.footer-section h3,
.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.footer-logo-text h3 {
    margin: 0;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-weight: 800;
    font-family: 'Baloo 2', cursive;
    color: white;
    line-height: 1.1;
}

.footer-logo-text p {
    margin: 0;
    opacity: 0.8;
    font-size: 0.75rem;
}

.footer-description {
    opacity: 0.8;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.05rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* Quick Links Two-Column Layout */
.quick-links-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    width: 100%;
}

.quick-links-column {
    display: flex;
    flex-direction: column;
}

.quick-links-column .footer-links {
    flex: 1;
}

.footer-contact p {
    margin-bottom: 0.05rem;
    opacity: 0.8;
}


.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
    font-size: 0.75rem;
}

/* About Page Styles */
.philosophy {
    background: linear-gradient(135deg, var(--white) 0%, rgba(135, 206, 235, 0.05) 100%);
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

/* Philosophy Background Elements */
.philosophy::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(135, 206, 235, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: gentleFloat 8s ease-in-out infinite;
}

.philosophy::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(152, 251, 152, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: gentleFloat 6s ease-in-out infinite reverse;
}

/* Philosophy Header */
.philosophy-header {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 2;
}

.philosophy-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    box-shadow: var(--shadow);
    animation: gentlePulse 3s ease-in-out infinite;
}

.philosophy-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    position: relative;
}

.philosophy-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.philosophy-subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 500;
}

/* Philosophy Main Content */
.philosophy-main {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.philosophy-content {
    max-width: 600px;
}

.philosophy-intro {
    font-size: 1.15rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    line-height: 1.7;
}

.philosophy-description {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
}

/* Philosophy Visual / Quote */
.philosophy-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.philosophy-quote {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-light);
    border-left: 5px solid var(--primary-color);
    max-width: 300px;
    backdrop-filter: blur(10px);
    position: relative;
}

.philosophy-quote::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(135deg, rgba(135, 206, 235, 0.2), rgba(152, 251, 152, 0.2));
    border-radius: var(--border-radius);
    z-index: -1;
}

.philosophy-quote i {
    font-size: 2.5rem;
    color: var(--primary-color);
    opacity: 0.3;
    margin-bottom: 0.75rem;
    display: block;
}

.philosophy-quote p {
    font-size: 1rem;
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.5;
    font-weight: 500;
}

.philosophy-quote cite {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 600;
    font-style: normal;
}

/* Core Values Section */
.philosophy-values {
    position: relative;
    z-index: 2;
}

.values-title {
    text-align: center;
    font-size: clamp(2rem, 3vw, 2.5rem);
    color: var(--text-dark);
    margin-bottom: 3rem;
    position: relative;
}

.values-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    border-radius: 2px;
}

/* Values Slider Styles */
.values-slider-container {
    position: relative;
    max-width: 900px;
    margin: 2rem auto 0;
    padding: 0 1rem;
}

.values-slider {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border: 3px solid rgba(255, 255, 255, 0.8);
    transform: perspective(1000px) rotateX(2deg);
    transition: transform 0.3s ease;
}

.values-slider:hover {
    transform: perspective(1000px) rotateX(0deg) scale(1.02);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.2);
}

.value-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    text-align: center;
    opacity: 0;
    transform: translateX(100%) scale(0.8) rotateY(10deg);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: rgba(255, 255, 255, 0.95);
    border-top: 4px solid transparent;
    backdrop-filter: blur(10px);
}

.value-slide:nth-child(1) {
    border-top-color: #FF6B6B;
}

.value-slide:nth-child(2) {
    border-top-color: #4ECDC4;
}

.value-slide:nth-child(3) {
    border-top-color: #45B7D1;
}

.value-slide:nth-child(4) {
    border-top-color: #FFA07A;
}

.value-slide:nth-child(5) {
    border-top-color: #98D8C8;
}

.value-slide:nth-child(6) {
    border-top-color: #F7DC6F;
}

.value-slide.active {
    opacity: 1;
    transform: translateX(0) scale(1) rotateY(0deg);
    z-index: 2;
}

.value-slide.prev {
    transform: translateX(-100%) scale(0.9) rotateY(-5deg);
    opacity: 0.3;
    z-index: 1;
}

.value-slide.next {
    transform: translateX(100%) scale(0.9) rotateY(5deg);
    opacity: 0.3;
    z-index: 1;
}

.value-slide.exiting {
    transform: translateX(-100%) scale(0.8) rotateY(-10deg);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.55, 0, 0.68, 0.53);
    z-index: 0;
}

/* Enhanced slide entrance animation */
.value-slide.entering {
    animation: slideInEffect 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes slideInEffect {
    0% {
        opacity: 0;
        transform: translateX(100%) scale(0.7) rotateY(15deg);
    }

    50% {
        opacity: 0.7;
        transform: translateX(20%) scale(0.9) rotateY(3deg);
    }

    100% {
        opacity: 1;
        transform: translateX(0) scale(1) rotateY(0deg);
    }
}

/* Slider Navigation */
.slider-navigation {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(135, 206, 235, 0.3);
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
    position: relative;
    overflow: hidden;
}

.nav-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: var(--primary-color);
    border-radius: 50%;
    transition: var(--transition);
}

.nav-dot.active::before {
    width: 100%;
    height: 100%;
}

.nav-dot:hover {
    background: rgba(135, 206, 235, 0.5);
    transform: scale(1.2);
}

.nav-dot.active {
    background: var(--primary-color);
    transform: scale(1.3);
    box-shadow: 0 0 12px rgba(135, 206, 235, 0.5);
}

/* Slider Navigation Buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: var(--text-dark);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
    backdrop-filter: blur(10px);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow);
}

.prev-btn {
    left: -25px;
}

.next-btn {
    right: -25px;
}

.slider-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Enhanced Navigation for Wider Slider */
.slider-navigation {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.nav-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(135, 206, 235, 0.3);
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
    position: relative;
    overflow: hidden;
}

.nav-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: var(--primary-color);
    border-radius: 50%;
    transition: var(--transition);
}

.nav-dot.active::before {
    width: 100%;
    height: 100%;
}

.nav-dot:hover {
    border-color: var(--primary-color);
    transform: scale(1.3);
}

.nav-dot.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    transform: scale(1.4);
    box-shadow: 0 0 15px rgba(135, 206, 235, 0.6);
}

/* Enhanced Navigation Buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(135, 206, 235, 0.3);
    color: var(--text-dark);
    font-size: 1.3rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 1);
    border-color: var(--primary-color);
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.prev-btn {
    left: -30px;
}

.next-btn {
    right: -30px;
}

.slider-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Enhanced Why Montessori Slider Image Styles */

/* Responsive Slider Styles */
@media (max-width: 768px) {
    .values-slider-container {
        padding: 0 1rem;
        margin-top: 1.5rem;
        max-width: 100%;
    }

    .values-slider {
        height: 320px;
        transform: none;
    }

    .values-slider:hover {
        transform: scale(1.01);
    }

    .value-slide {
        padding: 1.5rem 1rem;
        transform: translateX(50%) scale(0.85) rotateY(5deg);
    }

    .value-slide.active {
        transform: translateX(0) scale(1) rotateY(0deg);
    }

    /* Enhanced mobile styles for Why Montessori slider */
    .why-montessori .value-icon {
        width: 60px;
        height: 60px;
        min-width: 60px;
        min-height: 60px;
        margin: 0 auto 1.2rem;
        font-size: 1.6rem;
        border-radius: 50%;
        aspect-ratio: 1;
        flex-shrink: 0;
    }

    .why-montessori .value-title {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
        line-height: 1.3;
    }

    .why-montessori .value-description {
        font-size: 0.95rem;
        line-height: 1.5;
        max-width: 260px;
    }

    .value-icon {
        width: 65px;
        height: 65px;
        font-size: 1.6rem;
        margin-bottom: 0.8rem;
    }

    .value-title {
        font-size: 1.25rem;
        margin-bottom: 0.6rem;
    }

    .value-description {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .slider-navigation {
        margin-top: 1.5rem;
        gap: 0.7rem;
    }

    .nav-dot {
        width: 12px;
        height: 12px;
    }

    .slider-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .prev-btn {
        left: -25px;
    }

    .next-btn {
        right: -25px;
    }
}

@media (max-width: 480px) {
    .values-slider-container {
        padding: 0 0.5rem;
        margin-top: 1rem;
        max-width: 100%;
    }

    .values-slider {
        height: 200px;
        border-radius: 15px;
    }

    .value-slide {
        padding: 0.8rem 0.6rem;
        transform: translateX(30%) scale(0.9) rotateY(3deg);
    }

    .value-slide.active {
        transform: translateX(0) scale(1) rotateY(0deg);
    }

    /* Enhanced mobile styles for Why Montessori slider */
    .why-montessori .value-icon {
        width: 50px;
        height: 50px;
        min-width: 50px;
        min-height: 50px;
        margin: 0 auto 1rem;
        font-size: 1.3rem;
        border-radius: 50%;
        aspect-ratio: 1;
        flex-shrink: 0;
    }

    .why-montessori .value-title {
        font-size: 1.1rem;
        margin-bottom: 0.6rem;
        line-height: 1.3;
    }

    .why-montessori .value-description {
        font-size: 0.9rem;
        line-height: 1.4;
        max-width: 240px;
    }

    .value-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        margin-bottom: 0.3rem;
    }

    .value-title {
        font-size: 0.95rem;
        margin-bottom: 0.25rem;
    }

    .value-description {
        font-size: 0.75rem;
        line-height: 1.2;
    }

    .slider-navigation {
        margin-top: 1.2rem;
        gap: 0.5rem;
    }

    .nav-dot {
        width: 10px;
        height: 10px;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .prev-btn {
        left: -22px;
    }

    .next-btn {
        right: -22px;
    }
}

.value-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: white;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.value-card:hover .value-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(135, 206, 235, 0.4);
}

.value-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.4rem;
    font-family: 'Baloo 2', cursive;
}

.value-description {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* History Timeline */
.history {
    background: var(--off-white);
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 30px;
    top: 47px;
    bottom: -47px;
    width: 2px;
    background: var(--primary-color);
    opacity: 0.5;
}

.timeline-year {
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    border-radius: var(--border-radius);
    text-align: center;
    font-weight: 700;
    font-size: 1.2rem;
    position: relative;
    z-index: 2;
}

.timeline-content h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

/* Team Section */
.team {
    background: var(--white);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.team-member {
    background: var(--off-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.member-avatar {
    margin-bottom: 1rem;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    border: 4px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    position: relative;
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.member-avatar::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(135, 206, 235, 0.1), rgba(152, 251, 152, 0.1));
    border-radius: 50%;
    z-index: 0;
    opacity: 0;
    transition: var(--transition);
}

.member-avatar:hover img {
    transform: scale(1.1);
}

.member-avatar:hover::before {
    opacity: 1;
}

.member-role {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Mission Section */
.mission {
    background: var(--off-white);
}

.mission-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.mission-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.mission-stat {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

.mission-stat .stat-number {
    color: var(--accent-color);
}

/* Programs Page Styles */
.programs-intro {
    background: var(--white);
    text-align: center;
}

.program-detail {
    background: var(--white);
    margin-bottom: 4rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.program-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    padding: 2rem;
}

.program-badge {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.program-icon {
    font-size: 3rem;
}

.program-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(135, 206, 235, 0.4);
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.program-image:hover {
    transform: scale(1.15) rotate(2deg);
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(135, 206, 235, 0.4);
}

/* Responsive program images */
@media (min-width: 768px) {
    .program-image {
        width: 100px;
        height: 100px;
        border-width: 4px;
    }
}

@media (min-width: 1024px) {
    .program-image {
        width: 120px;
        height: 120px;
        border-width: 4px;
    }
}

@media (max-width: 480px) {
    .program-image {
        width: 70px;
        height: 70px;
        border-width: 2px;
    }
}

.program-title {
    margin: 0;
}

.program-age {
    margin: 0;
    color: var(--text-light);
}

.program-description h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.learning-areas {
    list-style: none;
    margin: 2rem 0;
}

.learning-areas li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.learning-areas li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.routine {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 1rem;
    margin: 2rem 0;
}

.routine-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.time {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    width: fit-content;
}

.activity {
    font-weight: 500;
}

.advanced-activities {
    display: grid;
    gap: 1rem;
    margin: 2rem 0;
}

.activity-card {
    background: var(--off-white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.activity-card h5 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.readiness-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
}

.readiness-item {
    background: var(--off-white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
}

.readiness-item h5 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.program-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-highlight {
    background: var(--off-white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
}

.feature-highlight h4 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

/* Enhanced Enrollment CTA */
.enrollment-cta-enhanced {
    position: relative;
    background: linear-gradient(135deg,
            rgba(135, 206, 235, 0.9) 0%,
            rgba(255, 182, 193, 0.8) 25%,
            rgba(152, 251, 152, 0.9) 50%,
            rgba(135, 206, 235, 0.8) 75%,
            rgba(255, 182, 193, 0.9) 100%);
    color: white;
    text-align: center;
    padding: 3.5rem 0;
    overflow: hidden;
    min-height: 350px;
    display: flex;
    align-items: center;
}

.enrollment-cta-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.cta-background-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
}

.cta-content-enhanced {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 2rem;
    align-items: center;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

/* Visual Sections */
.cta-visual-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.cta-visual-elements {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    position: relative;
    z-index: 3;
}

.visual-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: gentleFloat 6s ease-in-out infinite;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

.visual-icon:hover {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

/* Staggered animation delays for visual icons */
.cta-visual-section:first-child .visual-icon:nth-child(1) {
    animation-delay: 0s;
}

.cta-visual-section:first-child .visual-icon:nth-child(2) {
    animation-delay: 0.5s;
}

.cta-visual-section:first-child .visual-icon:nth-child(3) {
    animation-delay: 1s;
}

.cta-visual-section:first-child .visual-icon:nth-child(4) {
    animation-delay: 1.5s;
}

.cta-visual-section:first-child .visual-icon:nth-child(5) {
    animation-delay: 2s;
}

.cta-visual-section:first-child .visual-icon:nth-child(6) {
    animation-delay: 2.5s;
}

.cta-visual-section:last-child .visual-icon:nth-child(1) {
    animation-delay: 0.3s;
}

.cta-visual-section:last-child .visual-icon:nth-child(2) {
    animation-delay: 0.8s;
}

.cta-visual-section:last-child .visual-icon:nth-child(3) {
    animation-delay: 1.3s;
}

.cta-visual-section:last-child .visual-icon:nth-child(4) {
    animation-delay: 1.8s;
}

.cta-visual-section:last-child .visual-icon:nth-child(5) {
    animation-delay: 2.3s;
}

.cta-visual-section:last-child .visual-icon:nth-child(6) {
    animation-delay: 2.8s;
}

/* Background Pattern Elements */
.cta-background-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.pattern-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: patternFloat 8s ease-in-out infinite;
}

.circle-1 {
    width: 100px;
    height: 100px;
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.circle-2 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 5%;
    animation-delay: 2s;
}

.circle-3 {
    width: 80px;
    height: 80px;
    top: 50%;
    right: 20%;
    animation-delay: 4s;
}

/* Center Content */
.cta-center-content {
    text-align: center;
    position: relative;
    z-index: 5;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.cta-title-enhanced {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #2c3e50, #e74c3c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Baloo 2', cursive;
    line-height: 1.2;
}

.cta-subtitle-enhanced {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.4;
    font-weight: 500;
}

/* Enhanced CTA Button */
.cta-button-enhanced {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, var(--secondary-color), #FFB6C1);
    color: white;
    text-decoration: none;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(255, 182, 193, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-button-enhanced::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: left 0.5s ease;
}

.cta-button-enhanced:hover::before {
    left: 100%;
}

.cta-button-enhanced:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 182, 193, 0.6);
    background: linear-gradient(135deg, #FFB6C1, var(--secondary-color));
}

.button-icon {
    font-size: 1.5rem;
    animation: gentlePulse 2s ease-in-out infinite;
}

/* Experience Badge */
.cta-experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: linear-gradient(135deg, var(--accent-color), #98FB98);
    color: var(--text-dark);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(152, 251, 152, 0.4);
    border: 3px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10;
    transform: rotate(-5deg);
    animation: badgeFloat 4s ease-in-out infinite;
}

.badge-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    color: #2c3e50;
}

.badge-text {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


/* Animations */
@keyframes patternFloat {

    0%,
    100% {
        transform: translateY(0px) scale(1);
        opacity: 0.3;
    }

    50% {
        transform: translateY(-20px) scale(1.1);
        opacity: 0.1;
    }
}

@keyframes badgeFloat {

    0%,
    100% {
        transform: rotate(-5deg) translateY(0px);
    }

    50% {
        transform: rotate(-5deg) translateY(-5px);
    }
}

/* Enhanced Multi-Layer Parallax System */
.parallax-container {
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.parallax-layer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transform-style: preserve-3d;
    will-change: transform;
}

.parallax-layer.background {
    z-index: 1;
    transform: translateZ(0px) scale(1);
}

.parallax-layer.content {
    z-index: 3;
    transform: translateZ(0px) scale(1);
}

.parallax-layer.foreground {
    z-index: 2;
    transform: translateZ(0px) scale(1);
}

/* Enhanced parallax speeds */
.parallax-slow {
    transform: translateZ(0px) translateY(calc(var(--scrollY) * 0.2px));
}

.parallax-medium {
    transform: translateZ(0px) translateY(calc(var(--scrollY) * 0.4px));
}

.parallax-fast {
    transform: translateZ(0px) translateY(calc(var(--scrollY) * 0.8px));
}

.parallax-reverse {
    transform: translateZ(0px) translateY(calc(var(--scrollY) * -0.3px));
}

/* 3D Parallax Effects */
.parallax-3d {
    transform: translateZ(var(--z)) rotateX(var(--rotateX)) rotateY(var(--rotateY));
    transform-style: preserve-3d;
}

/* Enhanced floating elements with parallax */
.floating-element {
    position: absolute;
    animation: enhancedFloat 8s ease-in-out infinite;
    will-change: transform;
    transform-style: preserve-3d;
}

@keyframes enhancedFloat {

    0%,
    100% {
        transform: translateY(0px) translateX(0px) rotateX(0deg) rotateY(0deg) scale(1);
        opacity: 0.8;
    }

    25% {
        transform: translateY(-15px) translateX(10px) rotateX(5deg) rotateY(3deg) scale(1.05);
        opacity: 0.9;
    }

    50% {
        transform: translateY(-25px) translateX(-5px) rotateX(-3deg) rotateY(-5deg) scale(0.95);
        opacity: 0.7;
    }

    75% {
        transform: translateY(-10px) translateX(15px) rotateX(2deg) rotateY(4deg) scale(1.02);
        opacity: 0.85;
    }
}

/* Mouse-responsive parallax */
.mouse-parallax {
    transition: transform 0.1s ease-out;
}

.mouse-parallax[data-depth="0.1"] {
    transform: translate(calc(var(--mouseX) * -5px), calc(var(--mouseY) * -5px));
}

.mouse-parallax[data-depth="0.2"] {
    transform: translate(calc(var(--mouseX) * -10px), calc(var(--mouseY) * -10px));
}

.mouse-parallax[data-depth="0.3"] {
    transform: translate(calc(var(--mouseX) * -15px), calc(var(--mouseY) * -15px));
}

/* Legacy CTA styles for backward compatibility */
.enrollment-cta {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    text-align: center;
}

.enrollment-cta .section-title,
.enrollment-cta h2 {
    color: white;
}

.enrollment-cta .section-title::after {
    background: rgba(255, 255, 255, 0.3);
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.cta-button.primary {
    background: white;
    color: var(--primary-color);
}

.cta-button.secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
}

/* Gallery Page Styles */
.gallery-intro {
    background: var(--white);
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.gallery-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.gallery-item.large {
    grid-column: span 1;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.gallery-info p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 90%;
    max-height: 80%;
    object-fit: contain;
    border-radius: var(--border-radius);
}

.lightbox-caption {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    color: white;
    background: rgba(0, 0, 0, 0.7);
    padding: 1.5rem;
    border-radius: var(--border-radius);
}

.lightbox-caption h3 {
    margin-bottom: 0.5rem;
    color: white;
}

.lightbox-caption p {
    margin: 0;
    opacity: 0.9;
}

/* Gallery CTA */
.gallery-cta {
    background: var(--off-white);
    text-align: center;
}

/* Contact Page Styles */
.contact-intro {
    background: var(--white);
    text-align: center;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-layout>* {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.contact-info-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-section-title {
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.info-card {
    background: var(--off-white);
    padding: 1.25rem;
    border-radius: var(--border-radius);
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    transition: var(--transition);
    min-height: 120px;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.info-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.info-content h4 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.info-content p {
    margin: 0;
    color: var(--text-light);
}

.contact-map-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-light);
}

.contact-map-card h4 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.social-contact {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

.social-contact h4 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.social-links-horizontal {
    display: flex;
    gap: 1rem;
}

.social-link-contact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
}

.social-link-contact:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Contact Form */
.contact-form-section {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(135, 206, 235, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-checkbox {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.checkbox-input {
    margin-top: 0.25rem;
    transform: scale(1.2);
}

.checkbox-label {
    font-size: 0.9rem;
    color: var(--text-light);
}

.form-submit {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    width: 100%;
    transition: var(--transition);
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.form-success {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--accent-color), rgba(152, 251, 152, 0.8));
    border-radius: var(--border-radius);
    color: var(--text-dark);
}

.success-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.form-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* Requirements Section Styling */
.requirements-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.requirements-text .text-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
    margin-bottom: 2.5rem;
}

.requirements-text .text-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.requirements-text h3 {
    color: var(--text-dark);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    margin-top: 0;
    font-family: 'Baloo 2', cursive;
}

.requirements-text p {
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.requirements-text ul {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.requirements-text li {
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.requirements-highlight {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.highlight-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

.highlight-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.highlight-card h3 {
    color: var(--text-dark);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    font-family: 'Baloo 2', cursive;
}

.highlight-card p {
    color: var(--text-light);
    line-height: 1.5;
    font-size: 1rem;
    margin: 0;
}

/* Admission Notice */
.admission-notice {
    background: linear-gradient(135deg, var(--secondary-color), rgba(255, 182, 193, 0.8));
    text-align: center;
    color: var(--text-dark);
}

.notice-content {
    max-width: 800px;
    margin: 0 auto;
}

.notice-title {
    margin-bottom: 2rem;
}

.notice-text {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.notice-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
}


.notice-cta {
    background: var(--text-dark);
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    display: inline-block;
    transition: var(--transition);
}

.notice-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Responsive Design for Enhanced Enrollment CTA */
@media (max-width: 1024px) {
    .enrollment-cta-enhanced {
        padding: 3rem 0;
        min-height: 300px;
    }

    .cta-content-enhanced {
        grid-template-columns: 1fr 2fr;
        gap: 1.5rem;
        max-width: 900px;
    }

    .cta-visual-elements {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .visual-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    .cta-experience-badge {
        position: static;
        margin-top: 0.8rem;
        transform: none;
        padding: 0.8rem 1.2rem;
    }

    .cta-center-content {
        padding: 1.2rem;
    }

    .cta-title-enhanced {
        font-size: clamp(1.8rem, 4vw, 2.5rem);
    }

    .cta-subtitle-enhanced {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .cta-button-enhanced {
        padding: 0.9rem 1.8rem;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .enrollment-cta-enhanced {
        padding: 2.5rem 0;
        min-height: 280px;
    }

    .cta-content-enhanced {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 0.5rem;
    }

    .cta-visual-section {
        display: none;
    }

    .cta-center-content {
        padding: 1.5rem 1.2rem;
        margin: 0 0.5rem;
    }

    .cta-title-enhanced {
        font-size: clamp(1.5rem, 5vw, 2rem);
        margin-bottom: 0.6rem;
    }

    .cta-subtitle-enhanced {
        font-size: 0.95rem;
        margin-bottom: 1.2rem;
        line-height: 1.4;
    }

    .cta-button-enhanced {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
        gap: 0.6rem;
    }

    .pattern-circle {
        display: none;
    }
}

@media (max-width: 480px) {
    .enrollment-cta-enhanced {
        padding: 2.5rem 0;
        min-height: 350px;
    }

    .cta-center-content {
        padding: 1.5rem 1rem;
        margin: 0 0.5rem;
    }

    .cta-title-enhanced {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-bottom: 0.6rem;
    }

    .cta-subtitle-enhanced {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
    }

    .cta-button-enhanced {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        gap: 0.5rem;
    }

    .button-text {
        font-size: 0.9rem;
    }

    .button-icon {
        font-size: 1.2rem;
    }

    .cta-bottom-info {
        margin: 1.5rem 0.5rem 0;
        padding: 1.2rem;
    }

    .cta-info-text {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

/* Responsive Design for Hero Titles */
@media (min-width: 1200px) {
    .hero-title {
        font-size: clamp(3rem, 3.5vw, 4rem);
    }
}

@media (min-width: 769px) and (max-width: 1199px) {
    .hero-title {
        font-size: clamp(2.5rem, 3.8vw, 3.5rem);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: clamp(2rem, 5vw, 2.5rem);
        margin-bottom: 0.75rem;
        line-height: 1.3;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        border-bottom: 1px solid rgba(135, 206, 235, 0.2);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        padding: 2rem;
        gap: 0.5rem;
        transform: translateY(-20px) scale(0.95);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
    }

    .nav-menu.active {
        transform: translateY(0) scale(1);
        opacity: 1;
        visibility: visible;
    }

    .hamburger {
        display: flex;
        /* Larger touch target for mobile */
        width: 44px;
        height: 44px;
        padding: 8px;
        cursor: pointer;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    /* Improve mobile navigation link touch targets */
    .nav-link {
        padding: 1rem 1.5rem;
        margin: 0.5rem 0;
        font-size: 1rem;
        /* Responsive font size for mobile */
        text-align: center;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
    }

    /* Enhanced mobile nav link hover effects */
    .nav-link::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(135, 206, 235, 0.1), transparent);
        transition: left 0.5s ease;
    }

    .nav-link:hover::before {
        left: 100%;
    }

    .nav-link:hover {
        background: rgba(135, 206, 235, 0.1);
        transform: translateY(-2px);
        color: var(--primary-color);
    }

    .nav-link.active {
        background: rgba(135, 206, 235, 0.15);
        color: var(--primary-color);
        font-weight: 600;
    }

    /* Better mobile navbar height */
    .nav-container {
        height: 70px;
        padding: 0 1rem;
    }

    .navbar {
        height: 70px;
    }

    /* Show mobile spaces on mobile devices */
    .mobile-space {
        display: inline;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .container {
        padding: 0 1rem;
    }

    section {
        padding: 3rem 0;
    }

    .intro-stats {
        grid-template-columns: 1fr;
    }

    .montessori-benefits {
        grid-template-columns: 1fr;
    }

    .programs-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-item {
        padding: 1.5rem;
        gap: 1rem;
    }

    .contact-icon {
        font-size: 2rem;
        width: 50px;
    }

    .contact-map iframe {
        height: 400px;
    }

    .social-links {
        gap: 1rem;
        margin-top: 2rem;
    }

    .social-link-contact,
    .social-link {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-layout>* {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    .philosophy {
        padding: 2rem 0;
    }

    .philosophy-header {
        margin-bottom: 2rem;
    }

    .philosophy-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .philosophy-title {
        font-size: clamp(2rem, 5vw, 2.5rem);
        margin-bottom: 1rem;
    }

    .philosophy-subtitle {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .philosophy-main {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .philosophy-quote {
        padding: 2rem 1.5rem;
        max-width: 280px;
    }

    .philosophy-quote p {
        font-size: 1rem;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .value-card {
        padding: 2rem 1.5rem;
    }

    .value-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .value-title {
        font-size: 1.2rem;
    }

    .value-description {
        font-size: 0.9rem;
    }

    .mission-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Clean Mobile Timeline Styles */
    .timeline {
        max-width: 100%;
        padding: 0 0.5rem;
    }

    .timeline-item {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 1.5rem;
        padding: 1rem 0;
        position: relative;
        border-bottom: 1px solid rgba(135, 206, 235, 0.2);
    }

    .timeline-item:last-child {
        border-bottom: none;
    }

    .timeline-item::before {
        content: '';
        position: absolute;
        left: 0;
        top: 1rem;
        bottom: 1rem;
        width: 2px;
        background: var(--primary-color);
        border-radius: 1px;
    }

    /* Hide timeline connector line on mobile */
    @media (max-width: 768px) {
        .timeline-item::before {
            display: none;
        }
    }

    .timeline-year {
        background: var(--primary-color);
        color: white;
        padding: 0.5rem 1rem;
        border-radius: 20px;
        text-align: center;
        font-weight: 600;
        font-size: 0.9rem;
        position: relative;
        z-index: 2;
        align-self: flex-start;
        margin-bottom: 0.5rem;
        width: fit-content;
        min-width: 80px;
    }

    .timeline-content {
        padding-left: 1rem;
        position: relative;
        z-index: 2;
    }

    .timeline-content h3 {
        margin-bottom: 0.5rem;
        color: var(--text-dark);
        font-size: 1.1rem;
        font-weight: 600;
    }

    .timeline-content p {
        color: var(--text-light);
        line-height: 1.5;
        font-size: 0.9rem;
        margin: 0;
    }

    .program-content {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.5rem;
    }

    .readiness-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Single column layout for Quick Links on mobile */
    .quick-links-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Better mobile form styling */
    .form-input,
    .form-textarea,
    .form-select {
        font-size: 16px;
        /* Prevents zoom on iOS */
        padding: 1rem;
        min-height: 48px;
        /* Better touch targets */
    }

    .form-submit {
        min-height: 48px;
        font-size: 1.1rem;
        padding: 1rem 1.5rem;
    }

    /* Better mobile checkbox styling */
    .form-checkbox {
        padding: 1rem 0;
    }

    .checkbox-input {
        transform: scale(1.3);
        margin-right: 0.75rem;
    }

    /* Mobile contact form improvements */
    .contact-form-section {
        margin-top: 2rem;
    }

    .form-group {
        margin-bottom: 1.5rem;
    }

    /* Mobile Requirements Section */
    .requirements-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .requirements-text .text-card {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .requirements-text h3 {
        font-size: 1.3rem;
        margin-top: 0;
        margin-bottom: 0.75rem;
    }

    .requirements-text p {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
        line-height: 1.4;
    }

    .requirements-text li {
        font-size: 0.95rem;
        margin-bottom: 0.15rem;
        line-height: 1.4;
    }

    .requirements-highlight {
        gap: 2rem;
    }

    .highlight-card {
        padding: 1.5rem;
    }

    .highlight-card h3 {
        font-size: 1.3rem;
        margin-bottom: 0.75rem;
    }

    .highlight-card p {
        font-size: 0.95rem;
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: clamp(1.8rem, 4.5vw, 2.2rem);
        line-height: 1.2;
        margin-bottom: 0.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.4;
    }

    .section-title {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    .info-card {
        padding: 1.5rem;
    }

    /* Enhanced mobile philosophy styles */
    .philosophy {
        padding: 2.5rem 0;
    }

    .philosophy-header {
        margin-bottom: 2.5rem;
    }

    .philosophy-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .philosophy-title {
        font-size: clamp(1.8rem, 4.5vw, 2.2rem);
        margin-bottom: 0.8rem;
    }

    .philosophy-subtitle {
        font-size: 1rem;
        line-height: 1.5;
    }

    .philosophy-main {
        gap: 2rem;
        margin-bottom: 2.5rem;
    }

    .philosophy-quote {
        padding: 1.5rem;
        max-width: 100%;
    }

    .philosophy-quote p {
        font-size: 0.95rem;
    }

    .values-title {
        font-size: clamp(1.8rem, 4vw, 2rem);
        margin-bottom: 1.5rem;
    }

    .value-card {
        padding: 1.5rem;
    }

    .value-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }

    .value-title {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }

    .contact-form-section {
        padding: 2rem 1.5rem;
    }

    /* Optimize for very small screens */
    .nav-container {
        padding: 0 1rem;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .logo-text strong {
        font-size: 1.2rem;
    }

    .background-leaves .leaf {
        font-size: clamp(0.8rem, 1.5vw, 1rem);
    }

    .whatsapp-float {
        width: 45px;
        height: 45px;
        bottom: 15px;
        right: 15px;
    }

    .whatsapp-float::before {
        width: 22px;
        height: 22px;
    }

    /* Better mobile typography */
    .intro-text {
        font-size: 1rem;
        line-height: 1.6;
    }

    .testimonial-slide .testimonial-content {
        font-size: 1rem;
        line-height: 1.7;
    }

    .benefit-card,
    .program-card {
        padding: 1.5rem;
    }

    /* Better mobile spacing */
    section {
        padding: 2.5rem 0;
    }

    .container {
        padding: 0 0.75rem;
    }

    /* Smaller font size for very small screens */
    .nav-link {
        font-size: 0.875rem;
    }
}

/* Additional small screen optimizations */
@media (max-width: 360px) {
    .container {
        padding: 0 0.5rem;
    }

    .hero-content {
        padding: 0 0.5rem;
    }

    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .intro-text {
        font-size: 1rem;
    }

    /* Reduce leaf count on very small screens */
    .background-leaves .leaf:nth-child(n+11) {
        display: none;
    }
}

/* Text Truncation for Navigation Title at 360px */
@media (max-width: 360px) and (min-width: 359px) {

    /* Logo text truncation - shows "Harvard House Mont." */
    .logo-text strong {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 200px;
        direction: rtl;
        text-align: left;
    }
}

/* Text Truncation for Navigation Title on Ultra-Small Screens */
@media (max-width: 358px) {

    /* Logo text truncation - only for navigation bar */
    .logo-text strong {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 200px;
    }
}

/* Enhanced truncation for very small screens */
@media (max-width: 320px) {
    .logo-text strong {
        max-width: 180px;
    }
}

/* Ultra-small screens truncation */
@media (max-width: 280px) {
    .logo-text strong {
        max-width: 160px;
    }
}

/* Fix line break issue for devices less than 320px */
@media (max-width: 319px) {
    .logo-text {
        font-size: 1rem;
        line-height: 1.1;
        word-break: keep-all;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 280px;
    }

    .logo-text strong {
        font-size: 1.1rem;
        line-height: 1.1;
    }

    .logo-text small {
        font-size: 0.65rem;
        line-height: 1.2;
        margin-top: -0.3rem;
        word-break: normal;
        white-space: normal;
    }

    /* Ensure proper spacing in nav container for very small screens */
    .nav-container {
        padding: 0 0.5rem;
        gap: 0.5rem;
    }

    /* Reduce logo image size for very small screens */
    .logo-img {
        width: 42px;
        height: 42px;
    }

    /* Adjust hamburger menu for very small screens */
    .hamburger {
        width: 40px;
        height: 40px;
        padding: 6px;
    }

    .hamburger span {
        width: 20px;
        height: 2px;
    }
}

/* Mobile Image Optimizations */
@media (max-width: 768px) {

    /* Optimize images for mobile loading */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Better logo sizing on mobile */
    .logo-img {
        width: 52px;
        height: 52px;
    }

    .footer-logo-img {
        width: 35px;
        height: 35px;
    }

    /* Optimize gallery images for mobile */
    .gallery-item img {
        height: 200px;
    }

    /* Better mobile map sizing */
    .contact-map iframe {
        height: 350px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .floating-leaves {
        animation: none;
    }

    .leaf {
        animation: none;
    }
}

/* Mobile Animation Optimizations */
@media (max-width: 768px) {

    /* Reduce animation complexity on mobile */
    .benefit-card:hover,
    .program-card:hover,
    .team-member:hover,
    .info-card:hover {
        transform: translateY(-2px);
    }

    .cta-button:hover {
        transform: translateY(-1px) scale(1.01);
    }

    /* Disable parallax on mobile for better performance */
    .hero-background {
        transform: none !important;
    }

    /* Reduce shadow complexity on mobile */
    .benefit-card:hover,
    .program-card:hover,
    .testimonial-slide,
    .info-card {
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    /* Optimize card animations */
    .benefit-card,
    .program-card,
    .team-member,
    .info-card {
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    /* Timeline Performance Optimizations for Mobile */
    .timeline-item {
        transition: all 0.3s ease;
    }

    /* Reduce motion for better performance on low-end devices */
    @media (max-width: 480px) {
        .timeline {
            padding: 0 0.25rem;
        }

        .timeline-item {
            padding: 0.75rem 0;
            gap: 0.75rem;
            margin-bottom: 1rem;
        }

        .timeline-year {
            font-size: 0.85rem;
            padding: 0.4rem 0.8rem;
            min-width: 70px;
        }

        .timeline-content {
            padding-left: 0.75rem;
        }

        .timeline-content h3 {
            font-size: 1rem;
        }

        .timeline-content p {
            font-size: 0.85rem;
            line-height: 1.4;
        }
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .timeline-item {
        animation: none !important;
        transition: opacity 0.3s ease !important;
    }

    .timeline-year,
    .timeline-content {
        animation: none !important;
    }

    .timeline-item.timeline-visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Focus styles for accessibility */
.nav-link:focus,
.cta-button:focus,
.form-input:focus,
.form-textarea:focus,
.form-submit:focus,
.social-link:focus,
.social-link-contact:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Social Media Icons */
.social-link-contact,
.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: var(--transition);
    text-decoration: none;
    position: relative;
    font-size: 24px;
    margin: 0 2px;
}

.social-link-contact.facebook,
.social-link.facebook {
    background: #1877f2;
    color: white;
}

.social-link-contact.instagram,
.social-link.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.social-link-contact:hover,
.social-link:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow);
}

/* Facebook Icon using Font Awesome */
.social-link-contact.facebook::before,
.social-link.facebook::before {
    content: '\f09a';
    font-family: 'Font Awesome 6 Brands';
    font-weight: 400;
    font-size: 24px;
}

/* Instagram Icon using Font Awesome */
.social-link-contact.instagram::before,
.social-link.instagram::before {
    content: '\f16d';
    font-family: 'Font Awesome 6 Brands';
    font-weight: 400;
    font-size: 24px;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: whatsappPulse 2s infinite;
}

.whatsapp-float::before {
    content: '';
    width: 28px;
    height: 28px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893A11.821 11.821 0 0020.465 3.516z'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.4);
}

.whatsapp-text {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.whatsapp-float:hover .whatsapp-text {
    opacity: 1;
    visibility: visible;
}

@keyframes whatsappPulse {
    0% {
        box-shadow: 0 2px 20px rgba(37, 211, 102, 0.3);
    }

    50% {
        box-shadow: 0 2px 20px rgba(37, 211, 102, 0.6), 0 0 0 10px rgba(37, 211, 102, 0.2);
    }

    100% {
        box-shadow: 0 2px 20px rgba(37, 211, 102, 0.3);
    }
}


/* Hide WhatsApp button on very small screens */
@media (max-width: 480px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-text {
        display: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --shadow: 0 0 0 2px var(--text-dark);
        --shadow-light: 0 0 0 1px var(--text-light);
    }
}

/* Social Gallery Section */
.social-gallery-section {
    background: linear-gradient(135deg,
            rgba(255, 154, 158, 0.15) 0%,
            rgba(254, 207, 239, 0.15) 25%,
            rgba(227, 242, 253, 0.15) 50%,
            rgba(187, 222, 251, 0.15) 75%,
            rgba(168, 85, 247, 0.15) 100%);
    padding: 3rem 0;
    position: relative;
    z-index: 1;
}

/* Social Gallery Header */
.social-gallery-header {
    text-align: center;
    margin-bottom: 3rem;
}

/* Tab Navigation */
.tab-navigation {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(135, 206, 235, 0.3);
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.tab-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.tab-button:hover::before {
    left: 100%;
}

.tab-button:hover,
.tab-button.active {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: var(--primary-color);
}

.tab-button.active {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
}

.tab-button i {
    font-size: 1.2rem;
}

/* Tab Content Container */
.tab-content-container {
    position: relative;
    min-height: 600px;
}

.tab-content {
    display: none;
    animation: fadeInUp 0.5s ease-out;
}

.tab-content.active {
    display: block;
}

/* Social Grid Layout */
.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

/* Social Items */
.social-item {
    transition: var(--transition);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    position: relative;
    background: var(--white);
}

.social-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

/* Social Embeds */
.social-embed {
    position: relative;
    width: 100%;
    height: 350px;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--off-white);
}

.social-embed iframe,
.social-embed blockquote {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: var(--border-radius);
}

/* Social Overlay for Embeds */
.social-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    display: flex;
    align-items: flex-end;
    opacity: 0;
    transition: var(--transition);
    padding: 1.5rem;
    cursor: pointer;
}

.social-item:hover .social-overlay {
    opacity: 1;
}

/* Platform Badges */
.platform-badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.platform-badge.facebook {
    background: #1877f2;
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4);
}

.platform-badge.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    box-shadow: 0 4px 12px rgba(188, 24, 136, 0.4);
}

/* Social Info */
.social-info h3 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.social-info p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Platform CTA */
.platform-cta {
    text-align: center;
    margin-top: 3rem;
}

.platform-follow-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
}

.platform-follow-btn.facebook {
    background: #1877f2;
    color: white;
}

.platform-follow-btn.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.platform-follow-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow);
}

/* Social Fallback */
.social-fallback {
    text-align: center;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

.fallback-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.fallback-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
}

.facebook-link {
    background: #1877f2;
    color: white;
}

.instagram-link {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.fallback-links a:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Enhanced Lightbox for Social Media */
.social-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-lightbox.active {
    display: flex;
    opacity: 1;
}

.social-lightbox-image {
    max-width: 90%;
    max-height: 80%;
    object-fit: contain;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.social-lightbox.active .social-lightbox-image {
    transform: scale(1);
}

.social-lightbox-caption {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    color: white;
    background: rgba(0, 0, 0, 0.8);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
}

.social-lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.7);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-lightbox-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

/* Responsive Design for Social Gallery */
@media (max-width: 768px) {
    .social-gallery-section {
        padding: 2.5rem 0;
    }

    .tab-navigation {
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }

    .tab-button {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    .social-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1rem;
    }

    .social-embed {
        height: 300px;
    }

    .platform-follow-btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    .fallback-links {
        flex-direction: column;
        align-items: center;
    }

    .social-lightbox-caption {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        padding: 1rem;
    }

    .social-lightbox-close {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .tab-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .tab-button i {
        font-size: 1rem;
    }

    .social-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .social-embed {
        height: 280px;
    }

    .platform-follow-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }

    .social-fallback {
        padding: 2rem 1rem;
    }
}

/* Animation for tab transitions */
@keyframes tabFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-content {
    animation: tabFadeIn 0.4s ease-out;
}

/* Enhanced hover effects */
.social-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: 1;
    pointer-events: none;
}

.social-item:hover::before {
    width: 300px;
    height: 300px;
}

/* Combined Social Media Section (Legacy - keeping for compatibility) */
.social-media-section {
    background: linear-gradient(135deg,
            rgba(255, 154, 158, 0.15) 0%,
            rgba(254, 207, 239, 0.15) 25%,
            rgba(227, 242, 253, 0.15) 50%,
            rgba(187, 222, 251, 0.15) 75%,
            rgba(168, 85, 247, 0.15) 100%);
    padding: 4rem 0;
    position: relative;
    z-index: 1;
}

.social-header {
    text-align: center;
    margin-bottom: 3rem;
}

.social-media-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Social Platform Containers */
.social-platform {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.social-platform:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

/* Platform Headers */
.platform-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--light-gray);
}

.platform-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.platform-icon.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.platform-icon.facebook {
    background: #1877f2;
}

.platform-header h3 {
    flex: 1;
    margin: 0 1rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.platform-follow-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.platform-follow-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

/* Card Stack Containers */
.card-stack-container {
    position: relative;
    height: 450px;
    overflow: hidden;
    border-radius: var(--border-radius);
    background: var(--off-white);
}

.card-stack {
    position: relative;
    height: 100%;
    width: 100%;
}

/* Social Cards */
.social-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.social-card.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    z-index: 3;
}

.social-card.prev {
    opacity: 0.7;
    transform: translateY(-10px) scale(0.98);
    z-index: 2;
}

.social-card.next {
    opacity: 0.7;
    transform: translateY(10px) scale(0.98);
    z-index: 2;
}

.social-card.prev-2 {
    opacity: 0.3;
    transform: translateY(-20px) scale(0.96);
    z-index: 1;
}

.social-card.next-2 {
    opacity: 0.3;
    transform: translateY(20px) scale(0.96);
    z-index: 1;
}

.card-content {
    width: 100%;
    height: 100%;
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
}

/* Instagram Card Specific Styles */
.instagram-card .card-content blockquote {
    height: 100% !important;
    width: 100% !important;
}

/* Facebook Card Specific Styles */
.facebook-card .card-content iframe {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    border-radius: var(--border-radius) !important;
}

/* Scroll Indicators */
.scroll-indicator {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    opacity: 0.7;
}

.scroll-indicator.bottom {
    top: auto;
    bottom: 10px;
}

.scroll-indicator:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.8);
    transform: translateX(-50%) scale(1.1);
}

.scroll-indicator i {
    font-size: 1rem;
}

/* Hide scroll indicators when at ends */
.scroll-indicator.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Animation Classes */
@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes cardSlideOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
}

.social-card.entering {
    animation: cardSlideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-card.exiting {
    animation: cardSlideOut 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Advanced Touch Gesture System */
.touch-enhanced {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

.touch-feedback {
    position: relative;
    overflow: hidden;
}

.touch-feedback:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}


/* Swipe Indicators */
.swipe-indicator {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(135, 206, 235, 0.3);
}

.swipe-indicator.left {
    left: -20px;
}

.swipe-indicator.right {
    right: -20px;
}

.swipe-indicator.show {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

.swipe-indicator.hide {
    opacity: 0;
    transform: translateY(-50%) scale(0.8);
}

/* Pinch Zoom Indicator */
.pinch-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: rgba(135, 206, 235, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pinch-indicator.show {
    opacity: 1;
}

/* Gesture Trail Effect */
.gesture-trail {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1000;
}

/* Multi-touch Visualization */
.multi-touch-area {
    position: relative;
    overflow: hidden;
}

.touch-point {
    position: absolute;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.8;
    transition: all 0.1s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

/* Touch-friendly scroll areas */
.card-stack-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.1));
    z-index: 5;
    pointer-events: none;
}

.card-stack-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(rgba(0, 0, 0, 0.1), transparent);
    z-index: 5;
    pointer-events: none;
}

/* Enhanced Touch States */
.touch-element {
    position: relative;
    transition: all 0.2s ease;
}

.touch-element.touch-active {
    transform: scale(0.95);
    background: rgba(135, 206, 235, 0.1);
}

.touch-element.touch-hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(135, 206, 235, 0.3);
}

/* Advanced Performance Optimizations */
.gpu-accelerated {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
    will-change: transform;
}

.animation-optimized {
    transform: translateZ(0);
    backface-visibility: hidden;
    contain: layout style paint;
    content-visibility: auto;
}

.performance-mode {
    contain-intrinsic-size: 1px 1px;
    content-visibility: auto;
}

/* Animation Batching */
.animation-batch {
    animation: batchAnimation 1s ease-out;
    animation-fill-mode: both;
}

@keyframes batchAnimation {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Layer Promotion for Performance */
.layer-promoted {
    transform: translateZ(0);
    will-change: transform, opacity;
    backface-visibility: hidden;
    z-index: 1;
}

/* Reduced Motion Enhancements */
@media (prefers-reduced-motion: reduce) {

    .parallax-slow,
    .parallax-medium,
    .parallax-fast,
    .parallax-reverse,
    .floating-element,
    .physics-animation,
    .morphing-shape,
    .elastic-element,
    .wave-text span {
        animation: none !important;
        transform: none !important;
        transition: opacity 0.3s ease !important;
    }

    .mouse-parallax {
        transform: none !important;
    }

    .interactive-element::before,
    .hover-chain::before {
        display: none !important;
    }


    .bg-pattern {
        animation: none !important;
        opacity: 0.05 !important;
    }

    .loading-spinner {
        animation: simpleSpin 2s linear infinite !important;
    }

    @keyframes simpleSpin {
        0% {
            transform: rotate(0deg);
        }

        100% {
            transform: rotate(360deg);
        }
    }
}

/* Ultra Reduced Motion */
@media (prefers-reduced-motion: no-preference) {
    .animation-paused {
        animation-play-state: paused;
    }

    .animation-running {
        animation-play-state: running;
    }
}

/* Performance-based Animation Control */
@media (max-width: 768px) {
    .desktop-only-animation {
        animation: none !important;
        transform: none !important;
    }

    .mobile-optimized {
        animation-duration: 0.3s !important;
        transition-duration: 0.2s !important;
    }
}

/* High Performance Mode */
@media (min-resolution: 192dpi) {
    .retina-optimized {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Animation Containment */
.animation-container {
    contain: layout style paint;
    content-visibility: auto;
    transform: translateZ(0);
}

/* Batch Animation Triggers */
.stagger-trigger {
    animation: triggerStagger 0.1s ease-out;
}

@keyframes triggerStagger {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1);
    }
}

/* Memory-efficient Animations */
.memory-optimized {
    animation-fill-mode: forwards;
    animation-iteration-count: 1;
}

/* CPU vs GPU Animation Selection */
.hardware-accelerated {
    transform: translateZ(0);
    will-change: transform;
}

.software-rendered {
    will-change: auto;
    transform: none;
}

/* Gesture Animation States */
.gesture-swipe-left {
    animation: swipeLeftFeedback 0.3s ease-out;
}

.gesture-swipe-right {
    animation: swipeRightFeedback 0.3s ease-out;
}

.gesture-pinch-in {
    animation: pinchInFeedback 0.3s ease-out;
}

.gesture-pinch-out {
    animation: pinchOutFeedback 0.3s ease-out;
}

@keyframes swipeLeftFeedback {
    0% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(-10px);
    }

    100% {
        transform: translateX(0);
    }
}

@keyframes swipeRightFeedback {
    0% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(10px);
    }

    100% {
        transform: translateX(0);
    }
}

@keyframes pinchInFeedback {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes pinchOutFeedback {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* Horizontal swipe indicators for mobile */
.social-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 12px solid rgba(255, 255, 255, 0.7);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
    pointer-events: none;
}

.social-card::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 12px solid rgba(255, 255, 255, 0.7);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
    pointer-events: none;
}

/* Show swipe indicators when cards are active */
.social-card.active::before,
.social-card.active::after {
    opacity: 0.3;
}

/* Hide indicators on desktop */
@media (min-width: 769px) {

    .social-card::before,
    .social-card::after {
        display: none;
    }
}

/* Enhanced mobile touch feedback */
@media (max-width: 768px) {
    .card-stack-container {
        touch-action: pan-y;
        -webkit-overflow-scrolling: touch;
    }

    /* Prevent horizontal scroll on mobile */
    .social-media-section {
        overflow-x: hidden;
    }

    /* Enhanced visual feedback for horizontal swiping */
    .social-card {
        will-change: transform;
    }

    /* Add subtle shadow during horizontal drag */
    .social-card[style*="translateX"] {
        box-shadow: -10px 0 20px rgba(0, 0, 0, 0.2);
        transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
    }
}

/* Responsive Design for Social Media Section */
@media (max-width: 1024px) {
    .social-media-layout {
        gap: 1.5rem;
    }

    .social-platform {
        padding: 1.5rem;
    }

    .card-stack-container {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .social-media-section {
        padding: 2.5rem 0;
    }

    .social-media-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 600px;
        margin: 0 auto;
    }

    .social-platform {
        padding: 1.25rem;
    }

    .platform-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        margin-bottom: 1.25rem;
    }

    .platform-header h3 {
        margin: 0;
    }

    .platform-follow-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .card-stack-container {
        height: 400px;
    }

    /* Mobile scroll indicators */
    .scroll-indicator {
        width: 35px;
        height: 35px;
    }

    .scroll-indicator i {
        font-size: 0.9rem;
    }

    /* Adjust gradient overlays for mobile */
    .card-stack-container::before,
    .card-stack-container::after {
        height: 60px;
    }
}

@media (max-width: 480px) {
    .social-media-section {
        padding: 2rem 0;
    }

    .social-header {
        margin-bottom: 1.5rem;
    }

    .social-platform {
        padding: 1rem;
    }

    .platform-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .platform-header h3 {
        font-size: 1.25rem;
    }

    .card-stack-container {
        height: 350px;
    }

    /* Smaller scroll indicators on very small screens */
    .scroll-indicator {
        width: 30px;
        height: 30px;
    }

    .scroll-indicator i {
        font-size: 0.8rem;
    }

    /* Reduce gradient overlay height on small screens */
    .card-stack-container::before,
    .card-stack-container::after {
        height: 50px;
    }
}

/* Contact CTA Section Styles */
.contact-cta-section {
    padding: 5rem 0;
    background: var(--white);
}

.contact-cta-section .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Fix for Bootstrap utility classes used in HTML */
.contact-cta-section .max-w-4xl {
    max-width: 56rem;
    margin: 0 auto;
}

.contact-cta-section .mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.contact-cta-section .text-center {
    text-align: center;
}

.contact-cta-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    text-align: center;
    font-family: 'Baloo 2', cursive;
}

.contact-cta-text {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    text-align: center;
    line-height: 1.6;
}

.contact-cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

.contact-cta-button {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
    min-width: 200px;
    text-align: center;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.contact-cta-button.primary {
    background: linear-gradient(135deg, var(--pastel-blue), rgba(135, 206, 235, 0.8));
    color: white;
}

.contact-cta-button.primary:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow);
}

.contact-cta-button.secondary {
    background: linear-gradient(135deg, var(--pastel-mint), rgba(152, 251, 152, 0.8));
    color: var(--text-dark);
}

.contact-cta-button.secondary:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow);
}

/* Responsive Design for Contact CTA */
@media (min-width: 640px) {
    .contact-cta-buttons {
        flex-direction: row;
        gap: 1.5rem;
    }

    .contact-cta-button {
        min-width: 220px;
    }
}

@media (max-width: 768px) {
    .contact-cta-section {
        padding: 3rem 0;
    }

    .contact-cta-section .container {
        padding: 0 1rem;
    }

    .contact-cta-title {
        font-size: clamp(2rem, 5vw, 2.8rem);
        margin-bottom: 1rem;
    }

    .contact-cta-text {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    /* Ensure proper mobile alignment for Bootstrap utility classes */
    .contact-cta-section .max-w-4xl {
        max-width: 100%;
        margin: 0 auto;
    }

    .contact-cta-section .text-center {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .contact-cta-section {
        padding: 2.5rem 0;
    }

    .contact-cta-title {
        font-size: clamp(1.8rem, 6vw, 2.2rem);
        margin-bottom: 0.75rem;
    }

    .contact-cta-text {
        font-size: 1rem;
        margin-bottom: 1.25rem;
        line-height: 1.5;
    }

    .contact-cta-buttons {
        gap: 0.75rem;
    }

    .contact-cta-button {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        min-width: 180px;
    }
}

/* Enhanced Footer Styles */
.footer-enhanced {
    background: linear-gradient(135deg,
            #2c3e50 0%,
            #34495e 50%,
            #2c3e50 100%);
    border-top: 3px solid var(--primary-color);
    padding: 1.5rem 0 1rem;
    position: relative;
}

.footer-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(135, 206, 235, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.footer-about {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-logo-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.5rem;
    border: 3px solid rgba(135, 206, 235, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.footer-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
    font-family: 'Baloo 2', cursive;
    text-align: left;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 0.3rem 0;
    transition: var(--transition);
    position: relative;
    display: block;
    font-size: 0.9rem;
    text-align: left;
}

.footer-link:hover {
    color: var(--primary-color);
    transform: translateX(3px);
}

.footer-contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
    min-height: 2.5rem;
}

.footer-contact-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    color: var(--primary-color);
    width: 24px;
    height: 24px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border-radius: 50%;
    background: rgba(135, 206, 235, 0.1);
}

.footer-contact-icon:hover {
    color: var(--accent-color);
    transform: scale(1.1);
    background: rgba(152, 251, 152, 0.2);
    box-shadow: 0 0 10px rgba(135, 206, 235, 0.3);
}

.footer-contact-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.5;
    text-align: left;
    flex: 1;
    padding: 0 0.5rem;
}

.footer-contact-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    transition: var(--transition);
    text-align: left;
}

.footer-contact-link:hover {
    color: var(--primary-color);
}

.footer-social-section {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.footer-social-links {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    margin-bottom: 1rem;
}

.footer-social-link {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.2rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.footer-social-link::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: left 0.5s ease;
}

.footer-social-link:hover::before {
    left: 100%;
}

.footer-social-link:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.footer-social-link.facebook {
    background: #1877f2;
    box-shadow: 0 2px 8px rgba(24, 119, 242, 0.3);
}

.footer-social-link.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    box-shadow: 0 2px 8px rgba(188, 24, 136, 0.3);
}

.footer-newsletter {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-newsletter-input {
    padding: 0.6rem 1rem;
    border: 2px solid rgba(135, 206, 235, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: var(--transition);
    outline: none;
}

.footer-newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
    opacity: 1;
}

.footer-newsletter-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(135, 206, 235, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

.footer-newsletter-button {
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, var(--accent-color), rgba(152, 251, 152, 0.9));
    color: var(--text-dark);
    border: none;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.footer-newsletter-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, rgba(152, 251, 152, 1), var(--accent-color));
}

.footer-copyright {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(135, 206, 235, 0.25);
    text-align: center;
    position: relative;
    z-index: 2;
}

.footer-copyright-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    margin: 0;
    opacity: 1;
    text-align: center;
}

/* Responsive Design for Enhanced Footer */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }

    .footer-enhanced {
        padding: 1.25rem 0 0.75rem;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 0.8rem;
    }

    .footer-enhanced {
        padding: 1rem 0 0.5rem;
    }

    .footer-social-links {
        justify-content: center;
    }

    .footer-contact-item {
        flex-direction: column;
        gap: 0.2rem;
        text-align: center;
        padding: 0.3rem 0;
    }

    .footer-contact-icon {
        align-self: center;
    }

    /* Ensure consistent footer text sizes on mobile */
    .footer-title {
        font-size: 1.1rem;
        font-weight: 700;
        margin-bottom: 0.4rem;
        text-align: center;
    }

    .footer-contact-text {
        font-size: 0.9rem;
        font-weight: 600;
        line-height: 1.3;
        text-align: center;
    }

    .footer-contact-link {
        font-size: 0.9rem;
        font-weight: 600;
        text-align: center;
    }

    .footer-description {
        font-size: 0.85rem;
        line-height: 1.3;
        text-align: center;
    }

    .footer-copyright-text {
        font-size: 0.8rem;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.6rem;
    }

    .footer-enhanced {
        padding: 0.8rem 0 0.4rem;
    }

    .footer-about {
        grid-column: 1 / -1;
        text-align: center;
        align-items: center;
    }

    .footer-title {
        font-size: 1.1rem;
        margin-bottom: 0.3rem;
        text-align: center;
    }

    .footer-links {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.3rem;
        justify-content: center;
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .footer-links li {
        display: inline-block;
        margin: 0;
    }

    .footer-links li {
        margin-bottom: 0.1rem;
    }

    .footer-link {
        font-size: 0.75rem;
        padding: 0.15rem 0.3rem;
        white-space: nowrap;
    }

    /* Show all Quick Links on mobile in one line */

    .footer-social-section {
        grid-column: 1 / -1;
        text-align: center;
        align-items: center;
    }

    /* Hide newsletter section on mobile devices */
    .footer-newsletter {
        display: none;
    }

    .footer-contact-section {
        text-align: center;
    }

    .footer-contact-list {
        align-items: center;
    }

    /* Enhanced mobile text prominence */
    .footer-contact-text {
        font-size: 0.85rem;
        font-weight: 400;
    }

    .footer-contact-link {
        font-size: 0.85rem;
        font-weight: 400;
    }

    .footer-description {
        font-size: 0.8rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .footer-enhanced {
        padding: 0.8rem 0 0.5rem;
    }

    .footer-logo-img {
        width: 60px;
        height: 60px;
    }

    .footer-social-links {
        justify-content: center;
        gap: 0.5rem;
    }

    .footer-social-link {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    /* Enhanced text prominence for small screens */
    .footer-contact-text {
        font-size: 0.9rem;
        font-weight: 400;
        line-height: 1.2;
    }

    .footer-contact-link {
        font-size: 0.9rem;
        font-weight: 400;
    }

    .footer-description {
        font-size: 0.85rem;
        text-align: center;
        line-height: 1.2;
    }

    .footer-title {
        font-size: 1.05rem;
        margin-bottom: 0.4rem;
        font-weight: 800;
        text-align: center;
    }

    .footer-contact-item {
        padding: 0.2rem 0;
    }

    /* Enhanced Quick Links for very small screens */
    .footer-links {
        flex-direction: row;
        gap: 0.15rem;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .footer-links li {
        display: inline-block;
        margin: 0;
    }

    .footer-link {
        font-size: 0.7rem;
        padding: 0.1rem 0.25rem;
    }

    /* Ensure newsletter is hidden on very small screens too */
    .footer-newsletter {
        display: none;
    }

    .footer-newsletter-input,
    .footer-newsletter-button {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }

    .footer-copyright-text {
        font-size: 0.7rem;
        font-weight: 600;
    }

    /* Extra Small Screen Requirements */
    .requirements-text .text-card {
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .requirements-text h3 {
        font-size: 1.2rem;
        margin-top: 0;
        margin-bottom: 0.5rem;
    }

    .requirements-text p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        line-height: 1.4;
    }

    .requirements-text li {
        font-size: 0.9rem;
        margin-bottom: 0.1rem;
        line-height: 1.4;
    }

    .highlight-card {
        padding: 1.25rem;
    }

    .highlight-card h3 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    .highlight-card p {
        font-size: 0.9rem;
        line-height: 1.4;
    }
}