/* ===== MODERN JULES COMMUNITY HUB - ELEMENTOR INSPIRED ===== */

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

/* Modern CSS Variables */
:root {
    /* NYC Subway Brand Colors */
    --primary-subway: #2d2d2d;
    --primary-steel: #5a5a5a;
    --primary-gradient: linear-gradient(135deg, #2d2d2d 0%, #4a4a4a 100%);
    --primary-light: #f5f5f5;
    --primary-hover: #404040;
    
    /* Netlify-Style Beautiful Gradient Colors - EXACT MATCH */
    --netlify-mint: #F0FDF4;
    --netlify-light-mint: #F7FEF9;
    --netlify-blue: #F8FAFF;
    --netlify-light-blue: #F3F4F6;
    --netlify-gradient: linear-gradient(120deg, #F7FEF9 0%, #F0FDF4 25%, #F8FAFF 75%, #F3F4F6 100%);
    --netlify-gradient-reverse: linear-gradient(120deg, #F3F4F6 0%, #F8FAFF 25%, #F0FDF4 75%, #F7FEF9 100%);
    
    /* NYC Subway Map Style Colors */
    --subway-blue: #0039A6;
    --subway-green: #00933C;
    --subway-orange: #FF6319;
    --subway-purple: #B933AD;
    --subway-red: #EE352E;
    --subway-yellow: #FCCC0A;
    --subway-gray: #A7A9AC;
    --subway-brown: #996633;
    
    /* Secondary Colors */
    --secondary-blue: #3b82f6;
    --secondary-teal: #06b6d4;
    --accent-orange: #f59e0b;
    --accent-green: #10b981;
    
    /* Neutral Colors */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Text Colors */
    --text-primary: var(--gray-900);
    --text-secondary: var(--gray-600);
    --text-light: var(--gray-500);
    --text-white: var(--white);
    
    /* Background Colors */
    --bg-primary: var(--white);
    --bg-secondary: var(--gray-50);
    --bg-tertiary: var(--gray-100);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Font Sizes */
    --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 */
    
    /* Spacing */
    --space-1: 0.25rem;   /* 4px */
    --space-2: 0.5rem;    /* 8px */
    --space-3: 0.75rem;   /* 12px */
    --space-4: 1rem;      /* 16px */
    --space-5: 1.25rem;   /* 20px */
    --space-6: 1.5rem;    /* 24px */
    --space-8: 2rem;      /* 32px */
    --space-10: 2.5rem;   /* 40px */
    --space-12: 3rem;     /* 48px */
    --space-16: 4rem;     /* 64px */
    --space-20: 5rem;     /* 80px */
    --space-24: 6rem;     /* 96px */
    --space-32: 8rem;     /* 128px */
    
    /* Layout */
    --container-max: 1280px;
    --container-padding: 1.5rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-colored: 0 10px 15px -3px rgb(124 58 237 / 0.1), 0 4px 6px -2px rgb(124 58 237 / 0.05);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--netlify-gradient);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

h1 {
    font-size: var(--text-5xl);
    font-weight: 800;
    letter-spacing: -0.025em;
}

h2 {
    font-size: var(--text-4xl);
    font-weight: 700;
    letter-spacing: -0.025em;
}

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

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

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

h6 {
    font-size: var(--text-lg);
    font-weight: 600;
}

p {
    margin-bottom: var(--space-4);
    color: var(--text-secondary);
    line-height: 1.7;
}

.text-large {
    font-size: var(--text-lg);
    line-height: 1.75;
}

.text-small {
    font-size: var(--text-sm);
}

/* ===== UTILITY CLASSES ===== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

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

.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight {
    background: linear-gradient(135deg, var(--subway-blue) 0%, var(--subway-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

/* ===== MODERN BUTTONS ===== */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-family: var(--font-primary);
    font-size: var(--text-base);
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition);
    text-transform: none;
    letter-spacing: 0;
    position: relative;
    overflow: hidden;
}

.button-primary {
    background: linear-gradient(135deg, var(--subway-blue) 0%, var(--subway-green) 100%);
    color: var(--white);
    box-shadow: 0 10px 15px -3px rgba(0, 57, 166, 0.2), 0 4px 6px -2px rgba(0, 57, 166, 0.1);
}

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

.button-secondary {
    background: var(--white);
    color: var(--subway-blue);
    border: 2px solid var(--subway-blue);
    box-shadow: var(--shadow-sm);
}

.button-secondary:hover {
    background: var(--subway-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.button-large {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-lg);
    border-radius: var(--radius-xl);
}

.button-small {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
}

/* ===== HEADER & NAVIGATION - NYC SUBWAY THEME ===== */
.site-header {
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: none;
    box-shadow: none;
}

/* .site-header::before - removed for transparent header */

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--container-padding);
}

