/* Stack Encrypts - Ultra-Modern Advanced Design */
/* Cutting-edge CSS with glassmorphism, neumorphism, and premium effects */

/* ============================================================================
   ADVANCED CSS VARIABLES & MODERN COLOR PALETTE
   ============================================================================ */

   :root {
    /* Premium Color Palette */
    --primary-900: #0a0e1a;
    --primary-800: #1a2038;
    --primary-700: #2d3748;
    --primary-600: #4a5568;
    --primary-500: #667eea;
    --primary-400: #818cf8;
    --primary-300: #a5b4fc;
    --primary-200: #c7d2fe;
    --primary-100: #e0e7ff;
    
    /* Accent Colors */
    --accent-neon: #00ff88;
    --accent-purple: #8b5cf6;
    --accent-pink: #ec4899;
    --accent-orange: #f59e0b;
    --accent-cyan: #06b6d4;
    
    /* Advanced Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #8b5cf6 100%);
    --gradient-hero: linear-gradient(135deg, #0f0c29 0%, #302b63 35%, #24243e 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    --gradient-neon: linear-gradient(135deg, #00ff88 0%, #00b4d8 50%, #8b5cf6 100%);
    --gradient-dark: linear-gradient(135deg, #0a0e1a 0%, #1a2038 100%);
    
    /* Glassmorphism Effects */
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.37);
    
    /* Neumorphism Effects */
    --neuro-light: #ffffff;
    --neuro-dark: #d1d9e6;
    --neuro-shadow-light: 20px 20px 60px #d1d9e6, -20px -20px 60px #ffffff;
    --neuro-shadow-inset: inset 20px 20px 60px #d1d9e6, inset -20px -20px 60px #ffffff;
    
    /* Advanced Shadows */
    --shadow-glow: 0 0 40px rgba(102, 126, 234, 0.4);
    --shadow-premium: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-intense: 0 35px 60px -12px rgba(0, 0, 0, 0.4);
    --shadow-neon: 0 0 20px rgba(0, 255, 136, 0.6);
    
    /* Modern Typography */
    --font-display: 'Poppins', 'Inter', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    /* Fluid Typography */
    --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --text-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
    --text-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
    --text-lg: clamp(1.125rem, 1rem + 0.625vw, 1.25rem);
    --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
    --text-2xl: clamp(1.5rem, 1.3rem + 1vw, 2rem);
    --text-3xl: clamp(1.875rem, 1.6rem + 1.375vw, 2.5rem);
    --text-4xl: clamp(2.25rem, 1.9rem + 1.75vw, 3rem);
    --text-5xl: clamp(3rem, 2.5rem + 2.5vw, 4.5rem);
    
    /* Advanced Spacing */
    --space-px: 1px;
    --space-0: 0px;
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;
    
    /* Modern Borders */
    --radius-none: 0px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;
    
    /* Advanced Transitions */
    --transition-quick: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 600ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --transition-elastic: 800ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ============================================================================
   ADVANCED RESET & BASE STYLES
   ============================================================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--primary-700);
    background: var(--gradient-dark);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Advanced Body Background with Animated Patterns */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.1) 0%, transparent 50%);
    z-index: -2;
    animation: backgroundPulse 20s ease-in-out infinite;
}

@keyframes backgroundPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Common Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

/* ============================================================================
   ADVANCED PRELOADER WITH PARTICLES
   ============================================================================ */

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-hero);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.1);
}

.loader {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: var(--space-8);
}

.loader::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top: 3px solid var(--accent-neon);
    border-right: 3px solid var(--accent-purple);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    width: calc(100% - 30px);
    height: calc(100% - 30px);
    border: 2px solid transparent;
    border-bottom: 2px solid var(--accent-pink);
    border-left: 2px solid var(--accent-cyan);
    border-radius: 50%;
    animation: spin 1.5s linear infinite reverse;
}

.preloader p {
    color: white;
    font-size: var(--text-lg);
    font-weight: 500;
    text-align: center;
    background: var(--gradient-neon);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ============================================================================
   FLOATING PARTICLES SYSTEM
   ============================================================================ */

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    width: 6px;
    height: 6px;
    background: var(--accent-neon);
    box-shadow: 0 0 20px var(--accent-neon);
    animation: float 8s ease-in-out infinite;
    opacity: 0;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) translateX(0px) rotate(0deg); 
        opacity: 0; 
    }
    25% { opacity: 1; }
    50% { 
        transform: translateY(-150px) translateX(50px) rotate(180deg); 
        opacity: 0.8; 
    }
    75% { opacity: 0.6; }
}

/* ============================================================================
   ULTRA-MODERN HEADER WITH GLASSMORPHISM
   ============================================================================ */

.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: var(--transition-base);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.header.scrolled {
    background: rgba(10, 14, 26, 0.9);
    box-shadow: var(--shadow-premium), var(--shadow-glow);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
}

.header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4) 0;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 800;
    background: var(--gradient-neon);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: var(--transition-bounce);
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: var(--gradient-neon);
    border-radius: var(--radius-lg);
    opacity: 0;
    z-index: -1;
    transition: var(--transition-base);
    filter: blur(10px);
}

.logo:hover::after {
    opacity: 0.3;
    animation: logoGlow 2s ease-in-out infinite;
}

.logo:hover {
    transform: scale(1.05) rotate(2deg);
}

@keyframes logoGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.logo i {
    margin-right: var(--space-3);
    font-size: 1.2em;
    background: var(--gradient-neon);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 10px rgba(0, 255, 136, 0.5));
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-2);
    margin: 0;
    align-items: center;
}

.nav-menu li {
    margin-bottom: 0;
}

.nav-menu a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    font-size: var(--text-sm);
    position: relative;
    transition: var(--transition-base);
    padding: var(--space-3) var(--space-5);
    border-radius: var(--radius-full);
    background: var(--glass-bg);
    border: 1px solid transparent;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav-menu a:hover {
    color: white;
    background: var(--gradient-primary);
    border-color: var(--glass-border);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.nav-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-neon);
    border-radius: var(--radius-full);
    opacity: 0;
    z-index: -1;
    transition: var(--transition-base);
}

