:root {
    /* Gamer-Pilot Midnight Blue Palette */
    --bg: #0a1124;
    --surface: #111a33;
    --surface-hover: #1b264a;
    --text: #ffffff;
    --text-muted: #94a3b8;
    --border: rgba(59, 130, 246, 0.15);
    --accent: #3b82f6; /* Aviator Blue */
    --navbar-glass: rgba(10, 17, 36, 0.85);
    --transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Typography */
    --font-heading: 'Staatliches', cursive;
    --font-display: 'Staatliches', cursive;
    --font-body: 'Inter', sans-serif;
    --font-condensed: 'Stint Ultra Condensed', sans-serif;
    --font-mono: 'Fragment Mono', monospace;

    /* Aviation Specifics */
    --turbine-speed: 2s;
}

[data-theme="light"] {
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-hover: #f1f5f9;
    --text: #0f172a;
    --text-muted: #64748b;
    --border: rgba(15, 23, 42, 0.1);
    --accent: #2563eb;
    --navbar-glass: rgba(248, 250, 252, 0.85);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    overflow-x: hidden;
    margin: 0; /* Enforce zero margin */
    padding: 0;
    transition: background-color 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                color 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
    transition: background-color 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                color 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Ensure reveals and loaders maintain their precision timing while still participating in theme shifts */
.reveal {
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 1s cubic-bezier(0.16, 1, 0.3, 1), 
                background-color 0.8s ease, color 0.8s ease, border-color 0.8s ease;
}

.loader {
    transition: opacity 1s ease-in-out, background-color 0.8s ease;
}

.loading-bar {
    transition: width 0.1s linear, background-color 0.8s ease, box-shadow 0.8s ease;
}

.nav-link div {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.8s ease;
}

/* --- Loader Architecture --- */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 3000;
    overflow: hidden;
}

.loader.hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease-in-out;
}

.hewwo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hewwo h2 {
    font-family: var(--font-heading);
    font-size: 5rem;
    line-height: 0.9;
    letter-spacing: 0.05em;
    color: var(--text);
    margin-bottom: 0.5rem;
    width: 100%;
    text-align: center;
}

.hewwo h3 {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    color: var(--accent);
    opacity: 0.8;
}

.counter {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    margin-top: 3rem;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 0.2em;
}

.loading-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    box-shadow: 0 0 20px var(--accent);
    transition: width 0.1s linear;
}

/* --- Navigation --- */
/* --- Navigation Logic --- */
.navbar {
    padding: 2.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: var(--navbar-glass);
    backdrop-filter: blur(20px);
    padding: 1.5rem 5%;
    border-color: var(--border);
}

.nav-brand {
    display: flex;
    flex-direction: column;
}

.nav-brand h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    text-transform: uppercase;
    color: var(--text);
    line-height: 1;
}

.nav-brand span {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--accent);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-top: 0.5rem;
}

.nav-links {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    text-transform: uppercase;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    height: 1.2rem;
    display: flex;
    flex-direction: column;
}

