/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color-scheme: light;
}

:root {
    /* ═══════════════════════════════════════════════════════════════
       30OHM DESIGN SYSTEM - Terminal-Punk Engineering Aesthetic
       Hybrid Theme: Dark sections for impact, Light for readability
       ═══════════════════════════════════════════════════════════════ */

    /* Dark Theme (Hero, Terminal, Philosophy, Contact, Footer) */
    --dark-bg: #0a0a0f;
    --dark-bg-secondary: #0f0f16;
    --dark-surface: #16161f;
    --dark-surface-elevated: #1c1c28;

    /* Light Theme (About, Services, Experience, Skills) */
    --light-bg: #f8f9fc;
    --light-bg-alt: #f0f2f8;
    --light-surface: #ffffff;

    /* Resistor Brand Colors - AMPLIFIED */
    --color-orange: #ff6b35;
    --color-orange-bright: #ff7f4d;
    --color-orange-dark: #e55a2b;
    --color-orange-glow: rgba(255, 107, 53, 0.4);
    --color-black: #0a0a0f;
    --color-gold: #ffd700;
    --color-gold-glow: rgba(255, 215, 0, 0.35);

    /* Terminal/Engineering Accents */
    --terminal-green: #00ff41;
    --terminal-green-dim: #00cc34;
    --terminal-cyan: #00d4ff;
    --terminal-cyan-dim: #00a8cc;

    /* Text Colors - Dark Theme */
    --text-on-dark: #e8e8ed;
    --text-on-dark-muted: #9898a8;
    --text-on-dark-subtle: #6a6a7a;

    /* Text Colors - Light Theme */
    --text-on-light: #1a1a2e;
    --text-on-light-muted: #4a4a5e;
    --text-on-light-subtle: #7a7a8e;

    /* Accent colors */
    --color-accent: #ff6b35;
    --color-accent-dark: #e55a2b;
    --color-accent-light: #ff8c5a;

    /* Terminal colors */
    --color-terminal-bg: #0a0a0f;
    --color-terminal-text: #00ff41;
    --color-terminal-prompt: #00d4ff;

    /* Spacing - Based on 8px baseline grid */
    --spacing-xs: 0.5rem;    /* 8px */
    --spacing-sm: 1rem;      /* 16px */
    --spacing-md: 1.5rem;    /* 24px */
    --spacing-lg: 2rem;      /* 32px */
    --spacing-xl: 3rem;      /* 48px */
    --spacing-2xl: 4rem;     /* 64px */
    --spacing-3xl: 6rem;     /* 96px */

    /* Vertical Rhythm */
    --line-height-tight: 1.2;
    --line-height-base: 1.6;
    --line-height-relaxed: 1.7;

    /* Section spacing */
    --section-padding-y: var(--spacing-3xl);
    --section-padding-x: var(--spacing-sm);

    /* Navigation height */
    --navbar-height: 72px;

    /* Typography - Engineering Aesthetic */
    /* Swap --font-display to test alternatives: 'Space Mono', 'IBM Plex Mono' */
    --font-display: 'JetBrains Mono', monospace;
    --font-primary: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'Fira Code', 'JetBrains Mono', monospace;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s ease;
    --transition-bounce: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Shadows - Enhanced for dark theme */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.25);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.3);
    --shadow-glow-orange: 0 0 30px var(--color-orange-glow);
    --shadow-glow-gold: 0 0 20px var(--color-gold-glow);
    --shadow-glow-green: 0 0 15px rgba(0, 255, 65, 0.3);

    /* Border Radius - More technical, less rounded */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 12px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-weight: 400;
    color: var(--text-on-light);
    background: var(--dark-bg);
    line-height: var(--line-height-base);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* Typography - Engineering Aesthetic */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: var(--line-height-tight);
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em;
}

/* Typographic scale with monospace display font */
h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: var(--spacing-md);
}

h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
}

h3 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

h4 {
    font-size: clamp(1.1rem, 1.5vw, 1.25rem);
    font-weight: 600;
}

p {
    font-family: var(--font-primary);
    margin-bottom: var(--spacing-md);
    line-height: var(--line-height-relaxed);
}

/* Lead paragraphs */
.lead {
    font: 400 1.25rem/1.7 var(--font-primary);
}

/* Links in content */
a:not(.btn):not(.nav-menu a):not(.logo):not(.contact-link) {
    color: var(--color-orange);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
    border-bottom: 1px solid transparent;
}

a:not(.btn):not(.nav-menu a):not(.logo):not(.contact-link):hover {
    color: var(--color-orange-bright);
    border-bottom-color: var(--color-orange);
}

/* ═══════════════════════════════════════════════════════════════
   NAVIGATION - Dark glassmorphism
   ═══════════════════════════════════════════════════════════════ */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 107, 53, 0.1);
    z-index: 1000;
    transition: var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.95);
    border-bottom-color: rgba(255, 107, 53, 0.2);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-sm) 0;
    height: var(--navbar-height);
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-on-dark);
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    transition: var(--transition-fast);
}

.logo:hover {
    color: var(--color-orange);
}

/* Resistor Logo - Enhanced visibility on dark backgrounds */
.resistor {
    display: flex;
    align-items: center;
    gap: 5px;
    height: 32px;
    margin-right: var(--spacing-md);
    padding: 6px 10px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 107, 53, 0.2);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
}

/* Subtle glow container effect */
.resistor::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), transparent, rgba(255, 215, 0, 0.1));
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.logo:hover .resistor::before {
    opacity: 1;
}

.band {
    width: 7px;
    height: 100%;
    border-radius: 2px;
    transition: var(--transition-normal);
    position: relative;
}