.nav-menu a:hover::before {
    opacity: 0.1;
}

.mobile-menu-btn {
    display: none;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    font-size: var(--text-lg);
    cursor: pointer;
    color: white;
    padding: var(--space-3);
    border-radius: var(--radius-md);
    transition: var(--transition-base);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.mobile-menu-btn:hover {
    background: var(--gradient-primary);
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
}

/* ============================================================================
   REVOLUTIONARY HERO SECTION
   ============================================================================ */

.hero {
    min-height: 100vh;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: var(--space-20) 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 25% 25%, rgba(120, 119, 198, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 119, 198, 0.15) 0%, transparent 50%),
        linear-gradient(135deg, rgba(0, 255, 136, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    z-index: 1;
    animation: heroBackground 15s ease-in-out infinite;
}

@keyframes heroBackground {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(180deg, transparent 0%, rgba(10, 14, 26, 0.8) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: white;
    max-width: 1000px;
    padding: 0 var(--space-6);
}

.hero-title {
    font-family: var(--font-display);
    font-size: var(--text-5xl);
    font-weight: 900;
    margin-bottom: var(--space-6);
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    line-height: 1.1;
    background: var(--gradient-neon);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 3s ease-in-out infinite;
    position: relative;
}

.hero-title::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-neon);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(20px);
    opacity: 0.3;
    z-index: -1;
}

@keyframes titleGlow {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(0, 255, 136, 0.4)); }
    50% { filter: drop-shadow(0 0 40px rgba(139, 92, 246, 0.6)); }
}

.hero-subtitle {
    font-size: var(--text-xl);
    margin-bottom: var(--space-10);
    font-weight: 300;
    line-height: 1.8;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.9);
    animation: fadeInUp 1s ease 0.5s both;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-8);
    margin: var(--space-12) 0;
    animation: fadeInUp 1s ease 0.8s both;
}

.hero-stat {
    text-align: center;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.hero-stat::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: var(--gradient-neon);
    opacity: 0;
    z-index: -1;
    transition: var(--transition-slow);
    animation: rotate 20s linear infinite;
}

.hero-stat:hover::before {
    opacity: 0.1;
}

.hero-stat:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: var(--shadow-premium), var(--shadow-glow);
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-stat-number {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 800;
    display: block;
    margin-bottom: var(--space-2);
    background: var(--gradient-neon);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 10px rgba(0, 255, 136, 0.3));
}

.hero-stat-label {
    font-size: var(--text-sm);
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.cta-container {
    margin-top: var(--space-12);
    animation: fadeInUp 1s ease 1.2s both;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-4);
}

.cta-primary,
.cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-5) var(--space-8);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--text-lg);
    border-radius: var(--radius-full);
    transition: var(--transition-base);
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    min-width: 220px;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.cta-primary {
    background: var(--gradient-neon);
    color: var(--primary-900);
    box-shadow: var(--shadow-glow);
}

.cta-primary::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.5s ease;
}

.cta-primary:hover::before {
    left: 100%;
}

.cta-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-intense), var(--shadow-neon);
}

.cta-secondary {
    background: var(--glass-bg);
    color: white;
    border-color: var(--glass-border);
}

.cta-secondary:hover {
    background: var(--gradient-primary);
    border-color: var(--accent-purple);
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-premium);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================================
   FLOATING SUCCESS CARDS WITH 3D EFFECTS
   ============================================================================ */

.floating-card {
    position: absolute;
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    border: 1px solid var(--glass-border);
    animation: floatCard 8s ease-in-out infinite;
    max-width: 320px;
    z-index: 4;
    text-align: center;
    box-shadow: var(--shadow-premium);
    transition: var(--transition-base);
}

.floating-card:hover {
    transform: translateY(-20px) scale(1.1) rotateY(5deg);
    box-shadow: var(--shadow-intense), var(--shadow-glow);
}

.floating-card-1 {
    top: 20%;
    left: 8%;
    animation-delay: 0s;
}

.floating-card-2 {
    top: 65%;
    right: 8%;
    animation-delay: 3s;
}

.floating-card .card-icon {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-4);
    background: var(--gradient-neon);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(0, 255, 136, 0.5));
}

.floating-card h4 {
    margin-bottom: var(--space-2);
    font-family: var(--font-display);
    font-size: var(--text-lg);
    color: white;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.floating-card p {
    font-size: var(--text-sm);
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

@keyframes floatCard {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg) scale(1); 
    }
    25% { 
        transform: translateY(-15px) rotate(1deg) scale(1.02); 
    }
    50% { 
        transform: translateY(-25px) rotate(-1deg) scale(1.05); 
    }
    75% { 
        transform: translateY(-10px) rotate(0.5deg) scale(1.02); 
    }
}

/* ============================================================================
   ULTRA-MODERN SECTIONS WITH ADVANCED EFFECTS
   ============================================================================ */

.section {
    padding: var(--space-32) 0;
    position: relative;
}

.section-dark {
    background: var(--gradient-dark);
    color: white;
    position: relative;
}

.section-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 70%, rgba(102, 126, 234, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    z-index: 1;
}

.section-gradient {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.02) 0%, 
        rgba(102, 126, 234, 0.05) 50%, 
        rgba(139, 92, 246, 0.02) 100%);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-20);
    position: relative;
    z-index: 2;
}

.section-title {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 800;
    margin-bottom: var(--space-6);
    background: var(--gradient-neon);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    position: relative;
    filter: drop-shadow(0 0 30px rgba(0, 255, 136, 0.3));
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-neon);
    border-radius: var(--radius-full);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

.section-subtitle {
    font-size: var(--text-xl);
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 300;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
}

/* ============================================================================
   PREMIUM SERVICES & FEATURES GRID
   ============================================================================ */

.services-grid,
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: var(--space-8);
    margin-top: var(--space-16);
    position: relative;
    z-index: 2;
}

.service-card,
.feature-card {
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    border: 1px solid var(--glass-border);
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transform-style: preserve-3d;
}

.service-card::before,
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-neon);
    opacity: 0;
    z-index: -1;
    transition: var(--transition-slow);
    transform: skewX(-25deg);
}

.service-card:hover::before,
.feature-card:hover::before {
    left: 100%;
    opacity: 0.1;
}

