/* ═══════════════════════════════════════════════════
   AN7H0NY1 PORTFOLIO — style.css
   ═══════════════════════════════════════════════════ */

:root {
    --green: #22C55E;
    --green-dim: #15803d;
    --green-dark: #052e16;
    --green-glow: rgba(34, 197, 94, 0.6);
    --green-faint: rgba(34, 197, 94, 0.06);
    --bg: #000000;
    --bg2: #030a03;
    --cyan: #22d3ee;
    --yellow: #facc15;
    --red: #ef4444;
    --white: #e2e8f0;
    --dim: #4a7c59;
}

/* ─── RESET & BASE ─── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--green);
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 15px;
    overflow-x: hidden;
    max-width: 100vw;
    cursor: none;
}

/* ─── CUSTOM CURSOR ─── */
#cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 12px;
    height: 12px;
    background: var(--green);
    border-radius: 0;
    pointer-events: none;
    z-index: 99999;
    /* Eliminamos el translate estático y la transición de transform para que sea instantáneo */
    box-shadow: 0 0 10px var(--green-glow), 0 0 20px var(--green-glow);
    transition: width 0.2s, height 0.2s;
    will-change: transform;
}

#cursor-trail {
    position: fixed;
    top: 0;
    left: 0;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(34, 197, 94, 0.4);
    border-radius: 0;
    pointer-events: none;
    z-index: 99998;
    /* Delay suave para el rastro usando transición de transform */
    transition: transform 0.15s ease-out;
    will-change: transform;
}

body:has(a:hover) #cursor,
body:has(button:hover) #cursor {
    width: 20px;
    height: 20px;
}

/* Touch devices cursor fix */
@media (pointer: coarse) {
    body {
        cursor: auto !important;
    }

    #cursor,
    #cursor-trail {
        display: none !important;
    }
}

/* ─── MATRIX CANVAS ─── */
#matrix-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    opacity: 0.18;
    pointer-events: none;
}

/* ─── CRT EFFECTS ─── */
.crt-scanlines {
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(0deg,
            rgba(0, 0, 0, 0.15) 0px,
            rgba(0, 0, 0, 0.15) 1px,
            transparent 1px,
            transparent 3px);
    pointer-events: none;
    z-index: 9990;
}

.crt-flicker {
    position: fixed;
    inset: 0;
    background: rgba(34, 197, 94, 0.02);
    pointer-events: none;
    z-index: 9991;
    animation: flicker 3s ease-in-out infinite;
}

@keyframes flicker {

    0%,
    100% {
        opacity: 0.3
    }

    20% {
        opacity: 0.8
    }

    40% {
        opacity: 0.4
    }

    60% {
        opacity: 0.9
    }

    80% {
        opacity: 0.5
    }
}

.vignette {
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, 0.6) 100%);
    pointer-events: none;
    z-index: 9992;
}

/* ─── GLITCH EFFECT ─── */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.glitch::before {
    color: var(--cyan);
    animation: glitch1 3s infinite;
    clip-path: polygon(0 30%, 100% 30%, 100% 50%, 0 50%);
}

.glitch::after {
    color: var(--red);
    animation: glitch2 3s infinite;
    clip-path: polygon(0 60%, 100% 60%, 100% 80%, 0 80%);
}

@keyframes glitch1 {

    0%,
    90%,
    100% {
        transform: translate(0);
        opacity: 0
    }

    92% {
        transform: translate(-4px, 1px);
        opacity: 0.8
    }

    94% {
        transform: translate(4px, -1px);
        opacity: 0.8
    }

    96% {
        transform: translate(0);
        opacity: 0
    }
}

@keyframes glitch2 {

    0%,
    88%,
    100% {
        transform: translate(0);
        opacity: 0
    }

    90% {
        transform: translate(4px, 1px);
        opacity: 0.7
    }

    93% {
        transform: translate(-4px, -1px);
        opacity: 0.7
    }

    95% {
        transform: translate(0);
        opacity: 0
    }
}

.glitch-sm {
    position: relative;
}

.glitch-sm::before,
.glitch-sm::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
}

.glitch-sm::before {
    color: var(--cyan);
    animation: glitch1 4s infinite;
    clip-path: polygon(0 20%, 100% 20%, 100% 40%, 0 40%);
}

