/* Remove focus outlines globally */
*:focus {
    outline: none !important;
}

/* Remove tap highlight on mobile */
a, button {
    -webkit-tap-highlight-color: transparent;
    tap-highlight-color: transparent;
}

/* CSS Custom Properties for Consistent Spacing */
:root {
    /* Spacing scale using clamp for responsive values */
    --space-xs: clamp(0.25rem, 0.5vw, 0.5rem);
    --space-sm: clamp(0.5rem, 1vw, 1rem);
    --space-md: clamp(1rem, 2vw, 1.5rem);
    --space-lg: clamp(1.5rem, 3vw, 2.5rem);
    --space-xl: clamp(2rem, 4vw, 4rem);
    --space-2xl: clamp(3rem, 5vw, 6rem);
    --space-3xl: clamp(4rem, 6vw, 8rem);
    --space-xxl: clamp(2.5rem, 4vw, 5rem);
    
    /* Container padding */
    --container-padding: clamp(1rem, 3vw, 2.5rem);
    
    /* Navigation heights */
    --nav-height: clamp(4rem, 5vw, 5rem);
    --nav-height-scrolled: clamp(3rem, 3.5vw, 4rem);
    
    /* Section padding */
    --section-padding: clamp(3rem, 8vw, 6rem);
    
    /* Card sizing */
    --card-padding: clamp(1.5rem, 3vw, 2.5rem);
    --card-min-height: clamp(280px, 30vw, 380px);
    --card-gap: clamp(1.5rem, 2.5vw, 2.5rem);
    
    /* Typography scale */
    --font-hero-h1: clamp(2.5rem, 7vw, 5.5rem);
    --font-hero-p: clamp(1.5rem, 3vw, 2.5rem);
    --font-card-title: clamp(1.5rem, 2.5vw, 2.25rem);
    
    /* Primary font family */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Glass morphism properties */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-bg-hover: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-border-hover: rgba(255, 255, 255, 0.2);
    --glass-blur: 20px;
    --glass-blur-heavy: 30px;
    
    /* Gradient text colors */
    --gradient-primary: linear-gradient(135deg, #ffffff 0%, #666666 100%);
    --gradient-blue: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    
    /* Dark theme colors */
    --color-bg: #000000;
    --color-text: #ffffff;
    --color-text-secondary: rgba(255, 255, 255, 0.8);
    --color-text-tertiary: rgba(255, 255, 255, 0.6);
    --color-accent: #3b82f6;
    --color-accent-hover: #60a5fa;
}

/* Enhanced spacing for large screens */
@media (min-width: 1400px) {
    :root {
        --space-2xl: 7rem;
        --space-3xl: 10rem;
        --section-padding: 7rem;
        --card-gap: 2.5rem;
    }
}

@media (min-width: 1920px) {
    :root {
        --space-2xl: 8rem;
        --space-3xl: 12rem;
        --section-padding: 8rem;
        --card-gap: 3rem;
        --font-hero-h1: 6rem;
        --font-hero-p: 2.75rem;
        --font-card-title: 2.5rem;
    }
}

@media (min-width: 2560px) {
    :root {
        --container-max-width: 1800px;
        --space-3xl: 14rem;
        --section-padding: 10rem;
    }
}

/* Base styles - DARK THEME */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Typography */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap');

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1;
    letter-spacing: -0.01em;
    font-weight: 400;
}

/* Add subtle noise texture for premium feel */
body::before {
    display: none !important; /* Removed to prevent white lines */
}

.container {
    max-width: var(--container-max-width, 1400px);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    position: relative;
    z-index: 2;
}

/* Navigation with Premium Effects */
.navbar {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.9) 100%);
    backdrop-filter: blur(30px) saturate(0%) brightness(0.98);
    -webkit-backdrop-filter: blur(30px) saturate(0%) brightness(0.98);
    color: #FFFFFF;
    padding: var(--space-sm) 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    height: var(--nav-height);
    display: flex;
    align-items: center;
    will-change: transform, height, background-color, box-shadow;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% -100%, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.navbar:hover::before {
    opacity: 1;
}

