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

/* Snap Scrolling for Index Page */
html {
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

/* Only apply snap scrolling to index page sections */
body.index-page .text-animation-section,
body.index-page .hero,
body.index-page .specializations,
body.index-page .services-preview,
body.index-page .social-proof,
body.index-page .about-preview,
body.index-page .cta-section {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Ensure text animation section maintains its existing styling */
body.index-page .text-animation-section {
    height: 100vh; /* Keep existing height */
    min-height: 100vh;
}

/* Adjust hero section for snap scrolling */
body.index-page .hero {
    min-height: 100vh;
    padding: 120px 0 60px 0;
}

/* Adjust other sections for better snap alignment */
body.index-page .specializations,
body.index-page .services-preview,
body.index-page .social-proof,
body.index-page .about-preview,
body.index-page .cta-section {
    padding: 80px 0;
}

/* Disable snap scrolling on mobile for better UX */
@media (max-width: 768px) {
    html {
        scroll-snap-type: none;
    }
    
    body.index-page .text-animation-section,
    body.index-page .hero,
    body.index-page .specializations,
    body.index-page .services-preview,
    body.index-page .social-proof,
    body.index-page .about-preview,
    body.index-page .cta-section {
        scroll-snap-align: none;
        scroll-snap-stop: normal;
        min-height: auto;
    }
    
    body.index-page .hero {
        min-height: auto;
        padding: 100px 0 60px 0;
    }
}

:root {
    /* Light Mode Colors (Now Default) */
    --primary-color: #4f46e5;
    --primary-dark: #4338ca;
    --secondary-color: #1f2937;
    --accent-color: #8b5cf6;
    --success-color: #10b981;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --background-light: #f9fafb;
    --background-white: #ffffff;
    --border-color: #e5e7eb;
    
    /* Enterprise-Grade Colors - Light Mode */
    --enterprise-navy: #1e293b;
    --enterprise-silver: #64748b;
    --enterprise-platinum: #f1f5f9;
    
    /* Light Mode Shadows */
    --shadow-light: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-large: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-enterprise: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Light mode gradients */
    --gradient-primary: linear-gradient(135deg, #4f46e5 0%, #8b5cf6 100%);
    --gradient-premium: linear-gradient(135deg, #ffffff 0%, #f9fafb 50%, #f1f5f9 100%);
    --gradient-subtle: linear-gradient(135deg, #f9fafb 0%, #f1f5f9 100%);
    
    /* Light mode glows */
    --glow-primary: 0 0 20px rgba(79, 70, 229, 0.2);
    --glow-accent: 0 0 20px rgba(139, 92, 246, 0.2);
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 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: 2.25rem;
    --font-size-5xl: 3rem;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* Layout */
    --container-max-width: 1200px;
    --border-radius: 0.5rem;
    --border-radius-lg: 0.75rem;
    
    /* Transitions */
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.9s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
    --transition-specialization: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-bounce: 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Advanced Animation Variables - Enterprise Enhanced */
    --glow-primary: 0 0 20px rgba(30, 64, 175, 0.3);
    --glow-accent: 0 0 20px rgba(220, 104, 3, 0.3);
    --glow-enterprise: 0 0 30px rgba(15, 23, 42, 0.2);
    --parallax-speed: 0.5;
    
    /* Enterprise Gradients - Enhanced for Light Mode */
    --gradient-primary: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
    --gradient-premium: linear-gradient(135deg, var(--enterprise-navy) 0%, var(--primary-color) 50%, var(--primary-dark) 100%);
    --gradient-subtle: linear-gradient(135deg, var(--enterprise-platinum) 0%, var(--background-white) 100%);
    --gradient-card: linear-gradient(135deg, var(--background-white) 0%, #f8fafc 100%);
}

/* Loading Screen Styles */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, #111111 0%, #000000 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.loading-content {
    text-align: center;
    position: relative;
}

.loading-logo-container {
    position: relative;
    display: inline-block;
    width: 300px;
    height: 300px;
}

.loading-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0;
    transform: scale(0.5) rotate(-10deg);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.loading-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 400px;
    height: 400px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, rgba(59, 130, 246, 0.1) 40%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    animation: pulse-glow 2s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.3;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.6;
    }
}

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

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: linear-gradient(45deg, #3b82f6, #60a5fa);
    border-radius: 50%;
    opacity: 0;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.8);
}

.particle:nth-child(1) {
    top: 20%;
    left: 10%;
    animation: float-particle 3s ease-in-out infinite;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    top: 80%;
    left: 20%;
    animation: float-particle 3.5s ease-in-out infinite;
    animation-delay: 0.5s;
}

.particle:nth-child(3) {
    top: 30%;
    right: 15%;
    animation: float-particle 2.8s ease-in-out infinite;
    animation-delay: 1s;
}

.particle:nth-child(4) {
    bottom: 25%;
    right: 10%;
    animation: float-particle 3.2s ease-in-out infinite;
    animation-delay: 1.5s;
}

.particle:nth-child(5) {
    top: 60%;
    left: 5%;
    animation: float-particle 2.5s ease-in-out infinite;
    animation-delay: 2s;
}

.particle:nth-child(6) {
    top: 10%;
    right: 30%;
    animation: float-particle 3.8s ease-in-out infinite;
    animation-delay: 2.5s;
}

@keyframes float-particle {
    0%, 100% {
        transform: translateY(0px) translateX(0px) scale(0);
        opacity: 0;
    }
    50% {
        transform: translateY(-20px) translateX(10px) scale(1);
        opacity: 1;
    }
}

/* Hide main content initially */
.main-content {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out;
}

/* Show main content after loading */
.main-content.loaded {
    opacity: 1;
    visibility: visible;
}

/* Loading screen hidden state */
.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out;
}

/* Responsive loading screen */
@media (max-width: 768px) {
    .loading-logo-container {
        width: 250px;
        height: 250px;
    }
    
    .loading-glow {
        width: 320px;
        height: 320px;
    }
}

@media (max-width: 480px) {
    .loading-logo-container {
        width: 200px;
        height: 200px;
    }
    
    .loading-glow {
        width: 280px;
        height: 280px;
    }
    
    .particle {
        width: 3px;
        height: 3px;
    }
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-white);
    overflow-x: hidden;
}

