/* ==========================================================================
   GIRISH GOWDA PORTFOLIO - ULTRA-MODERN GEN-Z DEVELOPER AESTHETIC
   ========================================================================== */

:root {
    /* Cyberpunk Neon Default */
    --bg-primary: #0a0a0c;
    --bg-secondary: #111116;
    --bg-surface: #151322;
    --bg-surface-glass: rgba(21, 19, 34, 0.65);
    --bg-card: rgba(21, 19, 34, 0.7);
    --bg-card-sub: rgba(255, 255, 255, 0.04);
    --border-color: rgba(139, 92, 246, 0.2);
    --border-bright: rgba(139, 92, 246, 0.5);
    --accent-primary: #8B5CF6;
    --accent-secondary: #EC4899;
    --accent-tertiary: #06B6D4;
    --accent-success: #10B981;
    --accent-warning: #F59E0B;
    --text-primary: #F9FAFB;
    --text-secondary: #9CA3AF;
    --text-muted: #6B7280;
    --glow-color: rgba(139, 92, 246, 0.35);
    --glow-secondary: rgba(236, 72, 153, 0.3);
    --card-gradient: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
    --card-shadow: 0 16px 32px 0 rgba(0, 0, 0, 0.37);
    --card-shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 24px rgba(139, 92, 246, 0.35);
    --terminal-bg: rgba(10, 10, 15, 0.94);
    --terminal-header-bg: rgba(21, 19, 34, 0.95);
    --terminal-chips-bg: rgba(14, 13, 22, 0.85);
    --terminal-input-bg: rgba(17, 16, 26, 0.95);
    --terminal-border: rgba(139, 92, 246, 0.25);
    --terminal-text: #F9FAFB;
    --terminal-command: #FFFFFF;
    --terminal-output: #9CA3AF;
    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

body.theme-tokyonight {
    --bg-primary: #1a1b26;
    --bg-secondary: #16161e;
    --bg-surface: #24283b;
    --bg-surface-glass: rgba(36, 40, 59, 0.7);
    --bg-card: rgba(36, 40, 59, 0.75);
    --bg-card-sub: rgba(255, 255, 255, 0.04);
    --border-color: rgba(115, 218, 202, 0.18);
    --border-bright: rgba(115, 218, 202, 0.45);
    --accent-primary: #73daca;
    --accent-secondary: #ff9e64;
    --accent-tertiary: #bb9af7;
    --accent-success: #9ece6a;
    --accent-warning: #e0af68;
    --text-primary: #c0caf5;
    --text-secondary: #787c99;
    --text-muted: #565f89;
    --glow-color: rgba(115, 218, 202, 0.3);
    --glow-secondary: rgba(255, 158, 100, 0.25);
    --card-gradient: linear-gradient(135deg, rgba(115, 218, 202, 0.05) 0%, rgba(36, 40, 59, 0.3) 100%);
    --card-shadow: 0 16px 32px 0 rgba(0, 0, 0, 0.37);
    --card-shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 24px rgba(115, 218, 202, 0.3);
    --terminal-bg: #16161e;
    --terminal-header-bg: #1f2335;
    --terminal-chips-bg: #1a1b26;
    --terminal-input-bg: #1f2335;
    --terminal-border: rgba(115, 218, 202, 0.22);
    --terminal-text: #c0caf5;
    --terminal-command: #73daca;
    --terminal-output: #9aa5ce;
}

body.theme-catppuccin {
    --bg-primary: #1e1e2e;
    --bg-secondary: #181825;
    --bg-surface: #313244;
    --bg-surface-glass: rgba(49, 50, 68, 0.7);
    --bg-card: rgba(49, 50, 68, 0.7);
    --bg-card-sub: rgba(255, 255, 255, 0.04);
    --border-color: rgba(180, 190, 254, 0.18);
    --border-bright: rgba(180, 190, 254, 0.45);
    --accent-primary: #b4befe;
    --accent-secondary: #fab387;
    --accent-tertiary: #a6e3a1;
    --accent-success: #a6e3a1;
    --accent-warning: #f9e2af;
    --text-primary: #cdd6f4;
    --text-secondary: #a6adc8;
    --text-muted: #6c7086;
    --glow-color: rgba(180, 190, 254, 0.3);
    --glow-secondary: rgba(250, 179, 135, 0.25);
    --card-gradient: linear-gradient(135deg, rgba(180, 190, 254, 0.05) 0%, rgba(49, 50, 68, 0.3) 100%);
    --card-shadow: 0 16px 32px 0 rgba(0, 0, 0, 0.37);
    --card-shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 24px rgba(180, 190, 254, 0.3);
    --terminal-bg: #181825;
    --terminal-header-bg: #1e1e2e;
    --terminal-chips-bg: #11111b;
    --terminal-input-bg: #1e1e2e;
    --terminal-border: rgba(180, 190, 254, 0.22);
    --terminal-text: #cdd6f4;
    --terminal-command: #b4befe;
    --terminal-output: #a6adc8;
}

body.theme-matrix {
    --bg-primary: #000000;
    --bg-secondary: #050a06;
    --bg-surface: #0c140d;
    --bg-surface-glass: rgba(12, 20, 13, 0.8);
    --bg-card: rgba(12, 20, 13, 0.85);
    --bg-card-sub: rgba(16, 185, 129, 0.05);
    --border-color: rgba(16, 185, 129, 0.25);
    --border-bright: rgba(34, 197, 94, 0.6);
    --accent-primary: #10B981;
    --accent-secondary: #22C55E;
    --accent-tertiary: #34D399;
    --accent-success: #22C55E;
    --accent-warning: #F59E0B;
    --text-primary: #f1f5f9;
    --text-secondary: #6ee7b7;
    --text-muted: #047857;
    --glow-color: rgba(16, 185, 129, 0.35);
    --glow-secondary: rgba(34, 197, 94, 0.25);
    --card-gradient: linear-gradient(135deg, rgba(16, 185, 129, 0.06) 0%, rgba(0, 0, 0, 0.4) 100%);
    --card-shadow: 0 16px 32px 0 rgba(0, 0, 0, 0.37);
    --card-shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 24px rgba(16, 185, 129, 0.35);
    --terminal-bg: #000000;
    --terminal-header-bg: #050a06;
    --terminal-chips-bg: #020503;
    --terminal-input-bg: #050a06;
    --terminal-border: rgba(16, 185, 129, 0.35);
    --terminal-text: #22C55E;
    --terminal-command: #10B981;
    --terminal-output: #34D399;
}

/* ==========================================================================
   LIGHT & MINIMALIST THEME PRESETS (PURE PRISTINE WHITE CARDS)
   ========================================================================== */

body.theme-nordic-frost {
    --bg-primary: #F8FAFC;
    --bg-secondary: #FFFFFF;
    --bg-surface: #FFFFFF;
    --bg-surface-glass: rgba(255, 255, 255, 0.88);
    --bg-card: #FFFFFF;
    --bg-card-sub: #F1F5F9;
    --border-color: rgba(2, 132, 199, 0.16);
    --border-bright: rgba(2, 132, 199, 0.45);
    --accent-primary: #0284C7;
    --accent-secondary: #2563EB;
    --accent-tertiary: #0D9488;
    --accent-success: #16A34A;
    --accent-warning: #D97706;
    --text-primary: #0F172A;
    --text-secondary: #334155;
    --text-muted: #64748B;
    --glow-color: rgba(2, 132, 199, 0.2);
    --glow-secondary: rgba(37, 99, 235, 0.15);
    --card-gradient: #FFFFFF;
    --card-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
    --card-shadow-hover: 0 16px 36px rgba(2, 132, 199, 0.12), 0 0 18px rgba(2, 132, 199, 0.15);
    --terminal-bg: #FFFFFF;
    --terminal-header-bg: #F1F5F9;
    --terminal-chips-bg: #F8FAFC;
    --terminal-input-bg: #F1F5F9;
    --terminal-border: rgba(2, 132, 199, 0.22);
    --terminal-text: #0F172A;
    --terminal-command: #0284C7;
    --terminal-output: #334155;
}

body.theme-catppuccin-latte {
    --bg-primary: #eff1f5;
    --bg-secondary: #ffffff;
    --bg-surface: #ffffff;
    --bg-surface-glass: rgba(255, 255, 255, 0.9);
    --bg-card: #ffffff;
    --bg-card-sub: #f2f3f8;
    --border-color: rgba(114, 135, 253, 0.18);
    --border-bright: rgba(114, 135, 253, 0.48);
    --accent-primary: #7287fd;
    --accent-secondary: #fe640b;
    --accent-tertiary: #40a02b;
    --accent-success: #40a02b;
    --accent-warning: #df8e1d;
    --text-primary: #4c4f69;
    --text-secondary: #5c5f77;
    --text-muted: #7c7f93;
    --glow-color: rgba(114, 135, 253, 0.2);
    --glow-secondary: rgba(254, 100, 11, 0.16);
    --card-gradient: #ffffff;
    --card-shadow: 0 10px 28px rgba(76, 79, 105, 0.06);
    --card-shadow-hover: 0 16px 36px rgba(114, 135, 253, 0.14), 0 0 18px rgba(114, 135, 253, 0.16);
    --terminal-bg: #ffffff;
    --terminal-header-bg: #e6e9ef;
    --terminal-chips-bg: #eff1f5;
    --terminal-input-bg: #e6e9ef;
    --terminal-border: rgba(114, 135, 253, 0.22);
    --terminal-text: #4c4f69;
    --terminal-command: #7287fd;
    --terminal-output: #5c5f77;
}

body.theme-minimalist-mono {
    --bg-primary: #ffffff;
    --bg-secondary: #f4f4f5;
    --bg-surface: #ffffff;
    --bg-surface-glass: rgba(255, 255, 255, 0.95);
    --bg-card: #ffffff;
    --bg-card-sub: #f4f4f5;
    --border-color: #e4e4e7;
    --border-bright: #18181b;
    --accent-primary: #18181b;
    --accent-secondary: #52525b;
    --accent-tertiary: #09090b;
    --accent-success: #15803d;
    --accent-warning: #b45309;
    --text-primary: #09090b;
    --text-secondary: #3f3f46;
    --text-muted: #71717a;
    --glow-color: rgba(0, 0, 0, 0.06);
    --glow-secondary: rgba(24, 24, 27, 0.08);
    --card-gradient: #ffffff;
    --card-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    --card-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.07);
    --terminal-bg: #ffffff;
    --terminal-header-bg: #f4f4f5;
    --terminal-chips-bg: #fafafa;
    --terminal-input-bg: #f4f4f5;
    --terminal-border: #e4e4e7;
    --terminal-text: #09090b;
    --terminal-command: #18181b;
    --terminal-output: #3f3f46;
}

