/* ============================================
   NEO-MEDIEVAL CYBERCORE PERSONAL WEBSITE
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Custom Minecraft Diamond Pickaxe Cursor - Desktop Only */
@media (min-width: 769px) and (pointer: fine) {
    html, body, a, button, .nav-link, .btn-primary, .btn-secondary, .contact-link,
    .capability-card, .project-card, .quest-item, .xbox-feature-item,
    input, [onclick], [role="button"] {
        cursor: url('cursor-pickaxe.svg') 0 0, auto !important;
    }

    /* Only disabled buttons get the not-allowed cursor */
    .btn-disabled {
        cursor: not-allowed !important;
    }
}

/* Remove underline from button-styled links */
a.btn-primary, a.btn-secondary {
    text-decoration: none;
}

:root {
    /* Cyan/Blue Color Palette (Less Neon, More Traditional) */
    --primary-cyan: #00d4ff;
    --primary-blue: #0099cc;
    --light-cyan: #4dd0e1;
    --medium-blue: #0088aa;
    --dark-blue: #006688;
    --accent-cyan: #00ffff;
    --soft-blue: #66b3d9;

    /* Background Palette */
    --void-black: #000000;
    --charcoal: #0a0a0a;
    --dark-gray: #1a1a1a;
    --mid-gray: #2a2a2a;

    /* Text Palette */
    --pure-white: #ffffff;
    --neon-white: #f0f0f0;
    --muted-gray: #888888;
    --dark-gray-text: #555555;

    /* Frutiger Aero Glass Colors */
    --glass-blue: rgba(135, 206, 250, 0.15);
    --glass-cyan: rgba(0, 212, 255, 0.12);
    --glass-light-blue: rgba(102, 179, 217, 0.1);

    /* Glow Effects (Reduced Intensity) */
    --glow-primary: 0 0 15px rgba(0, 212, 255, 0.35);
    --glow-cyan: 0 0 15px rgba(0, 255, 255, 0.3);
    --glow-blue: 0 0 15px rgba(0, 153, 204, 0.3);
    --glow-multi: 0 0 20px rgba(0, 212, 255, 0.25), 0 0 40px rgba(0, 255, 255, 0.15);

    /* Spacing (Condensed) */
    --spacing-xs: 0.4rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2.5rem;
    --spacing-xl: 4rem;
}

body {
    font-family: 'Inter', 'Segoe UI', 'Roboto', sans-serif;
    background: var(--void-black);
    color: var(--pure-white);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ============================================
   GATE LAYER (Password Gate)
   ============================================ */

.gate-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--void-black);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.gate-layer.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.gate-container {
    text-align: center;
    padding: var(--spacing-sm);
    max-width: 900px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.ascii-door {
    font-family: 'Courier New', 'Monaco', 'Consolas', monospace;
    font-size: 10px;
    line-height: 1.2;
    color: var(--primary-cyan);
    text-shadow: var(--glow-primary);
    margin-bottom: var(--spacing-md);
    white-space: pre;
    overflow-x: auto;
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        text-shadow: var(--glow-primary);
        opacity: 1;
    }
    50% {
        text-shadow: 0 0 25px rgba(0, 212, 255, 0.5), 0 0 50px rgba(0, 212, 255, 0.3);
        opacity: 0.9;
    }
}

.gate-prompt {
    margin-top: var(--spacing-lg);
}

.terminal-line {
    font-family: 'Courier New', monospace;
    color: var(--primary-cyan);
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    text-align: left;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.prompt-text {
    color: var(--primary-cyan);
    text-shadow: var(--glow-primary);
}

.cursor-blink {
    animation: blink 1s infinite;
    color: var(--primary-cyan);
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.inscription {
    font-size: 1.5rem;
    color: var(--neon-white);
    margin-bottom: var(--spacing-md);
    font-style: italic;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
    font-family: 'Inter', sans-serif;
    letter-spacing: 2px;
}

.password-input-terminal {
    background: transparent;
    border: none;
    outline: none;
    color: var(--primary-cyan);
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    padding: 0;
    margin: 0;
    width: 300px;
    text-shadow: var(--glow-primary);
    caret-color: var(--primary-cyan);
    letter-spacing: 0.1em;
}

.password-input-terminal::placeholder {
    color: transparent;
}

.password-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.password-submit-btn {
    background: rgba(0, 212, 255, 0.1);
    border: 2px solid var(--primary-cyan);
    border-radius: 8px;
    color: var(--primary-cyan);
    font-family: 'Press Start 2P', monospace;
    font-size: 0.8rem;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: var(--glow-primary);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
    letter-spacing: 2px;
    margin-top: var(--spacing-sm);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.password-submit-btn:hover,
.password-submit-btn:active {
    background: rgba(0, 212, 255, 0.2);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    transform: translateY(-2px);
}

.password-submit-btn:active {
    transform: translateY(0);
}

.error-message {
    color: #ff3366;
    margin-top: var(--spacing-sm);
    font-size: 0.95rem;
    min-height: 1.5rem;
    text-shadow: 0 0 10px rgba(255, 51, 102, 0.6);
    font-family: 'Courier New', monospace;
    text-align: left;
}

.circuit-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
    pointer-events: none;
}

/* ============================================
   MAIN WEBSITE LAYER
   ============================================ */

.main-layer {
    min-height: 100vh;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.main-layer::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--charcoal);
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.08) 1px, transparent 1px);
    background-size: 100px 100px;
    pointer-events: none;
    z-index: -1;
}

.main-layer.hidden {
    display: none;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.65);
    border-bottom: 1px solid var(--primary-cyan);
    z-index: 100;
    padding: 0.75rem 0;
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 212, 255, 0.08);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-md);
}

.logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-cyan);
    text-shadow: var(--glow-primary);
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.tech-logos {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-left: 0.5rem;
}

.tech-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.tech-logo-text {
    display: none;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary-cyan);
    text-shadow: var(--glow-primary);
    white-space: nowrap;
}

.tech-logo {
    height: 24px;
    width: auto;
    color: var(--primary-cyan);
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.tech-logo:hover {
    opacity: 1;
}

.graffiti-tag {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    line-height: 1;
    padding: 0.4rem 0.6rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1.5px solid rgba(0, 212, 255, 0.3);
    border-radius: 6px;
    position: relative;
    transform: rotate(-1deg);
}

.graffiti-tag::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(255, 107, 157, 0.1));
    border-radius: 6px;
    z-index: -1;
}

.graffiti-top,
.graffiti-bottom {
    font-family: 'Inter', sans-serif;
    font-size: 0.55rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    line-height: 1.1;
}

.graffiti-top {
    color: rgba(255, 255, 255, 0.9);
    text-shadow:
        1px 1px 0px rgba(0, 212, 255, 0.4),
        0 0 8px rgba(255, 255, 255, 0.2);
}

.graffiti-bottom {
    color: rgba(0, 212, 255, 0.85);
    text-shadow:
        1px 1px 0px rgba(255, 107, 157, 0.3),
        0 0 6px rgba(0, 212, 255, 0.3);
    font-size: 0.6rem;
    font-weight: 900;
}

.logo-ascii {
    color: var(--neon-cyan);
    font-family: 'Courier New', monospace;
}

.logo-with {
    font-family: 'Inter', sans-serif;
    font-size: 0.55rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.25rem 0.4rem;
    margin: 0 0.3rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1.5px solid rgba(0, 212, 255, 0.3);
    border-radius: 6px;
    position: relative;
    transform: rotate(-1deg);
}