/* Smooth scrolling enhancement */
html {
    scroll-behavior: smooth;
}

/* Custom cursor for interactive elements */
.interactive-cursor {
    cursor: none;
}

.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    background: #000000;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
}

.custom-cursor.hover {
    transform: scale(2);
    background: #000000;
}

/* Scroll progress indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--gradient-primary);
    z-index: 1001;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(30, 64, 175, 0.3);
}

/* Container */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: var(--font-size-4xl);
    font-weight: 700;
}

h2 {
    font-size: var(--font-size-3xl);
}

h3 {
    font-size: var(--font-size-2xl);
}

h4 {
    font-size: var(--font-size-xl);
}

p {
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-align: center;
    line-height: 1.5;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    /* Default size (medium) */
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: var(--font-size-base);
    min-height: 44px;
}

/* Button Sizes */
.btn-xs {
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: var(--font-size-xs);
    min-height: 32px;
    border-radius: calc(var(--border-radius) * 0.75);
}

.btn-sm {
    padding: calc(var(--spacing-xs) + 2px) var(--spacing-md);
    font-size: var(--font-size-sm);
    min-height: 36px;
    border-radius: calc(var(--border-radius) * 0.875);
}

.btn-md {
    /* Default size - same as .btn base */
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: var(--font-size-base);
    min-height: 44px;
}

.btn-lg,
.btn-large {
    padding: var(--spacing-md) var(--spacing-2xl);
    font-size: var(--font-size-lg);
    min-height: 52px;
    border-radius: calc(var(--border-radius) * 1.25);
}

.btn-xl {
    padding: var(--spacing-lg) calc(var(--spacing-2xl) + var(--spacing-md));
    font-size: var(--font-size-xl);
    min-height: 60px;
    border-radius: calc(var(--border-radius) * 1.5);
}

