/* ========================================
   ALEXANDER YUDIN - V3 PREMIUM DESIGN
   Modern, Minimalist, Trendy 2025-2026
   ======================================== */

/* === CSS Custom Properties === */
:root {
    /* Colors - Dark Premium Palette */
    --bg-primary: #09090b;
    --bg-secondary: #18181b;
    --bg-tertiary: #27272a;
    --bg-card: rgba(24, 24, 27, 0.6);
    --bg-card-hover: rgba(39, 39, 42, 0.8);
    
    /* Text Colors */
    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    
    /* Accent Colors - Default Purple */
    --accent-primary: #a855f7;
    --accent-secondary: #6366f1;
    --accent-glow: rgba(168, 85, 247, 0.4);
    
    /* Project Colors */
    --color-purple: #a855f7;
    --color-pink: #ec4899;
    --color-blue: #3b82f6;
    --color-red: #ef4444;
    --color-green: #22c55e;
    --color-cyan: #06b6d4;
    --color-orange: #f97316;
    --color-yellow: #eab308;
    
    /* Borders */
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    
    /* Spacing */
    --container-max: 1200px;
    --container-padding: 1.5rem;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
}

/* === Color Themes === */
/* Purple (default) */
[data-theme="purple"] {
    --accent-primary: #a855f7;
    --accent-secondary: #6366f1;
    --accent-glow: rgba(168, 85, 247, 0.4);
    --gradient-accent: linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
}

/* Sunset (V1 style - orange to pink) */
[data-theme="sunset"] {
    --accent-primary: #ff9500;
    --accent-secondary: #ff2d55;
    --accent-glow: rgba(255, 149, 0, 0.4);
    --gradient-accent: linear-gradient(135deg, #ff9500 0%, #ff2d55 100%);
}

/* Ocean (cyan to blue) */
[data-theme="ocean"] {
    --accent-primary: #06b6d4;
    --accent-secondary: #3b82f6;
    --accent-glow: rgba(6, 182, 212, 0.4);
    --gradient-accent: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
}

/* Forest (green to teal) */
[data-theme="forest"] {
    --accent-primary: #22c55e;
    --accent-secondary: #14b8a6;
    --accent-glow: rgba(34, 197, 94, 0.4);
    --gradient-accent: linear-gradient(135deg, #22c55e 0%, #14b8a6 100%);
}

/* Sakura (pink to purple) */
[data-theme="sakura"] {
    --accent-primary: #ec4899;
    --accent-secondary: #a855f7;
    --accent-glow: rgba(236, 72, 153, 0.4);
    --gradient-accent: linear-gradient(135deg, #ec4899 0%, #a855f7 100%);
}

/* Aurora (blue to purple to pink) */
[data-theme="aurora-theme"] {
    --accent-primary: #3b82f6;
    --accent-secondary: #ec4899;
    --accent-glow: rgba(99, 102, 241, 0.4);
    --gradient-accent: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
}

/* Fire (red to orange) */
[data-theme="fire"] {
    --accent-primary: #ef4444;
    --accent-secondary: #f97316;
    --accent-glow: rgba(239, 68, 68, 0.4);
    --gradient-accent: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
}

/* Mono (white/grey - minimalist) */
[data-theme="mono"] {
    --accent-primary: #a1a1aa;
    --accent-secondary: #71717a;
    --accent-glow: rgba(161, 161, 170, 0.3);
    --gradient-accent: linear-gradient(135deg, #fafafa 0%, #a1a1aa 100%);
}

/* === Reset & Base === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

body {
    font-family: var(--font-family);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    position: relative;
}

/* Background Effects Container */
.bg-effects {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

/* Ambient glow zones - brighter at hero & AI section, softer in middle */
.bg-ambient {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.bg-ambient-top {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 140%;
    height: 80vh;
    background: radial-gradient(ellipse at center top, 
        rgba(168, 85, 247, 0.15) 0%, 
        rgba(99, 102, 241, 0.08) 30%,
        transparent 70%);
    animation: ambientPulse 8s ease-in-out infinite;
}

.bg-ambient-bottom {
    position: absolute;
    bottom: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 60vh;
    background: radial-gradient(ellipse at center bottom, 
        rgba(168, 85, 247, 0.12) 0%, 
        rgba(6, 182, 212, 0.06) 40%,
        transparent 70%);
    animation: ambientPulse 10s ease-in-out infinite 2s;
}

@keyframes ambientPulse {
    0%, 100% { opacity: 1; transform: translateX(-50%) scale(1); }
    50% { opacity: 0.7; transform: translateX(-50%) scale(1.05); }
}

/* Effect 1: Glow Orbs (default) - dynamic glowing spheres */
.bg-glow-orbs {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}

[data-bg="glow"] .bg-glow-orbs,
[data-bg="glow"] .bg-ambient { opacity: 1; }

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    mix-blend-mode: screen;
}

.glow-orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.4) 0%, transparent 70%);
    top: 5%;
    right: 10%;
    animation: glowOrb1 15s ease-in-out infinite;
}

.glow-orb-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.35) 0%, transparent 70%);
    top: 15%;
    left: 5%;
    animation: glowOrb2 18s ease-in-out infinite 3s;
}

