/* =====================================================================
   NAOURA GABKIKA · PORTFOLIO · v2.0
   Cloud Architect · DevSecOps · 2026
   --------------------------------------------------------------------
   Sections in this file:
   1. Tokens & resets
   2. Cursor, grid, scanline (ambient)
   3. Boot screen
   4. Navigation + mobile menu
   5. Hero
   6. Metrics bar
   7. Generic sections (.sec, .wrap, headers)
   8. Achievements
   9. AWS architecture diagram
  10. Expertise cards
  11. Auto-scaling demo
  12. Pipeline
  13. Case studies
  14. Timeline
  15. Certifications
  16. Education + languages + region map
  17. Interactive terminal
  18. Contact + footer
  19. Reveal animation
  20. Responsive breakpoints (1024 / 768 / 480)
  21. Reduced-motion + print
   ===================================================================== */

/* 1. TOKENS & RESETS ================================================== */
:root {
    /* Refined palette · 2026 — deeper bgs, electric cyan, amber accent */
    --bg: #04070d;
    --bg2: #080d18;
    --bg3: #0c1422;
    --bg-elev: #0f1a2c;

    --cyan: #22e1ff;
    --cyan2: #0aa9c9;
    --green: #00ff9d;
    --orange: #ff7a3d;
    --amber: #ffb547;
    --purple: #8b7dfc;
    --red: #ff4868;
    --yellow: #ffd166;
    --blue: #4ea7ff;

    --text: #d6e8f2;
    --text2: #7390a4;
    --text3: #3f5b6e;

    --border: rgba(34, 225, 255, .1);
    --border-strong: rgba(34, 225, 255, .28);

    --glow: 0 0 22px rgba(34, 225, 255, .4);
    --glow-soft: 0 0 16px rgba(34, 225, 255, .22);
    --glow-green: 0 0 18px rgba(0, 255, 157, .35);
    --glow-purple: 0 0 18px rgba(139, 125, 252, .4);
    --glow-amber: 0 0 18px rgba(255, 181, 71, .4);

    --pad-x: 80px;
    --pad-y: 88px;
    --max-w: 1400px;

    --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Exo 2', sans-serif;
    overflow-x: hidden;
    cursor: none;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--cyan2); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--cyan); }

::selection { background: rgba(0, 212, 255, .25); color: #fff; }

/* 2. CURSOR / GRID / SCANLINE ========================================= */
#cur {
    position: fixed;
    width: 8px; height: 8px;
    background: var(--cyan);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform .1s var(--ease);
    box-shadow: 0 0 12px var(--cyan), 0 0 28px rgba(0, 212, 255, .5);
    will-change: transform;
}
#cur-ring {
    position: fixed;
    width: 34px; height: 34px;
    border: 1px solid rgba(0, 212, 255, .4);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transition: all .14s var(--ease);
    transform: translate(-50%, -50%);
}

#grid-bg {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 212, 255, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, .025) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
    mask-image: radial-gradient(ellipse at center, #000 50%, transparent 100%);
}

#scanline {
    position: fixed;
    top: -100%;
    left: 0; right: 0;
    height: 100%;
    background: linear-gradient(transparent 50%, rgba(0, 212, 255, .007) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 1;
    animation: scan 10s linear infinite;
}
@keyframes scan { from { top: -100%; } to { top: 100%; } }

/* 3. BOOT SCREEN ===================================================== */
#boot-screen {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .6s var(--ease), visibility .6s var(--ease);
}
#boot-screen.gone { opacity: 0; visibility: hidden; pointer-events: none; }
.boot-inner { width: min(560px, 90vw); }
.boot-logo {
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    font-size: clamp(28px, 5vw, 44px);
    letter-spacing: 8px;
    color: var(--cyan);
    text-shadow: var(--glow);
    text-align: center;
    margin-bottom: 8px;
}
.boot-logo span { color: var(--text2); font-weight: 400; }
.boot-version {
    font-family: 'Fira Code', monospace;
    font-size: 11px;
    color: var(--text2);
    letter-spacing: 3px;
    text-align: center;
    margin-bottom: 32px;
}
.boot-bar {
    height: 2px;
    background: rgba(0, 212, 255, .1);
    overflow: hidden;
    margin-bottom: 18px;
}
.boot-bar-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--cyan), var(--purple));
    box-shadow: 0 0 10px var(--cyan);
    transition: width .25s var(--ease);
}
#boot-log {
    font-family: 'Fira Code', monospace;
    font-size: 11px;
    color: var(--text2);
    line-height: 1.9;
    height: 168px;
    overflow: hidden;
    white-space: pre-wrap;
}
#boot-log .ok { color: var(--green); }
#boot-log .warn { color: var(--yellow); }
#boot-log .err { color: var(--red); }

/* 4. NAV ============================================================ */
nav#topnav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    background: rgba(3, 11, 18, .9);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
}
.nav-logo {
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    font-size: 17px;
    color: var(--cyan);
    letter-spacing: 4px;
    text-shadow: var(--glow);
    flex-shrink: 0;
}
.nav-links {
    display: flex;
    gap: 22px;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: none;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
    font-family: 'Fira Code', monospace;
    font-size: 11px;
    color: var(--text2);
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color .3s var(--ease), text-shadow .3s var(--ease);
    white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--cyan);
    text-shadow: var(--glow);
}
.nav-right {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-shrink: 0;
}
.lang-toggle {
    background: transparent;
    border: 1px solid var(--border-strong);
    color: var(--cyan);
    padding: 4px 10px;
    font-family: 'Fira Code', monospace;
    font-size: 10px;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all .3s var(--ease);
}
.lang-toggle:hover { box-shadow: var(--glow-soft); }
.sys-status {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: 'Fira Code', monospace;
    font-size: 10px;
    color: var(--green);
    letter-spacing: 2px;
}
.sdot {
    width: 7px; height: 7px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse-g 2s infinite;
    box-shadow: 0 0 10px var(--green);
}
@keyframes pulse-g {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .4; transform: scale(.8); }
}
#clock {
    font-family: 'Fira Code', monospace;
    font-size: 11px;
    color: var(--text2);
}