.service-card:hover,
.feature-card:hover {
    transform: translateY(-15px) rotateX(5deg) rotateY(5deg);
    box-shadow: var(--shadow-intense), var(--shadow-glow);
    border-color: rgba(0, 255, 136, 0.3);
}

.service-icon,
.feature-icon {
    width: 100px;
    height: 100px;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-6);
    font-size: var(--text-3xl);
    color: white;
    position: relative;
    overflow: hidden;
    transition: var(--transition-base);
    box-shadow: var(--shadow-glow);
}

.service-icon::after,
.feature-icon::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, var(--accent-neon), var(--accent-purple), var(--accent-pink), var(--accent-cyan), var(--accent-neon));
    opacity: 0;
    z-index: -1;
    transition: var(--transition-base);
    animation: rotate 20s linear infinite;
}

.service-card:hover .service-icon::after,
.feature-card:hover .feature-icon::after {
    opacity: 0.3;
}

.service-card:hover .service-icon,
.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(10deg);
    box-shadow: var(--shadow-neon);
}

.service-title,
.feature-card h3 {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-bottom: var(--space-4);
    color: white;
    line-height: 1.3;
}

.service-description,
.feature-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: var(--space-6);
    font-size: var(--text-base);
}

.service-features {
    list-style: none;
    padding: 0;
}

.service-features li {
    display: flex;
    align-items: center;
    margin-bottom: var(--space-3);
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--text-sm);
    line-height: 1.6;
    transition: var(--transition-base);
}

.service-features li:hover {
    color: var(--accent-neon);
    transform: translateX(10px);
}

.service-features li::before {
    content: '';
    width: 12px;
    height: 12px;
    background: var(--gradient-neon);
    border-radius: 50%;
    margin-right: var(--space-3);
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
    animation: pulse 2s ease-in-out infinite;
}

/* ============================================================================
   PREMIUM CONTACT GRID
   ============================================================================ */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-8);
    margin-top: var(--space-16);
    position: relative;
    z-index: 2;
}

.contact-card {
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    text-align: center;
    transition: var(--transition-base);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: var(--gradient-neon);
    opacity: 0;
    z-index: -1;
    transition: var(--transition-base);
    transform: rotate(45deg);
}

.contact-card:hover::before {
    opacity: 0.05;
    animation: rotate 10s linear infinite;
}

.contact-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: var(--shadow-intense), var(--shadow-glow);
    border-color: rgba(0, 255, 136, 0.3);
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-6);
    font-size: var(--text-2xl);
    color: white;
    box-shadow: var(--shadow-glow);
    transition: var(--transition-base);
}

.contact-card:hover .contact-icon {
    transform: scale(1.2) rotate(360deg);
    box-shadow: var(--shadow-neon);
}

.contact-card h3 {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    margin-bottom: var(--space-4);
    color: white;
}

.contact-card p {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--accent-neon);
    margin-bottom: var(--space-2);
}

.contact-card span {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================================================
   REVOLUTIONARY FORM DESIGN
   ============================================================================ */

.consultation-section {
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
}

.consultation-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 25% 75%, rgba(0, 255, 136, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 25%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, transparent 100%);
    z-index: 1;
    animation: formBackground 20s ease-in-out infinite;
}

@keyframes formBackground {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.form-container {
    background: var(--glass-bg);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: var(--radius-2xl);
    padding: var(--space-12);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-intense);
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
}

.form-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(0, 255, 136, 0.1), transparent, rgba(139, 92, 246, 0.1), transparent);
    z-index: -1;
    animation: rotate 30s linear infinite;
}

/* Form Progress with Neon Effects */
.form-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: var(--space-12);
    flex-wrap: wrap;
    gap: var(--space-4);
    position: relative;
}

.progress-step {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--text-sm);
    font-weight: 600;
    position: relative;
    transition: var(--transition-base);
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius-full);
    background: var(--glass-bg);
    border: 1px solid transparent;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    white-space: nowrap;
    cursor: pointer;
}

.progress-step.active {
    color: var(--accent-neon);
    background: rgba(0, 255, 136, 0.1);
    border-color: rgba(0, 255, 136, 0.3);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
    transform: scale(1.05);
}

.progress-step i {
    margin-right: var(--space-2);
    font-size: var(--text-base);
}

.progress-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -20px;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.2), transparent);
    transform: translateY(-50%);
}