/* Button Variants - Enterprise Enhanced */
.btn-primary {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary-color);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 100%);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-enterprise), var(--glow-primary);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-secondary);
    border-color: var(--primary-color);
    position: relative;
}

.btn-secondary:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
}

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

.btn-outline:hover {
    background: var(--gradient-card);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-light);
}

/* Enterprise CTA Button */
.btn-enterprise {
    background: var(--gradient-premium);
    color: white;
    border-color: var(--enterprise-navy);
    font-weight: 600;
    letter-spacing: 0.025em;
}

.btn-enterprise:hover {
    background: linear-gradient(135deg, var(--enterprise-navy) 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-enterprise), var(--glow-enterprise);
}

/* Button States */
.btn:disabled,
.btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Button Width Utilities */
.btn-block {
    display: flex;
    width: 100%;
}

.btn-auto {
    width: auto;
}

/* Navigation - Enterprise Enhanced */
.navbar {
    background: rgba(250, 251, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid #e2e8f0;
}

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

.nav-content {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-xl) + var(--spacing-lg)); /* Increased from 2rem to 3.5rem for more space between logo and menu */
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg); /* Increased gap between theme toggle and quiz button */
}

.nav-brand a {
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    align-items: center; /* Ensure logo aligns with nav items */
    margin-right: var(--spacing-lg); /* Add spacing to push logo away from home button */
}

.nav-brand h2 {
    margin: 0;
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--text-primary);
    text-shadow: none;
    line-height: 1.2; /* Consistent line height for better alignment */
}

.nav-list {
    display: flex;
    list-style: none;
    gap: calc(var(--spacing-xl) + var(--spacing-md)); /* Increased from 2.75rem to 3rem for better spacing */
    margin: 0;
    align-items: center; /* Ensure vertical alignment */
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all var(--transition-fast);
    position: relative;
    padding: var(--spacing-sm) var(--spacing-lg); /* Increased horizontal padding from 1rem to 1.5rem for larger buttons */
    border-radius: var(--border-radius);
    display: flex;
    align-items: center; /* Ensure vertical alignment */
    white-space: nowrap; /* Prevent text wrapping */
    min-width: fit-content; /* Ensure buttons size to content */
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background-color: rgba(79, 70, 229, 0.1);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    border-radius: 1px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    transition: all var(--transition-fast);
    border-radius: 2px;
}

/* Theme Toggle Button - Enhanced */
.theme-toggle {
    background: rgba(79, 70, 229, 0.1);
    border: 1px solid rgba(79, 70, 229, 0.2);
    color: var(--text-primary);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius);
    font-size: var(--font-size-xs);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    min-width: 70px;
    justify-content: center;
}

.theme-toggle:hover {
    background: rgba(79, 70, 229, 0.15);
    border-color: rgba(79, 70, 229, 0.3);
    transform: translateY(-1px);
}

.theme-toggle-icon {
    font-size: 14px;
    line-height: 1;
}

.theme-toggle-text {
    font-size: 11px;
    font-weight: 500;
}

/* Quiz Button in Navigation - Enterprise Enhanced */
.nav-quiz-btn {
    background: linear-gradient(135deg, var(--accent-color) 0%, #b45309 100%);
    color: white;
    border: 1px solid rgba(220, 104, 3, 0.3);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--border-radius);
    font-size: var(--font-size-sm);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-normal);
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(220, 104, 3, 0.2);
}

