/* ================================
   CONNECTRA PREMIUM WEBSITE STYLES
   ================================ */

/* CSS Custom Properties */
:root {
    /* Brand Colors */
    --primary-burgundy: #6B1F3C;
    --primary-navy: #2C3E5F;
    --accent-gold: #D4AF37;
    --accent-copper: #B87333;
    
    /* Extended Palette */
    --burgundy-light: #8B2F4C;
    --burgundy-dark: #4B1F2C;
    --navy-light: #3C4E6F;
    --navy-dark: #1C2E4F;
    --gold-light: #E4BF47;
    --gold-dark: #C49F27;
    
    /* Neutrals */
    --white: #FFFFFF;
    --light-gray: #F8F9FA;
    --gray-100: #F1F3F4;
    --gray-200: #E8EAED;
    --gray-300: #DADCE0;
    --gray-400: #BDC1C6;
    --gray-500: #9AA0A6;
    --gray-600: #80868B;
    --gray-700: #5F6368;
    --gray-800: #3C4043;
    --gray-900: #202124;
    --black: #000000;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-burgundy) 0%, var(--primary-navy) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-copper) 100%);
    --gradient-hero: linear-gradient(135deg, rgba(107, 31, 60, 0.9) 0%, rgba(44, 62, 95, 0.8) 50%, rgba(212, 175, 55, 0.1) 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 100%);
    
    /* Typography */
    --font-primary: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-secondary: 'Poppins', 'Inter', sans-serif;
    
    /* Font Sizes */
    --font-xs: 0.75rem;     /* 12px */
    --font-sm: 0.875rem;   /* 14px */
    --font-base: 1rem;     /* 16px */
    --font-lg: 1.125rem;   /* 18px */
    --font-xl: 1.25rem;    /* 20px */
    --font-2xl: 1.5rem;    /* 24px */
    --font-3xl: 1.875rem;  /* 30px */
    --font-4xl: 2.25rem;   /* 36px */
    --font-5xl: 3rem;      /* 48px */
    --font-6xl: 3.75rem;   /* 60px */
    --font-7xl: 4.5rem;    /* 72px */
    --font-8xl: 6rem;      /* 96px */
    
    /* Spacing */
    --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 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-premium: 0 32px 64px -12px rgba(107, 31, 60, 0.15), 0 16px 32px -8px rgba(44, 62, 95, 0.1);
    --shadow-glow: 0 0 50px rgba(212, 175, 55, 0.15);
    
    /* Border Radius */
    --radius-sm: 0.125rem;  /* 2px */
    --radius-base: 0.25rem; /* 4px */
    --radius-md: 0.375rem;  /* 6px */
    --radius-lg: 0.5rem;    /* 8px */
    --radius-xl: 0.75rem;   /* 12px */
    --radius-2xl: 1rem;     /* 16px */
    --radius-3xl: 1.5rem;   /* 24px */
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 250ms ease-in-out;
    --transition-slow: 350ms ease-in-out;
    --transition-slower: 500ms ease-in-out;
    
    /* Z-index Scale */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
    --z-toast: 1080;

    /* Dynamic accent (used for subtle theme shifts) */
    --accent-current: var(--accent-gold);
}

/* Reset and Base Styles */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-base);
    font-weight: 400;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--white);
    overflow-x: hidden;
    cursor: none;
}

/* Context utilities for contrast-safe text */
.on-dark { --text: #ffffff; --muted: rgba(255,255,255,0.8); }
.on-light { --text: var(--gray-900); --muted: var(--gray-700); }

.on-dark .section-title,
.on-dark .section-subtitle,
.on-dark .hero-title,
.on-dark p,
.on-dark .section-description { color: var(--text); }

.on-light p,
.on-light .section-description { color: var(--muted); }

/* Custom Cursor */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background: var(--accent-gold);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: all 0.1s ease;
}

.cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 30px;
    height: 30px;
    border: 1px solid var(--accent-gold);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.cursor-hover .cursor {
    transform: scale(1.5);
    background: var(--primary-burgundy);
}

.cursor-hover .cursor-follower {
    transform: scale(1.5);
    border-color: var(--primary-burgundy);
}

/* Selection */
::selection {
    background: var(--accent-gold);
    color: var(--white);
}