.progress-step.active:not(:last-child)::after {
    background: var(--gradient-neon);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

/* Form Steps with Advanced Animations */
.form-step {
    display: none;
    opacity: 0;
    transform: translateX(50px);
    transition: var(--transition-slow);
}

.form-step.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
    animation: stepSlideIn 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes stepSlideIn {
    0% {
        opacity: 0;
        transform: translateX(50px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.step-title {
    color: white;
    text-align: center;
    margin-bottom: var(--space-10);
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 700;
    background: var(--gradient-neon);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(0, 255, 136, 0.3));
}

/* Premium Form Elements */
.form-group {
    margin-bottom: var(--space-8);
    position: relative;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
}

.form-label {
    display: block;
    margin-bottom: var(--space-3);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Enhanced Form Input Styling */
.form-input {
    width: 100%;
    padding: var(--space-5) var(--space-6);
    background: var(--glass-bg);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    color: white;
    font-size: var(--text-base);
    font-family: inherit;
    transition: var(--transition-base);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
}

/* Specific styling for select elements */
select.form-input {
    background-color: rgba(26, 32, 56, 0.8);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 1rem center;
    background-repeat: no-repeat;
    background-size: 1.2em 1.2em;
    padding-right: 3rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    color: white;
}

/* Dropdown Options Styling with better contrast */
select.form-input option {
    background-color: #1a2038;
    color: #ffffff;
    padding: 12px 16px;
    border: none;
    font-size: var(--text-base);
    line-height: 1.6;
    font-weight: 500;
}

select.form-input option:hover {
    background-color: #2d3748;
    color: var(--accent-neon);
}

select.form-input option:checked,
select.form-input option:focus {
    background-color: var(--primary-600);
    color: var(--accent-neon);
    font-weight: 600;
}

/* Option group styling */
select.form-input optgroup {
    background-color: #0a0e1a;
    color: var(--accent-neon);
    font-weight: 700;
    font-style: normal;
    padding: 8px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Disabled option styling */
select.form-input option:disabled {
    background-color: #2d3748;
    color: rgba(255, 255, 255, 0.4);
    cursor: not-allowed;
}

/* Focus states */
select.form-input:focus {
    outline: none;
    border-color: var(--accent-neon);
    box-shadow: 0 0 0 4px rgba(0, 255, 136, 0.2), 0 0 20px rgba(0, 255, 136, 0.3);
    background-color: rgba(26, 32, 56, 0.9);
    transform: translateY(-2px);
}

select.form-input:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background-color: rgba(26, 32, 56, 0.85);
}

/* Firefox specific fixes */
@-moz-document url-prefix() {
    select.form-input {
        background-image: none;
        padding-right: var(--space-6);
    }
    
    select.form-input option {
        background-color: #1a2038 !important;
        color: #ffffff !important;
    }
    
    select.form-input option:hover {
        background-color: #2d3748 !important;
        color: #00ff88 !important;
    }
}

/* WebKit specific enhancements */
@media screen and (-webkit-min-device-pixel-ratio:0) {
    select.form-input {
        background-color: rgba(26, 32, 56, 0.9);
    }
    
    select.form-input option {
        background: #1a2038;
        color: white;
    }
}

/* Edge/IE specific fixes */
@supports (-ms-ime-align: auto) {
    select.form-input {
        background-color: #1a2038;
        color: white;
    }
    
    select.form-input option {
        background-color: #1a2038;
        color: white;
    }
}

/* Mobile specific select styling */
@media (max-width: 768px) {
    select.form-input {
        font-size: 16px; /* Prevents zoom on iOS */
        background-color: rgba(26, 32, 56, 0.95);
    }
    
    select.form-input option {
        padding: 14px 16px;
        font-size: 16px;
        background-color: #1a2038;
        color: #ffffff;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    select.form-input {
        background-color: #000000;
        border-color: #ffffff;
        color: #ffffff;
    }
    
    select.form-input option {
        background-color: #000000;
        color: #ffffff;
        border: 1px solid #ffffff;
    }
    
    select.form-input option:hover,
    select.form-input option:focus {
        background-color: #ffffff;
        color: #000000;
    }
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-neon);
    box-shadow: 0 0 0 4px rgba(0, 255, 136, 0.2), 0 0 20px rgba(0, 255, 136, 0.3);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.form-input:valid {
    border-color: var(--accent-neon);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
    font-family: inherit;
    line-height: 1.6;
}

/* Advanced Checkbox Design */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-4);
    margin-top: var(--space-6);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--text-sm);
    line-height: 1.6;
    cursor: pointer;
    user-select: none;
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
    background: var(--glass-bg);
    border: 1px solid transparent;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.checkbox-label:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 255, 136, 0.2);
    transform: translateY(-2px);
}

.checkbox-label input[type="checkbox"] {
    appearance: none;
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-sm);
    background: transparent;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
    transition: var(--transition-base);
}

.checkbox-label input[type="checkbox"]:checked {
    background: var(--gradient-neon);
    border-color: var(--accent-neon);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.5);
    transform: scale(1.1);
}

.checkbox-label input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--primary-900);
    font-weight: 900;
    font-size: 14px;
}

/* Consent Section */
.consent-section {
    margin-top: var(--space-10);
    padding-top: var(--space-8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 255, 136, 0.02);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
}

/* Review Content */
.review-content {
    background: rgba(0, 255, 136, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.2);
    padding: var(--space-8);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-8);
    color: white;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.review-content h4 {
    color: var(--accent-neon);
    margin-bottom: var(--space-4);
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.review-content p {
    margin-bottom: var(--space-3);
    font-size: var(--text-sm);
    line-height: 1.6;
}

.review-content strong {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

/* Premium Form Navigation */
.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--space-12);
    gap: var(--space-4);
    flex-wrap: wrap;
}

/* Advanced Button Styles */
.btn {
    padding: var(--space-5) var(--space-10);
    border: none;
    border-radius: var(--radius-full);
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-base);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    min-height: 60px;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.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 {
    background: var(--gradient-neon);
    color: var(--primary-900);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-intense), var(--shadow-neon);
}

.btn-secondary {
    background: var(--glass-bg);
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
}

.btn-success {
    background: var(--gradient-neon);
    color: var(--primary-900);
    box-shadow: var(--shadow-neon);
}

.btn-success:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-intense), var(--shadow-neon);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    pointer-events: none;
}

.btn:active {
    transform: scale(0.98);
}

/* ============================================================================
   PREMIUM FOOTER DESIGN
   ============================================================================ */

.footer {
    background: var(--gradient-dark);
    color: white;
    padding: var(--space-20) 0 var(--space-8);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 255, 136, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-10);
    margin-bottom: var(--space-12);
    position: relative;
    z-index: 2;
}

.footer-section h3 {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-6);
    background: var(--gradient-neon);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 10px rgba(0, 255, 136, 0.3));
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    line-height: 1.8;
    transition: var(--transition-base);
    margin-bottom: var(--space-3);
    display: block;
    font-size: var(--text-sm);
}

.footer-section a:hover {
    color: var(--accent-neon);
    transform: translateX(10px);
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.social-links {
    display: flex;
    gap: var(--space-4);
    margin-top: var(--space-6);
}

.social-link {
    width: 50px;
    height: 50px;
    background: var(--glass-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-neon);
    opacity: 0;
    z-index: -1;
    transition: var(--transition-base);
}

.social-link:hover::before {
    opacity: 1;
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1) rotate(360deg);
    color: var(--primary-900);
    box-shadow: var(--shadow-neon);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-8);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 2;
}

.footer-bottom p {
    margin-bottom: var(--space-2);
    font-size: var(--text-sm);
}