.nav-quiz-btn:hover {
    background: linear-gradient(135deg, #b45309 0%, var(--accent-color) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium), 0 0 15px rgba(220, 104, 3, 0.3);
}

.nav-quiz-btn.active {
    background: linear-gradient(135deg, #b45309 0%, var(--accent-color) 100%);
    box-shadow: var(--shadow-medium), 0 0 15px rgba(220, 104, 3, 0.4);
}

/* Free AI Audit CTA Button - Matching Quiz Button Style */
.btn-ai-audit {
    background: linear-gradient(135deg, var(--accent-color) 0%, #b45309 100%);
    color: white !important;
    border: 1px solid rgba(220, 104, 3, 0.3);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--border-radius);
    font-size: var(--font-size-base);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-normal);
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(220, 104, 3, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
}

.btn-ai-audit:hover {
    background: linear-gradient(135deg, #b45309 0%, var(--accent-color) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium), 0 0 15px rgba(220, 104, 3, 0.3);
    color: white !important;
}

.btn-ai-audit:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Large variant for hero sections */
.btn-ai-audit.btn-large {
    padding: var(--spacing-md) var(--spacing-2xl);
    font-size: var(--font-size-lg);
    min-height: 52px;
    border-radius: calc(var(--border-radius) * 1.25);
}

/* Small variant for navigation or compact areas */
.btn-ai-audit.btn-sm {
    padding: calc(var(--spacing-xs) + 2px) var(--spacing-md);
    font-size: var(--font-size-sm);
    min-height: 36px;
    border-radius: calc(var(--border-radius) * 0.875);
}

/* Dark mode navbar overrides */
[data-theme="dark"] .navbar {
    background: linear-gradient(180deg, var(--enterprise-navy) 0%, rgba(15, 23, 42, 0.95) 100%);
    border-bottom: 1px solid rgba(220, 104, 3, 0.2);
    box-shadow: var(--shadow-medium), 0 1px 0 rgba(220, 104, 3, 0.1);
}

[data-theme="dark"] .nav-brand a {
    color: white;
}

[data-theme="dark"] .nav-brand h2 {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .nav-link {
    color: rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .nav-toggle span {
    background-color: white;
}

[data-theme="dark"] .theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

[data-theme="dark"] .theme-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Hero Section - Enterprise Enhanced */
.hero {
    padding: calc(80px + var(--spacing-3xl)) 0 var(--spacing-3xl);
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
    overflow: hidden;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at top, rgba(30, 64, 175, 0.03) 0%, transparent 60%);
    pointer-events: none;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
}

.hero-title {
    font-size: var(--font-size-5xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.1;
    overflow: hidden;
}

/* Ensure hero title is visible in light mode */
.hero-title {
    color: #0f172a !important;
}

[data-theme="dark"] .hero-title {
    color: var(--dark-text-primary) !important;
}

.hero-title-line {
    display: block;
    /* Don't hide by default - let GSAP handle animations */
    /* transform: translateY(100%); */
    /* opacity: 0; */
}

/* Ensure hero title lines are visible in light mode as fallback */
.hero-title-line {
    color: #0f172a !important;
}

[data-theme="dark"] .hero-title-line {
    color: var(--dark-text-primary) !important;
}

.hero-title-line.animate-in {
    transform: translateY(0);
    opacity: 1;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.8s ease;
}

.hero-title-line:nth-child(2) {
    transition-delay: 0.2s;
}

.hero-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-primary);
    margin-bottom: var(--spacing-2xl);
    line-height: 1.6;
    font-weight: 500;
    opacity: 0.9;
}

/* Ensure hero subtitle is visible in light mode */
.hero-subtitle {
    color: #334155 !important;
}

[data-theme="dark"] .hero-subtitle {
    color: var(--dark-text-primary) !important;
}

/* Contact page hero subtitle override for improved contrast */
.contact-hero .hero-subtitle {
    color: white;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.hero-guarantee {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-md) var(--spacing-lg);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--border-radius);
    text-align: center;
}

.hero-guarantee .guarantee-text {
    color: var(--text-primary);
    font-size: var(--font-size-base);
    margin: 0;
}

.hero-guarantee .guarantee-text strong {
    color: var(--success-color);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
    perspective: 1000px;
}

.ai-graphic {
    position: relative;
    width: 300px;
    height: 300px;
    transform-style: preserve-3d;
}

/* Enhanced AI Connections */
.ai-connections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.connections-svg {
    width: 100%;
    height: 100%;
}

.connection-line {
    stroke-dasharray: 0, 200;
    stroke-dashoffset: 0;
    animation: drawLine 3s ease-in-out infinite;
    filter: drop-shadow(0 0 3px rgba(37, 99, 235, 0.5));
}

.connection-line:nth-child(2) { animation-delay: 0.5s; }
.connection-line:nth-child(3) { animation-delay: 1s; }
.connection-line:nth-child(4) { animation-delay: 1.5s; }

@keyframes drawLine {
    0%, 20% { stroke-dasharray: 0, 200; }
    40%, 80% { stroke-dasharray: 200, 0; }
    100% { stroke-dasharray: 0, 200; }
}

/* Floating Geometric Shapes */
.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-shape {
    position: absolute;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 4px;
    opacity: 0.7;
    animation: float 6s ease-in-out infinite;
}

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

.shape-2 {
    width: 12px;
    height: 12px;
    top: 60%;
    right: 15%;
    animation-delay: 1s;
    border-radius: 50%;
}

.shape-3 {
    width: 6px;
    height: 6px;
    top: 80%;
    left: 20%;
    animation-delay: 2s;
    transform: rotate(45deg);
}

.shape-4 {
    width: 10px;
    height: 10px;
    top: 30%;
    right: 25%;
    animation-delay: 3s;
    border-radius: 2px;
}

.shape-5 {
    width: 14px;
    height: 14px;
    top: 70%;
    left: 70%;
    animation-delay: 4s;
    border-radius: 50%;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.7;
    }
    25% {
        transform: translateY(-20px) rotate(90deg);
        opacity: 1;
    }
    50% {
        transform: translateY(-10px) rotate(180deg);
        opacity: 0.8;
    }
    75% {
        transform: translateY(-30px) rotate(270deg);
        opacity: 0.9;
    }
}

.ai-nodes {
    position: relative;
    width: 100%;
    height: 100%;
}

.node {
    position: absolute;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    box-shadow: var(--shadow-medium), var(--glow-primary);
    animation: advancedPulse 3s infinite;
    transition: all var(--transition-smooth);
    cursor: pointer;
}

.node:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-large), var(--glow-accent);
    animation-play-state: paused;
}