.glitch-sm::after {
    color: var(--red);
    animation: glitch2 4s infinite;
    clip-path: polygon(0 55%, 100% 55%, 100% 75%, 0 75%);
}

/* ─── BLINK ─── */
.blink {
    animation: blink 0.8s step-end infinite;
}

@keyframes blink {

    0%,
    49% {
        opacity: 1
    }

    50%,
    100% {
        opacity: 0
    }
}

/* ─── BOOT SCREEN ─── */
#boot-screen {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

#boot-content {
    width: 600px;
    max-width: 90vw;
}

#boot-logo {
    font-family: 'VT323', monospace;
    font-size: clamp(48px, 10vw, 80px);
    color: var(--green);
    text-shadow: 0 0 20px var(--green-glow), 0 0 40px var(--green-glow);
    letter-spacing: 8px;
    margin-bottom: 8px;
    animation: bootPulse 1s ease-in-out infinite alternate;
}

@keyframes bootPulse {
    from {
        text-shadow: 0 0 20px var(--green-glow);
    }

    to {
        text-shadow: 0 0 40px var(--green-glow), 0 0 80px var(--green-glow);
    }
}

#boot-subtitle {
    color: var(--green-dim);
    font-size: 13px;
    letter-spacing: 3px;
    margin-bottom: 28px;
}

#boot-lines {
    font-size: 13px;
    color: var(--green-dim);
    line-height: 1.8;
    min-height: 120px;
    margin-bottom: 20px;
}

#boot-lines .ok {
    color: var(--green);
}

#boot-lines .err {
    color: var(--red);
}

#boot-bar-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

#boot-bar {
    flex: 1;
    height: 8px;
    border: 1px solid var(--green-dim);
    background: rgba(0, 0, 0, 0.5);
    border-radius: 2px;
    overflow: hidden;
}

#boot-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--green-dim), var(--green));
    box-shadow: 0 0 8px var(--green-glow);
    width: 0%;
    transition: width 0.2s ease;
}

#boot-bar-pct {
    color: var(--green-dim);
    font-size: 12px;
    min-width: 38px;
}

/* ─── HIDDEN ─── */
.hidden {
    display: none !important;
}

/* ─── NAVBAR ─── */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 52px;
    background: rgba(0, 0, 0, 0.92);
    border-bottom: 1px solid rgba(34, 197, 94, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 1000;
    backdrop-filter: blur(4px);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.08);
}

.nav-logo {
    font-family: 'VT323', monospace;
    font-size: 22px;
    color: var(--green);
    text-shadow: 0 0 10px var(--green-glow);
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    color: var(--green-dim);
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 1.5px;
    transition: color 0.2s, text-shadow 0.2s;
}

.nav-links a:hover {
    color: var(--green);
    text-shadow: 0 0 8px var(--green-glow);
}

.nav-status {
    font-size: 11px;
    color: var(--green-dim);
    display: flex;
    align-items: center;
    gap: 6px;
}

.dot-green {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 6px var(--green);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 6px var(--green);
    }

    50% {
        box-shadow: 0 0 14px var(--green), 0 0 20px var(--green);
    }
}

/* ─── SECTIONS COMMON ─── */
section {
    position: relative;
    z-index: 1;
    padding: 100px 60px 80px;
    max-width: 1100px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 50px;
}

.section-tag {
    font-size: 12px;
    color: var(--green-dim);
    letter-spacing: 3px;
    display: block;
    margin-bottom: 10px;
}

.section-title {
    font-family: 'VT323', monospace;
    font-size: clamp(32px, 5vw, 48px);
    color: var(--green);
    text-shadow: 0 0 14px var(--green-glow);
    letter-spacing: 4px;
    margin-bottom: 12px;
}

.section-cmd {
    font-size: 13px;
    color: var(--cyan);
    opacity: 0.7;
    border-left: 2px solid var(--green-dim);
    padding-left: 12px;
}

/* ─── HERO ─── */
#hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 52px;
    max-width: 100%;
    padding-left: 80px;
}

.hero-tag {
    font-size: 13px;
    color: var(--cyan);
    letter-spacing: 2px;
    margin-bottom: 16px;
    opacity: 0;
    animation: fadeUp 0.6s 0.3s forwards;
}

