/* =========================================
   VARIABLES & THEME
   ========================================= */
   :root {
    /* Colors - Neon Cyber Theme */
    --deep-navy: #0a101f;
    --navy-mid: #0d1b2a;
    --slate: #1e293b;
    --electric-blue: #00f0ff;
    --acid-cyan: #00ffcc;
    --accent-red: #ff3366;
    
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    
    --glass-bg: rgba(15, 23, 42, 0.45);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

    /* Typography */
    --font-sans: 'Inter', system-ui, sans-serif;
    --font-mono: 'Fira Code', monospace;
}

:root.matrix-mode {
    --electric-blue: #00ff00;
    --acid-cyan: #39ff14;
    --text-primary: #00ff00;
    --text-secondary: #00aa00;
    --navy-mid: #001100;
    --glass-bg: rgba(0, 20, 0, 0.65);
    background-color: #000;
}

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

body {
    background-color: var(--deep-navy);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Background Canvas */
#matrixCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    opacity: 0.15; /* Subtle */
    transition: opacity 0.5s ease;
}

:root.matrix-mode #matrixCanvas {
    opacity: 0.8;
}

/* Base UI Elements */
a {
    color: var(--electric-blue);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--acid-cyan);
    text-shadow: 0 0 8px var(--acid-cyan);
}

.site-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
}

.section-header {
    margin-bottom: 3rem;
    text-align: left;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--electric-blue);
    box-shadow: 0 0 10px var(--electric-blue);
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-top: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-sans);
}

.btn-primary {
    background: transparent;
    color: var(--electric-blue);
    border: 1px solid var(--electric-blue);
    box-shadow: inset 0 0 10px rgba(0, 240, 255, 0.2), 0 0 10px rgba(0, 240, 255, 0.2);
}

.btn-primary:hover {
    background: var(--electric-blue);
    color: var(--deep-navy);
    box-shadow: 0 0 20px var(--electric-blue);
}

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

.btn-outline:hover {
    border-color: var(--text-secondary);
    background: rgba(255,255,255,0.05);
}

/* =========================================
   HEADER & NAV
   ========================================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
    background: rgba(10, 16, 31, 0.9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-trigger {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.search-trigger:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--electric-blue);
    color: var(--text-primary);
}

.search-trigger kbd {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    padding-top: 80px; /* Offset for fixed header */
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-mono);
    color: #fff;
    letter-spacing: 1px;
}

.logo span {
    color: var(--electric-blue);
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--acid-cyan);
    transition: width 0.3s ease;
}

nav a:hover {
    color: #fff;
    text-shadow: none;
}

nav a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
}

.menu-toggle span {
    width: 22px;
    height: 2px;
    background: var(--electric-blue);
    box-shadow: 0 0 8px var(--electric-blue);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 60px 0;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.subtitle {
    color: var(--acid-cyan);
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.glitch {
    font-size: 4.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 20px;
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    opacity: 0.78;
    pointer-events: none;
}

.glitch::before {
    color: var(--electric-blue);
    transform: translate(2px, 0);
    clip-path: inset(0 0 58% 0);
    animation: heroGlitch 3.7s infinite steps(2, end);
}

.glitch::after {
    color: var(--accent-red);
    transform: translate(-2px, 0);
    clip-path: inset(42% 0 0 0);
    animation: heroGlitch 4.3s infinite reverse steps(2, end);
}

@keyframes heroGlitch {
    0% { transform: translate(0, 0); opacity: 0; }
    2%, 10% { transform: translate(2px, -1px); opacity: 0.8; }
    12% { transform: translate(-2px, 1px); opacity: 0.6; }
    14%, 100% { transform: translate(0, 0); opacity: 0; }
}

.hero-note {
    max-width: 640px;
    margin-bottom: 36px;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.hero-role {
    margin-bottom: 10px;
    color: #fff;
    font-size: 1.6rem;
    font-weight: 700;
}

.hero-stack {
    margin-bottom: 22px;
    color: var(--electric-blue);
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 500;
}

.cursor {
    display: inline-block;
    width: 10px;
    animation: blink 1s step-end infinite;
    color: var(--electric-blue);
}

@keyframes blink { 50% { opacity: 0; } }

.cta-buttons {
    display: flex;
    gap: 20px;
}

/* 3D CUBE */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 800px;
}

.scene {
    width: 200px;
    height: 200px;
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCube 45s infinite linear;
}

.cube:hover {
    animation-duration: 20s;
}

@keyframes rotateCube {
    0% { transform: rotateX(-20deg) rotateY(0deg); }
    100% { transform: rotateX(-20deg) rotateY(360deg); }
}

.cube__face {
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(10, 20, 40, 0.7);
    border: 2px solid var(--electric-blue);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 4rem;
    color: var(--acid-cyan);
    box-shadow: inset 0 0 30px rgba(0, 240, 255, 0.2);
    font-family: var(--font-mono);
    font-weight: bold;
    text-shadow: 0 0 10px var(--electric-blue);
    backdrop-filter: blur(5px);
}

.cube__face--front  { transform: rotateY(  0deg) translateZ(100px); }
.cube__face--right  { transform: rotateY( 90deg) translateZ(100px); }
.cube__face--back   { transform: rotateY(180deg) translateZ(100px); }
.cube__face--left   { transform: rotateY(-90deg) translateZ(100px); }
.cube__face--top    { transform: rotateX( 90deg) translateZ(100px); }
.cube__face--bottom { transform: rotateX(-90deg) translateZ(100px); }


/* =========================================
   ABOUT SECTION
   ========================================= */
.about-section {
    padding: 80px 0 20px;
}

.about-card {
    padding: 40px;
    text-align: left;
}

.about-card h2 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 20px;
    color: var(--electric-blue);
}

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

.about-text strong {
    color: #fff;
}

.expertise-section {
    padding: 60px 0 20px;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.expertise-card {
    padding: 28px;
}

.expertise-badge {
    display: inline-flex;
    align-items: center;
    margin-bottom: 14px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--acid-cyan);
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.25);
}