.navbar.scrolled {
    padding: var(--space-xs) 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.98) 0%, rgba(0, 0, 0, 0.95) 100%);
    backdrop-filter: blur(50px) saturate(0%) brightness(0.95);
    -webkit-backdrop-filter: blur(50px) saturate(0%) brightness(0.95);
    box-shadow: 
        0 15px 50px rgba(0, 0, 0, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    height: var(--nav-height-scrolled);
    border-bottom-color: rgba(255, 255, 255, 0.03);
}

.navbar .container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    position: relative;
}

/* Hide logo on desktop - menu centered */
@media (min-width: 769px) {
    .logo {
        display: none !important;
    }
    
    .nav-menu {
        margin: 0 auto;
    }
}

.navbar a {
    color: #FFFFFF;
    text-decoration: none;
    position: relative;
}

/* Logo styles */
.logo {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: none;
    position: relative;
    z-index: 10;
}

.logo:hover {
    transform: scale(1.05) translateY(-1px);
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.6);
    letter-spacing: 0;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: clamp(1.5rem, 3vw, 3.5rem);
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-menu li {
    animation: fadeInDown 0.8s ease-out backwards;
}

.nav-menu li:nth-child(1) { animation-delay: 0.1s; }
.nav-menu li:nth-child(2) { animation-delay: 0.2s; }
.nav-menu li:nth-child(3) { animation-delay: 0.3s; }
.nav-menu li:nth-child(4) { animation-delay: 0.4s; }
.nav-menu li:nth-child(5) { animation-delay: 0.5s; }
.nav-menu li:nth-child(6) { animation-delay: 0.6s; }

.nav-menu a {
    font-size: clamp(0.8rem, 1vw, 0.95rem);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 0.5rem 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.nav-menu a:hover {
    letter-spacing: 2.5px;
    transform: translateY(-2px);
}

.nav-menu a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #FFFFFF;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-menu a:hover::before {
    width: 100%;
}

/* Hero section - Optimized height */
.hero {
    background: #000000;
    color: #FFFFFF;
    padding: calc(var(--nav-height) + var(--space-xl)) 0 var(--space-xl);
    margin-top: 0;
    text-align: center;
    position: relative;
    overflow: visible;
    min-height: 75vh;
    display: flex;
    align-items: center;
}

@media (min-width: 1400px) {
    .hero {
        min-height: 80vh;
        padding: calc(var(--nav-height) + var(--space-2xl)) 0 var(--space-2xl);
    }
}

@media (min-width: 1920px) {
    .hero {
        min-height: 85vh;
    }
}

/* Scroll Indicator - Hidden */
.hero .scroll-indicator {
    display: none !important;
}

.hero .scroll-indicator::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, #000000 0%, transparent 100%);
    transform: translateX(-50%);
    opacity: 0.8;
}

.hero .scroll-indicator::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 12px solid #000000;
    transform: translateX(-50%);
    animation: arrow-pulse 2s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Hide scroll indicator when scrolled - using adjacent sibling selector for better compatibility */
.navbar.scrolled ~ main .hero .scroll-indicator {
    opacity: 0;
    transition: opacity 0.3s ease-out;
    pointer-events: none;
}

/* Scroll indicator animations */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-15px);
    }
    60% {
        transform: translateX(-50%) translateY(-8px);
    }
}

@keyframes arrow-pulse {
    0%, 100% {
        opacity: 0.6;
        transform: translateX(-50%) scale(1) translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) scale(1.15) translateY(3px);
    }
}

@keyframes glow {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.1));
    }
    50% {
        filter: drop-shadow(0 0 30px rgba(0, 0, 0, 0.2));
    }
}

.hero::before {
    display: none !important; /* Removed grid pattern to prevent white lines */
}


@keyframes grid-slide {
    0% { 
        background-position: 0 0, 0 0, 0 0;
    }
    100% { 
        background-position: 101px 101px, 101px 101px, 0 0;
    }
}

/* Floating particles - Reduced for performance */
.hero::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: 
        radial-gradient(circle at 20% 40%, rgba(0, 0, 0, 0.12) 1px, transparent 1px),
        radial-gradient(circle at 80% 20%, rgba(0, 0, 0, 0.1) 1.5px, transparent 1.5px),
        radial-gradient(circle at 50% 60%, rgba(0, 0, 0, 0.08) 2px, transparent 2px);
    background-size: 600px 600px, 500px 500px, 450px 450px;
    animation: float 30s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
    opacity: 1;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

