/* ==========================================================
   MUSKAN DENTAL CLINIC - ULTRA PREMIUM STYLESHEET
   ========================================================== */

/* ----------------------------------------------------------
   1. CSS VARIABLES (Design Tokens)
   ---------------------------------------------------------- */
:root {
    /* Brand Colors */
    --primary-green: #23b574;
    --primary-blue: #0060c6;
    
    /* Supporting Colors */
    --dark-1: #0F172A;
    --dark-2: #111827;
    --dark-3: #1E293B;
    --light-1: #F8FAFC;
    --white: #FFFFFF;
    --gray-1: #E2E8F0;
    --gray-2: #CBD5E1;
    --blue-tint: #EEF6FF;
    --green-tint: #E6FFFA;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-green), var(--primary-blue));
    --gradient-primary-reverse: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    --gradient-dark: linear-gradient(180deg, var(--dark-1), var(--dark-2));
    --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
    --gradient-mesh: radial-gradient(at top left, rgba(35,181,116,0.15), transparent 50%),
                    radial-gradient(at bottom right, rgba(0,96,198,0.15), transparent 50%),
                    linear-gradient(180deg, var(--white), var(--light-1));

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing Scale */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 5rem;
    --space-3xl: 8rem;

    /* Shadows */
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.01);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.05);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.08);
    --shadow-xl: 0 40px 80px rgba(0,0,0,0.12);
    --shadow-glow-green: 0 0 30px rgba(35,181,116,0.4);
    --shadow-glow-blue: 0 0 30px rgba(0,96,198,0.4);
    --shadow-card-hover: 0 30px 60px rgba(0,0,0,0.15);

    /* Borders */
    --border-light: 1px solid rgba(255,255,255,0.2);
    --border-dark: 1px solid rgba(0,0,0,0.05);
    --border-gradient: 1px solid transparent;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --border-radius-xl: 40px;
    --border-radius-full: 100px;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-normal: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

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

body {
    font-family: var(--font-body);
    background-color: var(--white);
    color: var(--dark-1);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    visibility: visible !important;
    opacity: 1 !important;
}

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

ul, ol {
    list-style: none;
}

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

button {
    border: none;
    outline: none;
    background: none;
    cursor: pointer;
    font-family: var(--font-body);
}

input, textarea, select {
    font-family: var(--font-body);
    outline: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--light-1);
}
::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: var(--border-radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-blue);
}

/* Scroll Progress Bar */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--gradient-primary);
    z-index: 10000;
    transition: width 0.1s linear;
}

/* ----------------------------------------------------------
   3. TYPOGRAPHY
   ---------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark-1);
}

h1 { font-size: clamp(2.5rem, 5vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); margin-bottom: var(--space-md); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: var(--space-sm); }
h4 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p {
    margin-bottom: var(--space-sm);
    color: var(--dark-3);
    font-size: 1.05rem;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-label {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary-green);
    margin-bottom: var(--space-sm);
    position: relative;
    padding-left: 40px;
}

.section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 2px;
    background: var(--gradient-primary);
}

/* ----------------------------------------------------------
   4. LAYOUT & CONTAINERS
   ---------------------------------------------------------- */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section {
    padding: var(--space-3xl) 0;
    position: relative;
    overflow: hidden;
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-xl); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); }

.flex-center { display: flex; justify-content: center; align-items: center; }
.text-center { text-align: center; }

.bg-light { background-color: var(--light-1); }
.bg-white { background-color: var(--white); }
.bg-dark { background-color: var(--dark-1); color: var(--white); }
.bg-gradient { background: var(--gradient-mesh); }
.bg-blue-tint { background-color: var(--blue-tint); }
.bg-green-tint { background-color: var(--green-tint); }

/* ----------------------------------------------------------
   5. PREMIUM BUTTONS
   ---------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--border-radius-full);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    z-index: 1;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 10px 30px rgba(35,181,116,0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(35,181,116,0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--dark-1);
    border-color: var(--white);
}

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

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

/* Ripple Effect */
.btn .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    transform: scale(0);
    animation: ripple-anim 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-anim {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ----------------------------------------------------------
   6. NAVIGATION
   ---------------------------------------------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.5);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar.scrolled .nav-logo {
    color: var(--dark-1);
}