.disclaimer {
    font-size: var(--text-xs);
    opacity: 0.7;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ============================================================================
   ADVANCED LOADING & NOTIFICATIONS
   ============================================================================ */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 26, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9998;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.loading-overlay.show {
    display: flex;
}

.loading-content {
    text-align: center;
    color: white;
    max-width: 400px;
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    border: 1px solid var(--glass-border);
}

.loading-spinner {
    width: 80px;
    height: 80px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid var(--accent-neon);
    border-right: 4px solid var(--accent-purple);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto var(--space-6);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
}

.loading-content h3 {
    margin-bottom: var(--space-3);
    font-family: var(--font-display);
    font-size: var(--text-xl);
    background: var(--gradient-neon);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.loading-content p {
    opacity: 0.8;
    font-size: var(--text-sm);
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.7);
}

/* Premium Notification System */
.notification {
    position: fixed;
    top: 100px;
    right: var(--space-6);
    max-width: 450px;
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    color: white;
    font-weight: 600;
    box-shadow: var(--shadow-intense);
    transform: translateX(500px);
    transition: var(--transition-slow);
    z-index: 1001;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
}

.notification.show {
    transform: translateX(0);
    animation: notificationSlide 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes notificationSlide {
    0% {
        transform: translateX(500px) scale(0.8);
        opacity: 0;
    }
    100% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

.notification-success {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(56, 161, 105, 0.2));
    border-color: rgba(0, 255, 136, 0.3);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.2);
}

.notification-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.2));
    border-color: rgba(239, 68, 68, 0.3);
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.2);
}

.notification-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.2));
    border-color: rgba(245, 158, 11, 0.3);
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.2);
}

.notification-close {
    position: absolute;
    top: var(--space-3);
    right: var(--space-4);
    background: none;
    border: none;
    color: white;
    font-size: var(--text-lg);
    cursor: pointer;
    opacity: 0.7;
    transition: var(--transition-base);
    padding: var(--space-2);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

/* Error Message Styles */
.error-message {
    color: #fc8181;
    font-size: var(--text-sm);
    margin-top: var(--space-2);
    display: block;
}

.form-group.error .form-input {
    border-color: #fc8181;
    box-shadow: 0 0 0 4px rgba(252, 129, 129, 0.2);
}

/* ============================================================================
   RESPONSIVE DESIGN - MOBILE FIRST APPROACH
   ============================================================================ */

/* Large Tablets and Small Desktops */
@media (max-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .services-grid,
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: var(--space-6);
    }
    
    .floating-card {
        max-width: 280px;
    }
}

/* Tablets */
@media (max-width: 992px) {
    :root {
        --space-32: 6rem;
        --space-20: 4rem;
        --space-16: 3rem;
        --space-12: 2.5rem;
    }
    
    .container {
        max-width: 960px;
        padding: 0 var(--space-6);
    }
    
    .section {
        padding: var(--space-20) 0;
    }
    
    .hero {
        min-height: 90vh;
        padding: var(--space-16) 0;
    }
    
    .hero-stats {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: var(--space-6);
    }
    
    .form-container {
        padding: var(--space-10);
        margin: 0 var(--space-4);
    }
    
    .services-grid,
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: var(--space-6);
    }
    
    .floating-card {
        max-width: 250px;
        padding: var(--space-5);
    }
    
    .floating-card-1 {
        top: 15%;
        left: 5%;
    }
    
    .floating-card-2 {
        top: 70%;
        right: 5%;
    }
}