.hamburger {
    display: none;
    background: transparent;
    border: 1px solid var(--border-strong);
    width: 38px; height: 38px;
    padding: 0;
    cursor: pointer;
    position: relative;
}
.hamburger span {
    display: block;
    width: 18px; height: 1.5px;
    background: var(--cyan);
    margin: 4px auto;
    transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.hamburger.open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* 5. HERO =========================================================== */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 90px 24px 60px;
}
#hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    z-index: 0;
}
#hero::before {
    /* radial atmospheric glow */
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 70% 45%, rgba(34, 225, 255, .12), transparent 60%),
        radial-gradient(ellipse 50% 40% at 25% 65%, rgba(139, 125, 252, .08), transparent 60%);
    pointer-events: none;
    z-index: 1;
}
.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 60px;
    align-items: center;
    max-width: 1280px;
    width: 100%;
}
.hero-text { text-align: left; }
.hero-text .hero-btns { justify-content: flex-start; }
.hero-text > p { margin-left: 0 !important; margin-right: 0 !important; }

/* === 3D PHOTO STAGE === */
.hero-portrait {
    position: relative;
    aspect-ratio: 1 / 1;
    width: 100%;
    max-width: 520px;
    margin-left: auto;
    transform-style: preserve-3d;
    perspective: 1400px;
    perspective-origin: 50% 50%;
}
#portrait-three {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

/* === Photo (CSS 3D tilt, always works on file://) === */
.hp-photo-wrap {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 78%;
    aspect-ratio: 1122 / 1402;
    transform: translate(-50%, -50%);
    z-index: 3;
    transform-style: preserve-3d;
    will-change: transform;
}
.hp-photo {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transform: translateZ(0);
    filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .5));
    user-select: none;
    -webkit-user-drag: none;
}