.logo-with-wi {
    color: rgba(255, 255, 255, 0.9);
    text-shadow:
        1px 1px 0px rgba(0, 212, 255, 0.4),
        0 0 8px rgba(255, 255, 255, 0.2);
}

.logo-with-th {
    color: rgba(0, 212, 255, 0.85);
    text-shadow:
        1px 1px 0px rgba(255, 107, 157, 0.3),
        0 0 6px rgba(0, 212, 255, 0.3);
}

.logo-with::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(255, 107, 157, 0.1));
    border-radius: 6px;
    z-index: -1;
}

.nav-menu {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.nav-link {
    color: var(--muted-gray);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-cyan);
    transition: width 0.3s ease;
    box-shadow: var(--glow-primary);
}

.nav-link:hover {
    color: var(--primary-cyan);
}

.nav-link:hover::after {
    width: 100%;
}

/* XP Bar */
.xp-bar-container {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    min-width: 200px;
}

.xp-label {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.6rem;
    color: var(--neon-cyan);
    text-shadow: var(--glow-cyan);
    white-space: nowrap;
}

.xp-bar {
    flex: 1;
    height: 20px;
    background: var(--dark-gray);
    border: 2px solid var(--primary-cyan);
    border-radius: 0;
    overflow: visible;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.5);
    position: relative;
}

.xp-bar::before {
    content: 'Age';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Press Start 2P', monospace;
    font-size: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.8);
    z-index: 10;
    pointer-events: none;
    letter-spacing: 1px;
}

.xp-fill {
    height: 100%;
    width: 26%;
    background: linear-gradient(90deg, var(--primary-cyan) 0%, var(--accent-cyan) 100%);
    box-shadow: var(--glow-primary);
    animation: xp-pulse 2s ease-in-out infinite;
}

@keyframes xp-pulse {
    0%, 100% {
        box-shadow: var(--glow-primary);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.5), 0 0 40px rgba(0, 212, 255, 0.3);
    }
}

/* Hero Section */
.hero {
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5rem var(--spacing-md) var(--spacing-md);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.binary-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50vh;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 212, 255, 0.03) 2px,
        rgba(0, 212, 255, 0.03) 4px
    );
    animation: binary-fall 72s linear infinite;
    pointer-events: none;
    z-index: 0;
    will-change: transform;
}

/* 8 waves evenly distributed across 72s cycle = 9s apart each */
/* ~5-6 grid squares spacing between waves */
.binary-rain.wave-1 { animation-delay: 0s; }
.binary-rain.wave-2 { animation-delay: -9s; }
.binary-rain.wave-3 { animation-delay: -18s; }
.binary-rain.wave-4 { animation-delay: -27s; }
.binary-rain.wave-5 { animation-delay: -36s; }
.binary-rain.wave-6 { animation-delay: -45s; }
.binary-rain.wave-7 { animation-delay: -54s; }
.binary-rain.wave-8 { animation-delay: -63s; }

@keyframes binary-fall {
    0% { transform: translateY(-50vh); }
    100% { transform: translateY(calc(100vh * 8)); }
}

.circuit-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.05) 1px, transparent 1px);
    background-size: 100px 100px;
    opacity: 0.2;
    pointer-events: none;
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    text-align: center;
    z-index: 1;
    position: relative;
}

.hero-ascii {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--primary-cyan);
    text-shadow: 0 0 8px rgba(0, 212, 255, 0.3);
    margin: var(--spacing-sm) 0;
    letter-spacing: 3px;
    opacity: 0.7;
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 900;
    margin: var(--spacing-md) 0;
    line-height: 1.1;
    font-family: 'Inter', sans-serif;
}

.title-line {
    display: block;
    color: var(--pure-white);
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.25), 0 0 8px rgba(0, 212, 255, 0.2);
    animation: title-glow 3s ease-in-out infinite;
}

@keyframes title-glow {
    0%, 100% {
        text-shadow: 0 0 12px rgba(255, 255, 255, 0.25), 0 0 8px rgba(0, 212, 255, 0.2);
    }
    50% {
        text-shadow: 0 0 15px rgba(255, 255, 255, 0.3), 0 0 10px rgba(0, 212, 255, 0.25);
    }
}

.hero-description {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 700px;
    margin: var(--spacing-md) auto;
    line-height: 1.7;
    letter-spacing: 0.3px;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    margin-top: var(--spacing-md);
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    font-size: 0.85rem;
    font-family: 'Press Start 2P', 'Courier New', monospace;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 2px solid;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(180deg, rgba(0, 212, 255, 0.8) 0%, rgba(0, 212, 255, 0.5) 50%, rgba(0, 212, 255, 0.3) 100%);
    border-color: var(--primary-cyan);
    color: var(--void-black);
    box-shadow: var(--glow-primary), inset 0 2px 10px rgba(255, 255, 255, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(180deg, rgba(0, 212, 255, 0.9) 0%, rgba(0, 212, 255, 0.7) 100%);
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.5), 0 0 50px rgba(0, 212, 255, 0.3);
    transform: translateY(-3px);
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-secondary {
    background: transparent;
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    box-shadow: var(--glow-cyan);
}

.btn-secondary:hover {
    background: linear-gradient(180deg, rgba(0, 255, 255, 0.2) 0%, rgba(0, 255, 255, 0.1) 100%);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.6), 0 0 60px rgba(0, 255, 255, 0.3);
    transform: translateY(-3px);
}

.btn-secondary:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-small {
    padding: 0.6rem 1.2rem;
    font-size: 0.65rem;
}

.btn-disabled {
    background: transparent;
    border-color: #ffffff;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(255, 100, 150, 0.3);
    cursor: not-allowed;
}

.btn-disabled:hover {
    background: linear-gradient(180deg, rgba(255, 100, 150, 0.2) 0%, rgba(255, 100, 150, 0.1) 100%);
    box-shadow: 0 0 30px rgba(255, 100, 150, 0.6), 0 0 60px rgba(255, 100, 150, 0.3);
    transform: none;
}

.btn-disabled:active {
    transform: none;
}

.hero-binary {
    margin-top: var(--spacing-lg);
    font-size: 0.7rem;
    color: var(--muted-gray);
    opacity: 0.4;
    font-family: 'Courier New', monospace;
    overflow: hidden;
    max-height: 80px;
}

.binary-text {
    display: block;
    word-break: break-all;
    line-height: 1.4;
}