.logo {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: #dc2626;
    text-decoration: none;
    letter-spacing: -0.02em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    
    display: flex;
    align-items: center;
    gap: 8px;
    
    position: relative;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo::before {
    content: '🚇';
    font-size: 26px;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

.logo:hover {
    transform: translateY(-1px);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

/* ===== ADVANCED 3D NYC SUBWAY NAVIGATION ===== */
.main-nav ul {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 16px;
    padding: 6px;
    backdrop-filter: blur(30px) saturate(200%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    
    /* Advanced 3D Navigation Enhancement */
    transform: translateZ(20px) perspective(1000px);
    transform-style: preserve-3d;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(255, 255, 255, 0.1) inset;
    position: relative;
}

.main-nav ul::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        var(--subway-red), var(--subway-blue), var(--subway-green), 
        var(--subway-orange), var(--subway-purple), var(--subway-yellow));
    border-radius: 18px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.main-nav ul:hover {
    transform: translateZ(40px) rotateX(-5deg) rotateY(2deg) scale(1.02);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(255, 255, 255, 0.2) inset;
}

.main-nav ul:hover::before {
    opacity: 0.3;
    animation: navGlow 2s ease-in-out infinite alternate;
}

@keyframes navGlow {
    0% { opacity: 0.2; }
    100% { opacity: 0.5; }
}

.main-nav a {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    letter-spacing: 0.02em;
    
    display: flex;
    align-items: center;
    gap: 10px;
    
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 10px 16px;
    
    position: relative;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform-style: preserve-3d;
    
    white-space: nowrap;
    overflow: hidden;
}

.main-nav a::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.main-nav a:hover::after {
    left: 100%;
}

/* Elegant subway line indicators */
.main-nav a::before {
    content: '';
    width: 3px;
    height: 20px;
    border-radius: 2px;
    flex-shrink: 0;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0.6;
}

/* Subway line colors - refined and sophisticated */
.main-nav a[href="/"]::before { 
    background: linear-gradient(135deg, #FF6B6B 0%, #EE5A52 100%); /* Red Line - Modern */
}

.main-nav a[href="docs.html"]::before { 
    background: linear-gradient(135deg, #4ECDC4 0%, #44A08D 100%); /* Teal Line - Documentation */
}

.main-nav a[href="changelog.html"]::before { 
    background: linear-gradient(135deg, #A8E6CF 0%, #88D8A3 100%); /* Green Line - Updates */
}

.main-nav a[href="guides.html"]::before { 
    background: linear-gradient(135deg, #FFD93D 0%, #6BCF7F 100%); /* Yellow-Green - Learning */
}

.main-nav a[href="showcase.html"]::before { 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); /* Purple Line - Showcase */
}

/* Advanced Hover States - Premium 3D micro-interactions */
.main-nav a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    transform: translateZ(10px) rotateX(-5deg) scale(1.05);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(255, 255, 255, 0.3) inset;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.main-nav a:hover::before {
    opacity: 1;
    height: 28px;
    width: 5px;
    box-shadow: 
        0 0 15px currentColor,
        0 0 30px currentColor;
    animation: pulse 1.5s ease-in-out infinite;
}

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

/* Advanced Active state */
.main-nav a.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    transform: translateZ(8px) scale(1.02);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.3),
        0 0 15px rgba(255, 255, 255, 0.2) inset;
}

.main-nav a.active::before {
    opacity: 1;
    height: 28px;
    width: 5px;
    animation: activeGlow 2s ease-in-out infinite alternate;
}

@keyframes activeGlow {
    0% {
        box-shadow: 
            0 0 10px currentColor,
            0 0 20px currentColor;
    }
    100% {
        box-shadow: 
            0 0 20px currentColor,
            0 0 40px currentColor;
    }
}

/* Subtle focus states for accessibility */
.main-nav a:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

.nav-cta-button {
    margin-left: var(--space-4);
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%) !important;
    border: 2px solid #333 !important;
    color: #000000 !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    font-family: 'Courier New', monospace !important;
    padding: 12px 20px !important;
    border-radius: 6px !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    position: relative !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    
    /* 3D CTA Transform */
    transform: translateZ(8px) rotateX(2deg);
    transform-style: preserve-3d;
}

.nav-cta-button:hover {
    transform: translateZ(15px) rotateX(-5deg) scale(1.05) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
}

/* Subway ticket barcode design */
.nav-cta-button::before {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 8px;
    right: 8px;
    height: 8px;
    background-image: 
        linear-gradient(90deg, 
            #000 0%, #000 1px, transparent 1px, transparent 2px,
            #000 2px, #000 4px, transparent 4px, transparent 5px,
            #000 5px, #000 6px, transparent 6px, transparent 8px,
            #000 8px, #000 10px, transparent 10px, transparent 11px,
            #000 11px, #000 12px, transparent 12px, transparent 14px,
            #000 14px, #000 16px, transparent 16px, transparent 17px,
            #000 17px, #000 18px, transparent 18px, transparent 20px,
            #000 20px, #000 22px, transparent 22px, transparent 23px,
            #000 23px, #000 24px, transparent 24px, transparent 26px);
    background-size: 26px 100%;
    background-repeat: repeat-x;
    border-radius: 1px;
}

.nav-cta-button::after {
    content: '🎫 METRO PASS';
    position: absolute;
    top: -2px;
    right: -2px;
    font-size: 8px;
    background: #ff6b35;
    color: white;
    padding: 1px 4px;
    border-radius: 2px;
    font-weight: bold;
}

.nav-cta-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4) !important;
}

/* ===== REDDIT JOIN BUTTON - RED SUBWAY TICKET ===== */
a.reddit-join-button,
a.reddit-join-button:link,
a.reddit-join-button:visited,
a.reddit-join-button:active {
    display: inline-block !important;
    background: #dc2626 !important;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
    border: 3px solid #000000 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    font-family: 'Courier New', monospace !important;
    padding: 14px 28px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3) !important;
    position: relative !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    min-width: 180px !important;
    text-align: center !important;
}

/* Red ticket barcode design */
a.reddit-join-button::before {
    content: '' !important;
    position: absolute !important;
    bottom: 4px !important;
    left: 8px !important;
    right: 8px !important;
    height: 12px !important;
    background: #000000 !important;
    background-image: 
        linear-gradient(90deg, 
            #000 0%, #000 2px, transparent 2px, transparent 4px,
            #000 4px, #000 6px, transparent 6px, transparent 8px,
            #000 8px, #000 9px, transparent 9px, transparent 11px,
            #000 11px, #000 14px, transparent 14px, transparent 16px,
            #000 16px, #000 17px, transparent 17px, transparent 19px,
            #000 19px, #000 22px, transparent 22px, transparent 24px,
            #000 24px, #000 25px, transparent 25px, transparent 27px,
            #000 27px, #000 30px, transparent 30px, transparent 32px) !important;
    background-size: 32px 100% !important;
    background-repeat: repeat-x !important;
    border-radius: 1px !important;
    z-index: 1 !important;
}

/* Reddit logo badge */
a.reddit-join-button::after {
    content: '🚇 REDDIT' !important;
    position: absolute !important;
    top: -4px !important;
    right: -4px !important;
    font-size: 10px !important;
    background: #ff4500 !important;
    color: #ffffff !important;
    padding: 3px 6px !important;
    border-radius: 4px !important;
    font-weight: bold !important;
    border: 2px solid #000000 !important;
    z-index: 2 !important;
}

a.reddit-join-button:hover {
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.5) !important;
    filter: brightness(1.1) !important;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
}

/* ===== CODING WORD WITH RED STRIPES ===== */
.coding-striped {
    position: relative;
    display: inline-block;
    color: #000000;
    font-weight: 800;
}

.coding-striped::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(0deg, transparent 0%, transparent 15%, #dc2626 15%, #dc2626 25%, transparent 25%, transparent 40%, #dc2626 40%, #dc2626 50%, transparent 50%, transparent 65%, #dc2626 65%, #dc2626 75%, transparent 75%, transparent 90%, #dc2626 90%, #dc2626 100%);
    pointer-events: none;
    z-index: 1;
    opacity: 0.8;
}

.coding-striped::after {
    content: 'Coding';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    color: #000000;
    z-index: 2;
    font-weight: inherit;
}

.mobile-nav-toggle {
    display: none;
    background: rgba(0, 57, 166, 0.2);
    border: 1px solid var(--subway-blue);
    border-radius: 4px;
    cursor: pointer;
    padding: var(--space-2);
    color: #ffffff;
    transition: var(--transition);
}

.mobile-nav-toggle:hover {
    background: rgba(0, 57, 166, 0.4);
    box-shadow: 0 0 8px rgba(0, 57, 166, 0.3);
}

/* ===== ADVANCED 3D HERO SECTION ===== */
.hero-section {
    background: var(--netlify-gradient);
    background-image: url('nyc_subway_map.png?v=2');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: var(--space-20) 0;
    position: relative;
    overflow: hidden;
    
    /* Advanced 3D Perspective Container */
    perspective: 2000px;
    transform-style: preserve-3d;
    min-height: 100vh;
}

/* 3D WebGL Canvas */
.three-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.8;
}