/* === Stacked depth layers — true CSS-3D relief on tilt === */
.hp-layer {
    position: absolute;
    inset: 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
    will-change: transform, filter;
}
/* Shadow slab: deepest, blurry, dark */
.hp-l-shadow {
    transform: translateZ(-60px) scale(1.02);
    filter: brightness(.05) blur(14px) saturate(0);
    opacity: .85;
}
/* Back depth: cyan-tinted, slightly behind */
.hp-l-back {
    transform: translateZ(-26px) scale(1.012);
    filter: brightness(.45) blur(3px) hue-rotate(-25deg) saturate(1.8);
    mix-blend-mode: screen;
    opacity: .55;
}
/* Mid depth: purple-tinted, very subtle */
.hp-l-mid {
    transform: translateZ(-12px) scale(1.006);
    filter: brightness(.6) blur(1.2px) hue-rotate(40deg) saturate(1.6);
    mix-blend-mode: screen;
    opacity: .45;
}
/* Front edge: bright cyan rim — sits a few px ahead of main */
.hp-l-edge {
    transform: translateZ(14px);
    filter: brightness(1.6) contrast(2.4) blur(.6px) hue-rotate(170deg) saturate(2.5);
    mix-blend-mode: screen;
    opacity: .3;
    /* Mask to keep only the edges */
    -webkit-mask:
        radial-gradient(ellipse 70% 80% at 50% 48%, transparent 50%, #000 75%);
            mask:
        radial-gradient(ellipse 70% 80% at 50% 48%, transparent 50%, #000 75%);
}

/* Specular highlight that sweeps across on tilt */
.hp-photo-highlight {
    position: absolute;
    inset: 0;
    pointer-events: none;
    transform: translateZ(20px);
    background: linear-gradient(
        115deg,
        transparent 30%,
        rgba(255, 255, 255, .08) 48%,
        rgba(255, 255, 255, .14) 50%,
        rgba(255, 255, 255, .08) 52%,
        transparent 70%
    );
    mix-blend-mode: overlay;
    opacity: .9;
    -webkit-mask:
        radial-gradient(ellipse 65% 75% at 50% 48%, #000 30%, transparent 70%);
            mask:
        radial-gradient(ellipse 65% 75% at 50% 48%, #000 30%, transparent 70%);
}
.hp-photo-glow {
    position: absolute;
    inset: -8%;
    border-radius: 50%;
    background: radial-gradient(ellipse 60% 50% at 50% 45%, rgba(34, 225, 255, .35), transparent 60%);
    filter: blur(28px);
    z-index: -1;
    pointer-events: none;
}
.hp-photo-scan {
    position: absolute;
    inset: 0;
    pointer-events: none;
    transform: translateZ(18px);
    z-index: 4;
    background: repeating-linear-gradient(
        0deg,
        transparent 0px,
        transparent 2px,
        rgba(34, 225, 255, .12) 2px,
        rgba(34, 225, 255, .12) 3px
    );
    mix-blend-mode: screen;
    opacity: .85;
    animation:
        hp-photo-scan-move 5s linear infinite,
        hp-glitch 7s steps(1) infinite;
    -webkit-mask:
        radial-gradient(ellipse 75% 85% at 50% 48%, #000 50%, transparent 80%);
            mask:
        radial-gradient(ellipse 75% 85% at 50% 48%, #000 50%, transparent 80%);
}
@keyframes hp-photo-scan-move {
    from { background-position: 0 0; }
    to   { background-position: 0 -120px; }
}
@keyframes hp-glitch {
    0%, 92%, 100% { transform: translateZ(18px) translateX(0); filter: hue-rotate(0); }
    93% { transform: translateZ(18px) translateX(-2px); filter: hue-rotate(20deg); }
    94% { transform: translateZ(18px) translateX(3px); filter: hue-rotate(-30deg); }
    95% { transform: translateZ(18px) translateX(-1px); filter: hue-rotate(15deg); }
    96% { transform: translateZ(18px) translateX(0); filter: hue-rotate(0); }
}
.hp-rings {
    position: absolute;
    inset: -6%;
    pointer-events: none;
    z-index: 1;
}
.hp-rings::before,
.hp-rings::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(34, 225, 255, .18);
    animation: hp-spin 28s linear infinite;
}
.hp-rings::after {
    inset: 8%;
    border-color: rgba(139, 125, 252, .22);
    border-style: dashed;
    animation-duration: 42s;
    animation-direction: reverse;
}
@keyframes hp-spin { to { transform: rotate(360deg); } }
.hp-glow {
    position: absolute;
    inset: 12%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 225, 255, .35) 0%, rgba(34, 225, 255, .12) 35%, transparent 70%);
    filter: blur(20px);
    z-index: 0;
    animation: hp-pulse 4s ease-in-out infinite;
}
@keyframes hp-pulse {
    0%, 100% { opacity: .55; transform: scale(1); }
    50% { opacity: .9; transform: scale(1.08); }
}
.hp-corners {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}
.hp-corners span {
    position: absolute;
    width: 28px;
    height: 28px;
    border: 1.5px solid var(--cyan);
    opacity: .8;
    filter: drop-shadow(0 0 6px var(--cyan));
}
.hp-corners span:nth-child(1) { top: 6%; left: 6%; border-right: none; border-bottom: none; }
.hp-corners span:nth-child(2) { top: 6%; right: 6%; border-left: none; border-bottom: none; }
.hp-corners span:nth-child(3) { bottom: 6%; left: 6%; border-right: none; border-top: none; }
.hp-corners span:nth-child(4) { bottom: 6%; right: 6%; border-left: none; border-top: none; }
.hp-readout {
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    gap: 14px;
    font-family: 'Fira Code', monospace;
    font-size: 9px;
    letter-spacing: 2px;
    color: var(--text2);
    white-space: nowrap;
    background: rgba(4, 7, 13, .85);
    border: 1px solid var(--border);
    padding: 6px 14px;
    backdrop-filter: blur(8px);
}
.hp-readout b { color: var(--cyan); font-weight: 400; }
.hp-tag {
    position: absolute;
    z-index: 4;
    background: rgba(4, 7, 13, .92);
    border: 1px solid var(--border-strong);
    padding: 6px 10px;
    font-family: 'Fira Code', monospace;
    font-size: 9px;
    letter-spacing: 1.5px;
    color: var(--cyan);
    backdrop-filter: blur(6px);
    box-shadow: var(--glow-soft);
    animation: hp-tag-float 5s ease-in-out infinite;
}
.hp-tag::before {
    content: '';
    position: absolute;
    width: 40px;
    height: 1px;
    background: linear-gradient(to right, var(--cyan), transparent);
    top: 50%;
}
.hp-tag.t-left { top: 16%; left: -14%; }
.hp-tag.t-left::before { right: -40px; }
.hp-tag.t-right { top: 60%; right: -10%; animation-delay: -2.5s; }
.hp-tag.t-right::before { left: -40px; background: linear-gradient(to left, var(--cyan), transparent); }
.hp-tag.t-top { top: -4%; right: 14%; animation-delay: -1.2s; color: var(--amber); border-color: rgba(255, 181, 71, .35); }
.hp-tag.t-top::before { display: none; }
@keyframes hp-tag-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(34, 225, 255, .08);
    border: 1px solid rgba(34, 225, 255, .25);
    padding: 6px 18px;
    margin-bottom: 24px;
    font-family: 'Fira Code', monospace;
    font-size: 10px;
    color: var(--cyan);
    letter-spacing: 3px;
}
.dot-green { color: var(--green); }
.hero-sub {
    font-family: 'Fira Code', monospace;
    font-size: 13px;
    color: var(--text2);
    letter-spacing: 3px;
    margin-bottom: 8px;
}
.hero-name {
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    font-size: clamp(38px, 6.6vw, 80px);
    letter-spacing: 4px;
    line-height: .98;
    background: linear-gradient(135deg, #ffffff 15%, #7fefff 50%, #8b7dfc 85%, #ffb547 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 18px;
    animation: gradShift 10s ease infinite;
    background-size: 220% 220%;
}
@keyframes gradShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.hero-role {
    font-family: 'Fira Code', monospace;
    font-size: clamp(13px, 2vw, 16px);
    color: var(--cyan);
    min-height: 24px;
    margin-bottom: 36px;
}
.blink { animation: blink 1s step-end infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, .3);
    margin-bottom: 36px;
}
.h-stat {
    flex: 1 1 140px;
    padding: 14px 22px;
    text-align: center;
    border-right: 1px solid var(--border);
    min-width: 120px;
}
.h-stat:last-child { border-right: none; }
.h-stat-val {
    font-family: 'Orbitron', monospace;
    font-size: 20px;
    font-weight: 700;
    color: var(--cyan);
    text-shadow: var(--glow);
}
.h-stat-lbl {
    font-family: 'Fira Code', monospace;
    font-size: 9px;
    color: var(--text2);
    letter-spacing: 2px;
    margin-top: 4px;
}

.hero-btns {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: 'Fira Code', monospace;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    transition: all .3s var(--ease);
    position: relative;
    overflow: hidden;
}
.btn-c { background: transparent; border: 1px solid var(--cyan); color: var(--cyan); }
.btn-c::before {
    content: ''; position: absolute; top: 0; left: -100%;
    width: 100%; height: 100%;
    background: rgba(0, 212, 255, .1);
    transition: left .3s var(--ease);
}
.btn-c:hover::before { left: 0; }
.btn-c:hover { box-shadow: var(--glow); }
.btn-p { background: rgba(124, 92, 252, .12); border: 1px solid rgba(124, 92, 252, .4); color: var(--purple); }
.btn-p:hover { box-shadow: var(--glow-purple); }
.btn-g { background: rgba(0, 255, 157, .08); border: 1px solid rgba(0, 255, 157, .35); color: var(--green); }
.btn-g:hover { box-shadow: var(--glow-green); }
.btn-l { background: rgba(0, 120, 212, .08); border: 1px solid rgba(0, 120, 212, .5); color: #4ea7ff; }
.btn-l:hover { box-shadow: 0 0 18px rgba(0, 120, 212, .35); }

.hero-scroll {
    position: absolute;
    bottom: 24px; left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.hero-scroll-line {
    width: 1px; height: 36px;
    background: linear-gradient(to bottom, transparent, var(--cyan));
    animation: scrollAnim 1.8s ease-in-out 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; }
}
.hero-scroll-text {
    font-family: 'Fira Code', monospace;
    font-size: 9px;
    color: var(--text2);
    letter-spacing: 3px;
}

/* 6. METRICS BAR ===================================================== */
#metrics-bar {
    background: var(--bg2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.m-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    max-width: var(--max-w);
    margin: 0 auto;
}
.m-card {
    padding: 24px 22px;
    border-right: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    transition: background .3s var(--ease);
}
.m-card:last-child { border-right: none; }
.m-card:hover { background: var(--bg3); }
.m-card::before {
    content: ''; position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(to right, transparent, var(--cyan), transparent);
    opacity: 0;
    transition: opacity .4s var(--ease);
}
.m-card:hover::before { opacity: 1; }
.m-lbl {
    font-family: 'Fira Code', monospace;
    font-size: 9px;
    letter-spacing: 2px;
    color: var(--text2);
    margin-bottom: 10px;
    text-transform: uppercase;
}
.m-val {
    font-family: 'Orbitron', monospace;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 6px;
}
.m-sub {
    font-family: 'Fira Code', monospace;
    font-size: 10px;
    color: var(--text2);
    margin-bottom: 12px;
}
.m-bar {
    height: 2px;
    background: rgba(255, 255, 255, .05);
    border-radius: 1px;
    overflow: hidden;
}
.m-fill {
    height: 100%;
    border-radius: 1px;
    width: 0;
    transition: width 2s var(--ease);
}

/* 7. GENERIC SECTIONS ================================================ */
.wrap { max-width: var(--max-w); margin: 0 auto; }
.sec { padding: var(--pad-y) var(--pad-x); }
.sec-bg-a { background: var(--bg); }
.sec-bg-b {
    background: var(--bg2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.sec-center { text-align: center; }

.sec-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}
.sec-num {
    font-family: 'Fira Code', monospace;
    font-size: 11px;
    color: var(--cyan);
    opacity: .6;
}
.sec-title {
    font-family: 'Orbitron', monospace;
    font-size: clamp(18px, 3vw, 24px);
    font-weight: 700;
    letter-spacing: 4px;
    color: #fff;
}
.sec-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, var(--border), transparent);
    min-width: 50px;
}
.sec-lead {
    font-family: 'Fira Code', monospace;
    font-size: 12px;
    color: var(--text2);
    margin-bottom: 36px;
    line-height: 1.8;
}
.sec-lead code {
    background: rgba(0, 212, 255, .07);
    border: 1px solid rgba(0, 212, 255, .2);
    padding: 1px 6px;
    color: var(--cyan);
    font-family: inherit;
    font-size: 11px;
}

/* 8. ACHIEVEMENTS ==================================================== */
.ach-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.ach-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    padding: 28px;
    transition: all .3s var(--ease);
    position: relative;
    overflow: hidden;
}
.ach-card::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 60px; height: 60px;
    background: radial-gradient(circle at top right, rgba(0, 212, 255, .1), transparent 70%);
    pointer-events: none;
}
.ach-card:hover { transform: translateY(-3px); border-color: rgba(0, 212, 255, .3); }
.ach-num {
    font-family: 'Orbitron', monospace;
    font-size: 36px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 8px;
}
.ach-lbl {
    font-family: 'Fira Code', monospace;
    font-size: 11px;
    color: var(--text2);
    letter-spacing: .5px;
    line-height: 1.7;
}
.ach-src {
    margin-top: 10px;
    font-family: 'Fira Code', monospace;
    font-size: 9px;
    color: var(--text3);
    opacity: .8;
}