.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-lg);
    left: 50%;
    transform: translateX(-50%);
    color: var(--primary-cyan);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    font-size: 2rem;
    text-shadow: var(--glow-primary);
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* Scroll Hint */
.scroll-hint {
    position: absolute;
    top: 89vh;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'VT323', 'Courier New', monospace;
    font-size: 1.1rem;
    color: rgba(0, 212, 255, 0.6);
    letter-spacing: 1px;
    z-index: 50;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.scroll-hint.hidden {
    opacity: 0;
}

.scroll-hint span {
    display: inline-block;
    animation: hint-pulse 2s ease-in-out infinite;
}

@keyframes hint-pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Sections */
.section {
    padding: var(--spacing-lg) var(--spacing-md);
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

/* Page Hero for Sub-pages */
.page-hero {
    min-height: 28vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7rem var(--spacing-md) var(--spacing-lg);
    position: relative;
    overflow: hidden;
}

.page-hero-content {
    max-width: 1200px;
    width: 100%;
    text-align: center;
    z-index: 1;
    position: relative;
    padding: var(--spacing-md) 0;
}

/* Keep Capabilities hero with original geometric elements */
.capabilities-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: min(100%, 900px);
    height: 100%;
    transform: translateX(-50%);
    z-index: -1;
    pointer-events: none;
    background-image:
        /* Floating circles */
        radial-gradient(circle at 20% 30%, rgba(0, 212, 255, 0.15) 0%, transparent 3px),
        radial-gradient(circle at 80% 70%, rgba(0, 212, 255, 0.12) 0%, transparent 2px),
        radial-gradient(circle at 50% 20%, rgba(0, 212, 255, 0.1) 0%, transparent 4px),
        radial-gradient(circle at 30% 80%, rgba(0, 212, 255, 0.13) 0%, transparent 2.5px),
        radial-gradient(circle at 70% 40%, rgba(0, 212, 255, 0.11) 0%, transparent 3px),
        /* Diagonal lines */
        linear-gradient(125deg, transparent 48%, rgba(0, 212, 255, 0.08) 49%, rgba(0, 212, 255, 0.08) 49.5%, transparent 50%),
        linear-gradient(65deg, transparent 70%, rgba(0, 212, 255, 0.06) 70.5%, rgba(0, 212, 255, 0.06) 71%, transparent 71.5%),
        /* Horizontal accent lines */
        linear-gradient(to right, transparent 15%, rgba(0, 212, 255, 0.1) 15.5%, rgba(0, 212, 255, 0.1) 35%, transparent 35.5%),
        linear-gradient(to right, transparent 60%, rgba(0, 212, 255, 0.08) 60.5%, rgba(0, 212, 255, 0.08) 85%, transparent 85.5%);
    background-size:
        100% 100%,
        100% 100%,
        100% 100%,
        100% 100%,
        100% 100%,
        100% 100%,
        100% 100%,
        100% 20%,
        100% 15%;
    background-position:
        0 0,
        0 0,
        0 0,
        0 0,
        0 0,
        0 0,
        0 0,
        0 25%,
        0 75%;
    background-repeat: no-repeat;
    animation: geometricFloat 15s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    opacity: 0.6;
    mask-image:
        radial-gradient(ellipse 75% 70% at 50% 50%, black 30%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.2) 75%, transparent 100%),
        linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image:
        radial-gradient(ellipse 75% 70% at 50% 50%, black 30%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.2) 75%, transparent 100%),
        linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-composite: intersect;
    -webkit-mask-composite: source-in;
}

/* Skills Hero - Diagonal cross pattern with scattered circles */
.skills-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: min(100%, 900px);
    height: 100%;
    transform: translateX(-50%);
    z-index: -1;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 15% 25%, rgba(0, 212, 255, 0.14) 0%, transparent 2.5px),
        radial-gradient(circle at 85% 35%, rgba(0, 212, 255, 0.11) 0%, transparent 3.5px),
        radial-gradient(circle at 40% 60%, rgba(0, 212, 255, 0.13) 0%, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(0, 212, 255, 0.12) 0%, transparent 3px),
        radial-gradient(circle at 25% 85%, rgba(0, 212, 255, 0.1) 0%, transparent 2.5px),
        radial-gradient(circle at 60% 15%, rgba(0, 212, 255, 0.12) 0%, transparent 2px),
        linear-gradient(45deg, transparent 48%, rgba(0, 212, 255, 0.09) 49%, rgba(0, 212, 255, 0.09) 49.5%, transparent 50%),
        linear-gradient(135deg, transparent 48%, rgba(0, 212, 255, 0.07) 49%, rgba(0, 212, 255, 0.07) 49.5%, transparent 50%),
        linear-gradient(to bottom, transparent 30%, rgba(0, 212, 255, 0.06) 30.5%, rgba(0, 212, 255, 0.06) 70%, transparent 70.5%);
    background-size:
        100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 15% 100%;
    background-position:
        0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 85% 0;
    background-repeat: no-repeat;
    animation: geometricFloat 14s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    opacity: 0.6;
    mask-image:
        radial-gradient(ellipse 75% 70% at 50% 50%, black 30%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.2) 75%, transparent 100%),
        linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image:
        radial-gradient(ellipse 75% 70% at 50% 50%, black 30%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.2) 75%, transparent 100%),
        linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-composite: intersect;
    -webkit-mask-composite: source-in;
}

/* Projects Hero - Grid pattern with corner accents */
.projects-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: min(100%, 900px);
    height: 100%;
    transform: translateX(-50%);
    z-index: -1;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 10% 15%, rgba(0, 212, 255, 0.16) 0%, transparent 4px),
        radial-gradient(circle at 90% 15%, rgba(0, 212, 255, 0.16) 0%, transparent 4px),
        radial-gradient(circle at 10% 85%, rgba(0, 212, 255, 0.16) 0%, transparent 4px),
        radial-gradient(circle at 90% 85%, rgba(0, 212, 255, 0.16) 0%, transparent 4px),
        radial-gradient(circle at 50% 50%, rgba(0, 212, 255, 0.12) 0%, transparent 2px),
        radial-gradient(circle at 30% 45%, rgba(0, 212, 255, 0.1) 0%, transparent 1.5px),
        radial-gradient(circle at 70% 55%, rgba(0, 212, 255, 0.11) 0%, transparent 1.5px),
        linear-gradient(to bottom, transparent 20%, rgba(0, 212, 255, 0.06) 20.5%, rgba(0, 212, 255, 0.06) 80%, transparent 80.5%),
        linear-gradient(to right, transparent 10%, rgba(0, 212, 255, 0.08) 10.5%, rgba(0, 212, 255, 0.08) 25%, transparent 25.5%),
        linear-gradient(to right, transparent 75%, rgba(0, 212, 255, 0.08) 75.5%, rgba(0, 212, 255, 0.08) 90%, transparent 90.5%);
    background-size:
        100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 20% 100%, 100% 30%, 100% 30%;
    background-position:
        0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 50% 0, 0 35%, 0 65%;
    background-repeat: no-repeat;
    animation: geometricFloat 16s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    opacity: 0.6;
    mask-image:
        radial-gradient(ellipse 75% 70% at 50% 50%, black 30%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.2) 75%, transparent 100%),
        linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image:
        radial-gradient(ellipse 75% 70% at 50% 50%, black 30%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.2) 75%, transparent 100%),
        linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-composite: intersect;
    -webkit-mask-composite: source-in;
}

/* About Hero - Constellation pattern */
.about-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: min(100%, 900px);
    height: 100%;
    transform: translateX(-50%);
    z-index: -1;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(0, 212, 255, 0.15) 0%, transparent 2px),
        radial-gradient(circle at 35% 35%, rgba(0, 212, 255, 0.12) 0%, transparent 1.5px),
        radial-gradient(circle at 65% 30%, rgba(0, 212, 255, 0.13) 0%, transparent 2.5px),
        radial-gradient(circle at 80% 45%, rgba(0, 212, 255, 0.11) 0%, transparent 2px),
        radial-gradient(circle at 25% 70%, rgba(0, 212, 255, 0.14) 0%, transparent 2px),
        radial-gradient(circle at 50% 80%, rgba(0, 212, 255, 0.12) 0%, transparent 1.5px),
        radial-gradient(circle at 70% 75%, rgba(0, 212, 255, 0.1) 0%, transparent 2.5px),
        radial-gradient(circle at 45% 50%, rgba(0, 212, 255, 0.11) 0%, transparent 1.5px),
        linear-gradient(30deg, transparent 30%, rgba(0, 212, 255, 0.05) 30.5%, rgba(0, 212, 255, 0.05) 31%, transparent 31.5%),
        linear-gradient(120deg, transparent 60%, rgba(0, 212, 255, 0.04) 60.5%, rgba(0, 212, 255, 0.04) 61%, transparent 61.5%),
        linear-gradient(80deg, transparent 45%, rgba(0, 212, 255, 0.05) 45.5%, rgba(0, 212, 255, 0.05) 46%, transparent 46.5%);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    animation: geometricFloat 18s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    opacity: 0.6;
    mask-image:
        radial-gradient(ellipse 75% 70% at 50% 50%, black 30%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.2) 75%, transparent 100%),
        linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image:
        radial-gradient(ellipse 75% 70% at 50% 50%, black 30%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.2) 75%, transparent 100%),
        linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-composite: intersect;
    -webkit-mask-composite: source-in;
}

