/* ═══════════════════════════════════════════════════════════════════════════
   AHMED KHALED ALI — PORTFOLIO 2026
   A modern, distinctive portfolio for ML Engineers
   Aesthetic: Cyber-futuristic with organic warmth
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────────────────
   REGISTERED CUSTOM PROPERTIES (enables smooth theme interpolation via @property)
   ───────────────────────────────────────────────────────────────────────────── */
@property --bg-primary { syntax: '<color>'; inherits: true; initial-value: #050508; }
@property --bg-secondary { syntax: '<color>'; inherits: true; initial-value: #0c0c12; }
@property --bg-tertiary { syntax: '<color>'; inherits: true; initial-value: #141420; }
@property --bg-card { syntax: '<color>'; inherits: true; initial-value: rgba(18, 18, 28, 0.8); }
@property --bg-card-hover { syntax: '<color>'; inherits: true; initial-value: rgba(26, 26, 40, 0.9); }
@property --text-primary { syntax: '<color>'; inherits: true; initial-value: #f4f4f8; }
@property --text-secondary { syntax: '<color>'; inherits: true; initial-value: #94949e; }
@property --text-muted { syntax: '<color>'; inherits: true; initial-value: #5a5a68; }
@property --accent-primary { syntax: '<color>'; inherits: true; initial-value: #00e5ff; }
@property --accent-secondary { syntax: '<color>'; inherits: true; initial-value: #8b5cf6; }
@property --accent-tertiary { syntax: '<color>'; inherits: true; initial-value: #f472b6; }
@property --accent-warm { syntax: '<color>'; inherits: true; initial-value: #ff6b35; }
@property --border-color { syntax: '<color>'; inherits: true; initial-value: rgba(255, 255, 255, 0.06); }
@property --border-color-hover { syntax: '<color>'; inherits: true; initial-value: rgba(255, 255, 255, 0.12); }

/* ─────────────────────────────────────────────────────────────────────────────
   CSS VARIABLES
   ───────────────────────────────────────────────────────────────────────────── */
:root {
    /* Colors - Dark Theme (Default) - Refined cyber palette */
    --bg-primary: #050508;
    --bg-secondary: #0c0c12;
    --bg-tertiary: #141420;
    --bg-card: rgba(18, 18, 28, 0.8);
    --bg-card-hover: rgba(26, 26, 40, 0.9);
    
    --text-primary: #f4f4f8;
    --text-secondary: #94949e;
    --text-muted: #5a5a68;
    
    /* New vibrant accent colors */
    --accent-primary: #00e5ff;
    --accent-secondary: #8b5cf6;
    --accent-tertiary: #f472b6;
    --accent-warm: #ff6b35;
    --accent-gradient: linear-gradient(135deg, #00e5ff 0%, #8b5cf6 50%, #f472b6 100%);
    --accent-gradient-warm: linear-gradient(135deg, #ff6b35 0%, #f472b6 50%, #8b5cf6 100%);
    --accent-gradient-subtle: linear-gradient(135deg, rgba(0, 229, 255, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
    --accent-glow: 0 0 60px rgba(0, 229, 255, 0.3), 0 0 120px rgba(139, 92, 246, 0.15);
    
    --border-color: rgba(255, 255, 255, 0.06);
    --border-color-hover: rgba(255, 255, 255, 0.12);
    --border-gradient: linear-gradient(135deg, rgba(0, 229, 255, 0.3), rgba(139, 92, 246, 0.3), rgba(244, 114, 182, 0.3));
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 24px 80px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 60px rgba(0, 229, 255, 0.12);
    --shadow-glow-intense: 0 0 100px rgba(0, 229, 255, 0.25), 0 0 200px rgba(139, 92, 246, 0.15);
    
    /* Typography - More distinctive pairing */
    --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    /* Spacing */
    --section-padding: 140px;
    --container-width: 1240px;
    
    /* Transitions - More refined */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Border Radius */
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
}

/* Light Theme - Saturated cool tones (consistent with dark mode) */
[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --bg-card: rgba(255, 255, 255, 0.92);
    --bg-card-hover: rgba(255, 255, 255, 0.97);
    
    --text-primary: #0b0c10;
    --text-secondary: #475569;
    --text-muted: #64748b;
    
    /* Saturated cool palette - vibrant versions of dark mode colors */
    --accent-primary: #0ea5e9;
    --accent-secondary: #8b5cf6;
    --accent-tertiary: #f43f5e;
    --accent-warm: #f97316;
    --accent-gradient: linear-gradient(135deg, #0ea5e9 0%, #8b5cf6 50%, #f43f5e 100%);
    --accent-gradient-warm: linear-gradient(135deg, #f97316 0%, #8b5cf6 50%, #f43f5e 100%);
    --accent-gradient-subtle: linear-gradient(135deg, rgba(14, 165, 233, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
    
    --border-color: rgba(15, 23, 42, 0.08);
    --border-color-hover: rgba(15, 23, 42, 0.14);
    
    --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 10px 36px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 28px 90px rgba(15, 23, 42, 0.1);
    --shadow-glow: 0 0 60px rgba(14, 165, 233, 0.15);
    --shadow-glow-intense: 0 0 120px rgba(14, 165, 233, 0.2);
    --accent-glow: 0 0 60px rgba(14, 165, 233, 0.2), 0 0 120px rgba(139, 92, 246, 0.1);
    --border-gradient: linear-gradient(135deg, rgba(14, 165, 233, 0.25), rgba(139, 92, 246, 0.25), rgba(244, 63, 94, 0.25));
}


/* ─────────────────────────────────────────────────────────────────────────────
   RESET & BASE
   ───────────────────────────────────────────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-gradient);
    color: #fff;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    z-index: 10001;
    transition: top 0.3s ease;
    text-decoration: none;
}

.skip-link:focus {
    top: 16px;
    outline: 3px solid var(--accent-primary);
    outline-offset: 2px;
}

/* Focus Visible Styles for Accessibility */
:focus-visible {
    outline: 3px solid var(--accent-primary);
    outline-offset: 3px;
}

/* Remove default focus for mouse users but keep for keyboard */
:focus:not(:focus-visible) {
    outline: none;
}

/* Enhanced focus for interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--accent-primary);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

/* Loading State */
body.loading {
    overflow: hidden;
}

body.loading::before {
    content: '';
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.loading::after {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    width: 48px;
    height: 48px;
    margin: -24px 0 0 -24px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    z-index: 100000;
    animation: spin 0.8s linear infinite;
}

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

body.loaded::before,
body.loaded::after {
    animation: fadeOut 0.5s ease forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-primary) var(--bg-secondary);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-gradient);
    border-radius: 4px;
}

body {
    font-family: var(--font-display);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
}

/* Theme transition — @property variables interpolate on html, all children follow */
html.theme-transitioning {
    transition:
        --bg-primary 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        --bg-secondary 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        --bg-tertiary 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        --bg-card 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        --bg-card-hover 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        --text-primary 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        --text-secondary 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        --text-muted 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        --accent-primary 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        --accent-secondary 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        --accent-tertiary 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        --accent-warm 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        --border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        --border-color-hover 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

::selection {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

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

/* ─────────────────────────────────────────────────────────────────────────────
   CURSOR GLOW EFFECT
   ───────────────────────────────────────────────────────────────────────────── */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    opacity: 0;
}

body:hover .cursor-glow {
    opacity: 1;
}

[data-theme="light"] .cursor-glow {
    background: radial-gradient(circle, rgba(0, 149, 204, 0.06) 0%, transparent 70%);
}

/* ─────────────────────────────────────────────────────────────────────────────
   PHOENIX CONSTELLATION BACKGROUND
   ───────────────────────────────────────────────────────────────────────────── */
#neural-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.7;
}

[data-theme="light"] #neural-bg {
    opacity: 0.55;
}

/* ─────────────────────────────────────────────────────────────────────────────
   NOISE OVERLAY & GRADIENT ORBS
   ───────────────────────────────────────────────────────────────────────────── */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

[data-theme="light"] .noise-overlay {
    opacity: 0.02;
}

.gradient-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
    top: -20%;
    right: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-secondary) 0%, transparent 70%);
    bottom: -10%;
    left: -10%;
    animation-delay: -7s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-tertiary) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
    opacity: 0.2;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -40px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(40px, 30px) scale(1.02); }
}

[data-theme="light"] .orb {
    opacity: 0.15;
    filter: blur(120px);
}

/* ─────────────────────────────────────────────────────────────────────────────
   LAYOUT
   ───────────────────────────────────────────────────────────────────────────── */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: var(--section-padding) 0;
    position: relative;
}

/* ─────────────────────────────────────────────────────────────────────────────
   TYPOGRAPHY
   ───────────────────────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-primary);
}

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

/* ─────────────────────────────────────────────────────────────────────────────
   BUTTONS - Enhanced with modern effects
   ───────────────────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), background-color var(--transition-normal), color var(--transition-normal), border-color var(--transition-normal);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 4px 24px rgba(0, 229, 255, 0.35), 0 1px 3px rgba(0, 0, 0, 0.2);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 229, 255, 0.45), 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:active::after {
    width: 300px;
    height: 300px;
}

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.btn-ghost:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: rgba(0, 229, 255, 0.05);
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.1);
}

.btn-outline {
    background: transparent;
    color: var(--accent-primary);
    border: 2px solid var(--accent-primary);
}

.btn-outline:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
    box-shadow: 0 4px 24px rgba(0, 229, 255, 0.35);
}

.btn-full {
    width: 100%;
}

/* ─────────────────────────────────────────────────────────────────────────────
   NAVIGATION
   ───────────────────────────────────────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: padding var(--transition-normal), background-color var(--transition-normal), backdrop-filter var(--transition-normal), border-color var(--transition-normal);
}

.navbar.scrolled {
    padding: 12px 0;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

[data-theme="light"] .navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

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

.logo-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    position: relative;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: color var(--transition-fast), background-color var(--transition-fast);
}

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

.nav-link.active {
    color: var(--accent-primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Phoenix Constellation Feather Theme Toggle */
.theme-toggle {
    position: relative;
    padding: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: transform var(--transition-normal), filter var(--transition-normal);
}

.theme-toggle:hover {
    /* No background or box-shadow - icon glow handles the hover effect */
}

.feather-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feather-icon {
    display: block;
    transition: transform var(--transition-normal), filter var(--transition-normal);
    overflow: visible;
    /* Multi-layer glow effect for dark mode */
    filter: drop-shadow(0 0 3px rgba(0, 229, 255, 0.5)) 
            drop-shadow(0 0 6px rgba(139, 92, 246, 0.4))
            drop-shadow(0 0 12px rgba(244, 114, 182, 0.3));
}

/* Constellation lines */
.c-line {
    fill: none;
    stroke: url(#phoenixGradient);
    stroke-width: 1.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke-width 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.85;
}

/* Constellation star nodes */
.c-dot {
    fill: url(#phoenixGradient);
    transition: opacity 0.6s ease, filter 0.6s ease;
    opacity: 1;
}

/* Star pulse animation (head/crest stars) */
.star-pulse {
    animation: starPulse 3s infinite ease-in-out alternate;
}

/* Star shimmer animation (barb tip stars) */
.star-shimmer {
    animation: starShimmer 2s infinite ease-in-out alternate;
}

@keyframes starPulse {
    0% { 
        r: 2; 
        opacity: 0.7; 
    }
    100% { 
        r: 3.5; 
        opacity: 1; 
        filter: brightness(1.5); 
    }
}

@keyframes starShimmer {
    0% { 
        opacity: 0.5; 
    }
    100% { 
        opacity: 1; 
    }
}

/* Hover effects */
.theme-toggle:hover .feather-icon {
    transform: translateY(-3px) scale(1.08) rotate(-5deg);
    animation: constellationFloat 2s ease-in-out infinite;
    filter: drop-shadow(0 0 5px rgba(0, 229, 255, 0.7)) 
            drop-shadow(0 0 10px rgba(139, 92, 246, 0.6))
            drop-shadow(0 0 20px rgba(244, 114, 182, 0.5));
}

.theme-toggle:hover .c-line {
    stroke-width: 1.5;
    opacity: 1;
}

.theme-toggle:hover .c-dot {
    opacity: 1;
}

@keyframes constellationFloat {
    0%, 100% {
        transform: translateY(-3px) scale(1.08) rotate(-5deg);
    }
    50% {
        transform: translateY(-8px) scale(1.12) rotate(5deg);
    }
}

/* Constellation tooltip */
.feather-tooltip {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%) scale(0) translateY(10px);
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    opacity: 0;
    transition: transform var(--transition-normal), opacity var(--transition-normal);
    pointer-events: none;
}

.theme-toggle:hover .feather-tooltip {
    transform: translateX(-50%) scale(1) translateY(0);
    opacity: 1;
}

/* Constellation click animation */
.theme-toggle:active .feather-icon {
    transform: scale(0.9) rotate(-10deg);
}

/* ═══════════════════════════════════════════════════════════════════
   BURN ANIMATION - Constellation ignites on theme toggle
   ═══════════════════════════════════════════════════════════════════ */

/* When switching theme - trigger constellation burn animation */
.theme-toggle.switching .feather-icon {
    animation: constellationBurn 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle.switching .c-line {
    animation: lineBurn 0.7s ease-out;
}

.theme-toggle.switching .c-dot {
    animation: starBurst 0.7s ease-out;
}

@keyframes constellationBurn {
    0% {
        filter: drop-shadow(0 0 3px rgba(0, 229, 255, 0.5)) 
                drop-shadow(0 0 6px rgba(139, 92, 246, 0.4))
                drop-shadow(0 0 12px rgba(244, 114, 182, 0.3));
        transform: scale(1) rotate(0deg);
    }
    15% {
        filter: drop-shadow(0 0 8px rgba(255, 107, 53, 0.8)) 
                drop-shadow(0 0 16px rgba(255, 69, 0, 0.6))
                brightness(1.3);
        transform: scale(1.15) rotate(-5deg);
    }
    35% {
        filter: drop-shadow(0 0 15px rgba(255, 69, 0, 1)) 
                drop-shadow(0 0 25px rgba(255, 215, 0, 0.8))
                brightness(1.6);
        transform: scale(1.1) rotate(5deg);
    }
    50% {
        filter: drop-shadow(0 0 25px rgba(255, 215, 0, 1)) 
                drop-shadow(0 0 40px rgba(255, 255, 255, 0.8))
                brightness(2);
        transform: scale(0.95) rotate(0deg);
    }
    65% {
        filter: drop-shadow(0 0 30px rgba(255, 255, 255, 1)) 
                brightness(2.5);
        transform: scale(0.85) rotate(-3deg);
    }
    80% {
        filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.6)) 
                drop-shadow(0 0 20px rgba(0, 229, 255, 0.4))
                brightness(1.2);
        transform: scale(1.05) rotate(3deg);
    }
    100% {
        filter: drop-shadow(0 0 3px rgba(0, 229, 255, 0.5)) 
                drop-shadow(0 0 6px rgba(139, 92, 246, 0.4))
                drop-shadow(0 0 12px rgba(244, 114, 182, 0.3));
        transform: scale(1) rotate(0deg);
    }
}

@keyframes lineBurn {
    0%, 100% {
        stroke-width: 1.2;
        opacity: 0.85;
    }
    30% {
        stroke-width: 2;
        opacity: 1;
    }
    50% {
        stroke-width: 2.5;
        opacity: 1;
    }
}

@keyframes starBurst {
    0% {
        opacity: 1;
        filter: brightness(1);
    }
    25% {
        opacity: 1;
        filter: brightness(1.8) drop-shadow(0 0 3px #ff6b35);
    }
    50% {
        opacity: 1;
        filter: brightness(2.5) drop-shadow(0 0 6px #ffd700);
    }
    75% {
        opacity: 1;
        filter: brightness(1.5) drop-shadow(0 0 4px #8b5cf6);
    }
    100% {
        opacity: 1;
        filter: brightness(1);
    }
}

/* ═══════════════════════════════════════════════════════════════════
   LIGHT MODE - Constellation "dormant" style (visible but muted)
   ═══════════════════════════════════════════════════════════════════ */

[data-theme="light"] .feather-icon {
    filter: drop-shadow(0 2px 6px rgba(99, 102, 241, 0.2));
}

[data-theme="light"] .c-line {
    stroke: url(#phoenixGradientLight);
    stroke-width: 1.4;
    opacity: 0.6;
}

[data-theme="light"] .c-dot {
    fill: url(#phoenixGradientLight);
    opacity: 0.7;
}

/* Disable star animations in light mode */
[data-theme="light"] .star-pulse,
[data-theme="light"] .star-shimmer {
    animation: none;
}

[data-theme="light"] .theme-toggle:hover .feather-icon {
    filter: drop-shadow(0 4px 12px rgba(99, 102, 241, 0.35))
            drop-shadow(0 2px 8px rgba(139, 92, 246, 0.25));
}

[data-theme="light"] .theme-toggle:hover .c-line {
    opacity: 0.8;
    stroke-width: 1.6;
}

[data-theme="light"] .theme-toggle:hover .c-dot {
    opacity: 0.9;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-fast), color var(--transition-fast);
}

.nav-cta:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.nav-cta i {
    font-size: 12px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* ─────────────────────────────────────────────────────────────────────────────
   HERO SECTION - Enhanced with dramatic effects
   ───────────────────────────────────────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    padding: 140px 24px 100px;
    max-width: var(--container-width);
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.status-dot {
    width: 10px;
    height: 10px;
    background: #10b981;
    border-radius: 50%;
    animation: statusPulse 2s infinite;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.6);
    position: relative;
    z-index: 1;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 12px rgba(16, 185, 129, 0.6); }
    50% { opacity: 0.7; transform: scale(1.2); box-shadow: 0 0 20px rgba(16, 185, 129, 0.8); }
}

.hero-title {
    font-size: clamp(44px, 6vw, 72px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
    opacity: 0;
}

.title-line {
    display: block;
}

.word {
    display: inline-block;
    opacity: 0;
    animation: wordReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: calc(var(--delay) * 0.08s + 0.4s);
    position: relative;
}

@keyframes wordReveal {
    from {
        opacity: 0;
        transform: translateY(40px) rotateX(-20deg);
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
        filter: blur(0);
    }
}

.word.highlight {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.word.highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-gradient);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    animation: underlineReveal 0.5s ease 1s forwards;
}

@keyframes underlineReveal {
    to { transform: scaleX(1); }
}

.word.accent {
    color: var(--accent-primary);
    text-shadow: 0 0 30px rgba(0, 229, 255, 0.4);
}

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

.hero-description {
    font-size: 19px;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 520px;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
    opacity: 0;
    font-weight: 400;
}

.hero-description em {
    color: var(--accent-primary);
    font-style: normal;
    font-weight: 600;
}

.hero-description strong {
    color: var(--text-primary);
    font-weight: 700;
}

.hero-location {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
    opacity: 0;
}

.hero-location i {
    color: var(--accent-primary);
    font-size: 13px;
}

.hero-cta {
    display: flex;
    gap: 18px;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
    opacity: 0;
}

.hero-socials {
    display: flex;
    gap: 14px;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards;
    opacity: 0;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 20px;
    transition: color var(--transition-normal), border-color var(--transition-normal), background-color var(--transition-normal), transform var(--transition-normal), box-shadow var(--transition-normal);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.social-link:hover {
    color: #fff;
    border-color: transparent;
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.social-link:hover::before {
    opacity: 1;
}

.social-link i,
.social-link span {
    position: relative;
    z-index: 1;
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    animation: fadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
    opacity: 0;
}

.avatar-wrapper {
    position: relative;
    width: 340px;
    height: 340px;
}

.avatar-glow {
    position: absolute;
    inset: -30px;
    background: var(--accent-gradient);
    border-radius: 50%;
    opacity: 0.25;
    filter: blur(50px);
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.25; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(1.08); }
}

.avatar-ring {
    position: absolute;
    inset: -12px;
    border: 3px solid transparent;
    border-radius: 50%;
    background: var(--accent-gradient) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: rotate 12s linear infinite;
}

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

.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 50%;
    border: 4px solid var(--bg-secondary);
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow-lg);
}

.avatar-badge {
    position: absolute;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    z-index: 2;
    animation: bounce 2.5s ease-in-out infinite;
    backdrop-filter: blur(10px);
}

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

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    animation: fadeIn 1s ease 1.2s forwards;
    opacity: 0;
}

.scroll-text {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
}

.scroll-line {
    width: 2px;
    height: 70px;
    background: var(--border-color);
    position: relative;
    overflow: hidden;
    border-radius: 1px;
}

.scroll-dot {
    position: absolute;
    top: 0;
    width: 100%;
    height: 24px;
    background: var(--accent-gradient);
    animation: scrollDown 2.5s ease-in-out infinite;
    border-radius: 1px;
}

@keyframes scrollDown {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(400%); }
}

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

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

/* ─────────────────────────────────────────────────────────────────────────────
   SECTION HEADERS - Enhanced with constellation reveal animations
   ───────────────────────────────────────────────────────────────────────────── */
.section-header {
    margin-bottom: 70px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.section.aos-animate .section-header {
    opacity: 1;
    transform: translateY(0);
}

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

/* Constellation Sparkle Effect on Section Tags */
.section-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 16px;
    padding: 6px 14px;
    background: var(--accent-gradient-subtle);
    border-radius: 50px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.section-tag::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -20px;
    width: 4px;
    height: 4px;
    background: var(--accent-primary);
    border-radius: 50%;
    opacity: 0;
    animation: starTrail 4s ease-in-out infinite;
    box-shadow: 0 0 6px var(--accent-primary);
}

.section.aos-animate .section-tag::before {
    opacity: 1;
}

@keyframes starTrail {
    0% { left: -20px; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: calc(100% + 20px); opacity: 0; }
}

.section-title {
    font-size: clamp(36px, 5vw, 54px);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.section-desc {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.7;
}

.section-header.center .section-desc {
    margin: 0 auto;
}

/* ─────────────────────────────────────────────────────────────────────────────
   ABOUT SECTION - Enhanced with constellation divider
   ───────────────────────────────────────────────────────────────────────────── */
.about {
    background: var(--bg-secondary);
    position: relative;
    z-index: 2;
}

/* Constellation Line Divider */
.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--accent-primary) 20%,
        var(--accent-secondary) 50%,
        var(--accent-tertiary) 80%,
        transparent 100%
    );
    opacity: 0.4;
}

/* Constellation stars on the divider */
.about::after {
    content: '';
    position: absolute;
    top: -3px;
    left: 20%;
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 
        0 0 10px var(--accent-primary),
        calc(30vw) 0 0 4px var(--accent-secondary),
        calc(30vw) 0 8px var(--accent-secondary),
        calc(60vw) 0 0 5px var(--accent-tertiary),
        calc(60vw) 0 10px var(--accent-tertiary);
    animation: starPulse 3s ease-in-out infinite;
}

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

.about-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 70px;
    align-items: start;
}

.about-intro .lead {
    font-size: 24px;
    line-height: 1.5;
    color: var(--text-primary);
    margin-bottom: 28px;
    font-weight: 500;
}

.about-story p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 18px;
    line-height: 1.85;
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 36px;
}

.highlight-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 22px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-normal), transform var(--transition-normal), box-shadow var(--transition-normal);
    backdrop-filter: blur(10px);
}

.highlight-card:hover {
    border-color: var(--accent-primary);
    transform: translateX(8px);
    box-shadow: var(--shadow-glow);
}

.highlight-icon {
    font-size: 28px;
}

.highlight-content h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
}

.highlight-content p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.about-cards {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.info-card {
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: border-color var(--transition-normal), transform var(--transition-normal), box-shadow var(--transition-normal);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.info-card:hover {
    border-color: var(--border-color-hover);
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
}

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

.info-card.featured {
    background: var(--accent-gradient-subtle);
    border-color: rgba(0, 229, 255, 0.2);
}

.info-card.featured::before {
    opacity: 1;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 13px;
    color: var(--accent-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-header i {
    font-size: 16px;
}

.info-card h4 {
    font-size: 20px;
    margin-bottom: 6px;
    font-weight: 700;
}

.info-card p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.card-meta {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.card-cta {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-primary);
    transition: gap var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.card-cta:hover {
    gap: 10px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   EXPERIENCE SECTION - Enhanced timeline with constellation accents
   ───────────────────────────────────────────────────────────────────────────── */
.experience {
    position: relative;
    z-index: 2;
    background: var(--bg-primary);
}

/* Constellation accent for experience */
.experience::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--accent-secondary) 30%,
        var(--accent-primary) 70%,
        transparent 100%
    );
    opacity: 0.3;
}

.experience-timeline {
    position: relative;
    max-width: 860px;
    margin: 0 auto;
}

.timeline-track {
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--accent-primary), var(--accent-secondary), var(--accent-tertiary));
    border-radius: 2px;
    opacity: 0.3;
}

.timeline-item {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 28px;
    margin-bottom: 48px;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.section.aos-animate .timeline-item {
    opacity: 1;
    transform: translateY(0);
}

.section.aos-animate .timeline-item:nth-child(1) { transition-delay: 0.1s; }
.section.aos-animate .timeline-item:nth-child(2) { transition-delay: 0.2s; }
.section.aos-animate .timeline-item:nth-child(3) { transition-delay: 0.3s; }

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.marker-dot {
    width: 14px;
    height: 14px;
    background: var(--accent-gradient);
    border-radius: 50%;
    box-shadow: 0 0 0 5px var(--bg-primary), 0 0 20px rgba(0, 229, 255, 0.4);
    position: relative;
    z-index: 1;
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 32px;
    transition: border-color 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.timeline-content:hover {
    border-color: transparent;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    transform: translateX(8px);
}

.timeline-content:hover::before {
    opacity: 1;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.role-info h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
}

.company {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 16px;
    transition: gap var(--transition-fast);
}

.company:hover {
    gap: 12px;
}

.company i {
    font-size: 12px;
    transition: transform var(--transition-fast);
}

.company:hover i {
    transform: translate(2px, -2px);
}

.timeline-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.timeline-meta .date {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    padding: 6px 12px;
    background: var(--bg-tertiary);
    border-radius: 50px;
}

.timeline-meta .location {
    font-size: 13px;
    color: var(--text-secondary);
}

.role-summary {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 18px;
    font-style: italic;
    line-height: 1.6;
}

.achievements {
    list-style: none;
    margin-bottom: 24px;
}

.achievements li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.achievements li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background: var(--accent-gradient);
    border-radius: 50%;
}

.achievements li strong {
    color: var(--text-primary);
    font-weight: 600;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tags span {
    padding: 6px 14px;
    background: var(--accent-gradient-subtle);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-primary);
    transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.tech-tags span:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

/* Timeline Sub-sections for multi-product companies */
.timeline-subsections {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.timeline-subsection {
    position: relative;
    padding-left: 20px;
    border-left: 3px solid transparent;
    background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
                linear-gradient(180deg, var(--accent-primary), var(--accent-secondary)) border-box;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 20px;
    padding-left: 24px;
    margin-left: 0;
    transition: background var(--transition-normal), transform var(--transition-normal);
}

.timeline-subsection:hover {
    background: linear-gradient(var(--bg-card-hover), var(--bg-card-hover)) padding-box,
                linear-gradient(180deg, var(--accent-primary), var(--accent-tertiary)) border-box;
    transform: translateX(4px);
}

.subsection-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 16px;
}

.subsection-header h4 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.subsection-header h4 a {
    color: var(--accent-primary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap var(--transition-fast);
}

.subsection-header h4 a:hover {
    gap: 12px;
}

.subsection-header h4 a i {
    font-size: 12px;
    transition: transform var(--transition-fast);
}

.subsection-header h4 a:hover i {
    transform: translate(2px, -2px);
}

.subsection-desc {
    font-size: 14px;
    color: var(--text-secondary);
    font-style: italic;
}

.timeline-subsection .achievements {
    margin-bottom: 18px;
}

.timeline-subsection .tech-tags {
    margin-top: 0;
}

/* Responsive adjustments for sub-sections */
@media (max-width: 768px) {
    .timeline-subsection {
        padding: 16px;
        padding-left: 18px;
    }
    
    .subsection-header h4 {
        font-size: 16px;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   PROJECTS SECTION - Enhanced with constellation divider
   ───────────────────────────────────────────────────────────────────────────── */
.projects {
    background: var(--bg-secondary);
    position: relative;
    z-index: 2;
}

/* Constellation Line Divider for Projects */
.projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--accent-tertiary) 25%,
        var(--accent-secondary) 50%,
        var(--accent-primary) 75%,
        transparent 100%
    );
    opacity: 0.4;
}

.projects::after {
    content: '';
    position: absolute;
    top: -3px;
    right: 25%;
    width: 6px;
    height: 6px;
    background: var(--accent-tertiary);
    border-radius: 50%;
    box-shadow: 
        0 0 10px var(--accent-tertiary),
        calc(-25vw) 0 0 4px var(--accent-secondary),
        calc(-25vw) 0 8px var(--accent-secondary),
        calc(-50vw) 0 0 5px var(--accent-primary),
        calc(-50vw) 0 10px var(--accent-primary);
    animation: starPulse 3s ease-in-out infinite 0.5s;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 28px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: border-color 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(20px);
    position: relative;
    opacity: 0;
    transform: translateY(40px);
}

.section.aos-animate .project-card {
    opacity: 1;
    transform: translateY(0);
}

.section.aos-animate .project-card:nth-child(1) { transition-delay: 0.1s; }
.section.aos-animate .project-card:nth-child(2) { transition-delay: 0.2s; }
.section.aos-animate .project-card:nth-child(3) { transition-delay: 0.3s; }
.section.aos-animate .project-card:nth-child(4) { transition-delay: 0.4s; }
.section.aos-animate .project-card:nth-child(5) { transition-delay: 0.5s; }
.section.aos-animate .project-card:nth-child(6) { transition-delay: 0.6s; }

.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    padding: 1px;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0), rgba(139, 92, 246, 0));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    transition: background 0.5s ease;
}

.project-card:hover {
    border-color: transparent;
    transform: translateY(-8px) scale(1.01);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.project-card:hover::before {
    background: var(--border-gradient);
}

.project-card.featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.project-card.featured .project-image {
    height: 100%;
    min-height: 320px;
}

.project-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.project-visual {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-bg {
    position: absolute;
    inset: 0;
    background: var(--accent-gradient);
    opacity: 0.08;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.project-card:hover .visual-bg {
    opacity: 0.15;
    transform: scale(1.1);
}

.project-visual i {
    font-size: 56px;
    color: var(--accent-primary);
    opacity: 0.7;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    filter: drop-shadow(0 0 30px rgba(0, 229, 255, 0.3));
}

.project-card:hover .project-visual i {
    transform: scale(1.15) rotate(5deg);
    opacity: 1;
    filter: drop-shadow(0 0 50px rgba(0, 229, 255, 0.5));
}

.project-links {
    position: absolute;
    top: 18px;
    right: 18px;
    display: flex;
    gap: 10px;
    opacity: 0;
    transform: translateY(-15px);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-links {
    opacity: 1;
    transform: translateY(0);
}

.project-link {
    width: 44px;
    height: 44px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 18px;
    transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
    backdrop-filter: blur(10px);
}

.project-link:hover {
    background: var(--accent-gradient);
    border-color: transparent;
    color: #fff;
    transform: scale(1.1);
}

.project-content {
    padding: 28px;
}

.project-category {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 14px;
    padding: 4px 10px;
    background: var(--accent-gradient-subtle);
    border-radius: 50px;
}

.project-content h3 {
    font-size: 22px;
    margin-bottom: 14px;
    font-weight: 700;
    line-height: 1.3;
}

.project-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 18px;
}

.project-metrics {
    display: flex;
    gap: 28px;
    margin-bottom: 18px;
    padding: 18px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.metric {
    text-align: center;
}

.metric-value {
    display: block;
    font-size: 20px;
    font-weight: 800;
    font-family: var(--font-mono);
    color: var(--accent-primary);
    line-height: 1;
}

.metric-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 6px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tech span {
    padding: 6px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: border-color var(--transition-fast), color var(--transition-fast);
}

.project-tech span:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.projects-cta {
    text-align: center;
    margin-top: 60px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   SKILLS SECTION - Enhanced with constellation animations
   ───────────────────────────────────────────────────────────────────────────── */
.skills {
    position: relative;
    z-index: 2;
    background: var(--bg-primary);
}

/* Constellation divider for skills */
.skills::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--accent-primary) 20%,
        var(--accent-tertiary) 80%,
        transparent 100%
    );
    opacity: 0.35;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 28px;
    margin-bottom: 70px;
}

.skill-category {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: border-color 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
}

.section.aos-animate .skill-category {
    opacity: 1;
    transform: translateY(0);
}

.section.aos-animate .skill-category:nth-child(1) { transition-delay: 0.1s; }
.section.aos-animate .skill-category:nth-child(2) { transition-delay: 0.15s; }
.section.aos-animate .skill-category:nth-child(3) { transition-delay: 0.2s; }
.section.aos-animate .skill-category:nth-child(4) { transition-delay: 0.25s; }
.section.aos-animate .skill-category:nth-child(5) { transition-delay: 0.3s; }
.section.aos-animate .skill-category:nth-child(6) { transition-delay: 0.35s; }

.skill-category::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.skill-category:hover {
    border-color: transparent;
    transform: translateY(-4px);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

.skill-category:hover::before {
    opacity: 0.03;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.category-header i {
    width: 48px;
    height: 48px;
    background: var(--accent-gradient-subtle);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    font-size: 20px;
    transition: background var(--transition-normal), color var(--transition-normal), box-shadow var(--transition-normal);
}

.skill-category:hover .category-header i {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 4px 20px rgba(0, 229, 255, 0.3);
}

.category-header h3 {
    font-size: 18px;
    font-weight: 700;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    z-index: 1;
}

.skill-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
    transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.skill-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: var(--accent-gradient);
    opacity: 0.12;
    width: calc(var(--level, 0) * 1%);
    transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.skill-item:hover {
    border-color: var(--accent-primary);
    transform: translateX(4px);
}

.skill-name {
    font-size: 14px;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.skill-level {
    font-size: 12px;
    color: var(--accent-primary);
    font-weight: 600;
    position: relative;
    z-index: 1;
    padding: 4px 10px;
    background: var(--accent-gradient-subtle);
    border-radius: 50px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.tag {
    padding: 10px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: border-color var(--transition-fast), color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
    cursor: default;
}

.tag:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: var(--accent-gradient-subtle);
    transform: translateY(-2px);
}

/* Certifications - Enhanced */
.certifications {
    padding-top: 50px;
    border-top: 1px solid var(--border-color);
    position: relative;
}

.certifications::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.cert-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 32px;
    text-align: center;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.cert-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: border-color var(--transition-normal), transform var(--transition-normal), box-shadow var(--transition-normal);
    backdrop-filter: blur(10px);
}

.cert-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

.cert-icon {
    font-size: 36px;
}

.cert-info h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
}

.cert-info span {
    font-size: 13px;
    color: var(--text-secondary);
}

.cert-card.more {
    background: var(--accent-gradient-subtle);
    border-color: rgba(0, 229, 255, 0.2);
}

.cert-card.more .cert-icon {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    font-family: var(--font-mono);
}

/* ─────────────────────────────────────────────────────────────────────────────
   TESTIMONIAL SECTION - Enhanced with dramatic styling
   ───────────────────────────────────────────────────────────────────────────── */
.testimonial {
    background: var(--bg-secondary);
    position: relative;
    z-index: 2;
}

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

.testimonial-card {
    max-width: 900px;
    margin: 0 auto;
    padding: 56px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    position: relative;
    backdrop-filter: blur(20px);
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-gradient);
    opacity: 0.02;
}

.quote-mark {
    position: absolute;
    top: 20px;
    left: 36px;
    font-size: 140px;
    font-family: Georgia, serif;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.15;
    line-height: 1;
}

blockquote {
    font-size: 20px;
    line-height: 1.85;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 36px;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.author-info h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
}

.author-info p {
    color: var(--accent-primary);
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 6px;
}

.author-location {
    font-size: 14px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-companies {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-companies a {
    color: var(--accent-primary);
    font-weight: 600;
    padding: 8px 16px;
    background: var(--accent-gradient-subtle);
    border-radius: 50px;
    border: 1px solid var(--border-color);
    transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.author-companies a:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.author-companies span {
    color: var(--text-muted);
}

/* ─────────────────────────────────────────────────────────────────────────────
   CONTACT SECTION - Enhanced with constellation styling
   ───────────────────────────────────────────────────────────────────────────── */
.contact {
    position: relative;
    z-index: 2;
    background: var(--bg-secondary);
}

/* Constellation divider for contact */
.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--accent-tertiary) 30%,
        var(--accent-secondary) 50%,
        var(--accent-primary) 70%,
        transparent 100%
    );
    opacity: 0.4;
}

/* Phoenix-themed accent star */
.contact::after {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 
        0 0 15px var(--accent-primary),
        0 0 30px var(--accent-secondary);
    animation: starPulse 3s ease-in-out infinite 1s;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    max-width: 960px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: border-color var(--transition-normal), transform var(--transition-normal), box-shadow var(--transition-normal);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.contact-card:hover {
    border-color: transparent;
    transform: translateX(10px);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

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

.contact-card:hover .fa-arrow-right {
    transform: translateX(6px);
    color: var(--accent-primary);
}

.contact-icon {
    width: 56px;
    height: 56px;
    background: var(--accent-gradient-subtle);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    font-size: 22px;
    transition: background var(--transition-normal), color var(--transition-normal);
}

.contact-card:hover .contact-icon {
    background: var(--accent-gradient);
    color: #fff;
}

.contact-details {
    flex: 1;
}

.contact-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.contact-value {
    font-size: 16px;
    font-weight: 600;
}

.contact-card .fa-arrow-right {
    color: var(--text-muted);
    transition: transform var(--transition-fast), color var(--transition-fast);
}

/* Contact Form - Enhanced */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 18px 18px 18px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: var(--font-display);
    font-size: 15px;
    color: var(--text-primary);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    backdrop-filter: blur(10px);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(0, 229, 255, 0.1), var(--shadow-glow);
}

.form-group label {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: var(--text-muted);
    pointer-events: none;
    transition: top var(--transition-fast), transform var(--transition-fast), font-size var(--transition-fast), color var(--transition-fast);
    background: var(--bg-card);
    padding: 0 6px;
    font-weight: 500;
}

.form-group textarea ~ label {
    top: 20px;
    transform: none;
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: 0;
    transform: translateY(-50%);
    font-size: 12px;
    color: var(--accent-primary);
}

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

/* Form Validation States */
.form-group input.invalid,
.form-group textarea.invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group input.valid,
.form-group textarea.valid {
    border-color: #10b981;
}

.form-group input.invalid:focus,
.form-group textarea.invalid:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

/* Screen Reader Only (for accessibility) */
.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;
}

/* ─────────────────────────────────────────────────────────────────────────────
   FORM SUCCESS/ERROR STATES
   ───────────────────────────────────────────────────────────────────────────── */
.contact-form.form-hidden {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.form-success,
.form-error {
    display: none;
    text-align: center;
    padding: 48px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(20px);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-success.visible,
.form-error.visible {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.form-success h3,
.form-error h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.form-success p,
.form-error p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

/* Success state */
.form-success {
    border-color: rgba(16, 185, 129, 0.3);
}

.form-success h3 {
    color: #10b981;
}

.success-icon {
    margin-bottom: 20px;
    color: #10b981;
}

.success-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: successCircle 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.success-check {
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: successCheck 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.5s forwards;
}

@keyframes successCircle {
    to { stroke-dashoffset: 0; }
}

@keyframes successCheck {
    to { stroke-dashoffset: 0; }
}

/* Error state */
.form-error {
    border-color: rgba(239, 68, 68, 0.3);
}

.form-error h3 {
    color: #ef4444;
}

.error-icon {
    margin-bottom: 20px;
    color: #ef4444;
}

.error-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.error-actions .btn {
    min-width: 140px;
}

/* Send another button styling */
.send-another {
    margin-top: 8px;
}

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

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-logo {
    font-family: var(--font-mono);
    font-size: 24px;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-logo .dot {
    -webkit-text-fill-color: var(--accent-primary);
}

.footer-left p {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 8px;
}

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

.footer-center p {
    font-size: 14px;
    color: var(--text-secondary);
}

.footer-center .copyright {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 16px;
    transition: color var(--transition-fast), border-color var(--transition-fast);
}

.footer-socials a:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

/* ─────────────────────────────────────────────────────────────────────────────
   BACK TO TOP
   ───────────────────────────────────────────────────────────────────────────── */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--accent-gradient);
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity var(--transition-normal), visibility var(--transition-normal), transform var(--transition-normal);
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

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

.back-to-top:hover {
    transform: translateY(-4px);
}

/* ─────────────────────────────────────────────────────────────────────────────
   RESPONSIVE DESIGN - Comprehensive mobile-first approach
   ───────────────────────────────────────────────────────────────────────────── */

/* Large tablets and small laptops */
@media (max-width: 1024px) {
    :root {
        --section-padding: 100px;
    }
    
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 50px;
        padding: 120px 20px 80px;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-description {
        max-width: 600px;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-location {
        justify-content: center;
    }
    
    .hero-socials {
        justify-content: center;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .avatar-wrapper {
        width: 280px;
        height: 280px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .project-card.featured {
        grid-column: span 1;
        display: block;
    }
    
    .project-card.featured .project-image {
        min-height: 220px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .testimonial-card {
        padding: 40px;
    }
    
    /* Hide gradient orbs on tablets for performance */
    .orb-3 {
        display: none;
    }
}

/* Tablets */
@media (max-width: 768px) {
    :root {
        --section-padding: 80px;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        height: 100dvh; /* Dynamic viewport height for mobile */
        background: var(--bg-secondary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 28px;
        transition: right var(--transition-normal);
        border-left: 1px solid var(--border-color);
        backdrop-filter: blur(20px);
        z-index: 999;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        font-size: 20px;
        padding: 12px 20px;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    .nav-cta {
        display: none;
    }
    
    .hero {
        padding: 100px 16px 60px;
        gap: 40px;
    }
    
    .hero-title {
        font-size: clamp(32px, 8vw, 48px);
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
        gap: 14px;
    }
    
    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-socials {
        gap: 10px;
    }
    
    .social-link {
        width: 44px;
        height: 44px;
    }
    
    .avatar-wrapper {
        width: 240px;
        height: 240px;
    }
    
    /* Section headers */
    .section-header {
        margin-bottom: 50px;
    }
    
    .section-title {
        font-size: clamp(28px, 6vw, 40px);
    }
    
    .section-tag {
        font-size: 12px;
        padding: 5px 12px;
    }
    
    /* Experience timeline */
    .timeline-item {
        grid-template-columns: 36px 1fr;
        gap: 18px;
    }
    
    .timeline-track {
        left: 16px;
        width: 2px;
    }
    
    .marker-dot {
        width: 12px;
        height: 12px;
    }
    
    .timeline-content {
        padding: 24px;
    }
    
    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .timeline-meta {
        align-items: flex-start;
        flex-direction: row;
        gap: 12px;
    }
    
    .role-info h3 {
        font-size: 18px;
    }
    
    /* Projects */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .project-card.featured .project-image {
        min-height: 150px;
        height: auto;
    }
    
    .project-content {
        padding: 22px;
    }
    
    .project-content h3 {
        font-size: 18px;
    }
    
    .project-metrics {
        gap: 20px;
        padding: 14px;
    }
    
    /* Skills */
    .skills-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .skill-category {
        padding: 22px;
    }
    
    .category-header h3 {
        font-size: 16px;
    }
    
    .tag {
        padding: 8px 14px;
        font-size: 12px;
    }
    
    /* Certifications */
    .cert-grid {
        grid-template-columns: 1fr;
    }
    
    .cert-card {
        padding: 18px;
    }
    
    /* Testimonial */
    .testimonial-card {
        padding: 28px 20px;
    }
    
    .quote-mark {
        font-size: 80px;
        left: 12px;
        top: 8px;
    }
    
    blockquote {
        font-size: 16px;
        line-height: 1.75;
    }
    
    .testimonial-author {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .author-companies {
        flex-wrap: wrap;
    }
    
    /* Contact */
    .contact-card {
        padding: 20px;
    }
    
    .contact-icon {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
    
    .contact-value {
        font-size: 14px;
    }
    
    /* Footer */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .footer-socials {
        justify-content: center;
    }
    
    /* Back to top - move away from edge */
    .back-to-top {
        right: 20px;
        bottom: 20px;
        width: 44px;
        height: 44px;
    }
    
    /* Reduce gradient orbs for performance */
    .orb {
        filter: blur(80px);
        opacity: 0.25;
    }
    
    .orb-2,
    .orb-3 {
        display: none;
    }
    
    /* Reduce noise overlay on mobile */
    .noise-overlay {
        opacity: 0.015;
    }
    
    /* ═══════════════════════════════════════════════════════════════════════════
       MOBILE THEME TOGGLE FIXES
       ═══════════════════════════════════════════════════════════════════════════ */
    
    /* Hide theme toggle tooltip on mobile */
    .feather-tooltip {
        display: none !important;
    }
    
    /* Ensure theme toggle has no box on mobile - completely seamless */
    .theme-toggle {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 2px !important;
        outline: none !important;
    }
    
    .theme-toggle:hover,
    .theme-toggle:focus,
    .theme-toggle:active {
        background: transparent !important;
        box-shadow: none !important;
    }
    
    /* ═══════════════════════════════════════════════════════════════════════════
       MOBILE PROJECT VISUALIZATION FIXES
       ═══════════════════════════════════════════════════════════════════════════ */
    
    /* Ensure project visual container displays properly */
    .project-visual {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: 120px;
    }
    
    /* Scale down all visualizations slightly for mobile */
    .viz-audio,
    .viz-pipeline,
    .viz-shield,
    .viz-chart,
    .viz-rag {
        transform: scale(0.8);
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* VIZ-AUDIO: Waveform + Music Notes */
    .viz-audio {
        position: relative !important;
        width: 120px !important;
        height: 70px !important;
    }
    
    .viz-audio .waveform {
        display: flex !important;
        align-items: center !important;
        gap: 3px !important;
        height: 50px !important;
    }
    
    .viz-audio .wave-bar {
        display: block !important;
        width: 5px !important;
        min-height: 10px !important;
        background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary)) !important;
        border-radius: 3px !important;
        animation: waveformPulse 1.4s ease-in-out infinite !important;
    }
    
    .viz-audio .music-note {
        display: block !important;
        position: absolute !important;
    }
    
    /* VIZ-PIPELINE: ML Pipeline Nodes */
    .viz-pipeline {
        position: relative !important;
        width: 120px !important;
        height: 60px !important;
        align-items: center !important;
        justify-content: space-between !important;
    }
    
    .viz-pipeline .node {
        display: flex !important;
        width: 24px !important;
        height: 24px !important;
        font-size: 8px !important;
    }
    
    .viz-pipeline .connector {
        display: block !important;
        height: 2px !important;
    }
    
    .viz-pipeline .particle {
        display: block !important;
    }
    
    /* VIZ-SHIELD: Risk Gauge */
    .viz-shield {
        position: relative !important;
        width: 90px !important;
        height: 60px !important;
    }
    
    .viz-shield .gauge {
        display: block !important;
        width: 70px !important;
        height: 35px !important;
    }
    
    .viz-shield .needle {
        display: block !important;
    }
    
    .viz-shield .risk-label {
        display: block !important;
        font-size: 9px !important;
    }
    
    /* VIZ-CHART: Recipe Card */
    .viz-chart {
        position: relative !important;
        width: 120px !important;
        height: 70px !important;
    }
    
    .viz-chart .recipe-card {
        display: block !important;
        width: 45px !important;
        height: 55px !important;
    }
    
    .viz-chart .trend-arrow {
        display: flex !important;
    }
    
    .viz-chart .traffic-percent {
        display: block !important;
        font-size: 12px !important;
    }
    
    /* VIZ-RAG: RAG Pipeline */
    .viz-rag {
        position: relative !important;
        width: 120px !important;
        height: 50px !important;
    }
    
    .viz-rag .doc,
    .viz-rag .brain,
    .viz-rag .output {
        display: flex !important;
    }
    
    .viz-rag .flow-line {
        display: block !important;
    }
    
    .viz-rag .chunk {
        display: block !important;
    }
}

/* Small phones */
@media (max-width: 480px) {
    :root {
        --section-padding: 60px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .section-title {
        font-size: 26px;
    }
    
    .hero {
        padding: 90px 16px 50px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-description {
        font-size: 15px;
    }
    
    .avatar-wrapper {
        width: 200px;
        height: 200px;
    }
    
    .avatar-badge {
        width: 44px;
        height: 44px;
        font-size: 22px;
        bottom: 16px;
        right: 16px;
    }
    
    .scroll-indicator {
        display: none;
    }
    
    /* Buttons */
    .btn {
        padding: 14px 24px;
        font-size: 14px;
    }
    
    /* Timeline */
    .timeline-item {
        grid-template-columns: 28px 1fr;
        gap: 14px;
    }
    
    .timeline-track {
        left: 12px;
    }
    
    .timeline-content {
        padding: 20px;
    }
    
    .achievements li {
        font-size: 13px;
        padding-left: 20px;
    }
    
    .tech-tags span {
        padding: 5px 10px;
        font-size: 11px;
    }
    
    /* Projects */
    .project-image {
        height: 180px;
    }
    
    .project-card.featured .project-image {
        min-height: 120px;
    }
    
    .project-visual i {
        font-size: 42px;
    }
    
    .project-content {
        padding: 18px;
    }
    
    .project-content h3 {
        font-size: 16px;
    }
    
    .project-content p {
        font-size: 13px;
    }
    
    .project-tech span {
        padding: 5px 10px;
        font-size: 11px;
    }
    
    /* About */
    .about-intro .lead {
        font-size: 18px;
    }
    
    .highlight-card {
        padding: 14px;
        gap: 14px;
    }
    
    .highlight-icon {
        font-size: 22px;
    }
    
    .info-card {
        padding: 20px;
    }
    
    .info-card h4 {
        font-size: 16px;
    }
    
    /* Skills */
    .skill-item {
        padding: 10px 14px;
    }
    
    .skill-name {
        font-size: 13px;
    }
    
    .skill-level {
        font-size: 10px;
        padding: 3px 8px;
    }
    
    /* Contact form */
    .form-group input,
    .form-group textarea {
        padding: 16px;
        font-size: 14px;
    }
    
    /* Disable backdrop-filter on very small devices for performance */
    .project-card,
    .skill-category,
    .cert-card,
    .contact-card,
    .testimonial-card,
    .nav-menu {
        backdrop-filter: none;
    }
    
    /* Disable cursor glow on touch devices */
    .cursor-glow {
        display: none;
    }
}

/* Extra small phones */
@media (max-width: 360px) {
    .hero-title {
        font-size: 24px;
    }
    
    .avatar-wrapper {
        width: 180px;
        height: 180px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .timeline-content {
        padding: 16px;
    }
    
    .role-info h3 {
        font-size: 16px;
    }
}

/* Landscape phones */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 100px 20px 60px;
    }
    
    .scroll-indicator {
        display: none;
    }
    
    .nav-menu {
        padding: 20px;
        justify-content: flex-start;
        padding-top: 80px;
        gap: 16px;
    }
    
    .nav-link {
        font-size: 16px;
        padding: 8px 16px;
    }
}

/* High DPI screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .avatar-image {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Touch devices - disable hover effects that don't work well */
@media (hover: none) and (pointer: coarse) {
    .cursor-glow {
        display: none !important;
    }
    
    .project-card:hover {
        transform: none;
    }
    
    .btn-primary:hover {
        transform: none;
    }
    
    .social-link:hover {
        transform: none;
    }
    
    /* Add active states for touch */
    .btn-primary:active {
        transform: scale(0.98);
    }
    
    .social-link:active {
        transform: scale(0.95);
    }
    
    .project-card:active {
        transform: scale(0.99);
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   ANIMATIONS & UTILITIES
   ───────────────────────────────────────────────────────────────────────────── */
[data-aos="fade-up"] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos="fade-up"].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Intersection Observer animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ─────────────────────────────────────────────────────────────────────────────
   THEME TRANSITION STYLES
   ───────────────────────────────────────────────────────────────────────────── */

/* Theme switching animation for feather icon (burn effect defined in main feather styles) */
/* The .switching class triggers featherBurn animation */

/* ─────────────────────────────────────────────────────────────────────────────
   CSS VISUALIZATIONS FOR PROJECT CARDS - Unique & Explanatory
   ───────────────────────────────────────────────────────────────────────────── */

/* Common Container */
.project-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Background Glow Effect */
.visual-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, var(--accent-primary), transparent 70%);
    opacity: 0.1;
    transition: opacity 0.5s ease;
}

.project-card:hover .visual-bg {
    opacity: 0.2;
}

/* ═══════════════════════════════════════════════════════════════════════════
   1. SONGLABAI - Waveform + Floating Musical Notes
   ═══════════════════════════════════════════════════════════════════════════ */
.viz-audio {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 80px;
}

/* Animated Waveform */
.viz-audio .waveform {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 60px;
}

.viz-audio .wave-bar {
    width: 6px;
    background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 3px;
    animation: waveformPulse 1.4s ease-in-out infinite;
}

.viz-audio .wave-bar:nth-child(1) { animation-delay: 0s; }
.viz-audio .wave-bar:nth-child(2) { animation-delay: 0.1s; }
.viz-audio .wave-bar:nth-child(3) { animation-delay: 0.2s; }
.viz-audio .wave-bar:nth-child(4) { animation-delay: 0.15s; }
.viz-audio .wave-bar:nth-child(5) { animation-delay: 0.25s; }
.viz-audio .wave-bar:nth-child(6) { animation-delay: 0.1s; }
.viz-audio .wave-bar:nth-child(7) { animation-delay: 0.2s; }

@keyframes waveformPulse {
    0%, 100% { height: 12px; opacity: 0.5; }
    50% { height: 55px; opacity: 1; box-shadow: 0 0 12px var(--accent-primary); }
}

/* Floating Musical Notes */
.viz-audio .music-note {
    position: absolute;
    font-size: 18px;
    color: var(--accent-tertiary);
    animation: floatNote 3s ease-in-out infinite;
    opacity: 0;
}

.viz-audio .note-1 {
    top: 10px;
    right: 15px;
    animation-delay: 0s;
}

.viz-audio .note-2 {
    bottom: 15px;
    left: 10px;
    animation-delay: 1s;
    font-size: 14px;
}

.viz-audio .note-3 {
    top: 20px;
    left: 20px;
    animation-delay: 2s;
    font-size: 12px;
}

@keyframes floatNote {
    0% { transform: translateY(10px) rotate(0deg); opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translateY(-30px) rotate(15deg); opacity: 0; }
}

.project-card:hover .viz-audio .wave-bar {
    animation-duration: 0.7s;
}

.project-card:hover .viz-audio .music-note {
    animation-duration: 2s;
}

/* ═══════════════════════════════════════════════════════════════════════════
   2. ML PIPELINE - Data Flow with Connected Nodes
   ═══════════════════════════════════════════════════════════════════════════ */
.viz-pipeline {
    position: relative;
    width: 140px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Pipeline Nodes */
.viz-pipeline .node {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 2px solid var(--accent-primary);
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: var(--accent-primary);
}

.viz-pipeline .node-1 { border-color: var(--accent-tertiary); }
.viz-pipeline .node-2 { 
    width: 36px; 
    height: 36px; 
    border-color: var(--accent-primary);
    background: var(--accent-gradient-subtle);
}
.viz-pipeline .node-3 { border-color: #10b981; }

/* Connection Lines */
.viz-pipeline .connector {
    position: absolute;
    top: 50%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-tertiary), var(--accent-primary));
    z-index: 1;
}

.viz-pipeline .connector-1 {
    left: 28px;
    width: 30px;
}

.viz-pipeline .connector-2 {
    right: 28px;
    width: 30px;
    background: linear-gradient(90deg, var(--accent-primary), #10b981);
}

/* Flowing Data Particles */
.viz-pipeline .particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    animation: flowParticle 2s linear infinite;
    box-shadow: 0 0 8px var(--accent-primary);
}

.viz-pipeline .particle-1 { left: 20px; animation-delay: 0s; }
.viz-pipeline .particle-2 { left: 20px; animation-delay: 0.7s; }
.viz-pipeline .particle-3 { left: 20px; animation-delay: 1.4s; }

@keyframes flowParticle {
    0% { left: 20px; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: 120px; opacity: 0; }
}

.project-card:hover .viz-pipeline .particle {
    animation-duration: 1.2s;
}

.project-card:hover .viz-pipeline .node {
    box-shadow: 0 0 15px var(--accent-primary);
}

/* ═══════════════════════════════════════════════════════════════════════════
   3. NLP ANALYSIS PIPELINE - Text Entities & Topic Tags
   ═══════════════════════════════════════════════════════════════════════════ */
.viz-nlp {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    width: 160px;
}

.viz-nlp .nlp-line {
    display: flex;
    gap: 4px;
    font-family: var(--font-mono);
    font-size: 10px;
    line-height: 1;
}

.viz-nlp .nlp-token {
    padding: 2px 4px;
    border-radius: 2px;
    color: var(--text-secondary);
    opacity: 0.6;
    transition: opacity 0.3s;
}

.viz-nlp .nlp-entity-org {
    background: rgba(0, 229, 255, 0.15);
    color: var(--accent-primary);
    border-bottom: 2px solid var(--accent-primary);
    opacity: 1;
}

.viz-nlp .nlp-entity-pos {
    background: rgba(74, 222, 128, 0.15);
    color: #4ade80;
    border-bottom: 2px solid #4ade80;
    opacity: 1;
}

.viz-nlp .nlp-entity-loc {
    background: rgba(251, 146, 60, 0.15);
    color: #fb923c;
    border-bottom: 2px solid #fb923c;
    opacity: 1;
}

.viz-nlp .nlp-tags {
    display: flex;
    gap: 6px;
    margin-top: 4px;
}

.viz-nlp .nlp-tag {
    font-size: 9px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    letter-spacing: 0.02em;
    animation: nlpTagPulse 3s ease-in-out infinite;
}

.viz-nlp .nlp-tag-1 {
    background: rgba(74, 222, 128, 0.15);
    color: #4ade80;
    animation-delay: 0s;
}

.viz-nlp .nlp-tag-2 {
    background: rgba(0, 229, 255, 0.15);
    color: var(--accent-primary);
    animation-delay: 0.5s;
}

.viz-nlp .nlp-tag-3 {
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
    animation-delay: 1s;
}

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

.project-card:hover .viz-nlp .nlp-token {
    opacity: 1;
}

.project-card:hover .viz-nlp .nlp-tag {
    animation-duration: 1.5s;
}

/* ═══════════════════════════════════════════════════════════════════════════
   4. RAG SYSTEM - Brain + Document Connection
   ═══════════════════════════════════════════════════════════════════════════ */
.viz-rag {
    position: relative;
    width: 140px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Document Stack */
.viz-rag .doc-stack {
    position: relative;
    width: 35px;
    height: 50px;
}

.viz-rag .doc {
    position: absolute;
    width: 30px;
    height: 40px;
    background: var(--bg-tertiary);
    border: 1px solid var(--text-secondary);
    border-radius: 3px;
}

.viz-rag .doc-1 { top: 0; left: 0; }
.viz-rag .doc-2 { top: 3px; left: 3px; }
.viz-rag .doc-3 { top: 6px; left: 6px; border-color: var(--accent-primary); }

.viz-rag .doc::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 5px;
    right: 5px;
    height: 2px;
    background: var(--text-muted);
    box-shadow: 0 6px 0 var(--text-muted), 0 12px 0 var(--text-muted);
}

/* Brain Icon (simplified) */
.viz-rag .brain {
    width: 40px;
    height: 40px;
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    animation: brainPulse 2s ease-in-out infinite;
}

@keyframes brainPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.3); }
    50% { box-shadow: 0 0 20px 5px rgba(0, 229, 255, 0.3); }
}

/* Connection Beam */
.viz-rag .beam {
    position: absolute;
    top: 50%;
    left: 40px;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--text-secondary), var(--accent-primary));
    transform: translateY(-50%);
}

/* Data Chunks Flowing */
.viz-rag .chunk {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 2px;
    top: 50%;
    transform: translateY(-50%);
    animation: chunkFlow 2s linear infinite;
    opacity: 0;
}

.viz-rag .chunk-1 { animation-delay: 0s; }
.viz-rag .chunk-2 { animation-delay: 0.6s; }
.viz-rag .chunk-3 { animation-delay: 1.2s; }

@keyframes chunkFlow {
    0% { left: 40px; opacity: 0; transform: translateY(-50%) scale(0.5); }
    20% { opacity: 1; transform: translateY(-50%) scale(1); }
    80% { opacity: 1; transform: translateY(-50%) scale(1); }
    100% { left: 95px; opacity: 0; transform: translateY(-50%) scale(0.5); }
}

.project-card:hover .viz-rag .chunk {
    animation-duration: 1.3s;
}

/* ═══════════════════════════════════════════════════════════════════════════
   5. INSURANCE - Risk Gauge with Animated Needle
   ═══════════════════════════════════════════════════════════════════════════ */
.viz-shield {
    position: relative;
    width: 100px;
    height: 70px;
}

/* Gauge Background */
.viz-shield .gauge {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 40px;
    border-radius: 80px 80px 0 0;
    background: linear-gradient(90deg, 
        #10b981 0%, 
        #10b981 33%, 
        #f59e0b 33%, 
        #f59e0b 66%, 
        #ef4444 66%, 
        #ef4444 100%
    );
    overflow: hidden;
}

.viz-shield .gauge::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 30px;
    background: var(--bg-primary);
    border-radius: 60px 60px 0 0;
}

/* Gauge Needle */
.viz-shield .needle {
    position: absolute;
    bottom: 10px;
    left: 50%;
    width: 3px;
    height: 30px;
    background: var(--text-primary);
    transform-origin: bottom center;
    transform: translateX(-50%) rotate(-45deg);
    border-radius: 2px;
    animation: needleSwing 3s ease-in-out infinite;
    z-index: 2;
}

.viz-shield .needle::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background: var(--bg-primary);
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
}

@keyframes needleSwing {
    0%, 100% { transform: translateX(-50%) rotate(-60deg); }
    30% { transform: translateX(-50%) rotate(30deg); }
    60% { transform: translateX(-50%) rotate(-20deg); }
    80% { transform: translateX(-50%) rotate(10deg); }
}

/* Risk Label */
.viz-shield .risk-label {
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    font-weight: 700;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-card:hover .viz-shield .needle {
    animation-duration: 2s;
}

/* ═══════════════════════════════════════════════════════════════════════════
   6. RECIPE TRAFFIC - Recipe Card with Trending Arrow
   ═══════════════════════════════════════════════════════════════════════════ */
.viz-chart {
    position: relative;
    width: 100px;
    height: 80px;
}

/* Recipe Card */
.viz-chart .recipe-card {
    position: absolute;
    left: 10px;
    top: 15px;
    width: 45px;
    height: 55px;
    background: var(--bg-tertiary);
    border: 1px solid var(--text-secondary);
    border-radius: 6px;
    overflow: hidden;
}

/* Recipe Image Area */
.viz-chart .recipe-img {
    height: 25px;
    background: linear-gradient(135deg, var(--accent-tertiary), var(--accent-secondary));
    opacity: 0.6;
}

/* Recipe Lines */
.viz-chart .recipe-card::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 5px;
    right: 5px;
    height: 2px;
    background: var(--text-muted);
    box-shadow: 0 -6px 0 var(--text-muted), 0 -12px 0 var(--text-muted);
}

/* Trending Arrow */
.viz-chart .trend-arrow {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 40px;
}

.viz-chart .arrow-line {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #10b981;
    transform-origin: left center;
    transform: rotate(-35deg);
    border-radius: 2px;
}

.viz-chart .arrow-head {
    position: absolute;
    top: 5px;
    right: 0;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 12px solid #10b981;
    transform: rotate(35deg);
    animation: arrowBounce 1.5s ease-in-out infinite;
}

@keyframes arrowBounce {
    0%, 100% { transform: rotate(35deg) translateY(0); }
    50% { transform: rotate(35deg) translateY(-5px); }
}

/* Traffic Percentage */
.viz-chart .traffic-percent {
    position: absolute;
    bottom: 5px;
    right: 10px;
    font-size: 11px;
    font-weight: 700;
    color: #10b981;
}

.project-card:hover .viz-chart .arrow-head {
    animation-duration: 0.8s;
}

.project-card:hover .viz-chart .recipe-card {
    border-color: var(--accent-primary);
}

/* ═══════════════════════════════════════════════════════════════════════════
   7. ADVICEBUDDY - Brain + Heart + Chat Wellness Visualization
   ═══════════════════════════════════════════════════════════════════════════ */
.viz-wellness {
    position: relative;
    width: 140px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Central Brain Icon */
.viz-wellness .wellness-brain {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: var(--accent-gradient-subtle);
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    animation: brainGlow 3s ease-in-out infinite;
}

.viz-wellness .wellness-brain i {
    font-size: 24px;
    color: var(--accent-primary);
}

@keyframes brainGlow {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.3);
        transform: translate(-50%, -50%) scale(1);
    }
    50% { 
        box-shadow: 0 0 25px 8px rgba(0, 229, 255, 0.25);
        transform: translate(-50%, -50%) scale(1.05);
    }
}

/* Chat Bubble */
.viz-wellness .wellness-chat {
    position: absolute;
    top: 10px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: var(--bg-tertiary);
    border: 2px solid var(--accent-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    animation: chatFloat 4s ease-in-out infinite;
}

.viz-wellness .wellness-chat i {
    font-size: 16px;
    color: var(--accent-secondary);
}

@keyframes chatFloat {
    0%, 100% { transform: translateY(0); opacity: 0.8; }
    50% { transform: translateY(-8px); opacity: 1; }
}

/* Heart Icon */
.viz-wellness .wellness-heart {
    position: absolute;
    bottom: 10px;
    left: 15px;
    width: 32px;
    height: 32px;
    background: var(--bg-tertiary);
    border: 2px solid var(--accent-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    animation: heartBeat 2s ease-in-out infinite;
}

.viz-wellness .wellness-heart i {
    font-size: 14px;
    color: var(--accent-tertiary);
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.15); }
    30% { transform: scale(1); }
    45% { transform: scale(1.1); }
    60% { transform: scale(1); }
}

/* Pulsing Connection Ring */
.viz-wellness .wellness-pulse {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    opacity: 0;
    z-index: 1;
    animation: pulseRing 3s ease-out infinite;
}

@keyframes pulseRing {
    0% { 
        width: 50px;
        height: 50px;
        opacity: 0.6;
    }
    100% { 
        width: 120px;
        height: 120px;
        opacity: 0;
    }
}

/* Hover Effects */
.project-card:hover .viz-wellness .wellness-brain {
    animation-duration: 2s;
}

.project-card:hover .viz-wellness .wellness-chat {
    animation-duration: 2.5s;
}

.project-card:hover .viz-wellness .wellness-heart {
    animation-duration: 1.2s;
}

.project-card:hover .viz-wellness .wellness-pulse {
    animation-duration: 2s;
}

/* Mobile adjustments for wellness visualization */
@media (max-width: 768px) {
    .viz-wellness {
        transform: scale(0.8);
    }
}

/* --- Nitaqat Compliance Gauge --- */
.viz-nitaqat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 0 20px;
}

.nitaqat-labels {
    display: flex;
    gap: 16px;
    align-items: center;
}

.nitaqat-labels .label-ar {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    animation: nitaqatLabelToggle 3s ease-in-out infinite;
}

.nitaqat-labels .label-en {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    animation: nitaqatLabelToggle 3s ease-in-out infinite reverse;
}

.nitaqat-gauge {
    position: relative;
    display: flex;
    width: 100%;
    height: 22px;
    border-radius: 11px;
    overflow: visible;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.gauge-band {
    flex: 1;
    height: 100%;
}

.gauge-band:first-child { border-radius: 11px 0 0 11px; }
.gauge-band:nth-child(5) { border-radius: 0 11px 11px 0; }

.band-red       { background: #ef4444; }
.band-low-green { background: #84cc16; }
.band-mid-green { background: #22c55e; }
.band-high-green { background: #16a34a; }
.band-platinum  { background: linear-gradient(90deg, #94a3b8, #e2e8f0); }

.gauge-needle {
    position: absolute;
    top: -5px;
    bottom: -5px;
    width: 3px;
    background: #fff;
    border-radius: 3px;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.9);
    animation: needleSlide 4s ease-in-out infinite alternate;
}

.nitaqat-band-labels {
    display: flex;
    width: 100%;
    justify-content: space-between;
    font-size: 9px;
    color: var(--text-secondary);
    opacity: 0.7;
}

@keyframes needleSlide {
    0%   { left: 8%; }
    40%  { left: 35%; }
    70%  { left: 62%; }
    100% { left: 82%; }
}

@keyframes nitaqatLabelToggle {
    0%, 45%  { opacity: 1; }
    55%, 100% { opacity: 0.3; }
}

/* Project card animation delays for 7 cards */
.section.aos-animate .project-card:nth-child(7) { transition-delay: 0.7s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    html[data-theme],
    html[data-theme] * {
        transition-duration: 0.01ms !important;
    }

    html.theme-transitioning {
        transition-duration: 0.01ms !important;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   DE-AI-FIED REFINEMENTS
   ───────────────────────────────────────────────────────────────────────────── */

/* Skill List Format (replaces tag soup) */
.skill-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.skill-list li {
    font-size: 14px;
    color: var(--text-secondary);
    padding: 10px 14px;
    background: var(--bg-tertiary);
    border-left: 3px solid var(--accent-primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    transition: background var(--transition-fast), color var(--transition-fast);
    line-height: 1.5;
}

.skill-list li:hover {
    background: var(--accent-gradient-subtle);
    color: var(--text-primary);
    border-left-color: var(--accent-secondary);
    transform: translateX(4px);
}

html.theme-transitioning .skill-list li {
    transition: none;
}

/* Highlight icon styling (FA icons instead of emojis) */
.highlight-icon i {
    font-size: 22px;
    color: var(--accent-primary);
}

.highlight-card:hover .highlight-icon i {
    color: var(--accent-secondary);
}

/* Cert icon styling (FA icons instead of emojis) */
.cert-icon i {
    font-size: 28px;
    color: var(--accent-primary);
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.cert-card:hover .cert-icon i {
    color: var(--accent-secondary);
    transform: scale(1.1);
}

/* Hugging Face icon styling */
.hf-icon {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 700;
    color: inherit;
}

/* Compact project cards for visual variety */
.project-card.compact {
    grid-column: span 1;
}

.project-card.compact .project-image {
    height: 160px;
}

.project-card.compact .project-content {
    padding: 22px;
}

.project-card.compact .project-content h3 {
    font-size: 18px;
}

.project-card.compact .project-metrics {
    gap: 20px;
    padding: 14px;
}

/* Enhanced section headers without numbers */
.section-header h2 {
    position: relative;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-gradient);
    border-radius: 2px;
    margin-top: 16px;
}

.section-header.center h2::after {
    margin-left: auto;
    margin-right: auto;
}

/* Hero name emphasis - make Ahmed more prominent */
.hero-title .word.highlight {
    font-size: 1.1em;
    text-shadow: 0 0 40px rgba(0, 229, 255, 0.3);
}

/* Subtle project card hover - clean shadow increase */
.project-card {
    position: relative;
    transition: box-shadow var(--transition-normal);
}

.project-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .project-card:hover {
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
}

/* Section density variation */
.about {
    padding-top: 160px;
    padding-bottom: 160px;
}

.experience {
    padding-top: 120px;
    padding-bottom: 120px;
}

.skills {
    padding-top: 100px;
    padding-bottom: 100px;
}

/* Subtle asymmetry - offset section headers */
.experience .section-header,
.skills .section-header {
    padding-left: 20px;
}

/* Improved staggered animations */
.section.aos-animate .skill-category {
    animation: fadeSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

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

.section.aos-animate .skill-category:nth-child(1) { animation-delay: 0.1s; }
.section.aos-animate .skill-category:nth-child(2) { animation-delay: 0.18s; }
.section.aos-animate .skill-category:nth-child(3) { animation-delay: 0.26s; }
.section.aos-animate .skill-category:nth-child(4) { animation-delay: 0.34s; }
.section.aos-animate .skill-category:nth-child(5) { animation-delay: 0.42s; }
.section.aos-animate .skill-category:nth-child(6) { animation-delay: 0.50s; }

/* Mobile responsive adjustments for new styles */
@media (max-width: 768px) {
    .skill-list li {
        font-size: 13px;
        padding: 8px 12px;
    }
    
    .project-card.compact .project-image {
        height: 140px;
    }
    
    .section-header h2::after {
        width: 40px;
        height: 3px;
        margin-top: 12px;
    }
    
    .about {
        padding-top: 100px;
        padding-bottom: 100px;
    }
    
    .experience {
        padding-top: 80px;
        padding-bottom: 80px;
    }
    
    .skills {
        padding-top: 70px;
        padding-bottom: 70px;
    }
    
    .experience .section-header,
    .skills .section-header {
        padding-left: 0;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PHOENIX IGNITION - Theme Toggle Animation
   ═══════════════════════════════════════════════════════════════════════════ */

.phoenix-burn-overlay {
    position: fixed;
    inset: 0;
    z-index: 99998;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
}

.phoenix-burn-overlay.igniting {
    opacity: 1;
    visibility: visible;
}

/* Main burn wave - subtle radial gradient from toggle position */
.burn-wave {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at var(--ignition-x, 95%) var(--ignition-y, 3%),
        transparent 0%,
        rgba(255, 107, 53, 0.25) 8%,
        rgba(255, 69, 0, 0.35) 15%,
        rgba(255, 215, 0, 0.15) 25%,
        transparent 40%
    );
    transform: scale(0);
    opacity: 0;
}

.phoenix-burn-overlay.igniting .burn-wave {
    animation: burnExpand 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes burnExpand {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* Floating ember particles - subtle */
.ember {
    position: absolute;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, #ffd700 0%, #ff6b35 60%, #ff4500 100%);
    border-radius: 50%;
    opacity: 0;
    filter: blur(0.5px);
    box-shadow: 0 0 6px #ff6b35, 0 0 12px rgba(255, 69, 0, 0.5);
}

.phoenix-burn-overlay.igniting .ember {
    animation: emberFloat 0.6s ease-out forwards;
}

.ember-1 { top: 3%; right: 6%; animation-delay: 0s; }
.ember-2 { top: 5%; right: 3%; animation-delay: 0.05s; }
.ember-3 { top: 2%; right: 9%; animation-delay: 0.1s; }

@keyframes emberFloat {
    0% {
        opacity: 0;
        transform: translate(0, 0) scale(0);
    }
    25% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(
            calc((var(--ember-x, 0.5) - 0.5) * 120px),
            calc((var(--ember-y, 0.5) - 0.5) * 120px - 60px)
        ) scale(0.2);
    }
}

/* Feather glow effect during ignition */
.theme-toggle.igniting .feather-icon {
    filter: drop-shadow(0 0 12px #ff6b35) drop-shadow(0 0 24px rgba(255, 69, 0, 0.6));
    transition: filter 0.15s ease;
}

.theme-toggle.igniting .c-line {
    stroke: url(#burn-gradient) !important;
    filter: drop-shadow(0 0 6px #ff6b35);
    transition: stroke 0.15s ease, filter 0.15s ease;
}

.theme-toggle.igniting .c-dot {
    fill: #ffd700 !important;
    filter: drop-shadow(0 0 4px #ff6b35);
    transition: fill 0.15s ease, filter 0.15s ease;
}

/* Light mode burn colors - cooler tones */
[data-theme="light"] .burn-wave {
    background: radial-gradient(
        circle at var(--ignition-x, 95%) var(--ignition-y, 3%),
        transparent 0%,
        rgba(14, 165, 233, 0.25) 8%,
        rgba(139, 92, 246, 0.3) 15%,
        rgba(244, 63, 94, 0.15) 25%,
        transparent 40%
    );
}

[data-theme="light"] .ember {
    background: radial-gradient(circle, #0ea5e9 0%, #8b5cf6 60%, #f43f5e 100%);
    box-shadow: 0 0 6px #8b5cf6, 0 0 12px rgba(14, 165, 233, 0.5);
}

[data-theme="light"] .theme-toggle.igniting .feather-icon {
    filter: drop-shadow(0 0 12px #8b5cf6) drop-shadow(0 0 24px rgba(14, 165, 233, 0.6));
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .phoenix-burn-overlay,
    .burn-wave,
    .ember {
        display: none;
    }
    
    .theme-toggle.igniting .feather-icon,
    .theme-toggle.igniting .c-line,
    .theme-toggle.igniting .c-dot {
        filter: none !important;
        transition: none !important;
    }
}