.band-1 {
    background: linear-gradient(180deg, var(--color-orange-bright), var(--color-orange));
    box-shadow:
        0 0 12px var(--color-orange-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Black bands - visible with lighter gray and border glow */
.band-2,
.band-3 {
    background: linear-gradient(180deg, #4a4a5a, #3a3a48);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 0 4px rgba(0, 0, 0, 0.5);
}

.band-4 {
    background: linear-gradient(180deg, #ffe44d, var(--color-gold));
    box-shadow:
        0 0 10px var(--color-gold-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    margin-left: 8px;
}

.logo:hover .band-1 {
    box-shadow: 0 0 15px var(--color-orange-glow), 0 0 25px var(--color-orange-glow);
}

.logo:hover .band-4 {
    box-shadow: 0 0 12px var(--color-gold-glow), 0 0 20px var(--color-gold-glow);
}

.logo:hover .band {
    animation: logoPulse 0.8s ease infinite;
}

.logo:hover .band-1 { animation-delay: 0s; }
.logo:hover .band-2 { animation-delay: 0.1s; }
.logo:hover .band-3 { animation-delay: 0.2s; }
.logo:hover .band-4 { animation-delay: 0.3s; }

@keyframes logoPulse {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(1.15); }
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
}

.nav-menu a {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-on-dark-muted);
    text-decoration: none;
    transition: var(--transition-fast);
    position: relative;
    padding: var(--spacing-xs) 0;
}

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

/* Router LED-style blinking underscores - network activity pattern */
.nav-menu a::after {
    content: '_';
    position: absolute;
    bottom: 0;
    left: 0;
    color: var(--color-orange);
    opacity: 0.2;
}

/* Each nav item has unique blink pattern like network activity LEDs */
.nav-menu li:nth-child(1) a::after { animation: ledActivity1 4s ease-in-out infinite; }
.nav-menu li:nth-child(2) a::after { animation: ledActivity2 5s ease-in-out infinite 0.5s; }
.nav-menu li:nth-child(3) a::after { animation: ledActivity3 4.5s ease-in-out infinite 1.2s; }
.nav-menu li:nth-child(4) a::after { animation: ledActivity4 3.5s ease-in-out infinite 0.3s; }
.nav-menu li:nth-child(5) a::after { animation: ledActivity5 4.2s ease-in-out infinite 0.8s; }

.nav-menu a:hover::after {
    opacity: 1;
    animation: none;
}

/* Burst patterns: fast blinks, then pause, repeat */
@keyframes ledActivity1 {
    0%, 5% { opacity: 0.8; }
    6%, 10% { opacity: 0.2; }
    11%, 14% { opacity: 0.8; }
    15%, 18% { opacity: 0.2; }
    19%, 21% { opacity: 0.8; }
    22%, 60% { opacity: 0.2; }
    61%, 64% { opacity: 0.7; }
    65%, 68% { opacity: 0.2; }
    69%, 71% { opacity: 0.8; }
    72%, 100% { opacity: 0.2; }
}

@keyframes ledActivity2 {
    0%, 20% { opacity: 0.2; }
    21%, 24% { opacity: 0.8; }
    25%, 27% { opacity: 0.2; }
    28%, 30% { opacity: 0.7; }
    31%, 34% { opacity: 0.2; }
    35%, 37% { opacity: 0.8; }
    38%, 75% { opacity: 0.2; }
    76%, 79% { opacity: 0.8; }
    80%, 83% { opacity: 0.2; }
    84%, 86% { opacity: 0.7; }
    87%, 100% { opacity: 0.2; }
}

@keyframes ledActivity3 {
    0%, 8% { opacity: 0.2; }
    9%, 12% { opacity: 0.8; }
    13%, 16% { opacity: 0.2; }
    17%, 19% { opacity: 0.7; }
    20%, 45% { opacity: 0.2; }
    46%, 49% { opacity: 0.8; }
    50%, 52% { opacity: 0.2; }
    53%, 55% { opacity: 0.8; }
    56%, 58% { opacity: 0.2; }
    59%, 61% { opacity: 0.7; }
    62%, 100% { opacity: 0.2; }
}

@keyframes ledActivity4 {
    0%, 3% { opacity: 0.8; }
    4%, 7% { opacity: 0.2; }
    8%, 10% { opacity: 0.7; }
    11%, 40% { opacity: 0.2; }
    41%, 44% { opacity: 0.8; }
    45%, 48% { opacity: 0.2; }
    49%, 51% { opacity: 0.8; }
    52%, 55% { opacity: 0.2; }
    56%, 58% { opacity: 0.7; }
    59%, 80% { opacity: 0.2; }
    81%, 84% { opacity: 0.8; }
    85%, 87% { opacity: 0.2; }
    88%, 90% { opacity: 0.7; }
    91%, 100% { opacity: 0.2; }
}

@keyframes ledActivity5 {
    0%, 15% { opacity: 0.2; }
    16%, 19% { opacity: 0.8; }
    20%, 23% { opacity: 0.2; }
    24%, 26% { opacity: 0.7; }
    27%, 30% { opacity: 0.2; }
    31%, 33% { opacity: 0.8; }
    34%, 55% { opacity: 0.2; }
    56%, 59% { opacity: 0.8; }
    60%, 63% { opacity: 0.2; }
    64%, 66% { opacity: 0.7; }
    67%, 100% { opacity: 0.2; }
}

/* cursorBlink keyframes defined in animations.css */

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-sm);
    gap: 5px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-orange);
    transition: var(--transition-fast);
}