/* Contact Hero - Targeting reticle pattern */
.contact-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: min(100%, 900px);
    height: 100%;
    transform: translateX(-50%);
    z-index: -1;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 50% 50%, rgba(0, 212, 255, 0.14) 0%, transparent 3px),
        radial-gradient(circle at 50% 20%, rgba(0, 212, 255, 0.12) 0%, transparent 2px),
        radial-gradient(circle at 50% 80%, rgba(0, 212, 255, 0.12) 0%, transparent 2px),
        radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.12) 0%, transparent 2px),
        radial-gradient(circle at 80% 50%, rgba(0, 212, 255, 0.12) 0%, transparent 2px),
        radial-gradient(circle at 35% 35%, rgba(0, 212, 255, 0.1) 0%, transparent 1.5px),
        radial-gradient(circle at 65% 65%, rgba(0, 212, 255, 0.1) 0%, transparent 1.5px),
        linear-gradient(to bottom, transparent 45%, rgba(0, 212, 255, 0.09) 45.5%, rgba(0, 212, 255, 0.09) 55%, transparent 55.5%),
        linear-gradient(to right, transparent 45%, rgba(0, 212, 255, 0.09) 45.5%, rgba(0, 212, 255, 0.09) 55%, transparent 55.5%),
        linear-gradient(to right, transparent 5%, rgba(0, 212, 255, 0.1) 5.5%, rgba(0, 212, 255, 0.1) 15%, transparent 15.5%),
        linear-gradient(to right, transparent 85%, rgba(0, 212, 255, 0.1) 85.5%, rgba(0, 212, 255, 0.1) 95%, transparent 95.5%);
    background-size:
        100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 8% 100%, 100% 8%, 100% 15%, 100% 15%;
    background-position:
        0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 50% 0, 0 50%, 0 10%, 0 10%;
    background-repeat: no-repeat;
    animation: geometricFloat 13s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    opacity: 0.6;
    mask-image:
        radial-gradient(ellipse 75% 70% at 50% 50%, black 30%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.2) 75%, transparent 100%),
        linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image:
        radial-gradient(ellipse 75% 70% at 50% 50%, black 30%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.2) 75%, transparent 100%),
        linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-composite: intersect;
    -webkit-mask-composite: source-in;
}

@keyframes subtleFloat {
    0% {
        opacity: 0.6;
        transform: translateX(-50%) translateY(0) scale(1);
    }
    33% {
        opacity: 0.7;
        transform: translateX(-50%) translateY(-1px) scale(1.005);
    }
    66% {
        opacity: 0.65;
        transform: translateX(-50%) translateY(1px) scale(0.998);
    }
    100% {
        opacity: 0.6;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

@keyframes geometricFloat {
    0% {
        opacity: 0.6;
        transform: translateX(-50%) translateY(0) rotate(0deg);
    }
    25% {
        opacity: 0.7;
        transform: translateX(-50%) translateY(-2px) rotate(0.5deg);
    }
    50% {
        opacity: 0.5;
        transform: translateX(-50%) translateY(1px) rotate(-0.3deg);
    }
    75% {
        opacity: 0.65;
        transform: translateX(-50%) translateY(-1px) rotate(0.2deg);
    }
    100% {
        opacity: 0.6;
        transform: translateX(-50%) translateY(0) rotate(0deg);
    }
}

.page-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin: var(--spacing-sm) 0;
    line-height: 1.15;
    font-family: 'Inter', sans-serif;
    color: var(--pure-white);
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.15);
    letter-spacing: -0.5px;
}

.page-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.65);
    max-width: 600px;
    margin: var(--spacing-sm) auto 0;
    line-height: 1.6;
    letter-spacing: 0.2px;
}

/* Capability Details */
.capability-details {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(0, 212, 255, 0.15);
}

.capability-details h4 {
    font-size: 0.85rem;
    color: rgba(0, 212, 255, 0.8);
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.capability-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.capability-details li {
    color: rgba(255, 255, 255, 0.65);
    padding: 0.35rem 0;
    font-size: 0.9rem;
    position: relative;
    padding-left: 1.1rem;
}

.capability-details li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: rgba(0, 212, 255, 0.5);
    font-weight: bold;
}

.dark-section {
    background: rgba(0, 60, 80, 0.35);
    backdrop-filter: blur(1.5px);
    -webkit-backdrop-filter: blur(1.5px);
    border: 1px solid var(--primary-cyan);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.15);
}

/* Home page panels - swap color (keep opacity) */
#capabilities.dark-section,
#projects.dark-section,
#contact.dark-section {
    background: rgba(0, 40, 60, 0.35);
}

/* Home page panels - wider width */
#capabilities.section,
#projects.section,
#contact.section,
#features.section,
#about.section {
    max-width: 1520px;
    padding: var(--spacing-lg) var(--spacing-lg);
}

/* Home page capabilities grid - wider spacing for wider panel */
#capabilities .capabilities-grid {
    gap: var(--spacing-md);
}

/* Home page projects grid - wider spacing for wider panel */
#projects .projects-grid {
    gap: var(--spacing-lg) var(--spacing-md);
}

/* Home page contact - wider spacing for wider panel */
#contact .contact-content {
    padding: 0 var(--spacing-sm);
}

#contact .contact-links {
    gap: var(--spacing-md);
}

/* Home page Key Skills panel - scale container to fill wider panel */
#features .xbox-container {
    max-width: 1280px;
}

/* Home page Quest Log - wider spacing for wider panel */
#about .quest-log {
    gap: 0.8rem;
}

/* Projects page panel - swap color (keep opacity) */
body:has(.page-hero-content.projects-hero) .dark-section {
    background: rgba(0, 40, 60, 0.35);
}

/* Contact page panel - swap color (keep opacity) */
body:has(.page-hero-content.contact-hero) .dark-section {
    background: rgba(0, 40, 60, 0.35);
}

/* Capabilities page cards - bright cyan border */
body:has(.page-hero-content.capabilities-hero) .capability-card {
    border: 1px solid var(--primary-cyan);
}

/* Capabilities page - wider width and spacing */
body:has(.page-hero-content.capabilities-hero) .section {
    max-width: 1520px;
    padding: var(--spacing-lg) var(--spacing-lg);
}

body:has(.page-hero-content.capabilities-hero) .capabilities-grid {
    gap: var(--spacing-md);
}

/* Skills page - wider width and spacing */
body:has(.page-hero-content.skills-hero) .section {
    max-width: 1520px;
    padding: var(--spacing-lg) var(--spacing-lg);
}

body:has(.page-hero-content.skills-hero) .xbox-container {
    max-width: 1280px;
}

/* Projects page - wider width and spacing */
body:has(.page-hero-content.projects-hero) .section {
    max-width: 1520px;
    padding: var(--spacing-lg) var(--spacing-lg);
}

