/* ============================================
   KN GRAPHIC MENARA - MODERN DESIGN SYSTEM
   Complete CSS Framework with Advanced Features
   ============================================ */

/* ============================================
   CSS CUSTOM PROPERTIES (VARIABLES)
   ============================================ */
:root {
    /* Color Palette - Logo Aligned (Blue, Green, Gold) */
    --color-primary: #0057A8;
    /* Royal Blue from Logo */
    --color-primary-dark: #004586;
    --color-primary-light: #3385D7;

    --color-secondary: #27AE60;
    /* Vibrant Green from Logo */
    --color-secondary-dark: #1E8449;
    --color-secondary-light: #2ECC71;

    --color-accent: #FFD93D;
    /* Golden Yellow from Logo */
    --color-accent-2: #F1C40F;

    --color-dark: #2C3E50;
    /* Navy */
    --color-dark-light: #34495E;
    /* Lighter Navy */
    --color-text: #2C3E50;
    /* Text Color */
    --color-text-light: #7F8C8D;
    /* Muted Text */

    --color-light: #ECF0F1;
    /* Cloud */
    --color-white: #FFFFFF;
    /* Pure White */
    --color-bg: #F8F9FA;
    /* Background */

    /* Gradients - Aligned with Space Theme + Branding */
    --gradient-primary: linear-gradient(135deg, #0057A8 0%, #27AE60 100%);
    /* Blue to Green */
    --gradient-secondary: linear-gradient(135deg, #27AE60 0%, #FFD93D 100%);
    /* Green to Gold */
    --gradient-dark: linear-gradient(135deg, #001f3f 0%, #004586 100%);
    --gradient-overlay: transparent;
    /* REMOVED BLUE FILTER */

    /* Typography */
    --font-heading: 'Poppins', -apple-system, system-ui, sans-serif;
    --font-body: 'Inter', -apple-system, system-ui, sans-serif;

    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: clamp(1.75rem, 5vw, 2.25rem);
    --font-size-5xl: clamp(2rem, 8vw, 3rem);
    --font-size-6xl: clamp(2.5rem, 10vw, 4rem);

    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;

    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;

    /* Spacing System (4px base) */
    --space-1: 0.25rem;
    /* 4px */
    --space-2: 0.5rem;
    /* 8px */
    --space-3: 0.75rem;
    /* 12px */
    --space-4: 1rem;
    /* 16px */
    --space-5: 1.25rem;
    /* 20px */
    --space-6: 1.5rem;
    /* 24px */
    --space-8: 2rem;
    /* 32px */
    --space-10: 2.5rem;
    /* 40px */
    --space-12: 3rem;
    /* 48px */
    --space-16: 4rem;
    /* 64px */
    --space-20: 5rem;
    /* 80px */
    --space-24: 6rem;
    /* 96px */
    --space-32: 8rem;
    /* 128px */

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-base: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 30px rgba(0, 87, 168, 0.3);
    /* Royal Blue Glow */
    --shadow-glow-secondary: 0 0 30px rgba(39, 174, 96, 0.3);
    /* Green Glow */

    /* Border Radius */
    --radius-sm: 0.25rem;
    /* 4px */
    --radius-base: 0.5rem;
    /* 8px */
    --radius-md: 0.75rem;
    /* 12px */
    --radius-lg: 1rem;
    /* 16px */
    --radius-xl: 1.5rem;
    /* 24px */
    --radius-full: 9999px;
    /* Fully rounded */

    /* Transitions */
    --transition-fast: 200ms cubic-bezier(0.22, 1, 0.36, 1);
    --transition-base: 600ms cubic-bezier(0.22, 1, 0.36, 1);
    --transition-slow: 1000ms cubic-bezier(0.22, 1, 0.36, 1);

    /* Z-index Layers */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    color: var(--color-white);
    /* Updated for space theme */
    background: transparent;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    /* Global text shadow for star-background legibility */
    text-shadow: none;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    color: var(--color-white) !important;
    margin-bottom: var(--space-4);
    letter-spacing: -0.02em;
}

h1 {
    font-size: var(--font-size-6xl);
    letter-spacing: -0.03em;
    text-shadow: 0 0 20px rgba(0, 87, 168, 0.4);
}

h2 {
    font-size: var(--font-size-4xl);
    letter-spacing: -0.01em;
    text-shadow: 0 0 15px rgba(0, 87, 168, 0.3);
}

h3 {
    font-size: var(--font-size-3xl);
}

h4 {
    font-size: var(--font-size-2xl);
}

h5 {
    font-size: var(--font-size-xl);
}

h6 {
    font-size: var(--font-size-lg);
}

p {
    margin-bottom: var(--space-4);
    color: rgba(255, 255, 255, 0.9) !important;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--color-primary-dark);
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 var(--space-8);
}

.container-narrow {
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
    padding: 0 var(--space-8);
}

.container-fluid {
    width: 100%;
    padding: 0 var(--space-6);
}



.section {
    padding: clamp(var(--space-20), 15vw, var(--space-32)) 0;
    position: relative;
    background: transparent;
}

/* Glassmorphism for Contact Form */
#contactForm {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* Subtle section alternating tints to reduce "too black" feel */
.section:nth-of-type(even) {
    background: rgba(255, 255, 255, 0.02) !important;
}

.section-lg {
    padding: clamp(var(--space-16), 15vw, var(--space-32)) 0;
    position: relative;
    background: transparent;
}

/* Add subtle background overlays for sections to show stars through */
.section:not([style*="background"]) {
    background: transparent !important;
}

.section[style*="background-color: var(--color-light)"] {
    background: transparent !important;
}

/* ============================================
   NAVIGATION (STICKY HEADER)
   ============================================ */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1200px;
    height: 70px;
    z-index: var(--z-sticky);
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    /* Ensure centering works on mobile */
    align-items: center;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.95);
    height: 60px;
    top: 10px;
    width: 90%;
    border-color: rgba(0, 255, 209, 0.3);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 var(--space-8);
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    font-family: var(--font-heading);
    color: var(--color-white);
    /* Forced white for space theme */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    /* Added text shadow for visibility */
}