/* 3D Particle Container */
.particle-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

/* 3D Floating Particles */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    opacity: 0.7;
    animation: float3d 20s linear infinite;
    transform-style: preserve-3d;
}

.particle.subway-red { background: var(--subway-red); box-shadow: 0 0 10px var(--subway-red); }
.particle.subway-blue { background: var(--subway-blue); box-shadow: 0 0 10px var(--subway-blue); }
.particle.subway-green { background: var(--subway-green); box-shadow: 0 0 10px var(--subway-green); }
.particle.subway-orange { background: var(--subway-orange); box-shadow: 0 0 10px var(--subway-orange); }
.particle.subway-purple { background: var(--subway-purple); box-shadow: 0 0 10px var(--subway-purple); }
.particle.subway-yellow { background: var(--subway-yellow); box-shadow: 0 0 10px var(--subway-yellow); }

@keyframes float3d {
    0% {
        transform: translate3d(0, 100vh, 0) rotateX(0deg) rotateY(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translate3d(0, -100vh, 0) rotateX(360deg) rotateY(180deg);
        opacity: 0;
    }
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.45);
    background: radial-gradient(ellipse at top left, rgba(247, 254, 249, 0.35) 0%, rgba(255, 255, 255, 0.3) 50%),
                radial-gradient(ellipse at bottom right, rgba(248, 250, 255, 0.35) 0%, rgba(255, 255, 255, 0.3) 50%);
    pointer-events: none;
    z-index: 1;
}

/* NYC Subway Map Style Background Elements */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        /* Horizontal subway lines */
        linear-gradient(90deg, transparent 0%, transparent 20%, var(--subway-blue) 20%, var(--subway-blue) 22%, transparent 22%, transparent 100%),
        linear-gradient(90deg, transparent 0%, transparent 60%, var(--subway-green) 60%, var(--subway-green) 62%, transparent 62%, transparent 100%),
        /* Vertical connection lines */
        linear-gradient(0deg, transparent 0%, transparent 30%, var(--subway-orange) 30%, var(--subway-orange) 32%, transparent 32%, transparent 100%),
        linear-gradient(0deg, transparent 0%, transparent 70%, var(--subway-purple) 70%, var(--subway-purple) 72%, transparent 72%, transparent 100%);
    background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%;
    background-position: 0 30%, 0 70%, 15% 0, 85% 0;
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
}

/* Subway station dots at feature card positions */
.jules-features-grid {
    position: relative;
}

/* .jules-features-grid::before - removed grey overlay */

.hero-title {
    font-size: clamp(calc(var(--text-4xl) * 0.75), 3.75vw, calc(var(--text-6xl) * 0.75));
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-4);
    position: relative;
    z-index: 10;
    
    /* Advanced 3D Text Effects */
    transform: translateZ(50px) perspective(1000px);
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.5),
        4px 4px 8px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(255, 255, 255, 0.1),
        0 0 40px rgba(124, 58, 237, 0.2);
    transform-style: preserve-3d;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    animation: titleFloat 6s ease-in-out infinite;
}