.glow-orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.3) 0%, transparent 70%);
    bottom: 20%;
    right: 20%;
    animation: glowOrb3 20s ease-in-out infinite 5s;
}

.glow-orb-4 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.25) 0%, transparent 70%);
    bottom: 30%;
    left: 15%;
    animation: glowOrb4 22s ease-in-out infinite 2s;
}

@keyframes glowOrb1 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
    25% { transform: translate(-80px, 60px) scale(1.2); opacity: 0.9; }
    50% { transform: translate(-40px, 120px) scale(0.9); opacity: 0.5; }
    75% { transform: translate(60px, 40px) scale(1.1); opacity: 0.8; }
}

@keyframes glowOrb2 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
    33% { transform: translate(100px, 80px) scale(1.3); opacity: 0.8; }
    66% { transform: translate(50px, -40px) scale(0.8); opacity: 0.4; }
}

@keyframes glowOrb3 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
    50% { transform: translate(-120px, -80px) scale(1.2); opacity: 0.7; }
}

@keyframes glowOrb4 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.4; }
    25% { transform: translate(60px, -60px) scale(1.15); opacity: 0.7; }
    75% { transform: translate(-40px, 40px) scale(0.9); opacity: 0.5; }
}

/* Effect 2: Aurora - flowing northern lights */
.bg-aurora {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
    overflow: hidden;
}

[data-bg="aurora"] .bg-aurora,
[data-bg="aurora"] .bg-ambient { opacity: 1; }

.aurora-wave {
    position: absolute;
    width: 200%;
    height: 60%;
    left: -50%;
    filter: blur(100px);
    opacity: 0.3;
}

.aurora-wave-1 {
    top: -10%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(168, 85, 247, 0.5) 20%, 
        rgba(99, 102, 241, 0.4) 40%, 
        rgba(6, 182, 212, 0.3) 60%,
        transparent 80%);
    animation: auroraFlow 25s ease-in-out infinite;
}

.aurora-wave-2 {
    top: 10%;
    background: linear-gradient(90deg, 
        transparent 10%, 
        rgba(6, 182, 212, 0.4) 30%, 
        rgba(168, 85, 247, 0.3) 50%, 
        rgba(236, 72, 153, 0.3) 70%,
        transparent 90%);
    animation: auroraFlow 30s ease-in-out infinite reverse;
    animation-delay: -5s;
}

.aurora-wave-3 {
    bottom: 0;
    top: auto;
    height: 40%;
    background: linear-gradient(90deg, 
        transparent 5%, 
        rgba(99, 102, 241, 0.35) 25%, 
        rgba(168, 85, 247, 0.4) 50%,
        transparent 75%);
    animation: auroraFlow 20s ease-in-out infinite;
    animation-delay: -10s;
}

@keyframes auroraFlow {
    0%, 100% { transform: translateX(-20%) skewX(-5deg); }
    50% { transform: translateX(20%) skewX(5deg); }
}

/* Effect 3: Mesh Gradient - morphing gradient mesh */
.bg-mesh {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}