.hero-name {
    font-family: 'VT323', monospace;
    font-size: clamp(52px, 8vw, 96px);
    color: var(--green);
    text-shadow: 0 0 20px var(--green-glow), 0 0 60px rgba(34, 197, 94, 0.3);
    letter-spacing: 6px;
    line-height: 1;
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeUp 0.6s 0.5s forwards;
}

.hero-typing-wrap {
    font-size: 18px;
    color: var(--green);
    margin-bottom: 32px;
    min-height: 28px;
    opacity: 0;
    animation: fadeUp 0.6s 0.8s forwards;
}

.hero-prompt {
    color: var(--green-dim);
}

.hero-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: var(--green-dim);
    margin-bottom: 40px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.6s 1s forwards;
}

.meta-item .label {
    color: var(--cyan);
    margin-right: 6px;
}

.meta-sep {
    color: var(--green-dark);
}

.green {
    color: var(--green);
}

.hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.6s 1.2s forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-primary {
    display: inline-block;
    padding: 12px 28px;
    border: 1.5px solid var(--green);
    color: #000;
    background: var(--green);
    text-decoration: none;
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    letter-spacing: 1.5px;
    transition: all 0.2s;
    box-shadow: 0 0 16px var(--green-glow);
}

.btn-primary:hover {
    background: transparent;
    color: var(--green);
    box-shadow: 0 0 28px var(--green-glow);
}

.btn-secondary {
    display: inline-block;
    padding: 12px 28px;
    border: 1.5px solid var(--green-dim);
    color: var(--green-dim);
    background: transparent;
    text-decoration: none;
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    letter-spacing: 1.5px;
    transition: all 0.2s;
}

.btn-secondary:hover {
    border-color: var(--green);
    color: var(--green);
    box-shadow: 0 0 16px var(--green-glow);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--green-dim);
    letter-spacing: 3px;
    animation: fadeIn 1s 2s both;
}

.scroll-arrow {
    width: 1px;
    height: 40px;
    background: linear-gradient(var(--green-dim), transparent);
    animation: scrollAnim 1.5s infinite;
}

@keyframes scrollAnim {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
    }

    51% {
        transform: scaleY(1);
        transform-origin: bottom;
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* ─── ABOUT ─── */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.about-terminal {
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.1), inset 0 0 40px rgba(34, 197, 94, 0.02);
    overflow: hidden;
}

.term-bar {
    background: var(--green);
    color: #000;
    padding: 5px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1px;
}

.term-dots {
    display: flex;
    gap: 5px;
}

.term-dots span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #000;
    opacity: 0.35;
}

.term-title {
    font-size: 10px;
    letter-spacing: 1.5px;
}

.term-body {
    padding: 18px 20px;
    font-size: 13px;
    line-height: 1.75;
    background: rgba(0, 0, 0, 0.5);
    overflow-x: auto;
}

.j-key {
    color: var(--cyan);
}

.j-str {
    color: #86efac;
}

.j-arr {
    color: var(--green);
}

.j-brace {
    color: var(--green-dim);
}

.j-num {
    color: var(--yellow);
}

.about-info {
    display: flex;
    flex-direction: column;
    gap: 18px;
}


.info-label {
    font-size: 11px;
    color: var(--green-dim);
    letter-spacing: 2px;
    margin-bottom: 4px;
}

.info-value {
    font-size: 14px;
    color: var(--white);
    text-shadow: 0 0 6px rgba(226, 232, 240, 0.2);
}

.info-value.cyan {
    color: var(--cyan);
    text-shadow: 0 0 8px rgba(34, 211, 238, 0.5);
}

.link-green {
    color: var(--green);
    text-decoration: none;
}

.link-green:hover {
    text-shadow: 0 0 8px var(--green-glow);
}

.status-ok {
    color: var(--green);
    font-size: 13px;
}

/* ─── SKILLS ─── */
#skills {
    background: rgba(34, 197, 94, 0.015);
}

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

.skill-category {
    border: 1px solid rgba(34, 197, 94, 0.1);
    border-radius: 3px;
    padding: 24px 20px;
    background: rgba(0, 0, 0, 0.4);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.skill-category:hover {
    border-color: rgba(34, 197, 94, 0.4);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.08);
}