.node::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    opacity: 0;
    z-index: -1;
    animation: nodeGlow 3s infinite;
}

@keyframes advancedPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
        box-shadow: var(--shadow-enterprise), var(--glow-primary);
    }
    25% {
        transform: scale(1.05);
        opacity: 0.9;
        box-shadow: var(--shadow-enterprise), var(--glow-accent);
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
        box-shadow: var(--shadow-enterprise), 0 0 30px rgba(30, 64, 175, 0.4);
    }
    75% {
        transform: scale(1.05);
        opacity: 0.9;
        box-shadow: var(--shadow-enterprise), var(--glow-primary);
    }
}

@keyframes nodeGlow {
    0%, 100% { opacity: 0; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(1.2); }
}

.node:nth-child(1) {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0s;
}

.node:nth-child(2) {
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    animation-delay: 0.5s;
}

.node:nth-child(3) {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 1s;
}

.node:nth-child(4) {
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    animation-delay: 1.5s;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Value Proposition Section */
.value-proposition {
    padding: var(--spacing-3xl) 0;
    background-color: var(--background-white);
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-2xl);
}

.value-item {
    text-align: center;
    padding: var(--spacing-2xl);
    border-radius: var(--border-radius-lg);
    background: linear-gradient(135deg, #ffffff 0%, #fdfdfe 100%);
    transition: all var(--transition-normal);
    border: 1px solid rgba(203, 213, 225, 0.6);
    box-shadow: var(--shadow-medium);
}

.value-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-enterprise), var(--glow-primary);
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--background-white) 0%, var(--enterprise-platinum) 100%);
}

.value-icon {
    margin-bottom: var(--spacing-lg);
}

.icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: var(--gradient-premium);
    color: white;
    border-radius: 50%;
    font-size: var(--font-size-2xl);
    font-weight: bold;
    margin: 0 auto;
    box-shadow: var(--shadow-medium), var(--glow-primary);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.value-item h3 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.client-logos {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.logo-text {
    padding: var(--spacing-xs) var(--spacing-md);
    background: linear-gradient(135deg, #ffffff 0%, #fdfdfe 100%);
    border: 1px solid rgba(203, 213, 225, 0.6);
    border-radius: var(--border-radius);
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-primary);
    opacity: 0.9;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-light);
}