.hero-title:hover {
    transform: translateZ(80px) rotateX(-5deg) rotateY(2deg) scale(1.02);
    text-shadow: 
        5px 5px 15px rgba(0, 0, 0, 0.8),
        0 0 50px rgba(255, 255, 255, 0.3),
        0 0 80px rgba(124, 58, 237, 0.4);
    animation-play-state: paused;
}

@keyframes titleFloat {
    0%, 100% {
        transform: translateZ(50px) rotateX(0deg) rotateY(0deg);
    }
    25% {
        transform: translateZ(60px) rotateX(1deg) rotateY(-1deg);
    }
    50% {
        transform: translateZ(55px) rotateX(-1deg) rotateY(1deg);
    }
    75% {
        transform: translateZ(65px) rotateX(1deg) rotateY(-0.5deg);
    }
}

.hero-subtitle {
    font-size: var(--text-xl);
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: var(--space-8);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 10;
    
    /* Advanced 3D Layered Effect */
    transform: translateZ(25px) perspective(800px);
    transform-style: preserve-3d;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    animation: subtitleGlow 8s ease-in-out infinite;
    text-shadow: 
        1px 1px 2px rgba(0, 0, 0, 0.3),
        0 0 15px rgba(255, 255, 255, 0.1);
}

.hero-subtitle:hover {
    transform: translateZ(40px) rotateX(-2deg) scale(1.01);
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.5),
        0 0 25px rgba(255, 255, 255, 0.2);
    animation-play-state: paused;
}

@keyframes subtitleGlow {
    0%, 100% {
        text-shadow: 
            1px 1px 2px rgba(0, 0, 0, 0.3),
            0 0 15px rgba(255, 255, 255, 0.1);
    }
    50% {
        text-shadow: 
            1px 1px 2px rgba(0, 0, 0, 0.3),
            0 0 25px rgba(255, 255, 255, 0.2),
            0 0 35px rgba(124, 58, 237, 0.1);
    }
}

.hero-cta-button {
    font-size: var(--text-lg);
    padding: var(--space-4) var(--space-8);
    position: relative;
    z-index: 10;
}

/* Ensure all hero content appears above gradient overlays */
.hero-section > * {
    position: relative;
    z-index: 10;
}

/* ===== ADVANCED 3D FLOATING SUBWAY ROUTE BADGES ===== */
.jules-features-grid {
    perspective: 1500px;
    transform-style: preserve-3d;
    position: relative;
}

.jules-features-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(124, 58, 237, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.jules-feature-item {
    position: relative;
    z-index: 15;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 2px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 20px !important;
    padding: var(--space-6) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    color: white !important;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
    transform-style: preserve-3d;
    cursor: pointer;
    overflow: hidden;
}

.jules-feature-item::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.jules-feature-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 50%;
    z-index: -1;
}

/* Remove all individual tile backgrounds and borders */
.jules-feature-item:nth-child(1),
.jules-feature-item:nth-child(2),
.jules-feature-item:nth-child(3),
.jules-feature-item:nth-child(4),
.jules-feature-item:nth-child(5),
.jules-feature-item:nth-child(6) {
    border: none !important;
    background: transparent !important;
}

/* Advanced 3D Subway station-style icons */
.jules-feature-item > div:first-child {
    background: rgba(0, 0, 0, 0.3) !important;
    border: 3px solid !important;
    border-radius: 50% !important;
    width: 70px !important;
    height: 70px !important;
    margin: 0 auto var(--space-4) !important;
    font-size: var(--text-2xl) !important;
    position: relative !important;
    
    /* Advanced 3D Transform Effects */
    transform: translateZ(30px) rotateX(5deg) perspective(500px);
    transform-style: preserve-3d;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.4),
        0 0 25px rgba(255, 255, 255, 0.15) inset,
        0 0 50px rgba(255, 255, 255, 0.05);
    animation: iconFloat 4s ease-in-out infinite;
}

.jules-feature-item > div:first-child::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    background: linear-gradient(45deg, currentColor, transparent, currentColor);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.jules-feature-item:hover > div:first-child {
    transform: translateZ(60px) rotateX(-15deg) rotateY(10deg) scale(1.15);
    box-shadow: 
        0 30px 70px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(255, 255, 255, 0.3) inset,
        0 0 80px currentColor;
    animation-play-state: paused;
}

.jules-feature-item:hover > div:first-child::before {
    opacity: 0.3;
    animation: iconGlow 1.5s ease-in-out infinite alternate;
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateZ(30px) rotateX(5deg) rotateY(0deg);
    }
    50% {
        transform: translateZ(35px) rotateX(3deg) rotateY(2deg);
    }
}

@keyframes iconGlow {
    0% { opacity: 0.2; }
    100% { opacity: 0.5; }
}

.jules-feature-item:nth-child(1) > div:first-child { border-color: var(--subway-red) !important; color: var(--subway-red) !important; }
.jules-feature-item:nth-child(2) > div:first-child { border-color: var(--subway-blue) !important; color: var(--subway-blue) !important; }
.jules-feature-item:nth-child(3) > div:first-child { border-color: var(--subway-green) !important; color: var(--subway-green) !important; }
.jules-feature-item:nth-child(4) > div:first-child { border-color: var(--subway-orange) !important; color: var(--subway-orange) !important; }
.jules-feature-item:nth-child(5) > div:first-child { border-color: var(--subway-purple) !important; color: var(--subway-purple) !important; }
.jules-feature-item:nth-child(6) > div:first-child { border-color: var(--subway-yellow) !important; color: var(--subway-yellow) !important; }