/* Light Theme Card Shadow & Dot Grid Overrides */
body.theme-nordic-frost,
body.theme-catppuccin-latte,
body.theme-minimalist-mono {
    color-scheme: light;
}

body.theme-nordic-frost .glass-panel,
body.theme-catppuccin-latte .glass-panel,
body.theme-minimalist-mono .glass-panel,
body.theme-nordic-frost .bento-card,
body.theme-catppuccin-latte .bento-card,
body.theme-minimalist-mono .bento-card {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

body.theme-nordic-frost .theme-dropdown-menu,
body.theme-catppuccin-latte .theme-dropdown-menu,
body.theme-minimalist-mono .theme-dropdown-menu {
    background: #ffffff !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12), 0 0 16px rgba(0, 0, 0, 0.04) !important;
}

body.theme-nordic-frost .theme-item:hover,
body.theme-catppuccin-latte .theme-item:hover,
body.theme-minimalist-mono .theme-item:hover {
    background: var(--bg-card-sub);
}

body.theme-nordic-frost .theme-item.active,
body.theme-catppuccin-latte .theme-item.active,
body.theme-minimalist-mono .theme-item.active {
    background: var(--bg-card-sub);
    border-color: var(--accent-primary);
}

body.theme-nordic-frost .mobile-nav-panel,
body.theme-catppuccin-latte .mobile-nav-panel,
body.theme-minimalist-mono .mobile-nav-panel {
    background: #ffffff !important;
    border-left: 1px solid var(--border-color) !important;
    box-shadow: -15px 0 40px rgba(0, 0, 0, 0.08) !important;
}

body.theme-nordic-frost .mobile-nav-link:hover,
body.theme-catppuccin-latte .mobile-nav-link:hover,
body.theme-minimalist-mono .mobile-nav-link:hover {
    background: var(--bg-card-sub) !important;
    color: var(--text-primary) !important;
}

body.theme-nordic-frost .mobile-theme-card,
body.theme-catppuccin-latte .mobile-theme-card,
body.theme-minimalist-mono .mobile-theme-card {
    background: var(--bg-card-sub) !important;
    border-color: var(--border-color) !important;
}

body.theme-nordic-frost .chip-tech,
body.theme-catppuccin-latte .chip-tech,
body.theme-minimalist-mono .chip-tech {
    background: var(--bg-card-sub) !important;
    color: var(--text-secondary) !important;
    border-color: var(--border-color) !important;
}

body.theme-nordic-frost .chip-tech:hover,
body.theme-catppuccin-latte .chip-tech:hover,
body.theme-minimalist-mono .chip-tech:hover {
    background: rgba(0, 0, 0, 0.05) !important;
    color: var(--accent-primary) !important;
    border-color: var(--accent-primary) !important;
}

body.theme-nordic-frost .radar-pill,
body.theme-catppuccin-latte .radar-pill,
body.theme-minimalist-mono .radar-pill {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #059669;
}

body.theme-nordic-frost .aurora-orb,
body.theme-catppuccin-latte .aurora-orb,
body.theme-minimalist-mono .aurora-orb {
    opacity: 0.12;
}

body.theme-nordic-frost .aurora-grid-overlay,
body.theme-catppuccin-latte .aurora-grid-overlay,
body.theme-minimalist-mono .aurora-grid-overlay {
    background-image: radial-gradient(rgba(0, 0, 0, 0.06) 1px, transparent 1px);
}

body.theme-minimalist-mono .bento-card {
    border-radius: 12px;
}

/* ==========================================================================
   GLOBAL RESET & BASE STYLES
   ========================================================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    color-scheme: dark;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    overflow-x: hidden;
    min-height: 100vh;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* Code & Mono Elements */
code, pre, .font-mono {
    font-family: var(--font-mono) !important;
}

/* ==========================================================================
   ANIMATED AURORA & MESH BACKGROUND
   ========================================================================== */

.aurora-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.aurora-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.28;
    mix-blend-mode: screen;
    will-change: transform;
}