.skill-cat-title {
    font-size: 13px;
    color: var(--green);
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(34, 197, 94, 0.15);
}

.cyan {
    color: var(--cyan);
}


/* ─── MISSIONS ─── */
.missions-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mission-card {
    border: 1px solid rgba(34, 197, 94, 0.1);
    border-radius: 3px;
    padding: 28px 30px;
    background: rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.mission-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--green);
    box-shadow: 0 0 10px var(--green-glow);
}

.mission-card:hover {
    border-color: rgba(34, 197, 94, 0.5);
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.1);
    transform: translateX(4px);
}

.mission-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.mission-id {
    font-size: 12px;
    color: var(--cyan);
    letter-spacing: 2px;
    text-shadow: 0 0 6px rgba(34, 211, 238, 0.5);
}

.mission-status {
    font-size: 11px;
    color: var(--green);
    display: flex;
    align-items: center;
    gap: 6px;
}

.mission-target {
    font-size: 18px;
    color: var(--white);
    margin-bottom: 8px;
    text-shadow: 0 0 8px rgba(226, 232, 240, 0.15);
}

.mission-stack {
    font-size: 12px;
    color: var(--cyan);
    margin-bottom: 16px;
    opacity: 0.8;
}

.mission-results {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.result-item {
    font-size: 13px;
    color: var(--green-dim);
    padding-left: 4px;
    transition: color 0.2s;
}

.mission-card:hover .result-item {
    color: var(--green);
}

/* ─── CONTACT ─── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    align-items: start;
}

.contact-log {
    min-height: 160px;
    font-size: 13px;
    line-height: 1.9;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border: 1px solid rgba(34, 197, 94, 0.1);
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.4);
    text-decoration: none;
    transition: all 0.25s;
    position: relative;
    overflow: hidden;
}

.contact-card::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--green-dim);
    transition: box-shadow 0.3s;
}

.contact-card:hover {
    border-color: rgba(34, 197, 94, 0.5);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.1);
    transform: translateX(4px);
}

.contact-card:hover::after {
    box-shadow: 0 0 8px var(--green-glow);
    background: var(--green);
}

.contact-card-icon {
    width: 36px;
    height: 36px;
    border: 1px solid var(--green-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--green);
    flex-shrink: 0;
}

.contact-card-label {
    font-size: 12px;
    color: var(--cyan);
    letter-spacing: 1.5px;
}

.contact-card-val {
    font-size: 13px;
    color: var(--green-dim);
    margin-top: 2px;
}

.contact-card-status {
    margin-left: auto;
    font-size: 11px;
    color: var(--yellow);
}

/* ─── QUOTE BOX ─── */
.quote-box {
    font-size: 13.5px;
    color: var(--green-dim);
    line-height: 1.75;
    margin-top: 20px;
    max-width: 100%;
    overflow-x: hidden;
}

.q-border {
    color: var(--green-dim);
}


.q-sep {
    color: var(--green-dim);
}

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

.q-author {
    color: var(--cyan);
}

/* ─── FOOTER ─── */
footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(34, 197, 94, 0.1);
    padding: 24px 60px;
    max-width: 1100px;
    margin: 0 auto;
}

.footer-inner {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--green-dim);
    align-items: center;
}

.footer-sep {
    color: var(--green-dark);
}

/* ─── SCROLL REVEAL ─── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
    section {
        padding: 80px 24px 60px;
    }

    #hero {
        padding-left: 24px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

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

    .contact-grid {
        grid-template-columns: 1fr;
    }

    #navbar {
        padding: 0 20px;
    }

    .nav-links {
        display: none;
    }

    .scroll-indicator {
        left: 24px;
    }

    footer {
        padding: 24px;
    }
}

@media (max-width: 600px) {
    .mission-card {
        padding: 20px 15px;
    }

    .hero-typing-wrap {
        font-size: 14px;
    }

    #boot-logo {
        font-size: 44px;
    }

    .hero-name {
        font-size: clamp(32px, 10vw, 52px);
    }

    .hero-meta {
        flex-direction: column;
        gap: 8px;
    }
}

/* ═══════════════════════════════════════════════════
   HERO PHOTO — surveillance camera effect
   ═══════════════════════════════════════════════════ */

