/* ========================================
   JON GUERRIERO - RETRO TECH PORTFOLIO
   Windows 95 / CRT TV / Motherboard Aesthetic
   ======================================== */

/* CSS Variables */
:root {
    /* Windows 95 Colors */
    --win95-teal: #008080;
    --win95-gray: #c0c0c0;
    --win95-dark: #808080;
    --win95-darker: #404040;
    --win95-blue: #000080;
    --win95-light: #ffffff;
    --win95-black: #000000;
    
    /* CRT Colors */
    --crt-green: #00ff00;
    --crt-amber: #ffb000;
    --crt-blue: #4da6ff;
    --crt-cyan: #00ffff;
    --crt-phosphor: #33ff33;
    
    /* Motherboard Colors */
    --mb-green: #1a3300;
    --mb-copper: #b87333;
    --mb-gold: #ffd700;
    --mb-silver: #c0c0c0;
    
    /* Theme Colors */
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #111111;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-muted: #666666;
    --accent-primary: #4da6ff;
    --accent-secondary: #00ffff;
    --accent-glow: rgba(77, 166, 255, 0.5);
    --border-color: #333333;
    
    /* Fonts */
    --font-pixel: 'VT323', monospace;
    --font-mono: 'Share Tech Mono', monospace;
    --font-sans: 'Inter', sans-serif;
    
    /* Spacing */
    --section-padding: 6rem 2rem;
    --max-width: 1200px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

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

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ========================================
   CRT OVERLAY EFFECTS
   ======================================== */

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

/* Scanlines */
.crt-scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    animation: scanline-scroll 8s linear infinite;
}

@keyframes scanline-scroll {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

/* Flicker Effect */
.crt-flicker {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.02);
    animation: flicker 0.15s infinite;
    opacity: 0.1;
}

@keyframes flicker {
    0%, 100% { opacity: 0.08; }
    50% { opacity: 0.12; }
}

/* Screen Curvature */
.crt-curvature {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        ellipse at center,
        transparent 0%,
        transparent 70%,
        rgba(0, 0, 0, 0.4) 100%
    );
    box-shadow: 
        inset 0 0 100px rgba(0, 0, 0, 0.5),
        inset 0 0 20px rgba(0, 0, 0, 0.8);
}

/* Vignette */
.crt-vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        ellipse at center,
        transparent 50%,
        rgba(0, 0, 0, 0.4) 100%
    );
}

/* Noise */
.crt-noise {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    animation: noise-shift 0.5s steps(10) infinite;
}

@keyframes noise-shift {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-2%, -2%); }
    20% { transform: translate(2%, 2%); }
    30% { transform: translate(-1%, 1%); }
    40% { transform: translate(1%, -1%); }
    50% { transform: translate(-2%, 2%); }
    60% { transform: translate(2%, -2%); }
    70% { transform: translate(-1%, -1%); }
    80% { transform: translate(1%, 1%); }
    90% { transform: translate(-2%, -1%); }
}

/* Glow Effect */
.crt-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        ellipse at center,
        rgba(77, 166, 255, 0.05) 0%,
        transparent 70%
    );
    animation: glow-pulse 4s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* ========================================
   BACKGROUND LAYERS
   ======================================== */

.background-layers {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 20%, rgba(77, 166, 255, 0.16), transparent 28%),
        radial-gradient(circle at 80% 24%, rgba(0, 255, 255, 0.08), transparent 24%),
        linear-gradient(180deg, rgba(2, 6, 13, 0.94), rgba(0, 0, 0, 1));
}

.background-layers canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.circuit-layer {
    z-index: 1;
    opacity: 0.92;
    filter: saturate(1.05);
}

/* ========================================
   BOOT SEQUENCE
   ======================================== */