.logo-text:hover {
    border-color: var(--secondary-color);
    background: var(--background-white);
    color: var(--text-primary);
}

.stat {
    margin-top: var(--spacing-lg);
}

.stat-number {
    display: block;
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: var(--font-size-sm);
    color: var(--text-primary);
    font-weight: 600;
}

/* Services Preview Section */
.services-preview {
    padding: var(--spacing-3xl) 0;
    background-color: var(--background-light);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.section-header h2 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.section-header p {
    font-size: var(--font-size-lg);
    color: var(--text-primary);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 500;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-2xl);
}

.service-card {
    background: linear-gradient(135deg, #ffffff 0%, #fdfdfe 100%);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-2xl);
    box-shadow: var(--shadow-medium);
    transition: all var(--transition-normal);
    position: relative;
    border: 1px solid rgba(203, 213, 225, 0.6);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-large);
    border-color: var(--secondary-color);
    background: linear-gradient(135deg, var(--background-white) 0%, var(--enterprise-platinum) 100%);
}

.service-card.featured {
    border-color: var(--primary-color);
    transform: scale(1.05);
    background: linear-gradient(135deg, var(--background-white) 0%, rgba(30, 64, 175, 0.02) 100%);
}

.service-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
    border-color: var(--primary-dark);
}

.service-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent-color) 0%, #b45309 100%);
    color: white;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--border-radius);
    font-size: var(--font-size-sm);
    font-weight: 600;
    box-shadow: 0 4px 8px rgba(220, 104, 3, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.service-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
}