.aurora-orb-1 {
    top: -10%;
    left: 15%;
    width: 55vw;
    height: 55vw;
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
    animation: aurora-drift-1 22s ease-in-out infinite alternate;
}

.aurora-orb-2 {
    bottom: -15%;
    right: 5%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--accent-secondary) 0%, transparent 70%);
    animation: aurora-drift-2 28s ease-in-out infinite alternate;
}

.aurora-orb-3 {
    top: 40%;
    right: 25%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, var(--accent-tertiary) 0%, transparent 70%);
    animation: aurora-drift-3 18s ease-in-out infinite alternate;
}

/* Subtle dot grid overlay */
.aurora-grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.7;
}

/* ==========================================================================
   KEYFRAME ANIMATIONS
   ========================================================================== */

@keyframes aurora-drift-1 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(80px, 60px) scale(1.12); }
    100% { transform: translate(-50px, 90px) scale(0.95); }
}

@keyframes aurora-drift-2 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-70px, -50px) scale(1.08); }
    100% { transform: translate(60px, -80px) scale(0.92); }
}

@keyframes aurora-drift-3 {
    0% { transform: translate(0, 0) scale(0.9); }
    50% { transform: translate(-60px, 50px) scale(1.15); }
    100% { transform: translate(40px, -40px) scale(1); }
}