/* ═══════════════════════════════════════════════════════════════
   HERO SECTION - Dark, Dramatic, Terminal-Punk
   ═══════════════════════════════════════════════════════════════ */
.hero {
    min-height: 100vh;
    padding-top: var(--navbar-height);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark-bg);
    position: relative;
    overflow: hidden;
}

/* Grid pattern background - LOWEST layer */
/* Primary grid + parallel offset grid for depth */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        /* Primary grid */
        linear-gradient(rgba(255, 107, 53, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 107, 53, 0.05) 1px, transparent 1px),
        /* Parallel offset grid - fainter, shifted by half */
        linear-gradient(rgba(255, 107, 53, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 107, 53, 0.03) 1px, transparent 1px);
    background-size: 50px 50px, 50px 50px, 50px 50px, 50px 50px;
    background-position: 0 0, 0 0, 25px 25px, 25px 25px;
    pointer-events: none;
    z-index: 0;
}

/* Data packets - zigzag path along grid (horizontal then vertical) */
.hero-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 300%;
    height: 300%;
    background-image: radial-gradient(circle, rgba(255, 107, 53, 0.3) 2px, transparent 2px);
    background-size: 450px 400px;
    pointer-events: none;
    z-index: 1;
    animation: dataZigzag1 30s linear infinite, dotPulse 3s ease-in-out infinite;
}

/* Data packets - opposite zigzag path (vertical then horizontal) */
.hero-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 300%;
    height: 300%;
    background-image: radial-gradient(circle, rgba(255, 107, 53, 0.25) 2px, transparent 2px);
    background-size: 400px 500px;
    background-position: 200px 200px;
    pointer-events: none;
    z-index: 1;
    animation: dataZigzag2 35s linear infinite, dotPulse 4s ease-in-out infinite 1.5s;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Zigzag: right, down, right, down pattern */
@keyframes dataZigzag1 {
    0% { transform: translate(0, 0); }
    25% { transform: translate(-225px, 0); }
    50% { transform: translate(-225px, -200px); }
    75% { transform: translate(-450px, -200px); }
    100% { transform: translate(-450px, -400px); }
}

/* Zigzag: down, right, down, right pattern */
@keyframes dataZigzag2 {
    0% { transform: translate(0, 0); }
    25% { transform: translate(0, -250px); }
    50% { transform: translate(-200px, -250px); }
    75% { transform: translate(-200px, -500px); }
    100% { transform: translate(-400px, -500px); }
}

/* Subtle scanlines only - no vignette to preserve schematic visibility */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.02),
            rgba(0, 0, 0, 0.02) 1px,
            transparent 1px,
            transparent 3px
        );
    pointer-events: none;
    z-index: 2;
    animation: scanlines 0.1s linear infinite;
    will-change: transform;
}

/* CRT scan lines for other dark sections */
.philosophy::after,
.contact::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.03),
        rgba(0, 0, 0, 0.03) 1px,
        transparent 1px,
        transparent 3px
    );
    pointer-events: none;
    z-index: 5;
    animation: scanlines 0.1s linear infinite;
    will-change: transform;
}

@keyframes scanlines {
    0% { transform: translateY(0); }
    100% { transform: translateY(3px); }
}

.hero-content {
    text-align: center;
    z-index: 20;
    position: relative;
    padding: var(--spacing-lg);
}

.hero-title {
    font-size: clamp(3.5rem, 8vw, 6rem);
    font-weight: 800;
    margin-bottom: var(--spacing-lg);
    position: relative;
    display: inline-block;
    line-height: 1;
    letter-spacing: -0.03em;
    animation: fadeInUp 0.8s ease;
}