@keyframes float {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
    25% { transform: translate3d(-20px, -20px, 0) rotate(90deg); }
    50% { transform: translate3d(20px, -10px, 0) rotate(180deg); }
    75% { transform: translate3d(-10px, 20px, 0) rotate(270deg); }
}

.hero h1 {
    font-size: var(--font-hero-h1);
    font-weight: 800;
    margin-bottom: var(--space-lg);
    letter-spacing: -0.02em;
    line-height: 1.05;
    animation: fadeInUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    color: #000000;
    will-change: transform, opacity;
}

.hero h1 span {
    display: inline-block;
    animation: wave 3s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.1s);
}

@keyframes wave {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero p {
    font-size: var(--font-hero-p);
    margin-bottom: var(--space-xl);
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.4;
    animation: fadeInUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s both;
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.85;
    will-change: transform, opacity;
}

.cta-button {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.4) 100%);
    color: #000000;
    padding: clamp(1.2rem, 2.2vw, 1.75rem) clamp(3rem, 5vw, 5.5rem);
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-size: clamp(1rem, 1.3vw, 1.125rem);
    text-transform: uppercase;
    letter-spacing: 2.5px;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    font-weight: 600;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s both, shimmer 3s ease-in-out infinite;
    z-index: 1;
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.08),
        0 4px 10px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
    min-width: 280px;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    backdrop-filter: blur(40px) saturate(0%) brightness(1.1);
    -webkit-backdrop-filter: blur(40px) saturate(0%) brightness(1.1);
    transform-style: preserve-3d;
    will-change: transform, box-shadow, background;
    background-size: 200% 200%;
    background-position: 0% 50%;
}


.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
    transition: left 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    transform: skewX(-20deg);
}

.cta-button::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-8px) scale(1.03) perspective(1000px) rotateX(5deg);
    box-shadow: 
        0 35px 80px rgba(0, 0, 0, 0.15),
        0 10px 25px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.7) 100%);
    background-position: 100% 50%;
    border-color: rgba(0, 0, 0, 0.2);
    letter-spacing: 3.2px;
}

.cta-button:hover::after {
    opacity: 1;
}

.cta-button:active {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.12),
        0 5px 12px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(0, 0, 0, 0.08);
    transition: all 0.1s ease;
}

.cta-button:hover::before {
    left: 0;
}

.cta-button .arrow {
    display: inline-block;
    transition: transform 0.3s ease;
    font-size: 1.2em;
    vertical-align: middle;
    margin-bottom: 2px;
}

.cta-button:hover .arrow {
    transform: translateX(5px);
}

/* Services Section - Enhanced with premium transitions */
.services-section {
    padding: calc(var(--section-padding) * 0.5) 0 var(--section-padding);
    background: #000000;
    position: relative;
    margin-top: 0;
    z-index: 10;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    transform: translateZ(0);
}

.services-section::after {
    display: none !important; /* Removed white gradient to prevent white stripe */
}

@media (min-width: 1400px) {
    .services-section {
        margin-top: 0;
    }
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--card-gap);
    margin-top: var(--space-xl);
    position: relative;
    z-index: 2;
}

/* Service Cards - Optimized for visibility */
.service-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    backdrop-filter: blur(40px) saturate(0%) brightness(1.02);
    -webkit-backdrop-filter: blur(40px) saturate(0%) brightness(1.02);
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: var(--card-padding);
    position: relative;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: var(--card-min-height);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.06),
        0 4px 12px rgba(0, 0, 0, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(0, 0, 0, 0.02);
    transform: translateZ(0) translateY(0);
    will-change: transform, box-shadow, background;
    transform-style: preserve-3d;
    animation: cardEntrance 0.8s cubic-bezier(0.23, 1, 0.32, 1) both;
}

/* Staggered entrance animations */
.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    transform: rotate(45deg) translateY(500px);
    transition: transform 0.6s;
    pointer-events: none;
}

.service-card:hover::before {
    transform: rotate(45deg) translateY(-500px);
}

.service-card:hover {
    transform: translateY(-16px) scale(1.03) perspective(1000px) rotateX(4deg) rotateY(-2deg);
    box-shadow: 
        0 35px 90px rgba(0, 0, 0, 0.18),
        0 12px 32px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(255, 255, 255, 0.05);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.9) 100%);
    backdrop-filter: blur(60px) saturate(0%) brightness(0.9);
    -webkit-backdrop-filter: blur(60px) saturate(0%) brightness(0.9);
    border-color: rgba(255, 255, 255, 0.2);
}

