/* ============================================
   EVORA CHILD DEVELOPMENT CENTER - STYLESHEET
   ============================================ */

/* CSS Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    color-scheme: light only;
    /* Primary Brand Colors - Evora Custom Scheme */
    --primary-color: #3A80B1;
    /* Medium blue - Trust & Professional */
    --secondary-color: #80B374;
    /* Soft green - Growth & Calm */
    --accent-color: #F0623D;
    /* Coral orange - Warm & Playful */
    --dark-color: #2C3E50;
    --light-color: #F8F9FA;
    --text-color: #2d3436;
    /* Dark gray - Main text */
    --gray-color: #415599;
    /* Muted navy - Secondary text */
    --white: #FFFFFF;

    /* CTA & Interactive Colors */
    --cta-primary: #E93971;
    /* Vibrant pink - Primary CTAs */
    --cta-secondary: #F0623D;
    /* Coral orange - Secondary CTAs */

    /* Background Accents */
    --bg-accent-1: #559FA2;
    /* Teal green - Section backgrounds */
    --bg-accent-2: #3B92BF;
    /* Soft blue - Alternate sections */

    /* Highlights & Icons */
    --highlight-yellow: #ECA22A;
    /* Mustard yellow - Icons & badges */
    --highlight-green: #BACF36;
    /* Yellow-green - Success states */

    /* Additional Brand Colors */
    --purple-wine: #672571;
    /* Purple wine - Special accents */
    --sky-blue: #328ECA;
    /* Sky blue - Links & hover */
    --vibrant-pink: #E93971;
    /* Vibrant pink - Emphasis */

    /* Gradients - Updated with new colors */
    --gradient-1: linear-gradient(135deg, #3A80B1 0%, #672571 100%);
    --gradient-2: linear-gradient(135deg, #E93971 0%, #F0623D 100%);
    --gradient-3: linear-gradient(135deg, #80B374 0%, #559FA2 100%);

    /* Responsive Spacing Scale */
    --spacing-xs: 0.5rem;
    /* 8px */
    --spacing-sm: 1rem;
    /* 16px */
    --spacing-md: 1.5rem;
    /* 24px */
    --spacing-lg: 2rem;
    /* 32px */
    --spacing-xl: 3rem;
    /* 48px */
    --spacing-2xl: 4rem;
    /* 64px */
    --spacing-3xl: 5rem;
    /* 80px */

    /* Container Padding */
    --container-padding: 20px;
    --container-padding-mobile: 16px;

    --shadow-sm: 0 2px 4px rgba(58, 128, 177, 0.1);
    --shadow-md: 0 4px 6px rgba(58, 128, 177, 0.15);
    --shadow-lg: 0 10px 20px rgba(58, 128, 177, 0.2);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    background-attachment: fixed;
    position: relative;
    color-scheme: light only;
    overflow-x: hidden;
    padding-top: 140px;
    /* Space for fixed header */
}

/* Subtle pattern overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255, 255, 255, .05) 35px, rgba(255, 255, 255, .05) 70px);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

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

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

ul {
    list-style: none;
}

/* ============================================
   TOP BAR
   ============================================ */

.top-bar {
    position: sticky;
    top: 0;
    background: var(--primary-color);
    padding: 10px 0;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    z-index: 1001;
    transition: var(--transition);
}

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

.top-info {
    display: flex;
    gap: 2rem;
}

.top-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.top-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    font-size: 0.9rem;
    transition: var(--transition);
}

.top-info-item:hover {
    opacity: 0.8;
}

.top-info-item i {
    color: var(--accent-color);
}

.top-phone {
    padding: 0.4rem 1.2rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 600;
}

.top-phone:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.top-phone i {
    color: var(--white);
}

.top-social {
    display: flex;
    gap: 10px;
}

.social-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 0.9rem;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--cta-primary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(233, 57, 113, 0.3);
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-lg);
}

/* Top Contact Bar - New Styled Design */
.nav-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 15px;
    background: linear-gradient(135deg, #3A80B1 0%, #559FA2 100%);
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
    box-shadow: 0 4px 15px rgba(58, 128, 177, 0.2);
    position: relative;
}

/* Decorative overlay effect */
.nav-top-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    pointer-events: none;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
}