.nav-logo img {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.nav-menu::-webkit-scrollbar {
    display: none;
}

.nav-link {
    font-size: 0.82rem;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
    position: relative;
    padding: 5px 0;
    white-space: nowrap;
    flex-shrink: 0;
}

.navbar.scrolled .nav-link {
    color: var(--dark-3);
}

.nav-link:hover, .nav-link.active {
    color: var(--white);
}

.navbar.scrolled .nav-link:hover, .navbar.scrolled .nav-link.active {
    color: var(--primary-blue);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-normal);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-cta-item {
    margin-left: 5px;
    flex-shrink: 0;
    list-style: none;
}

.nav-cta-item .nav-cta {
    margin-left: 0;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.nav-toggle span {
    width: 28px;
    height: 2px;
    background: var(--white);
    transition: all var(--transition-fast);
}

.navbar.scrolled .nav-toggle span {
    background: var(--dark-1);
}

/* ----------------------------------------------------------
   7. HERO SECTIONS
   ---------------------------------------------------------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--dark-1);
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15,23,42,0.9), rgba(0,96,198,0.4));
    z-index: 1;
}

.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero-content h1 {
    color: var(--white);
    margin-bottom: var(--space-md);
}

.hero-content p {
    color: rgba(255,255,255,0.8);
    font-size: 1.2rem;
    margin-bottom: var(--space-lg);
}

.hero-btns {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

/* Floating Shapes in Hero */
.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.5;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: var(--primary-green);
    top: -100px;
    right: -100px;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--primary-blue);
    bottom: -50px;
    left: 20%;
}

/* Breadcrumb */
.breadcrumb {
    padding: var(--space-lg) 0;
    background: var(--light-1);
}

.breadcrumb ul {
    display: flex;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--dark-3);
}

.breadcrumb li::after {
    content: '/';
    margin-left: 10px;
    color: var(--gray-2);
}

.breadcrumb li:last-child::after {
    display: none;
}

.breadcrumb a:hover {
    color: var(--primary-blue);
}

/* ----------------------------------------------------------
   8. CARDS & GLASSMORPHISM
   ---------------------------------------------------------- */
.card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.03);
}

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

.card-glass {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--white);
}

.card-glass:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.3);
}

/* Gradient Border Card */
.card-border-gradient::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: var(--border-radius-lg);
    padding: 2px;
    background: var(--gradient-primary);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    color: var(--white);
    font-size: 1.5rem;
}

/* ----------------------------------------------------------
   9. TREATMENT / PACKAGE CARDS
   ---------------------------------------------------------- */
.treatment-card {
    text-align: center;
    padding: var(--space-xl) var(--space-lg);
}

.treatment-card .card-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: var(--border-radius-md);
    margin-bottom: var(--space-md);
}

/* Package Card Specific */
.package-card {
    position: relative;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.package-card.popular {
    border: 2px solid var(--primary-green);
}

.package-badge {
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 5px 40px;
    font-size: 0.8rem;
    font-weight: 600;
    transform: rotate(45deg);
    text-transform: uppercase;
}

.package-header {
    background: var(--light-1);
    padding: var(--space-lg);
    text-align: center;
    border-bottom: 1px solid var(--gray-1);
}

.package-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin: var(--space-sm) 0;
}

.package-body {
    padding: var(--space-lg);
}

.package-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-1);
    font-size: 0.95rem;
}

.package-list li i {
    color: var(--primary-green);
}

/* ----------------------------------------------------------
   10. BEFORE & AFTER SLIDER
   ---------------------------------------------------------- */
.ba-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    cursor: col-resize;
}

.ba-image {
    width: 100%;
    display: block;
}

.ba-before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    clip-path: inset(0 50% 0 0);
}

.ba-before img {
    width: 100%;
    height: auto;
    display: block;
}

.ba-slider {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: var(--white);
    cursor: ew-resize;
    z-index: 2;
    transform: translateX(-50%);
}

.ba-slider::before {
    content: '\f0d9';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: -20px;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    color: var(--dark-1);
    font-size: 1rem;
}

.ba-slider::after {
    content: '\f0da';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    right: -20px;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    color: var(--dark-1);
    font-size: 1rem;
}

/* ----------------------------------------------------------
   11. TESTIMONIALS
   ---------------------------------------------------------- */
.testimonial-slider {
    position: relative;
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-slide {
    min-width: 100%;
    padding: 0 var(--space-sm);
}

.testimonial-card {
    background: var(--white);
    padding: var(--space-xl);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
}

.testimonial-quote {
    font-size: 4rem;
    color: var(--primary-green);
    opacity: 0.2;
    position: absolute;
    top: 20px;
    left: 30px;
    font-family: serif;
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: var(--space-lg);
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-green);
}

.testimonial-stars {
    color: #fbbf24;
    margin-bottom: 5px;
}

/* ----------------------------------------------------------
   12. FAQ ACCORDION
   ---------------------------------------------------------- */