.nav-link div {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover div {
    transform: translateY(-100%);
}

@keyframes jet-trail {
    0% { transform: translateX(-100%) skewX(-45deg); opacity: 0; }
    50% { opacity: 0.5; }
    100% { transform: translateX(200%) skewX(-45deg); opacity: 0; }
}

.jet-btn {
    position: relative;
    overflow: hidden !important;
}

/* Glint deactivated */

/* --- Aviation Core Animations --- */
@keyframes airstream {
    0% { transform: translateY(-100vh) translateX(0); opacity: 0; }
    50% { opacity: 0.1; }
    100% { transform: translateY(100vh) translateX(200px); opacity: 0; }
}

@keyframes hud-scan {
    0% { transform: scaleX(0); opacity: 1; }
    100% { transform: scaleX(1); opacity: 0; }
}

@keyframes beacon-sequence {
    0%, 25%, 75%, 100% { color: inherit; text-shadow: none; }
    5%, 20% { color: #f87171; text-shadow: 0 0 15px #ef4444, 0 0 30px #ef4444; }
    39%, 45%, 47%, 53% { color: inherit; text-shadow: none; }
    42%, 50% { color: #ffffff; text-shadow: 0 0 15px #ffffff, 0 0 30px #ffffff; }
}

.beacon-dot {
    display: inline-block;
    animation: beacon-sequence 2s infinite;
}

/* --- Gaming Identity Protocol --- */
@keyframes rarity-cycle {
    0%, 30% { color: #ffffff; text-shadow: none; } /* Common */
    40%, 45% { color: #3b82f6; text-shadow: 0 0 15px #3b82f6, 0 0 30px #2563eb; } /* Rare */
    55%, 60% { color: #a855f7; text-shadow: 0 0 15px #a855f7, 0 0 30px #9333ea; } /* Epic */
    70%, 100% { color: #f59e0b; text-shadow: 0 0 15px #f59e0b, 0 0 30px #d97706; } /* Legendary */
}

@keyframes xp-drift {
    0% { transform: translateY(-50%) translateX(0); opacity: 0; }
    2% { opacity: 1; }
    10% { opacity: 1; }
    12.5% { transform: translateY(-50%) translateX(40px); opacity: 0; }
    12.6%, 100% { opacity: 0; transform: translateY(-50%) translateX(0); }
}

.rarity-dot {
    display: inline-block;
    animation: rarity-cycle 6s infinite;
}

.gamer-layer {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.xp-container {
    position: absolute;
    left: 100%;
    top: 50%;
    margin-left: 2.5rem; /* Increased margin for better separation */
    pointer-events: none;
}

.xp-float {
    position: absolute;
    top: 0;
    left: 0;
    transform: translateY(-50%);
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: #4ade80;
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.5);
    white-space: nowrap;
    opacity: 0;
    animation: xp-drift 16s infinite linear;
    animation-delay: var(--delay);
}

/* --- Founder Architectural Protocol --- */
@keyframes blueprint-expand {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes draw-path {
    0% { transform: scaleX(0); opacity: 0; }
    100% { transform: scaleX(1); opacity: 0.8; }
}

@keyframes founder-status-pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

.founder-blueprint {
    position: relative;
    display: inline-block;
    padding: 2.5rem 4rem;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
}

.blueprint-bracket-tl, .blueprint-bracket-tr, .blueprint-bracket-bl, .blueprint-bracket-br {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.5s ease;
}

.blueprint-bracket-tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.blueprint-bracket-tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.blueprint-bracket-bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.blueprint-bracket-br { bottom: 0; right: 0; border-left: 0; border-top: 0; }

.founder-main {
    position: relative;
    z-index: 2;
}

.founder-underline {
    height: 1px;
    background: #ffffff !important;
    margin-top: 0.5rem;
    transform-origin: left;
    transform: scaleX(0); /* Controlled by JS */
}

.founder-meta {
    position: absolute;
    top: 105%;
    right: 0;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.4em;
    color: #ffffff !important;
    opacity: 0.6;
}

.founder-dot {
    color: #ffffff !important;
    animation: founder-status-pulse 2s infinite ease-in-out;
}

.hero {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
}

/* Slipstream Background */
.slipstream {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.stream-line {
    position: absolute;
    width: 1px;
    height: 15vh;
    background: linear-gradient(to bottom, transparent, var(--accent), transparent);
    opacity: 0;
    animation: airstream 3s linear infinite;
}

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

/* HUD Decorative Elements */
.hud-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 1px solid var(--accent);
    opacity: 0.2;
}

.hud-tl { top: -20px; left: -20px; border-right: 0; border-bottom: 0; }
.hud-tr { top: -20px; right: -20px; border-left: 0; border-bottom: 0; }
.hud-bl { bottom: -20px; left: -20px; border-right: 0; border-top: 0; }
.hud-br { bottom: -20px; right: -20px; border-left: 0; border-top: 0; }

.pilot-line h1 {
    color: var(--accent);
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.hud-crosshair {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--accent);
    opacity: 0.1;
    transform: scaleX(0);
    transform-origin: left;
}

.reveal.active .hud-crosshair {
    animation: hud-scan 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.8s;
}

@keyframes jet-takeoff {
    0% { transform: translateY(0) scale(1); opacity: 0; }
    20% { opacity: 1; }
    80% { transform: translateY(-20px) scale(1.1); opacity: 1; }
    100% { transform: translateY(-500px) scale(3); opacity: 0; }
}

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

.jet-animation {
    width: 120px;
    height: 120px;
    margin-bottom: 2rem;
    color: #ffffff !important;
    animation: engine-glow 1s infinite ease-in-out;
    position: relative;
}

.jet-animation svg, .jet-animation path {
    width: 100%;
    height: 100%;
    fill: #ffffff !important;
}

[data-theme="light"] .jet-animation, 
[data-theme="light"] .jet-animation svg, 
[data-theme="light"] .jet-animation path {
    color: var(--accent) !important;
    fill: var(--accent) !important;
}

.jet-animation.takeoff {
    animation: jet-takeoff 0.8s cubic-bezier(0.6, 0, 0.4, 1) forwards;
}

@keyframes reveal-jet {
    0% { left: -50px; opacity: 0; transform: translateY(0) rotate(15deg); }
    50% { opacity: 1; }
    100% { left: 110%; opacity: 0; transform: translateY(-50px) rotate(-15deg); }
}

@keyframes glitch-text {
    0% { text-shadow: 2px 0 red, -2px 0 blue; transform: translate(0); }
    20% { text-shadow: -2px 0 red, 2px 0 blue; transform: translate(-1px, 1px); }
    40% { text-shadow: 2px 0 var(--accent), -2px 0 red; transform: translate(1px, -1px); }
    100% { text-shadow: none; transform: translate(0); }
}

.hero-main-text {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.hero-line {
    position: relative;
    display: inline-block;
}

.hero-line h1 {
    font-size: 8vw;
    margin-bottom: 0 !important;
}

.pilot-line h1 { color: var(--accent); }
.gamer-line h1 { position: relative; }

/* Pilot Flair: Jet Flyover */
.aviation-flair {
    position: absolute;
    top: 50%;
    left: 0;
    width: 30px;
    height: 30px;
    color: var(--accent);
    pointer-events: none;
    z-index: 10;
    opacity: 0;
}

.reveal.active .aviation-flair {
    animation: reveal-jet 2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.5s;
}

/* Gamer Flair: Glitch */
.reveal.active.gamer-line h1 {
    animation: glitch-text 0.5s step-end 2;
    animation-delay: 0.2s;
}

.gaming-flair {
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    opacity: 0.5;
    transition: width 1s ease;
}

.reveal.active.gamer-line .gaming-flair {
    width: 100%;
}

.jet-btn {
    position: relative;
    overflow: hidden !important;
}

/* Glint deactivated */

.radar-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    position: relative;
    display: inline-block;
}

.radar-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border: 1px solid var(--accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: radar-pulse 2s infinite;
}

/* --- Mobile Navigation --- */
.menu-btn {
    display: none;
    flex-direction: column;
    gap: 7px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 2100;
    transition: var(--transition);
}

.menu-btn:hover span {
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

.menu-btn span {
    display: block;
    width: 25px;
    height: 1.5px;
    background: var(--text);
    transition: var(--transition);
    transform-origin: center;
}

.menu-btn.active span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
    background: var(--accent);
}

.menu-btn.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(10px);
}

.menu-btn.active span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
    background: var(--accent);
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(5, 10, 20, 0.98);
    backdrop-filter: blur(20px);
    z-index: 2050;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    opacity: 0;
    pointer-events: none;
    transition: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav.active {
    opacity: 1;
    pointer-events: all;
}

/* HUD Decorative Elements */
.mobile-nav::before, .mobile-nav::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border: 1px solid var(--accent);
    opacity: 0.3;
}

.mobile-nav::before { top: 40px; left: 40px; border-right: 0; border-bottom: 0; }
.mobile-nav::after { bottom: 40px; right: 40px; border-left: 0; border-top: 0; }

.mobile-nav .nav-link {
    font-size: 15vw;
    height: auto;
    color: var(--text);
    font-family: var(--font-heading);
    text-decoration: none;
    line-height: 1;
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: calc(var(--delay, 0) * 1s);
}

.mobile-nav.active .nav-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav .nav-link span {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent);
    letter-spacing: 0.3em;
    margin-bottom: 0.5rem;
    text-align: center;
}

/* --- Sequential Identity Reveal --- */
.hero-reveal-container {
    height: 1200vh; /* Extended tactical depth for smoother scrolling */
    position: relative;
    background: var(--bg);
    margin: 0;
    padding: 0;
}

.hero-reveal-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    margin: 0;
}

.hero-reveal-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(10px) brightness(0.4);
    opacity: 0;
    z-index: 0;
    transform: scale(1.1); /* Subtle overscan for blur edges */
}

.identity-stack {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

.hero-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    text-align: center;
    opacity: 0;
    transform: translateY(-50%) scale(1);
    transition: transform 0.1s linear, opacity 0.2s ease-out;
    will-change: transform, opacity;
}

.hero-line h1 {
    font-family: var(--font-heading);
    font-size: 8vw;
    margin: 0;
    white-space: nowrap;
    line-height: 0.9;
    text-shadow: 0 0 40px rgba(0,0,0,0.5);
}

.pilot-reveal h1 { color: var(--accent); }
.gamer-reveal h1 { 
    position: relative; 
    color: #ffffff !important; 
}
.founder-reveal h1 { 
    color: #ffffff !important; 
    letter-spacing: 0.1em;
    font-size: 7vw; /* Slightly more compact for professional look */
}

.hero-sub-reveal {
    position: absolute;
    bottom: 10vh;
    left: 5%;
    right: 5%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 20;
}

.hero-sub-reveal .hero-desc {
    font-size: 1.1vw;
    line-height: 1.4;
    color: var(--text-muted);
    max-width: 450px;
}

.reveal-status-node {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: var(--accent);
}

/* --- Hero Section --- */
/* Removed obsolete hero styles */

.hero-main-text h1 {
    font-family: var(--font-heading);
    font-size: 8vw;
    line-height: 0.9;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.hero-main-text span {
    -webkit-text-stroke: 1px var(--text);
    color: transparent;
}

.hero-sub {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-end;
}

.hero-desc {
    font-size: 1.2vw;
    line-height: 1.4;
    color: var(--text-muted);
    max-width: 500px;
}

.hero-accent {
    font-family: var(--font-heading);
    font-size: 3vw;
    text-transform: uppercase;
}

/* --- Buttons --- */
.btn-outline {
    border: 1px solid var(--border);
    padding: 1rem 2.5rem;
    background: transparent;
    color: var(--text);
    font-family: var(--font-heading);
    font-size: 1.2vw;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.btn-outline:hover {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
    /* transition removed */
}

/* --- Section Styling --- */
section {
    padding: 10rem 5%;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 6vw;
    text-transform: uppercase;
    margin-bottom: 4rem;
    position: relative;
}

.section-title span {
    -webkit-text-stroke: 1px var(--text);
    color: transparent;
    text-shadow: 0 0 30px rgba(59, 130, 246, 0.2);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent);
    box-shadow: 0 0 15px var(--accent);
}

/* --- Project Grid (Example 2 Style) --- */
.project-showcase {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
}

.project-item {
    position: relative;
    border: 1px solid var(--border);
    padding: 1rem;
    transition: var(--transition);
}

.project-item:hover {
    transform: translateY(-1rem);
    border-color: var(--accent);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(59, 130, 246, 0.1);
}

.pj-img {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #1a1a1a;
}

.pj-img img, .pj-img video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

.project-item:hover .pj-img img {
    transform: scale(1.1);
}

.qr-wrapper {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    padding: 2rem;
}

.qr-wrapper img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.artifact-visual {
    margin-bottom: 2rem;
    max-width: 400px;
    border: 1px solid var(--border);
    padding: 1rem;
    background: var(--surface);
}

.artifact-visual.qr {
    background: #ffffff;
}

.artifact-visual img, .artifact-visual video {
    width: 100%;
    height: auto;
    display: block;
}

.pj-content {
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.pj-title {
    font-family: var(--font-heading);
    font-size: 3vw;
    text-transform: uppercase;
}

.pj-type {
    font-family: var(--font-condensed);
    font-size: 1.2vw;
    color: var(--text-muted);
}

/* --- Footer --- */
.footer {
    padding: 0 5% 5rem 5%;
}

.footer-main h3 {
    font-family: var(--font-heading);
    font-size: 6.5vw;
    text-transform: uppercase;
}

/* --- Advanced Admin Portal --- */
.admin-container {
    display: flex;
    min-height: 100vh;
    background: var(--bg);
}

.sidebar {
    width: 280px;
    background: var(--surface);
    border-right: 1px solid var(--border);
    height: 100vh;
    position: fixed;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    z-index: 1000;
}

.sidebar-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 4rem;
    text-decoration: none;
}

.admin-nav-item {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    text-transform: uppercase;
    color: var(--text-muted);
    text-decoration: none;
    padding: 1rem 0;
    letter-spacing: 0.05em;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-nav-item:hover, .admin-nav-item.active {
    color: var(--text);
    padding-left: 0.5rem;
}

.admin-main {
    margin-left: 280px;
    padding: 6rem 5%;
    flex: 1;
}

.admin-header {
    margin-bottom: 5rem;
}

.admin-header h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    text-transform: uppercase;
    color: var(--text);
}

.admin-card {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 3rem;
    border-radius: 4px;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.admin-card:hover {
    border-color: var(--accent);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    text-align: left;
    padding: 1rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

.admin-table td {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

/* Control Helpers */
.badge {
    padding: 0.25rem 0.75rem;
    background: var(--surface-hover);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    text-transform: uppercase;
    border: 1px solid var(--border);
}

.badge:not(.inactive) {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}

.action-btn {
    background: none;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.5rem 1rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
}

.action-btn:hover {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
    /* transition removed */
}

/* Global Form Styling */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.form-group label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

input[type="text"],
input[type="password"],
input[type="number"],
input[type="url"],
textarea,
select {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    padding: 1.2rem;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
    border-radius: 4px;
}

input:focus,
textarea:focus,
select:focus {
    background: rgba(59, 130, 246, 0.05);
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent), 0 0 20px rgba(59, 130, 246, 0.1);
}

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

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%233b82f6'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 3rem;
}

.delete-btn {
    border-color: #ef4444;
    color: #ef4444;
}

.delete-btn:hover {
    background: #ef4444;
    color: white;
}

/* --- Command Console Footer --- */
.footer-lower {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-top: 13rem;
    border-top: 1px solid var(--border);
    padding-top: 5rem;
    position: relative;
    padding-bottom: 2rem;
}

.footer-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.meta-block {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.meta-header {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--accent);
    letter-spacing: 0.2em;
    opacity: 0.8;
}

.meta-content {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.status-pulse-mini {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
    animation: pulse 2s infinite;
}

.footer-credits {
    margin-top: 0;
}

.copyright-wrap {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.copy-symbol {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--accent);
    line-height: 1;
}

.copy-main {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.2rem;
}

.copy-sub {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
    opacity: 0.8;
}

.footer-signature-container {
    margin-top: 0;
    pointer-events: none;
    user-select: none;
}

.footer-sign {
    font-family: var(--font-heading);
    font-size: 12vw;
    line-height: 0.8;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: -2vw; /* Tuck it into the bottom */
}

.footer-sign span {
    -webkit-text-stroke: 1px var(--text);
    color: transparent;
}

/* Reveals */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s, transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: calc(var(--delay, 0) * 1s);
}

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

/* --- Cockpit Command Center (Footer) --- */
.contact-cockpit {
    display: grid;
    grid-template-columns: 500px 1fr;
    gap: 3rem;
    margin-top: 6rem;
    align-items: stretch;
}

/* Base Transponder Hardware */
/* --- Classic Avionics Transponder --- */
.comms-node.transponder-mini {
    background: #5c7b94; /* Classic Aviation Slate Blue */
    background-image: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    border: 2px solid #4a6378;
    border-radius: 4px;
    padding: 1.5rem;
    position: relative;
    box-shadow: 
        inset 0 1px 1px rgba(255,255,255,0.3),
        0 10px 30px rgba(0,0,0,0.5),
        0 0 0 10px #5c7b94;
    margin: 20px;
    display: grid;
    grid-template-columns: 80px 140px 1fr;
    gap: 1rem;
    width: 100%;
}

/* Mounting Bolts */
.xpdr-bolt {
    position: absolute;
    width: 24px;
    height: 24px;
    background: #4a6378;
    border-radius: 50%;
    border: 1px solid #3d5162;
    box-shadow: inset 0 2px 4px rgba(255,255,255,0.2), 0 2px 4px rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.xpdr-bolt::after {
    content: '';
    width: 16px;
    height: 2px;
    background: #3d5162;
    transform: rotate(45deg);
}

.bolt-tl { top: -8px; left: -8px; }
.bolt-bl { bottom: -8px; left: -8px; }
.bolt-tr { top: -8px; right: -8px; }
.bolt-br { bottom: -8px; right: -8px; }

/* Left Rotary Column */
.xpdr-left-knobs {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.xpdr-knob-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.rotary-knob {
    width: 32px;
    height: 32px;
    background: #e2e8f0;
    border-radius: 50%;
    position: relative;
    border: 1px solid #94a3b8;
    box-shadow: 0 4px 0 #94a3b8, 0 6px 10px rgba(0,0,0,0.3);
}

.rotary-knob::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 50%;
    width: 2px;
    height: 10px;
    background: #64748b;
    transform: translateX(-50%);
}

.xpdr-knob-label {
    font-family: var(--font-mono);
    font-size: 0.5rem;
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
}

/* Keypad Grid */
.xpdr-keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    padding: 0.5rem;
}

.xpdr-btn {
    width: 36px;
    height: 36px;
    background: #111;
    border-radius: 50%;
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #222;
    box-shadow: 0 4px 0 #000;
    cursor: pointer;
}

/* Display & Right Control */
.xpdr-right-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.xpdr-screen {
    background: #2a1810; /* Dark Amber Base */
    border: 3px solid #3d5162;
    border-radius: 4px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 20px #000;
}

.xpdr-squawk {
    font-family: 'Courier New', Courier, monospace;
    font-size: 2.8rem;
    color: #fb923c; /* Amber Glow */
    font-weight: bold;
    letter-spacing: 0.1em;
    text-shadow: 0 0 10px rgba(251, 146, 60, 0.5);
}

.xpdr-bottom-controls {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.ident-btn-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.ident-btn {
    width: 24px;
    height: 24px;
    background: #111;
    border: 2px solid #3d5162;
    border-radius: 50%;
    padding: 0;
}

.xpdr-btn:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 #000;
}

/* --- Right Side Comms Deck --- */
.comms-deck {
    background: var(--navbar-glass);
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(40px);
}

.comms-deck::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        radial-gradient(circle at 2px 2px, var(--border) 1px, transparent 0);
    background-size: 40px 40px;
    opacity: 0.15;
    pointer-events: none;
}

/* removed scanline */

.deck-header {
    border-bottom: 1px solid var(--border);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.deck-status {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--accent);
    letter-spacing: 0.3em;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.deck-body h4 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.deck-body p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 400px;
    margin-bottom: 2.5rem;
}

@media (max-width: 900px) {
    .contact-cockpit { 
        grid-template-columns: 1fr; 
        gap: 2rem;
    }
    .comms-node.transponder-mini { 
        order: 2; 
        display: flex; /* Switch to flex for easier ordering */
        flex-direction: column;
        width: auto;
        margin: 10px;
        padding: 2rem 1rem;
        gap: 2rem;
    }
    .xpdr-right-stack { order: 1; } /* Display at top */
    .xpdr-keypad { order: 2; justify-content: center; gap: 0.8rem; }
    .xpdr-left-knobs { 
        order: 3; 
        flex-direction: row; 
        justify-content: center; 
        gap: 1.5rem; 
    }
    .comms-deck { order: 1; padding: 2rem; }
    .xpdr-squawk { font-size: 2.5rem; }
    .xpdr-screen { height: 60px; width: 100%; }
    .xpdr-bolt { display: none; }

    /* Global Adjustments */
    section { padding: 4rem 6% 6rem 6%; }
    
    .navbar { padding: 1rem 6%; border-bottom: 1px solid var(--border); background: rgba(5, 10, 20, 0.9); backdrop-filter: blur(20px); }
    .navbar.scrolled { padding: 0.8rem 6%; }
    
    .nav-links { display: none; }
    .menu-btn { display: flex; }

    .nav-brand h3 { font-size: 1.2rem; }
    .nav-brand span { font-size: 0.55rem; }

    /* HUD Loader Mobile */
    .hewwo h2 { font-size: 3rem; }
    .hewwo h3 { font-size: 0.65rem; letter-spacing: 0.2em; }
    .counter { font-size: 1rem; margin-top: 2rem; }

    /* Hero Reveal Mobile Optimization */
    .hero-reveal-container { 
        height: 800vh !important; /* Increased depth for smooth mobile scroll */
    } 
    
    .hero-reveal-sticky {
        height: 100vh; /* Reverted to vh for better sticky stability on some mobile browsers */
        position: sticky;
        top: 0;
    }
    
    .hero-line h1 { font-size: 14vw !important; }
    .founder-reveal h1 { font-size: 12vw !important; }
    
    .hero-sub-reveal { 
        flex-direction: column; 
        align-items: flex-start; 
        gap: 2rem; 
        bottom: 5vh;
        left: 6%;
        right: 6%;
    }
    
    .hero-sub-reveal .hero-desc { 
        font-size: 0.95rem; 
        max-width: 100%; 
        line-height: 1.6;
    }

    .reveal-status-node { font-size: 0.55rem; }

    /* Identity Elements Scale */
    .xp-container { margin-left: 1.5rem; }
    .xp-float { font-size: 0.75rem; }
    .founder-blueprint { padding: 1.5rem 2rem; }
    .founder-meta { font-size: 0.55rem; }
    .blueprint-bracket-tl, .blueprint-bracket-tr, .blueprint-bracket-bl, .blueprint-bracket-br { width: 15px; height: 15px; }

    /* Global Adjustments */
    section { padding: 5rem 6% 7rem 6%; }

    .section-title { font-size: 2.8rem; margin-bottom: 2.5rem; letter-spacing: -0.01em; }
    .section-title span { -webkit-text-stroke: 0.5px var(--text); }
    .section-title::after { width: 30px; height: 2px; }

    /* Project Grid */
    .project-showcase { grid-template-columns: 1fr; gap: 2rem; }
    .project-item { padding: 0.8rem; }
    .pj-content { margin-top: 1.5rem; }
    .pj-title { font-size: 1.6rem; }
    .pj-type { font-size: 0.75rem; }
    .btn-outline { font-size: 0.85rem; padding: 0.8rem 1.4rem; }

    /* Minimalist Items */
    .artifact-visual { max-width: 100%; margin-bottom: 1.5rem; padding: 0.5rem; }
    h4[style*="font-size: 2.5rem"] { font-size: 1.8rem !important; line-height: 1.1; }
    div[style*="margin-bottom: 4rem"] { margin-bottom: 3rem !important; padding-bottom: 3rem !important; }

    /* Admin Portal Responsive (Tactical Stack) */
    .admin-container { flex-direction: column; }
    .sidebar { 
        width: 100%; 
        height: auto; 
        position: relative; 
        padding: 2rem 6%; 
        border-right: none; 
        border-bottom: 1px solid var(--border);
        background: var(--surface);
    }
    .sidebar-logo { margin-bottom: 1.5rem; font-size: 1.4rem; }
    .admin-nav { display: flex; overflow-x: auto; gap: 1.5rem; padding-bottom: 0.5rem; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .admin-nav::-webkit-scrollbar { display: none; }
    .admin-nav-item { white-space: nowrap; padding: 0.4rem 0; font-size: 0.9rem; flex-shrink: 0; }
    .admin-main { margin-left: 0; padding: 2.5rem 6%; }
    .admin-header h1 { font-size: 2.2rem; }
    .admin-header p { font-size: 1rem !important; }
    .admin-card { padding: 1.2rem; }
    
    .admin-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    
    /* Login Node Optimization */
    .reveal[style*="max-width: 500px"] { 
        padding: 1.5rem !important; 
        margin: 1rem;
        width: auto !important;
    }
    .reveal h1 { font-size: 2.2rem !important; margin-bottom: 2rem !important; }
    div[style*="margin-bottom: 4rem"] { margin-bottom: 2rem !important; }

    /* Footer Pulse */
    .footer-main h3 { font-size: 2.8rem; }
    .footer-lower { margin-top: 8rem; grid-template-columns: 1fr; gap: 3rem; }
    .footer-meta-grid { grid-column: span 1; grid-template-columns: 1fr; gap: 1.5rem; }
    .footer-signature-container { grid-column: span 1; margin-top: 2rem; }
    .footer-sign { font-size: 4.5rem; line-height: 1; width: 100%; }

    /* CSS Variable Overrides for spacing */
    .projects-section { padding-top: 4rem; padding-bottom: 4rem; }
}

@media (max-width: 480px) {
    .hero-main-text h1 { font-size: 2.5rem; }
    .footer-sign { font-size: 3.5rem; }
    .admin-header h1 { font-size: 2rem; }
    .section-title { font-size: 2.2rem; }
    .btn-outline { width: 100%; }
}

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

.mail-icon-node { 
    animation: mail-float 3s infinite ease-in-out; 
    display: inline-block;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 12px #10b981; }
    100% { transform: scale(0.95); opacity: 0.8; }
}
