:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --accent: #00a86b;
    --accent-hover: #008c59;
    --accent-glow: rgba(0, 168, 107, 0.3);
    --accent-amber: #ff9500;
    --accent-cyan: #00d9ff;
    --border: #e0e0e0;
    --nav-bg: rgba(255, 255, 255, 0.95);
    --shadow: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    --bg-primary: #0a0a0a;
    --bg-secondary: #121212;
    --text-primary: #00ff41;
    --text-secondary: #00cc33;
    --accent: #00ff41;
    --accent-hover: #33ff66;
    --accent-glow: rgba(0, 255, 65, 0.5);
    --accent-amber: #ffb84d;
    --accent-cyan: #00d9ff;
    --border: #1a3a1a;
    --nav-bg: rgba(10, 10, 10, 0.95);
    --shadow: rgba(0, 255, 65, 0.2);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: crosshair;
    position: relative;
}

/* ======================
   BOOT SEQUENCE LOADER
   ====================== */
.boot-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.boot-loader.boot-complete {
    opacity: 0;
    visibility: hidden;
}

.boot-screen {
    font-family: 'Silkscreen', 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--accent);
    text-align: left;
    padding: 2rem;
    max-width: 600px;
}

.boot-line {
    opacity: 0;
    margin-bottom: 0.75rem;
    letter-spacing: 1px;
}

.boot-line.typing {
    opacity: 1;
}

.boot-ok {
    color: var(--accent);
    font-weight: bold;
}

.boot-ready {
    margin-top: 1.5rem;
    font-size: 1.2rem;
}

.boot-ready.typing {
    animation: bootReadyPulse 1s ease-in-out infinite;
}

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

/* ======================
   CRT SCREEN EFFECTS
   ====================== */
.crt-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.5s ease;
}

[data-theme="dark"] .crt-effect {
    opacity: 1;
}

/* Subtle CRT curvature */
[data-theme="dark"] .crt-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        ellipse at center,
        transparent 0%,
        rgba(0, 0, 0, 0.1) 100%
    );
}

/* Animated scanlines */
.crt-scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 200%;
    pointer-events: none;
    z-index: 9997;
    opacity: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15) 0px,
        transparent 1px,
        transparent 2px,
        rgba(0, 0, 0, 0.15) 3px
    );
    animation: scanlineMove 8s linear infinite;
}

[data-theme="dark"] .crt-scanlines {
    opacity: 1;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 255, 65, 0.03) 0px,
        transparent 1px,
        transparent 2px,
        rgba(0, 255, 65, 0.03) 3px
    );
}

@keyframes scanlineMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

/* CRT Vignette */
.crt-vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9996;
    opacity: 0;
    background: radial-gradient(
        ellipse at center,
        transparent 0%,
        transparent 60%,
        rgba(0, 0, 0, 0.3) 100%
    );
}

[data-theme="dark"] .crt-vignette {
    opacity: 1;
}

/* ======================
   TECH GRID BACKGROUND
   ====================== */
.tech-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    background-image:
        linear-gradient(rgba(0, 255, 65, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 65, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    perspective: 1000px;
}

[data-theme="dark"] .tech-grid {
    opacity: 1;
}

[data-theme="dark"] .tech-grid::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(
        to top,
        rgba(0, 255, 65, 0.05) 0%,
        transparent 100%
    );
}

/* Retro Computing Effects */
.cursor {
    display: inline-block;
    animation: blink 1s step-end infinite;
    font-family: 'Courier New', monospace;
}

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

/* Enhanced text glow for dark mode */
[data-theme="dark"] .hero h1,
[data-theme="dark"] .section-title,
[data-theme="dark"] .logo {
    text-shadow:
        0 0 10px var(--accent-glow),
        0 0 20px var(--accent-glow),
        0 0 30px var(--accent-glow);
}

/* Phosphor glow on hover */
[data-theme="dark"] .hero h1:hover {
    text-shadow:
        0 0 15px var(--accent-glow),
        0 0 30px var(--accent-glow),
        0 0 45px var(--accent-glow),
        0 0 60px var(--accent-glow);
    transition: text-shadow 0.3s ease;
}

/* ======================
   CURSOR TRAILS
   ====================== */