.navbar-logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    list-style: none;
}

.navbar-link {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    color: rgba(255, 255, 255, 0.9);
    /* Increased opacity */
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-base);
    transition: all var(--transition-base);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    /* Added text shadow for visibility */
}

.navbar-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 100%;
    height: 2px;
    background: var(--color-primary);
    /* Cyan/Green color from main palette */
    box-shadow: 0 0 10px var(--color-primary);
    transition: transform var(--transition-base);
}

.navbar-link:hover,
.navbar-link.active {
    color: var(--color-white);
}

.navbar-link:hover::after,
.navbar-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

/* Mobile Menu Toggle (3-Line Morphing Burger) */
.navbar-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
    z-index: calc(var(--z-modal) + 5);
    transition: all 0.3s ease;
}

.navbar-toggle span {
    display: block;
    width: 28px;
    height: 2.5px;
    background: #FFFFFF !important;
    border-radius: var(--radius-full);
    transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
    box-shadow: 0 0 10px rgba(0, 255, 209, 0.3);
}

/* Burger to X Morph */
.navbar-toggle.active span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.navbar-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.navbar-toggle.active span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}


/* ============================================
   HERO SECTION WITH SLIDESHOW
   ============================================ */
.hero {
    position: relative;
    height: 100vh;
    height: 100dvh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
    /* Account for fixed navbar */
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    animation: kenBurns 20s infinite;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

@keyframes kenBurns {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.6) 100%) !important;
    /* GRADIENT FOR BETTER DEPTH AND TEXT CLARITY */
    z-index: 3;
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 4;
    text-align: center;
    color: var(--color-white);
    max-width: 900px;
    padding: 0 var(--space-6);
}

.hero-title {
    font-size: var(--font-size-6xl);
    font-weight: var(--font-weight-extrabold);
    color: var(--color-white);
    margin-bottom: var(--space-6);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: var(--space-10);
    line-height: var(--line-height-relaxed);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.hero-buttons {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        transform: translateY(0);
    }
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
    transition: all var(--transition-base);
}

.feature-icon i {
    font-size: 1.5rem;
    /* Standardized icon size */
    color: var(--color-white) !important;
    transition: all var(--transition-base);
}

.feature-card:hover .feature-icon i {
    transform: scale(1.1) rotate(5deg);
}

.social-link i {
    font-size: 1.25rem;
    color: var(--color-white);
    transition: all var(--transition-base);
}

.social-link:hover i {
    color: var(--color-primary);
    transform: translateY(-3px);
}

.card-icon i,
.contact-icon i,
.social-link i {
    font-size: 1.5rem;
    color: var(--color-white) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.card-icon,
.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.feature-icon.icon-blue i {
    color: #3385D7 !important;
    filter: drop-shadow(0 0 10px rgba(0, 87, 168, 0.6));
}

.feature-icon.icon-green i {
    color: #2ECC71 !important;
    filter: drop-shadow(0 0 10px rgba(39, 174, 96, 0.6));
}

.feature-icon.icon-gold i {
    color: #FFD93D !important;
    filter: drop-shadow(0 0 10px rgba(241, 196, 15, 0.6));
}


/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-8);
    font-family: var(--font-heading);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    border-radius: var(--radius-lg);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--color-white);
    color: var(--color-primary);
    border-color: var(--color-white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.btn-secondary:hover {
    background: var(--color-white);
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-lg {
    padding: var(--space-5) var(--space-10);
    font-size: var(--font-size-lg);
}

/* ============================================
   CARDS (GLASSMORPHISM)
   ============================================ */
.card {
    background: rgba(255, 255, 255, 0.08) !important;
    /* Slightly more opaque glass */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    transition: all var(--transition-base);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    /* Softer shadow */
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: var(--color-primary-light);
    box-shadow: var(--shadow-xl), 0 0 20px rgba(0, 87, 168, 0.2);
}

.card-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-4);
    box-shadow: var(--shadow-glow);
}