.expertise-card h3 {
    margin-bottom: 14px;
    font-size: 1.35rem;
}

.expertise-card p {
    color: var(--text-secondary);
    line-height: 1.75;
}

.expertise-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.expertise-pills span {
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    font-size: 0.88rem;
}

/* =========================================
   SKILLS SECTION
   ========================================= */
.skills-section {
    padding: 100px 0;
}

.skills-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skill-level {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 15px;
    border-bottom: 1px dashed var(--slate);
    padding-bottom: 5px;
}

.skill-item {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.skill-item:hover {
    transform: translateX(10px);
}

.skill-name {
    display: flex;
    justify-content: space-between;
    font-weight: 500;
    margin-bottom: 8px;
    color: #fff;
}

.skill-name i {
    color: var(--electric-blue);
}

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

.skill-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 9px;
    border: 1px solid rgba(0, 240, 255, 0.26);
    border-radius: 6px;
    background: rgba(0, 240, 255, 0.06);
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.78rem;
}

.skill-tags.overclock {
    animation: overclockShake 0.12s linear infinite;
}

.skill-tags.overclock span {
    border-color: var(--accent-red);
    color: #ffb000;
    box-shadow: 0 0 14px rgba(255, 51, 102, 0.45);
}

@keyframes overclockShake {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(2px); }
}

/* Info Panel */
.skill-info-panel {
    padding: 30px;
    min-height: 300px;
    position: sticky;
    top: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-content {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.info-content.active {
    display: block;
}

.info-icon {
    font-size: 3rem;
    color: var(--acid-cyan);
    margin-bottom: 20px;
}

.info-content h4 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 15px;
}

.info-content ul {
    list-style: none;
    margin-top: 15px;
}

.info-content ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.info-content ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--electric-blue);
    font-family: var(--font-mono);
}

.stat-highlight {
    color: var(--acid-cyan);
    font-weight: 600;
}

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

/* =========================================
   PROJECTS SECTION
   ========================================= */
.projects-section {
    padding: 100px 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.project-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-family: var(--font-mono);
    font-weight: 600;
}

.project-badge.performance {
    background: rgba(0, 255, 204, 0.1);
    color: var(--acid-cyan);
    border: 1px solid var(--acid-cyan);
}

.project-badge.data {
    background: rgba(0, 240, 255, 0.1);
    color: var(--electric-blue);
    border: 1px solid var(--electric-blue);
}

.project-badge.automation {
    background: rgba(255, 51, 102, 0.1);
    color: var(--accent-red);
    border: 1px solid var(--accent-red);
}

.project-badge.desktop,
.project-badge.cli {
    background: rgba(148, 163, 184, 0.1);
    color: var(--text-secondary);
    border: 1px solid var(--slate);
}

.project-content h3 {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 10px;
    padding-right: 80px; /* Space for badge */
}

.tech-stack {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--electric-blue);
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-stack span::before {
    content: '[';
    color: var(--slate);
}
.tech-stack span::after {
    content: ']';
    color: var(--slate);
}

.project-card .description {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.75;
}

.highlights {
    list-style: none;
    border-left: 2px solid var(--slate);
    padding-left: 15px;
}