.hero-title-text {
    color: var(--text-on-dark);
    text-shadow:
        0 0 40px var(--color-orange-glow),
        0 0 80px rgba(255, 107, 53, 0.2);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

/* Glitch effect on hover */
.hero-title:hover .hero-title-text {
    animation: glitchText 0.3s ease;
}

@keyframes glitchText {
    0% { transform: translate(0); text-shadow: 0 0 40px var(--color-orange-glow); }
    20% { transform: translate(-2px, 2px); text-shadow: -2px 0 var(--terminal-cyan), 2px 0 #ff00de; }
    40% { transform: translate(2px, -2px); text-shadow: 2px 0 var(--terminal-cyan), -2px 0 #ff00de; }
    60% { transform: translate(-1px, 1px); text-shadow: -1px 0 var(--terminal-cyan), 1px 0 #ff00de; }
    80% { transform: translate(1px, -1px); text-shadow: 1px 0 var(--terminal-cyan), -1px 0 #ff00de; }
    100% { transform: translate(0); text-shadow: 0 0 40px var(--color-orange-glow); }
}

/* Hero Resistor - Glowing visualization behind title */
.hero-resistor {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 1;
    opacity: 1;
}

.hero-band {
    width: 24px;
    height: 140px;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.hero-band-1 {
    background: var(--color-orange);
    box-shadow:
        0 0 20px var(--color-orange-glow),
        0 0 40px var(--color-orange-glow),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    animation: resistorPulse 3s ease-in-out infinite;
}

.hero-band-2,
.hero-band-3 {
    background: linear-gradient(180deg, #242430 0%, #141418 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow:
        0 0 10px rgba(0, 0, 0, 0.5),
        inset 0 0 10px rgba(255, 255, 255, 0.015);
    animation: resistorPulse 3s ease-in-out infinite;
}

.hero-band-2 { animation-delay: 0.15s; }
.hero-band-3 { animation-delay: 0.3s; }

.hero-band-4 {
    background: var(--color-gold);
    box-shadow:
        0 0 15px var(--color-gold-glow),
        0 0 30px var(--color-gold-glow),
        inset 0 0 15px rgba(255, 255, 255, 0.2);
    margin-left: 12px;
    animation: resistorPulse 3s ease-in-out infinite 0.45s;
}

@keyframes resistorPulse {
    0%, 100% {
        transform: scaleY(1);
        filter: brightness(1);
    }
    50% {
        transform: scaleY(1.05);
        filter: brightness(1.2);
    }
}

.hero-subtitle {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 500;
    color: var(--color-orange);
    margin-bottom: var(--spacing-md);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-tagline {
    font-family: var(--font-primary);
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    color: var(--text-on-dark-muted);
    margin-bottom: var(--spacing-xl);
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease 0.4s both;
}

/* Buttons - Engineering Style with sharp corners */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: all var(--transition-normal);
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.btn-primary {
    background: var(--color-orange);
    color: var(--dark-bg);
    border-color: var(--color-orange);
    box-shadow:
        0 0 20px var(--color-orange-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* LED indicator effect */
.btn-primary::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--terminal-green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--terminal-green);
    animation: ledBlink 2s ease-in-out infinite;
}

@keyframes ledBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.btn-primary:hover {
    background: var(--color-orange-bright);
    border-color: var(--color-orange-bright);
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 0 40px var(--color-orange-glow),
        0 0 80px rgba(255, 107, 53, 0.3),
        0 15px 35px rgba(0, 0, 0, 0.3);
    filter: brightness(1.1);
}

.btn-primary:hover::before {
    animation: ledPowerOn 0.3s ease forwards;
}

@keyframes ledPowerOn {
    0% { box-shadow: 0 0 8px var(--terminal-green); }
    50% { box-shadow: 0 0 20px var(--terminal-green), 0 0 40px var(--terminal-green); }
    100% { box-shadow: 0 0 12px var(--terminal-green); }
}

/* Sweep effect on hover */
.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s ease;
}

.btn-primary:hover::after {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(0) scale(1);
    filter: brightness(0.95);
}

/* DevOps Infrastructure Schematic Background */
.hero-schematic {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    overflow: hidden;
    opacity: 1;
    pointer-events: none;
}

.schematic-svg {
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    display: block;
}

/* Animate pipeline flow lines */
.flow-line {
    stroke-dasharray: 8 4;
    animation: flowPulse 20s linear infinite;
}

.flow-line:nth-child(2) { animation-delay: -4s; }
.flow-line:nth-child(3) { animation-delay: -8s; }
.flow-line:nth-child(4) { animation-delay: -12s; }
.flow-line:nth-child(5) { animation-delay: -16s; }

@keyframes flowPulse {
    0% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -120; }
}

/* Subtle pulse on schematic elements */
.schematic-element {
    animation: schemaPulse 4s ease-in-out infinite;
}

.schematic-element:nth-child(odd) { animation-delay: -2s; }

@keyframes schemaPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Annotations fade in/out subtly */
.annotations text {
    animation: annotationFade 6s ease-in-out infinite;
}

.annotations text:nth-child(2) { animation-delay: -1.2s; }
.annotations text:nth-child(3) { animation-delay: -2.4s; }
.annotations text:nth-child(4) { animation-delay: -3.6s; }
.annotations text:nth-child(5) { animation-delay: -4.8s; }

@keyframes annotationFade {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ═══════════════════════════════════════════════════════════════
   SECTIONS - Light/Dark Rhythm
   ═══════════════════════════════════════════════════════════════ */
section {
    padding: var(--section-padding-y) var(--section-padding-x);
    position: relative;
}

/* Light section base */
.light-section {
    background: var(--light-bg);
    color: var(--text-on-light);
}

.light-section h2,
.light-section h3,
.light-section h4 {
    color: var(--text-on-light);
}

.light-section p {
    color: var(--text-on-light-muted);
}

/* Dark section base */
.dark-section {
    background: var(--dark-bg);
    color: var(--text-on-dark);
}

.dark-section h2,
.dark-section h3,
.dark-section h4 {
    color: var(--text-on-dark);
}

.dark-section p {
    color: var(--text-on-dark-muted);
}

/* Section titles */
.section-title {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
    position: relative;
    display: inline-block;
    width: 100%;
}

/* Terminal-style prefix for section titles */
.section-title::before {
    content: '>';
    font-family: var(--font-mono);
    color: var(--color-orange);
    margin-right: var(--spacing-sm);
    font-weight: 400;
    opacity: 0.8;
}

.section-subtitle {
    text-align: center;
    font-family: var(--font-primary);
    font-size: 1.15rem;
    margin-bottom: var(--spacing-2xl);
    font-weight: 400;
}

.light-section .section-subtitle {
    color: var(--text-on-light-muted);
}

.dark-section .section-subtitle {
    color: var(--text-on-dark-muted);
}

/* ═══════════════════════════════════════════════════════════════
   ABOUT SECTION - Light theme
   ═══════════════════════════════════════════════════════════════ */
.about {
    background: var(--light-bg);
    color: var(--text-on-light);
}

.about .section-title {
    color: var(--text-on-light);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about .lead {
    color: var(--text-on-light);
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: var(--spacing-xl);
}

.about-text p {
    font: 400 1.1rem/1.85 var(--font-primary);
    margin-bottom: var(--spacing-lg);
    color: var(--text-on-light-muted);
}

/* ═══════════════════════════════════════════════════════════════
   TERMINAL SECTION - Dark theme, enhanced
   ═══════════════════════════════════════════════════════════════ */
.terminal-section {
    background: var(--dark-bg-secondary);
    padding: var(--section-padding-y) var(--section-padding-x);
    position: relative;
}

/* Subtle scan lines */
.terminal-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 255, 65, 0.01) 2px,
        rgba(0, 255, 65, 0.01) 4px
    );
    pointer-events: none;
}

.terminal {
    max-width: 900px;
    margin: 0 auto;
    background: var(--dark-bg);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 255, 65, 0.2);
    /* Static glow - animation removed for performance (box-shadow animation causes heavy repaints) */
    box-shadow:
        0 0 40px rgba(0, 0, 0, 0.5),
        0 0 100px rgba(0, 255, 65, 0.1),
        0 0 200px rgba(0, 255, 65, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    overflow: hidden;
    position: relative;
}

/* CRT effect overlay on terminal */
.terminal::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.1) 2px,
        rgba(0, 0, 0, 0.1) 4px
    );
    pointer-events: none;
    z-index: 10;
    opacity: 0.3;
}

/* Subtle flicker effect */
.terminal::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 255, 65, 0.01);
    pointer-events: none;
    z-index: 5;
    animation: crtFlicker 0.1s infinite;
    will-change: opacity;
}