[data-bg="mesh"] .bg-mesh,
[data-bg="mesh"] .bg-ambient { opacity: 1; }

.bg-mesh::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(at 20% 20%, rgba(168, 85, 247, 0.15) 0%, transparent 50%),
        radial-gradient(at 80% 20%, rgba(99, 102, 241, 0.12) 0%, transparent 50%),
        radial-gradient(at 50% 50%, rgba(6, 182, 212, 0.08) 0%, transparent 50%),
        radial-gradient(at 20% 80%, rgba(236, 72, 153, 0.1) 0%, transparent 50%),
        radial-gradient(at 80% 80%, rgba(168, 85, 247, 0.12) 0%, transparent 50%);
    animation: meshMorph 20s ease-in-out infinite;
}

@keyframes meshMorph {
    0%, 100% { 
        background-position: 0% 0%, 100% 0%, 50% 50%, 0% 100%, 100% 100%;
        filter: blur(60px);
    }
    25% { 
        background-position: 20% 20%, 80% 30%, 60% 40%, 30% 70%, 70% 90%;
        filter: blur(80px);
    }
    50% { 
        background-position: 30% 10%, 70% 20%, 40% 60%, 20% 90%, 90% 70%;
        filter: blur(70px);
    }
    75% { 
        background-position: 10% 30%, 90% 10%, 50% 50%, 10% 80%, 80% 85%;
        filter: blur(90px);
    }
}

/* Effect 4: Spotlight - dramatic moving spotlights */
.bg-spotlight {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
    overflow: hidden;
}

[data-bg="spotlight"] .bg-spotlight,
[data-bg="spotlight"] .bg-ambient { opacity: 1; }

.spotlight {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(100px);
}

.spotlight-1 {
    background: radial-gradient(circle, rgba(168, 85, 247, 0.25) 0%, transparent 60%);
    top: -200px;
    left: 20%;
    animation: spotlightMove1 12s ease-in-out infinite;
}

.spotlight-2 {
    background: radial-gradient(circle, rgba(6, 182, 212, 0.2) 0%, transparent 60%);
    bottom: -200px;
    right: 20%;
    animation: spotlightMove2 15s ease-in-out infinite 3s;
}

@keyframes spotlightMove1 {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(200px, 150px); }
    50% { transform: translate(100px, 300px); }
    75% { transform: translate(-100px, 150px); }
}

@keyframes spotlightMove2 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(-200px, -150px); }
    66% { transform: translate(100px, -100px); }
}

/* Effect 5: Particles with trails */
.bg-particles {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}

[data-bg="particles"] .bg-particles,
[data-bg="particles"] .bg-ambient { opacity: 1; }

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    box-shadow: 
        0 0 10px currentColor,
        0 0 20px currentColor,
        0 0 40px currentColor;
}

.particle:nth-child(1) { color: var(--accent-primary); top: 10%; left: 15%; animation: particleDrift 20s linear infinite; }
.particle:nth-child(2) { color: var(--accent-secondary); top: 25%; left: 75%; animation: particleDrift 25s linear infinite 5s; }
.particle:nth-child(3) { color: var(--color-cyan); top: 60%; left: 10%; animation: particleDrift 22s linear infinite 8s; }
.particle:nth-child(4) { color: var(--color-pink); top: 70%; left: 80%; animation: particleDrift 18s linear infinite 3s; }
.particle:nth-child(5) { color: var(--accent-primary); top: 40%; left: 50%; animation: particleDrift 28s linear infinite 12s; }
.particle:nth-child(6) { color: var(--accent-secondary); top: 85%; left: 30%; animation: particleDrift 24s linear infinite 7s; }

@keyframes particleDrift {
    0% { transform: translate(0, 0) scale(1); opacity: 0; }
    10% { opacity: 0.8; }
    50% { transform: translate(100px, -200px) scale(1.5); opacity: 0.6; }
    90% { opacity: 0.8; }
    100% { transform: translate(-50px, -400px) scale(1); opacity: 0; }
}