.accordion-item {
    background: var(--white);
    border-radius: var(--border-radius-md);
    margin-bottom: var(--space-sm);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-1);
    overflow: hidden;
}

.accordion-header {
    padding: var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.accordion-header:hover {
    color: var(--primary-blue);
}

.accordion-icon {
    transition: transform var(--transition-normal);
    color: var(--primary-green);
}

.accordion-item.accordion-open .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0 var(--space-md);
}

.accordion-content-inner {
    padding-bottom: var(--space-md);
    color: var(--dark-3);
    border-top: 1px solid var(--gray-1);
    padding-top: var(--space-sm);
}

/* ----------------------------------------------------------
   13. GALLERY & LIGHTBOX
   ---------------------------------------------------------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-sm);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-md);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,96,198,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Lightbox Modal */
.lightbox {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--border-radius-sm);
}

.lightbox-close {
    position: absolute;
    top: 20px; right: 30px;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
}

/* ----------------------------------------------------------
   14. FORMS
   ---------------------------------------------------------- */
.form-group {
    margin-bottom: var(--space-md);
    position: relative;
}

.form-control {
    width: 100%;
    padding: 16px 20px;
    background: var(--light-1);
    border: 2px solid transparent;
    border-radius: var(--border-radius-md);
    font-size: 1rem;
    color: var(--dark-1);
    transition: all var(--transition-fast);
}

.form-control:focus {
    background: var(--white);
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(0,96,198,0.1);
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-2);
}

/* Floating Label */
.form-floating {
    position: relative;
}

.form-floating .form-control {
    padding: 20px;
}

.form-floating label {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    color: var(--gray-2);
    pointer-events: none;
    transition: all var(--transition-fast);
}

.form-floating .form-control:focus ~ label,
.form-floating .form-control:not(:placeholder-shown) ~ label {
    top: 10px;
    font-size: 0.8rem;
    color: var(--primary-blue);
}

/* ----------------------------------------------------------
   15. FLOATING ELEMENTS & CTA's
   ---------------------------------------------------------- */
.floating-btn {
    position: fixed;
    z-index: 999;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--white);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
    animation: float-anim 3s ease-in-out infinite;
}

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

.btn-whatsapp {
    bottom: 100px;
    right: 20px;
    background: #25D366;
}

.btn-call {
    bottom: 30px;
    right: 20px;
    background: var(--primary-blue);
}

.btn-back-to-top {
    bottom: 30px;
    left: 20px;
    background: var(--dark-1);
    opacity: 0;
    pointer-events: none;
}

.btn-back-to-top.visible {
    opacity: 1;
    pointer-events: all;
}

/* Popup/Modal */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-normal);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: var(--white);
    padding: var(--space-xl);
    border-radius: var(--border-radius-lg);
    width: 90%;
    max-width: 500px;
    position: relative;
    transform: scale(0.9);
    transition: transform var(--transition-bounce);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

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

/* ----------------------------------------------------------
   16. FOOTER
   ---------------------------------------------------------- */
.footer {
    background: var(--dark-1);
    color: rgba(255,255,255,0.9);
    padding-top: var(--space-3xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-3xl);
}

.footer-about p {
    color: rgba(255,255,255,0.85);
    margin-top: var(--space-sm);
}

.footer-title {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: var(--space-md);
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--gradient-primary);
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: var(--primary-green);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: var(--space-lg) 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.9);
}

.footer-bottom p {
    color: rgba(255,255,255,0.9) !important;
}

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

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

.social-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    transition: transform var(--transition-fast);
}

.social-icon:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-3px);
}

.social-icon:hover img {
    transform: scale(1.15);
}

/* ----------------------------------------------------------
   17. VIDEO TESTIMONIAL MODAL
   ---------------------------------------------------------- */
.video-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
}

.video-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.video-modal-content {
    width: 90%;
    max-width: 750px;
    position: relative;
    transform: scale(0.9) translateY(30px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.video-modal-overlay.active .video-modal-content {
    transform: scale(1) translateY(0);
}

.video-modal-close {
    position: absolute;
    top: -45px;
    right: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: none;
    border: none;
    z-index: 10;
}

.video-modal-close:hover {
    color: white;
    transform: scale(1.1);
}

.video-player-wrapper {
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    background: #000;
    aspect-ratio: 16 / 9;
}

.video-player-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.1);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-player-overlay.visible {
    opacity: 1;
}

.video-playing-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.equalizer {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 24px;
}

.equalizer span {
    width: 4px;
    background: var(--primary-green);
    border-radius: 2px;
    animation: equalizer-bounce 0.8s ease-in-out infinite alternate;
}

.equalizer span:nth-child(1) { animation-delay: 0s; height: 8px; }
.equalizer span:nth-child(2) { animation-delay: 0.1s; height: 16px; }
.equalizer span:nth-child(3) { animation-delay: 0.2s; height: 24px; }
.equalizer span:nth-child(4) { animation-delay: 0.3s; height: 12px; }
.equalizer span:nth-child(5) { animation-delay: 0.4s; height: 20px; }

@keyframes equalizer-bounce {
    0% { height: 4px; }
    100% { height: 24px; }
}

.video-player-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    padding: 30px 15px 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-player-wrapper:hover .video-player-controls {
    opacity: 1;
}

.video-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: height 0.15s ease;
}