/* crtFlicker keyframes defined in animations.css */

.terminal-header {
    background: var(--dark-surface);
    padding: var(--spacing-sm) var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    transition: var(--transition-fast);
}

.terminal-button.close {
    background: #ff5f57;
    box-shadow: 0 0 6px rgba(255, 95, 87, 0.4);
}
.terminal-button.minimize {
    background: #febc2e;
    box-shadow: 0 0 6px rgba(254, 188, 46, 0.4);
}
.terminal-button.maximize {
    background: #28c840;
    box-shadow: 0 0 6px rgba(40, 200, 64, 0.4);
}

.terminal-title {
    font: 500 0.85rem var(--font-mono);
    color: var(--text-on-dark-muted);
    letter-spacing: 0.02em;
}

.terminal-body {
    padding: var(--spacing-lg);
    font: 400 0.9rem/1.7 var(--font-mono);
    color: var(--terminal-green);
    height: 450px;  /* Fixed height for ~25 lines */
    overflow-y: auto;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
    /* Custom scrollbar styling */
    scrollbar-width: thin;
    scrollbar-color: var(--terminal-green) var(--dark-bg);
}

.terminal-body::-webkit-scrollbar {
    width: 8px;
}

.terminal-body::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

.terminal-body::-webkit-scrollbar-thumb {
    background: var(--terminal-green);
    border-radius: 4px;
}

.terminal-body::-webkit-scrollbar-thumb:hover {
    background: var(--terminal-cyan);
}

.terminal-line {
    margin-bottom: var(--spacing-sm);
    font-family: var(--font-mono);
    white-space: pre-wrap;
    opacity: 0;
    animation: terminalFadeIn 0.5s ease forwards;
}

.terminal-input {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.prompt {
    color: var(--terminal-cyan);
    text-shadow: 0 0 8px rgba(0, 212, 255, 0.4);
}

.cursor {
    display: inline-block;
    width: 10px;
    height: 1.2em;
    background: var(--terminal-green);
    box-shadow: 0 0 8px rgba(0, 255, 65, 0.5);
    animation: cursorBlink 1s step-end infinite;
}

/* ═══════════════════════════════════════════════════════════════
   SERVICES SECTION - Dark terminal theme with vertical tabs
   ═══════════════════════════════════════════════════════════════ */
.services {
    background: var(--dark-bg);
    color: var(--text-on-dark);
    position: relative;
}

/* SYSTEM.STATUS: ONLINE header */
.services::before {
    content: 'SYSTEM.STATUS: ONLINE';
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--terminal-green);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    padding: var(--spacing-sm) 0;
    margin-bottom: var(--spacing-lg);
    border-bottom: 1px solid rgba(0, 255, 65, 0.2);
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.4);
}

.services .section-title {
    color: var(--text-on-dark);
}

.services .section-subtitle {
    color: var(--text-on-dark-muted);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

/* Service cards styled as terminal windows */
.service-card {
    background: var(--light-surface);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all var(--transition-normal);
    position: relative;
}

/* Terminal-style header bar on cards */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 32px;
    background: var(--dark-surface);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-normal);
}

/* Fake terminal buttons */
.service-card::after {
    content: '● ● ●';
    position: absolute;
    top: 8px;
    left: 12px;
    font-size: 10px;
    letter-spacing: 4px;
    color: rgba(255, 107, 53, 0.6);
    transition: all var(--transition-normal);
}

/* Scanning line effect on hover */
.service-card .service-content::before {
    content: '';
    position: absolute;
    top: 32px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--terminal-green), var(--color-orange), transparent);
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s ease;
    z-index: 10;
}

.service-card:hover .service-content::before {
    opacity: 1;
    animation: scanLine 1.5s ease-in-out infinite;
}

@keyframes scanLine {
    0% { transform: translateY(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(200px); opacity: 0; }
}

.service-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 107, 53, 0.3),
        0 0 40px rgba(255, 107, 53, 0.1);
    border-color: transparent;
}

.service-card:hover::before {
    background: linear-gradient(90deg, var(--dark-bg), var(--dark-surface));
    box-shadow: inset 0 -1px 0 rgba(0, 255, 65, 0.2);
}

.service-card:hover::after {
    color: var(--terminal-green);
    text-shadow: 0 0 10px var(--terminal-green);
    animation: buttonPulse 0.5s ease;
}

@keyframes buttonPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Card content area */
.service-card > * {
    position: relative;
    z-index: 1;
}