.service-header h3 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.service-price {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

.service-duration {
    color: var(--text-primary);
    opacity: 0.9;
    font-weight: 600;
}

.service-description {
    font-size: var(--font-size-lg);
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
    text-align: center;
    font-weight: 500;
}

.service-features {
    list-style: none;
    margin-bottom: var(--spacing-xl);
}

.service-features li {
    padding: var(--spacing-xs) 0;
    color: var(--text-primary);
    position: relative;
    padding-left: var(--spacing-lg);
    font-weight: 500;
}

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

/* Social Proof Section */
.social-proof {
    padding: var(--spacing-3xl) 0;
    background-color: var(--background-white);
}

.testimonials {
    margin-bottom: var(--spacing-3xl);
    position: relative;
    min-height: 200px;
}

.testimonial {
    display: none;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.testimonial blockquote {
    font-size: var(--font-size-xl);
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
}

.testimonial-author strong {
    display: block;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.testimonial-author span {
    color: var(--text-primary);
    opacity: 0.9;
    font-size: var(--font-size-sm);
    font-weight: 500;
}

.client-showcase {
    display: flex;
    justify-content: center;
    gap: var(--spacing-2xl);
    flex-wrap: wrap;
}

.client-logo {
    padding: var(--spacing-md) var(--spacing-lg);
    background: linear-gradient(135deg, #ffffff 0%, #fdfdfe 100%);
    border-radius: var(--border-radius);
    font-weight: 600;
    color: var(--text-primary);
    opacity: 0.9;
    border: 1px solid rgba(203, 213, 225, 0.6);
    box-shadow: var(--shadow-light);
}

/* About Preview Section */
.about-preview {
    padding: var(--spacing-3xl) 0;
    background-color: var(--background-light);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
}

.about-text h2 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
}

.about-text p {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
    font-weight: 500;
}

.about-stats {
    display: grid;
    gap: var(--spacing-lg);
}

.stat-item {
    text-align: center;
    padding: var(--spacing-lg);
    background: linear-gradient(135deg, #ffffff 0%, #fdfdfe 100%);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-medium);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-smooth);
    border: 1px solid rgba(30, 64, 175, 0.15);
}

.stat-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-enterprise), var(--glow-primary);
    border-color: rgba(30, 64, 175, 0.2);
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.6s ease;
}

.stat-item:hover::before {
    transform: scaleX(1);
}

.stat-item .stat-number {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    font-variant-numeric: tabular-nums;
}

.stat-item .stat-label {
    font-size: var(--font-size-sm);
    color: var(--text-primary);
    opacity: 0.8;
    font-weight: 600;
}

/* Circular Progress Indicators */
.stat-progress {
    margin-top: var(--spacing-md);
    display: flex;
    justify-content: center;
}

.progress-circle {
    width: 60px;
    height: 60px;
}

.circular-chart {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    max-height: 100%;
}

.circle-bg {
    fill: none;
    stroke: var(--enterprise-silver);
    stroke-width: 2;
    opacity: 0.3;
}

.circle {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 3;
    stroke-linecap: round;
    animation: progress 2s ease-in-out forwards;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    filter: drop-shadow(0 0 3px rgba(30, 64, 175, 0.3));
}

@keyframes progress {
    0% {
        stroke-dasharray: 0 100;
    }
}

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

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: particleFloat 3s infinite ease-in-out;
}

@keyframes particleFloat {
    0%, 100% {
        opacity: 0;
        transform: translateY(20px) scale(0);
    }
    50% {
        opacity: 1;
        transform: translateY(-20px) scale(1);
    }
}

/* CTA Section - Enterprise Enhanced */
.cta-section {
    padding: var(--spacing-3xl) 0;
    background: var(--gradient-premium);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(220, 104, 3, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.cta-content h2 {
    color: white;
    margin-bottom: var(--spacing-lg);
}

.cta-content p {
    font-size: var(--font-size-lg);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .btn-primary {
    background: linear-gradient(135deg, white 0%, var(--enterprise-platinum) 100%);
    color: var(--enterprise-navy);
    border-color: white;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.cta-section .btn-primary:hover {
    background: linear-gradient(135deg, var(--enterprise-platinum) 0%, white 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

/* Footer - Enterprise Enhanced */
.footer {
    background: linear-gradient(180deg, var(--enterprise-navy) 0%, #0a0f1a 100%);
    color: white;
    padding: var(--spacing-3xl) 0 var(--spacing-lg);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
}

.footer-section h3,
.footer-section h4 {
    color: white;
    margin-bottom: var(--spacing-lg);
}

.footer-section p,
.footer-contact p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--spacing-xs);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-section ul li a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
}

.social-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.social-link:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }
/* Specializations Section */
.specializations {
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(135deg, var(--background-light) 0%, rgba(248, 250, 252, 0.8) 50%, var(--background-light) 100%);
    position: relative;
    overflow: hidden;
}

.specializations::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(37, 99, 235, 0.03) 50%, transparent 70%);
    animation: shimmer 8s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

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

.specialization-column {
    display: flex;
    flex-direction: column;
}

.column-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 2px solid var(--primary-color);
    position: relative;
}

.column-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: all 0.6s ease;
    transform: translateX(-50%);
    box-shadow: 0 0 8px rgba(30, 64, 175, 0.4);
}

.specialization-column:hover .column-header::after {
    width: 100%;
}

.column-header h3 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-xl);
}

.column-subtitle {
    color: var(--text-primary);
    opacity: 0.75;
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin: 0;
}

.specialization-cards {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    flex: 1;
}

.specialization-card {
    background: linear-gradient(135deg, #ffffff 0%, #fdfdfe 100%);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-medium);
    border: 1px solid rgba(30, 64, 175, 0.15);
    transition: all var(--transition-specialization);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transform-origin: center;
}

.specialization-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.1), transparent);
    transition: left 0.6s ease;
}

.specialization-card:hover::before {
    left: 100%;
}

.specialization-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-enterprise), var(--glow-primary);
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--background-white) 0%, var(--enterprise-platinum) 100%);
}

/* Wave-like staggered animation */
.specialization-column:nth-child(1) .specialization-card {
    animation-delay: 0s;
}

.specialization-column:nth-child(2) .specialization-card {
    animation-delay: 0.2s;
}

.specialization-column:nth-child(3) .specialization-card {
    animation-delay: 0.4s;
}

.specialization-card:nth-child(1) {
    animation-delay: inherit;
}

.specialization-card:nth-child(2) {
    animation-delay: calc(var(--base-delay, 0s) + 0.1s);
}

.specialization-card:nth-child(3) {
    animation-delay: calc(var(--base-delay, 0s) + 0.2s);
}