/* Effect 6: Classic (V1 style) - warm radial gradients */
.bg-classic {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.bg-classic::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(255, 149, 0, 0.18) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 85% 50%, rgba(0, 122, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 15% 70%, rgba(175, 82, 222, 0.1) 0%, transparent 50%);
    animation: classicPulse 10s ease-in-out infinite;
}

.bg-classic::after {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 70% 60% at 30% 20%, rgba(255, 149, 0, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 50% 50% at 70% 80%, rgba(255, 45, 85, 0.08) 0%, transparent 50%);
    animation: classicPulse 12s ease-in-out infinite reverse;
}

[data-bg="classic"] .bg-classic { opacity: 1; }
[data-bg="classic"] .bg-ambient { opacity: 0.3; }

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

/* Effect 7: None - clean but keep ambient */
[data-bg="none"] .bg-ambient { opacity: 0.5; }

/* Theme & Background Switcher Buttons */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.theme-switch,
.bg-switch {
    padding: 0.5rem;
    font-size: 1rem;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.theme-switch:hover,
.bg-switch:hover {
    color: var(--text-primary);
    border-color: var(--accent-primary);
    background: var(--bg-tertiary);
}

.theme-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--gradient-accent, linear-gradient(135deg, var(--accent-primary), var(--accent-secondary)));
    box-shadow: 0 0 8px var(--accent-glow);
    transition: all var(--transition-base);
}

/* Gradient text utility */
.text-gradient {
    background: var(--gradient-accent, linear-gradient(135deg, var(--accent-primary), var(--accent-secondary)));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Effect: Waves (legacy) */
.bg-waves {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
    overflow: hidden;
}

.bg-waves::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 100px,
        rgba(168, 85, 247, 0.03) 100px,
        rgba(168, 85, 247, 0.03) 200px
    );
    animation: wavesMove 20s linear infinite;
}

[data-bg="waves"] .bg-waves { opacity: 1; }

@keyframes wavesMove {
    to { transform: translate(200px, 200px); }
}

/* Effect 7: None (clean) */
[data-bg="none"] .bg-effects > * { opacity: 0 !important; }

/* Background Switcher Button */
.bg-switch {
    padding: 0.5rem;
    font-size: 1rem;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.bg-switch:hover {
    color: var(--text-primary);
    border-color: var(--accent-primary);
    background: var(--bg-tertiary);
}

/* === Container === */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* === Links & Buttons === */
a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* ========================================
   NAVIGATION
   ======================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(9, 9, 11, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-base);
}

.nav.scrolled {
    padding: 0.75rem 0;
    background: rgba(9, 9, 11, 0.95);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    object-fit: cover;
    border: 2px solid var(--border-color);
    transition: border-color var(--transition-base);
}

.logo:hover .logo-img {
    border-color: var(--accent-primary);
}

.logo-info {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.logo-role {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width var(--transition-base);
}

.nav-menu a:hover {
    color: var(--text-primary);
}

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

.lang-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.lang-btn:hover {
    color: var(--text-primary);
    border-color: var(--accent-primary);
    background: var(--bg-tertiary);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero-glow {
    display: none; /* Replaced by global bg-blobs */
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: translateX(-50%) scale(1); }
    50% { opacity: 0.5; transform: translateX(-50%) scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
}

.badge-pulse {
    width: 8px;
    height: 8px;
    background: var(--color-green);
    border-radius: 50%;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
    50% { opacity: 0.8; box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 600px;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    border: 1px solid transparent;
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: white;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

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

.btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-hover);
}

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

.btn-ghost:hover {
    color: var(--text-primary);
    border-color: var(--accent-primary);
    background: rgba(168, 85, 247, 0.1);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
}

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

.stat-num {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.stat-sep {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

/* Scroll Hint */
.scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ========================================
   PROJECTS SECTION
   ======================================== */
.projects {
    padding: 6rem 0;
}

.section-head {
    margin-bottom: 3rem;
}

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

.section-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-primary);
}

/* Projects List */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Project Card */
.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2rem;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color, var(--accent-primary)), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.project-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    opacity: 0.95;
}

.project-card:hover::before {
    opacity: 1;
}