/* Enhanced titles for subway station features */
.jules-feature-item h4 {
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: var(--text-lg) !important;
    text-transform: uppercase !important;
    letter-spacing: 1.2px !important;
    margin-bottom: var(--space-3) !important;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.7),
        0 0 10px rgba(255, 255, 255, 0.3) !important;
    transition: all 0.3s ease;
    transform: translateZ(10px);
}

.jules-feature-item:hover h4 {
    text-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(255, 255, 255, 0.5),
        0 0 30px currentColor;
    transform: translateZ(15px);
}

.jules-feature-item p {
    color: #f0f0f0 !important;
    font-size: var(--text-sm) !important;
    line-height: 1.6 !important;
    margin: 0 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
    transition: all 0.3s ease;
    transform: translateZ(5px);
}

.jules-feature-item:hover p {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6) !important;
    transform: translateZ(10px);
}

/* Fixed floating badges - no hover movement */
.jules-feature-item:hover {
    transform: translateZ(20px) rotateX(-5deg) rotateY(2deg) scale(1.02) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(255, 255, 255, 0.1) inset,
        0 0 80px rgba(255, 255, 255, 0.05) !important;
}

.jules-feature-item:hover::before {
    opacity: 1;
}

.jules-feature-item:hover::after {
    width: 100%;
    height: 100%;
}

/* Individual card color enhancements */
.jules-feature-item:nth-child(1):hover { 
    box-shadow: 
        0 25px 60px rgba(238, 53, 46, 0.3),
        0 0 40px rgba(238, 53, 46, 0.1) inset !important;
}

.jules-feature-item:nth-child(2):hover { 
    box-shadow: 
        0 25px 60px rgba(0, 57, 166, 0.3),
        0 0 40px rgba(0, 57, 166, 0.1) inset !important;
}

.jules-feature-item:nth-child(3):hover { 
    box-shadow: 
        0 25px 60px rgba(0, 147, 60, 0.3),
        0 0 40px rgba(0, 147, 60, 0.1) inset !important;
}

.jules-feature-item:nth-child(4):hover { 
    box-shadow: 
        0 25px 60px rgba(255, 99, 25, 0.3),
        0 0 40px rgba(255, 99, 25, 0.1) inset !important;
}

.jules-feature-item:nth-child(5):hover { 
    box-shadow: 
        0 25px 60px rgba(185, 51, 173, 0.3),
        0 0 40px rgba(185, 51, 173, 0.1) inset !important;
}

.jules-feature-item:nth-child(6):hover { 
    box-shadow: 
        0 25px 60px rgba(252, 204, 10, 0.3),
        0 0 40px rgba(252, 204, 10, 0.1) inset !important;
}

/* ===== STRAIGHT SUBWAY LINE CONNECTIONS ===== */
.jules-features-grid {
    position: relative;
}

/* Fixed straight subway lines connecting the route badges */
.jules-feature-item::after {
    content: '';
    position: absolute;
    top: 30px;
    left: calc(50% + 30px);
    width: calc(100% - 30px);
    height: 5px;
    z-index: 2;
    opacity: 0.9;
    pointer-events: none;
    border-radius: 2px;
}

/* Red Line: D → A */
.jules-feature-item:nth-child(1)::after {
    background: var(--subway-red);
}

/* Blue Line: A → G */
.jules-feature-item:nth-child(2)::after {
    background: var(--subway-blue);
}

/* Green Line: G → B */
.jules-feature-item:nth-child(3)::after {
    background: var(--subway-green);
}

/* Orange Line: B → N */
.jules-feature-item:nth-child(4)::after {
    background: var(--subway-orange);
}

/* Purple Line: N → Q */
.jules-feature-item:nth-child(5)::after {
    background: var(--subway-purple);
}

/* Hide connection from last item */
.jules-feature-item:nth-child(6)::after {
    display: none;
}

/* Responsive - vertical lines for mobile */
@media (max-width: 768px) {
    .jules-feature-item::after {
        display: block !important;
        width: 4px !important;
        height: 60px !important;
        top: 55px !important;
        left: calc(50% - 2px) !important;
        opacity: 0.9 !important;
        border-radius: 2px !important;
    }
    
    /* Hide last vertical line on mobile */
    .jules-feature-item:nth-child(6)::after {
        display: none !important;
    }
}

/* Subway map connections in FAQ section */
.faq-grid {
    position: relative;
}

.faq-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        /* Vertical subway line on left side */
        linear-gradient(0deg, transparent 0%, transparent 10%, var(--subway-blue) 10%, var(--subway-blue) 90%, transparent 90%, transparent 100%),
        /* Station dots for each FAQ */
        radial-gradient(circle at 8% 20%, var(--subway-green) 4px, transparent 5px),
        radial-gradient(circle at 8% 40%, var(--subway-orange) 4px, transparent 5px),
        radial-gradient(circle at 8% 60%, var(--subway-purple) 4px, transparent 5px),
        radial-gradient(circle at 8% 80%, var(--subway-red) 4px, transparent 5px),
        /* Horizontal connection lines */
        linear-gradient(90deg, var(--subway-gray) 0%, var(--subway-gray) 15%, transparent 15%, transparent 100%);
    background-size: 100% 100%;
    background-position: 0 0;
    opacity: 0.2;
    pointer-events: none;
    z-index: 0;
}

.faq-item {
    position: relative;
    z-index: 5;
}

/* Subway-style section connections */
.section-divider {
    position: relative;
    height: 60px;
    margin: var(--space-8) 0;
    overflow: hidden;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -100px;
    right: -100px;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--subway-blue) 10%, 
        var(--subway-green) 30%, 
        var(--subway-orange) 50%, 
        var(--subway-purple) 70%, 
        var(--subway-blue) 90%, 
        transparent 100%);
    transform: translateY(-50%) rotate(-2deg);
    opacity: 0.15;
    animation: subway-flow 10s linear infinite;
}