body:has(.page-hero-content.projects-hero) .projects-grid {
    gap: var(--spacing-lg) var(--spacing-md);
}

/* About page - wider width and spacing */
body:has(.page-hero-content.about-hero) .section {
    max-width: 1520px;
    padding: var(--spacing-lg) var(--spacing-lg);
}

body:has(.page-hero-content.about-hero) .quest-log {
    gap: 0.8rem;
}

/* About page blog panels - bright cyan border */
body:has(.page-hero-content.about-hero) .blog-panel {
    border: 1px solid var(--primary-cyan);
}

/* Contact page - wider width and spacing */
body:has(.page-hero-content.contact-hero) .section {
    max-width: 1520px;
    padding: var(--spacing-lg) var(--spacing-lg);
}

body:has(.page-hero-content.contact-hero) .contact-content {
    padding: 0 var(--spacing-sm);
}

body:has(.page-hero-content.contact-hero) .contact-links {
    gap: var(--spacing-md);
}

/* Xbox 360-Inspired Panel Style */
.xbox-panel {
    background: rgba(0, 15, 25, 0.08);
    backdrop-filter: blur(1.5px);
    -webkit-backdrop-filter: blur(1.5px);
    border: 1px solid var(--primary-cyan);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    padding: 2rem 1.5rem;
    margin: 2rem auto;
    max-width: 1400px;
    width: 100%;
    box-shadow:
        0 0 12px rgba(0, 212, 255, 0.35),
        0 0 4px rgba(0, 212, 255, 0.5),
        inset 0 1px 0 rgba(0, 255, 255, 0.2);
}

/* Enable smooth tilt on home page xbox-panel */
#features.xbox-panel {
    transition: transform 0.15s ease-out;
}

.xbox-panel.section {
    padding: var(--spacing-lg) var(--spacing-md);
}

.xbox-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(0, 212, 255, 0.5) 20%,
        rgba(0, 255, 255, 0.6) 50%,
        rgba(0, 212, 255, 0.5) 80%,
        transparent 100%);
}

.xbox-panel::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(0, 212, 255, 0.3) 20%,
        rgba(0, 255, 255, 0.4) 50%,
        rgba(0, 212, 255, 0.3) 80%,
        transparent 100%);
}

.xbox-container {
    max-width: 1180px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.xbox-header {
    margin-bottom: 1.75rem;
    padding-left: 0.5rem;
    padding-top: 1.5rem;
}

.xbox-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--pure-white);
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
    position: relative;
    display: inline-block;
}

.xbox-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-cyan), transparent);
}

.xbox-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 1.5rem;
    align-items: start;
    margin-bottom: 1.5rem;
}

/* Xbox Feature List (Left Side) */
.xbox-features-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.xbox-feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(0, 40, 60, 0.7);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    min-height: 60px;
}

.xbox-feature-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: transparent;
    border-radius: 3px 0 0 3px;
    transition: all 0.25s ease;
}

.xbox-feature-item:hover {
    background: rgba(0, 50, 75, 0.6);
    border-color: rgba(0, 212, 255, 0.35);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transform: translateX(4px);
}

.xbox-feature-item.active {
    background: rgba(0, 60, 90, 0.7);
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(0, 212, 255, 0.15);
    transform: translateX(6px);
}

.xbox-feature-item.active::before {
    background: linear-gradient(180deg, var(--primary-cyan) 0%, var(--accent-cyan) 100%);
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.6);
}

.xbox-feature-icon {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--primary-cyan);
    min-width: 45px;
    font-weight: bold;
    transition: color 0.25s ease;
}

.xbox-feature-item:hover .xbox-feature-icon,
.xbox-feature-item.active .xbox-feature-icon {
    color: var(--primary-cyan);
}

.xbox-feature-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.xbox-feature-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.25s ease;
}

.xbox-feature-item:hover .xbox-feature-name {
    color: var(--pure-white);
}

.xbox-feature-item.active .xbox-feature-name {
    color: var(--pure-white);
}

.xbox-feature-label {
    font-size: 0.55rem;
    font-weight: 600;
    color: var(--primary-cyan);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Press Start 2P', monospace;
    transition: all 0.25s ease;
}

.xbox-feature-item:hover .xbox-feature-label,
.xbox-feature-item.active .xbox-feature-label {
    color: var(--primary-cyan);
}

/* White variant for "Click on Skills Tab" - uses label font but white color */
.xbox-feature-name-white {
    font-size: 0.55rem;
    font-weight: 600;
    color: var(--pure-white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Press Start 2P', monospace;
}

/* Xbox Feature Details (Right Side) */
.xbox-feature-details {
    background: rgba(0, 45, 70, 0.6);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 16px;
    padding: 1.75rem;
    min-height: 260px;
    position: sticky;
    top: 2rem;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.5),
        0 0 1px rgba(0, 212, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.xbox-detail-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.xbox-detail-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--pure-white);
    font-family: 'Inter', sans-serif;
    border-bottom: 1px solid rgba(0, 212, 255, 0.25);
    padding-bottom: 0.75rem;
    letter-spacing: 0.5px;
}

/* White variant for detail title - uses label font but white color */
.xbox-detail-title-white {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--pure-white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Press Start 2P', monospace;
}

.xbox-detail-description {
    font-size: 0.95rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.85);
}

.xbox-detail-meta {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 212, 255, 0.15);
}

.xbox-meta-tag {
    padding: 0.25rem 0.6rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--primary-cyan);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Press Start 2P', monospace;
}

/* Responsive for Xbox Panel */
@media (max-width: 1024px) {
    .xbox-content-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .xbox-feature-details {
        position: relative;
        top: 0;
    }

    .xbox-panel {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .xbox-title {
        font-size: 2rem;
    }

    .xbox-feature-item {
        padding: 0.75rem 1rem;
        min-height: 60px;
    }

    .xbox-feature-name {
        font-size: 1rem;
    }

    .xbox-detail-title {
        font-size: 1.5rem;
    }

    .xbox-feature-details {
        padding: 1.5rem;
        min-height: 250px;
    }
}

.section-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.section-number {
    color: var(--primary-cyan);
    font-size: 1rem;
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

.section-title {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    color: var(--pure-white);
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.3px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-cyan), transparent);
}

.section-title.no-underline::after {
    display: none;
}

/* Glass Panels (Frutiger Aero) */
.glass-panel {
    background: rgba(0, 10, 20, 0.04);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 10%, rgba(0, 212, 255, 0.25) 50%, transparent 90%);
}

/* Capabilities Grid */
.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.capability-card {
    padding: var(--spacing-md);
    transition: all 0.3s ease;
    position: relative;
    background: rgba(0, 40, 60, 0.7);
    backdrop-filter: blur(1.5px);
    -webkit-backdrop-filter: blur(1.5px);
}

/* Home page capability cards - swap color (keep opacity) */
#capabilities .capability-card {
    background: rgba(0, 60, 80, 0.7);
}

#capabilities .capability-card:hover {
    background: rgba(0, 70, 90, 0.6);
}

.capability-card:hover {
    background: rgba(0, 50, 75, 0.6);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(0, 212, 255, 0.1);
    transform: translateY(-8px);
}

.card-glow {
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(0, 255, 255, 0.1), rgba(0, 153, 204, 0.15));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    border-radius: 16px;
    filter: blur(12px);
}

.capability-card:hover .card-glow {
    opacity: 0.5;
}