/* Project Colors */
.project-card[data-accent="purple"] { --accent-color: var(--color-purple); }
.project-card[data-accent="pink"] { --accent-color: var(--color-pink); }
.project-card[data-accent="blue"] { --accent-color: var(--color-blue); }
.project-card[data-accent="red"] { --accent-color: var(--color-red); }
.project-card[data-accent="green"] { --accent-color: var(--color-green); }
.project-card[data-accent="cyan"] { --accent-color: var(--color-cyan); }
.project-card[data-accent="orange"] { --accent-color: var(--color-orange); }
.project-card[data-accent="yellow"] { --accent-color: var(--color-yellow); }

.project-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.project-client {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 0.25rem 0.75rem;
    background: var(--bg-tertiary);
    border-radius: 100px;
}

.project-client.neuralab {
    background: rgba(168, 85, 247, 0.15);
    color: var(--accent-primary);
}

.project-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.project-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-badge.live {
    background: rgba(34, 197, 94, 0.15);
    color: var(--color-green);
}

.project-badge.mvp {
    background: rgba(59, 130, 246, 0.15);
    color: var(--color-blue);
}

.project-badge.nda {
    background: rgba(234, 179, 8, 0.15);
    color: var(--color-yellow);
}

.project-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.project-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

/* Tech Stack */
.project-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.project-stack span {
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.project-stack.ai span {
    background: rgba(168, 85, 247, 0.1);
    color: var(--accent-primary);
    border-color: rgba(168, 85, 247, 0.2);
}

/* Project Images */
.project-images {
    display: flex;
    gap: 0.75rem;
    margin: 1.25rem 0;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--bg-tertiary) transparent;
}

.project-images::-webkit-scrollbar {
    height: 6px;
}

.project-images::-webkit-scrollbar-track {
    background: transparent;
}

.project-images::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 3px;
}

.project-images img {
    height: 140px;
    width: auto;
    object-fit: contain;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
    background: var(--bg-secondary);
}

.project-images img:hover {
    border-color: var(--accent-primary);
    transform: scale(1.05);
}

/* Project Links */
.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.project-links a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-primary);
    transition: color var(--transition-fast);
}

.project-links a:hover {
    color: var(--text-primary);
}

/* ========================================
   EXPERTISE SECTION
   ======================================== */
.expertise {
    padding: 6rem 0;
}

.expertise-intro {
    max-width: 700px;
    margin: 0 auto 3rem;
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.expertise-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2rem;
    transition: all var(--transition-base);
    position: relative;
}

.expertise-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 2rem;
    right: 2rem;
    height: 2px;
    background: var(--accent-color, var(--accent-primary));
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.expertise-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    opacity: 0.95;
}

.expertise-card:hover::before {
    transform: scaleX(1);
}

/* Expertise Colors */
.expertise-card[data-accent="orange"] { --accent-color: var(--color-orange); }
.expertise-card[data-accent="blue"] { --accent-color: var(--color-blue); }
.expertise-card[data-accent="green"] { --accent-color: var(--color-green); }

.expertise-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(168, 85, 247, 0.1);
    border-radius: var(--radius-md);
    margin-bottom: 1.25rem;
}

.expertise-icon svg {
    width: 24px;
    height: 24px;
    color: var(--accent-color, var(--accent-primary));
}

.expertise-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.expertise-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========================================
   AI ASSISTANT SECTION
   ======================================== */
.ai-section {
    padding: 4rem 0 6rem;
}

.ai-wrapper {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.ai-intro h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.ai-intro p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* AI CTA Button */
.ai-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border-radius: var(--radius-lg);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
    box-shadow: 0 4px 25px var(--accent-glow);
}

.ai-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px var(--accent-glow);
}

.ai-cta-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.ai-cta:hover .ai-cta-glow {
    transform: translateX(100%);
}

.ai-cta-icon svg {
    width: 20px;
    height: 20px;
}

.ai-cta-arrow {
    width: 20px;
    height: 20px;
}

/* AI Widget */
.ai-widget {
    display: none;
    margin-top: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    text-align: left;
}

.ai-widget.active {
    display: block;
    animation: fadeInUp 0.4s ease;
}

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