/* 9. AWS ARCHITECTURE DIAGRAM ======================================== */
.arch-wrap {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    align-items: start;
}
.arch-canvas {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 24px;
    position: relative;
    overflow: hidden;
    min-height: 540px;
}
.arch-canvas::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(0, 212, 255, .04), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(124, 92, 252, .04), transparent 40%);
    pointer-events: none;
}
.arch-canvas svg { width: 100%; height: auto; position: relative; z-index: 1; }
.arch-node {
    cursor: pointer;
    transition: all .3s var(--ease);
}
.arch-node rect, .arch-node circle {
    transition: all .3s var(--ease);
}
.arch-node:hover rect, .arch-node.active rect,
.arch-node:hover circle, .arch-node.active circle {
    filter: drop-shadow(0 0 10px var(--cyan));
}
.arch-node text {
    font-family: 'Fira Code', monospace;
    font-size: 10px;
    fill: var(--text);
    pointer-events: none;
    user-select: none;
}
.arch-node-label {
    font-family: 'Orbitron', monospace;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1px;
    fill: #fff;
}
.arch-zone {
    fill: rgba(0, 212, 255, .03);
    stroke: rgba(0, 212, 255, .15);
    stroke-width: 1;
    stroke-dasharray: 4 4;
}
.arch-zone-label {
    font-family: 'Fira Code', monospace;
    font-size: 9px;
    letter-spacing: 2px;
    fill: var(--text2);
}
.arch-link {
    stroke: rgba(0, 212, 255, .3);
    stroke-width: 1.5;
    fill: none;
}
.arch-link.flow {
    stroke-dasharray: 4 4;
    animation: archFlow 1.5s linear infinite;
}
@keyframes archFlow { to { stroke-dashoffset: -8; } }