.highlights li {
    font-size: 0.95rem;
    color: #dedede;
    margin-bottom: 5px;
}

/* =========================================
   TERMINAL SECTION
   ========================================= */
.terminal-section {
    padding: 80px 0;
}

.terminal-window {
    background: #000;
    border-radius: 10px;
    border: 1px solid #333;
    overflow: hidden;
    font-family: var(--font-mono);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    max-width: 800px;
    margin: 0 auto;
}

.terminal-header {
    background: #1a1a1a;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    position: relative;
    border-bottom: 1px solid #333;
}

.mac-btns {
    display: flex;
    gap: 8px;
}

.mac-btns span {
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.mac-btns span:nth-child(1) { background: #ff5f56; }
.mac-btns span:nth-child(2) { background: #ffbd2e; }
.mac-btns span:nth-child(3) { background: #27c93f; }

.terminal-title {
    color: #888;
    font-size: 0.85rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.terminal-body {
    padding: 20px;
    min-height: 200px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #ddd;
}

.terminal-body .user { color: #27c93f; font-weight: bold; }
.terminal-body .dir { color: #5aa1df; font-weight: bold; }
.terminal-body .prompt { margin-bottom: 10px; }

.term-output {
    color: #a8a8a8;
    margin-bottom: 15px;
    white-space: pre-wrap;
}

.run-btn {
    width: 100%;
    border-radius: 0;
    border: none;
    border-top: 1px solid #333;
    background: #111;
}

.run-btn:hover {
    background: #1a1a1a;
}

/* =========================================
   CONTACT & FOOTER
   ========================================= */
.contact-section {
    padding: 100px 0;
}

.contact-card {
    text-align: center;
    padding: 60px 40px;
}

.contact-card h2 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 20px;
}

.contact-card p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.social-icon {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #fff;
    padding: 10px 20px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    border: 1px solid transparent;
}

.social-icon:hover {
    background: rgba(0, 240, 255, 0.1);
    border-color: var(--electric-blue);
}

.social-icon i {
    font-size: 1.5rem;
    color: var(--acid-cyan);
}

.contact-cta {
    margin-top: 34px;
}

footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--slate);
    margin-top: 50px;
}

.footer-content p {
    color: var(--text-secondary);
}

.hint {
    margin-top: 10px;
    font-size: 0.8rem;
    color: #555;
}

.hint code {
    background: #222;
    padding: 2px 6px;
    border-radius: 4px;
    color: #888;
}

/* =========================================
   SEARCH MODAL EASTER EGG
   ========================================= */
.search-modal {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 15vh;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.search-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.search-box {
    width: 600px;
    max-width: 90%;
    background: var(--navy-mid);
    border: 1px solid var(--electric-blue);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 40px rgba(0,240,255,0.2);
    position: relative;
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    font-family: var(--font-sans);
    outline: none;
}

.search-icon {
    color: var(--electric-blue);
    font-size: 1.2rem;
}

.esc-hint {
    position: absolute;
    right: 20px;
    font-family: var(--font-mono);
    color: #666;
    font-size: 0.8rem;
    border: 1px solid #444;
    padding: 2px 6px;
    border-radius: 4px;
}

.search-results {
    position: absolute;
    top: calc(15vh + 80px);
    width: 600px;
    max-width: 90%;
    background: var(--navy-mid);
    border: 1px solid var(--slate);
    border-radius: 8px;
    overflow: hidden;
    display: none;
}
.search-results.active { display: block; }
.search-result-item {
    padding: 15px 20px;
    border-bottom: 1px solid var(--slate);
    cursor: pointer;
    color: #ccc;
}
.search-result-item:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
}


/* =========================================
   EASTER EGG ANIMATIONS
   ========================================= */
@keyframes glitch-anim {
    0% { transform: translate(0) }
    20% { transform: translate(-2px, 2px) }
    40% { transform: translate(-2px, -2px) }
    60% { transform: translate(2px, 2px) }
    80% { transform: translate(2px, -2px) }
    100% { transform: translate(0) }
}
.glitching {
    animation: glitch-anim 0.2s infinite;
    filter: invert(1) hue-rotate(180deg);
}
.compiling {
    animation: blink 0.2s infinite;
    color: var(--electric-blue);
}

.toast {
    position: fixed;
    right: 22px;
    bottom: 22px;
    max-width: min(420px, calc(100vw - 44px));
    background: rgba(0, 0, 0, 0.88);
    color: var(--electric-blue);
    border: 1px solid var(--electric-blue);
    border-radius: 10px;
    z-index: 10000;
    padding: 12px 18px;
    font-family: var(--font-mono);
    box-shadow: 0 0 24px rgba(0, 240, 255, 0.25);
    animation: fadeIn 0.25s ease;
}

.danger-prompt {
    position: fixed;
    left: 50%;
    top: 92px;
    transform: translateX(-50%);
    z-index: 10002;
    width: min(560px, calc(100vw - 32px));
    padding: 16px 18px;
    border: 1px solid var(--accent-red);
    border-radius: 8px;
    background: rgba(10, 16, 31, 0.96);
    color: var(--text-primary);
    box-shadow: 0 0 28px rgba(255, 51, 102, 0.35);
    font-family: var(--font-mono);
    animation: fadeIn 0.2s ease;
}

.danger-prompt strong,
.danger-prompt span {
    display: block;
}

.danger-prompt strong {
    color: var(--accent-red);
    margin-bottom: 6px;
}

.hex-confetti {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 10001;
    overflow: hidden;
}

.hex-confetti span,
.confetti-label {
    position: absolute;
    color: var(--acid-cyan);
    font-family: var(--font-mono);
    text-shadow: 0 0 10px var(--electric-blue);
}

.hex-confetti span {
    top: -40px;
    font-size: 0.9rem;
    animation: hexFall 2.4s linear forwards;
}

.confetti-label {
    left: 50%;
    top: 42%;
    transform: translate(-50%, -50%);
    padding: 14px 18px;
    border: 1px solid var(--electric-blue);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.82);
}

@keyframes hexFall {
    to { transform: translateY(calc(100vh + 80px)) rotate(16deg); opacity: 0; }
}

.skill-item.hold-armed .skill-tags span {
    border-color: var(--acid-cyan);
    box-shadow: 0 0 14px rgba(0, 255, 204, 0.35);
}

:root.qt-inspector * {
    outline: 1px dashed rgba(0, 255, 204, 0.5);
    outline-offset: -2px;
}

:root.qt-inspector .glass-card::after,
:root.qt-inspector header::after,
:root.qt-inspector footer::after {
    content: attr(class);
    position: absolute;
    top: 4px;
    left: 6px;
    padding: 2px 5px;
    background: #001100;
    color: var(--acid-cyan);
    border: 1px solid var(--acid-cyan);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    z-index: 20;
}

:root.qt-inspector .glass-card,
:root.qt-inspector header,
:root.qt-inspector footer {
    position: relative;
}

:root.hacker-mode,
:root.soft-light-mode {
    --electric-blue: #39ff14;
    --acid-cyan: #00ff66;
    --text-primary: #9cff9c;
    --text-secondary: #58b858;
    --deep-navy: #000;
    --navy-mid: #001100;
    --glass-bg: rgba(0, 18, 0, 0.72);
    --glass-border: rgba(57, 255, 20, 0.18);
}

.log-runner::before {
    content: "tail -f processor.log\A[00:00.001] parse batch: ok\A[00:00.002] normalize tokens: ok\A[00:00.003] throughput: stable\A[00:00.004] allocations: reduced";
    position: absolute;
    inset: 0;
    padding: 18px;
    color: rgba(0, 255, 204, 0.18);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    line-height: 1.55;
    white-space: pre;
    transform: translateY(100%);
    transition: transform 0.45s ease;
    pointer-events: none;
}

.log-runner:hover::before {
    transform: translateY(0);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 900px) {
    .hero-section {
        flex-direction: column-reverse;
        text-align: center;
        padding: 40px 0;
    }
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .skills-container {
        grid-template-columns: 1fr;
    }
    .expertise-grid {
        grid-template-columns: 1fr;
    }
    .skill-info-panel {
        position: relative;
        top: 0;
        margin-top: 30px;
        min-height: 250px;
    }
}
@media (max-width: 600px) {
    .glitch { font-size: 3rem; }
    .menu-toggle { display: flex; }
    header { position: relative; }
    nav {
        position: absolute;
        top: 82px;
        right: 0;
        width: min(280px, 92vw);
        display: none;
        flex-direction: column;
        gap: 16px;
        padding: 20px;
        border: 1px solid var(--glass-border);
        border-radius: 14px;
        background: rgba(10, 16, 31, 0.96);
        box-shadow: var(--glass-shadow);
        z-index: 50;
    }
    nav.open { display: flex; }
    .hero-visual { display: none; } /* Hide cube on very small screens to focus on text */
    #matrixCanvas { opacity: 0.05; }
    .cta-buttons { flex-direction: column; width: 100%; }
    .btn { width: 100%; }
    .projects-grid { grid-template-columns: 1fr; }
    .skills-container { grid-template-columns: 1fr; }
    .about-card { padding: 25px; }
    .expertise-card { padding: 24px 20px; }
}