/* Mobile Landscape and Large Mobile */
@media (max-width: 768px) {
    :root {
        --space-32: 3rem;
        --space-20: 2.5rem;
        --space-16: 2rem;
        --space-12: 1.5rem;
        --space-10: 1.25rem;
        --space-8: 1rem;
        --space-6: 0.75rem;
    }
    
    .container {
        padding: 0 var(--space-4);
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 14, 26, 0.98);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        flex-direction: column;
        padding: var(--space-6);
        box-shadow: var(--shadow-intense);
        border-radius: 0 0 var(--radius-xl) var(--radius-xl);
        border: 1px solid var(--glass-border);
        animation: mobileMenuSlide 0.3s ease;
        z-index: 999;
    }
    
    @keyframes mobileMenuSlide {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        width: 100%;
        text-align: center;
        margin-bottom: var(--space-2);
    }
    
    .nav-menu a {
        padding: var(--space-4) var(--space-6);
        display: block;
        width: 100%;
        border-radius: var(--radius-lg);
        background: var(--glass-bg);
        border: 1px solid var(--glass-border);
    }
    
    /* Hero Section Mobile Optimization */
    .hero {
        min-height: 100vh;
        padding: calc(var(--space-16) + 80px) var(--space-4) var(--space-16);
        text-align: center;
    }
    
    .hero-content {
        padding: 0;
        max-width: 100%;
    }
    
    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
        line-height: 1.1;
        margin-bottom: var(--space-6);
        padding: 0 var(--space-2);
    }
    
    .hero-subtitle {
        font-size: clamp(1rem, 4vw, 1.25rem);
        line-height: 1.6;
        margin-bottom: var(--space-8);
        padding: 0 var(--space-2);
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: var(--space-4);
        margin: var(--space-8) 0;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-stat {
        padding: var(--space-5);
        margin: 0 var(--space-2);
    }
    
    .hero-stat-number {
        font-size: clamp(2rem, 6vw, 2.5rem);
        margin-bottom: var(--space-2);
    }
    
    .hero-stat-label {
        font-size: clamp(0.75rem, 3vw, 0.875rem);
        letter-spacing: 1px;
    }
    
    .cta-container {
        flex-direction: column;
        align-items: center;
        gap: var(--space-4);
        margin-top: var(--space-8);
        padding: 0 var(--space-4);
    }
    
    .cta-primary, 
    .cta-secondary {
        width: 100%;
        max-width: 280px;
        text-align: center;
        justify-content: center;
        padding: var(--space-4) var(--space-6);
        font-size: var(--text-base);
        min-height: 56px;
    }
    
    /* Form Mobile Optimization */
    .form-container {
        padding: var(--space-6);
        margin: var(--space-4);
        border-radius: var(--radius-xl);
        max-width: none;
    }
    
    .form-progress {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-2);
        margin-bottom: var(--space-8);
    }
    
    .progress-step {
        font-size: var(--text-xs);
        padding: var(--space-2) var(--space-3);
        min-width: auto;
        flex: 1;
        max-width: 80px;
        text-align: center;
    }
    
    .progress-step span {
        display: none;
    }
    
    .progress-step i {
        margin-right: 0;
        font-size: var(--text-base);
    }
    
    .progress-step:not(:last-child)::after {
        display: none;
    }
    
    .step-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
        margin-bottom: var(--space-6);
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    
    .form-input {
        padding: var(--space-4) var(--space-5);
        font-size: var(--text-base);
    }
    
    .form-navigation {
        flex-direction: column;
        gap: var(--space-4);
        margin-top: var(--space-8);
    }
    
    .btn {
        width: 100%;
        min-height: 52px;
        font-size: var(--text-sm);
        padding: var(--space-4) var(--space-6);
    }
    
    /* Section Mobile Optimization */
    .section {
        padding: var(--space-16) 0;
    }
    
    .section-header {
        margin-bottom: var(--space-12);
        padding: 0 var(--space-2);
    }
    
    .section-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
        margin-bottom: var(--space-4);
    }
    
    .section-subtitle {
        font-size: clamp(1rem, 4vw, 1.125rem);
        line-height: 1.6;
    }
    
    .services-grid,
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
        margin-top: var(--space-12);
    }
    
    .service-card,
    .feature-card {
        padding: var(--space-6);
        margin: 0 var(--space-2);
    }
    
    .service-icon,
    .feature-icon {
        width: 70px;
        height: 70px;
        font-size: var(--text-xl);
        margin-bottom: var(--space-4);
    }
    
    .service-title,
    .feature-card h3 {
        font-size: clamp(1.25rem, 4vw, 1.5rem);
        margin-bottom: var(--space-3);
    }
    
    .service-description,
    .feature-card p {
        font-size: var(--text-sm);
        line-height: 1.6;
        margin-bottom: var(--space-4);
    }
    
    .floating-card {
        display: none;
    }
    
    /* Contact Grid Mobile */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
        margin-top: var(--space-12);
    }
    
    .contact-card {
        padding: var(--space-6);
        margin: 0 var(--space-2);
    }
    
    .contact-icon {
        width: 60px;
        height: 60px;
        font-size: var(--text-lg);
        margin-bottom: var(--space-4);
    }
    
    .contact-card h3 {
        font-size: var(--text-lg);
        margin-bottom: var(--space-3);
    }
    
    .contact-card p {
        font-size: var(--text-base);
        margin-bottom: var(--space-2);
    }
    
    .contact-card span {
        font-size: var(--text-sm);
    }
    
    /* Checkbox Grid Mobile */
    .checkbox-grid {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }
    
    .checkbox-label {
        padding: var(--space-3);
        font-size: var(--text-sm);
    }
    
    /* Notification Mobile */
    .notification {
        right: var(--space-2);
        left: var(--space-2);
        max-width: none;
        padding: var(--space-4);
        top: 80px;
    }
    
    /* Footer Mobile */
    .footer {
        padding: var(--space-16) 0 var(--space-6);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-8);
        text-align: center;
    }
    
    .footer-section {
        padding: 0 var(--space-4);
    }
    
    .footer-section h3 {
        font-size: var(--text-lg);
        margin-bottom: var(--space-4);
    }
    
    .social-links {
        justify-content: center;
        gap: var(--space-3);
    }
    
    .social-link {
        width: 45px;
        height: 45px;
        font-size: var(--text-base);
    }
    
    .footer-bottom {
        padding-top: var(--space-6);
        padding-left: var(--space-4);
        padding-right: var(--space-4);
    }
    
    .footer-bottom p {
        font-size: var(--text-sm);
        margin-bottom: var(--space-2);
    }
    
    .disclaimer {
        font-size: var(--text-xs);
        line-height: 1.5;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-3);
    }
    
    /* Header Mobile */
    .header nav {
        padding: var(--space-3) 0;
    }
    
    .logo {
        font-size: var(--text-lg);
    }
    
    .logo i {
        font-size: 1em;
        margin-right: var(--space-2);
    }
    
    /* Hero Ultra Mobile */
    .hero {
        min-height: 100vh;
        padding: calc(var(--space-12) + 70px) var(--space-3) var(--space-12);
    }
    
    .hero-title {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
        line-height: 1.1;
        margin-bottom: var(--space-5);
    }
    
    .hero-subtitle {
        font-size: clamp(0.9rem, 3.5vw, 1.1rem);
        line-height: 1.5;
        margin-bottom: var(--space-6);
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: var(--space-3);
        margin: var(--space-6) 0;
        max-width: 280px;
    }
    
    .hero-stat {
        padding: var(--space-4);
        margin: 0;
    }
    
    .hero-stat-number {
        font-size: clamp(1.75rem, 5vw, 2.25rem);
        margin-bottom: var(--space-1);
    }
    
    .hero-stat-label {
        font-size: clamp(0.7rem, 2.5vw, 0.8rem);
        letter-spacing: 0.5px;
    }
    
    .cta-container {
        margin-top: var(--space-6);
        padding: 0 var(--space-2);
    }
    
    .cta-primary, 
    .cta-secondary {
        max-width: 260px;
        padding: var(--space-3) var(--space-5);
        font-size: var(--text-sm);
        min-height: 50px;
    }
    
    /* Sections Ultra Mobile */
    .section {
        padding: var(--space-12) 0;
    }
    
    .section-header {
        margin-bottom: var(--space-10);
        padding: 0 var(--space-1);
    }
    
    .section-title {
        font-size: clamp(1.5rem, 5vw, 2.25rem);
        margin-bottom: var(--space-3);
    }
    
    .section-title::after {
        width: 60px;
        height: 3px;
        bottom: -8px;
    }
    
    .section-subtitle {
        font-size: clamp(0.9rem, 3.5vw, 1rem);
        line-height: 1.5;
    }
    
    /* Form Ultra Mobile */
    .form-container {
        padding: var(--space-5);
        margin: var(--space-2);
    }
    
    .form-progress {
        margin-bottom: var(--space-6);
        gap: var(--space-1);
    }
    
    .progress-step {
        padding: var(--space-2);
        font-size: var(--text-xs);
        min-width: 60px;
    }
    
    .progress-step i {
        font-size: var(--text-sm);
    }
    
    .step-title {
        font-size: clamp(1.25rem, 4vw, 1.75rem);
        margin-bottom: var(--space-5);
    }
    
    .form-group {
        margin-bottom: var(--space-6);
    }
    
    .form-label {
        font-size: var(--text-xs);
        margin-bottom: var(--space-2);
    }
    
    .form-input {
        padding: var(--space-3) var(--space-4);
        font-size: var(--text-sm);
    }
    
    .form-textarea {
        min-height: 120px;
    }
    
    .checkbox-label {
        padding: var(--space-3);
        font-size: var(--text-xs);
        line-height: 1.4;
    }
    
    .checkbox-label input[type="checkbox"] {
        width: 20px;
        height: 20px;
        margin-top: 1px;
    }
    
    .btn {
        min-height: 48px;
        font-size: var(--text-xs);
        padding: var(--space-3) var(--space-5);
        letter-spacing: 0.5px;
    }
    
    /* Services Ultra Mobile */
    .services-grid,
    .features-grid {
        gap: var(--space-5);
        margin-top: var(--space-10);
    }
    
    .service-card,
    .feature-card {
        padding: var(--space-5);
        margin: 0 var(--space-1);
    }
    
    .service-icon,
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: var(--text-lg);
        margin-bottom: var(--space-3);
    }
    
    .service-title,
    .feature-card h3 {
        font-size: clamp(1.1rem, 3.5vw, 1.25rem);
        margin-bottom: var(--space-2);
        line-height: 1.2;
    }
    
    .service-description,
    .feature-card p {
        font-size: var(--text-xs);
        line-height: 1.5;
        margin-bottom: var(--space-3);
    }
    
    .service-features li {
        font-size: var(--text-xs);
        margin-bottom: var(--space-2);
    }
    
    /* Contact Ultra Mobile */
    .contact-grid {
        gap: var(--space-5);
        margin-top: var(--space-10);
    }
    
    .contact-card {
        padding: var(--space-5);
        margin: 0 var(--space-1);
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: var(--text-base);
        margin-bottom: var(--space-3);
    }
    
    .contact-card h3 {
        font-size: var(--text-base);
        margin-bottom: var(--space-2);
    }
    
    .contact-card p {
        font-size: var(--text-sm);
        margin-bottom: var(--space-1);
    }
    
    .contact-card span {
        font-size: var(--text-xs);
    }
    
    /* Footer Ultra Mobile */
    .footer {
        padding: var(--space-12) 0 var(--space-5);
    }
    
    .footer-content {
        gap: var(--space-6);
    }
    
    .footer-section {
        padding: 0 var(--space-3);
    }
    
    .footer-section h3 {
        font-size: var(--text-base);
        margin-bottom: var(--space-3);
    }
    
    .footer-section p,
    .footer-section a {
        font-size: var(--text-xs);
        line-height: 1.5;
        margin-bottom: var(--space-2);
    }
    
    .social-links {
        gap: var(--space-2);
        margin-top: var(--space-4);
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: var(--text-sm);
    }
    
    .footer-bottom {
        padding: var(--space-5) var(--space-3) 0;
    }
    
    .footer-bottom p {
        font-size: var(--text-xs);
        margin-bottom: var(--space-1);
    }
    
    .disclaimer {
        font-size: 10px;
        line-height: 1.4;
    }
    
    /* Loading Ultra Mobile */
    .loading-content {
        padding: var(--space-5);
        margin: var(--space-3);
        max-width: 300px;
    }
    
    .loading-spinner {
        width: 60px;
        height: 60px;
        margin-bottom: var(--space-5);
    }
    
    .loading-content h3 {
        font-size: var(--text-lg);
        margin-bottom: var(--space-2);
    }
    
    .loading-content p {
        font-size: var(--text-xs);
    }
    
    /* Notification Ultra Mobile */
    .notification {
        padding: var(--space-3);
        margin: var(--space-1);
        top: 70px;
        font-size: var(--text-sm);
    }
    
    .notification-close {
        width: 25px;
        height: 25px;
        font-size: var(--text-base);
        top: var(--space-2);
        right: var(--space-2);
    }
    
    /* Back to top Ultra Mobile */
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 1.5rem;
        right: 1.5rem;
        font-size: 1rem;
    }
    
    /* Review Content Ultra Mobile */
    .review-content {
        padding: var(--space-5);
        margin-bottom: var(--space-6);
    }
    
    .review-content h4 {
        font-size: var(--text-base);
        margin-bottom: var(--space-3);
    }
    
    .review-content p {
        font-size: var(--text-xs);
        line-height: 1.4;
        margin-bottom: var(--space-2);
    }
    
    /* Consent Section Ultra Mobile */
    .consent-section {
        padding: var(--space-5);
        margin-top: var(--space-8);
    }
}