@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.service-card:hover .card-number,
.service-card:hover h3,
.service-card:hover p,
.service-card:hover .card-link {
    color: #FFFFFF;
}

.service-card:hover .card-link::after {
    background: #FFFFFF;
}

/* Card number - Enhanced styling */
.card-number {
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 800;
    color: rgba(0, 0, 0, 0.03);
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    line-height: 1;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 0;
    font-feature-settings: 'tnum' 1;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.05);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.05) 0%, transparent 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service-card:hover .card-number {
    color: rgba(255, 255, 255, 0.1);
    transform: scale(1.4) rotate(-10deg) translateX(8px) translateY(-5px);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(0.5px);
}

.service-card h3 {
    font-size: var(--font-card-title);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    line-height: 1.1;
}

.service-card p {
    font-size: clamp(0.95rem, 1.2vw, 1.125rem);
    line-height: 1.75;
    margin-bottom: var(--space-md);
    font-weight: 400;
    position: relative;
    z-index: 1;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    letter-spacing: 0.01em;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #000000;
    font-weight: 600;
    font-size: clamp(0.875rem, 1vw, 1rem);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.card-link span {
    display: inline-block;
    transition: transform 0.3s ease;
    font-size: 1.2rem;
}

.card-link:hover span {
    transform: translateX(10px);
}

.card-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #000000;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.card-link:hover::after {
    transform: scaleX(1);
}

/* Footer - Premium design for wide screens */
footer {
    background: linear-gradient(to bottom, #000000 0%, rgba(0, 0, 0, 0.98) 100%);
    color: #FFFFFF;
    text-align: center;
    padding: var(--space-xl) 0 var(--space-lg);
    position: relative;
    overflow: hidden;
}

footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.02) 0%, transparent 70%);
    animation: footerGlow 10s ease-in-out infinite;
    pointer-events: none;
}

@keyframes footerGlow {
    0%, 100% {
        transform: translateX(0) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translateX(50%) scale(1.2);
        opacity: 1;
    }
}

@media (min-width: 1400px) {
    footer {
        padding: var(--space-2xl) 0 var(--space-xl);
    }
}

/* Footer copyright with premium divider */
footer > .container > p:first-child {
    margin-bottom: var(--space-xl);
    font-size: 1rem;
    opacity: 0.7;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: var(--space-lg);
}

/* Premium animated divider after copyright */
footer > .container > p:first-child::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(100px, 20vw, 200px);
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.2) 20%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0.2) 80%,
        transparent 100%);
    overflow: hidden;
    animation: dividerShimmer 3s ease-in-out infinite;
}

/* Secondary divider element for enhanced effect */
footer > .container > p:first-child::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(60px, 12vw, 120px);
    height: 7px;
    background: radial-gradient(ellipse at center, 
        rgba(255, 255, 255, 0.15) 0%, 
        transparent 70%);
    filter: blur(3px);
    animation: dividerPulse 3s ease-in-out infinite;
}

@keyframes dividerShimmer {
    0%, 100% {
        transform: translateX(-50%) scaleX(0.8);
        opacity: 0.6;
    }
    50% {
        transform: translateX(-50%) scaleX(1);
        opacity: 1;
    }
}

@keyframes dividerPulse {
    0%, 100% {
        opacity: 0.3;
        transform: translateX(-50%) scale(0.9);
    }
    50% {
        opacity: 0.6;
        transform: translateX(-50%) scale(1.1);
    }
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { 
        background-position: 0% 50%;
        filter: brightness(1);
    }
    50% { 
        background-position: 100% 50%;
        filter: brightness(1.05);
    }
    100% { 
        background-position: 0% 50%;
        filter: brightness(1);
    }
}

/* Premium Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.96);
        filter: blur(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Scroll animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(60px) scale(0.95);
    transition: all 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Add perspective for depth - Enhanced */