::-moz-selection {
    background: var(--accent-gold);
    color: var(--white);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-secondary);
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.15s ease-out, visibility 0.15s ease-out;
    overflow: hidden;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.99) 0%, 
        rgba(255, 255, 255, 0.98) 50%, 
        rgba(255, 255, 255, 0.99) 100%
    );
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.1);
}

.preloader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-6);
    position: relative;
    z-index: 5;
}

.logo-animation {
    position: relative;
    width: 340px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.video-wrapper {
    width: 320px;
    height: 180px;
    margin: 0 auto 2rem;
    position: relative;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

#logo-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: transparent;
}

.fallback-logo {
    width: 180px;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-error .fallback-logo {
    opacity: 1;
    animation: logoFade 1.5s ease-in-out infinite;
}

@keyframes logoFade {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.loading-line {
    width: 280px;
    height: 4px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    margin: var(--space-6) auto;
    overflow: hidden;
    position: relative;
}

.loading-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: var(--primary-burgundy);
    border-radius: var(--radius-full);
    animation: loadingProgress 2s ease-in-out infinite;
}

.loading-text {
    font-size: var(--font-lg);
    font-weight: 500;
    color: var(--accent-gold);
    letter-spacing: 1px;
    opacity: 0;
    animation: fadeInOut 2s ease-in-out infinite;
}

@keyframes loadingProgress {
    0% {
        background-position: 100% 0;
        transform: translateX(-100%);
    }
    50% {
        background-position: 0 0;
    }
    100% {
        background-position: -100% 0;
        transform: translateX(100%);
    }
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Responsive preloader */
@media (max-width: 480px) {
    .logo-animation video {
        width: 220px;
    }
    
    .loading-line {
        width: 220px;
    }
    
    .loading-text {
        font-size: var(--font-base);
    }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
    margin-bottom: var(--space-4);
}

h1 { font-size: var(--font-6xl); }
h2 { font-size: var(--font-5xl); }
h3 { font-size: var(--font-4xl); }
h4 { font-size: var(--font-3xl); }
h5 { font-size: var(--font-2xl); }
h6 { font-size: var(--font-xl); }

p {
    margin-bottom: var(--space-4);
    color: var(--gray-700);
}

a {
    color: var(--primary-burgundy);
    text-decoration: none;
    transition: var(--transition-base);
}

a:hover {
    color: var(--accent-gold);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-base);
    padding: 0;
    height: 80px; /* Fixed height for the navbar */
    display: flex;
    align-items: center; /* Center content vertically */
}

.navbar.scrolled {
    background: rgba(44, 62, 95, 0.95);
    box-shadow: var(--shadow-lg);
}

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

.navbar.scrolled .logo-text {
    color: var(--white);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo .logo-text {
    font-family: var(--font-secondary);
    font-size: var(--font-3xl);
    font-weight: 800;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: var(--transition-base);
}

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

.nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: var(--space-8);
}

.nav-item {
    position: relative;
}

.nav-link {
    font-weight: 500;
    color: var(--gray-800);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-burgundy);
    background: rgba(107, 31, 60, 0.1);
}

.nav-link i {
    font-size: var(--font-xs);
    transition: var(--transition-base);
}

.nav-item:hover .nav-link i {
    transform: rotate(180deg);
}

/* Mega Menu */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    padding: var(--space-8);
    margin-top: var(--space-4);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px);
    transition: all var(--transition-base);
    z-index: var(--z-dropdown);
}

.nav-item:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mega-menu-content {
    display: grid;
    grid-template-columns: 1fr 1fr 200px;
    gap: var(--space-6);
}

.mega-menu-section h4 {
    font-size: var(--font-lg);
    font-weight: 600;
    color: var(--primary-burgundy);
    margin-bottom: var(--space-4);
}

.mega-menu-section ul {
    list-style: none;
}

.mega-menu-section li {
    margin-bottom: var(--space-2);
}

.mega-menu-section a {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2);
    color: var(--gray-700);
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
}

.mega-menu-section a:hover {
    color: var(--primary-burgundy);
    background: rgba(107, 31, 60, 0.05);
}

.mega-menu-section i {
    color: var(--accent-gold);
    width: 16px;
}