.nav-top-left,
.nav-top-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.top-contact-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--white);
    font-size: 0.9rem;
    transition: var(--transition);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.top-contact-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.top-contact-item i {
    color: var(--highlight-yellow);
    font-size: 1rem;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {

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

    50% {
        transform: scale(1.1);
    }
}

.top-social-icons {
    display: flex;
    gap: 0.6rem;
    margin-left: 1.5rem;
    padding-left: 1.5rem;
    border-left: 2px solid rgba(255, 255, 255, 0.3);
}

.top-social-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.85rem;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.top-social-icon:hover {
    background: var(--cta-primary);
    transform: translateY(-3px) rotate(360deg);
    box-shadow: 0 6px 15px rgba(233, 57, 113, 0.4);
    border-color: var(--cta-primary);
}

/* Main Navigation Wrapper */
.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    height: 60px;
    width: auto;
}

.logo-brand {
    height: 30px;
    width: auto;
}

/* Footer Logo Styling */
.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.footer-logo-icon {
    height: 50px;
    width: auto;
}

.footer-logo-brand {
    height: 25px;
    width: auto;
}


.nav-menu {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-menu>li {
    position: relative;
}

.nav-menu>li>a {
    color: var(--text-color);
    font-weight: 600;
    position: relative;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.nav-menu>li>a i {
    font-size: 0.7rem;
}

.nav-menu>li>a:hover,
.nav-menu>li>a.active {
    color: var(--sky-blue);
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--secondary-color);
    min-width: 220px;
    border-radius: 0;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    padding: 0.5rem 0;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu li a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--white);
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.dropdown-menu li a:hover {
    background: rgba(236, 162, 42, 0.2);
    border-left-color: var(--highlight-yellow);
    padding-left: 1.75rem;
}

/* Nav Right Section */
.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.btn-appointment {
    padding: 12px 28px;
    background: var(--cta-primary);
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--cta-primary);
    box-shadow: 0 4px 12px rgba(233, 57, 113, 0.3);
}

.btn-appointment:hover {
    background: var(--white);
    color: var(--cta-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(233, 57, 113, 0.4);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--dark-color);
    transition: var(--transition);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--cta-primary);
    color: var(--white);
}

.btn-primary:hover {
    background: #d41259;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background: #6fa064;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--cta-primary);
    font-weight: 600;
}

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

/* ============================================
   HERO SECTION - Single Hero (SEO Optimized)
   ============================================ */

.hero-section {
    position: relative;
    height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: kenBurnsHero 20s ease-out infinite alternate;
}

@keyframes kenBurnsHero {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(58, 128, 177, 0.7) 0%, rgba(103, 37, 113, 0.6) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--white);
    padding: 2rem;
    animation: heroFadeIn 1.2s ease-out;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: slideUpFade 1s var(--animation-easing) 0.3s backwards;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
    animation: slideUpFade 1s var(--animation-easing) 0.5s backwards;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: slideUpFade 1s var(--animation-easing) 0.7s backwards;
}

.btn-hero {
    padding: 14px 32px;
    font-size: 1.1rem;
    min-width: 200px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* ============================================
   STATS SECTION
   ============================================ */

.stats-section {
    padding: 4rem 0;
    background: var(--gradient-1);
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
}

.stat-item i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 1.1rem;
    opacity: 0.95;
}