@media (min-width: 1400px) {
    .services-grid {
        perspective: 2000px;
        transform-style: preserve-3d;
    }
    
    .service-card {
        transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1), filter 0.3s ease;
    }
    
    .service-card:hover {
        filter: brightness(1.02) contrast(1.05);
    }
    
    /* Adjacent cards effect */
    .service-card:hover ~ .service-card {
        transform: translateX(10px) scale(0.98);
        opacity: 0.9;
    }
    
    .service-card:has(~ .service-card:hover) {
        transform: translateX(-10px) scale(0.98);
        opacity: 0.9;
    }
}

/* Responsive - Optimized breakpoints */
@media (max-width: 1400px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1200px) {
    :root {
        --nav-height: 4rem;
        --nav-height-scrolled: 3rem;
    }
}

@media (max-width: 968px) {
    .nav-menu {
        gap: var(--space-md);
    }
    
    .hero {
        min-height: 60vh;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        margin-top: var(--space-lg);
    }
}

/* iPhone safe area handling */
body {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
}

/* Hamburger menu - mobile only */
.hamburger {
    display: none;
}

/* Hide hamburger on desktop */
@media (min-width: 769px) {
    .hamburger {
        display: none !important;
    }
}

/* Show hamburger on mobile */
@media (max-width: 768px) {
    .hamburger {
        display: flex !important;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: auto;
        --nav-height-scrolled: auto;
    }
    
    .navbar {
        height: auto;
        padding: var(--space-sm) 0;
    }
    
    .navbar.scrolled {
        padding: var(--space-xs) 0;
    }
    
    .navbar .container {
        justify-content: space-between;
    }
    
    .hero {
        min-height: 50vh;
        padding-top: calc(6rem + var(--space-lg));
        padding-bottom: var(--space-sm);
    }
    
    /* Adjust scroll indicator for mobile */
    .hero .scroll-indicator {
        bottom: 0.5rem;
        width: 24px;
        height: 40px;
    }
    
    .hero .scroll-indicator::after {
        border-left-width: 6px;
        border-right-width: 6px;
        border-top-width: 10px;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 50vh;
    }
    
    .service-card {
        min-height: 280px;
    }
    
    .card-number {
        opacity: 0.08;
    }
}

/* Performance optimizations */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .legal-disclaimer {
        animation: none !important;
    }
    
    .legal-disclaimer h3::before {
        animation: none !important;
    }
    
    .legal-disclaimer p::before {
        animation: none !important;
    }
    
    .legal-disclaimer p::after {
        animation: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .service-card {
        border: 2px solid #000000;
    }
    
    .service-card:hover {
        border: 2px solid #FFFFFF;
    }
    
    .navbar {
        border-bottom: 2px solid #FFFFFF;
    }
}

/* Enhanced focus states for accessibility */
*:focus {
    outline: none;
    position: relative;
}


@keyframes focusPulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.02);
    }
}