.service-icon {
    font-size: 2.5rem;
    margin-top: calc(32px + var(--spacing-lg));
    margin-bottom: var(--spacing-md);
    display: block;
    text-align: center;
    filter: none;
    transition: var(--transition-normal);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--text-on-light);
    margin-bottom: var(--spacing-sm);
    text-align: center;
    padding: 0 var(--spacing-lg);
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-on-light-muted);
    margin-bottom: var(--spacing-md);
    text-align: center;
    padding: 0 var(--spacing-lg);
    line-height: 1.6;
}

.service-details {
    list-style: none;
    text-align: left;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-on-light-subtle);
    background: var(--light-bg-alt);
    padding: var(--spacing-md) var(--spacing-lg);
    margin: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.service-details li {
    padding: var(--spacing-xs) 0;
    padding-left: var(--spacing-md);
    position: relative;
}

/* ═══════════════════════════════════════════════════════════════
   VERTICAL TABS - Terminal-punk navigation for services & skills
   ═══════════════════════════════════════════════════════════════ */
.tabs-container {
    display: flex;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
    min-height: 400px;
}

/* Sidebar navigation */
.tabs-sidebar {
    flex: 0 0 280px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: var(--dark-surface);
    border-radius: var(--radius-md);
    padding: var(--spacing-sm);
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.tab-button {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-on-dark-muted);
    cursor: pointer;
    text-align: left;
    transition: all var(--transition-fast);
    position: relative;
}

.tab-button:hover {
    background: rgba(255, 107, 53, 0.1);
    color: var(--text-on-dark);
}

.tab-button.active {
    background: linear-gradient(90deg,
        rgba(255, 107, 53, 0.2) 0%,
        rgba(255, 107, 53, 0.05) 100%);
    color: var(--terminal-green);
    border-left: 2px solid var(--color-orange);
    margin-left: -2px;
}

.tab-button .tab-prompt {
    color: var(--color-orange);
    font-weight: 600;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.tab-button:hover .tab-prompt,
.tab-button.active .tab-prompt {
    opacity: 1;
}

/* Content area */
.tabs-content {
    flex: 1;
    position: relative;
}

.tab-panel {
    display: none;
    background: var(--dark-surface);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 107, 53, 0.2);
    padding: var(--spacing-xl);
    height: 100%;
    animation: panelFadeIn 0.3s ease;
}

.tab-panel.active {
    display: block;
}

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

/* Panel header */
.panel-header {
    border-bottom: 1px solid rgba(255, 107, 53, 0.2);
    padding-bottom: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.panel-header h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text-on-dark);
    margin: 0;
}

.panel-header h3::before {
    content: '> ';
    color: var(--terminal-green);
}

/* Panel body */
.panel-body {
    color: var(--text-on-dark-muted);
}

.panel-description {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: var(--spacing-lg);
    color: var(--text-on-dark);
}

.panel-details {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.panel-details li {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--terminal-green);
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(0, 255, 65, 0.05);
    border-radius: var(--radius-sm);
    border-left: 2px solid var(--terminal-green);
}

.panel-details li::before {
    content: '$ ';
    color: var(--terminal-cyan);
}

/* Skills tabs specific */
.skill-tags-panel {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

/* Package list style for desktop skills - terminal package manager aesthetic */
.package-list-panel {
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.package-cmd {
    color: var(--terminal-green);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid rgba(0, 255, 65, 0.2);
    font-size: 0.85rem;
    opacity: 0.8;
}

.package-table {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.package-row {
    display: grid;
    grid-template-columns: 30px 1fr;
    gap: var(--spacing-md);
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    align-items: center;
}

.package-row.has-details {
    cursor: pointer;
}

.package-row.has-details:hover {
    background: rgba(255, 107, 53, 0.1);
}

.package-row.expanded {
    background: rgba(255, 107, 53, 0.15);
}

.pkg-status {
    color: var(--terminal-green);
    font-weight: 600;
    font-size: 0.8rem;
}

.pkg-name {
    color: var(--terminal-cyan);
    font-weight: 500;
}

.pkg-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pkg-full-desc {
    grid-column: 1 / -1;
    padding: var(--spacing-md);
    margin-top: var(--spacing-sm);
    background: rgba(0, 255, 65, 0.05);
    border-left: 2px solid var(--terminal-green);
    border-radius: var(--radius-sm);
    color: var(--text-on-dark);
    font-size: 0.9rem;
    line-height: 1.6;
    white-space: pre-wrap;
}

/* Skills section dark theme */
.skills {
    background: var(--dark-bg);
    color: var(--text-on-dark);
}

.skills .section-title {
    color: var(--text-on-dark);
}

/* ═══════════════════════════════════════════════════════════════
   EXPERIENCE SECTION - Light theme with engineering timeline
   ═══════════════════════════════════════════════════════════════ */
.experience {
    background: var(--light-bg-alt);
    color: var(--text-on-light);
}

.experience .section-title {
    color: var(--text-on-light);
}

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

.timeline-item {
    position: relative;
    padding-left: var(--spacing-xl);
}

/* Timeline line */
.timeline-item::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 24px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--color-orange) 0%, transparent 100%);
}

.timeline-marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 16px;
    height: 16px;
    background: var(--color-orange);
    border-radius: 50%;
    /* Static glow - animation removed for performance (box-shadow animation causes heavy repaints) */
    box-shadow:
        0 0 0 4px var(--light-bg-alt),
        0 0 0 7px var(--color-orange),
        0 0 20px var(--color-orange-glow);
}