@keyframes pulse-dot {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

@keyframes marquee {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}

@keyframes marquee-reverse {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0%); }
}

@keyframes border-glow {
    0%, 100% {
        border-color: var(--accent-primary);
        box-shadow: 0 0 20px var(--glow-color);
    }
    50% {
        border-color: var(--accent-secondary);
        box-shadow: 0 0 25px var(--glow-secondary);
    }
}

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

/* ==========================================================================
   GLASSMORPHISM & BENTO CARDS
   ========================================================================== */

.glass-panel {
    background: var(--bg-surface-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    box-shadow: 0 16px 32px 0 rgba(0, 0, 0, 0.37);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel:hover {
    border-color: var(--border-bright);
    box-shadow: 0 20px 40px 0 rgba(0, 0, 0, 0.45), 0 0 20px var(--glow-color);
}

.bento-card {
    position: relative;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.35s ease, 
                box-shadow 0.35s ease,
                background-color 0.35s ease;
}

.bento-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-bright);
    box-shadow: var(--card-shadow-hover);
}

.card-sub-box {
    background: var(--bg-card-sub);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

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

/* Glow border animation utility */
.glow-border-active {
    animation: border-glow 4s ease-in-out infinite;
}

/* ==========================================================================
   RADAR STATUS PILL
   ========================================================================== */

.radar-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #34D399;
    letter-spacing: 0.02em;
}