.card-number {
    color: var(--primary-cyan);
    font-size: 0.8rem;
    margin-bottom: var(--spacing-sm);
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

.capability-card h3 {
    font-size: 1.4rem;
    margin-bottom: var(--spacing-sm);
    color: var(--pure-white);
    font-weight: 600;
    letter-spacing: 0.3px;
}

.capability-card p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.65;
    font-size: 0.95rem;
}

/* Features List */
.features-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.feature-item {
    display: flex;
    gap: var(--spacing-sm);
    align-items: flex-start;
    padding: var(--spacing-sm) var(--spacing-md);
    transition: all 0.25s ease;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border-left: 2px solid transparent;
}

.feature-item:hover {
    background: rgba(0, 20, 30, 0.4);
    border-left-color: rgba(0, 212, 255, 0.5);
}

.feature-number {
    color: rgba(0, 212, 255, 0.6);
    font-size: 1rem;
    font-family: 'Courier New', monospace;
    min-width: 70px;
}

.feature-content h3 {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-xs);
    color: var(--pure-white);
    font-weight: 600;
    letter-spacing: 0.2px;
}

.feature-content p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg) var(--spacing-sm);
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.project-card {
    overflow: hidden;
    transition: all 0.3s ease;
    background: rgba(0, 40, 60, 0.7);
}

/* Home page project cards - swap color (keep opacity) */
#projects .project-card {
    background: rgba(0, 60, 80, 0.7);
}

#projects .project-card:hover {
    background: rgba(0, 70, 90, 0.6);
}

/* Projects page cards - swap color (keep opacity) */
body:has(.page-hero-content.projects-hero) .project-card {
    background: rgba(0, 60, 80, 0.7);
}

body:has(.page-hero-content.projects-hero) .project-card:hover {
    background: rgba(0, 70, 90, 0.6);
}

.project-card:hover {
    background: rgba(0, 50, 75, 0.6);
    transform: translateY(-8px);
    border-color: rgba(0, 212, 255, 0.25);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(0, 212, 255, 0.08);
}

.project-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, rgba(15, 20, 25, 0.9) 0%, rgba(25, 30, 35, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

.project-placeholder {
    font-family: 'Courier New', monospace;
    font-size: 1.3rem;
    color: rgba(0, 212, 255, 0.4);
    z-index: 1;
    letter-spacing: 2px;
}

.project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(0, 255, 255, 0.08));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-image::before {
    opacity: 1;
}

.project-content {
    padding: var(--spacing-md);
}

.project-tags {
    display: flex;
    gap: 0.4rem;
    margin-bottom: var(--spacing-sm);
    flex-wrap: wrap;
}

.tag {
    padding: 0.25rem 0.6rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: var(--primary-cyan);
    font-size: 0.6rem;
    font-family: 'Press Start 2P', monospace;
    text-transform: uppercase;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.project-content h3 {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-xs);
    color: var(--pure-white);
    font-weight: 600;
    letter-spacing: 0.3px;
}

.project-content p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: var(--spacing-sm);
    font-size: 0.9rem;
}

/* Blog Panel (Old-School Forum Style) */
.blog-panel {
    padding: 0;
    margin-bottom: var(--spacing-md);
    border: 1px solid rgba(0, 212, 255, 0.2);
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(1.5px);
    -webkit-backdrop-filter: blur(1.5px);
}

.blog-header {
    background: rgba(0, 20, 30, 0.6);
    padding: var(--spacing-md);
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 16px 16px 0 0;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.blog-icon {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: rgba(0, 212, 255, 0.8);
    font-weight: bold;
    padding: 0.35rem 0.7rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 6px;
}

.blog-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--pure-white);
    font-family: 'Inter', sans-serif;
    flex: 1;
    margin: 0;
    letter-spacing: 0.3px;
}

.blog-timestamp {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

.blog-content {
    padding: var(--spacing-lg);
    background: rgba(0, 0, 0, 0.3);
    line-height: 1.8;
}

.blog-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    margin-bottom: var(--spacing-md);
}

.blog-content p:last-child {
    margin-bottom: 0;
}

/* Quest Log */
.quest-log {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: var(--spacing-md);
}

.quest-item {
    display: flex;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(0, 0, 0, 0.4);
    border-left: 3px solid;
    border-radius: 0 8px 8px 0;
    transition: all 0.25s ease;
    position: relative;
}

.quest-item:hover {
    background: rgba(0, 20, 30, 0.5);
}

.quest-item.completed {
    border-color: var(--primary-cyan);
}

.quest-item.in-progress {
    border-color: var(--accent-cyan);
    background: rgba(0, 30, 45, 0.5);
}

.quest-item.pending {
    border-color: rgba(136, 136, 136, 0.4);
    opacity: 0.7;
}

.quest-checkbox {
    font-size: 1.3rem;
    min-width: 36px;
    text-align: center;
    font-family: 'Courier New', monospace;
}

.quest-item.completed .quest-checkbox {
    color: var(--primary-cyan);
}