.timeline-content {
    background: var(--light-surface);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.timeline-content h3 {
    font-family: var(--font-display);
    color: var(--text-on-light);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
}

.achievements {
    list-style: none;
    margin-top: var(--spacing-lg);
    display: grid;
    gap: var(--spacing-xs);
}

.achievements li {
    font-family: var(--font-primary);
    font-size: 0.95rem;
    padding: var(--spacing-sm) 0;
    padding-left: var(--spacing-xl);
    position: relative;
    color: var(--text-on-light-muted);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.achievements li:last-child {
    border-bottom: none;
}

/* Common list item styles */
.service-details li::before,
.achievements li::before {
    position: absolute;
    left: 0;
    font-family: var(--font-mono);
    font-weight: 600;
}

.service-details li::before {
    content: '$';
    color: var(--terminal-cyan);
    opacity: 0.7;
}

.achievements li::before {
    content: '✓';
    color: var(--terminal-green);
}

/* ═══════════════════════════════════════════════════════════════
   SKILLS SECTION - Light theme with IC chip-styled tags
   ═══════════════════════════════════════════════════════════════ */
.skills {
    background: var(--light-bg);
    color: var(--text-on-light);
}

.skills .section-title {
    color: var(--text-on-light);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    max-width: 1200px;
    margin: 0 auto;
}

.skill-category {
    background: var(--light-surface);
    padding: var(--spacing-lg);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-lg);
    transition: var(--transition-normal);
}

.skill-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border-color: rgba(255, 107, 53, 0.2);
}

.skill-category h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-on-light);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--color-orange);
    display: inline-block;
}

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

/* Chip/IC package aesthetic for skill tags - Terminal-style on light background */
.skill-tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: linear-gradient(135deg, #1e1e28, #16161f);
    color: var(--terminal-green);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    cursor: pointer;
    position: relative;
    border: 1px solid rgba(0, 255, 65, 0.2);
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    text-shadow: 0 0 8px rgba(0, 255, 65, 0.3);
}

/* Pin notches on chips - LED indicator style */
.skill-tag::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: var(--terminal-green);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--terminal-green);
    opacity: 0.6;
    transition: var(--transition-fast);
}

/* Subtle scan-line effect on tags */
.skill-tag::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.1) 2px,
        rgba(0, 0, 0, 0.1) 4px
    );
    border-radius: inherit;
    pointer-events: none;
    opacity: 0.3;
}

.skill-tag:hover {
    background: linear-gradient(135deg, var(--color-orange), var(--color-orange-dark));
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow:
        0 6px 20px var(--color-orange-glow),
        0 0 30px var(--color-orange-glow);
    border-color: var(--color-orange-bright);
    text-shadow: none;
}

.skill-tag:hover::before {
    background: #ffffff;
    box-shadow: 0 0 8px #ffffff;
    opacity: 1;
}

.skill-tag:hover::after {
    opacity: 0;
}

/* Terminal-style Skill Bubble */
.skill-bubble {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) scale(0);
    background: var(--dark-bg);
    color: var(--terminal-green);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 255, 65, 0.3);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(0, 255, 65, 0.1);
    min-width: 220px;
    max-width: 320px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.5;
    z-index: 1000;
    opacity: 0;
    transition: all 0.25s var(--transition-bounce);
    pointer-events: none;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

/* Terminal bubble prompt */
.skill-bubble::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 8px 0 8px;
    border-color: var(--dark-bg) transparent transparent transparent;
}

/* Glow accent on tail */
.skill-bubble::before {
    content: '>';
    position: absolute;
    top: var(--spacing-md);
    left: var(--spacing-sm);
    color: var(--color-orange);
    font-weight: 600;
}

/* Active state for bubble */
.skill-tag.bubble-active .skill-bubble {
    transform: translateX(-50%) scale(1);
    opacity: 1;
}

/* Adjust bubble position for edge cases */
.skill-category:first-child .skill-tag:first-child .skill-bubble,
.skill-category:nth-child(2) .skill-tag:first-child .skill-bubble {
    left: 0;
    transform: translateX(0) scale(0);
}

.skill-category:first-child .skill-tag:first-child.bubble-active .skill-bubble,
.skill-category:nth-child(2) .skill-tag:first-child.bubble-active .skill-bubble {
    transform: translateX(0) scale(1);
}

/* Right-aligned bubbles for right column */
.skill-category:nth-child(2n) .skill-tag:last-child .skill-bubble {
    left: auto;
    right: 0;
    transform: translateX(0) scale(0);
}

.skill-category:nth-child(2n) .skill-tag:last-child.bubble-active .skill-bubble {
    transform: translateX(0) scale(1);
}

/* ═══════════════════════════════════════════════════════════════
   PHILOSOPHY SECTION - Dark theme with dramatic quote
   ═══════════════════════════════════════════════════════════════ */
.philosophy {
    background: var(--dark-bg);
    color: var(--text-on-dark);
    position: relative;
}

/* Subtle circuit pattern */
.philosophy::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 107, 53, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 107, 53, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.philosophy .section-title {
    color: var(--text-on-dark);
    position: relative;
}

.philosophy-quote {
    max-width: 800px;
    margin: 0 auto var(--spacing-xl);
    padding: var(--spacing-xl);
    background: var(--dark-surface);
    border-left: 4px solid var(--color-orange);
    border-radius: var(--radius-md);
    box-shadow:
        0 0 40px rgba(0, 0, 0, 0.3),
        0 0 80px rgba(255, 107, 53, 0.05);
    position: relative;
}

.philosophy-quote p,
.philosophy-quote {
    font-family: var(--font-primary);
    font-style: italic;
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-on-dark-muted);
}