.radar-dot {
    width: 8px;
    height: 8px;
    background-color: #10B981;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

/* ==========================================================================
   INFINITE MARQUEE TICKER
   ========================================================================== */

.marquee-container {
    overflow: hidden;
    user-select: none;
    display: flex;
    gap: 16px;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
    width: max-content;
    animation: marquee 30s linear infinite;
}

.marquee-track-reverse {
    animation: marquee-reverse 35s linear infinite;
}

.marquee-container:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: var(--bg-surface-glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.25s ease;
}

.marquee-tag:hover {
    border-color: var(--accent-primary);
    background: var(--bg-card-sub);
    color: var(--accent-primary);
    transform: scale(1.04);
    box-shadow: 0 0 15px var(--glow-color);
}

/* ==========================================================================
   TERMINAL WIDGET
   ========================================================================== */

body.terminal-fullscreen-active {
    overflow: hidden !important;
}

body.terminal-fullscreen-active .sticky-navbar {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

body.terminal-fullscreen-active .portfolio-container {
    position: static !important;
    z-index: auto !important;
}

body.terminal-fullscreen-active .reveal-on-scroll {
    transform: none !important;
    transition: none !important;
}

body.terminal-fullscreen-active * {
    will-change: auto !important;
}

.terminal-box {
    background: var(--terminal-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--terminal-border);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 480px;
    max-height: 480px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.terminal-box.fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    margin: 0 !important;
    z-index: 999999 !important;
    border: none !important;
    border-radius: 0 !important;
    background: var(--terminal-bg) !important;
    backdrop-filter: blur(30px) !important;
    -webkit-backdrop-filter: blur(30px) !important;
    box-shadow: none !important;
    animation: terminal-expand 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes terminal-expand {
    from {
        opacity: 0.85;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.terminal-header {
    background: var(--terminal-header-bg);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--terminal-border);
    flex-shrink: 0;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.terminal-chips-bar {
    background: var(--terminal-chips-bg);
    border-bottom: 1px solid var(--terminal-border);
    flex-shrink: 0;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.terminal-box.fullscreen .terminal-header {
    padding: 14px 24px;
    background: var(--terminal-header-bg);
    border-bottom: 1px solid var(--terminal-border);
}

.terminal-box.fullscreen .terminal-body {
    padding: 24px 30px;
    font-size: 0.92rem;
}

.terminal-box.fullscreen .terminal-input-wrapper-outer {
    padding: 14px 24px !important;
    background: var(--terminal-input-bg) !important;
    border-top: 1px solid var(--terminal-border) !important;
}

.terminal-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.terminal-dot:hover {
    transform: scale(1.15);
    opacity: 0.85;
}

.terminal-dot.close { background: #ff5f56; }
.terminal-dot.minimize { background: #ffbd2e; }
.terminal-dot.maximize { background: #27c93f; }

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    user-select: none;
}

.terminal-action-btn {
    background: var(--bg-card-sub);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    transition: all 0.2s ease;
}

.terminal-action-btn:hover {
    background: var(--glow-color);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.terminal-body {
    background: var(--terminal-bg);
    padding: 16px;
    flex: 1 1 0px;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    font-family: var(--font-mono);
    font-size: 0.84rem;
    line-height: 1.6;
    color: var(--terminal-text);
    scroll-behavior: smooth;
    transition: background 0.3s ease, color 0.3s ease;
}

.terminal-command-text {
    color: var(--terminal-command);
    font-family: var(--font-mono);
    transition: color 0.3s ease;
}

.terminal-output-pre {
    color: var(--terminal-output);
    font-family: var(--font-mono);
    transition: color 0.3s ease;
}

@media (max-width: 600px) {
    .terminal-box {
        height: 420px;
        max-height: 420px;
    }
}

.terminal-input-wrapper-outer {
    background: var(--terminal-input-bg);
    border-top: 1px solid var(--terminal-border);
    flex-shrink: 0;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.terminal-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--terminal-border);
}

.terminal-prompt-symbol {
    color: var(--accent-success);
    font-weight: 700;
}

.terminal-input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--terminal-text);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    width: 100%;
    transition: color 0.3s ease;
}

.terminal-input::placeholder {
    color: var(--text-muted);
    opacity: 0.65;
}

/* ==========================================================================
   INITIAL PRELOADER
   ========================================================================== */

.initial-loader-wrapper {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a0a0c;
    z-index: 9999;
    font-family: 'JetBrains Mono', monospace;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 420px;
    padding: 30px;
    text-align: center;
}

.loader-cyber-ring {
    position: relative;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-cyber-ring .ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
}

.ring-outer {
    inset: 0;
    border-top-color: #8B5CF6;
    border-right-color: #8B5CF6;
    animation: spin 1.8s linear infinite;
}

.ring-middle {
    inset: 8px;
    border-bottom-color: #EC4899;
    border-left-color: #EC4899;
    animation: spin-reverse 2.4s linear infinite;
}

.ring-inner {
    inset: 16px;
    border-top-color: #06B6D4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-glyph {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.05em;
    text-shadow: 0 0 10px #8B5CF6;
}

.loader-terminal-line {
    font-size: 0.85rem;
    color: #9CA3AF;
}

.prompt-user { color: #10B981; }
.prompt-dir { color: #38BDF8; }
.typing-text { color: #F3F4F6; }

.loader-progress-bar {
    width: 240px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.loader-progress-fill {
    height: 100%;
    width: 60%;
    background: linear-gradient(90deg, #8B5CF6, #EC4899, #06B6D4);
    border-radius: 4px;
    animation: loader-slide 1.5s ease-in-out infinite alternate;
}

.loader-meta {
    display: flex;
    gap: 12px;
    font-size: 0.65rem;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.blinking-dot {
    color: #10B981;
    animation: blink 1s step-start infinite;
}

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

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

@keyframes loader-slide {
    from { transform: translateX(-40%); width: 30%; }
    to { transform: translateX(120%); width: 60%; }
}

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

/* ==========================================================================
   STICKY HEADER & NAV
   ========================================================================== */

.sticky-navbar {
    position: sticky;
    top: 16px;
    z-index: 1000;
    margin: 16px auto 0 auto;
    max-width: 1280px;
    padding: 0 16px;
}

.nav-container {
    position: relative;
    background: var(--bg-surface-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    overflow: visible !important;
}

.nav-container:hover {
    border-color: var(--border-bright);
}

.nav-scroll-progress-track {
    position: absolute;
    bottom: 0;
    left: 28px;
    right: 28px;
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 999px;
    overflow: hidden;
    pointer-events: none;
}

body.theme-nordic-frost .nav-scroll-progress-track,
body.theme-catppuccin-latte .nav-scroll-progress-track,
body.theme-minimalist-mono .nav-scroll-progress-track {
    background: rgba(0, 0, 0, 0.05);
}

.nav-scroll-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    box-shadow: 0 0 10px var(--glow-color);
    transition: width 0.08s linear;
}

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

.nav-link-item {
    position: relative;
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    padding: 6px 14px;
    border-radius: 9999px;
    transition: all 0.25s ease;
}

.nav-link-item:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

body.theme-nordic-frost .nav-link-item:hover,
body.theme-catppuccin-latte .nav-link-item:hover,
body.theme-minimalist-mono .nav-link-item:hover {
    background: rgba(0, 0, 0, 0.04);
}

.nav-link-item.active {
    color: var(--accent-primary) !important;
    background: rgba(255, 255, 255, 0.08);
    font-weight: 700;
}

body.theme-nordic-frost .nav-link-item.active,
body.theme-catppuccin-latte .nav-link-item.active,
body.theme-minimalist-mono .nav-link-item.active {
    background: rgba(0, 0, 0, 0.05);
}

.nav-active-pill {
    position: absolute;
    bottom: 1px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 2.5px;
    border-radius: 999px;
    background: var(--accent-primary);
    box-shadow: 0 0 8px var(--glow-color);
    animation: pill-glow 0.3s ease;
}

@keyframes pill-glow {
    0% { transform: translateX(-50%) scaleX(0.3); opacity: 0; }
    100% { transform: translateX(-50%) scaleX(1); opacity: 1; }
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================================== */

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.06s; }
.reveal-delay-2 { transition-delay: 0.12s; }
.reveal-delay-3 { transition-delay: 0.18s; }
.reveal-delay-4 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
    .reveal-on-scroll {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

.brand-text {
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
}

.brand-name {
    color: var(--text-primary);
}

.brand-bracket {
    color: var(--accent-primary);
}

/* ==========================================================================
   BUTTONS & BADGES
   ========================================================================== */

.btn-cyber-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary)) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 18px var(--glow-color) !important;
    transition: all 0.3s ease !important;
    text-transform: none !important;
}

.btn-cyber-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px var(--glow-secondary) !important;
}

.btn-cyber-outline {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    backdrop-filter: blur(10px) !important;
    transition: all 0.3s ease !important;
    text-transform: none !important;
}

.btn-cyber-outline:hover {
    border-color: var(--accent-primary) !important;
    background: var(--glow-color) !important;
    box-shadow: 0 0 16px var(--glow-color) !important;
}

.chip-tech {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-secondary) !important;
    font-family: var(--font-mono) !important;
    font-size: 0.75rem !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
}

.chip-tech:hover {
    color: #fff !important;
    border-color: var(--accent-primary) !important;
    background: rgba(139, 92, 246, 0.15) !important;
}

/* ==========================================================================
   THEME DROPDOWN & MOBILE NAVIGATION STYLES
   ========================================================================== */

.theme-dropdown-container {
    position: relative;
    display: inline-block;
}

.theme-dropdown-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: transparent;
}

.theme-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 1001;
    width: 320px;
    max-width: calc(100vw - 32px);
    background: rgba(14, 13, 22, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-bright);
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 25px var(--glow-color);
    animation: dropdown-fade-in 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dropdown-fade-in {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.theme-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    margin-bottom: 4px;
}

.theme-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-color);
    transform: translateX(2px);
}

.theme-item.active {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--border-bright);
}

/* Mobile Hamburger Button */
.mobile-hamburger-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-hamburger-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-primary);
    color: #fff;
}

/* Mobile Navigation Overlay */
.mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    animation: fade-in 0.25s ease;
}

.mobile-nav-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 86vw;
    max-width: 380px;
    height: 100vh;
    background: rgba(14, 13, 22, 0.97);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border-left: 1px solid var(--border-bright);
    z-index: 1001;
    overflow-y: auto;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: -15px 0 40px rgba(0, 0, 0, 0.7);
    animation: slide-in-right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slide-in-right {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-sans);
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.mobile-nav-link:hover, .mobile-nav-link:active {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border-color: var(--border-color);
}

.mobile-nav-link.active {
    background: rgba(255, 255, 255, 0.08) !important;
    color: var(--accent-primary) !important;
    border-color: var(--accent-primary) !important;
    font-weight: 700;
}

.mobile-theme-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-theme-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--border-bright);
}

.mobile-theme-card.active {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-primary);
    box-shadow: 0 0 14px var(--glow-color);
}

/* ==========================================================================
   RESPONSIVENESS
   ========================================================================== */

@media (max-width: 960px) {
    .nav-links {
        display: none !important;
    }
    .mobile-hamburger-btn {
        display: inline-flex;
    }
    .sticky-navbar {
        top: 8px;
        padding: 0 12px;
    }
    .nav-container {
        padding: 8px 16px;
    }
    .desktop-theme-name {
        display: none;
    }
}