.cursor-trail {
    position: fixed;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9995;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cursor-trail.active {
    opacity: 1;
}

[data-theme="dark"] .cursor-trail {
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}

/* Hide cursor trails in light mode */
[data-theme="light"] .cursor-trail {
    display: none;
}

/* ======================
   FLOATING PIXELS
   ====================== */
.pixel-float {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--accent);
    opacity: 0.6;
    animation: pixelFloat 8s infinite ease-in-out;
    z-index: 0;
    pointer-events: none;
}

.pixel-float:nth-child(2) {
    animation-delay: -2s;
    animation-duration: 10s;
}

.pixel-float:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 12s;
}

@keyframes pixelFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.6; }
    25% { transform: translateY(-30px) rotate(90deg); opacity: 0.3; }
    50% { transform: translateY(-10px) rotate(180deg); opacity: 0.8; }
    75% { transform: translateY(-40px) rotate(270deg); opacity: 0.4; }
}

/* ======================
   SCROLL INDICATOR
   ====================== */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    font-family: 'Silkscreen', 'Courier New', monospace;
    font-size: 0.6rem;
    color: var(--accent);
    letter-spacing: 2px;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ======================
   BACK TO TOP BUTTON
   ====================== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--bg-primary);
    border: 2px solid var(--accent);
    color: var(--accent);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

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

.back-to-top:hover {
    background: var(--accent);
    color: var(--bg-primary);
    box-shadow: 0 0 20px var(--accent-glow);
}

.back-to-top::before {
    content: '';
    width: 12px;
    height: 12px;
    border-left: 2px solid currentColor;
    border-top: 2px solid currentColor;
    transform: rotate(45deg) translateY(3px);
}

/* ======================
   TYPOGRAPHY
   ====================== */
.hero-label {
    color: var(--accent);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    font-family: 'Silkscreen', 'Courier New', monospace;
}

.hero-label::before {
    content: '> ';
    animation: blink 1s infinite;
}

/* Silkscreen Font Usage */
.logo,
.section-title,
.hero-label,
.work-period,
.work-company {
    font-family: 'Silkscreen', 'Courier New', monospace;
}

/* Scroll Fade-in Animations */
.work-item,
.skill-category {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease;
}

/* Only hide items if JavaScript has loaded */
.js-loaded .work-item,
.js-loaded .skill-category {
    opacity: 0;
    transform: translateY(30px);
}

.work-item.visible,
.skill-category.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation delays */
.work-item:nth-child(1) { transition-delay: 0.1s; }
.work-item:nth-child(2) { transition-delay: 0.2s; }
.work-item:nth-child(3) { transition-delay: 0.3s; }
.work-item:nth-child(4) { transition-delay: 0.4s; }
.work-item:nth-child(5) { transition-delay: 0.5s; }
.work-item:nth-child(6) { transition-delay: 0.6s; }
.work-item:nth-child(7) { transition-delay: 0.7s; }

.skill-category:nth-child(1) { transition-delay: 0.1s; }
.skill-category:nth-child(2) { transition-delay: 0.2s; }
.skill-category:nth-child(3) { transition-delay: 0.3s; }
.skill-category:nth-child(4) { transition-delay: 0.4s; }
.skill-category:nth-child(5) { transition-delay: 0.5s; }
.skill-category:nth-child(6) { transition-delay: 0.6s; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ======================
   NAVIGATION
   ====================== */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--nav-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: all 0.3s ease;
}

[data-theme="dark"] .nav {
    border-bottom: 1px solid var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    font-family: 'Courier New', monospace;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    position: relative;
}

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

[data-theme="dark"] .nav-menu a:hover {
    text-shadow: 0 0 10px var(--accent-glow);
}

.theme-toggle {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--accent);
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-family: 'Silkscreen', 'Courier New', monospace;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: var(--accent);
    color: var(--bg-primary);
    box-shadow: 0 0 15px var(--accent-glow);
    border-color: var(--accent);
}

[data-theme="dark"] .theme-toggle {
    box-shadow: 0 0 5px var(--accent-glow);
}

.theme-toggle-text {
    display: inline-block;
}

/* ======================
   HERO SECTION
   ====================== */