.principles {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.principles h3 {
    font-family: var(--font-display);
    color: var(--text-on-dark);
    margin-bottom: var(--spacing-lg);
    font-size: 1.2rem;
}

.principles ul {
    list-style: none;
}

.principles li {
    padding: var(--spacing-md) 0;
    padding-left: var(--spacing-xl);
    position: relative;
    color: var(--text-on-dark-muted);
    font-size: 1rem;
    font-family: var(--font-primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.principles li:last-child {
    border-bottom: none;
}

.principles li::before {
    content: '>';
    position: absolute;
    left: 0;
    font-family: var(--font-mono);
    color: var(--color-orange);
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════
   CONTACT SECTION - Dark theme with orange accents
   ═══════════════════════════════════════════════════════════════ */
.contact {
    background: var(--dark-bg-secondary);
    color: var(--text-on-dark);
    text-align: center;
    position: relative;
}

/* Grid pattern */
.contact::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(255, 107, 53, 0.08) 1px, transparent 0);
    background-size: 30px 30px;
    pointer-events: none;
}

.contact .section-title {
    color: var(--text-on-dark);
}

.contact .section-subtitle {
    color: var(--color-orange);
    font-family: var(--font-display);
    letter-spacing: 0.02em;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.contact-content > p {
    font-size: 1.05rem;
    margin-bottom: var(--spacing-xl);
    color: var(--text-on-dark-muted);
    line-height: 1.7;
}

/* Contact Form - Terminal-inspired */
.contact-form-container {
    background: var(--dark-surface);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transition: var(--transition-normal);
}

.contact-form-container:hover {
    border-color: rgba(255, 107, 53, 0.4);
    box-shadow:
        0 12px 50px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(255, 107, 53, 0.05);
}

.contact-form {
    max-width: 100%;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.form-group label {
    font-family: var(--font-display);
    color: var(--text-on-dark-muted);
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    transition: var(--transition-fast);
}

.form-group label::before {
    content: '$';
    font-family: var(--font-mono);
    color: var(--color-orange);
    margin-right: var(--spacing-xs);
    font-weight: 600;
}

.form-group:focus-within label {
    color: var(--text-on-dark);
}

.form-group:focus-within label::before {
    color: var(--terminal-green);
}

.form-group input,
.form-group select,
.form-group textarea {
    background: var(--dark-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    font: 400 1rem var(--font-primary);
    color: var(--text-on-dark);
    transition: all var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-on-dark-subtle);
    font-style: normal;
}

.form-group select {
    color: var(--text-on-dark-muted);
    cursor: pointer;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: rgba(255, 107, 53, 0.3);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-orange);
    box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.15);
}

/* Form Validation States */
.form-group input:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
}

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

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

.form-group select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23ff6b35' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    appearance: none;
}

.btn-contact {
    width: 100%;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    padding: var(--spacing-md) var(--spacing-xl);
    margin-top: var(--spacing-lg);
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: var(--color-orange);
    color: var(--dark-bg);
    border: none;
    box-shadow:
        0 0 20px var(--color-orange-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all var(--transition-normal);
}

.btn-contact::before {
    left: 16px;
}

.btn-contact:hover {
    background: var(--color-orange-bright);
    box-shadow:
        0 0 30px var(--color-orange-glow),
        0 8px 25px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.btn-contact:active {
    transform: translateY(0);
}

.btn-contact:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Form Success Message */
.form-success {
    text-align: center;
    padding: var(--spacing-xl);
    background: var(--dark-surface);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 255, 65, 0.3);
}

.success-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.form-success h3 {
    font-family: var(--font-display);
    color: var(--terminal-green);
    margin-bottom: var(--spacing-md);
    font-size: 1.25rem;
}

.form-success p {
    color: var(--text-on-dark-muted);
    font-size: 1rem;
}

/* Contact Links */
.contact-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    margin-top: var(--spacing-lg);
}

.contact-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--dark-surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-on-dark-muted);
    font-family: var(--font-display);
    font-size: 0.85rem;
    text-decoration: none;
    transition: var(--transition-normal);
}

.contact-link:hover {
    background: var(--dark-surface-elevated);
    border-color: var(--color-orange);
    color: var(--text-on-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.contact-icon {
    font-size: 1.25rem;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER - Dark theme continuation
   ═══════════════════════════════════════════════════════════════ */
.footer {
    background: var(--dark-bg);
    padding: var(--spacing-xl) 0;
    text-align: center;
    border-top: 1px solid rgba(255, 107, 53, 0.1);
}

.footer p {
    font-family: var(--font-primary);
    color: var(--text-on-dark-subtle);
    margin-bottom: var(--spacing-sm);
    font-size: 0.9rem;
}

.footer-quote {
    font-family: var(--font-primary);
    font-style: italic;
    color: var(--text-on-dark-subtle);
    font-size: 0.85rem;
    opacity: 0.7;
    max-width: 600px;
    margin: 0 auto;
}

/* Easter Egg - Terminal style */
.easter-egg {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--dark-bg);
    color: var(--terminal-green);
    padding: var(--spacing-lg) var(--spacing-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--terminal-green);
    box-shadow:
        0 0 40px rgba(0, 255, 65, 0.2),
        var(--shadow-xl);
    display: none;
    z-index: 9999;
    font-family: var(--font-mono);
    font-size: 1.25rem;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
    animation: bounceIn 0.5s ease;
}

.easter-egg.active {
    display: block;
}

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

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
    }
    75% {
        transform: translateY(20px) rotate(-5deg);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scaleY(1);
        opacity: 1;
    }
    50% {
        transform: scaleY(1.3);
        opacity: 0.8;
    }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@keyframes terminalFadeIn {
    to {
        opacity: 1;
    }
}

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