.ai-step {
    display: none;
}

.ai-step.active {
    display: block;
}

.ai-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.ai-steps-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.step-dot {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    background: var(--bg-tertiary);
    color: var(--text-muted);
    border-radius: 50%;
    border: 2px solid var(--border-color);
    transition: all var(--transition-base);
}

.step-dot.active {
    background: var(--gradient-accent, linear-gradient(135deg, var(--accent-primary), var(--accent-secondary)));
    border-color: var(--accent-primary);
    color: white;
}

.step-dot.done {
    background: var(--color-green);
    border-color: var(--color-green);
    color: white;
}

.step-line {
    width: 30px;
    height: 2px;
    background: var(--border-color);
}

.step-line.done {
    background: var(--color-green);
}

.ai-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.ai-close:hover {
    color: var(--text-primary);
    background: var(--bg-secondary);
}

.ai-body {
    padding: 2rem;
}

.ai-body h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.ai-body > p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* AI Form */
.ai-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-field label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-field input,
.ai-form textarea {
    padding: 0.875rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: border-color var(--transition-fast);
}

.form-field input:focus,
.ai-form textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.form-field input::placeholder,
.ai-form textarea::placeholder {
    color: var(--text-muted);
}

/* Field Error States */
.form-field input.field-error {
    border-color: var(--color-red);
    background: rgba(239, 68, 68, 0.05);
}

.form-field input.field-error:focus {
    border-color: var(--color-red);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.field-error-msg {
    display: none;
    font-size: 0.8rem;
    color: var(--color-red);
    margin-top: 0.35rem;
    padding-left: 0.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.ai-next {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--gradient-accent, linear-gradient(135deg, var(--accent-primary), var(--accent-secondary)));
    color: white;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    margin-top: 0.5rem;
    transition: all var(--transition-base);
    box-shadow: 0 4px 15px var(--accent-glow);
}

.ai-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-glow);
}

.ai-next svg {
    width: 18px;
    height: 18px;
}

/* Upload Zone */
.upload-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem;
    background: var(--bg-secondary);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
}

.upload-zone:hover {
    border-color: var(--accent-primary);
    background: rgba(168, 85, 247, 0.05);
}

.upload-zone svg {
    width: 32px;
    height: 32px;
    color: var(--text-muted);
}

.upload-zone span {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.upload-zone small {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.file-preview {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.file-preview.hidden {
    display: none;
}

.file-preview svg {
    width: 24px;
    height: 24px;
    color: var(--accent-primary);
}

.file-name {
    flex: 1;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.file-remove {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.file-remove:hover {
    color: var(--color-red);
}

.divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.divider span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

#taskDesc {
    width: 100%;
    min-height: 100px;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    resize: vertical;
}

#taskDesc:focus {
    outline: none;
    border-color: var(--accent-primary);
}

/* AI Chat */
.ai-chat {
    display: flex;
    flex-direction: column;
    height: 400px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--bg-tertiary) transparent;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

.chat-msg {
    max-width: 85%;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    line-height: 1.5;
}

.chat-msg.assistant {
    background: var(--bg-secondary);
    color: var(--text-primary);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.chat-msg.user {
    background: var(--accent-primary);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-input {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.chat-input textarea {
    flex: 1;
    padding: 0.75rem 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    resize: none;
    min-height: 44px;
    max-height: 120px;
}

.chat-input textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}

#chatSend {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-accent, linear-gradient(135deg, var(--accent-primary), var(--accent-secondary)));
    border-radius: var(--radius-md);
    color: white;
    transition: all var(--transition-fast);
    position: relative;
    flex-shrink: 0;
}

#chatSend:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 4px 15px var(--accent-glow);
}

#chatSend:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

#chatSend.btn-loading svg {
    visibility: hidden;
}

#chatSend svg {
    width: 20px;
    height: 20px;
}

/* Final Step */
.ai-final {
    text-align: center;
    padding: 3rem 2rem;
}

.success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 197, 94, 0.15);
    border-radius: 50%;
}

.success-icon svg {
    width: 32px;
    height: 32px;
    color: var(--color-green);
}