.arch-info {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 24px;
    position: sticky;
    top: 80px;
    min-height: 540px;
}
.arch-info-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.arch-info-icon {
    width: 44px; height: 44px;
    background: rgba(0, 212, 255, .08);
    border: 1px solid var(--border-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.arch-info-title {
    font-family: 'Orbitron', monospace;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #fff;
    margin-bottom: 4px;
}
.arch-info-sub {
    font-family: 'Fira Code', monospace;
    font-size: 10px;
    color: var(--text2);
    letter-spacing: 1px;
}
.arch-info-body {
    font-size: 13px;
    line-height: 1.75;
    color: var(--text2);
    margin-bottom: 20px;
    min-height: 200px;
}
.arch-info-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

/* 10. EXPERTISE ====================================================== */
.exp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.exp-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: all .4s var(--ease);
}
.exp-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(0, 212, 255, .06), transparent 60%);
    pointer-events: none;
}
.exp-card:hover {
    border-color: rgba(0, 212, 255, .35);
    transform: translateY(-4px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .4), 0 0 40px rgba(0, 212, 255, .07);
}
.e-icon { font-size: 30px; margin-bottom: 16px; }
.e-title {
    font-family: 'Orbitron', monospace;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #fff;
    margin-bottom: 10px;
}
.e-desc {
    font-size: 13px;
    line-height: 1.75;
    color: var(--text2);
    margin-bottom: 20px;
}

.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tag {
    padding: 4px 10px;
    font-family: 'Fira Code', monospace;
    font-size: 9px;
    letter-spacing: 1px;
}
.t-c { background: rgba(0, 212, 255, .06); border: 1px solid rgba(0, 212, 255, .18); color: var(--cyan); }
.t-p { background: rgba(124, 92, 252, .06); border: 1px solid rgba(124, 92, 252, .22); color: var(--purple); }
.t-g { background: rgba(0, 255, 157, .06); border: 1px solid rgba(0, 255, 157, .2); color: var(--green); }
.t-o { background: rgba(255, 107, 53, .06); border: 1px solid rgba(255, 107, 53, .22); color: var(--orange); }

/* 11. AUTO-SCALING DEMO ============================================== */
.scale-wrap {
    display: flex;
    align-items: flex-start;
    gap: 52px;
}
.scale-controls { flex: 0 0 268px; }
.sc-lbl {
    font-family: 'Fira Code', monospace;
    font-size: 10px;
    color: var(--text2);
    letter-spacing: 2px;
    margin-bottom: 12px;
}
input[type=range] {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 3px;
    background: rgba(0, 212, 255, .15);
    outline: none;
    border-radius: 2px;
    cursor: pointer;
}
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--cyan);
    cursor: pointer;
    box-shadow: 0 0 12px var(--cyan);
}
input[type=range]::-moz-range-thumb {
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--cyan);
    cursor: pointer;
    box-shadow: 0 0 12px var(--cyan);
    border: none;
}
.load-val {
    font-family: 'Orbitron', monospace;
    font-size: 46px;
    font-weight: 700;
    color: var(--cyan);
    text-shadow: var(--glow);
    margin-top: 12px;
    line-height: 1;
}
.load-unit { font-size: 14px; color: var(--text2); }
.scale-info {
    margin-top: 20px;
    font-family: 'Fira Code', monospace;
    font-size: 11px;
    color: var(--text2);
    line-height: 2;
}
.scale-info span { color: var(--cyan); }

.nodes-grid {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-content: flex-start;
}
.node-card {
    width: 72px; height: 72px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .02);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    font-family: 'Fira Code', monospace;
    font-size: 8px;
    color: var(--text2);
    transition: all .4s var(--ease);
    position: relative;
    overflow: hidden;
}
.node-card.on {
    border-color: rgba(0, 255, 157, .35);
    background: rgba(0, 255, 157, .05);
    color: var(--green);
    box-shadow: 0 0 16px rgba(0, 255, 157, .12);
}
.node-card.new { animation: node-pop .5s var(--ease); }
@keyframes node-pop {
    0% { transform: scale(.4); opacity: 0; }
    60% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}
.n-bar {
    position: absolute;
    bottom: 0; left: 0;
    height: 3px;
    background: var(--green);
    transition: width 1s var(--ease), background 1s var(--ease);
    border-radius: 0 0 0 6px;
}

/* 12. PIPELINE ======================================================= */
.pipeline-wrap {
    display: flex;
    align-items: center;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
}
.ps {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 100px;
}
.ps-ring {
    width: 52px; height: 52px;
    border: 2px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: var(--bg2);
    transition: all .5s var(--ease);
}
.ps.done .ps-ring {
    border-color: var(--green);
    background: rgba(0, 255, 157, .06);
    box-shadow: 0 0 18px rgba(0, 255, 157, .25);
}
.ps.run .ps-ring {
    border-color: var(--cyan);
    background: rgba(0, 212, 255, .06);
    animation: pring 1s infinite;
}
@keyframes pring {
    0% { box-shadow: 0 0 0 0 rgba(0, 212, 255, .5); }
    70% { box-shadow: 0 0 0 12px rgba(0, 212, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0); }
}
.ps-label, .ps-sub {
    font-family: 'Fira Code', monospace;
    font-size: 9px;
    text-align: center;
    letter-spacing: 1px;
}
.ps-label { color: var(--text2); }
.ps.done .ps-sub { color: var(--green); }
.ps.run .ps-sub { color: var(--cyan); }
.pc {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, .05);
    min-width: 24px;
    position: relative;
    overflow: hidden;
}
.pc-fill {
    height: 100%;
    background: var(--green);
    width: 0;
    transition: width .7s var(--ease);
}
.pc.done .pc-fill { width: 100%; }