.section-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    background: var(--subway-blue);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.4;
    box-shadow: 
        -200px 0 0 var(--subway-green),
        200px 0 0 var(--subway-orange),
        -400px 0 0 var(--subway-purple),
        400px 0 0 var(--subway-red);
}

@keyframes subway-flow {
    0% { transform: translateY(-50%) translateX(-20px) rotate(-2deg); }
    100% { transform: translateY(-50%) translateX(20px) rotate(-2deg); }
}

/* ===== SECTIONS - SUBWAY THEME ===== */
.page-main-content {
    min-height: 80vh;
    padding: var(--space-16) 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
}

.section-title {
    font-size: var(--text-4xl);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--space-12);
    position: relative;
    color: var(--text-primary);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -var(--space-4);
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--subway-blue) 0%, var(--subway-green) 50%, var(--subway-orange) 100%);
    border-radius: var(--radius-full);
}

/* ===== CARDS & GRIDS ===== */
.features-grid,
.projects-grid,
.benefits-grid,
.spotlight-grid,
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-8);
    margin-top: var(--space-12);
}

.card,
.feature-item,
.project-card,
.benefit-item,
.spotlight-card,
.feedback-item,
.faq-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    border: 2px solid var(--subway-gray);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card:hover,
.feature-item:hover,
.project-card:hover,
.benefit-item:hover,
.spotlight-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 57, 166, 0.15);
    border-color: var(--subway-blue);
}

/* FAQ Items - Subway Information Board Style */
.faq-item {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%) !important;
    border: 2px solid var(--subway-blue) !important;
    color: #ffffff !important;
}

.faq-item h3 {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
    border-bottom: 1px solid var(--subway-blue) !important;
    padding-bottom: var(--space-2) !important;
}

.faq-item p {
    color: #e0e0e0 !important;
}

.faq-item:hover {
    border-color: var(--subway-orange) !important;
    box-shadow: 0 12px 30px rgba(255, 99, 25, 0.2) !important;
}

.feature-icon,
.benefit-icon {
    font-size: var(--text-4xl);
    color: var(--subway-blue);
    margin-bottom: var(--space-4);
    display: block;
}

/* ===== STATISTICS SECTION - SUBWAY PLATFORM STYLE ===== */
.stats-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: var(--space-20) 0;
    margin: var(--space-8) 0;
    position: relative;
    overflow: hidden;
    border-top: 3px solid var(--subway-blue);
    border-bottom: 3px solid var(--subway-green);
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        rgba(255,255,255,0.4) 0%, 
        rgba(255,255,255,0.4) 25%, 
        transparent 25%, 
        transparent 75%, 
        rgba(255,255,255,0.4) 75%, 
        rgba(255,255,255,0.4) 100%);
    transform: translateY(-50%);
    z-index: 1;
}

.stats-section::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 20px;
    background-image: 
        radial-gradient(circle at 25% 50%, rgba(255,255,255,0.6) 6px, transparent 7px),
        radial-gradient(circle at 75% 50%, rgba(255,255,255,0.6) 6px, transparent 7px);
    background-size: 100% 100%;
    transform: translateY(-50%);
    z-index: 2;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-12);
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    color: var(--white);
}

.stat-number {
    font-size: var(--text-5xl);
    font-weight: 900;
    font-family: var(--font-display);
    display: block;
    margin-bottom: var(--space-2);
}

.stat-label {
    font-size: var(--text-lg);
    font-weight: 500;
    opacity: 0.9;
}

/* ===== CTA SECTION - SUBWAY TERMINAL STYLE ===== */
.cta-section {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    padding: var(--space-24) 0;
    margin: var(--space-24) 0;
    position: relative;
    overflow: hidden;
    text-align: center;
    border: 3px solid var(--subway-orange);
    border-radius: 12px;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(90deg, transparent 0%, var(--subway-blue) 25%, transparent 25.5%, transparent 50%, var(--subway-green) 50%, transparent 50.5%, transparent 75%, var(--subway-orange) 75%, transparent 75.5%, transparent 100%);
    background-size: 200px 3px;
    background-position: 0 top, 0 bottom;
    background-repeat: repeat-x;
    opacity: 0.4;
    pointer-events: none;
}



.cta-title {
    font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
    font-weight: 800;
    margin-bottom: var(--space-6);
    position: relative;
    z-index: 1;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}

.cta-subtitle {
    font-size: var(--text-xl);
    color: #e0e0e0;
    max-width: 700px;
    margin: 0 auto var(--space-8);
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* ===== FORMS - SUBWAY TICKET MACHINE STYLE ===== */
form {
    max-width: 600px;
    margin: var(--space-8) auto;
    background: #1a1a1a;
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border: 2px solid var(--subway-blue);
    position: relative;
}

form::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--subway-blue), var(--subway-green), var(--subway-orange), var(--subway-blue));
    border-radius: var(--radius-xl);
    z-index: -1;
    animation: subway-glow 3s ease-in-out infinite alternate;
}

@keyframes subway-glow {
    0% { opacity: 0.5; }
    100% { opacity: 0.8; }
}

.form-group {
    margin-bottom: var(--space-6);
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--space-2);
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