/* ============================================================================
   ACCESSIBILITY & SPECIAL FEATURES
   ============================================================================ */

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --glass-bg: rgba(255, 255, 255, 0.15);
        --glass-border: rgba(255, 255, 255, 0.3);
        --accent-neon: #00ff00;
    }
    
    .form-input {
        border-width: 3px;
    }
    
    .btn {
        border: 3px solid;
    }
    
    .notification {
        border-width: 2px;
    }
}

/* Reduced Motion Support */
@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-card {
        animation: none;
        transform: none;
    }
    
    .particle {
        animation: none;
        opacity: 0.1;
    }
    
    .loader {
        animation: none;
        border: 4px solid var(--glass-border);
        border-top: 4px solid var(--accent-neon);
    }
    
    .hero::before,
    .section::before,
    .form-container::before {
        animation: none;
    }
}

/* Focus Styles for Accessibility */
button:focus,
input:focus,
select:focus,
textarea:focus,
a:focus {
    outline: 3px solid var(--accent-neon);
    outline-offset: 3px;
    box-shadow: 0 0 0 6px rgba(0, 255, 136, 0.2);
}

.btn:focus {
    outline: 3px solid white;
    outline-offset: 3px;
}

/* Print Styles */
@media print {
    .hero::before,
    .floating-card,
    .particles,
    .header,
    .mobile-menu-btn,
    .notification,
    .loading-overlay,
    .btn {
        display: none !important;
    }
    
    .section {
        padding: 2rem 0;
        break-inside: avoid;
    }
    
    .service-card,
    .feature-card {
        break-inside: avoid;
        box-shadow: none;
        border: 2px solid #333;
        background: white;
        color: black;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: white;
    }
    
    .section-title {
        color: #000;
        background: none;
        -webkit-text-fill-color: initial;
    }
}