.quest-item.in-progress .quest-checkbox {
    color: var(--accent-cyan);
    animation: spin 3s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.quest-item.pending .quest-checkbox {
    color: rgba(136, 136, 136, 0.6);
}

.quest-content h3 {
    font-size: 1.15rem;
    margin-bottom: 0.3rem;
    color: var(--pure-white);
    font-weight: 600;
    letter-spacing: 0.2px;
}

.quest-content p {
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.5;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}

.quest-date {
    font-size: 0.8rem;
    color: var(--primary-cyan);
    font-family: 'Courier New', monospace;
}

/* Contact Section */
.contact-section {
    text-align: center;
    padding-bottom: calc(var(--spacing-xl) * 2);
}

.contact-content {
    margin-top: var(--spacing-md);
}

.contact-content p {
    font-size: 1.1rem;
    color: var(--muted-gray);
    margin-bottom: var(--spacing-sm);
}

.contact-links {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    margin-top: var(--spacing-md);
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-md);
    min-width: 130px;
    text-decoration: none;
    color: var(--primary-cyan);
    transition: all 0.25s ease;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.contact-link:hover {
    transform: translateY(-5px);
    background: rgba(0, 30, 45, 0.6);
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.link-icon {
    font-size: 2rem;
    opacity: 0.9;
}

.contact-link span:last-child {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-cyan);
}

/* ASCII Art Section */
.ascii-art-section {
    text-align: center;
    padding: calc(var(--spacing-xl) * 2) var(--spacing-md);
    background: transparent;
}

.ascii-portrait {
    display: inline-block;
    perspective: 1000px;
}

.ascii-face {
    font-family: 'Courier New', 'Monaco', monospace;
    font-size: 8px;
    line-height: 1;
    color: var(--primary-cyan);
    text-shadow: var(--glow-primary);
    white-space: pre;
    margin: 0;
    padding: var(--spacing-md);
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 16px;
    animation: ascii-rotate 20s linear infinite;
    transform-style: preserve-3d;
}

@keyframes ascii-rotate {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

/* Footer */
.footer {
    background: var(--void-black);
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    padding: var(--spacing-lg) var(--spacing-md);
    text-align: center;
    position: relative;
    z-index: 1;
    margin-top: var(--spacing-xl);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-ascii {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: var(--primary-cyan);
    text-shadow: var(--glow-primary);
    margin-bottom: var(--spacing-md);
    line-height: 1.5;
}

.footer-content p {
    color: var(--muted-gray);
    margin-bottom: var(--spacing-md);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    margin-top: var(--spacing-lg);
}

.footer-links a {
    color: var(--muted-gray);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links a:hover {
    color: var(--primary-cyan);
    text-shadow: var(--glow-primary);
}

/* ============================================
   ANIMATIONS & EFFECTS
   ============================================ */

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* Fade-in on scroll */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .nav-container {
        flex-wrap: wrap;
    }

    .xp-bar-container {
        min-width: 150px;
    }

    .capabilities-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
    }

    * {
        max-width: 100vw;
    }

    /* Fix hero section padding to account for fixed navbar */
    .hero {
        padding-top: 8rem;
        padding-bottom: var(--spacing-lg);
        min-height: calc(100vh - 2rem);
    }

    .page-hero {
        padding-top: 7rem;
        min-height: 20vh;
    }

    /* Reduce navbar padding */
    .navbar {
        padding: 0.5rem 0;
    }

    /* Reduce container padding to prevent overflow */
    .section {
        padding: var(--spacing-sm) var(--spacing-sm);
        margin: 0 0.75rem;
        max-width: calc(100% - 1.5rem);
        border-radius: 16px;
    }

    /* Override wider home page panel rules for mobile */
    #capabilities.section,
    #projects.section,
    #contact.section,
    #features.section,
    #about.section {
        max-width: calc(100% - 2.5rem);
        padding: var(--spacing-sm) var(--spacing-sm);
        margin: var(--spacing-sm) 1.25rem;
    }

    /* Override wider page-specific panel rules for mobile */
    body:has(.page-hero-content.capabilities-hero) .section,
    body:has(.page-hero-content.skills-hero) .section,
    body:has(.page-hero-content.projects-hero) .section,
    body:has(.page-hero-content.about-hero) .section,
    body:has(.page-hero-content.contact-hero) .section {
        max-width: calc(100% - 2.5rem);
        padding: var(--spacing-sm) var(--spacing-sm);
        margin: var(--spacing-sm) 1.25rem;
    }

    /* Scroll hint mobile positioning */
    .scroll-hint {
        top: auto;
        bottom: 8vh;
        font-size: 0.9rem;
    }

    .container {
        padding: 0 var(--spacing-sm);
        max-width: calc(100% - 2rem);
        margin: 0 auto;
    }

    /* Make cards less crowded */
    .glass-panel {
        padding: var(--spacing-xs);
        margin: var(--spacing-xs) auto;
        width: calc(100% - 1rem);
        max-width: 100%;
    }

    .capability-card,
    .project-card {
        padding: var(--spacing-xs);
        width: 100%;
        min-height: auto !important;
        height: auto !important;
    }

    .project-content,
    .capability-content {
        padding: var(--spacing-xs);
    }

    .capability-card h3,
    .project-card h3 {
        font-size: 1.1rem;
        margin-bottom: var(--spacing-xs);
    }

    .capability-card h3 {
        padding-left: var(--spacing-sm);
        padding-right: var(--spacing-sm);
        margin-bottom: 0.5rem;
    }

    .capability-card p,
    .project-card p {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .capability-card > p {
        padding-left: var(--spacing-sm);
        padding-right: var(--spacing-sm);
        padding-bottom: var(--spacing-sm);
    }

    .capability-details {
        padding-left: var(--spacing-sm);
        padding-right: var(--spacing-sm);
    }

    /* Capabilities page - remove inline height styles on mobile */
    body:has(.page-hero-content.capabilities-hero) .capability-card {
        height: auto !important;
        min-height: auto !important;
    }

    /* Capabilities page - remove spacer divs on mobile */
    body:has(.page-hero-content.capabilities-hero) .capability-card > div[style*="height:"] {
        display: none !important;
    }

    .capability-card ul li,
    .project-card ul li {
        font-size: 0.8rem;
        margin-bottom: 0.3rem;
    }

    .project-tags,
    .capability-tags {
        gap: 0.3rem;
        margin-bottom: var(--spacing-xs);
    }

    .tag {
        font-size: 0.65rem;
        padding: 0.25rem 0.5rem;
    }

    .project-image,
    .capability-image {
        height: 120px;
        margin-bottom: var(--spacing-xs);
    }

    /* Reduce font sizes for mobile */
    .hero-title,
    .page-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-description,
    .page-description {
        font-size: 0.9rem;
        padding: 0 var(--spacing-xs);
    }

    .section-title {
        font-size: 1.5rem;
    }

    /* ASCII elements */
    .ascii-door {
        font-size: 6px;
    }

    .hero-ascii {
        font-size: 0.6rem;
        overflow: hidden;
    }

    .inscription {
        font-size: 1.3rem;
    }

    .password-input-terminal {
        width: 100%;
        max-width: 250px;
        font-size: 1rem;
    }

    .password-submit-btn {
        font-size: 0.7rem;
        padding: 1rem 1.2rem;
        width: 100%;
    }

    .terminal-line {
        font-size: 1rem;
    }

    /* Logo and navigation */
    .graffiti-tag {
        padding: 0.25rem 0.4rem;
    }

    .graffiti-top,
    .graffiti-bottom {
        font-size: 0.4rem;
        letter-spacing: 0.3px;
    }

    .graffiti-bottom {
        font-size: 0.45rem;
    }

    .logo {
        gap: 0.5rem;
        font-size: 1.1rem;
    }

    .logo-with {
        font-size: 0.4rem;
        padding: 0.15rem 0.3rem;
        margin: 0 0.2rem;
    }

    .logo-with-wi,
    .logo-with-th {
        font-size: inherit;
    }

    .logo-with::before {
        top: -1px;
        left: -1px;
        right: -1px;
        bottom: -1px;
    }

    .tech-logos {
        gap: 0.5rem;
        justify-content: flex-start;
        align-items: center;
        flex: 0 1 auto;
        margin: 0.25rem 0;
        margin-left: 0.5rem;
    }

    .tech-logo-wrapper {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0.2rem;
    }

    .tech-logo {
        width: 14px;
        height: 14px;
        flex-shrink: 0;
    }

    .tech-logo-text {
        display: block;
        font-size: 0.4rem;
        white-space: nowrap;
        opacity: 0.9;
    }

    .nav-container {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .nav-menu {
        gap: var(--spacing-sm);
        font-size: 0.7rem;
        padding: 0 0.25rem;
        justify-content: center;
        width: 100%;
    }

    .nav-link {
        padding: 0.25rem 0.4rem;
    }

    .xp-bar-container {
        display: none;
    }

    /* Grid layouts */
    .capabilities-grid,
    .projects-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xs);
        padding: var(--spacing-xs);
        width: calc(100% - 1rem);
        margin: 0 auto;
    }

    /* Feature items */
    .feature-item {
        flex-direction: column;
        padding: var(--spacing-sm);
    }

    /* Buttons */
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-sm);
        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 280px;
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .btn-small {
        font-size: 0.55rem;
        padding: 0.4rem 0.7rem;
    }

    /* Project card buttons - smaller on mobile */
    .project-content .btn-secondary.btn-small {
        font-size: 0.5rem;
        padding: 0.35rem 0.6rem;
        letter-spacing: 0.5px;
    }

    /* Ensure button links have no underline on mobile */
    a.btn-primary, a.btn-secondary {
        text-decoration: none;
    }

    .contact-links {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-sm);
        width: 100%;
    }

    .contact-link {
        width: 100%;
        max-width: 280px;
        padding: var(--spacing-xs);
        font-size: 0.9rem;
    }

    .contact-link i {
        font-size: 1.2rem;
    }

    /* Xbox panel for skills page */
    .xbox-container {
        padding: var(--spacing-sm);
        width: 100%;
        margin: 0 auto;
        max-width: 100%;
    }

    .xbox-content-wrapper {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .xbox-features-list {
        width: 100%;
        gap: 0.5rem;
    }

    .xbox-feature-item {
        padding: 0.75rem 1rem;
    }

    .xbox-feature-icon {
        font-size: 0.7rem;
        min-width: 50px;
    }

    .xbox-feature-name {
        font-size: 0.85rem;
    }

    .xbox-feature-label {
        font-size: 0.5rem;
    }

    .xbox-feature-name-white {
        font-size: 0.45rem;
    }

    .xbox-feature-details {
        position: static;
        width: 100%;
        margin: 0;
        padding: var(--spacing-sm);
        min-height: auto;
    }

    /* Skills page detail panel - improved readability on mobile */
    body:has(.page-hero-content.skills-hero) .xbox-feature-details {
        position: static !important;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding: var(--spacing-md);
        background: rgba(0, 45, 70, 0.95);
        border: 1px solid rgba(0, 212, 255, 0.4);
        top: auto !important;
    }

    .xbox-detail-content {
        gap: var(--spacing-sm);
    }

    .xbox-detail-title {
        font-size: 1.1rem;
        padding-bottom: 0.5rem;
    }

    .xbox-detail-title-white {
        font-size: 0.6rem;
        text-align: center;
        width: 100%;
    }

    .xbox-detail-description {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .xbox-detail-meta {
        gap: 0.4rem;
    }

    .xbox-meta-tag {
        font-size: 0.5rem;
        padding: 0.3rem 0.6rem;
    }

    /* Override Key Skills panel max-width on mobile */
    #features .xbox-container,
    body:has(.page-hero-content.skills-hero) .xbox-container {
        max-width: 100%;
    }

    /* Blog panels */
    .blog-panel {
        margin-bottom: var(--spacing-md);
    }

    .blog-header {
        padding: var(--spacing-sm);
    }

    .blog-title {
        font-size: 1.1rem;
    }

    .blog-timestamp {
        font-size: 0.7rem;
    }

    .blog-content {
        font-size: 0.9rem;
        line-height: 1.6;
        padding: var(--spacing-sm);
    }

    .blog-content p {
        margin-bottom: var(--spacing-sm);
    }

    /* Quest log */
    .quest-log {
        padding: 0;
    }

    .quest-item {
        padding: var(--spacing-sm);
    }

    /* Contact Section */
    .contact-section {
        padding-bottom: var(--spacing-xl);
        margin-bottom: var(--spacing-xl);
    }

    /* ASCII Art Section */
    .ascii-art-section {
        padding-top: var(--spacing-lg);
        padding-bottom: var(--spacing-lg);
        margin-top: var(--spacing-md);
        margin-bottom: var(--spacing-md);
        overflow: hidden;
    }

    .ascii-portrait {
        max-width: 100%;
        padding: 1rem 0;
    }

    .ascii-face {
        font-size: 3px;
        padding: var(--spacing-sm);
        max-width: 100%;
    }

    /* Footer */
    .footer {
        padding-top: var(--spacing-lg);
        padding-bottom: var(--spacing-md);
        padding-left: var(--spacing-sm);
        padding-right: var(--spacing-sm);
        margin-top: var(--spacing-md);
    }

    .footer-content {
        max-width: calc(100% - 1rem);
    }

    .footer-ascii {
        font-size: 0.4rem;
        overflow: hidden;
        padding: var(--spacing-sm) 0;
        margin: var(--spacing-sm) 0;
    }

    .footer-content p {
        font-size: 0.8rem;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: var(--spacing-xs);
        font-size: 0.65rem;
        justify-content: center;
    }

    .footer-links a {
        padding: 0.25rem 0.5rem;
    }

    /* Prevent overflow on specific elements */
    .main-layer {
        overflow-x: hidden;
        width: 100%;
    }

    .binary-rain,
    .circuit-pattern {
        width: 100vw;
    }
}

@media (max-width: 480px) {
    /* Extra small screens */
    .ascii-door {
        font-size: 4px;
    }

    .hero-ascii {
        font-size: 0.5rem;
    }

    .hero-title,
    .page-title {
        font-size: 1.75rem;
    }

    /* Tighter margins on very small screens */
    .section {
        padding: var(--spacing-sm) 0.5rem;
        margin: 0 0.5rem;
        max-width: calc(100% - 1rem);
    }

    /* Override home page panels for extra small screens */
    #capabilities.section,
    #projects.section,
    #contact.section,
    #features.section,
    #about.section {
        max-width: calc(100% - 1rem);
        padding: var(--spacing-sm) 0.5rem;
        margin: var(--spacing-xs) 0.5rem;
    }

    /* Override page-specific panels for extra small screens */
    body:has(.page-hero-content.capabilities-hero) .section,
    body:has(.page-hero-content.skills-hero) .section,
    body:has(.page-hero-content.projects-hero) .section,
    body:has(.page-hero-content.about-hero) .section,
    body:has(.page-hero-content.contact-hero) .section {
        max-width: calc(100% - 1rem);
        padding: var(--spacing-sm) 0.5rem;
        margin: var(--spacing-xs) 0.5rem;
    }

    .capability-card,
    .project-card {
        padding: var(--spacing-xs);
    }

    .nav-menu {
        font-size: 0.65rem;
        gap: 0.3rem;
    }

    .nav-link {
        padding: 0.2rem 0.3rem;
    }

    .logo {
        font-size: 1rem;
    }

    .logo-with {
        font-size: 0.35rem;
        padding: 0.1rem 0.25rem;
        margin: 0 0.15rem;
    }

    .logo-with-wi,
    .logo-with-th {
        font-size: inherit;
    }

    .tech-logos {
        gap: 0.4rem;
        margin-left: 0.3rem;
    }

    .tech-logo-wrapper {
        gap: 0.15rem;
    }

    .tech-logo {
        width: 12px;
        height: 12px;
    }

    .tech-logo-text {
        font-size: 0.35rem;
    }

    /* ASCII Art Section - extra small */
    .ascii-art-section {
        padding-top: var(--spacing-md);
        padding-bottom: var(--spacing-md);
        margin-top: var(--spacing-sm);
        margin-bottom: var(--spacing-sm);
    }

    .ascii-face {
        font-size: 2.5px;
        padding: var(--spacing-xs);
    }

    .btn-primary,
    .btn-secondary {
        font-size: 0.85rem;
        padding: 0.75rem 1.25rem;
    }

    .glass-panel {
        padding: var(--spacing-xs);
    }

    /* Scroll hint smaller on extra small screens */
    .scroll-hint {
        font-size: 0.8rem;
        bottom: 6vh;
    }

    /* Xbox panel adjustments for extra small */
    .xbox-feature-icon {
        font-size: 0.6rem;
        min-width: 45px;
    }

    .xbox-feature-name {
        font-size: 0.8rem;
    }

    .xbox-feature-name-white {
        font-size: 0.4rem;
    }

    .xbox-detail-title {
        font-size: 1rem;
    }

    .xbox-detail-title-white {
        font-size: 0.55rem;
    }

    .xbox-detail-description {
        font-size: 0.8rem;
    }

    /* Contact links stack properly */
    .contact-links {
        gap: var(--spacing-xs);
    }

    .contact-link {
        padding: var(--spacing-sm);
    }

    /* Quest log tighter spacing */
    .quest-item {
        padding: var(--spacing-xs);
    }

    .quest-content h3 {
        font-size: 0.95rem;
    }

    .quest-content p {
        font-size: 0.8rem;
    }

    .quest-date {
        font-size: 0.7rem;
    }
}
