/* AutoGen Digital - Ultra-Premium Enterprise Design System */

/* Design System Variables */
:root {
    /* Premium Color Palette */
    --primary-950: #0c1222;
    --primary-900: #1e2749;
    --primary-800: #1e3a8a;
    --primary-700: #1d4ed8;
    --primary-600: #2563eb;
    --primary-500: #3b82f6;
    --primary-400: #60a5fa;
    --primary-300: #93c5fd;
    --primary-200: #c7d2fe;
    --primary-100: #e0e7ff;
    --primary-50: #f0f4ff;
    
    /* Sophisticated Neutrals */
    --neutral-950: #0a0a0a;
    --neutral-900: #171717;
    --neutral-800: #262626;
    --neutral-700: #404040;
    --neutral-600: #525252;
    --neutral-500: #737373;
    --neutral-400: #a3a3a3;
    --neutral-300: #d4d4d4;
    --neutral-200: #e5e5e5;
    --neutral-100: #f5f5f5;
    --neutral-50: #fafafa;
    
    /* Premium Accent Colors */
    --accent-emerald: #10b981;
    --accent-emerald-light: #34d399;
    --accent-amber: #f59e0b;
    --accent-amber-light: #fbbf24;
    --accent-rose: #f43f5e;
    --accent-rose-light: #fb7185;
    
    /* Sophisticated Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-800) 0%, var(--primary-600) 50%, var(--primary-500) 100%);
    --gradient-neutral: linear-gradient(135deg, var(--neutral-900) 0%, var(--neutral-800) 50%, var(--neutral-700) 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 100%);
    --gradient-surface: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.92) 100%);
    
    /* Premium Shadows */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-premium: 0 32px 64px -12px rgba(0, 0, 0, 0.4);
    
    /* Sophisticated Spacing (8pt Grid System) */
    --space-1: 0.125rem;  /* 2px */
    --space-2: 0.25rem;   /* 4px */
    --space-3: 0.375rem;  /* 6px */
    --space-4: 0.5rem;    /* 8px */
    --space-5: 0.625rem;  /* 10px */
    --space-6: 0.75rem;   /* 12px */
    --space-8: 1rem;      /* 16px */
    --space-10: 1.25rem;  /* 20px */
    --space-12: 1.5rem;   /* 24px */
    --space-16: 2rem;     /* 32px */
    --space-20: 2.5rem;   /* 40px */
    --space-24: 3rem;     /* 48px */
    --space-32: 4rem;     /* 64px */
    --space-40: 5rem;     /* 80px */
    --space-48: 6rem;     /* 96px */
    --space-64: 8rem;     /* 128px */
    
    /* Golden Ratio Typography Scale */
    --text-xs: 0.75rem;      /* 12px */
    --text-sm: 0.875rem;     /* 14px */
    --text-base: 1rem;       /* 16px */
    --text-lg: 1.125rem;     /* 18px */
    --text-xl: 1.25rem;      /* 20px */
    --text-2xl: 1.5rem;      /* 24px */
    --text-3xl: 1.875rem;    /* 30px */
    --text-4xl: 2.25rem;     /* 36px */
    --text-5xl: 3rem;        /* 48px */
    --text-6xl: 3.75rem;     /* 60px */
    --text-7xl: 4.5rem;      /* 72px */
    --text-8xl: 6rem;        /* 96px */
    
    /* Premium Border Radius */
    --radius-sm: 0.125rem;
    --radius: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Animation Timing */
    --duration-75: 75ms;
    --duration-100: 100ms;
    --duration-150: 150ms;
    --duration-200: 200ms;
    --duration-300: 300ms;
    --duration-500: 500ms;
    --duration-700: 700ms;
    --duration-1000: 1000ms;
    
    /* Premium Easing Functions */
    --ease-premium: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-elegant: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Global text visibility safeguard */
body {
    color: #3D3D3D;
}

/* Ensure all text elements are visible by default */
p, span, div, li, label, .form-label, .package-features li, .text-default {
    color: #3D3D3D;
}

a {
    color: inherit;
}

/* Accessibility improvements - ensure minimum contrast ratios */
/* Links should be clearly visible */
a {
    color: var(--primary-700);
    text-decoration: underline;
}

a:hover, a:focus {
    color: var(--primary-800);
    text-decoration: underline;
}

/* Form elements should have visible text */
input, textarea, select {
    color: var(--neutral-900);
    background: white;
}

input::placeholder, textarea::placeholder {
    color: #3D3D3D;
}

/* Ensure focus states are visible */
input:focus, textarea:focus, select:focus, button:focus, a:focus {
    outline: 2px solid var(--primary-600);
    outline-offset: 2px;
}

/* Global horizontal scroll prevention */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

img, video, iframe, object, embed {
    max-width: 100%;
    height: auto;
}

pre, code {
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, 'SF Pro Display', system-ui, sans-serif;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
    line-height: 1.6;
    color: #3D3D3D; /* Ensure strong text visibility */
    background: linear-gradient(180deg, #f0f8ff 0%, #e6f3ff 50%, #dbeafe 100%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    scroll-behavior: smooth;
}

/* Premium Container System */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--space-6);
    width: 100%;
    box-sizing: border-box;
}

.container-narrow {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 var(--space-6);
    width: 100%;
}

.container-wide {
    max-width: 1680px;
    margin: 0 auto;
    padding: 0 var(--space-8);
    width: 100%;
}

.container-fluid {
    width: 100%;
    padding: 0 var(--space-6);
    box-sizing: border-box;
}

@media (min-width: 640px) {
    .container {
        padding: 0 var(--space-8);
    }
    .container-wide {
        padding: 0 var(--space-12);
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 var(--space-12);
    }
    .container-wide {
        padding: 0 var(--space-16);
    }
}

/* Premium Typography System */

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

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-6);
    letter-spacing: -0.025em;
    color: #000000 !important; /* Maximum contrast black for all headers */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    text-rendering: optimizeLegibility;
}

h1 { 
    font-size: var(--text-6xl); 
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.04em;
}

h2 { 
    font-size: var(--text-5xl); 
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
}

h3 { 
    font-size: var(--text-4xl); 
    font-weight: 600;
    letter-spacing: -0.02em;
}

h4 { 
    font-size: var(--text-3xl); 
    font-weight: 600;
}

h5 { 
    font-size: var(--text-2xl); 
    font-weight: 600;
}

h6 { 
    font-size: var(--text-xl); 
    font-weight: 500;
}

p {
    margin-bottom: var(--space-6);
    color: #3D3D3D;
    font-size: var(--text-lg);
    line-height: 1.7;
    font-weight: 400;
}

/* Text Variants */
.text-hero {
    font-size: clamp(var(--text-5xl), 8vw, var(--text-8xl));
    font-weight: 900;
    line-height: 0.85;
    letter-spacing: -0.05em;
    color: var(--neutral-50);
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.text-display {
    font-size: var(--text-6xl);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.04em;
    color: var(--neutral-900);
}

.text-headline {
    font-size: var(--text-4xl);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--neutral-900);
}