/* Premium micro-interactions */
.interactive-element {
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.interactive-element:active {
    transform: scale(0.98);
}

/* Smooth link transitions */
a {
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Premium text selection */
::selection {
    background: rgba(0, 0, 0, 0.9);
    color: #FFFFFF;
}

::-moz-selection {
    background: rgba(0, 0, 0, 0.9);
    color: #FFFFFF;
}

/* Smooth scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.4);
}

/* Enhanced image loading */
img {
    opacity: 0;
    transition: opacity 0.6s ease-out;
}

img.loaded {
    opacity: 1;
}

/* Enhanced section transitions */
section {
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Premium form inputs (for future use) */
input,
textarea,
select {
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

input:hover,
textarea:hover,
select:hover {
    border-color: rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.9);
}

input:focus,
textarea:focus,
select:focus {
    border-color: rgba(0, 0, 0, 0.2);
    background: #FFFFFF;
}

/* Desktop-specific enhancements */
@media (min-width: 1200px) {
    /* Enhanced hover zones */
    .hover-zone {
        position: relative;
    }
    
    .hover-zone::before {
        content: '';
        position: absolute;
        top: -10px;
        left: -10px;
        right: -10px;
        bottom: -10px;
        z-index: -1;
    }
    
    /* Parallax depth on desktop */
    .parallax-container {
        transform-style: preserve-3d;
        perspective: 1000px;
    }
    
    .parallax-layer {
        transform: translateZ(0);
        will-change: transform;
    }
    
    .parallax-layer-1 {
        transform: translateZ(-1px) scale(1.1);
    }
    
    .parallax-layer-2 {
        transform: translateZ(-2px) scale(1.2);
    }
    
    .parallax-layer-3 {
        transform: translateZ(-3px) scale(1.3);
    }
}

/* Ultra-wide screen optimizations */
@media (min-width: 2560px) {
    .container {
        max-width: 1800px;
    }
    
    .hero h1 {
        font-size: 6.5rem;
    }
    
    .hero p {
        font-size: 3rem;
    }
    
    .service-card {
        min-height: 420px;
    }
    
    .card-number {
        font-size: 5rem;
    }
}

/* 4K screen optimizations */
@media (min-width: 3840px) {
    :root {
        --container-max-width: 2400px;
        --font-hero-h1: 8rem;
        --font-hero-p: 3.5rem;
        --font-card-title: 3rem;
    }
    
    .service-card {
        min-height: 500px;
        padding: 4rem;
    }
}

/* ======================== */
/* Market Research Styles   */
/* ======================== */

/* Gradient text styles for all headings */
h1.gradient-text,
h2.gradient-text,
h3.gradient-text,
h4.gradient-text,
h5.gradient-text,
h6.gradient-text,
.gradient-heading {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* Blue gradient variant */
.gradient-blue {
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glass morphism card effects */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Button styles matching Market Research */
.btn-glass {
    background: transparent;
    color: var(--color-text);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.1);
}

.btn-glass.active {
    background: var(--gradient-blue);
    color: white;
    border-color: transparent;
    font-weight: 600;
}

/* Link styles */
a {
    color: var(--color-accent);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

/* Table styles */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table thead {
    background: rgba(255, 255, 255, 0.05);
}

.data-table th {
    padding: 20px 15px;
    text-align: left;
    font-weight: 700;
    color: var(--color-text);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10;
}

.data-table tbody tr {
    transition: all 0.3s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.data-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.data-table td {
    padding: 20px 15px;
    color: var(--color-text);
    font-weight: 400;
}

/* Status symbols */
.symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
}

.symbol-yes,
.status-yes {
    background: rgba(34, 197, 94, 0.2);
    color: #22C55E;
}

.symbol-partial,
.status-partial {
    background: rgba(251, 191, 36, 0.2);
    color: #FBBF24;
}

.symbol-no,
.status-no {
    background: rgba(239, 68, 68, 0.2);
    color: #EF4444;
}

/* Tooltips */
.tooltip {
    position: relative;
    cursor: help;
}

.tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: var(--color-text);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    margin-bottom: 5px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Forms and inputs */
input,
textarea,
select {
    font-family: var(--font-primary);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    width: 100%;
}

input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

input:focus,
textarea:focus,
select:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Selection */
::selection {
    background: rgba(59, 130, 246, 0.3);
    color: var(--color-text);
}

::-moz-selection {
    background: rgba(59, 130, 246, 0.3);
    color: var(--color-text);
}

/* Focus states */
*:focus {
    outline: none;
}

*:focus-visible {
    outline: none;
}

/* Typography improvements */
p {
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.text-muted {
    color: var(--color-text-tertiary);
}

.text-small {
    font-size: 0.875rem;
}

.text-large {
    font-size: 1.125rem;
}

/* Utility classes */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.flex { display: flex; }
.flex-column { flex-direction: column; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

/* ULTIMATE RADICAL MOBILE FIX */
@media (max-width: 768px) {
    html {
        background: #000000 !important;
        overflow-x: hidden !important;
    }
    
    body {
        background: #000000 !important;
        margin: 0 !important;
        padding: 0 !important;
        min-height: 100vh !important;
        overflow-x: hidden !important;
    }
    
    /* Legal Analysis specific */
    .legal-analysis body,
    body.legal-analysis {
        background: #0a0a0a !important;
    }
    
    /* Kill everything after footer */
    footer ~ *:not(script):not(style) {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
        position: absolute !important;
        top: -9999px !important;
    }
    
    /* Ensure footer is last visible element */
    footer {
        margin-bottom: 0 !important;
        padding-bottom: 40px !important;
    }
    
    /* Remove any pseudo elements that might create space */
    *::after,
    *::before {
        max-height: 100vh !important;
    }
    
    body::after,
    html::after {
        display: none !important;
    }
}