#hero {
    padding-left: 0;
    padding-right: 0;
    max-width: 100%;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    align-items: center;
    min-height: 100vh;
    padding: 52px 80px 0;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ── PHOTO WRAPPER ── */
.hero-photo-wrap {
    position: relative;
    width: 380px;
    height: 420px;
    flex-shrink: 0;
}

.hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    /* B&W + matrix green tint */
    filter: grayscale(100%) contrast(1.1) brightness(0.85);
    border-radius: 2px;
}

/* Green color overlay */
.photo-overlay {
    position: absolute;
    inset: 0;
    background: rgba(34, 197, 94, 0.22);
    mix-blend-mode: color;
    pointer-events: none;
    border-radius: 2px;
}

/* Scanlines over photo */
.photo-scanlines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg,
            rgba(0, 0, 0, 0.25) 0px,
            rgba(0, 0, 0, 0.25) 1px,
            transparent 1px,
            transparent 3px);
    pointer-events: none;
    border-radius: 2px;
    z-index: 2;
}

/* Scan sweep animation */
.scan-sweep {
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(transparent, rgba(34, 197, 94, 0.8), transparent);
    box-shadow: 0 0 12px var(--green-glow), 0 0 24px var(--green-glow);
    z-index: 5;
    animation: sweep 2.5s linear infinite;
    pointer-events: none;
}

@keyframes sweep {
    0% {
        top: 0%;
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    95% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

/* Corner brackets */
.corner {
    position: absolute;
    width: 20px;
    height: 20px;
    z-index: 6;
    pointer-events: none;
}

.corner.tl {
    top: -2px;
    left: -2px;
    border-top: 2px solid var(--green);
    border-left: 2px solid var(--green);
    box-shadow: -3px -3px 8px var(--green-glow);
}

.corner.tr {
    top: -2px;
    right: -2px;
    border-top: 2px solid var(--green);
    border-right: 2px solid var(--green);
    box-shadow: 3px -3px 8px var(--green-glow);
}

.corner.bl {
    bottom: -2px;
    left: -2px;
    border-bottom: 2px solid var(--green);
    border-left: 2px solid var(--green);
    box-shadow: -3px 3px 8px var(--green-glow);
}

.corner.br {
    bottom: -2px;
    right: -2px;
    border-bottom: 2px solid var(--green);
    border-right: 2px solid var(--green);
    box-shadow: 3px 3px 8px var(--green-glow);
}

/* HUD labels */
.hud {
    position: absolute;
    font-size: 10px;
    color: var(--green);
    letter-spacing: 1px;
    text-shadow: 0 0 6px var(--green-glow);
    z-index: 7;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.55);
    padding: 2px 5px;
}

.hud-tl {
    top: 8px;
    left: 8px;
}

.hud-tr {
    top: 8px;
    right: 8px;
}

.hud-bl {
    bottom: 8px;
    left: 8px;
    animation: hudBlink 1.8s step-end infinite;
}

.hud-br {
    bottom: 8px;
    right: 8px;
}

@keyframes hudBlink {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: 0.3
    }
}

/* Crosshair */
.crosshair {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 6;
    pointer-events: none;
    opacity: 0.35;
}

.ch-h {
    position: absolute;
    width: 60px;
    height: 1px;
    background: var(--green);
    box-shadow: 0 0 4px var(--green-glow);
}

.ch-v {
    position: absolute;
    width: 1px;
    height: 60px;
    background: var(--green);
    box-shadow: 0 0 4px var(--green-glow);
}

.ch-circle {
    position: absolute;
    width: 50px;
    height: 50px;
    border: 1px solid var(--green);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--green-glow);
    animation: chPulse 2s ease-in-out infinite;
}

@keyframes chPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.35;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.6;
    }
}

/* Glow border around photo */
.hero-photo-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(34, 197, 94, 0.3);
    box-shadow:
        0 0 20px rgba(34, 197, 94, 0.2),
        inset 0 0 30px rgba(34, 197, 94, 0.05);
    pointer-events: none;
    z-index: 8;
    border-radius: 2px;
}