.text-subheading {
    font-size: var(--text-2xl);
    font-weight: 600;
    color: #3D3D3D;
}

.text-lead {
    font-size: var(--text-xl);
    font-weight: 400;
    line-height: 1.8;
    color: #3D3D3D;
}

.text-body {
    font-size: var(--text-base);
    line-height: 1.7;
    color: #3D3D3D;
}

.text-caption {
    font-size: var(--text-sm);
    font-weight: 500;
    color: #3D3D3D;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.text-code {
    font-family: 'JetBrains Mono', 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: var(--text-sm);
    font-weight: 500;
    background: var(--neutral-100);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    color: #3D3D3D;
}

/* Premium Text Effects */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-shimmer {
    background: linear-gradient(90deg, var(--neutral-400) 25%, var(--neutral-200) 50%, var(--neutral-400) 75%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


/* Header & Navigation */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
}

.header.header-hidden {
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.3rem 20px;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: nowrap;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e3a8a;
    text-decoration: none;
}

.nav-logo-img {
    height: 60px;
    width: auto;
    max-width: 300px;
}

.nav-logo-text {
    font-size: 1.2rem !important;
    font-weight: 700;
    color: #5EC3E6;
    text-decoration: none;
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #fff;
    padding: 5rem 2rem 2rem;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
}

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

.nav-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    font-size: 1.125rem;
}

.nav-link:hover, .nav-link.active {
    color: #1e3a8a;
}

.cta-nav {
    background: #1e3a8a;
    color: white !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 8px;
    border: none !important;
    margin-top: 1rem;
    text-align: center;
}

/* Mobile Menu Toggle */
.nav-toggle {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
    background: transparent;
    border: none;
    position: relative;
}

.nav-toggle:hover {
    background: rgba(30, 58, 138, 0.1);
    border-radius: 4px;
}

.nav-toggle .bar {
    width: 25px;
    height: 3px;
    background: #1e3a8a;
    margin: 3px 0;
    border-radius: 2px;
    display: block;
}

.nav-toggle.active .bar:nth-child(1) {
}

.nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .bar:nth-child(3) {
}

/* Premium Buttons with Advanced Effects */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none !important; /* Remove underlines from button links */
    font-weight: 600;
    text-align: center;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    color: var(--neutral-900); /* Ensure button text is visible */
    position: relative;
    overflow: hidden;
    background-clip: padding-box;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    z-index: 1;
}

.btn:hover::before {
}

.btn-primary {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #1e40af 100%);
    background-size: 200% 200%;
    color: white;
    border-color: #1e3a8a;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
}

.btn-primary:hover {
    background-position: 100% 0;
    box-shadow: 0 8px 30px rgba(30, 58, 138, 0.4), 0 0 20px rgba(59, 130, 246, 0.3);
    border-color: #3b82f6;
}

.btn-primary:active {
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.95);
    color: #1e3a8a;
    border: 2px solid #1e3a8a;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.btn-secondary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    z-index: -1;
}

.btn-secondary:hover {
    color: white;
    border-color: #3b82f6;
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.3);
}

.btn-secondary:hover::after {
    width: 100%;
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.125rem;
    border-radius: 16px;
}

.btn-touched {
}

/* Premium button variants */
.btn-gradient {
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
    background-size: 400% 400%;
    color: white;
    border: none;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
}

.btn-gradient:hover {
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.6);
}

.btn-glow {
}

.btn-pulse:hover {
}

/* Premium Hero Section with Advanced Effects */
.hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 30%, #60a5fa 60%, #1e40af 100%);
    background-size: 400% 400%;
    color: white;
    padding: 4rem 0 2rem;
    margin-top: 70px;
    min-height: auto;
    display: block;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    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="20" cy="20" r="2" fill="rgba(255,255,255,0.15)" opacity="0.8"><animate attributeName="opacity" values="0.8;1;0.8" dur="3s" repeatCount="indefinite"/></circle><circle cx="80" cy="40" r="1" fill="rgba(59,130,246,0.2)"><animate attributeName="r" values="1;1.5;1" dur="4s" repeatCount="indefinite"/></circle><circle cx="40" cy="80" r="1.5" fill="rgba(255,255,255,0.1)"><animate attributeName="cy" values="80;75;80" dur="5s" repeatCount="indefinite"/></circle><circle cx="90" cy="90" r="1" fill="rgba(147,197,253,0.3)"><animate attributeName="opacity" values="0.3;0.7;0.3" dur="2s" repeatCount="indefinite"/></circle><circle cx="10" cy="60" r="1" fill="rgba(255,255,255,0.08)"><animate attributeName="cx" values="10;15;10" dur="6s" repeatCount="indefinite"/></circle></svg>') repeat;
    opacity: 0.6;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(59, 130, 246, 0.3) 0%, transparent 50%), 
                radial-gradient(circle at 70% 30%, rgba(147, 197, 253, 0.2) 0%, transparent 50%);
}


.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 3;
    opacity: 1;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 300 !important;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5), 0 0 40px rgba(59, 130, 246, 0.3);
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #93c5fd 0%, #60a5fa 50%, #bfdbfe 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    opacity: 1;
}

.hero-title br {
    display: block;
}

.hero-title .highlight {
    background: none;
    -webkit-text-fill-color: #5EC3E6;
    color: #5EC3E6;
    text-shadow: 0 2px 4px rgba(255,255,255,0.8);
    font-weight: 700;
    padding: 0;
    border: none;
    box-shadow: none;
    border-radius: 0;
    margin: 0;
}

/* Hero highlight text - specific to hero sections */
.hero-highlight {
    color: #3D3D3D;
    display: block;
    margin-top: 0.5rem;
    text-shadow: 0 2px 4px rgba(255,255,255,0.8);
    font-weight: 600;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 1;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    color: #ffffff;
    backdrop-filter: blur(1px);
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: center;
    opacity: 1;
}

.hero-cta .btn {
    opacity: 1;
}

.hero-cta .btn:first-child {
    animation-delay: 1.6s;
}

.hero-cta .btn:last-child {
    animation-delay: 1.8s;
}

.hero-image {
    margin-top: 2rem;
}

.hero-placeholder,
.credibility-placeholder,
.about-photo-placeholder {
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(248,250,252,0.98) 100%);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    text-align: center;
    color: #1e293b;
    font-size: 1.2rem;
    font-weight: 700;
    backdrop-filter: blur(20px);
    margin-top: 2rem;
    box-shadow: 
        0 20px 60px rgba(0,0,0,0.08),
        0 8px 25px rgba(0,0,0,0.05),
        inset 0 1px 0 rgba(255,255,255,0.6);
    line-height: 1.8;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.hero-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s;
}

.hero-placeholder:hover::before {
    left: 100%;
}

.hero-placeholder:hover {
    box-shadow: 
        0 25px 80px rgba(0,0,0,0.12),
        0 12px 35px rgba(0,0,0,0.08),
        inset 0 1px 0 rgba(255,255,255,0.8);
    background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(248,250,252,1) 100%);
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.5);
}