/* Brief Preview */
.brief-preview {
    width: 100%;
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(var(--accent-primary-rgb, 168, 85, 247), 0.1) 0%, rgba(var(--accent-secondary-rgb, 99, 102, 241), 0.1) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
}

.brief-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent, linear-gradient(135deg, var(--accent-primary), var(--accent-secondary)));
}

.brief-preview:empty {
    display: none;
}

.brief-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.brief-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.brief-item strong {
    color: var(--text-primary);
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
}

.final-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: var(--gradient-accent, linear-gradient(135deg, var(--accent-primary), var(--accent-secondary)));
    color: white;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-download svg {
    width: 18px;
    height: 18px;
}

.btn-close-widget {
    padding: 0.75rem 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

.btn-close-widget:hover {
    color: var(--text-primary);
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact {
    padding: 2rem 0 6rem;
}

.contact-content {
    max-width: 700px;
    margin: 0 auto;
}

.contact-divider {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-divider::before,
.contact-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.contact-divider span {
    font-size: 0.9rem;
    color: var(--text-muted);
    white-space: nowrap;
}

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

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.contact-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-1px);
    opacity: 0.95;
}

.contact-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
}

.contact-icon svg {
    width: 24px;
    height: 24px;
}

.contact-icon.tg {
    background: rgba(0, 136, 204, 0.15);
    color: #0088cc;
}

.contact-icon.email {
    background: rgba(168, 85, 247, 0.15);
    color: var(--accent-primary);
}

.contact-icon.jira {
    background: rgba(0, 82, 204, 0.15);
    color: #0052cc;
}

.contact-icon.slack {
    background: rgba(74, 21, 75, 0.15);
    color: #e01e5a;
}

.contact-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.contact-value {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
}

.footer .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer a {
    color: var(--accent-primary);
    font-weight: 600;
    transition: color var(--transition-fast);
}

.footer a:hover {
    color: var(--text-primary);
}

/* ========================================
   LIGHTBOX
   ======================================== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 100px rgba(0, 0, 0, 0.5);
}

.lb-close,
.lb-prev,
.lb-next {
    position: absolute;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1.5rem;
    transition: all var(--transition-fast);
}

.lb-close:hover,
.lb-prev:hover,
.lb-next:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-primary);
}

.lb-close {
    top: 1.5rem;
    right: 1.5rem;
}

.lb-prev {
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
}

.lb-next {
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
}

/* ========================================
   PROGRESS BAR & BACK TO TOP
   ======================================== */
.progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    z-index: 10001;
    transition: width 0.1s linear;
}

.back-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-base);
    z-index: 1000;
}