/* ── CV BUTTON ── */
.btn-cv {
    display: inline-block;
    padding: 12px 28px;
    border: 1.5px solid var(--cyan);
    color: var(--cyan);
    background: transparent;
    text-decoration: none;
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    letter-spacing: 1.5px;
    transition: all 0.2s;
    text-shadow: 0 0 6px rgba(34, 211, 238, 0.4);
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.1);
}

.btn-cv:hover {
    background: rgba(34, 211, 238, 0.1);
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.4);
    text-shadow: 0 0 12px rgba(34, 211, 238, 0.8);
}

/* ── RESPONSIVE HERO ── */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        padding: 0;
        gap: 40px;
        text-align: center;
        min-height: auto;
    }

    .hero-photo-wrap {
        width: 280px;
        height: 310px;
        margin: 0 auto;
    }

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

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

    .scroll-indicator {
        left: 50%;
        transform: translateX(-50%);
    }
}


/* ── SKILL TAGS ── */
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.skill-tag {
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
    letter-spacing: 1.5px;
    color: var(--green);
    border: 1px solid rgba(34, 197, 94, 0.4);
    padding: 6px 14px;
    background: rgba(34, 197, 94, 0.05);
    text-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
    transition: all 0.2s ease;
    cursor: default;
    position: relative;
}

.skill-tag::before {
    content: '> ';
    color: var(--green-dim);
    font-size: 10px;
}

.skill-tag:hover {
    background: rgba(34, 197, 94, 0.12);
    border-color: var(--green);
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.25);
    text-shadow: 0 0 10px var(--green-glow);
    transform: translateY(-2px);
}

/* ─── MISSION LINK ─── */
.mission-links {
    margin-top: 20px;
}

.btn-mission-link {
    display: inline-block;
    padding: 8px 16px;
    border: 1px dashed var(--green);
    color: var(--green);
    text-decoration: none;
    font-size: 11px;
    letter-spacing: 1px;
    background: rgba(34, 197, 94, 0.05);
    transition: all 0.2s;
}

.btn-mission-link:hover {
    background: var(--green);
    color: #000;
    box-shadow: 0 0 15px var(--green-glow);
}

/* ─── SURVEILLANCE EYE ─── */
.surveillance-eye {
    position: absolute;
    top: 20px;
    right: 30px;
    width: 40px;
    height: 25px;
    background: #000;
    border: 1.5px solid var(--green-dim);
    border-radius: 50% 10%;
    transform: rotate(45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.4s, transform 0.4s;
    pointer-events: none;
}

.mission-card:hover .surveillance-eye {
    opacity: 0.8;
    transform: rotate(0deg);
}

.eye-iris {
    width: 14px;
    height: 14px;
    background: radial-gradient(circle, #fff 10%, var(--green) 30%, var(--bg) 100%);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 8px var(--green);
    gap: 20px;
}

/* ═══════════════════════════════════════════════════
   FEEDBACK WIDGET
   ═══════════════════════════════════════════════════ */

#feedback-widget {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    font-family: 'Share Tech Mono', monospace;
}

/* ── Toggle button ── */
#feedback-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(0, 0, 0, 0.92);
    border: 1.5px solid var(--green);
    color: var(--green);
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    letter-spacing: 2px;
    cursor: pointer;
    border-radius: 2px;
    box-shadow: 0 0 18px rgba(34, 197, 94, 0.35), inset 0 0 10px rgba(34, 197, 94, 0.04);
    transition: all 0.2s;
    backdrop-filter: blur(6px);
}

#feedback-toggle:hover {
    background: rgba(34, 197, 94, 0.12);
    box-shadow: 0 0 28px rgba(34, 197, 94, 0.55), inset 0 0 14px rgba(34, 197, 94, 0.08);
}

#feedback-toggle-icon {
    font-size: 16px;
    color: #facc15;
    text-shadow: 0 0 8px rgba(250, 204, 21, 0.7);
    animation: starGlow 2s infinite alternate;
}

@keyframes starGlow {
    from {
        text-shadow: 0 0 6px rgba(250, 204, 21, 0.5);
    }

    to {
        text-shadow: 0 0 16px rgba(250, 204, 21, 0.9), 0 0 30px rgba(250, 204, 21, 0.3);
    }
}