.mega-menu-highlight {
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
}

.mega-menu-highlight h4 {
    color: var(--white);
    margin-bottom: var(--space-3);
}

.mega-menu-highlight .feature-card {
    text-align: center;
}

.mega-menu-highlight i {
    font-size: var(--font-3xl);
    color: var(--accent-gold);
    margin-bottom: var(--space-3);
}

.mega-menu-highlight h5 {
    font-size: var(--font-lg);
    font-weight: 600;
    margin-bottom: var(--space-2);
}

.mega-menu-highlight p {
    font-size: var(--font-sm);
    opacity: 0.9;
    margin: 0;
}

/* Navigation Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: var(--space-2);
    gap: var(--space-1);
}

.hamburger span {
    width: 24px;
    height: 3px;
    background: var(--gray-800);
    border-radius: var(--radius-full);
    transition: var(--transition-base);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Buttons */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: var(--font-base);
    text-decoration: none;
    border: none;
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button.primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.cta-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.cta-button.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--gray-800);
    border: 2px solid var(--gray-300);
    backdrop-filter: blur(10px);
}

.cta-button.secondary:hover {
    background: var(--gray-100);
    border-color: var(--primary-burgundy);
    color: var(--primary-burgundy);
}

.cta-button.tertiary {
    background: transparent;
    color: var(--primary-burgundy);
    border: 2px solid var(--primary-burgundy);
}

.cta-button.tertiary:hover {
    background: var(--primary-burgundy);
    color: var(--white);
}

.cta-button.large {
    padding: var(--space-4) var(--space-8);
    font-size: var(--font-lg);
}

.cta-button.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(107, 31, 60, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(107, 31, 60, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(107, 31, 60, 0);
    }
}

/* Mobile Menu */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(44, 62, 95, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: var(--z-modal);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: var(--space-6);
    color: var(--white);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-8);
}

.mobile-logo {
    font-family: var(--font-secondary);
    font-size: var(--font-3xl);
    font-weight: 800;
    background: var(--gradient-secondary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mobile-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: var(--font-2xl);
    cursor: pointer;
    padding: var(--space-2);
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
}

.mobile-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-nav {
    flex: 1;
}

.mobile-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav > ul > li {
    margin-bottom: var(--space-4);
}

.mobile-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--white);
    font-size: var(--font-xl);
    font-weight: 500;
    padding: var(--space-4);
    border-radius: var(--radius-xl);
    transition: var(--transition-base);
}

.mobile-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-gold);
}

.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    margin-top: var(--space-2);
}

.mobile-dropdown.active .mobile-submenu {
    max-height: 400px;
}

.mobile-submenu li {
    margin: 0;
}

.mobile-submenu a {
    font-size: var(--font-base);
    padding: var(--space-3) var(--space-6);
}

.mobile-cta {
    margin-top: var(--space-8);
    text-align: center;
}

    /* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, 
        rgba(44, 62, 95, 0.95) 0%, 
        rgba(107, 31, 60, 0.95) 50%, 
        rgba(44, 62, 95, 0.95) 100%
    );
}.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.animated-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="10" cy="10" r="1" fill="%23D4AF37" opacity="0.3"><animate attributeName="opacity" values="0.3;1;0.3" dur="2s" repeatCount="indefinite"/></circle><circle cx="90" cy="20" r="1.5" fill="%23B87333" opacity="0.4"><animate attributeName="opacity" values="0.4;1;0.4" dur="3s" repeatCount="indefinite"/></circle><circle cx="50" cy="50" r="1" fill="%23D4AF37" opacity="0.5"><animate attributeName="opacity" values="0.5;1;0.5" dur="1.5s" repeatCount="indefinite"/></circle><circle cx="20" cy="80" r="1.2" fill="%23B87333" opacity="0.3"><animate attributeName="opacity" values="0.3;1;0.3" dur="2.5s" repeatCount="indefinite"/></circle><circle cx="80" cy="70" r="1" fill="%23D4AF37" opacity="0.4"><animate attributeName="opacity" values="0.4;1;0.4" dur="2s" repeatCount="indefinite"/></circle></svg>') repeat;
    opacity: 0.6;
    animation: particlesFloat 20s linear infinite;
}

@keyframes particlesFloat {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-100px, -100px); }
}

.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient-glass);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: floatShape 15s ease-in-out infinite;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 10%;
    animation-delay: -3s;
}

.shape-3 {
    width: 60px;
    height: 60px;
    top: 30%;
    right: 30%;
    animation-delay: -6s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 20%;
    animation-delay: -9s;
}

.shape-5 {
    width: 40px;
    height: 40px;
    top: 20%;
    left: 50%;
    animation-delay: -12s;
}

@keyframes floatShape {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(120deg);
    }
    66% {
        transform: translateY(20px) rotate(240deg);
    }
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-overlay);
}

/* Ensure hero video has consistent readability */
.video-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.45) 0%,
        rgba(0, 0, 0, 0.35) 60%,
        rgba(0, 0, 0, 0.25) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: var(--space-20) 0;
}