.back-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-top:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.back-top svg {
    width: 20px;
    height: 20px;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
    }
    
    /* Navigation */
    .nav-menu {
        display: none;
    }
    
    .logo-role {
        display: none;
    }
    
    /* Hero */
    .hero {
        padding: 6rem 0 3rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-desc {
        font-size: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .stat-sep {
        display: none;
    }
    
    .scroll-hint {
        display: none;
    }
    
    /* Projects */
    .projects {
        padding: 4rem 0;
    }
    
    .project-card {
        padding: 1.5rem;
    }
    
    .project-name {
        font-size: 1.25rem;
    }
    
    .project-images img {
        height: 120px;
    }
    
    /* Expertise */
    .expertise {
        padding: 4rem 0;
    }
    
    .expertise-grid {
        grid-template-columns: 1fr;
    }
    
    /* AI Section */
    .ai-section {
        padding: 2rem 0 4rem;
    }
    
    .ai-widget {
        border-radius: var(--radius-lg);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .ai-chat {
        height: 350px;
    }
    
    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer .container {
        flex-direction: column;
        text-align: center;
    }
    
    /* Back to Top */
    .back-top {
        bottom: 1rem;
        right: 1rem;
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .project-stack {
        gap: 0.35rem;
    }
    
    .project-stack span {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
    
    .ai-body {
        padding: 1.5rem;
    }
    
    .ai-header {
        padding: 1rem;
    }
    
    /* Fullscreen AI Widget on Mobile */
    .ai-widget.active {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        max-width: 100%;
        margin: 0;
        border-radius: 0;
        border: none;
        z-index: 10000;
        overflow-y: auto;
        background: var(--bg-primary);
    }
    
    .ai-widget.active .ai-step.active {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }
    
    .ai-widget.active .ai-body {
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    
    .ai-widget.active .ai-chat {
        flex: 1;
        height: auto;
        min-height: 300px;
        max-height: none;
    }
    
    .ai-widget.active .chat-messages {
        flex: 1;
        max-height: calc(100vh - 200px);
    }
    
    .ai-widget.active .chat-input {
        position: sticky;
        bottom: 0;
        background: var(--bg-primary);
        padding: 1rem;
        border-top: 1px solid var(--border-color);
    }
    
    .ai-widget.active .ai-header {
        position: sticky;
        top: 0;
        background: var(--bg-primary);
        z-index: 10;
    }
    
    .ai-widget.active .ai-close {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.hidden {
    display: none !important;
}

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

/* ========================================
   TOAST NOTIFICATIONS
   ======================================== */
.toast-container {
    position: fixed;
    top: 5rem;
    right: 1.5rem;
    z-index: 10002;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    max-width: 360px;
    min-width: 280px;
    pointer-events: auto;
    animation: toastSlideIn 0.3s ease;
    backdrop-filter: blur(10px);
}

.toast.hiding {
    animation: toastSlideOut 0.25s ease forwards;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastSlideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.toast-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.toast-icon svg {
    width: 14px;
    height: 14px;
}

.toast.success .toast-icon {
    background: rgba(34, 197, 94, 0.2);
    color: var(--color-green);
}

.toast.error .toast-icon {
    background: rgba(239, 68, 68, 0.2);
    color: var(--color-red);
}

.toast.warning .toast-icon {
    background: rgba(234, 179, 8, 0.2);
    color: var(--color-yellow);
}

.toast.info .toast-icon {
    background: rgba(59, 130, 246, 0.2);
    color: var(--color-blue);
}

.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.toast-message {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.toast-close {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    cursor: pointer;
    background: transparent;
    border: none;
    font-size: 1rem;
}

.toast-close:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

/* Toast with border accent */
.toast.success {
    border-left: 3px solid var(--color-green);
}

.toast.error {
    border-left: 3px solid var(--color-red);
}

.toast.warning {
    border-left: 3px solid var(--color-yellow);
}

.toast.info {
    border-left: 3px solid var(--color-blue);
}

/* Loading State */
.loading-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: rgba(9, 9, 11, 0.9);
    backdrop-filter: blur(4px);
    border-radius: inherit;
    z-index: 10;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Inline Loading (for buttons) */
.btn-loading {
    position: relative;
    pointer-events: none;
    color: transparent !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    top: 50%;
    left: 50%;
    margin: -9px 0 0 -9px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    text-align: center;
}

.empty-state-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: 50%;
    margin-bottom: 1.25rem;
}

.empty-state-icon svg {
    width: 28px;
    height: 28px;
    color: var(--text-muted);
}

.empty-state h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.empty-state p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    max-width: 280px;
}

/* Error State */
.error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.error-state-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.15);
    border-radius: 50%;
    margin-bottom: 1rem;
}

.error-state-icon svg {
    width: 24px;
    height: 24px;
    color: var(--color-red);
}

.error-state h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.error-state p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.error-state .btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.85rem;
}

/* Streaming message animation */
.chat-msg.streaming::after {
    content: '▋';
    animation: blink 1s step-start infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* Mobile toast adjustments */
@media (max-width: 768px) {
    .toast-container {
        left: 1rem;
        right: 1rem;
        top: auto;
        bottom: 1rem;
    }
    
    .toast {
        max-width: 100%;
        min-width: auto;
    }
    
    @keyframes toastSlideIn {
        from {
            opacity: 0;
            transform: translateY(100%);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    @keyframes toastSlideOut {
        from {
            opacity: 1;
            transform: translateY(0);
        }
        to {
            opacity: 0;
            transform: translateY(100%);
        }
    }
}