.pipe-actions {
    margin-top: 24px;
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
}
.pipe-legend {
    font-family: 'Fira Code', monospace;
    font-size: 10px;
    color: var(--text2);
}
.run-btn {
    background: transparent;
    border: 1px solid var(--cyan);
    color: var(--cyan);
    font-family: 'Fira Code', monospace;
    font-size: 10px;
    padding: 8px 22px;
    letter-spacing: 3px;
    cursor: pointer;
    transition: all .3s var(--ease);
}
.run-btn:hover { box-shadow: var(--glow); background: rgba(0, 212, 255, .06); }
#pipe-time {
    font-family: 'Fira Code', monospace;
    font-size: 10px;
    color: var(--text2);
}

/* 13. CASE STUDIES =================================================== */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.case-card {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: all .4s var(--ease);
    position: relative;
    overflow: hidden;
}
.case-card:hover {
    border-color: rgba(0, 212, 255, .3);
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .4);
}
.case-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
    opacity: 0;
    transition: opacity .4s var(--ease);
}
.case-card:hover::before { opacity: 1; }
.case-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.case-tag {
    font-family: 'Fira Code', monospace;
    font-size: 9px;
    letter-spacing: 2px;
    padding: 4px 10px;
}
.case-id {
    font-family: 'Fira Code', monospace;
    font-size: 9px;
    color: var(--text3);
    letter-spacing: 2px;
}
.case-title {
    font-family: 'Orbitron', monospace;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: #fff;
    line-height: 1.3;
}
.case-client {
    font-family: 'Fira Code', monospace;
    font-size: 11px;
    color: var(--cyan);
    letter-spacing: .5px;
}
.case-section { font-size: 12.5px; line-height: 1.7; color: var(--text2); }
.case-section em { color: var(--cyan); font-style: normal; }
.case-lbl {
    display: block;
    font-family: 'Fira Code', monospace;
    font-size: 9px;
    letter-spacing: 2px;
    color: var(--text3);
    text-transform: uppercase;
    margin-bottom: 6px;
}
.case-kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 4px;
}
.case-kpi {
    border: 1px solid var(--border);
    padding: 10px 8px;
    text-align: center;
    background: var(--bg2);
}
.case-kpi-val {
    font-family: 'Orbitron', monospace;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}
.case-kpi-lbl {
    font-family: 'Fira Code', monospace;
    font-size: 8px;
    color: var(--text3);
    margin-top: 4px;
    letter-spacing: .5px;
}
.case-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

/* 14. TIMELINE ======================================================= */
.timeline { display: flex; flex-direction: column; }
.tl-item {
    display: flex;
    gap: 32px;
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
    opacity: 0;
    transform: translateX(-20px);
    transition: all .5s var(--ease);
}
.tl-item.vis { opacity: 1; transform: translateX(0); }
.tl-left { flex: 0 0 200px; }
.tl-date {
    font-family: 'Fira Code', monospace;
    font-size: 11px;
    color: var(--cyan);
    margin-bottom: 6px;
}
.tl-company {
    font-family: 'Orbitron', monospace;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
    letter-spacing: 1px;
}
.tl-loc {
    font-family: 'Fira Code', monospace;
    font-size: 10px;
    color: var(--text2);
}
.tl-role {
    font-family: 'Exo 2', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--cyan);
    margin-bottom: 10px;
}
.tl-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.tl-bullets li {
    font-size: 13px;
    color: var(--text2);
    line-height: 1.6;
    padding-left: 16px;
    position: relative;
}
.tl-bullets li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--cyan);
    font-size: 10px;
    top: 3px;
}
.tl-bullets li strong { color: var(--text); }

/* 15. CERTIFICATIONS ================================================= */
.cert-row {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
    opacity: 0;
    transform: translateX(-20px);
    transition: all .5s var(--ease);
}
.cert-row.vis { opacity: 1; transform: translateX(0); }
.cert-ico {
    width: 48px; height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.cert-name {
    font-family: 'Orbitron', monospace;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
    letter-spacing: 1px;
}
.cert-code {
    font-family: 'Fira Code', monospace;
    font-size: 10px;
    color: var(--text2);
}
.cert-tag {
    padding: 4px 12px;
    font-family: 'Fira Code', monospace;
    font-size: 9px;
    letter-spacing: 2px;
    white-space: nowrap;
    flex-shrink: 0;
}
.ct-earned { background: rgba(0, 255, 157, .08); border: 1px solid rgba(0, 255, 157, .3); color: var(--green); }
.ct-prog { background: rgba(0, 212, 255, .08); border: 1px solid rgba(0, 212, 255, .3); color: var(--cyan); }
.ct-plan { background: rgba(124, 92, 252, .08); border: 1px solid rgba(124, 92, 252, .3); color: var(--purple); }

/* 16. EDUCATION + LANGUAGES + REGION ================================= */
.edu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
}
.edu-h {
    font-family: 'Fira Code', monospace;
    font-size: 11px;
    color: var(--cyan);
    letter-spacing: 3px;
    margin-bottom: 18px;
    text-transform: uppercase;
}
.edu-item {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}
.edu-item:last-child { border-bottom: none; }
.edu-year {
    font-family: 'Fira Code', monospace;
    font-size: 10px;
    color: var(--cyan);
    margin-bottom: 4px;
    letter-spacing: 1px;
}
.edu-deg {
    font-family: 'Orbitron', monospace;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}