.hero-text {
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
    color: var(--white);
}

.hero-title {
    font-size: clamp(var(--font-5xl), 8vw, var(--font-8xl));
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: var(--space-6);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.title-line {
    display: block;
}

.title-highlight {
    background: var(--gradient-secondary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from {
        filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3));
    }
    to {
        filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.6));
    }
}

.hero-subtitle {
    font-size: var(--font-2xl);
    font-weight: 600;
    color: var(--accent-gold);
    margin-bottom: var(--space-4);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: var(--font-lg);
    line-height: 1.7;
    opacity: 0.9;
    margin-bottom: var(--space-8);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    justify-content: center;
    margin-bottom: var(--space-12);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-8);
    margin-top: var(--space-12);
}

.stat {
    text-align: center;
    opacity: 0.9;
}

.stat-number {
    display: block;
    font-size: var(--font-4xl);
    font-weight: 900;
    color: var(--accent-gold);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-size: var(--font-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.scroll-indicator {
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition-base);
}

.scroll-indicator:hover {
    color: var(--accent-gold);
    transform: translateX(-50%) translateY(-5px);
}

.scroll-text {
    font-size: var(--font-sm);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--space-2);
    opacity: 0.8;
}

.scroll-arrow {
    display: flex;
    justify-content: center;
}

.arrow {
    width: 1px;
    height: 30px;
    background: var(--white);
    position: relative;
    animation: scrollBounce 2s infinite;
}

.arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 8px solid var(--white);
}

@keyframes scrollBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Section Styles */
section {
    position: relative;
    padding: var(--space-20) 0;
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-16);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    display: inline-block;
    font-size: var(--font-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.1);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-4);
}

.section-title {
    font-size: clamp(var(--font-4xl), 6vw, var(--font-6xl));
    font-weight: 800;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: var(--space-6);
}

.section-description {
    font-size: var(--font-xl);
    color: var(--gray-700);
    line-height: 1.7;
    margin-bottom: 0;
}

/* Services Section */
.services {
    background: var(--light-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-8);
    margin-top: var(--space-16);
}

.service-card {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-3xl);
    overflow: hidden;
    transition: all var(--transition-base);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.service-card.primary {
    grid-column: span 1;
    min-height: 400px;
}

.service-card.secondary {
    min-height: 250px;
}

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

/* Subtle background tint on hover to improve perceived depth */
.service-card:hover {
    background: linear-gradient(0deg, rgba(107, 31, 60, 0.015), rgba(107, 31, 60, 0.015)), #ffffff;
}

.card-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.card-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-glass);
    opacity: 0;
    transition: var(--transition-base);
}

.service-card:hover .card-gradient {
    opacity: 1;
}

.card-content {
    position: relative;
    z-index: 2;
    padding: var(--space-8);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: var(--radius-2xl);
    margin-bottom: var(--space-6);
    font-size: var(--font-3xl);
    box-shadow: var(--shadow-lg);
    transition: var(--transition-base);
}

.service-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-glow);
}

.card-title {
    font-size: var(--font-2xl);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-4);
}

.card-description {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: var(--space-6);
    flex-grow: 1;
}

.card-features {
    margin-bottom: var(--space-6);
}

.card-features ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.card-features li {
    position: relative;
    padding: var(--space-2) 0 var(--space-2) var(--space-6);
    color: var(--gray-700);
    font-size: var(--font-sm);
}