.video-progress-bar:hover {
    height: 6px;
}

.video-progress-fill {
    height: 100%;
    background: var(--primary-green);
    border-radius: 4px;
    width: 0%;
    transition: width 0.1s linear;
    position: relative;
}

.video-progress-fill::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: var(--primary-green);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.video-progress-bar:hover .video-progress-fill::after {
    opacity: 1;
}

.video-ctrl-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.video-ctrl-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.video-modal-info {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--white);
    padding: 15px 20px;
    border-radius: 0 0 var(--border-radius-md) var(--border-radius-md);
    box-shadow: var(--shadow-md);
}

/* Video thumb hover effect */
.video-thumb:hover img {
    transform: scale(1.05);
}

.video-thumb:hover .video-play-btn {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(35, 181, 116, 1);
    box-shadow: 0 0 25px rgba(35, 181, 116, 0.5);
}

/* ----------------------------------------------------------
   18. LOADING SCREEN
   ---------------------------------------------------------- */
#loader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--white);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 30px;
}

.loader-bar {
    width: 150px;
    height: 4px;
    background: var(--gray-1);
    border-radius: var(--border-radius-full);
    overflow: hidden;
}

.loader-progress {
    width: 0%;
    height: 100%;
    background: var(--gradient-primary);
    animation: loader-anim 1.5s ease forwards;
}

@keyframes loader-anim {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* ----------------------------------------------------------
   18. ANIMATIONS & KEYFRAMES
   ---------------------------------------------------------- */
.anim {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.anim.active {
    opacity: 1;
}

.fade-up { transform: translateY(50px); }
.fade-up.active { transform: translateY(0); }

.fade-down { transform: translateY(-50px); }
.fade-down.active { transform: translateY(0); }

.fade-left { transform: translateX(-50px); }
.fade-left.active { transform: translateX(0); }

.fade-right { transform: translateX(50px); }
.fade-right.active { transform: translateX(0); }

.zoom-in { transform: scale(0.8); }
.zoom-in.active { transform: scale(1); }

/* Image Reveal */
.img-reveal-container {
    position: relative;
    overflow: hidden;
}

.img-reveal-container::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--primary-blue);
    transform: scaleX(1);
    transform-origin: right;
    transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 2;
}

.img-reveal-container.active::after {
    transform: scaleX(0);
}

/* Floating Animation */
@keyframes float-anim {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Parallax */
.parallax-bg {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

/* Magnetic Button Hover Effect */
.magnetic-btn {
    transition: transform var(--transition-fast);
}

/* Counter Animation - JS triggered */
.counter {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-blue);
}

/* ----------------------------------------------------------
   19. RESPONSIVE DESIGN
   ---------------------------------------------------------- */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(15,23,42,0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 40px;
        transition: right var(--transition-normal);
        z-index: 999;
        overflow-x: visible;
        overflow-y: auto;
        flex-wrap: nowrap;
        scrollbar-width: auto;
    }
    
    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        color: var(--white);
        font-size: 1.2rem;
        white-space: normal;
    }

    .nav-menu.active .nav-link {
        color: rgba(255,255,255,0.8) !important;
    }

    .nav-menu.active .nav-link:hover,
    .nav-menu.active .nav-link.active {
        color: var(--white) !important;
    }

    .nav-toggle.active span {
        background: var(--white) !important;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-cta-item {
        margin-left: 0;
        margin-top: 20px;
    }

    .nav-cta-item .nav-cta {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
        font-size: 1rem;
    }

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

    .hero-btns {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

@media (min-width: 769px) and (max-width: 1200px) {
    .nav-menu {
        gap: 10px;
    }
    .nav-link {
        font-size: 0.75rem;
    }
    .nav-cta-item .nav-cta {
        padding: 12px 20px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    :root {
        --space-3xl: 4rem;
        --space-2xl: 3rem;
    }
    .container {
        padding: 0 15px;
    }
    .btn {
        padding: 12px 24px;
        font-size: 0.85rem;
    }
}