.specialization-card:nth-child(4) {
    animation-delay: calc(var(--base-delay, 0s) + 0.3s);
}

/* 3D Perspective Transform */
.specialization-card:hover {
    transform: translateY(-8px) scale(1.02) perspective(1000px) rotateX(5deg);
}

.specialization-card h4 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-lg);
    font-weight: 600;
}

.card-description {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-specialization);
}

.specialization-card:hover .card-description {
    max-height: 200px;
}

.specialization-card.expanded .card-description {
    max-height: 200px;
}

/* Subtle arrow indicator for AI Strategy card */
.ai-strategy-card {
    position: relative;
}

.ai-strategy-card::after {
    content: '↓';
    position: absolute;
    top: var(--spacing-lg);
    right: var(--spacing-lg);
    font-size: 16px;
    color: var(--primary-color);
    opacity: 0.7;
    transition: all var(--transition-normal);
    transform: translateY(0);
    animation: subtle-bounce 2s ease-in-out infinite;
    z-index: 10;
    font-weight: bold;
}

.ai-strategy-card:hover::after {
    opacity: 1;
    transform: translateY(3px) scale(1.1);
    animation: none;
    color: var(--primary-dark);
}

.ai-strategy-card:hover .card-description {
    max-height: 200px;
    opacity: 1;
    padding-top: var(--spacing-md);
}

@keyframes subtle-bounce {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    50% {
        transform: translateY(3px);
        opacity: 0.9;
    }
}

/* Dark mode support for AI Strategy card arrow */
[data-theme="dark"] .ai-strategy-card::after {
    color: var(--accent-color);
}

.card-description p {
    color: var(--text-primary);
    opacity: 0.99;
    font-size: var(--font-size-sm);
    line-height: 1.6;
    margin: 0;
    padding-top: var(--spacing-sm);
    font-weight: 500;
}

/* Touch device styles */
@media (hover: none) and (pointer: coarse) {
    .specialization-card {
        cursor: default;
    }
    
    .specialization-card:hover .card-description {
        max-height: 0;
    }
    
    .specialization-card.expanded .card-description {
        max-height: 200px;
    }
}

/* Enhanced Button Animations - Magnetic Hover Effects */
.btn {
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.btn::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;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    transition: all var(--transition-smooth);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-large), var(--glow-primary);
}

.btn-secondary:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-medium);
}

/* Magnetic effect for interactive elements */
.magnetic {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Smooth Momentum Scrolling Enhancement */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
    
    body {
        scroll-behavior: smooth;
    }
}

/* Section Transition Effects */
.section-transition {
    position: relative;
    overflow: hidden;
}

.section-transition::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(30, 64, 175, 0.05) 0%, transparent 70%);
    animation: sectionGlow 10s infinite ease-in-out;
    pointer-events: none;
}

@keyframes sectionGlow {
    0%, 100% {
        opacity: 0;
        transform: scale(0.8) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.2) rotate(180deg);
    }
}

/* Advanced Scroll Indicators */
.scroll-indicator {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.scroll-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.scroll-dot.active {
    background: var(--primary-color);
    transform: scale(1.5);
}

.scroll-dot:hover {
    background: var(--accent-color);
    transform: scale(1.3);
}

/* Accessibility - Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .floating-shape,
    .node,
    .connection-line,
    .particle {
        animation: none !important;
    }
}

/* Performance Optimizations */
.gpu-accelerated {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Enhanced CTA Section with Morphing Background */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
}

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

/* Spotlight Effect for Service Cards */
.service-card {
    position: relative;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(30, 64, 175, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

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

/* Enhanced Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Contact Sales Button - Purple Style to match "Explore Our Packages" */
.btn-contact-sales {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white !important;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
    cursor: pointer;
    white-space: nowrap;
}

.btn-contact-sales:hover {
    background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    color: white !important;
}

.btn-contact-sales:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.3);
}

/* Dark mode support for contact sales button */
[data-theme="dark"] .btn-contact-sales {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

[data-theme="dark"] .btn-contact-sales:hover {
    background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 100%);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.5);
}