.card-icon i {
    width: auto;
    height: auto;
    font-size: 1.5rem;
    color: white;
    /* Default fallback */
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
    position: relative;
    z-index: 2;
}

/* Brand Colored Icon Backgrounds */
.icon-bg-gold {
    background: rgba(255, 217, 61, 0.15) !important;
    border: 1px solid rgba(255, 217, 61, 0.3) !important;
    box-shadow: 0 0 15px rgba(255, 217, 61, 0.2);
}

.icon-bg-gold i {
    color: #FFD93D !important;
}

.icon-bg-green {
    background: rgba(39, 174, 96, 0.15) !important;
    border: 1px solid rgba(39, 174, 96, 0.3) !important;
    box-shadow: 0 0 15px rgba(39, 174, 96, 0.2);
}

.icon-bg-green i {
    color: #27AE60 !important;
}

.icon-bg-blue {
    background: rgba(0, 87, 168, 0.15) !important;
    border: 1px solid rgba(0, 87, 168, 0.3) !important;
    box-shadow: 0 0 15px rgba(0, 87, 168, 0.2);
}

.icon-bg-blue i {
    color: #3385D7 !important;
}

.card-title {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-3);
    color: var(--color-white);
    /* FIXED: READABLE ON DARK BG */
    text-shadow: 0 0 10px rgba(0, 255, 209, 0.3);
}

.card-text,
.card-text a {
    color: var(--color-white) !important;
    line-height: var(--line-height-relaxed);
    text-shadow: 0 0 10px rgba(0, 87, 168, 0.3);
}

/* ============================================
   GRID LAYOUTS
   ============================================ */
.grid {
    display: grid;
    gap: var(--space-12);
}

.grid-2,
.grid-3,
.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

@media (max-width: 768px) {
    /* UPDATED THRESHOLD FOR ALL MOBILE */

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: rgba(0, 0, 0, 0.6) !important;
    /* Solider footer for structure */
    backdrop-filter: blur(10px);
    color: var(--color-light);
    padding: var(--space-20) 0 var(--space-8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-10);
    margin-bottom: var(--space-12);
}

.footer-section h3 {
    color: var(--color-white);
    margin-bottom: var(--space-5);
    font-size: var(--font-size-xl);
}

.footer-section p,
.footer-section a {
    color: var(--color-white);
    margin-bottom: var(--space-3);
}

.footer-section a:hover {
    color: var(--color-primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-3);
}

.social-links {
    display: flex;
    gap: var(--space-4);
    margin-top: var(--space-4);
}

.social-link {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-base);
    transition: all var(--transition-base);
    box-shadow: 0 8px 20px rgba(0, 87, 168, 0.3);
}

/* Brand Specific Colors for Clarity */
.social-link[aria-label="Facebook"] {
    background: rgba(24, 119, 242, 0.2) !important;
    border-color: rgba(24, 119, 242, 0.4);
}

.social-link[aria-label="Instagram"] {
    background: rgba(225, 48, 108, 0.2) !important;
    border-color: rgba(225, 48, 108, 0.4);
}

.social-link[aria-label="WhatsApp"] {
    background: rgba(37, 211, 102, 0.2) !important;
    border-color: rgba(37, 211, 102, 0.4);
}

.social-link i {
    font-size: 1.4rem;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

.social-link:hover {
    background: var(--color-primary) !important;
    border-color: var(--color-primary);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 255, 209, 0.3);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-light);
}

/* ============================================
   CINEMATIC ANIMATIONS
   ============================================ */
@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 10px rgba(0, 87, 168, 0.2);
    }

    50% {
        box-shadow: 0 0 25px rgba(0, 87, 168, 0.5);
    }

    100% {
        box-shadow: 0 0 10px rgba(0, 87, 168, 0.2);
    }
}

.hero-content {
    animation: float 6s ease-in-out infinite;
}

.feature-icon i {
    animation: float 4s ease-in-out infinite;
}