.card-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: var(--space-2);
    color: var(--accent-gold);
    font-weight: bold;
    font-size: var(--font-sm);
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--primary-burgundy);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-base);
    margin-top: auto;
}

.card-link:hover {
    color: var(--accent-gold);
    transform: translateX(5px);
}

.card-hover-effect {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-slower);
    z-index: 1;
}

.service-card:hover .card-hover-effect {
    opacity: 0.03;
}

/* Partners Section */
.partners {
    background: var(--white);
}

.partners-carousel-container {
    margin-bottom: var(--space-12);
    overflow: hidden;
    border-radius: var(--radius-3xl);
    background: var(--gradient-glass);
    padding: var(--space-8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.partners-carousel {
    overflow: visible;
}

.partner-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
}

.partner-logo {
    width: 120px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
    filter: none;
}

.partner-logo:hover {
    filter: none;
    transform: none;
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-8);
}

.partner-category {
    background: var(--white);
    padding: var(--space-6);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--gray-200);
    transition: var(--transition-base);
}

.partner-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-burgundy);
}

.partner-category h4 {
    font-size: var(--font-xl);
    font-weight: 600;
    color: var(--primary-burgundy);
    margin-bottom: var(--space-4);
}

.partner-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.partner-badge {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    background: rgba(107, 31, 60, 0.1);
    color: var(--primary-burgundy);
    border-radius: var(--radius-full);
    font-size: var(--font-sm);
    font-weight: 500;
    transition: var(--transition-base);
}

.partner-badge:hover {
    background: var(--primary-burgundy);
    color: var(--white);
    transform: scale(1.05);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: var(--space-8);
    right: var(--space-8);
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-lg);
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(100px);
    transition: all var(--transition-base);
    z-index: var(--z-fixed);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* ========== Subtle dynamic theming (accent-only) ========== */
body[data-theme='navy'] { --accent-current: var(--primary-navy); }
body[data-theme='burgundy'] { --accent-current: var(--primary-burgundy); }
body[data-theme='gold'] { --accent-current: var(--accent-gold); }

/* Use dynamic accent for small highlights only */
body[data-theme] .section-subtitle {
    color: var(--accent-current);
    /* translucent background using the dynamic accent */
    background: color-mix(in srgb, var(--accent-current) 12%, transparent);
}

body[data-theme] .card-link:hover {
    color: var(--accent-current);
}

body[data-theme] .partner-badge {
    background: color-mix(in srgb, var(--accent-current) 10%, transparent);
    color: var(--accent-current);
}
body[data-theme] .partner-badge:hover {
    background: var(--accent-current);
    color: #ffffff;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 var(--space-4);
    }
    
    .nav-container {
        padding: 0 var(--space-4);
    }
}

@media (max-width: 768px) {
    /* Hide desktop navigation */
    .nav-menu {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    /* Hero adjustments */
    .hero-title {
        font-size: var(--font-5xl);
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: var(--space-4);
    }
    
    /* Services grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    .service-card.primary {
        grid-column: span 1;
    }
    
    /* Partners grid */
    .partners-grid {
        grid-template-columns: 1fr;
    }
    
    /* Section spacing */
    section {
        padding: var(--space-16) 0;
    }
    
    .section-header {
        margin-bottom: var(--space-12);
    }
    
    /* Mega menu hide */
    .mega-menu {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-3);
    }
    
    .nav-container {
        padding: 0 var(--space-3);
    }
    
    .hero-title {
        font-size: var(--font-4xl);
    }
    
    .hero-subtitle {
        font-size: var(--font-xl);
    }
    
    .hero-description {
        font-size: var(--font-base);
    }
    
    .section-title {
        font-size: var(--font-4xl);
    }
    
    .stat-number {
        font-size: var(--font-3xl);
    }
    
    .card-content {
        padding: var(--space-6);
    }
    
    section {
        padding: var(--space-12) 0;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .mobile-menu-overlay,
    .back-to-top,
    .floating-shapes,
    .animated-particles {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
        background: white;
    }
    
    .hero {
        min-height: auto;
        padding: 2rem 0;
        background: white;
        color: black;
    }
    
    .section-title,
    .hero-title {
        color: black;
    }
}