.edu-school {
    font-family: 'Fira Code', monospace;
    font-size: 11px;
    color: var(--text2);
}
.edu-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.edu-list li {
    font-size: 13px;
    color: var(--text2);
    padding-left: 16px;
    position: relative;
    line-height: 1.6;
}
.edu-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--cyan);
    font-size: 10px;
    top: 3px;
}

.lang-bar { margin-bottom: 18px; }
.lang-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}
.lang-name {
    font-family: 'Orbitron', monospace;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #fff;
}
.lang-level {
    font-family: 'Fira Code', monospace;
    font-size: 11px;
    color: var(--cyan);
}
.lang-meter {
    height: 4px;
    background: rgba(0, 212, 255, .08);
    overflow: hidden;
    border-radius: 2px;
}
.lang-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--cyan), var(--purple));
    box-shadow: 0 0 10px var(--cyan);
    transition: width 1.4s var(--ease);
}

.region-map {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 20px;
    margin-top: 12px;
}
.region-map svg { width: 100%; height: auto; }
.region-pin { transition: all .3s var(--ease); }
.region-pin:hover { transform: scale(1.4); }
.region-legend {
    display: flex;
    gap: 18px;
    margin-top: 10px;
    font-family: 'Fira Code', monospace;
    font-size: 10px;
    color: var(--text2);
}
.rdot {
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    margin-right: 4px;
    vertical-align: middle;
}
.rdot-active { background: var(--green); box-shadow: 0 0 8px var(--green); }
.rdot-target { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }

/* 17. INTERACTIVE TERMINAL =========================================== */
.term-shell {
    background: var(--bg);
    border: 1px solid var(--border-strong);
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .4), 0 0 30px rgba(0, 212, 255, .05);
    max-width: 900px;
}
.term-bar {
    background: var(--bg-elev);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border);
}
.term-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    display: inline-block;
}
.d-r { background: #ff5f57; }
.d-y { background: #febc2e; }
.d-g { background: #28c840; }
.term-title {
    margin-left: 12px;
    font-family: 'Fira Code', monospace;
    font-size: 11px;
    color: var(--text2);
}
.term-body {
    padding: 18px 22px;
    font-family: 'Fira Code', monospace;
    font-size: 12.5px;
    color: var(--text);
    height: 360px;
    overflow-y: auto;
    line-height: 1.7;
    background:
        linear-gradient(rgba(0, 212, 255, .015), transparent),
        var(--bg);
    outline: none;
}
.term-body::-webkit-scrollbar { width: 4px; }
.term-line { color: var(--text); }
.term-prompt { color: var(--green); margin-right: 6px; }
.term-out {
    color: var(--text2);
    margin: 4px 0 12px;
    white-space: pre-wrap;
}
.term-out .t-kw { color: var(--cyan); }
.term-out .t-ok { color: var(--green); }
.term-out .t-err { color: var(--red); }
.term-out .t-warn { color: var(--yellow); }
.term-out .t-str { color: var(--green); }
.term-out a { color: var(--cyan); text-decoration: underline; }

.term-input-row {
    display: flex;
    align-items: center;
    padding: 12px 22px;
    border-top: 1px solid var(--border);
    background: var(--bg-elev);
}
#term-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--cyan);
    font-family: 'Fira Code', monospace;
    font-size: 12.5px;
    caret-color: var(--cyan);
}
#term-input::placeholder { color: var(--text3); }

/* footer terminal block (in contact) */
.terminal-block {
    max-width: 680px;
    margin: 32px auto 0;
    background: var(--bg2);
    border: 1px solid var(--border);
    padding: 24px 28px;
    font-family: 'Fira Code', monospace;
    font-size: 12px;
    color: var(--text2);
    text-align: left;
    line-height: 2;
}
.terminal-block .t-dim { color: var(--text2); }
.terminal-block .t-kw { color: var(--cyan); }
.terminal-block .t-str { color: var(--yellow); }
.terminal-block .t-ok { color: var(--green); }

/* 18. CONTACT + FOOTER =============================================== */
.contact-wrap { max-width: 720px; margin: 0 auto; }
.sec-num-c {
    font-family: 'Fira Code', monospace;
    font-size: 10px;
    color: var(--cyan);
    letter-spacing: 4px;
    margin-bottom: 16px;
}
.contact-big {
    font-family: 'Orbitron', monospace;
    font-size: clamp(34px, 6vw, 68px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #fff;
    letter-spacing: 2px;
}
.contact-big span {
    color: var(--cyan);
    text-shadow: var(--glow);
}
.contact-lead {
    font-size: 13px;
    color: var(--text2);
    line-height: 1.9;
    margin-bottom: 36px;
}
.contact-btns {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

footer {
    border-top: 1px solid var(--border);
    padding: 26px 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}
.f-logo {
    font-family: 'Orbitron', monospace;
    font-size: 16px;
    font-weight: 900;
    color: var(--cyan);
    letter-spacing: 5px;
    text-shadow: var(--glow);
}
.f-meta {
    font-family: 'Fira Code', monospace;
    font-size: 10px;
    color: var(--text2);
    text-align: center;
    flex: 1;
}
.f-socials { display: flex; gap: 10px; }
.f-soc {
    width: 36px; height: 36px;
    border: 1px solid var(--border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: all .3s var(--ease);
    color: var(--text2);
}
.f-soc:hover {
    border-color: var(--cyan);
    color: var(--cyan);
    box-shadow: var(--glow);
}

/* 19. REVEAL ========================================================= */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .75s var(--ease), transform .75s var(--ease);
}
.reveal.vis { opacity: 1; transform: translateY(0); }

/* 20. RESPONSIVE ===================================================== */

/* Large desktop tweak */
@media (max-width: 1280px) {
    :root { --pad-x: 56px; }
    .nav-links { gap: 18px; }
}

/* Tablet landscape / small desktop */
@media (max-width: 1024px) {
    :root { --pad-x: 40px; --pad-y: 64px; }
    body { cursor: auto; }
    #cur, #cur-ring { display: none; }

    .hero-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .hero-text { text-align: center; }
    .hero-text .hero-btns { justify-content: center; }
    .hero-portrait { max-width: 400px; margin: 0 auto; order: -1; }
    .hp-tag.t-left { left: -2%; }
    .hp-tag.t-right { right: -2%; }

    .m-grid { grid-template-columns: repeat(3, 1fr); }
    .m-card:nth-child(3) { border-right: none; }
    .m-card:nth-child(4) { border-top: 1px solid var(--border); }
    .m-card:nth-child(5) { border-top: 1px solid var(--border); }

    .ach-grid { grid-template-columns: repeat(2, 1fr); }
    .arch-wrap { grid-template-columns: 1fr; }
    .arch-info { position: static; min-height: auto; }
    .exp-grid { grid-template-columns: 1fr; }
    .cases-grid { grid-template-columns: 1fr; }

    .scale-wrap { gap: 32px; }
    .nav-links { display: none; }
    .hamburger { display: block; }

    /* Mobile drawer */
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 60px; left: 0; right: 0;
        background: rgba(3, 11, 18, .98);
        backdrop-filter: blur(24px);
        padding: 24px 32px;
        gap: 18px;
        border-bottom: 1px solid var(--border);
        max-height: calc(100vh - 60px);
        overflow-y: auto;
    }
    .nav-links.open a {
        font-size: 13px;
        padding: 8px 0;
        border-bottom: 1px solid var(--border);
    }
}

/* Tablet portrait / large mobile */
@media (max-width: 768px) {
    :root { --pad-x: 24px; --pad-y: 56px; }
    nav#topnav { padding: 0 18px; }
    .nav-logo { font-size: 15px; letter-spacing: 3px; }
    #clock { display: none; }

    #hero { padding: 80px 20px 60px; }
    .hero-stats { flex-direction: column; }
    .h-stat {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    .h-stat:last-child { border-bottom: none; }

    .m-grid { grid-template-columns: repeat(2, 1fr); }
    .m-card { border-right: 1px solid var(--border); }
    .m-card:nth-child(2n) { border-right: none; }
    .m-card:nth-child(n+3) { border-top: 1px solid var(--border); }

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

    .scale-wrap { flex-direction: column; gap: 24px; }
    .scale-controls { flex: 1 1 auto; width: 100%; }
    .nodes-grid { width: 100%; }

    .tl-item { flex-direction: column; gap: 12px; }
    .tl-left { flex: none; }

    .cert-row { flex-wrap: wrap; }

    .edu-grid { grid-template-columns: 1fr; gap: 32px; }

    .term-body { height: 280px; font-size: 11.5px; padding: 14px 18px; }
    .term-input-row { padding: 10px 18px; }

    footer { padding: 24px; flex-direction: column; text-align: center; }
    .f-meta { order: 2; }
}

/* Phone */
@media (max-width: 480px) {
    :root { --pad-x: 18px; --pad-y: 48px; }
    nav#topnav { padding: 0 14px; height: 56px; }
    .nav-logo { font-size: 13px; letter-spacing: 2px; }
    .sys-status span { display: none; }
    .lang-toggle { padding: 4px 8px; font-size: 9px; }
    .nav-links.open { top: 56px; }

    #hero { padding: 70px 16px 50px; }
    .hero-pill { font-size: 9px; padding: 5px 12px; letter-spacing: 2px; }
    .hero-name { letter-spacing: 4px; }
    .hero-role { font-size: 12px; }
    .hero-btns { flex-direction: column; align-items: stretch; }
    .btn { justify-content: center; padding: 11px 22px; }
    .h-stat { padding: 12px 16px; }

    .m-grid { grid-template-columns: 1fr; }
    .m-card { border-right: none !important; border-bottom: 1px solid var(--border); }
    .m-card:last-child { border-bottom: none; }

    .sec-head { gap: 10px; margin-bottom: 32px; }
    .sec-title { letter-spacing: 2px; font-size: 16px; }

    .ach-card { padding: 22px; }
    .ach-num { font-size: 30px; }

    .arch-canvas { padding: 14px; min-height: 380px; }
    .arch-info { padding: 18px; }

    .exp-card { padding: 22px; }

    .case-card { padding: 22px; }
    .case-kpis { grid-template-columns: 1fr; }

    .pipeline-wrap { padding: 8px 4px 12px; }
    .pipe-actions { gap: 14px; }

    .contact-btns { flex-direction: column; align-items: stretch; }
    .terminal-block { padding: 18px 16px; font-size: 11px; }
}

/* 21. REDUCED MOTION + PRINT ========================================= */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
    #scanline, .arch-link.flow, .sdot, .blink { animation: none !important; }
}

@media print {
    body { background: #fff; color: #000; cursor: auto; }
    nav, #boot-screen, #cur, #cur-ring, #grid-bg, #scanline,
    #hero-canvas, .hero-scroll, .term-shell, .pipeline-wrap, .nodes-grid { display: none !important; }
    .sec { padding: 24px !important; page-break-inside: avoid; }
    a[href]::after { content: " (" attr(href) ")"; font-size: 10px; color: #555; }
}

#about p {
    margin-bottom: 16px;
    font-size: 15px;
}