.hero {
    padding: 8rem 0 6rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-content {
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInLeft 1s ease forwards;
    animation-delay: 0.5s;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-image {
    opacity: 0;
    transform: translateX(30px);
    animation: slideInRight 1s ease forwards;
    animation-delay: 0.7s;
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ======================
   HEADSHOT WITH HOLOGRAM EFFECT
   ====================== */
.headshot-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    margin: 0 auto;
}

/* Hologram scan effect - subtle version */
.hologram-scan {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 255, 65, 0.15) 50%,
        transparent 100%
    );
    height: 100%;
    width: 100%;
    opacity: 0;
    animation: hologramScan 12s ease-in-out infinite;
    z-index: 2;
    pointer-events: none;
}

[data-theme="dark"] .hologram-scan {
    opacity: 1;
}

@keyframes hologramScan {
    0%, 100% {
        transform: translateY(-100%);
        opacity: 0;
    }
    5% {
        opacity: 0.4;
    }
    15%, 85% {
        opacity: 0.6;
    }
    95% {
        opacity: 0.4;
    }
    50% {
        transform: translateY(100%);
    }
}

.headshot-frame {
    position: absolute;
    inset: 0;
    border: 3px solid var(--accent);
    animation: frameRotate 10s linear infinite;
    box-shadow:
        0 0 20px var(--accent-glow),
        inset 0 0 20px var(--accent-glow);
}

@keyframes frameRotate {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

.headshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: grayscale(100%) contrast(1.1);
    transition: all 0.5s ease;
}

[data-theme="dark"] .headshot {
    filter: grayscale(100%) contrast(1.1) brightness(0.9);
}

.headshot-container:hover .headshot {
    filter: grayscale(0%) contrast(1);
}

/* Duotone overlay - green tint in dark mode */
[data-theme="dark"] .headshot-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(0, 255, 65, 0.2) 0%,
        rgba(0, 255, 65, 0.1) 100%
    );
    mix-blend-mode: color;
    pointer-events: none;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.headshot-container:hover::before {
    opacity: 0;
}

.headshot-container:hover .hologram-scan {
    animation-play-state: paused;
    opacity: 0;
}

/* Pixel Corners */
.pixel-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    z-index: 3;
}

.pixel-corner::before,
.pixel-corner::after {
    content: '';
    position: absolute;
    background: var(--accent);
    box-shadow: 0 0 5px var(--accent-glow);
}

.pixel-corner.top-left { top: -10px; left: -10px; }
.pixel-corner.top-left::before { width: 20px; height: 4px; top: 0; left: 0; }
.pixel-corner.top-left::after { width: 4px; height: 20px; top: 0; left: 0; }

.pixel-corner.top-right { top: -10px; right: -10px; }
.pixel-corner.top-right::before { width: 20px; height: 4px; top: 0; right: 0; }
.pixel-corner.top-right::after { width: 4px; height: 20px; top: 0; right: 0; }

.pixel-corner.bottom-left { bottom: -10px; left: -10px; }
.pixel-corner.bottom-left::before { width: 20px; height: 4px; bottom: 0; left: 0; }
.pixel-corner.bottom-left::after { width: 4px; height: 20px; bottom: 0; left: 0; }

.pixel-corner.bottom-right { bottom: -10px; right: -10px; }
.pixel-corner.bottom-right::before { width: 20px; height: 4px; bottom: 0; right: 0; }
.pixel-corner.bottom-right::after { width: 4px; height: 20px; bottom: 0; right: 0; }

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

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

.btn-primary, .btn-secondary {
    padding: 0.875rem 1.75rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

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

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

[data-theme="dark"] .btn-primary {
    box-shadow: 0 0 15px var(--accent-glow);
}

[data-theme="dark"] .btn-primary:hover {
    box-shadow: 0 0 30px var(--accent-glow);
}

/* Scanning line effect on button hover */
[data-theme="dark"] .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%
    );
    transition: left 0.5s ease;
}

[data-theme="dark"] .btn-primary:hover::before {
    left: 100%;
}

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

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

[data-theme="dark"] .btn-secondary:hover {
    box-shadow: 0 0 15px var(--accent-glow);
}