/* Selection Styles */
::selection {
    background: rgba(0, 255, 136, 0.3);
    color: white;
}

::-moz-selection {
    background: rgba(0, 255, 136, 0.3);
    color: white;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--primary-900);
    border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-neon);
    border-radius: var(--radius-sm);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-purple);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}

/* Screen Reader Only Content */
.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;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -50px;
    left: var(--space-4);
    background: var(--gradient-neon);
    color: var(--primary-900);
    padding: var(--space-3) var(--space-6);
    text-decoration: none;
    border-radius: var(--radius-md);
    z-index: 10000;
    transition: top 0.3s ease;
    font-weight: 700;
}

.skip-link:focus {
    top: var(--space-4);
}

/* ============================================================================
   ADVANCED ANIMATIONS & MICRO-INTERACTIONS
   ============================================================================ */

/* Hover Effects for Interactive Elements */
.interactive-hover {
    transition: var(--transition-base);
    cursor: pointer;
}

.interactive-hover:hover {
    transform: translateY(-2px) scale(1.02);
}

/* Staggered Animation Delays */
.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }

/* Performance Optimizations */
.hero,
.service-card,
.feature-card,
.floating-card,
.btn {
    will-change: transform;
}

.service-card:hover,
.feature-card:hover {
    will-change: transform, box-shadow;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-neon);
}

/* High DPI Display Support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .service-icon,
    .feature-icon,
    .contact-icon {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Dark Mode Enhancement (System Preference) */
@media (prefers-color-scheme: dark) {
    /* Already optimized for dark mode */
}

/* ============================================================================
   EXPERIMENTAL & CUTTING-EDGE FEATURES
   ============================================================================ */

/* CSS Container Queries (Future-proof) */
@container (min-width: 400px) {
    .service-card {
        padding: var(--space-10);
    }
}

/* Advanced CSS Features */
@supports (backdrop-filter: blur(10px)) {
    .glass-element {
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
}

@supports not (backdrop-filter: blur(10px)) {
    .glass-element {
        background: rgba(255, 255, 255, 0.1);
    }
}

/* CSS Logical Properties for RTL Support */
.logical-spacing {
    margin-inline-start: var(--space-4);
    margin-inline-end: var(--space-4);
    padding-inline-start: var(--space-6);
    padding-inline-end: var(--space-6);
}

/* Advanced Color Functions */
.dynamic-color {
    color: color(display-p3 0 1 0.5);
    background: oklch(70% 0.25 142);
}

/* Modern CSS Grid Features */
.advanced-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: clamp(1rem, 4vw, 3rem);
}

/* Subgrid Support */
@supports (grid-template-rows: subgrid) {
    .subgrid-container {
        display: grid;
        grid-template-rows: subgrid;
    }
}

/* ============================================================================
   FINAL OPTIMIZATIONS
   ============================================================================ */

/* Critical path CSS is inlined above */
/* Non-critical animations and effects are loaded separately */

/* Preload important fonts */
@font-face {
    font-family: 'Inter';
    font-display: swap;
    src: url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
}

/* Optimize font loading */
.font-preload {
    font-display: swap;
}

/* Resource hints for better performance */
.preload-hint::before {
    content: '';
    display: none;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1 1"><rect fill="%23667eea" width="1" height="1"/></svg>');
}

/* Tooltip Styles */
.tooltip {
    position: absolute;
    background: #333;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

/* Custom Form Select Styles */
.form-input,
select.form-input {
    width: 100%;
    padding: var(--space-5) var(--space-6);
    background: var(--glass-bg);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    color: white;
    font-size: var(--text-base);
    font-family: inherit;
    transition: var(--transition-base);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
}

select.form-input {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 1rem center;
    background-repeat: no-repeat;
    background-size: 1.2em 1.2em;
    padding-right: 3rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

/* Dropdown Options Styling */
select.form-input option {
    background: var(--primary-800);
    color: white;
    padding: var(--space-3) var(--space-4);
    border: none;
    font-size: var(--text-base);
    line-height: 1.6;
}

select.form-input option:hover,
select.form-input option:focus {
    background: var(--primary-600);
    color: var(--accent-neon);
}

select.form-input option:checked {
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
}

/* For better browser compatibility */
select.form-input optgroup {
    background: var(--primary-700);
    color: var(--accent-neon);
    font-weight: 600;
    font-style: normal;
    padding: var(--space-2) var(--space-4);
}

/* Focus and hover states for select */
select.form-input:focus {
    outline: none;
    border-color: var(--accent-neon);
    box-shadow: 0 0 0 4px rgba(0, 255, 136, 0.2), 0 0 20px rgba(0, 255, 136, 0.3);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

select.form-input:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.02);
}

/* Custom dropdown for better control */
.custom-select {
    position: relative;
    display: block;
    width: 100%;
}

.custom-select::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid rgba(255, 255, 255, 0.7);
    pointer-events: none;
    transition: var(--transition-base);
}

.custom-select:hover::after {
    border-top-color: var(--accent-neon);
}

/* Fix for mobile Safari */
@supports (-webkit-touch-callout: none) {
    select.form-input {
        background-image: none;
    }
    
    .custom-select select {
        background: transparent;
    }
}

/* Dark theme support for system preference */
@media (prefers-color-scheme: dark) {
    select.form-input option {
        background: #1a1a1a;
        color: #ffffff;
    }
    
    select.form-input option:hover,
    select.form-input option:focus {
        background: #333333;
        color: var(--accent-neon);
    }
}

/* Final performance optimizations */
.will-change-transform {
    will-change: transform;
}

.will-change-opacity {
    will-change: opacity;
}

/* End of Advanced CSS Framework */