.hero-placeholder {
    max-width: 400px;
    margin: 2rem auto 0;
}

.feature-item {
    display: block;
    margin: 0.8rem 0;
    padding: 0.5rem 0;
    font-weight: 700;
    color: #1e293b;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.feature-item:last-child {
    border-bottom: none;
}

/* Desktop Navigation */
@media (min-width: 1024px) {
    .nav-menu {
        position: static;
        display: flex;
        flex-direction: row;
        background: none;
        padding: 0;
        height: auto;
        width: auto;
        opacity: 1;
        visibility: visible;
        gap: 2rem;
        align-items: center;
    }
    
    .nav-link {
        padding: 0.5rem 0;
        border-bottom: none;
        font-size: 1rem;
        white-space: nowrap;
    }
    
    .nav-toggle {
        display: none;
    }
    
    .nav-container {
        padding: 0.5rem 20px;
    }
    
    /* Dropdown Navigation Styles */
    .nav-dropdown {
        position: relative;
        display: inline-block;
    }
    
    .dropdown-toggle {
        cursor: pointer;
    }
    
    .dropdown-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background: #ffffff;
        box-shadow: var(--shadow-lg);
        border-radius: var(--radius-md);
        border: 1px solid var(--neutral-200);
        min-width: 200px;
        z-index: 1000;
        overflow: hidden;
    }
    
    .dropdown-item {
        display: block;
        padding: 0.75rem 1rem;
        color: #333 !important;
        text-decoration: none;
        transition: all var(--duration-150) ease;
        border-bottom: 1px solid var(--neutral-100);
        font-size: var(--text-sm);
        white-space: nowrap;
    }
    
    .dropdown-item:last-child {
        border-bottom: none;
    }
    
    .dropdown-item:hover {
        background: var(--primary-50);
        color: var(--primary-700);
    }
}

/* Mobile Dropdown Styles */
@media (max-width: 1023px) {
    .nav-dropdown {
        width: 100%;
    }
    
    .dropdown-toggle {
        display: block;
        width: 100%;
        text-align: left;
        padding: 1rem 0;
        border-bottom: 1px solid #eee;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: white;
        width: 100%;
        margin-left: 1rem;
    }
    
    .dropdown-item {
        padding: 0.5rem 1rem;
        font-size: 1rem;
        border-bottom: 1px solid var(--neutral-200);
        color: #333 !important;
    }
    
    .dropdown-item:hover {
        color: #1e3a8a !important;
        background: rgba(30, 58, 138, 0.1);
    }
}

/* Section Spacing */
section {
    padding: 4rem 0;
}

/* Ensure all white background elements have visible text */
.problem-item, .proof-post, .package-card, .service-hero, .setup-item,
.case-study, .faq-item, .personal-story, .area-map, .comparison-item,
.consultation-form, .testimonial, .cta-option, .comparison-column,
.customer-type, .support-box, .rec-item, .time-category, .algo-category,
.premium-changes, .premium-requirements, .advantage-text, .automation-solution,
.warning-item {
    color: var(--neutral-900);
}

.problem-item h3, .proof-post h3, .package-card h3, .service-hero h3, .setup-item h3,
.case-study h3, .faq-item h3, .personal-story h3, .area-map h3, .comparison-item h3,
.consultation-form h3, .testimonial h3, .cta-option h3, .comparison-column h3,
.customer-type h3, .support-box h3, .rec-item h3, .time-category h3, .algo-category h3,
.premium-changes h3, .premium-requirements h3, .advantage-text h3, .automation-solution h3,
.warning-item h3 {
    color: #000000 !important; /* Maximum contrast black for all content headers */
    font-weight: 800 !important;
}

section h2, .problem h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.25rem;
    color: #ffffff !important; /* White text for section headers */
    font-weight: 800 !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5) !important;
}

/* Problem Section */
.problem {
    background: #f9fafb;
}

.problem-grid {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.problem-item {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.05);
    text-align: center;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.problem-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(30, 58, 138, 0.05), transparent);
}

.problem-item:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(30, 58, 138, 0.1);
}

.problem-item:hover::before {
    left: 100%;
}

.problem-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.problem-item h3 {
    color: #000000 !important; /* Override with maximum contrast black - CRITICAL FIX */
    margin-bottom: 1rem;
    font-weight: 800 !important;
}

/* Solution section - ensure it has basic styling */
.solution {
    padding: 4rem 0;
    background: white;
}

/* Credibility section - ensure it has basic styling */
.credibility {
    padding: 4rem 0;
    background: white;
}

/* Solution Section */
.solution-content {
    display: grid;
    gap: 3rem;
    align-items: center;
}

.solution-list {
    list-style: none;
    margin: 2rem 0;
}

.solution-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.solution-steps {
    display: grid;
    gap: 1.5rem;
}

.step {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #f3f4f6;
    padding: 1.5rem;
    border-radius: 12px;
}

.step-number {
    background: #1e3a8a;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

/* Proof Section */
.proof {
    background: #f9fafb;
}

.proof-content {
    max-width: 900px;
    margin: 0 auto;
}

.proof-post {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.post-content {
    font-size: 1.125rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    color: #3D3D3D;
}

.post-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    font-size: 0.875rem;
    color: #3D3D3D;
}

.proof-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.metric {
    text-align: center;
    background: white;
    padding: 2rem 1rem;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.metric::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(30, 58, 138, 0.05) 0%, transparent 70%);
    opacity: 0;
}

.metric:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.12), 0 0 20px rgba(30, 58, 138, 0.1);
}

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

.metric-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e3a8a;
    display: block;
}

.metric-label {
    color: #3D3D3D;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Credibility Section */
.credibility-content {
    display: grid;
    gap: 3rem;
    align-items: center;
}

.credibility-points {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

.cred-point {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f3f4f6;
    border-radius: 8px;
}

.cred-point strong {
    color: #1e3a8a;
    white-space: nowrap;
}

/* Packages Section */
.packages {
    background: #f9fafb;
}

.packages-grid {
    display: grid;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.package-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1), 0 0 0 1px rgba(0,0,0,0.05);
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(10px);
}

.package-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1e3a8a, #3b82f6, #60a5fa);
    transform-origin: left;
}

.package-card:hover {
    box-shadow: 0 25px 50px rgba(0,0,0,0.15), 0 0 0 1px rgba(30, 58, 138, 0.1);
}

.package-card:hover::after {
    opacity: 0.8;
}

.package-header {
    background: #1e3a8a;
    color: white;
    padding: 2rem;
    text-align: center;
}

.package-header h3 {
    background: linear-gradient(135deg, #93c5fd 0%, #60a5fa 50%, #bfdbfe 100%) !important;
    background-clip: text !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    font-weight: 800 !important;
    text-shadow: none;
}

.package-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
}

.package-price span {
    font-size: 1rem;
    opacity: 0.8;
    color: #ffffff;
}