.boot-sequence {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 14px;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.boot-sequence.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.boot-text {
    color: var(--crt-green);
    text-shadow: 0 0 10px var(--crt-green);
}

.boot-line {
    opacity: 0;
    animation: boot-reveal 0.1s ease forwards;
    margin: 4px 0;
}

.boot-line:nth-child(1) { animation-delay: 0.1s; }
.boot-line:nth-child(2) { animation-delay: 0.2s; }
.boot-line:nth-child(3) { animation-delay: 0.3s; }
.boot-line:nth-child(4) { animation-delay: 0.4s; }
.boot-line:nth-child(5) { animation-delay: 0.5s; }
.boot-line:nth-child(6) { animation-delay: 0.6s; }
.boot-line:nth-child(7) { animation-delay: 0.7s; }
.boot-line:nth-child(8) { animation-delay: 0.8s; }
.boot-line:nth-child(9) { animation-delay: 0.9s; }
.boot-line:nth-child(10) { animation-delay: 1.0s; }
.boot-line:nth-child(11) { animation-delay: 1.1s; }
.boot-line:nth-child(12) { animation-delay: 1.2s; }
.boot-line:nth-child(13) { animation-delay: 1.3s; }
.boot-line:nth-child(14) { animation-delay: 1.4s; }
.boot-line:nth-child(15) { animation-delay: 1.5s; }
.boot-line:nth-child(16) { animation-delay: 1.6s; }
.boot-line:nth-child(17) { animation-delay: 1.7s; }

@keyframes boot-reveal {
    to { opacity: 1; }
}

.blink {
    animation: blink 1s step-end infinite;
}

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

/* ========================================
   MAIN CONTENT
   ======================================== */

.main-content {
    position: relative;
    z-index: 10;
}

/* ========================================
   NAVIGATION
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 1000;
}

.nav-brand {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

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

.nav-brand .cursor {
    animation: blink 1s step-end infinite;
    color: var(--accent-primary);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border: 1px solid transparent;
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    background: rgba(77, 166, 255, 0.1);
}

.nav-link::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-secondary);
    opacity: 0;
    transform: translateX(-2px);
    transition: opacity 0.1s;
}

.nav-link:hover::before {
    animation: glitch-text 0.3s ease infinite;
}

@keyframes glitch-text {
    0%, 100% { opacity: 0; transform: translateX(-2px); }
    25% { opacity: 0.8; transform: translateX(2px); }
    50% { opacity: 0; transform: translateX(-1px); }
    75% { opacity: 0.6; transform: translateX(1px); }
}

.nav-cta {
    background: var(--accent-primary);
    color: var(--bg-primary) !important;
    font-weight: 600;
}

.nav-cta:hover {
    background: var(--text-primary);
    box-shadow: 0 0 20px var(--accent-glow);
}

.nav-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

.audio-toggle {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 0.45rem 0.7rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.audio-toggle:hover,
.audio-toggle.active {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    box-shadow: 0 0 14px var(--accent-glow);
    background: rgba(77, 166, 255, 0.08);
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--crt-green);
    box-shadow: 0 0 10px var(--crt-green);
    animation: pulse 2s ease-in-out infinite;
}

.status-indicator.online {
    background: #00ff00;
    box-shadow: 0 0 10px #00ff00;
}

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

.status-text {
    color: var(--crt-green);
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 500px);
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem;
    gap: 3rem;
    position: relative;
}

.hero-content {
    min-width: 0;
    max-width: 760px;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(77, 166, 255, 0.1);
    border: 1px solid var(--accent-primary);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
    animation: badge-glow 3s ease-in-out infinite;
}

@keyframes badge-glow {
    0%, 100% { box-shadow: 0 0 5px var(--accent-glow); }
    50% { box-shadow: 0 0 20px var(--accent-glow); }
}

.hero-title {
    font-size: clamp(3.25rem, 7vw, 5.9rem);
    font-weight: 800;
    line-height: 0.88;
    margin-bottom: 1rem;
    letter-spacing: -0.04em;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.04em;
    max-width: min(100%, 8.9ch);
}

.hero-line {
    display: flex;
    align-items: flex-start;
    white-space: nowrap;
    gap: 0.01em;
}

.hero-title .space {
    display: none;
}

.hero-title .char {
    display: inline-block;
    flex: 0 0 auto;
    transition: all var(--transition-fast);
}

.hero-title .char:hover {
    color: var(--accent-primary);
    text-shadow: 0 0 20px var(--accent-primary);
    transform: translateY(-5px);
}

.hero-title.glitch {
    position: relative;
}

.hero-title.glitch::before,
.hero-title.glitch::after {
    content: none;
    display: none;
}

.hero-title.glitch:hover::before {
    animation: glitch-1 0.3s linear infinite;
    color: #ff0000;
    z-index: -1;
    opacity: 0.8;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}

.hero-title.glitch:hover::after {
    animation: glitch-2 0.3s linear infinite;
    color: #00ffff;
    z-index: -2;
    opacity: 0.8;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
}

@keyframes glitch-1 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-3px, 3px); }
    40% { transform: translate(3px, -3px); }
    60% { transform: translate(-3px, -3px); }
    80% { transform: translate(3px, 3px); }
}

@keyframes glitch-2 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(3px, -3px); }
    40% { transform: translate(-3px, 3px); }
    60% { transform: translate(3px, 3px); }
    80% { transform: translate(-3px, -3px); }
}

.hero-subtitle {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    min-height: 2rem;
}

.cursor-blink {
    color: var(--accent-primary);
    animation: blink 1s step-end infinite;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

.stat-value {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--accent-primary);
    font-weight: 600;
}

.stat-divider {
    color: var(--border-color);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid;
    transition: all var(--transition-fast);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

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

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

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

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

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

.btn-secondary:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: rgba(77, 166, 255, 0.1);
}

/* Hero Visual - Terminal */
.hero-visual {
    width: min(100%, 500px);
    justify-self: end;
    align-self: center;
    min-width: 0;
}

.terminal-window {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(77, 166, 255, 0.1);
    animation: terminal-float 6s ease-in-out infinite;
}

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

.terminal-header {
    background: var(--bg-tertiary);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.terminal-buttons {
    display: flex;
    gap: 0.5rem;
}

.term-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.term-btn.close { background: #ff5f56; }
.term-btn.minimize { background: #ffbd2e; }
.term-btn.maximize { background: #27c93f; }

.terminal-title {
    flex: 1;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.terminal-body {
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.8;
    min-height: 300px;
}

.term-line {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.term-line .prompt {
    color: var(--accent-primary);
}

.term-line .command {
    color: var(--text-primary);
}

.term-output {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    padding-left: 1rem;
}

.term-output .highlight {
    color: var(--accent-primary);
}

.term-output.ascii-art {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.ascii {
    color: var(--accent-primary);
    white-space: pre;
    font-size: 0.625rem;
    line-height: 1.2;
}

.sysinfo {
    color: var(--text-secondary);
    font-size: 0.75rem;
    line-height: 1.6;
}

.term-line.active .cursor {
    color: var(--accent-primary);
    animation: blink 1s step-end infinite;
}

/* ========================================
   SECTIONS
   ======================================== */

.section {
    padding: var(--section-padding);
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.section-number {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--accent-primary);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.05em;
}

.section-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border-color), transparent);
}

/* ========================================
   ABOUT SECTION
   ======================================== */

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-card {
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 2rem;
}

.card-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent-primary);
}

.card-corner.tl { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.card-corner.tr { top: -1px; right: -1px; border-left: none; border-bottom: none; }
.card-corner.bl { bottom: -1px; left: -1px; border-right: none; border-top: none; }
.card-corner.br { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.about-text {
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-text .lead {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.about-text p {
    margin-bottom: 1rem;
}

.about-text .highlight {
    color: var(--accent-primary);
    font-weight: 500;
}

.system-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all var(--transition-fast);
}

.stat-card:hover {
    border-color: var(--accent-primary);
    background: rgba(77, 166, 255, 0.05);
}

.stat-icon {
    font-size: 1.5rem;
}

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

.stat-name {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

.stat-number {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    color: var(--accent-primary);
    font-weight: 600;
}

.stat-number.online {
    color: var(--crt-green);
    animation: pulse-text 2s ease-in-out infinite;
}

@keyframes pulse-text {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.stat-bar {
    width: 100%;
    height: 4px;
    background: var(--bg-tertiary);
    margin-top: 0.5rem;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transition: width 1s ease;
}

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

@keyframes bar-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ========================================
   EXPERIENCE SECTION
   ======================================== */

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline-track {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
}

.timeline-beam {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary));
    box-shadow: 0 0 20px var(--accent-primary);
    animation: beam-pulse 3s ease-in-out infinite;
}

@keyframes beam-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 2rem;
}

.timeline-node {
    position: absolute;
    left: -2rem;
    top: 1.5rem;
    width: 16px;
    height: 16px;
    background: var(--accent-primary);
    border-radius: 50%;
    transform: translateX(-7px);
    box-shadow: 0 0 20px var(--accent-primary);
    animation: node-glow 2s ease-in-out infinite;
}

@keyframes node-glow {
    0%, 100% { box-shadow: 0 0 10px var(--accent-primary); }
    50% { box-shadow: 0 0 30px var(--accent-primary); }
}

.timeline-card {
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    transition: all var(--transition-fast);
}

.timeline-card:hover {
    border-color: var(--accent-primary);
    transform: translateX(5px);
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(77, 166, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity var(--transition-fast);
    pointer-events: none;
}

.timeline-card:hover .card-glow {
    opacity: 1;
}

.timeline-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.timeline-company {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.timeline-scope {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.scope-label {
    color: var(--accent-primary);
}

.timeline-highlights {
    list-style: none;
}

.timeline-highlights li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.bullet {
    color: var(--accent-primary);
    flex-shrink: 0;
}

/* ========================================
   SKILLS SECTION
   ======================================== */

.skills-visualization {
    height: 200px;
    margin-bottom: 2rem;
    position: relative;
}

.skills-canvas {
    width: 100%;
    height: 100%;
}

.floating-skills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.skill-tag {
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
    animation: skill-float 4s ease-in-out infinite;
    animation-delay: var(--delay, 0s);
    transition: all var(--transition-fast);
    cursor: default;
}

.skill-tag:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    box-shadow: 0 0 15px var(--accent-glow);
    transform: scale(1.1);
}

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

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.skill-category {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    transition: all var(--transition-fast);
}

.skill-category:hover {
    border-color: var(--accent-primary);
    background: rgba(77, 166, 255, 0.05);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.category-icon {
    font-size: 1.5rem;
}

.category-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.category-skills {
    list-style: none;
}

.category-skills li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.skill-bullet {
    color: var(--accent-primary);
    font-size: 0.625rem;
}

/* ========================================
   EDUCATION SECTION
   ======================================== */

.education-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.education-visual {
    height: 300px;
    position: relative;
}

.education-canvas {
    width: 100%;
    height: 100%;
}

.education-card {
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid var(--accent-primary);
    padding: 2.5rem;
    text-align: center;
}

.card-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-primary);
    color: var(--bg-primary);
    padding: 0.25rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.education-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.education-degree {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.education-school {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.education-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.edu-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.edu-value {
    font-family: var(--font-mono);
    font-size: 2rem;
    color: var(--accent-primary);
    font-weight: 700;
}

.edu-label {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

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

/* ========================================
   CONTACT SECTION
   ======================================== */

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.channels-title,
.form-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.contact-channels {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.channel-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.channel-card:hover {
    border-color: var(--accent-primary);
    background: rgba(77, 166, 255, 0.05);
    transform: translateX(5px);
}

.channel-icon {
    font-size: 1.5rem;
}

.channel-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.channel-label {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

.channel-value {
    color: var(--text-primary);
    font-size: 0.875rem;
}

.channel-arrow {
    color: var(--accent-primary);
    font-size: 1.25rem;
    transition: transform var(--transition-fast);
}

.channel-card:hover .channel-arrow {
    transform: translateX(5px);
}

.location-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

.location-icon {
    font-size: 1.5rem;
}

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

.location-label {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

.location-value {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Contact Form */
.contact-form-container {
    position: relative;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.625rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 1rem;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    outline: none;
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--accent-primary);
    background: rgba(77, 166, 255, 0.05);
    box-shadow: 0 0 20px var(--accent-glow);
}

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

.input-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width var(--transition-normal);
}

.form-input:focus ~ .input-line,
.form-textarea:focus ~ .input-line {
    width: 100%;
}

.submit-btn {
    position: relative;
    padding: 1rem 2rem;
    background: var(--accent-primary);
    border: none;
    color: var(--bg-primary);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    transition: all var(--transition-fast);
}

.submit-btn:hover {
    background: var(--text-primary);
    box-shadow: 0 0 30px var(--accent-glow);
}

.submit-btn:active {
    transform: translateY(2px);
}

.btn-loading {
    display: none;
}

.submit-btn.loading .btn-text {
    display: none;
}

.submit-btn.loading .btn-loading {
    display: inline;
}

.btn-glitch {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-secondary);
    opacity: 0;
    pointer-events: none;
}

.submit-btn:hover .btn-glitch {
    animation: btn-glitch 0.3s ease infinite;
}

@keyframes btn-glitch {
    0%, 100% { opacity: 0; transform: translateX(0); }
    25% { opacity: 0.3; transform: translateX(-3px); }
    50% { opacity: 0; transform: translateX(3px); }
    75% { opacity: 0.3; transform: translateX(-1px); }
}

.form-success {
    display: none;
    text-align: center;
    padding: 2rem;
    background: var(--bg-secondary);
    border: 1px solid var(--crt-green);
}

.form-success.show {
    display: block;
    animation: success-reveal 0.5s ease;
}

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

.success-icon {
    font-size: 3rem;
    color: var(--crt-green);
    margin-bottom: 1rem;
}

.form-success h4 {
    color: var(--crt-green);
    margin-bottom: 0.5rem;
}

.form-success p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    position: relative;
    padding: 2rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

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

.footer-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-brand {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    color: var(--accent-primary);
    font-weight: 600;
}

.footer-copy {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    color: var(--text-muted);
}

.footer-right {
    display: flex;
    gap: 1rem;
}

.footer-link {
    font-size: 1.25rem;
    text-decoration: none;
    transition: transform var(--transition-fast);
}

.footer-link:hover {
    transform: scale(1.2);
}

.footer-scanline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    animation: scanline-h 4s linear infinite;
}

@keyframes scanline-h {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ========================================
   RESPONSIVE
   ======================================== */

.hero-title.glitch::before,
.hero-title.glitch::after {
    pointer-events: none;
}

@media (max-width: 1200px) {
    .hero {
        grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
        gap: 2.25rem;
    }

    .hero-title {
        font-size: clamp(3rem, 6vw, 5rem);
        max-width: 8.9ch;
    }
}

@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        max-width: 100%;
    }

    .hero-title {
        align-items: center;
        max-width: none;
    }

    .hero-line {
        justify-content: center;
    }

    .hero-visual {
        max-width: 100%;
        justify-self: center;
    }
    
    .about-content,
    .education-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: clamp(2.7rem, 14vw, 4.4rem);
        max-width: none;
        gap: 0.08em;
    }

    .audio-toggle {
        display: none;
    }
    
    .nav-links {
        display: none;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .timeline {
        padding-left: 1rem;
    }
    
    .section {
        padding: 4rem 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

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

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

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

.term-output {
    overflow-wrap: anywhere;
}

.terminal-window {
    width: 100%;
}


/* ========================================
   VIDEO BACKGROUND + INTRO GATE OVERRIDES
   ======================================== */

body {
    background: #000;
}

.video-background {
    position: fixed;
    inset: 0;
    z-index: -3;
    overflow: hidden;
    background: #000;
}

.bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.62;
    filter: saturate(0.95) brightness(0.45) contrast(1.05);
}

.video-scrim {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 25%, rgba(77, 166, 255, 0.18), transparent 26%),
        linear-gradient(180deg, rgba(1, 4, 10, 0.2), rgba(0, 0, 0, 0.75) 48%, rgba(0,0,0,0.92));
}

.intro-gate {
    position: fixed;
    inset: 0;
    z-index: 11000;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.48);
    backdrop-filter: blur(8px);
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.intro-gate.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.intro-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: min(540px, calc(100vw - 3rem));
    min-height: 120px;
    padding: 1.25rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: linear-gradient(180deg, rgba(8, 12, 20, 0.82), rgba(0, 0, 0, 0.78));
    color: #fff;
    font-family: var(--font-mono);
    font-size: clamp(1.1rem, 2.4vw, 1.65rem);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.45);
}

.intro-button:hover,
.intro-button:focus-visible {
    transform: translateY(-2px) scale(1.01);
    border-color: var(--accent-primary);
    box-shadow: 0 0 30px rgba(77, 166, 255, 0.24), 0 20px 80px rgba(0, 0, 0, 0.5);
    background: linear-gradient(180deg, rgba(10, 16, 26, 0.9), rgba(0, 0, 0, 0.84));
    outline: none;
}

.intro-button-box {
    width: min(540px, calc(100vw - 3rem));
}

body:not(.entered) .main-content {
    filter: blur(4px);
    transform: scale(1.01);
}

.main-content {
    transition: filter 0.8s ease, transform 0.8s ease;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
    align-items: center;
    gap: 3rem;
    width: min(1280px, 100%);
    margin: 0 auto;
}

.hero-content {
    max-width: 680px;
    min-width: 0;
}

.hero-title {
    display: flex;
    flex-direction: column;
    gap: 0.04em;
    font-size: clamp(3.2rem, 7vw, 6.6rem);
    line-height: 0.88;
    letter-spacing: -0.06em;
    margin-bottom: 1rem;
}

.hero-line {
    display: block;
}

.hero-title::before,
.hero-title::after {
    content: none !important;
}

.hero-visual {
    max-width: 520px;
    width: 100%;
    justify-self: end;
}

.terminal-window {
    width: 100%;
    background: rgba(6, 8, 14, 0.84);
    backdrop-filter: blur(8px);
}

.single-line-terminal {
    min-height: auto;
    padding-top: 1.35rem;
    padding-bottom: 1.35rem;
}

.single-line-terminal .term-line {
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.audio-toggle {
    min-width: 120px;
}

.audio-toggle.active {
    background: rgba(77,166,255,0.14);
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.active {
    opacity: 1;
    transform: none;
}

@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero-visual {
        justify-self: center;
        max-width: 680px;
    }
}

@media (max-width: 768px) {
    .intro-button {
        min-height: 96px;
        letter-spacing: 0.14em;
    }

    .single-line-terminal .term-line {
        font-size: 0.82rem;
    }
}