input,
textarea,
select {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 2px solid var(--subway-gray);
    border-radius: var(--radius-lg);
    font-family: var(--font-primary);
    font-size: var(--text-base);
    transition: var(--transition);
    background: #2d2d2d;
    color: #ffffff;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--subway-blue);
    box-shadow: 0 0 0 3px rgba(0, 57, 166, 0.3);
    background: #404040;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* ===== FILTERS BAR ===== */
.filters-bar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    align-items: center;
    justify-content: center;
    margin: var(--space-8) 0;
    padding: var(--space-6);
    background: var(--gray-50);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
}

.filters-bar input,
.filters-bar select {
    min-width: 200px;
    margin-bottom: 0;
}

/* ===== FOOTER - SUBWAY TERMINAL STYLE ===== */
.site-footer {
    background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 100%);
    color: var(--gray-300);
    padding: var(--space-16) 0 var(--space-8);
    margin-top: var(--space-24);
    border-top: 4px solid transparent;
    border-image: linear-gradient(90deg, var(--subway-red), var(--subway-blue), var(--subway-green), var(--subway-orange), var(--subway-purple), var(--subway-yellow)) 1;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--subway-red) 0%, var(--subway-blue) 16.67%, var(--subway-green) 33.33%, var(--subway-orange) 50%, var(--subway-purple) 66.67%, var(--subway-yellow) 83.33%, var(--subway-red) 100%);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-8);
    align-items: center;
    margin-bottom: var(--space-8);
}

.footer-logo {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(0, 57, 166, 0.5);
    position: relative;
}

.footer-logo::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--subway-red) 0%, var(--subway-blue) 33.33%, var(--subway-green) 66.67%, var(--subway-orange) 100%);
    border-radius: 1px;
}

.footer-nav {
    text-align: center;
}

.footer-nav a {
    color: var(--gray-400);
    text-decoration: none;
    transition: var(--transition);
    margin: 0 var(--space-2);
}

.footer-nav a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gray-800);
    border-radius: var(--radius-full);
    color: var(--gray-400);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--subway-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 0 12px rgba(0, 57, 166, 0.5);
}

.copyright {
    text-align: center;
    padding-top: var(--space-8);
    border-top: 1px solid var(--gray-800);
    color: var(--gray-500);
    font-size: var(--text-sm);
}

/* ===== LOADING & ANIMATIONS ===== */
.loading-spinner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-12);
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--gray-200);
    border-top: 3px solid var(--primary-purple);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ===== MESSAGE DISPLAY ===== */
.message-success {
    background: var(--accent-green);
}

.message-error {
    background: #ef4444;
}

.message-info {
    background: var(--secondary-blue);
}

/* ===== ANIMATIONS & EFFECTS ===== */

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

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

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

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes rotateY {
    from {
        transform: rotateY(0deg);
    }
    to {
        transform: rotateY(360deg);
    }
}

/* Page Load Animations */
.hero-section {
    animation: fadeIn 1s ease-out;
}

.hero-title {
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-subtitle {
    animation: fadeInUp 1s ease-out 0.4s both;
}

.jules-features-grid {
    animation: fadeInUp 1s ease-out 0.6s both;
}

.jules-feature-item {
    animation: fadeInUp 0.8s ease-out both;
    transition: all var(--transition);
}

.jules-feature-item:nth-child(1) {
    animation-delay: 0.8s;
}

.jules-feature-item:nth-child(2) {
    animation-delay: 1s;
}

.jules-feature-item:nth-child(3) {
    animation-delay: 1.2s;
}

.jules-feature-item:nth-child(4) {
    animation-delay: 1.4s;
}

.jules-feature-item:nth-child(5) {
    animation-delay: 1.6s;
}

.jules-feature-item:nth-child(6) {
    animation-delay: 1.8s;
}

/* Stats Section Animation */
.stats-section {
    animation: fadeInUp 1s ease-out 0.8s both;
}

.stat-item {
    animation: fadeInUp 0.8s ease-out 1s both;
    transition: all var(--transition);
}

.stat-number {
    animation: pulse 2s ease-in-out infinite;
}

/* FAQ Section Animation */
.faq-section {
    animation: fadeInUp 1s ease-out 1s both;
    perspective: 1500px;
    transform-style: preserve-3d;
}

.faq-item {
    animation: fadeInUp 0.8s ease-out both;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
}

.faq-item::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        var(--subway-blue), var(--subway-green), var(--subway-orange), var(--subway-blue));
    border-radius: var(--radius-xl);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.faq-item:nth-child(odd) {
    animation: slideInLeft3D 1s ease-out both;
}

.faq-item:nth-child(even) {
    animation: slideInRight3D 1s ease-out both;
}

@keyframes slideInLeft3D {
    from {
        opacity: 0;
        transform: translateX(-100px) rotateY(-45deg) translateZ(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0) rotateY(0deg) translateZ(0);
    }
}

@keyframes slideInRight3D {
    from {
        opacity: 0;
        transform: translateX(100px) rotateY(45deg) translateZ(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0) rotateY(0deg) translateZ(0);
    }
}

/* CTA Section Animation */
.cta-section {
    animation: fadeInUp 1s ease-out 1.2s both;
}

/* Button Hover Animations */
.button {
    position: relative;
    overflow: hidden;
    transition: all var(--transition);
}

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

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

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.3);
}

.button:active {
    transform: translateY(0);
}

/* Fixed cards - no hover movement */
.jules-feature-item:hover {
    transform: none;
    box-shadow: none;
}

.faq-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(124, 58, 237, 0.1);
}

.stat-item:hover {
    transform: scale(1.05);
}

/* Fixed icons - no transitions */
.jules-feature-item div:first-child {
    transition: none !important;
}

.jules-feature-item:hover div:first-child {
    transform: none;
    animation: none;
}

/* Navigation Animation */
.main-nav ul {
    animation: slideInLeft 0.8s ease-out 0.5s both;
}