.package-price .setup {
    font-size: 1rem;
    opacity: 0.8;
    margin-left: 0.5rem;
    color: #ffffff;
}

.package-content {
    padding: 2rem;
}

.package-features {
    list-style: none;
    margin: 1.5rem 0;
}

.package-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
    padding-left: 1.5rem;
    color: #3D3D3D; 
}

.package-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: 700;
}

/* Service Pages */
.service-hero {
    background: white;
    color: #3D3D3D;
    padding: 8rem 0 4rem;
    margin-top: 70px;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
}

.service-pricing {
    margin: 2rem 0;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    display: block;
    color: #1e3a8a;
}

.price small {
    font-size: 1.25rem;
    color: #3D3D3D;
}

.price-note {
    color: #3D3D3D;
    margin-top: 1rem;
}

/* Included Items */
.included-grid,
.setup-grid {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.included-item,
.setup-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    text-align: center;
}

.included-icon,
.setup-icon,
.highlight-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

/* Process Steps */
.process-steps,
.process-timeline {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.process-step {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.step-number {
    background: #1e3a8a;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-time {
    display: block;
    color: #3D3D3D;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Results & Case Studies */
.case-study {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.case-study-content {
    display: grid;
    gap: 2rem;
}

.case-study-post {
    background: #f9fafb;
    padding: 2rem;
    border-radius: 12px;
}

.post-header {
    color: #1e3a8a;
    font-weight: 600;
    margin-bottom: 1rem;
}

.post-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.metric {
    text-align: center;
    background: white;
    padding: 1rem;
    border-radius: 8px;
}

.metric-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
    display: block;
}

.metric-label {
    color: #3D3D3D;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #2563eb;
    display: block;
}

.stat-label {
    color: #3D3D3D;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* FAQ */
.faq-grid {
    display: grid;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.faq-item h3 {
    color: #000000 !important; /* Maximum contrast black - override blue */
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-weight: 800 !important;
}

/* About Page */
.about-hero {
    padding: 8rem 0 4rem;
    margin-top: 70px;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    color: var(--neutral-900); /* Ensure text is visible on white background */
}

.about-hero h1,
.about-hero h2,
.about-hero h3,
.about-hero p {
    color: #000000 !important; /* Maximum contrast black for about page headers */
}

.about-hero h1,
.about-hero h2,
.about-hero h3 {
    font-weight: 800 !important;
}

.guide-hero {
    background: white;
    color: var(--neutral-900);
    padding: 8rem 0 4rem;
    margin-top: 70px;
    border-bottom: 1px solid #e5e7eb;
}

.guide-hero h1,
.guide-hero h2,
.guide-hero h3,
.guide-hero p {
    color: #000000 !important; /* Maximum contrast black for guide page headers */
}

.guide-hero h1,
.guide-hero h2,
.guide-hero h3 {
    font-weight: 800 !important;
}

.guide-hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.guide-hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.guide-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    width: 100%;
}

.about-content {
    display: grid;
    gap: 3rem;
    align-items: center;
}

.personal-story {
    background: white;
}

.story-content {
    display: grid;
    gap: 3rem;
}

.story-highlights {
    display: grid;
    gap: 1.5rem;
}

/* Story highlights - section cards with proper text visibility */
.highlight {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    color: var(--neutral-900); /* Ensure dark text for visibility */
}

.highlight h3 {
    color: #000000 !important; /* Maximum contrast black for highlight headers */
    margin-bottom: 0.5rem;
    font-weight: 800 !important;
}

.highlight p {
    color: #3D3D3D !important;
}

/* Local Focus */
.local-focus {
    background: #f9fafb;
}

.local-content {
    display: grid;
    gap: 3rem;
}

.local-benefits ul {
    list-style: none;
    margin: 1rem 0;
}

.local-benefits li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.local-benefits li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: 700;
}

.area-map {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.map-placeholder {
    text-align: center;
    padding: 2rem;
    background: #f3f4f6;
    border-radius: 8px;
}

.map-placeholder ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-top: 1rem;
}

/* Comparison */
.comparison-grid {
    display: grid;
    gap: 2rem;
}

.comparison-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.vs-content {
    display: grid;
    gap: 1.5rem;
    margin-top: 1rem;
}

.vs-them,
.vs-me {
    padding: 1rem;
    border-radius: 8px;
}

.vs-them {
    background: #fef2f2;
}

.vs-me {
    background: #f0f9ff;
}

.vs-them ul,
.vs-me ul {
    list-style: none;
    margin: 0.5rem 0;
}

.vs-them li,
.vs-me li {
    padding: 0.25rem 0;
}

/* Contact Form */
.contact {
    background: #f9fafb;
}

.contact-content {
    display: grid;
    gap: 3rem;
}

.contact-method {
    margin: 1rem 0;
    padding: 1rem;
    background: white;
    border-radius: 8px;
}

.contact-method strong {
    color: #1e3a8a;
    display: block;
    margin-bottom: 0.5rem;
}

.contact-method span {
    font-weight: 600;
    color: #3D3D3D;
}

.consultation-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #3D3D3D;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid rgba(229, 231, 235, 0.8);
    border-radius: 12px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    color: #1f2937;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1), 0 4px 12px rgba(0,0,0,0.08);
    background: rgba(255, 255, 255, 1);
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group select:focus + label {
    color: #3b82f6;
}

.form-note {
    font-size: 0.875rem;
    color: #3D3D3D;
    margin-top: 1rem;
    font-style: italic;
}

.form-message {
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    font-weight: 600;
}

.form-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.form-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

/* Testimonials */
.testimonials {
    background: #f9fafb;
}

.testimonials-grid {
    display: grid;
    gap: 2rem;
}

.testimonial {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
    backdrop-filter: blur(10px);
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: rgba(30, 58, 138, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.12), 0 0 20px rgba(30, 58, 138, 0.08);
    border-color: rgba(30, 58, 138, 0.2);
}

.testimonial-content p {
    font-style: italic;
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: #3D3D3D;
}

.testimonial-author strong {
    color: #1e3a8a;
    display: block;
}

.testimonial-author span {
    color: #3D3D3D;
    font-size: 0.875rem;
}

/* CTA Sections */
.final-cta,
.service-cta {
    background: #f9fafb;
    color: #3D3D3D;
    text-align: center;
    border: 1px solid #e5e7eb;
}

.cta-buttons,
.cta-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.cta-option {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.coverage-area,
.guarantee {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f3f4f6;
    border-radius: 8px;
    font-size: 0.875rem;
    border: 1px solid #d1d5db;
    color: #3D3D3D;
}

/* Cost Comparison */
.cost-comparison {
    background: #f9fafb;
}

.comparison-table {
    display: grid;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.comparison-column {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.comparison-cost {
    margin: 1.5rem 0;
}

.cost-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.cost-total {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-top: 2px solid #1e3a8a;
    margin-top: 1rem;
    font-weight: 700;
    color: #1e3a8a;
}

.cost-note {
    font-size: 0.875rem;
    color: #3D3D3D;
    margin: 0.5rem 0;
    font-style: italic;
}

.comparison-summary {
    text-align: center;
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f3f4f6;
    border-radius: 8px;
}

/* Customer Comparison */
.customer-comparison {
    display: grid;
    gap: 2rem;
    margin: 2rem 0;
}

.customer-type {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.customer-type ul {
    list-style: none;
    margin: 1rem 0;
}

.customer-type li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.customer-type li:before {
    position: absolute;
    left: 0;
    font-weight: 700;
}

.customer-type:first-child li:before {
    content: "✓";
    color: #10b981;
}

.customer-type:last-child li:before {
    content: "✗";
    color: #ef4444;
}

.recommendation {
    text-align: center;
    margin-top: 2rem;
    padding: 2rem;
    background: #f3f4f6;
    border-radius: 12px;
}

/* Support Details */
.support-content {
    display: grid;
    gap: 3rem;
}

.support-examples ul {
    list-style: none;
    margin: 1rem 0;
}

.support-examples li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.support-examples li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #2563eb;
    font-weight: 700;
}

.support-box {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.support-feature {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.support-feature:last-child {
    border-bottom: none;
}

/* Footer */
.footer {
    background: #1f2937;
    color: white !important;
    padding: 3rem 0 1rem;
}

.footer * {
    color: white !important;
}

.footer-content {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: #f9fafb;
    margin-bottom: 1rem;
}

.footer-section a {
    color: #d1d5db;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
}

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

/* Social Media Links */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    transition: all var(--duration-200) ease;
}

.social-link:hover {
    color: #60a5fa !important;
    transform: translateX(4px);
}

.social-icon {
    font-size: 1.2rem;
    width: 24px;
    height: 24px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}


.social-name {
    font-size: 0.9rem;
}

@media (min-width: 768px) {
    .social-links {
        flex-direction: row;
        gap: 1rem;
    }
    
    .social-link {
        flex-direction: column;
        text-align: center;
        padding: 0.5rem;
        border-radius: var(--radius);
    }
    
    .social-link:hover {
        background: rgba(96, 165, 250, 0.1);
        transform: translateY(-2px);
    }
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
    color: #9ca3af;
}

/* Premium Animations & Micro-Interactions */

/* Smooth transitions for all interactive elements */
* {
    transition: all 0.3s ease;
}

/* Advanced keyframe animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

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











/* Animation classes */
.animate-in {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.animate-left {
    animation: slideInLeft 0.8s ease-out forwards;
}

.animate-right {
    animation: slideInRight 0.8s ease-out forwards;
}

.animate-scale {
    animation: scaleIn 0.6s ease-out forwards;
}

.animate-slide-up {
    animation: slideUp 0.6s ease-out forwards;
}

.animate-delay-1 {
    animation-delay: 0.1s;
}

.animate-delay-2 {
    animation-delay: 0.2s;
}

.animate-delay-3 {
    animation-delay: 0.3s;
}

.animate-delay-4 {
    animation-delay: 0.4s;
}

/* Premium Loading States */
.loading {
    position: relative;
    overflow: hidden;
    pointer-events: none;
}

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

.btn.loading {
    /* color: transparent !important; */ /* Commented out - keeping for loading state with spinner only */
    position: relative;
}

.btn.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    color: rgba(255,255,255,0.8);
}


.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    border-radius: 8px;
}

/* Page transition effects */
.page-transition-enter {
    opacity: 0;
}

.page-transition-enter-active {
    opacity: 1;
}

.page-transition-exit {
    opacity: 1;
}

.page-transition-exit-active {
    opacity: 0;
}

/* Premium Particle Effects & Animated Backgrounds */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.6);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
    will-change: transform, opacity;
    pointer-events: none;
}

/* Enhanced particle colors */
.particle:nth-child(even) {
    background: rgba(147, 197, 253, 0.7);
    box-shadow: 0 0 15px rgba(147, 197, 253, 0.4);
}

.particle:nth-child(3n) {
    background: rgba(199, 210, 254, 0.8);
    box-shadow: 0 0 25px rgba(199, 210, 254, 0.3);
}

.particle:nth-child(4n) {
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

.particle:nth-child(5n) {
    background: rgba(96, 165, 250, 0.6);
    box-shadow: 0 0 18px rgba(96, 165, 250, 0.4);
}

/* Animated geometric shapes */
.geometric-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.geometric-shape {
    position: absolute;
    border: 2px solid rgba(59, 130, 246, 0.1);
    will-change: transform, opacity;
    pointer-events: none;
    animation: geometric-float 20s infinite linear;
}

.geometric-shape.triangle {
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 35px solid rgba(59, 130, 246, 0.08);
    border-radius: 4px;
}

.geometric-shape.square {
    background: rgba(147, 197, 253, 0.06);
    border-radius: 4px;
    border: 2px solid rgba(147, 197, 253, 0.2);
}

.geometric-shape.circle {
    border-radius: 50%;
    background: rgba(199, 210, 254, 0.08);
    border: 2px solid rgba(199, 210, 254, 0.3);
}

.geometric-shape.hexagon {
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 26px solid rgba(96, 165, 250, 0.1);
    transform: rotate(180deg);
}

.geometric-shape.hexagon:before {
    content: "";
    position: absolute;
    left: -15px;
    top: 26px;
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 26px solid rgba(96, 165, 250, 0.1);
}

.geometric-shape.diamond {
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transform: rotate(45deg);
    border-radius: 2px;
}

/* Enhanced geometric animations */
@keyframes geometric-float {
    0% { transform: translate(0, 0) rotate(0deg) scale(1); opacity: 0.3; }
    25% { transform: translate(20px, -30px) rotate(90deg) scale(1.1); opacity: 0.7; }
    50% { transform: translate(-10px, -60px) rotate(180deg) scale(0.9); opacity: 0.5; }
    75% { transform: translate(-30px, -20px) rotate(270deg) scale(1.2); opacity: 0.8; }
    100% { transform: translate(0, 0) rotate(360deg) scale(1); opacity: 0.3; }
}

/* Premium cursor effects (desktop only) */
@media (hover: hover) {
    .premium-cursor {
        position: fixed;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: rgba(59, 130, 246, 0.3);
        pointer-events: none;
        z-index: 9999;
        backdrop-filter: blur(4px);
        border: 2px solid rgba(59, 130, 246, 0.6);
    }
    
    .premium-cursor.hover {
        transform: scale(2);
        background: rgba(59, 130, 246, 0.1);
        border-color: rgba(59, 130, 246, 0.8);
    }
    
    .premium-cursor.click {
        transform: scale(0.8);
        background: rgba(59, 130, 246, 0.6);
    }
}

/* Intersection observer triggered animations */
.observe-fade {
    opacity: 1;
}

.observe-fade.visible {
    opacity: 1;
}

.observe-slide-left {
    opacity: 1;
}

.observe-slide-left.visible {
    opacity: 1;
}

.observe-slide-right {
    opacity: 1;
}

.observe-slide-right.visible {
    opacity: 1;
}

.observe-scale {
    opacity: 1;
}

.observe-scale.visible {
    opacity: 1;
}

/* Button ripple effect */
.btn {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    pointer-events: none;
    z-index: 1;
}


/* Premium scroll indicators */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(30, 58, 138, 0.1);
    z-index: 9999;
}

.scroll-indicator::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #1e3a8a, #3b82f6, #60a5fa);
    width: 0%;
}

/* Enhanced mobile interactions */
@media (max-width: 768px) {
    .btn:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    .package-card:active,
    .problem-item:active,
    .metric:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
}

/* Performance optimizations */
.hero,
.package-card,
.problem-item,
.metric,
.testimonial {
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Mobile particle optimizations */
@media (max-width: 768px) {
    .particles,
    .geometric-bg {
        display: block;
    }
    
    .particle {
        animation-duration: 12s !important;
    }
    
    .geometric-shape {
        animation-duration: 16s !important;
        transform: scale(0.8);
    }
    
    /* Ensure particles work on mobile */
    .hero {
        position: relative;
        overflow: hidden;
    }
}

/* Very small screens - reduce particle complexity */
@media (max-width: 480px) {
    .particle {
        animation-duration: 15s !important;
    }
    
    .geometric-shape {
        animation-duration: 20s !important;
        transform: scale(0.7);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .particle,
    .geometric-shape,
    .premium-cursor {
        animation: none !important;
    }
    
    .btn::before,
    .package-card::after,
    .nav-link::after {
        transition: none !important;
    }
    
    .hero::before,
    .hero::after {
        animation: none !important;
    }
}

/* Guide Page Styles */
.stat {
    text-align: center;
    background: #f9fafb;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: #1e3a8a;
}

.stat-label {
    font-size: 0.875rem;
    color: #3D3D3D;
}

.frequency-content {
    display: grid;
    gap: 3rem;
    margin-bottom: 3rem;
}

.rec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.rec-item {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border: 2px solid #e5e7eb;
}

.rec-item:hover {
    border-color: #1e3a8a;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.rec-item.warning {
    border-color: #f59e0b;
    background: #fffbeb;
}

.rec-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.rec-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 0.5rem;
}

.times-grid, .algorithm-grid, .strategies-content, .warnings-grid {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.time-category, .algo-category {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.time-slots {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.time-slot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-radius: 8px;
    background: #f9fafb;
    color: #3D3D3D;
}

.time-slot.primary {
    background: #dbeafe;
    border: 2px solid #2563eb;
    color: #1e3a8a;
    font-weight: 600;
}

.time-slot.secondary {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    color: #3D3D3D;
}

.daily-windows, .day-performance, .industry-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.window, .day {
    padding: 0.75rem;
    border-radius: 6px;
    background: #f9fafb;
    color: #3D3D3D;
}

.day.best {
    background: #dcfce7;
    border-left: 4px solid #22c55e;
    color: #15803d;
    font-weight: 600;
}

.day.good {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    color: #92400e;
    font-weight: 600;
}

.day.avoid {
    background: #fecaca;
    border-left: 4px solid #ef4444;
    color: #dc2626;
    font-weight: 600;
}

.industry-item {
    background: #f9fafb;
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
    color: #3D3D3D;
    font-weight: 500;
}

.premium-content, .advantage-content {
    display: grid;
    gap: 3rem;
    margin-top: 2rem;
}

.premium-changes, .premium-requirements, .advantage-text, .automation-solution {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.change-item, .req-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
}

.change-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.pricing-update {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: #f0f9ff;
    border-radius: 8px;
    border-left: 4px solid #1e3a8a;
    color: #3D3D3D;
}

.price-tier {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.content-mix {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.mix-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 6px;
}

.percentage {
    font-weight: 700;
    font-size: 1.125rem;
    color: #1e3a8a;
    min-width: 3rem;
}

.solution-items {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.solution-item, .insight {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 8px;
}

.solution-icon, .insight-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.factor {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 6px;
}

.warning-item {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    border: 2px solid #fbbf24;
    background: #fffbeb;
}

.warning-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-automation {
    text-align: center;
    margin-top: 3rem;
    padding: 3rem;
    background: #f9fafb;
    border-radius: 12px;
}

.future-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.future-services {
    display: grid;
    gap: 1rem;
    margin: 2rem 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.future-service {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.future-note {
    margin-top: 2rem;
    padding: 1rem;
    background: #dbeafe;
    border-radius: 6px;
    border-left: 4px solid #1e3a8a;
    color: #3D3D3D;
}

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

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }

/* Mobile-First: Extra small screens */
@media (max-width: 320px) {
    .container {
        padding: 0 10px;
    }
    
    .guide-stats {
        gap: 1rem;
    }
    
    section {
        padding: 3rem 0;
    }
}

/* Mobile and small tablet adjustments */
@media (max-width: 600px) {
    /* Force single column layouts for all grids */
    .rec-grid,
    .times-grid, 
    .algorithm-grid, 
    .strategies-content, 
    .warnings-grid,
    .premium-content, 
    .advantage-content,
    .frequency-content,
    .industry-grid,
    .future-services {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1rem;
        width: 100%;
    }
    
    /* Ensure flex containers don't overflow */
    .guide-stats,
    .time-slots,
    .daily-windows,
    .day-performance,
    .content-mix,
    .solution-items {
        flex-wrap: wrap;
        width: 100%;
    }
    
    /* Make all children respect parent width */
    .time-category, 
    .algo-category,
    .rec-item,
    .industry-item,
    .future-service,
    .time-slot,
    .window,
    .day,
    .mix-item,
    .solution-item,
    .insight {
        max-width: 100%;
        min-width: 0;
        width: 100%;
        box-sizing: border-box;
    }
}

/* Responsive Design - Mobile Adjustments */
@media (max-width: 480px) {
    /* Prevent horizontal scroll - Global fixes */
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
        width: 100%;
    }
    
    *, *::before, *::after {
        max-width: 100vw;
        box-sizing: border-box;
    }
    
    .container {
        padding: 0 15px;
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
    }
    
    /* Guide page specific fixes */
    .guide-stats {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .guide-stats .stat {
        min-width: 0;
        flex: none;
        width: 100%;
    }
    
    /* Grid and flex container fixes */
    .rec-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        width: 100%;
    }
    
    .times-grid, .algorithm-grid, .strategies-content, .warnings-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        width: 100%;
    }
    
    .premium-content, .advantage-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        width: 100%;
    }
    
    .frequency-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        width: 100%;
    }
    
    .industry-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
        width: 100%;
    }
    
    .industry-item {
        width: 100%;
        min-width: 0;
    }
    
    /* Time slots and flex containers */
    .time-slots {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .time-slot {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
        padding: 1rem;
        width: 100%;
        min-width: 0;
    }
    
    .time-slot .time,
    .time-slot .label {
        word-wrap: break-word;
        overflow-wrap: break-word;
        width: 100%;
    }
    
    .daily-windows, .day-performance {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .window, .day {
        padding: 1rem;
        width: 100%;
        min-width: 0;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Content mix and solution items */
    .content-mix, .solution-items {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
        width: 100%;
    }
    
    .mix-item, .solution-item, .insight {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem;
        width: 100%;
        min-width: 0;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .mix-item .percentage,
    .mix-item .type {
        width: 100%;
    }
    
    .solution-icon, .insight-icon {
        align-self: flex-start;
    }
    
    /* Premium requirements specific mobile fixes */
    .premium-requirements {
        padding: 1rem !important;
        margin: 0 !important;
        width: 100%;
        max-width: 100%;
    }
    
    .req-item {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.25rem !important;
        padding: 0.75rem !important;
        width: 100%;
        min-width: 0;
    }
    
    .req-item strong {
        font-size: 0.9rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .req-item span {
        font-size: 0.8rem;
        margin-left: 0 !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .pricing-update {
        margin-top: 1rem !important;
        padding: 1rem !important;
        width: 100%;
        max-width: 100%;
    }
    
    .price-tier {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.25rem;
        margin-bottom: 0.75rem;
        width: 100%;
        min-width: 0;
    }
    
    .price-tier .tier,
    .price-tier .price,
    .price-tier .note {
        font-size: 0.9rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        width: 100%;
    }
    
    /* Change and requirement items */
    .change-item {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 1.5rem;
        padding: 1rem;
        width: 100%;
        min-width: 0;
    }
    
    .change-text,
    .solution-text,
    .insight-text {
        width: 100%;
        min-width: 0;
    }
    
    /* Factors and other content */
    .factor {
        padding: 1rem;
        width: 100%;
        min-width: 0;
    }
    
    .factor strong,
    .factor span {
        word-wrap: break-word;
        overflow-wrap: break-word;
        width: 100%;
    }
    
    /* Future services grid */
    .future-services {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
        width: 100%;
    }
    
    .future-service {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 1rem;
        width: 100%;
        min-width: 0;
    }
    
    /* Prevent text overflow globally */
    h1, h2, h3, h4, h5, h6, p, span, div, li {
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }
    
    /* Ensure all grid and flex children respect container width */
    .times-grid > *,
    .algorithm-grid > *,
    .strategies-content > *,
    .warnings-grid > *,
    .rec-grid > *,
    .premium-content > *,
    .advantage-content > *,
    .frequency-content > * {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }
    
    .hero {
        padding: 6rem 0 3rem;
        min-height: 70vh;
        width: 100%;
    }
    
    .hero-content {
        padding: 1rem;
        width: 100%;
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.3;
        width: 100%;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
        margin-bottom: 2rem;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        min-width: 0;
    }
    
    /* Specific fixes for problem elements */
    .platform-limits,
    .limits-note,
    .premium-changes,
    .automation-solution {
        width: 100%;
        max-width: 100%;
        padding: 1rem;
    }
    
    .platform-limits ul,
    .advantage-text ul {
        padding-left: 1rem;
        width: 100%;
    }
    
    .platform-limits li,
    .advantage-text li {
        margin-bottom: 0.5rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

/* Responsive Design - Tablet */
@media (min-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-cta {
        flex-direction: row;
        justify-content: center;
        gap: 1.5rem;
    }
    
    .btn {
        width: auto;
    }
    
    .problem-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .packages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .included-grid,
    .setup-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .post-stats {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .post-metrics {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cta-buttons,
    .cta-options {
        flex-direction: row;
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .about-content,
    .credibility-content,
    .solution-content,
    .local-content,
    .story-content,
    .support-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .case-study-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .comparison-table {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .customer-comparison {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive Design - Desktop */
@media (min-width: 1024px) {
    .nav-menu {
        display: flex !important;
        flex-direction: row;
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        padding: 0;
        gap: 2rem;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        transition: none;
    }
    
    .nav-toggle {
        display: none;
    }
    
    .nav-link {
        border-bottom: none;
        padding: 0;
        font-size: 1rem;
    }
    
    .cta-nav {
        margin-top: 0;
        margin-left: 1rem;
        padding: 0.5rem 1rem !important;
    }
    
    .hero {
        min-height: 85vh;
    }
    
    .hero-title {
        font-size: 4rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 1.375rem;
    }
    
    .problem-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .included-grid,
    .setup-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .comparison-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .story-highlights {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }
}

/* Print Styles */
@media print {
    .header,
    .nav,
    .cta-buttons,
    .footer {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
}

/* Premium Visual Elements & Patterns */
.premium-background {
    position: relative;
    background: var(--neutral-50);
}

.premium-background::before {
    content: '';
    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"><defs><pattern id="premium-grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(0,0,0,0.02)" stroke-width="0.5"/></pattern></defs><rect width="100%" height="100%" fill="url(%23premium-grid)"/></svg>'),
        radial-gradient(circle at 25% 25%, rgba(59, 130, 246, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(30, 58, 138, 0.02) 0%, transparent 50%);
    opacity: 0.6;
    pointer-events: none;
}

.premium-divider {
    position: relative;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neutral-200), transparent);
    margin: var(--space-24) 0;
    overflow: hidden;
}

.premium-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--primary-400), transparent);
}


.glass-morphism {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-lg);
}

.frosted-glass {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px) saturate(200%);
    -webkit-backdrop-filter: blur(15px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.premium-glow {
    position: relative;
    overflow: hidden;
}

.premium-glow::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    opacity: 0;
    pointer-events: none;
}

.premium-glow:hover::after {
    opacity: 1;
}

.elegant-border {
    position: relative;
    border-radius: var(--radius-xl);
    background: var(--gradient-surface);
    padding: 2px;
}

.elegant-border::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    background: var(--gradient-primary);
    border-radius: inherit;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
    -webkit-mask-composite: xor;
}

.floating-element {
    position: absolute;
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(2n) {
    animation-delay: -2s;
}

.floating-element:nth-child(3n) {
    animation-delay: -4s;
}


.premium-card-stack {
    position: relative;
    transform-style: preserve-3d;
}

.premium-card-stack::before,
.premium-card-stack::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    background: var(--gradient-surface);
    border-radius: inherit;
    z-index: -1;
    opacity: 0.3;
}

.premium-card-stack::after {
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    opacity: 0.15;
}

.text-gradient-animate {
    background: linear-gradient(45deg, var(--primary-600), var(--primary-400), var(--primary-600));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.premium-testimonial {
    background: var(--gradient-surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-2xl);
    padding: var(--space-12);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.premium-testimonial::before {
    content: '"';
    position: absolute;
    top: var(--space-6);
    left: var(--space-6);
    font-size: 4rem;
    color: var(--primary-200);
    font-family: serif;
    line-height: 1;
    opacity: 0.3;
}

.premium-testimonial::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
}

.premium-metric {
    text-align: center;
    padding: var(--space-8);
    background: var(--gradient-surface);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
}

.premium-metric:hover {
    box-shadow: var(--shadow-xl);
}

.premium-metric::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
}

.premium-section-divider {
    position: relative;
    height: 120px;
    overflow: hidden;
    background: linear-gradient(180deg, 
        var(--neutral-50) 0%, 
        rgba(255,255,255,0.5) 50%, 
        var(--neutral-50) 100%
    );
}

.premium-section-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 1px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

.premium-section-divider::after {
    content: '✦';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--primary-600);
    font-size: var(--text-xl);
    background: var(--neutral-50);
    padding: var(--space-4);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md);
}

/* Accessibility */
@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-element,
    .hero::before,
    .hero::after {
        animation: none !important;
    }
}

/* Premium Mobile-First Enhancements */

/* Touch-Optimized Interactions */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
        min-width: 44px;
        font-size: var(--text-lg);
        padding: var(--space-6) var(--space-10);
    }
    
    .btn:active {
        transform: scale(0.96);
    }
    
    .problem-item:active,
    .package-card:active,
    .premium-glow:active {
        transform: scale(0.98);
    }
    
    /* Remove hover effects on touch devices */
    .problem-item:hover,
    .package-card:hover,
    .premium-glow:hover,
    .btn:hover {
        transform: none;
    }
}

/* Enhanced Touch Targets */
.nav-link,
.footer-section a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: var(--space-3) var(--space-4);
}

/* Mobile-Optimized Typography */
@media (max-width: 640px) {
    :root {
        --text-xs: 0.75rem;
        --text-sm: 0.875rem;
        --text-base: 1rem;
        --text-lg: 1.125rem;
        --text-xl: 1.25rem;
        --text-2xl: 1.5rem;
        --text-3xl: 1.75rem;
        --text-4xl: 2rem;
        --text-5xl: 2.5rem;
        --text-6xl: 3rem;
        --text-7xl: 3.5rem;
        --text-8xl: 4rem;
    }
    
    .hero-title {
        font-size: clamp(2rem, 8vw, 3.5rem);
        line-height: 1.1;
        letter-spacing: -0.02em;
        background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #93c5fd 100%) !important;
        background-clip: text !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        color: transparent !important;
        text-shadow: 0 2px 8px rgba(0,0,0,0.4) !important;
    }
    
    .hero-subtitle {
        font-size: clamp(1.125rem, 4vw, 1.375rem);
        line-height: 1.5;
        color: rgba(255,255,255,0.95) !important;
        text-shadow: 0 2px 6px rgba(0,0,0,0.3) !important;
    }
    
    section h2 {
        font-size: clamp(1.875rem, 6vw, 3rem);
    }
    
    .container {
        padding: 0 var(--space-4);
    }
    
    section {
        padding: var(--space-32) 0;
    }
}

/* Ultra-Premium Mobile Cards */
@media (max-width: 768px) {
    .problem-item,
    .package-card {
        margin-bottom: var(--space-6);
        background: var(--gradient-surface);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border: 1px solid rgba(255, 255, 255, 0.25);
        box-shadow: 
            var(--shadow-xl),
            0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    }
    
    .hero-cta {
        gap: var(--space-5);
    }
    
    .hero-cta .btn {
        width: 100%;
        max-width: 320px;
        font-size: var(--text-lg);
        font-weight: 700;
        min-height: 56px;
    }
}

/* Premium Loading States */

.skeleton {
    background: linear-gradient(90deg, var(--neutral-200) 0px, var(--neutral-100) 40px, var(--neutral-200) 80px);
    background-size: 200px 100%;
}

/* Enhanced Accessibility Features */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.focus-visible {
    outline: 3px solid var(--primary-500);
    outline-offset: 2px;
    border-radius: var(--radius);
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --primary-800: #1e40af;
        --primary-600: #2563eb;
        --neutral-900: #000000;
        --neutral-50: #ffffff;
    }
    
    .btn {
        border-width: 3px;
    }
    
    .problem-item,
    .package-card {
        border-width: 2px;
        border-color: var(--neutral-900);
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --neutral-950: #fafafa;
        --neutral-900: #f5f5f5;
        --neutral-800: #e5e5e5;
        --neutral-700: #d4d4d4;
        --neutral-600: #a3a3a3;
        --neutral-500: #737373;
        --neutral-400: #525252;
        --neutral-300: #404040;
        --neutral-200: #262626;
        --neutral-100: #171717;
        --neutral-50: #0a0a0a;
    }
    
    body {
        background: linear-gradient(180deg, #f0f8ff 0%, #e6f3ff 50%, #dbeafe 100%);
        background-attachment: fixed;
        color: #3D3D3D;
    }
    
    .hero {
        background: linear-gradient(135deg, var(--neutral-100) 0%, var(--neutral-200) 50%, var(--neutral-300) 100%);
        color: var(--neutral-900);
    }
    
    .problem,
    .packages {
        background: var(--neutral-100);
    }
    
    .footer {
        background: var(--neutral-50);
        color: #3D3D3D;
    }
}

/* Print Optimizations */
@media print {
    * {
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
    
    .hero::before,
    .hero::after,
    .premium-background::before {
        display: none;
    }
    
    .btn {
        border: 2px solid var(--neutral-900);
        color: var(--neutral-900);
        background: transparent;
    }
}

/* Focus styles for keyboard navigation */
.btn:focus,
input:focus,
select:focus,
textarea:focus,
.nav-link:focus {
    outline: 3px solid var(--primary-500);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

.btn:focus:not(:focus-visible) {
    outline: none;
}

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

/* Enhanced Performance Optimizations */
.problem-item,
.package-card,
.hero-placeholder,
.credibility-placeholder {
    contain: layout style paint;
    will-change: transform;
}

.floating-element {
    position: absolute;
    animation: float 6s ease-in-out infinite;
}

/* GPU Acceleration for Smooth Animations */
.btn,
.premium-glow,
.premium-card-stack {
    backface-visibility: hidden;
    perspective: 1000px;
}

/* CRITICAL: Final header visibility override - ensures ALL headers are maximally visible */
h1, h2, h3, h4, h5, h6,
.problem-item h3,
.proof-post h3,
.package-card h3,
.service-hero h3,
.setup-item h3,
.case-study h3,
.faq-item h3,
.personal-story h3,
.area-map h3,
.comparison-item h3,
.consultation-form h3,
.testimonial h3,
.cta-option h3,
.comparison-column h3,
.customer-type h3,
.support-box h3,
.rec-item h3,
.time-category h3,
.algo-category h3,
.premium-changes h3,
.premium-requirements h3,
.advantage-text h3,
.automation-solution h3,
.warning-item h3,
.highlight h3,
.about-hero h1,
.about-hero h2,
.about-hero h3,
.guide-hero h1,
.guide-hero h2,
.guide-hero h3,
section h1,
section h2,
section h3,
section h4,
section h5,
section h6 {
    color: #000000 !important; /* Maximum contrast black - FINAL OVERRIDE */
    font-weight: 800 !important; /* Heavy weight for maximum visibility */
}

/* Special case for footer headers that need to remain light on dark background */
.footer-section h4 {
    color: #ffffff !important;
    font-weight: 800 !important;
}