/* ── Panel ── */
#feedback-panel {
    width: 320px;
    background: rgba(10, 14, 10, 0.98);
    border: 1.5px solid rgba(34, 197, 94, 0.4);
    border-radius: 3px;
    box-shadow: 0 0 40px rgba(34, 197, 94, 0.35), 0 0 0 1px rgba(34, 197, 94, 0.15), inset 0 0 30px rgba(34, 197, 94, 0.04);
    overflow: hidden;
    animation: fbSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(12px);
}

@keyframes fbSlideIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ── Terminal bar of panel ── */
.fb-term-bar {
    background: var(--green);
    color: #000;
    padding: 5px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1px;
}

#feedback-close {
    margin-left: auto;
    background: none;
    border: none;
    color: #000;
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
    padding: 0 2px;
    opacity: 0.7;
    font-family: monospace;
    transition: opacity 0.2s;
}

#feedback-close:hover {
    opacity: 1;
}

/* ── Body ── */
.fb-body {
    padding: 18px 20px 20px;
}

.fb-prompt {
    font-size: 14px;
    color: var(--green);
    margin-bottom: 4px;
    text-shadow: 0 0 8px var(--green-glow);
}

.fb-cmd {
    font-size: 11px;
    color: var(--green-dim);
    margin-bottom: 20px;
    opacity: 0.7;
    border-left: 2px solid var(--green-dark);
    padding-left: 8px;
}

/* ── Stars ── */
.fb-stars {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}

.fb-star {
    background: none;
    border: none;
    font-size: 28px;
    color: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    padding: 0 2px;
    line-height: 1;
    transition: color 0.15s, text-shadow 0.15s, transform 0.15s;
    font-family: monospace;
}

.fb-star:hover,
.fb-star.hovered,
.fb-star.selected {
    color: #facc15;
    text-shadow: 0 0 12px rgba(250, 204, 21, 0.8), 0 0 24px rgba(250, 204, 21, 0.3);
    transform: scale(1.15);
}

.fb-rating-label {
    font-size: 11px;
    color: var(--green-dim);
    margin-bottom: 18px;
    letter-spacing: 1px;
    min-height: 16px;
    transition: color 0.2s;
}

/* ── Inputs ── */
.fb-fields {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.fb-input {
    background: rgba(34, 197, 94, 0.06);
    border: 1px solid rgba(34, 197, 94, 0.35);
    border-radius: 2px;
    color: #c8f5d8;
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
    padding: 8px 12px;
    width: 100%;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    letter-spacing: 0.5px;
}

.fb-textarea {
    resize: vertical;
    min-height: 60px;
    line-height: 1.5;
}

.fb-input::placeholder {
    color: rgba(34, 197, 94, 0.3);
}

.fb-input:focus {
    border-color: var(--green);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.2);
}

/* ── Submit ── */
.fb-btn-submit {
    width: 100%;
    padding: 10px;
    background: rgba(34, 197, 94, 0.08);
    border: 1.5px solid var(--green-dim);
    color: var(--green-dim);
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    letter-spacing: 2px;
    cursor: not-allowed;
    border-radius: 2px;
    transition: all 0.2s;
}

.fb-btn-submit:not(:disabled) {
    border-color: var(--green);
    color: var(--green);
    cursor: pointer;
    box-shadow: 0 0 14px rgba(34, 197, 94, 0.2);
}

.fb-btn-submit:not(:disabled):hover {
    background: rgba(34, 197, 94, 0.18);
    box-shadow: 0 0 24px rgba(34, 197, 94, 0.35);
}

/* ── Status message ── */
.fb-status {
    margin-top: 12px;
    font-size: 12px;
    min-height: 18px;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.fb-status.success {
    color: var(--green);
    text-shadow: 0 0 8px var(--green-glow);
}

.fb-status.error {
    color: var(--red);
}

.fb-status.loading {
    color: var(--green-dim);
}

/* ── Mobile adjustments ── */
@media (max-width: 600px) {
    #feedback-widget {
        bottom: 16px;
        right: 16px;
    }

    #feedback-panel {
        width: calc(100vw - 32px);
    }
}