.btn-primary {
    animation: pulse-glow 3s ease-in-out infinite;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .navbar {
        width: calc(100% - 30px);
        /* Better margin on small screens */
        top: 15px;
        left: 50%;
        transform: translateX(-50%);
        padding: 0 var(--space-4);
    }

    .navbar .container {
        padding: 0 var(--space-4);
    }

    .navbar-menu {
        position: fixed;
        inset: 0;
        /* Full screen */
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(50px);
        -webkit-backdrop-filter: blur(50px);
        flex-direction: column;
        justify-content: center;
        /* Center items to fit without scroll */
        align-items: center;
        padding: var(--space-12) var(--space-8);
        /* Reduced top padding */
        opacity: 0;
        visibility: hidden;
        transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
        z-index: var(--z-modal);
        overflow: hidden;
        /* NO SCROLL BAR */
    }

    .navbar-menu.active {
        opacity: 1;
        visibility: visible;
    }

    .navbar-menu li {
        width: 100%;
        text-align: center;
        margin-bottom: var(--space-4);
        /* Tighter spacing */
        transform: translateY(20px);
        transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .navbar-menu.active li {
        transform: translateY(0);
    }

    .navbar-link {
        display: inline-block;
        font-size: var(--font-size-2xl) !important;
        /* Slightly smaller to fit */
        padding: var(--space-3) !important;
        color: var(--color-white) !important;
        text-decoration: none;
        letter-spacing: 2px;
        opacity: 0.8;
        transition: all 0.3s ease;
    }

    .navbar-link:hover,
    .navbar-link.active {
        opacity: 1;
        transform: scale(1.1);
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
    }

    .navbar-toggle {
        display: flex;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .btn {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-5);
    }

    .hero-title {
        font-size: 1.8rem;
        /* SCALED DOWN FURTHER FOR MOBILE */
    }

    .hero-subtitle {
        font-size: 1rem;
    }
}

/* ============================================
   TESTIMONIAL SLIDER
   ============================================ */
.testimonial-slider {
    width: 100%;
    overflow: hidden;
    padding: var(--space-10) 0;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.testimonial-track {
    display: flex;
    gap: var(--space-8);
    width: max-content;
    animation: scroll-track 45s linear infinite;
    padding-right: var(--space-8);
    /* Essential for pixel-perfect loop */
}

.testimonial-track::after {
    content: "";
    width: 0;
    margin-left: -var(--space-8);
    /* Removes final gap for math parity if needed, or just let padding work */
}

.testimonial-track:hover {
    animation-play-state: paused;
}

.testimonial-card {
    flex: 0 0 350px;
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    transition: all var(--transition-base);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: var(--color-primary-light);
    transform: translateY(-5px);
}

.testimonial-author {
    margin-top: var(--space-4);
    font-weight: var(--font-weight-bold);
    color: var(--color-accent) !important;
    font-size: var(--font-size-sm);
}

@keyframes scroll-track {
    0% {
        transform: translateX(0);
    }

    100% {
        /* Simplified: 12 cards + 12 gaps (incl. spacer) / 2 = 6 cards + 6 gaps */
        transform: translateX(-50%);
    }
}

/* ============================================
   CINEMATIC REVEAL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    transition: all 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.reveal-slide-up {
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-slide-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-4 {
    margin-bottom: var(--space-4);
}

.mb-8 {
    margin-bottom: var(--space-8);
}

.mb-12 {
    margin-bottom: var(--space-12);
}

.mt-4 {
    margin-top: var(--space-4);
}

.mt-8 {
    margin-top: var(--space-8);
}

.mt-12 {
    margin-top: var(--space-12);
}

.hidden {
    display: none;
}

.visible {
    display: block;
}

/* ============================================
   LIGHTBOX SYSTEM
   ============================================ */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    cursor: default;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.lightbox.active .lightbox-content {
    transform: scale(1) translateY(0);
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 255, 255, 0.1);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    color: white;
    cursor: pointer;
    z-index: 100;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: var(--color-primary);
    border-color: var(--color-primary-light);
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(0, 255, 209, 0.4);
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--color-primary);
    border-color: var(--color-primary-light);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 25px rgba(0, 255, 209, 0.4);
}

.lightbox-close {
    top: 30px;
    right: 30px;
}

.lightbox-prev {
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-loader {
    position: absolute;
    color: var(--color-primary);
    font-size: 2rem;
    display: none;
}

@media (max-width: 768px) {

    .lightbox-prev,
    .lightbox-next {
        width: 50px;
        height: 50px;
        bottom: 40px;
        top: auto;
    }

    .lightbox-prev {
        left: 20px;
        transform: none;
    }

    .lightbox-next {
        right: 20px;
        transform: none;
    }

    .lightbox-close {
        top: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
}