.nav-cta-button {
    animation: slideInRight 0.8s ease-out 0.7s both;
}

/* Logo Animation */
.logo {
    animation: fadeIn 1s ease-out;
    transition: all var(--transition);
}

.logo:hover {
    animation: pulse 0.6s ease-in-out;
}

/* Footer Animation */
.site-footer {
    animation: fadeInUp 1s ease-out 1.5s both;
}

/* Scroll-triggered animations for sections */
.section-title {
    animation: fadeInUp 0.8s ease-out both;
}

/* Background Animation for Hero */
.hero-bg-animation::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(124, 58, 237, 0.02), transparent);
    animation: rotateY 20s linear infinite;
    pointer-events: none;
}

/* Shimmer effect for highlights */
.highlight {
    position: relative;
    overflow: hidden;
}

.highlight::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

/* Fixed feature icons - no animation */
.jules-feature-item div:first-child {
    animation: none !important;
}

.jules-feature-item:nth-child(even) div:first-child {
    animation-delay: 1.5s;
}

/* Stagger animation delays for better visual flow */
.jules-feature-item:nth-child(1) {
    animation-delay: 0.1s;
}

.jules-feature-item:nth-child(2) {
    animation-delay: 0.2s;
}

.jules-feature-item:nth-child(3) {
    animation-delay: 0.3s;
}

.jules-feature-item:nth-child(4) {
    animation-delay: 0.4s;
}

.jules-feature-item:nth-child(5) {
    animation-delay: 0.5s;
}

.jules-feature-item:nth-child(6) {
    animation-delay: 0.6s;
}

/* FAQ items stagger */
.faq-item:nth-child(1) {
    animation-delay: 0.1s;
}

.faq-item:nth-child(2) {
    animation-delay: 0.2s;
}

.faq-item:nth-child(3) {
    animation-delay: 0.3s;
}

.faq-item:nth-child(4) {
    animation-delay: 0.4s;
}

.faq-item:nth-child(5) {
    animation-delay: 0.5s;
}

.faq-item:nth-child(6) {
    animation-delay: 0.6s;
}

/* Smooth page transitions */
* {
    scroll-behavior: smooth;
}

/* Scroll-triggered animation classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

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

/* Shimmer hover effect for buttons */
.button.shimmer-hover {
    background-size: 200% 100%;
    animation: shimmer 1s ease-in-out;
}

/* Enhanced hover states */
.main-nav a {
    transition: all 0.3s ease;
    border-radius: 4px;
    padding: 4px 8px;
}

.main-nav a:hover {
    background: rgba(124, 58, 237, 0.1);
    transform: translateY(-2px);
}

/* Performance optimizations */
.jules-feature-item,
.faq-item,
.stat-item {
    will-change: transform;
}

/* Reduce motion for users who prefer it */
@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;
    }
    
    .jules-feature-item div:first-child {
        animation: none;
    }
    
    .stat-number {
        animation: none;
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
    }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.95);
        padding: var(--space-4);
        border-radius: 0 0 12px 12px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 1000;
        backdrop-filter: blur(10px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    }
    
    .main-nav.mobile-nav-open {
        display: block !important;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: var(--space-2);
        background: transparent;
        padding: 0;
        border: none;
    }
    
    .main-nav a {
        padding: var(--space-3) var(--space-4);
        border-radius: 8px;
        width: 100%;
        text-align: left;
        color: #ffffff !important;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .main-nav a:hover,
    .main-nav a.active {
        background: rgba(255, 255, 255, 0.2) !important;
        transform: none !important;
    }
    
    .mobile-nav-toggle {
        display: block;
        background: rgba(0, 0, 0, 0.7) !important;
        border: 2px solid rgba(255, 255, 255, 0.3) !important;
        color: #ffffff !important;
        border-radius: 8px !important;
        padding: 8px 12px !important;
        cursor: pointer !important;
        z-index: 1001 !important;
        position: relative !important;
    }
    
    .hamburger-icon {
        display: block;
        width: 18px;
        height: 2px;
        background: #ffffff;
        position: relative;
        transition: all 0.3s ease;
    }
    
    .hamburger-icon::before,
    .hamburger-icon::after {
        content: '';
        display: block;
        width: 18px;
        height: 2px;
        background: #ffffff;
        position: absolute;
        transition: all 0.3s ease;
    }
    
    .hamburger-icon::before {
        top: -6px;
    }
    
    .hamburger-icon::after {
        top: 6px;
    }
    
    .hero-section {
        padding: var(--space-20) 0;
        background-attachment: scroll; /* Fixed attachment can cause issues on mobile */
        background-size: cover;
    }
    
    .hero-title {
        font-size: var(--text-4xl);
    }
    
    .hero-subtitle {
        font-size: var(--text-lg);
    }
    
    /* Mobile subway route badges adjustments */
    .jules-feature-item > div:first-child {
        width: 50px !important;
        height: 50px !important;
        font-size: var(--text-lg) !important;
    }
    
    /* Mobile coding stripes adjustment */
    .coding-striped {
        font-size: inherit;
    }
    
    .features-grid,
    .projects-grid,
    .benefits-grid,
    .spotlight-grid,
    .faq-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-8);
    }
    
    .filters-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filters-bar input,
    .filters-bar select {
        min-width: auto;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-6);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: var(--text-3xl);
    }
    
    .section-title {
        font-size: var(--text-3xl);
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: var(--text-4xl);
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--primary-purple);
    outline-offset: 2px;
}

/* ===== PRINT STYLES ===== */
@media print {
    .site-header,
    .site-footer,
    .button,
    .mobile-nav-toggle {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .card,
    .feature-item,
    .project-card,
    .faq-item {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}