/* ============================================
   SECTION HEADERS
   ============================================ */

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(85, 159, 162, 0.15);
    color: var(--bg-accent-1);
    border-radius: 50px;
    font-weight: 600;
    margin-bottom: 1rem;
    border: 2px solid var(--bg-accent-1);
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--gray-color);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about-section {
    padding: 5rem 0;
    background: var(--light-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.about-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--primary-color);
    color: var(--white);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.about-badge span {
    display: block;
    font-size: 3rem;
    font-weight: 700;
}

.about-badge p {
    font-size: 0.9rem;
}

.about-text h3 {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.about-text p {
    color: var(--gray-color);
    margin-bottom: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-item i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

/* ============================================
   SERVICES SECTION
   ============================================ */

.services-section {
    padding: 5rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
}

.service-card:nth-child(even) .service-icon {
    background: var(--gradient-2);
}

.service-card:nth-child(3n) .service-icon {
    background: var(--gradient-1);
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--gray-color);
}

/* ============================================
   PROGRAMS SECTION
   ============================================ */

.programs-section {
    padding: 5rem 0;
    background: var(--light-color);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

/* Single program card - centered and smaller */
.programs-section .programs-grid {
    max-width: 450px;
    margin: 0 auto;
}

.program-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

.program-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.program-content {
    padding: 2rem;
}

.program-content h3 {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.program-content>p {
    color: var(--bg-accent-1);
    font-weight: 600;
    margin-bottom: 1rem;
}

.program-content ul {
    margin-bottom: 1.5rem;
}

.program-content li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--gray-color);
}

.program-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */

.testimonials-section {
    padding: 5rem 0;
}

.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    min-height: 300px;
}

.testimonial-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.testimonial-card.active {
    opacity: 1;
    position: relative;
}

.testimonial-icon {
    font-size: 3rem;
    color: var(--cta-primary);
    margin-bottom: 1.5rem;
    opacity: 0.3;
}

.testimonial-text {
    font-size: 1.2rem;
    color: var(--text-color);
    font-style: italic;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author h4 {
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.testimonial-author p {
    color: var(--gray-color);
    font-size: 0.9rem;
}

.testimonial-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.testimonial-prev,
.testimonial-next {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
}

.testimonial-prev:hover,
.testimonial-next:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
    padding: 5rem 0;
    background: var(--gradient-2);
    color: var(--white);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-col h3,
.footer-col h4 {
    margin-bottom: 1.5rem;
}

.footer-col p {
    line-height: 1.8;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a {
    opacity: 0.9;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    opacity: 1;
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.contact-info i {
    margin-top: 0.25rem;
    color: var(--highlight-yellow);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--cta-primary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

/* ============================================
   FLOATING BUTTONS
   ============================================ */

.floating-buttons {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 999;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.float-btn:hover {
    transform: scale(1.1);
}

.phone-btn {
    background: var(--primary-color);
}

.whatsapp-btn {
    background: #25D366;
}

.enquiry-btn {
    background: var(--secondary-color);
}

.scroll-top {
    position: fixed;
    bottom: 20px;
    right: 100px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--dark-color);
    color: var(--white);
    border: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 998;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

/* ============================================
   MODAL
   ============================================ */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: slideUp 0.3s ease;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--gray-color);
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--dark-color);
}

/* ============================================
   FORMS
   ============================================ */

.enquiry-form,
.contact-form {
    margin-top: 2rem;
}

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

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--sky-blue);
    box-shadow: 0 0 0 3px rgba(50, 142, 202, 0.1);
}

/* ============================================
   PAGE HEADER
   ============================================ */

.page-header {
    background: var(--gradient-1);
    color: var(--white);
    padding: 15rem 0 8rem;
    margin-top: 0;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    align-items: center;
    opacity: 0.9;
}

.breadcrumb a {
    transition: var(--transition);
}

.breadcrumb a:hover {
    opacity: 0.7;
}

/* ============================================
   ABOUT PAGE
   ============================================ */

.about-page-section {
    padding: 5rem 0;
}

.about-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.intro-image img {
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.intro-content h2 {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
}

.intro-content p {
    color: var(--gray-color);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.mission-vision-section {
    padding: 5rem 0;
    background: var(--light-color);
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.mv-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.mv-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
}

.mv-card:nth-child(2) .mv-icon {
    background: var(--gradient-2);
}

.mv-card:nth-child(3) .mv-icon {
    background: var(--gradient-1);
}

.mv-card h3 {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.mv-card p {
    color: var(--gray-color);
    line-height: 1.8;
}

.why-choose-section {
    padding: 5rem 0;
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.wc-item {
    padding: 2rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.wc-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    opacity: 0.3;
    margin-bottom: 1rem;
}

.wc-item h3 {
    font-size: 1.3rem;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
}

.wc-item p {
    color: var(--gray-color);
}

.team-section {
    padding: 5rem 0;
    background: var(--light-color);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.team-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.team-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.team-info {
    padding: 1.5rem;
    text-align: center;
}

.team-info h3 {
    font-size: 1.3rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.team-info p {
    color: var(--bg-accent-1);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.team-info span {
    color: var(--gray-color);
    font-size: 0.9rem;
}

.certifications-section {
    padding: 5rem 0;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.cert-item {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
}

.cert-item i {
    font-size: 3rem;
    color: var(--highlight-green);
    margin-bottom: 1rem;
}

.cert-item p {
    color: var(--gray-color);
    font-weight: 600;
}

/* ============================================
   CONTACT PAGE
   ============================================ */

.contact-info-section {
    padding: 5rem 0;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.info-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
}

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

.info-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
}

.info-card:nth-child(2) .info-icon {
    background: var(--gradient-2);
}

.info-card:nth-child(3) .info-icon {
    background: var(--gradient-1);
}

.info-card h3 {
    font-size: 1.3rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.info-card p {
    color: var(--gray-color);
}

.info-card a {
    color: var(--sky-blue);
    font-weight: 600;
    transition: var(--transition);
}

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

.contact-form-section {
    padding: 5rem 0;
    background: var(--light-color);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.contact-form-container {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.sidebar-card h3 {
    font-size: 1.3rem;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.hours-list li:last-child {
    border-bottom: none;
}

.hours-list span:first-child {
    font-weight: 600;
    color: var(--dark-color);
}

.hours-list span:last-child {
    color: var(--gray-color);
}

.quick-contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quick-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--light-color);
    border-radius: 10px;
    transition: var(--transition);
}

.quick-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateX(5px);
}

.quick-btn i {
    font-size: 1.5rem;
}

.social-links-large {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-links-large a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--light-color);
    border-radius: 10px;
    transition: var(--transition);
}

.social-links-large a:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateX(5px);
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 10px;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    display: block;
}

.map-section {
    padding: 0;
}

.map-container {
    height: 450px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
}

.branches-section {
    padding: 5rem 0;
}

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

.branch-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
}

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

.branch-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
}

.branch-card h3 {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.branch-address {
    color: var(--gray-color);
    margin-bottom: 0.5rem;
}

.branch-phone {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.branch-directions {
    color: var(--secondary-color);
    font-weight: 600;
    transition: var(--transition);
}

.branch-directions:hover {
    color: var(--primary-color);
}

.faq-section {
    padding: 5rem 0;
    background: var(--light-color);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    margin-bottom: 1rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
    text-align: left;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-question i {
    transition: var(--transition);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    color: var(--gray-color);
    line-height: 1.8;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 992px) {

    /* Container padding adjustment */
    .container {
        padding: 0 var(--spacing-md);
    }

    /* Hide top contact bar on tablets and mobile */
    .nav-top-bar {
        display: none;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: var(--spacing-lg);
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu>li {
        width: 100%;
        border-bottom: 1px solid #e0e0e0;
    }

    .nav-menu>li>a {
        width: 100%;
        padding: var(--spacing-sm);
        min-height: 44px;
        /* Touch target */
        display: flex;
        align-items: center;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: var(--light-color);
        display: none;
        margin-top: var(--spacing-xs);
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-menu li a {
        color: var(--dark-color);
        padding: 0.75rem 1.5rem;
        min-height: 44px;
    }

    .dropdown-menu li a:hover {
        background: var(--secondary-color);
        color: var(--white);
    }

    .nav-contact {
        display: none;
    }

    .btn-appointment {
        display: none;
    }

    .hamburger {
        display: flex;
        min-width: 44px;
        min-height: 44px;
        padding: var(--spacing-xs);
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translateY(12px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translateY(-12px);
    }

    /* Hero Section Mobile */
    .hero-section {
        height: 500px;
    }

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

    .hero-subtitle {
        font-size: 1.1rem;
    }

    /* Section Spacing */
    .about-section,
    .services-section,
    .programs-section,
    .testimonials-section,
    .cta-section {
        padding: var(--spacing-xl) 0;
    }

    .about-content,
    .about-intro {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-lg);
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    /* Card Grids */
    .services-grid,
    .programs-grid {
        gap: var(--spacing-md);
    }
}

@media (max-width: 768px) {

    /* Container padding for mobile */
    .container {
        padding: 0 var(--container-padding-mobile);
    }

    /* Hero Section */
    .hero-section {
        height: 450px;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: var(--spacing-sm);
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: var(--spacing-lg);
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-sm);
    }

    .btn-hero {
        width: 100%;
        max-width: 280px;
    }

    /* Typography */
    .section-header h2 {
        font-size: 2rem;
    }

    /* Section Spacing */
    .about-section,
    .services-section,
    .programs-section,
    .testimonials-section {
        padding: var(--spacing-lg) 0;
    }

    .stats-section,
    .cta-section {
        padding: var(--spacing-xl) 0;
    }

    /* Grids */
    .features-grid,
    .services-grid,
    .programs-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-lg);
    }

    .social-links {
        justify-content: center;
    }

    /* Touch Targets */
    .floating-buttons {
        right: 10px;
        bottom: 10px;
        gap: var(--spacing-xs);
    }

    .float-btn {
        width: 54px;
        /* Minimum 44px + padding */
        height: 54px;
        font-size: 1.3rem;
    }

    .scroll-top {
        width: 50px;
        height: 50px;
        right: 80px;
        bottom: 10px;
    }

    /* Buttons */
    .btn {
        min-height: 44px;
        padding: 12px 24px;
    }
}

@media (max-width: 480px) {

    /* Extra small mobile devices */
    .container {
        padding: 0 var(--spacing-sm);
    }

    .hero-section {
        height: 400px;
    }

    .hero-title {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .modal-content {
        padding: var(--spacing-lg);
        margin: var(--spacing-sm);
    }

    /* Reduce section spacing on very small screens */
    .about-section,
    .services-section,
    .programs-section,
    .testimonials-section {
        padding: var(--spacing-lg) 0;
    }

    .stats-section,
    .cta-section {
        padding: var(--spacing-lg) 0;
    }

    /* Service and Program Cards */
    .service-card,
    .program-card {
        padding: var(--spacing-md);
    }
}

/* ============================================
   MODERN ANIMATIONS & ENHANCEMENTS
   ============================================ */

/* Enhanced Animation Variables */
:root {
    --animation-speed-fast: 0.2s;
    --animation-speed-normal: 0.4s;
    --animation-speed-slow: 0.6s;
    --animation-easing: cubic-bezier(0.4, 0, 0.2, 1);
    --animation-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --animation-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-blur: 10px;

    /* Enhanced Shadows */
    --shadow-xl: 0 20px 40px rgba(58, 128, 177, 0.25);
    --shadow-2xl: 0 25px 50px rgba(58, 128, 177, 0.3);
    --shadow-glow: 0 0 20px rgba(233, 57, 113, 0.4);
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* ============================================
   SCROLL-TRIGGERED ANIMATIONS
   ============================================ */

/* Base animation states */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--animation-easing),
        transform 0.8s var(--animation-easing);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Fade In Animations */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s var(--animation-easing) forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Slide Up Animation */
.slide-up {
    opacity: 0;
    transform: translateY(50px);
    animation: slideUpAnim 0.8s var(--animation-easing) forwards;
}

@keyframes slideUpAnim {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slide In from Left */
.slide-left {
    opacity: 0;
    transform: translateX(50px);
    animation: slideLeft 0.8s var(--animation-easing) forwards;
}

@keyframes slideLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scale In Animation */
.scale-in {
    opacity: 0;
    transform: scale(0.9);
    animation: scaleIn 0.6s var(--animation-bounce) forwards;
}

@keyframes scaleIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Staggered Animation Delays */
.stagger-1 {
    animation-delay: 0.1s;
}

.stagger-2 {
    animation-delay: 0.2s;
}

.stagger-3 {
    animation-delay: 0.3s;
}

.stagger-4 {
    animation-delay: 0.4s;
}

.stagger-5 {
    animation-delay: 0.5s;
}

.stagger-6 {
    animation-delay: 0.6s;
}

/* ============================================
   ENHANCED HERO SLIDER ANIMATIONS
   ============================================ */

/* Ken Burns Effect (Slow Zoom) */
.slide.active img {
    animation: kenBurns 20s ease-out infinite alternate;
}

@keyframes kenBurns {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

/* Enhanced Slide Content Animation */
.slide.active .slide-title {
    animation: slideUpFade 1s var(--animation-easing) 0.3s backwards;
}

.slide.active .slide-subtitle {
    animation: slideUpFade 1s var(--animation-easing) 0.5s backwards;
}

.slide.active .slide-buttons {
    animation: slideUpFade 1s var(--animation-easing) 0.7s backwards;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animated Gradient Overlay */
.slide::before {
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background: rgba(0, 0, 0, 0.4);
    }

    50% {
        background: linear-gradient(135deg, rgba(58, 128, 177, 0.6) 0%, rgba(103, 37, 113, 0.6) 100%);
    }
}

/* ============================================
   GLASSMORPHISM EFFECTS
   ============================================ */

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Apply glassmorphism to service cards on hover */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: var(--transition);
    opacity: 0;
}

.service-card:hover::before {
    opacity: 1;
    animation: shimmer 1.5s ease-in-out;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* ============================================
   3D TRANSFORM EFFECTS
   ============================================ */

/* 3D Card Tilt Effect */
.program-card {
    perspective: 1000px;
    transform-style: preserve-3d;
    transition: transform 0.6s var(--animation-easing);
}

.program-card:hover {
    transform: translateY(-15px) rotateX(5deg) rotateY(5deg);
}

.program-card img {
    transition: transform 0.6s var(--animation-easing);
}

.program-card:hover img {
    transform: scale(1.1);
}

/* 3D Flip Effect for Service Cards */
.service-card {
    transition: transform 0.6s var(--animation-easing),
        box-shadow 0.6s var(--animation-easing);
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--shadow-2xl);
}

.service-icon {
    transition: transform 0.6s var(--animation-bounce);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(360deg);
}

/* ============================================
   ENHANCED BUTTON ANIMATIONS
   ============================================ */

/* Magnetic Button Effect */
.btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Ripple Effect on Click */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: rippleEffect 0.6s ease-out;
    pointer-events: none;
}

@keyframes rippleEffect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Pulsing CTA Button */
.btn-appointment {
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 4px 12px rgba(233, 57, 113, 0.3);
    }

    50% {
        box-shadow: 0 4px 20px rgba(233, 57, 113, 0.6),
            0 0 30px rgba(233, 57, 113, 0.4);
    }
}

/* ============================================
   ANIMATED STATISTICS COUNTER
   ============================================ */

.stat-number {
    transition: transform 0.3s var(--animation-easing);
}

.stat-item:hover .stat-number {
    transform: scale(1.1);
}

.stat-item i {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

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

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

/* ============================================
   ENHANCED NAVIGATION ANIMATIONS
   ============================================ */

/* Animated Underline for Nav Items */
.nav-menu>li>a {
    position: relative;
}

.nav-menu>li>a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--sky-blue);
    transform: translateX(-50%);
    transition: width 0.3s var(--animation-easing);
}

.nav-menu>li>a:hover::after,
.nav-menu>li>a.active::after {
    width: 80%;
}

/* Dropdown Slide and Fade */
.dropdown-menu {
    animation: dropdownSlide 0.3s var(--animation-easing);
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   TESTIMONIAL CAROUSEL ENHANCEMENTS
   ============================================ */

.testimonial-card {
    transition: opacity 0.5s var(--animation-easing),
        transform 0.5s var(--animation-easing);
}

.testimonial-card.active {
    animation: testimonialFade 0.8s var(--animation-easing);
}

@keyframes testimonialFade {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.testimonial-icon {
    animation: quoteFloat 4s ease-in-out infinite;
}

@keyframes quoteFloat {

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

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

/* ============================================
   ANIMATED GRADIENT BACKGROUNDS
   ============================================ */

.gradient-animate {
    background: linear-gradient(270deg, #3A80B1, #672571, #E93971, #F0623D);
    background-size: 800% 800%;
    animation: gradientFlow 15s ease infinite;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Apply to CTA Section */
.cta-section {
    background: linear-gradient(270deg, #E93971, #F0623D, #E93971);
    background-size: 400% 400%;
    animation: gradientFlow 10s ease infinite;
}

/* Apply to Stats Section */
.stats-section {
    background: linear-gradient(270deg, #3A80B1, #672571, #3A80B1);
    background-size: 400% 400%;
    animation: gradientFlow 12s ease infinite;
}

/* ============================================
   FLOATING BUTTON ANIMATIONS
   ============================================ */

.floating-buttons {
    animation: slideInRight 0.6s var(--animation-bounce);
}

@keyframes slideInRight {
    from {
        transform: translateX(100px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.float-btn {
    animation: bounceFloat 3s ease-in-out infinite;
}

.float-btn:nth-child(1) {
    animation-delay: 0s;
}

.float-btn:nth-child(2) {
    animation-delay: 0.2s;
}

.float-btn:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounceFloat {

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

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

.float-btn:hover {
    animation: none;
    transform: scale(1.15) rotate(5deg);
}

/* ============================================
   MODAL ENHANCEMENTS
   ============================================ */

.modal.active {
    animation: fadeIn 0.3s var(--animation-easing);
}

.modal.active .modal-content {
    animation: modalSlideUp 0.4s var(--animation-bounce);
}

@keyframes modalSlideUp {
    from {
        transform: translateY(50px) scale(0.9);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* ============================================
   PARALLAX SCROLLING EFFECT
   ============================================ */

.parallax {
    position: relative;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* ============================================
   LOADING ANIMATIONS
   ============================================ */

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(233, 57, 113, 0.2);
    border-top-color: var(--cta-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   PARTICLE BACKGROUND ANIMATION
   ============================================ */

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: particleFloat 20s linear infinite;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100px) translateX(100px);
        opacity: 0;
    }
}

/* ============================================
   ENHANCED HOVER EFFECTS
   ============================================ */

/* Team Card Image Zoom */
.team-card img {
    transition: transform 0.6s var(--animation-easing);
}

.team-card:hover img {
    transform: scale(1.1);
}

/* Footer Link Slide Effect */
.footer-col ul li a {
    position: relative;
    display: inline-block;
}

.footer-col ul li a::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: all 0.3s var(--animation-easing);
}

.footer-col ul li a:hover::before {
    left: -15px;
    opacity: 1;
}

/* Social Icon Rotation */
.social-icon,
.social-links a {
    transition: transform 0.3s var(--animation-easing),
        background 0.3s var(--animation-easing),
        color 0.3s var(--animation-easing);
}

.social-icon:hover,
.social-links a:hover {
    transform: translateY(-3px) rotate(360deg);
}

/* ============================================
   SCROLL PROGRESS INDICATOR
   ============================================ */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--cta-primary), var(--accent-color));
    z-index: 9999;
    transition: width 0.1s linear;
}

/* ============================================
   ACCESSIBILITY - REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .slide.active img {
        animation: none;
    }

    .float-btn {
        animation: none;
    }

    .stat-item i {
        animation: none;
    }
}

/* ============================================
   PAGE LOAD ANIMATION
   ============================================ */

body {
    animation: pageLoad 0.6s var(--animation-easing);
}

@keyframes pageLoad {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Top Bar Slide Down */
.top-bar {
    animation: slideDown 0.6s var(--animation-easing);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Navigation Fade In */
.navbar {
    animation: fadeIn 0.8s var(--animation-easing) 0.2s backwards;
}

/* ============================================
   ENHANCED FORM ANIMATIONS
   ============================================ */

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    transform: scale(1.02);
    box-shadow: 0 0 0 3px rgba(50, 142, 202, 0.1),
        0 4px 12px rgba(50, 142, 202, 0.15);
}

/* Form Label Float Animation */
.form-group {
    position: relative;
}

.form-group input:focus+label,
.form-group textarea:focus+label {
    transform: translateY(-25px) scale(0.9);
    color: var(--sky-blue);
}

/* ============================================
   STAGGERED GRID ANIMATIONS
   ============================================ */

.services-grid .service-card:nth-child(1) {
    animation-delay: 0.1s;
}

.services-grid .service-card:nth-child(2) {
    animation-delay: 0.2s;
}

.services-grid .service-card:nth-child(3) {
    animation-delay: 0.3s;
}

.services-grid .service-card:nth-child(4) {
    animation-delay: 0.4s;
}

.services-grid .service-card:nth-child(5) {
    animation-delay: 0.5s;
}

.services-grid .service-card:nth-child(6) {
    animation-delay: 0.6s;
}

.programs-grid .program-card:nth-child(1) {
    animation-delay: 0.1s;
}

.programs-grid .program-card:nth-child(2) {
    animation-delay: 0.2s;
}

.programs-grid .program-card:nth-child(3) {
    animation-delay: 0.3s;
}

/* ============================================
   GLOW EFFECTS
   ============================================ */

.glow-on-hover {
    transition: box-shadow 0.3s var(--animation-easing);
}

.glow-on-hover:hover {
    box-shadow: var(--shadow-glow);
}

/* Apply glow to primary buttons */
.btn-primary:hover {
    box-shadow: 0 8px 20px rgba(233, 57, 113, 0.4),
        0 0 30px rgba(233, 57, 113, 0.3);
}

/* ============================================
   GLOBAL TEXT JUSTIFICATION FOR CARDS
   ============================================ */

/* Justify text in all card elements */
.service-card p,
.program-card p,
.testimonial-card p,
.team-card p,
.wc-item p,
.cert-item p,
.mv-card p,
.contact-card p,
.sidebar-card p,
.faq-item p,
.intro-content p,
.about-intro p,
.program-content p,
.service-content p,
.testimonial-content p,
[class*="-card"] p,
[class*="-content"] p {
    text-align: center !important;
}

/* ============================================
   ICON-BASED BULLET POINTS
   ============================================ */

/* Remove default bullets and add icon bullets */
.service-card ul,
.program-card ul,
.program-content ul,
.intro-content ul,
.about-intro ul,
.wc-item ul,
.mv-card ul,
.faq-item ul,
.service-content ul,
.testimonial-content ul,
[class*="-card"] ul,
[class*="-content"] ul {
    list-style: none !important;
    padding-left: 0;
}

.service-card ul li,
.program-card ul li,
.program-content ul li,
.intro-content ul li,
.about-intro ul li,
.wc-item ul li,
.mv-card ul li,
.faq-item ul li,
.service-content ul li,
.testimonial-content ul li,
[class*="-card"] ul li,
[class*="-content"] ul li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 0.75rem;
}

.service-card ul li::before,
.program-card ul li::before,
.program-content ul li::before,
.intro-content ul li::before,
.about-intro ul li::before,
.wc-item ul li::before,
.mv-card ul li::before,
.faq-item ul li::before,
.service-content ul li::before,
.testimonial-content ul li::before,
[class*="-card"] ul li::before,
[class*="-content"] ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--cta-primary);
    font-size: 0.9rem;
}

/* ============================================
   DROPDOWN NAVIGATION
   ============================================ */

.dropdown {
    position: relative;
}

.dropdown>a i {
    font-size: 0.8em;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.dropdown:hover>a i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 280px;
    box-shadow: var(--shadow-md);
    border-radius: 8px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1100;
    border-top: 3px solid var(--primary-color);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    display: block;
    margin: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.dropdown-menu li a:hover {
    background: var(--light-color);
    color: var(--primary-color);
    padding-left: 25px;
}

/* Mobile Dropdown */
@media (max-width: 968px) {
    .dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding-left: 20px;
        display: none;
        border-top: none;
        background: transparent;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown>a i {
        float: right;
        margin-top: 5px;
    }
}

/* ============================================
   SERVICE PAGE STYLES & FAQ ACCORDION
   ============================================ */

.service-hero {
    padding: 240px 0 128px;
    background: linear-gradient(135deg, #3A80B1 0%, #2C3E50 100%);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMSIgY3k9IjEiIHI9IjEiIGZpbGw9InJnYmEoMjU1LCAyNTUsIDI1NSwgMC4wNSkiLz48L3N2Zz4=');
    opacity: 0.3;
}

.service-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    position: relative;
    z-index: 1;
}

.service-hero .tagline {
    font-size: 1.3rem;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.service-detail-section {
    padding: 100px 0;
    background: var(--white);
}

.service-overview {
    margin-bottom: 80px;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.service-overview h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 2.5rem;
}

.service-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin: 60px 0;
}

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(58, 128, 177, 0.15);
    border-color: var(--primary-color);
}

.feature-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    background: rgba(58, 128, 177, 0.1);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    transition: var(--transition);
}

.feature-card:hover i {
    background: var(--primary-color);
    color: var(--white);
    transform: rotateY(360deg);
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

/* FAQ Accordion */
.faq-section {
    padding: 100px 0;
    background: var(--light-color);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.section-header h2 {
    margin-bottom: 50px;
}

.accordion-item {
    background: var(--white);
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.accordion-header {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--dark-color);
    transition: var(--transition);
}

.accordion-header:hover {
    background: #fcfcfc;
    color: var(--primary-color);
}

.accordion-header.active {
    background: var(--primary-color);
    color: var(--white);
}

.accordion-content {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: var(--white);
}

.accordion-content p {
    padding: 25px 0;
    color: var(--text-color);
    line-height: 1.8;
}

.accordion-icon {
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

.accordion-header.active .accordion-icon {
    transform: rotate(180deg);
}

/* ============================================
   HEADER BACKGROUND IMAGES
   ============================================ */

/* Common Header Background Properties */
.page-header,
.service-hero {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    position: relative;
    z-index: 1;
}

.page-header::before,
.service-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(58, 128, 177, 0.75) 0%, rgba(103, 37, 113, 0.75) 100%);
    z-index: -1;
}

.page-header::after,
.service-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.4) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.page-header>*,
.service-hero>* {
    position: relative;
    z-index: 1;
}

/* Specific Page Headers */
.header-about {
    background-image: url('../assets/images/header-about.png') !important;
}

.header-programs {
    background-image: url('../assets/images/header-programs.png') !important;
}

.header-testimonials {
    background-image: url('../assets/images/header-testimonials.png') !important;
}

.header-contact {
    background-image: url('../assets/images/header-contact.png') !important;
}

/* Service Specific Headers */
.hero-speech {
    background-image: url('../assets/images/header-speech-therapy.png') !important;
}

.hero-occupation {
    background-image: url('../assets/images/header-occupational-therapy.png') !important;
}

.hero-behavior {
    background-image: url('../assets/images/header-behavioral-therapy.png') !important;
}

.hero-psychology {
    background-image: url('../assets/images/header-psychological-services.png') !important;
}

.hero-counseling {
    background-image: url('../assets/images/header-counseling.png') !important;
}

.hero-preschool {
    background-image: url('../assets/images/header-preschool.png') !important;
}

.hero-autism {
    background-image: url('../assets/images/header-autism-support.png') !important;
}