/* Sections */
section {
    padding: 5rem 0;
    position: relative;
}

.section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    letter-spacing: 1px;
    font-family: 'Courier New', monospace;
}

/* ======================
   WORK SECTION
   ====================== */
.work-section {
    background-color: var(--bg-secondary);
}

.work-item {
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

[data-theme="dark"] .work-item {
    border-bottom-color: var(--accent);
}

.work-item:last-child {
    border-bottom: none;
}

[data-theme="dark"] .work-item:hover {
    padding-left: 1rem;
    border-left: 3px solid var(--accent);
}

.work-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.work-item h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.work-period {
    color: var(--accent-amber);
    font-size: 0.9rem;
    font-family: 'Courier New', monospace;
}

.work-company {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 1rem;
    font-family: 'Courier New', monospace;
}

.work-description {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ======================
   SKILLS SECTION
   ====================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-category {
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: 4px;
    background-color: var(--bg-primary);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .skill-category {
    border-color: var(--accent);
    border-width: 1px;
}

[data-theme="dark"] .skill-category:hover {
    box-shadow:
        0 0 20px var(--accent-glow),
        inset 0 0 20px var(--accent-glow);
    transform: translateY(-4px);
}

/* Electric spark effect on corners */
[data-theme="dark"] .skill-category::before,
[data-theme="dark"] .skill-category::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--accent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

[data-theme="dark"] .skill-category::before {
    top: -4px;
    left: -4px;
    box-shadow: 0 0 10px var(--accent-glow);
}

[data-theme="dark"] .skill-category::after {
    bottom: -4px;
    right: -4px;
    box-shadow: 0 0 10px var(--accent-glow);
}

[data-theme="dark"] .skill-category:hover::before,
[data-theme="dark"] .skill-category:hover::after {
    opacity: 1;
}

.skill-category h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}

[data-theme="dark"] .skill-category h3 {
    color: var(--accent-cyan);
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
}

.skill-category li:before {
    content: ">";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* ======================
   ABOUT SECTION
   ====================== */
.about-section {
    background-color: var(--bg-secondary);
}

.about-content {
    /* Width now matches container for consistency with other sections */
}

.about-content p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-content a {
    color: var(--accent);
    text-decoration: none;
    transition: all 0.2s ease;
}

.about-content a:hover {
    text-decoration: underline;
}

[data-theme="dark"] .about-content a:hover {
    text-shadow: 0 0 10px var(--accent-glow);
}

.about-subsection {
    margin: 2.5rem 0;
}

.about-subsection h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-family: 'Courier New', monospace;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}

.education-item {
    margin-bottom: 1.5rem;
}

.education-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.education-header strong {
    color: var(--text-primary);
    font-size: 1.1rem;
}

.education-years {
    color: var(--accent);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.education-degree {
    color: var(--accent-cyan);
    margin-bottom: 0.75rem;
}

.certifications-list {
    list-style: none;
    padding-left: 0;
}

.certifications-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem;
}

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

.certifications-list strong {
    color: var(--text-primary);
}

.certifications-list span {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-family: 'Courier New', monospace;
}

/* ======================
   CONTACT SECTION
   ====================== */
.contact-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
    /* Width now matches container for consistency with other sections */
}

.weather-inline {
    color: var(--accent);
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s ease;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.social-link:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

[data-theme="dark"] .social-link:hover {
    box-shadow: 0 0 15px var(--accent-glow);
}

/* ======================
   WEATHER WIDGET
   ====================== */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.weather-widget-compact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
}

.weather-widget-compact:hover {
    border-color: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}

[data-theme="dark"] .weather-widget-compact {
    box-shadow: 0 0 5px var(--accent-glow);
}

.weather-icon-small {
    font-size: 1rem;
    line-height: 1;
}

.weather-temp-small {
    font-size: 0.7rem;
    color: var(--accent);
    letter-spacing: 1px;
}

.weather-desc-small {
    font-size: 0.65rem;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.weather-retry {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    margin-left: 0.25rem;
    transition: transform 0.3s ease;
    line-height: 1;
}

.weather-retry:hover {
    transform: rotate(180deg);
}

.weather-retry:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 2px;
}

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

[data-theme="dark"] footer {
    border-top-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-ascii {
    font-family: 'Courier New', monospace;
    color: var(--accent);
    font-size: 0.85rem;
    letter-spacing: 2px;
}

footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-divider {
    opacity: 0.5;
    margin: 0 0.5rem;
}

#weather-footer {
    font-family: 'Courier New', monospace;
    color: var(--accent);
}

/* ======================
   RESPONSIVE
   ====================== */
@media (max-width: 768px) {
    .scroll-indicator {
        display: none !important;
    }

    .nav-container {
        padding: 1rem;
        flex-wrap: wrap;
    }

    .nav-menu {
        gap: 0.75rem;
        flex-wrap: wrap;
    }

    .nav-menu a {
        font-size: 0.75rem;
    }

    .nav-controls {
        gap: 0.5rem;
    }

    .theme-toggle {
        padding: 0.4rem 0.6rem;
        font-size: 0.6rem;
    }

    .hero {
        padding: 6rem 0 4rem;
        min-height: auto;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-text {
        order: 2;
    }

    .hero-image {
        order: 1;
    }

    .headshot-container {
        max-width: 280px;
    }

    .hero-subtitle {
        margin: 0 auto;
        font-size: 1rem;
    }

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

    .hero h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .container {
        padding: 0 1rem;
    }

    section {
        padding: 3rem 0;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .work-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .work-item {
        padding: 1.5rem 0;
    }

    .work-item h3 {
        font-size: 1.25rem;
    }

    .social-links {
        gap: 0.75rem;
    }

    .social-link {
        padding: 0.65rem 1rem;
        font-size: 0.9rem;
    }

    .weather-widget-compact {
        display: none;
    }

    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 1rem;
        right: 1rem;
    }

    .pixel-float {
        display: none;
    }

    .boot-screen {
        font-size: 0.75rem;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        display: none;
    }

    .hero {
        padding: 5rem 0 3rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-label {
        font-size: 0.75rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    .headshot-container {
        max-width: 240px;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        text-align: center;
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }

    .work-item h3 {
        font-size: 1.1rem;
    }

    .social-links {
        flex-direction: column;
        gap: 0.75rem;
    }

    .social-link {
        width: 100%;
        padding: 0.75rem 1rem;
        justify-content: flex-start;
    }

    .footer-ascii {
        font-size: 0.65rem;
        letter-spacing: 0.5px;
    }

    .boot-screen {
        font-size: 0.65rem;
    }
}

/* ======================
   ACCESSIBILITY STYLES
   ====================== */

/* Skip Navigation Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent);
    color: var(--bg-primary);
    padding: 8px 16px;
    text-decoration: none;
    z-index: 100;
    font-family: 'Silkscreen', monospace;
    font-size: 0.9rem;
    border: 2px solid var(--accent);
    transition: top 0.3s ease;
}

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

/* Visually Hidden / Screen Reader Only */
.visually-hidden,
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Enhanced Focus Indicators */
a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

[data-theme="dark"] a:focus-visible,
[data-theme="dark"] button:focus-visible {
    outline-color: var(--accent);
    box-shadow: 0 0 0 3px var(--bg-primary), 0 0 0 6px var(--accent);
}

/* Remove focus for mouse users */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
    outline: none;
}

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

    /* Disable specific animations */
    .boot-loader {
        display: none;
    }

    .crt-scanlines,
    .hologram-scan,
    .pixel-float,
    .cursor-trail,
    .tech-grid {
        display: none;
    }

    html {
        scroll-behavior: auto !important;
    }
}

/* Print Styles */
@media print {
    .nav,
    .theme-toggle,
    .back-to-top,
    .scroll-indicator,
    .boot-loader,
    .crt-effect,
    .crt-scanlines,
    .crt-vignette,
    .pixel-float,
    .cursor-trail,
    .tech-grid,
    .hologram-scan,
    .pixel-corner,
    .headshot-frame {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
        cursor: default !important;
    }

    a {
        text-decoration: underline;
        color: #000 !important;
    }

    .hero-label,
    .section-title {
        color: #000 !important;
    }

    h1, h2, h3 {
        color: #000 !important;
    }
}
