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

:root {
    --bg:        #030309;
    --bg2:       #07071a;
    --bg3:       #0b0b24;
    --cyan:      #00e5ff;
    --cyan2:     rgba(0,229,255,0.6);
    --cyan3:     rgba(0,229,255,0.15);
    --cyan4:     rgba(0,229,255,0.05);
    --purple:    #9d4edd;
    --purple2:   rgba(157,78,221,0.5);
    --purple3:   rgba(157,78,221,0.1);
    --pink:      #ff2d78;
    --pink2:     rgba(255,45,120,0.5);
    --pink3:     rgba(255,45,120,0.1);
    --green:     #00ff88;
    --yellow:    #ffe234;
    --white:     #eeeeff;
    --white2:    rgba(238,238,255,0.6);
    --white3:    rgba(238,238,255,0.08);
    --glass:     rgba(255,255,255,0.03);
    --border:    rgba(255,255,255,0.07);
    --f-display: 'Orbitron', monospace;
    --f-body:    'Rajdhani', sans-serif;
    --f-mono:    'JetBrains Mono', monospace;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--cyan) var(--bg);
}
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--cyan); }

body {
    background: var(--bg);
    color: var(--white);
    font-family: var(--f-body);
    overflow-x: hidden;
    cursor: none;
}


/* ================================================
   BACKGROUND CANVAS & SCANLINES
   ================================================ */
#bg-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

#scanlines {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0,0,0,0.07) 2px,
        rgba(0,0,0,0.07) 4px
    );
}


/* ================================================
   CUSTOM CURSOR
   ================================================ */
#cursor-ring {
    position: fixed;
    width: 36px; height: 36px;
    border: 1.5px solid var(--cyan);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width .2s, height .2s, border-color .2s, background .2s, opacity .3s;
    mix-blend-mode: difference;
    opacity: 0;
}
#cursor-dot {
    position: fixed;
    width: 5px; height: 5px;
    background: var(--cyan);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity .3s;
}
body.hover-link #cursor-ring {
    width: 56px; height: 56px;
    border-color: var(--pink);
    background: var(--pink3);
}
@media (hover: none), (pointer: coarse) {
    body { cursor: auto; }
    #cursor-ring, #cursor-dot { display: none !important; }
}


/* ================================================
   BOOT LOADER
   ================================================ */
#loader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s, visibility 0.8s;
}
#loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.loader-inner {
    width: 420px;
    max-width: 90vw;
}
.loader-logo {
    font-family: var(--f-display);
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 900;
    color: var(--cyan);
    letter-spacing: 0.2em;
    margin-bottom: 2.5rem;
    text-shadow: 0 0 30px var(--cyan);
}
.loader-terminal {
    font-family: var(--f-mono);
    font-size: 0.78rem;
    color: var(--white2);
    line-height: 2;
    margin-bottom: 2rem;
    min-height: 120px;
}
.loader-terminal .t-line {
    display: block;
    opacity: 0;
    animation: fadeIn .3s forwards;
}
.loader-terminal .t-ok {
    color: var(--green);
}
.loader-track {
    height: 2px;
    background: var(--border);
    border-radius: 1px;
    overflow: hidden;
    margin-bottom: 0.7rem;
}
.loader-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--purple), var(--cyan));
    box-shadow: 0 0 12px var(--cyan);
    transition: width 0.1s;
}
.loader-pct {
    font-family: var(--f-mono);
    font-size: 0.75rem;
    color: var(--cyan);
    letter-spacing: 0.2em;
    text-align: right;
}


/* ================================================
   GLITCH EFFECT
   ================================================ */
.glitch {
    position: relative;
    display: inline-block;
}
.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}
.glitch::before {
    left: 2px;
    color: var(--pink);
    animation: glitch-a 5s infinite;
}
.glitch::after {
    left: -2px;
    color: var(--cyan);
    animation: glitch-b 5s infinite;
}


/* ================================================
   NAVBAR
   ================================================ */
#navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.3rem 3.5rem;
    background: rgba(3,3,9,0.85);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    transition: padding .3s, border-color .3s;
}
#navbar.scrolled {
    padding: 0.9rem 3.5rem;
    border-bottom-color: var(--cyan3);
}
.nav-logo {
    font-family: var(--f-display);
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--cyan);
    text-decoration: none;
    letter-spacing: 0.12em;
    text-shadow: 0 0 20px var(--cyan);
}
.nav-links {
    display: flex;
    list-style: none;
    gap: 2.8rem;
}
.nav-links a {
    font-family: var(--f-mono);
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--white2);
    text-decoration: none;
    position: relative;
    transition: color .3s;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 1px;
    background: var(--cyan);
    box-shadow: 0 0 8px var(--cyan);
    transition: width .3s;
}
.nav-links a:hover { color: var(--cyan); }
.nav-links a:hover::after { width: 100%; }
.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.nav-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--f-mono);
    font-size: 0.72rem;
    color: var(--green);
    padding: 0.3rem 0.8rem;
    border: 1px solid rgba(0,255,136,0.3);
    border-radius: 100px;
}
.lang-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--white2);
    font-family: var(--f-mono);
    font-size: .72rem;
    letter-spacing: .12em;
    padding: .3rem .75rem;
    cursor: pointer;
    border-radius: 2px;
    transition: border-color .3s, color .3s;
    white-space: nowrap;
}
.lang-btn:hover {
    border-color: var(--cyan);
    color: var(--white);
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
}
a:focus-visible,
button:focus-visible {
    box-shadow: 0 0 0 4px rgba(0,229,255,.14);
}
#lang-active {
    color: var(--cyan);
    font-weight: 700;
}
.lang-sep {
    margin: 0 .2rem;
    opacity: .3;
}
.pulse-dot {
    width: 6px; height: 6px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse-green 1.6s infinite;
}


/* ================================================
   HERO
   ================================================ */
#hero {
    position: relative;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    padding: 8rem 3.5rem 4rem;
    z-index: 2;
    overflow: hidden;
}
#hero::before {
    content: '';
    position: absolute;
    top: -10%; right: -5%;
    width: 700px; height: 700px;
    background: radial-gradient(circle, var(--purple2) 0%, transparent 65%);
    pointer-events: none;
    opacity: 0.4;
}
#hero::after {
    content: '';
    position: absolute;
    bottom: -15%; left: -5%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, var(--cyan3) 0%, transparent 65%);
    pointer-events: none;
    opacity: 0.5;
}

.hero-content { position: relative; z-index: 2; }

.hero-eyebrow {
    font-family: var(--f-mono);
    font-size: 0.88rem;
    color: var(--cyan);
    letter-spacing: 0.25em;
    margin-bottom: 1.8rem;
    opacity: 0;
    animation: fadeInUp .8s .2s forwards;
}
.bracket { color: var(--pink); }
.cursor-blink {
    animation: blink .9s step-end infinite;
    color: var(--cyan);
}

.hero-heading {
    display: flex;
    flex-direction: column;
    font-family: var(--f-display);
    font-weight: 900;
    line-height: 1.0;
    margin-bottom: 2rem;
}
.h1-line {
    font-size: clamp(2.8rem, 5.5vw, 5.5rem);
    color: var(--white);
    opacity: 0;
}
.h1-line:nth-child(1) { animation: fadeInUp .8s .4s forwards; }
.h1-line:nth-child(2) { animation: fadeInUp .8s .6s forwards; }
.h1-line:nth-child(3) { animation: fadeInUp .8s .8s forwards; }
.h1-outline {
    color: transparent;
    -webkit-text-stroke: 2px var(--cyan);
    filter: drop-shadow(0 0 18px var(--cyan));
}

.hero-sub {
    font-size: 1.12rem;
    line-height: 1.75;
    color: var(--white2);
    max-width: 460px;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeInUp .8s 1s forwards;
}
.hero-sub em {
    font-style: normal;
    color: var(--cyan);
    font-weight: 600;
}

.hero-cta {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 3.5rem;
    opacity: 0;
    animation: fadeInUp .8s 1.2s forwards;
}

/* ---- Buttons ---- */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .9rem 2rem;
    font-family: var(--f-mono);
    font-size: .82rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    overflow: hidden;
    transition: all .3s;
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}
.btn-primary {
    background: var(--cyan);
    color: var(--bg);
    font-weight: 700;
}
.btn-primary:hover {
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 40px var(--cyan3);
}
.btn-shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.5) 50%, transparent 60%);
    transform: translateX(-100%);
    transition: transform .5s;
}
.btn-primary:hover .btn-shimmer { transform: translateX(100%); }
.btn-ghost {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--border);
}
.btn-ghost:hover {
    border-color: var(--cyan);
    color: var(--cyan);
    box-shadow: 0 0 20px var(--cyan3), inset 0 0 20px var(--cyan4);
    transform: translateY(-3px);
}
.w-full { width: 100%; }

/* ---- Stats ---- */
.hero-stats {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    opacity: 0;
    animation: fadeInUp .8s 1.4s forwards;
}
.stat-val {
    font-family: var(--f-display);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--cyan);
    line-height: 1;
    text-shadow: 0 0 20px var(--cyan);
}
.stat-label {
    font-family: var(--f-mono);
    font-size: .68rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--white2);
    margin-top: .3rem;
}
.stat-sep {
    width: 1px;
    height: 40px;
    background: var(--border);
}


/* ---- Orbit / Cube visual ---- */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
    opacity: 0;
    animation: fadeIn 1.2s 0.8s forwards;
}
.orbit-system {
    position: relative;
    width: 400px; height: 400px;
}
.orbit-ring {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid;
}
.o-ring-1 {
    width: 190px; height: 190px;
    border-color: var(--cyan3);
    animation: spin-cw 6s linear infinite;
}
.o-ring-2 {
    width: 300px; height: 300px;
    border-color: var(--purple2);
    animation: spin-ccw 10s linear infinite;
}
.o-ring-3 {
    width: 390px; height: 390px;
    border-color: var(--border);
    animation: spin-cw 18s linear infinite;
}

/* Satellites */
.sat {
    position: absolute;
    top: 50%; left: 50%;
    font-family: var(--f-mono);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .12em;
    padding: .3rem .65rem;
    background: var(--glass);
    border: 1px solid var(--cyan2);
    color: var(--cyan);
    border-radius: 3px;
    white-space: nowrap;
}
.sat-a { animation: orbit-sat 6s linear infinite; }
.sat-b { animation: orbit-sat 6s linear infinite; animation-delay: -3s; }
.sat-c { animation: orbit-sat2 10s linear infinite; }
.sat-d { animation: orbit-sat2 10s linear infinite; animation-delay: -5s; }

/* 3D Cube */
.orbit-core {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 110px; height: 110px;
}
.scene {
    width: 110px; height: 110px;
    perspective: 500px;
}
.cube {
    width: 100%; height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: cube-rotate 9s linear infinite;
}
.face {
    position: absolute;
    width: 110px; height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--f-display);
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: .18em;
    border: 1px solid var(--cyan2);
    background: rgba(0,229,255,0.04);
    backdrop-filter: blur(8px);
    color: var(--cyan);
    text-shadow: 0 0 15px var(--cyan);
}
.face-front  { transform: rotateY(0deg)    translateZ(55px); }
.face-back   { transform: rotateY(180deg)  translateZ(55px); }
.face-left   { transform: rotateY(-90deg)  translateZ(55px); }
.face-right  { transform: rotateY(90deg)   translateZ(55px); }
.face-top    { transform: rotateX(90deg)   translateZ(55px); }
.face-bot    { transform: rotateX(-90deg)  translateZ(55px); }

/* Scroll cue */
.scroll-cue {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    font-family: var(--f-mono);
    font-size: .6rem;
    letter-spacing: .4em;
    color: var(--white2);
    z-index: 2;
    opacity: 0;
    animation: fadeIn 1s 2.2s forwards;
}
.scroll-beam {
    width: 1px;
    height: 55px;
    background: linear-gradient(to bottom, var(--cyan), transparent);
    animation: beam-scroll 2s ease infinite;
}


/* ================================================
   SECTION COMMONS
   ================================================ */
section {
    position: relative;
    z-index: 2;
    padding: 7rem 3.5rem;
}
.section-hdr {
    text-align: center;
    margin-bottom: 4.5rem;
}
.section-tag {
    display: block;
    font-family: var(--f-mono);
    font-size: .76rem;
    letter-spacing: .35em;
    color: var(--cyan);
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.section-hdr h2 {
    font-family: var(--f-display);
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: .9rem;
}
.section-hdr p {
    font-size: 1.08rem;
    color: var(--white2);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.7;
}
.glow-cyan   { color: var(--cyan);   text-shadow: 0 0 25px var(--cyan); }
.glow-purple { color: var(--purple); text-shadow: 0 0 25px var(--purple); }
.glow-pink   { color: var(--pink);   text-shadow: 0 0 25px var(--pink); }

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity .9s ease, transform .9s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ================================================
   WORK — PROJECT CARDS
   ================================================ */
#work {
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
}
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.project-card {
    position: relative;
    background: var(--glass);
    border: 1px solid var(--border);
    overflow: hidden;
    cursor: pointer;
    clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
    transform-style: preserve-3d;
    will-change: transform;
    transition: border-color .3s;
    opacity: 0;
    transform: translateY(40px);
    display: flex;
    flex-direction: column;
}
.project-card.visible {
    opacity: 1;
    transform: translateY(0) !important;
    transition: opacity .7s ease, transform .7s ease, border-color .3s;
}
.project-card:hover {
    border-color: rgba(255,255,255,0.15);
}

/* Holographic overlay (driven by JS mouse) */
.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .4s;
    z-index: 5;
    pointer-events: none;
    background: var(--holo, none);
    mix-blend-mode: screen;
}
.project-card:hover::before { opacity: 1; }

/* Card visual strip */
.card-thumb {
    height: 195px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.card-thumb-bg {
    position: absolute;
    inset: 0;
    background: var(--card-grad);
    transition: transform .5s;
}
.project-card:hover .card-thumb-bg { transform: scale(1.06); }
.card-thumb-label {
    position: relative;
    z-index: 1;
    font-family: var(--f-display);
    font-size: 2.2rem;
    font-weight: 900;
    color: rgba(255,255,255,0.12);
    letter-spacing: .3em;
    text-transform: uppercase;
    user-select: none;
}
.card-num {
    position: absolute;
    top: 1rem; right: 1.2rem;
    font-family: var(--f-mono);
    font-size: .65rem;
    color: rgba(255,255,255,0.25);
    letter-spacing: .2em;
    z-index: 2;
}
.card-cat {
    position: absolute;
    bottom: 1rem; left: 1.2rem;
    font-family: var(--f-mono);
    font-size: .63rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    padding: .22rem .55rem;
    border: 1px solid var(--card-accent);
    color: var(--card-accent);
    background: rgba(0,0,0,0.45);
    border-radius: 2px;
    z-index: 2;
}

/* Card body */
.card-body {
    padding: 1.5rem 1.6rem 1.6rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.card-title {
    font-family: var(--f-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: .55rem;
    letter-spacing: .06em;
}
.card-desc {
    font-size: .95rem;
    color: var(--white2);
    line-height: 1.6;
    margin-bottom: 1.2rem;
    flex: 1;
}
.card-techs {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-bottom: 1.2rem;
    margin-top: auto;
}
.card-tech-pill {
    font-family: var(--f-mono);
    font-size: .62rem;
    letter-spacing: .1em;
    color: var(--white2);
    padding: .18rem .5rem;
    border: 1px solid var(--border);
    border-radius: 2px;
}
.card-link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-family: var(--f-mono);
    font-size: .72rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--card-accent);
    text-decoration: none;
    transition: gap .3s;
}
.card-link:hover { gap: .9rem; }
.card-corner {
    position: absolute;
    bottom: 0; right: 0;
    width: 0; height: 0;
    border-style: solid;
    border-width: 0 0 22px 22px;
    border-color: transparent transparent var(--card-accent) transparent;
    opacity: .35;
}

/* CTA "Your Project" card */
.card-cta {
    border-style: dashed !important;
    border-color: rgba(0,255,136,0.2) !important;
    min-height: 320px;
}
.card-cta:hover {
    border-color: rgba(0,255,136,0.5) !important;
    background: rgba(0,255,136,0.03) !important;
}
.card-cta-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 3rem 2rem;
    text-decoration: none;
    height: 100%;
    min-height: 320px;
    text-align: center;
}
.cta-plus {
    font-family: var(--f-display);
    font-size: 3rem;
    color: var(--green);
    line-height: 1;
    opacity: .5;
    transition: opacity .3s, transform .3s;
}
.card-cta:hover .cta-plus {
    opacity: 1;
    transform: scale(1.1) rotate(90deg);
}
.cta-label {
    font-family: var(--f-mono);
    font-size: .68rem;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--green);
    opacity: .6;
}
.cta-title {
    font-family: var(--f-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
}
.cta-desc {
    font-size: .9rem;
    color: var(--white2);
    line-height: 1.6;
    max-width: 280px;
}
.cta-action {
    font-family: var(--f-mono);
    font-size: .75rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--green);
    margin-top: .5rem;
    transition: letter-spacing .3s;
}
.card-cta:hover .cta-action { letter-spacing: .35em; }


/* ================================================
   SKILLS
   ================================================ */
#skills { background: var(--bg2); }

.skills-layout {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 5rem;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
}

#skills-bars {}
.skill-item {
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity .7s, transform .7s;
}
.skill-item.visible {
    opacity: 1;
    transform: translateX(0);
}
.skill-row {
    display: flex;
    justify-content: space-between;
    font-family: var(--f-mono);
    font-size: .78rem;
    letter-spacing: .12em;
    margin-bottom: .5rem;
}
.skill-name { color: var(--white); }
.skill-pct  { color: var(--cyan);  }
.skill-track {
    height: 3px;
    background: var(--border);
    border-radius: 2px;
    overflow: visible;
    position: relative;
}
.skill-bar {
    height: 100%;
    width: 0;
    border-radius: 2px;
    background: var(--skill-color, var(--cyan));
    box-shadow: 0 0 10px var(--skill-color, var(--cyan));
    transition: width 1.4s cubic-bezier(.4,0,.2,1);
    position: relative;
}
.skill-bar::after {
    content: '';
    position: absolute;
    right: -1px; top: -5px;
    width: 13px; height: 13px;
    background: var(--skill-color, var(--cyan));
    border-radius: 50%;
    box-shadow: 0 0 12px var(--skill-color, var(--cyan));
}

#skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-content: flex-start;
}
.stag {
    font-family: var(--f-mono);
    font-size: .78rem;
    letter-spacing: .12em;
    padding: .55rem 1.1rem;
    border: 1px solid;
    border-radius: 3px;
    cursor: default;
    opacity: 0;
    transform: scale(.85);
    transition: opacity .5s, transform .5s, box-shadow .3s, background .3s;
}
.stag.visible {
    opacity: 1;
    transform: scale(1);
}
.stag:hover {
    transform: scale(1.06) translateY(-3px);
}


/* ================================================
   HOSTING
   ================================================ */
#hosting {
    background: var(--bg);
    position: relative;
    overflow: hidden;
}
#hosting::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(0,229,255,0.06) 0%, transparent 65%);
    pointer-events: none;
}

.hosting-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto 3.5rem;
}

.hosting-card {
    background: var(--glass);
    border: 1px solid var(--border);
    padding: 2rem 1.8rem;
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
    transition: border-color .3s, background .3s, transform .3s;
}
.hosting-card:hover {
    border-color: var(--cyan3);
    background: var(--cyan4);
    transform: translateY(-4px);
}
.hc-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1.4rem;
    position: relative;
}

/* ---- Shared animated icon wrapper ---- */
.anim-icon {
    width: 64px;
    height: 64px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   ICON 1 — LIGHTNING BOLT
   ============================================ */
.icon-bolt .bolt-shape {
    width: 26px;
    height: 40px;
    background: var(--yellow);
    clip-path: polygon(65% 0%, 20% 52%, 52% 52%, 35% 100%, 80% 48%, 48% 48%);
    filter: drop-shadow(0 0 6px var(--yellow));
    animation: bolt-pulse 1.6s ease-in-out infinite;
    position: relative;
    z-index: 2;
}
.icon-bolt .bolt-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(255,226,52,0.25);
    animation: bolt-ring-expand 1.6s ease-out infinite;
}

@keyframes bolt-pulse {
    0%,100% { filter: drop-shadow(0 0 4px var(--yellow));  opacity: 1;   transform: scale(1);    }
    50%      { filter: drop-shadow(0 0 14px var(--yellow)); opacity: .85; transform: scale(1.08); }
}
@keyframes bolt-ring-expand {
    0%   { transform: scale(.6); opacity: .6; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* ============================================
   ICON 2 — SHIELD WITH SCAN LINE
   ============================================ */
.icon-shield .shield-body {
    width: 36px;
    height: 42px;
    background: transparent;
    border: 2px solid var(--cyan);
    clip-path: polygon(50% 0%, 100% 18%, 100% 58%, 50% 100%, 0% 58%, 0% 18%);
    box-shadow: 0 0 12px var(--cyan3), inset 0 0 12px var(--cyan4);
    position: relative;
    z-index: 2;
    animation: shield-glow 2.5s ease-in-out infinite;
}
.icon-shield .shield-scan {
    position: absolute;
    left: 14px;
    width: 36px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
    box-shadow: 0 0 8px var(--cyan);
    animation: shield-scan 2s ease-in-out infinite;
    z-index: 3;
    border-radius: 1px;
}

@keyframes shield-glow {
    0%,100% { box-shadow: 0 0 8px var(--cyan3),  inset 0 0 8px  var(--cyan4); }
    50%      { box-shadow: 0 0 20px var(--cyan2), inset 0 0 16px var(--cyan3); }
}
@keyframes shield-scan {
    0%   { top: 16px; opacity: 0;   }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { top: 48px; opacity: 0;   }
}

/* ============================================
   ICON 3 — SPINNING GEAR
   ============================================ */
.icon-gear .gear-outer {
    position: absolute;
    width: 54px; height: 54px;
    border-radius: 50%;
    border: 2px dashed var(--purple);
    box-shadow: 0 0 10px var(--purple3);
    animation: gear-spin-cw 4s linear infinite;
}
.icon-gear .gear-mid {
    position: absolute;
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 1.5px solid var(--purple2);
    animation: gear-spin-ccw 3s linear infinite;
}
.icon-gear .gear-core {
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--purple3);
    border: 2px solid var(--purple);
    box-shadow: 0 0 14px var(--purple2);
    animation: gear-core-pulse 2s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

@keyframes gear-spin-cw  { to { transform: rotate(360deg);  } }
@keyframes gear-spin-ccw { to { transform: rotate(-360deg); } }
@keyframes gear-core-pulse {
    0%,100% { box-shadow: 0 0 8px  var(--purple2); }
    50%      { box-shadow: 0 0 22px var(--purple);  }
}

/* ============================================
   ICON 4 — ANIMATED BAR CHART
   ============================================ */
.icon-chart {
    align-items: flex-end !important;
    gap: 5px;
    padding-bottom: 4px;
    position: relative;
}
.cbar {
    width: 9px;
    height: var(--bh);
    background: linear-gradient(to top, var(--green), rgba(0,255,136,.4));
    border-radius: 2px 2px 0 0;
    box-shadow: 0 0 8px rgba(0,255,136,.5);
    animation: bar-grow 1.8s ease-in-out var(--bd) infinite alternate;
}
.chart-base {
    position: absolute;
    bottom: 2px; left: 0; right: 0;
    height: 1px;
    background: rgba(0,255,136,.3);
    box-shadow: 0 0 4px rgba(0,255,136,.3);
}

@keyframes bar-grow {
    0%   { transform: scaleY(.35); opacity: .6; }
    100% { transform: scaleY(1);   opacity: 1;  filter: drop-shadow(0 0 4px var(--green)); }
}
.hosting-card h3 {
    font-family: var(--f-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: .08em;
    margin-bottom: .7rem;
}
.hosting-card p {
    font-size: .95rem;
    color: var(--white2);
    line-height: 1.65;
}

.hosting-cta {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem 2.5rem;
    border: 1px solid var(--cyan3);
    background: linear-gradient(90deg, rgba(0,229,255,0.05) 0%, transparent 100%);
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}
.hosting-badge {
    display: inline-block;
    font-family: var(--f-mono);
    font-size: .65rem;
    letter-spacing: .25em;
    color: var(--cyan);
    border: 1px solid var(--cyan3);
    padding: .25rem .65rem;
    border-radius: 2px;
    margin-bottom: .75rem;
}
.hosting-cta-text p {
    font-size: 1rem;
    color: var(--white2);
    line-height: 1.6;
    max-width: 560px;
}

@media (max-width: 700px) {
    .hosting-cta {
        flex-direction: column;
        text-align: center;
    }
    .hosting-cta-text p { max-width: 100%; }
}

/* ================================================
   CONTACT
   ================================================ */
#contact {
    background: linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%);
}
.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
}
.contact-info h2 {
    font-family: var(--f-display);
    font-size: clamp(1.7rem, 2.8vw, 2.7rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.3;
    margin: 1rem 0 1.2rem;
}
.contact-info p {
    font-size: 1.05rem;
    color: var(--white2);
    line-height: 1.75;
    margin-bottom: 2.5rem;
}
.channels {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.channel {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    padding: .9rem 1.2rem;
    background: var(--glass);
    border: 1px solid var(--border);
    text-decoration: none;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
    transition: border-color .3s, transform .3s, background .3s;
}
.channel:hover {
    border-color: var(--cyan2);
    background: var(--cyan4);
    transform: translateX(6px);
}
.ch-icon {
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.15rem;
    color: var(--cyan);
    border: 1px solid var(--cyan3);
    flex-shrink: 0;
}
.ch-label {
    font-family: var(--f-mono);
    font-size: .68rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--white2);
    margin-bottom: .15rem;
}
.ch-val {
    font-size: 1rem;
    color: var(--white);
}

/* Form */
.contact-form-wrap {
    background: var(--glass);
    border: 1px solid var(--border);
    padding: 2.5rem;
    clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}
.field {
    position: relative;
    margin-bottom: 2.2rem;
}
.field input,
.field textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border);
    color: var(--white);
    font-family: var(--f-body);
    font-size: 1rem;
    padding: 1.2rem 0 .5rem;
    transition: border-color .3s;
    resize: none;
}
.field textarea { padding-top: 1.6rem; }
.field input:placeholder-shown + label,
.field textarea:placeholder-shown + label {
    top: 1.2rem;
    font-size: .8rem;
    color: var(--white2);
}
.field label {
    position: absolute;
    top: 0;
    left: 0;
    font-family: var(--f-mono);
    font-size: .65rem;
    letter-spacing: .18em;
    color: var(--cyan);
    text-transform: uppercase;
    transition: all .3s;
    pointer-events: none;
}
.field input:focus + label,
.field textarea:focus + label {
    top: 0;
    font-size: .65rem;
    color: var(--cyan);
}
.field-line {
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 1px;
    background: var(--cyan);
    box-shadow: 0 0 8px var(--cyan);
    transition: width .35s;
}
.field:focus-within .field-line { width: 100%; }
.field input:focus-visible,
.field textarea:focus-visible {
    outline: none;
    border-bottom-color: var(--cyan);
}

/* Honeypot — invisible to humans, filled by bots */
.hp-trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

/* Submit disabled/loading state */
.btn:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none !important;
}
.btn:disabled .btn-shimmer { display: none; }

.form-error {
    margin: -.6rem 0 1.4rem;
    font-family: var(--f-mono);
    font-size: .78rem;
    line-height: 1.6;
    color: #ff9dbd;
    letter-spacing: .04em;
}

/* Form success */
.form-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 3rem;
    font-family: var(--f-mono);
    color: var(--green);
    text-align: center;
}
.success-icon {
    font-size: 3rem;
    width: 80px; height: 80px;
    border: 2px solid var(--green);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 30px rgba(0,255,136,.4);
    animation: pulse-green 2s infinite;
}
.hidden { display: none !important; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    #scanlines,
    #cursor-ring,
    #cursor-dot,
    .glitch::before,
    .glitch::after,
    .scroll-cue,
    .hero-floater,
    .hero-ripple {
        display: none !important;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}


/* ================================================
   FOOTER
   ================================================ */
#footer {
    padding: 2rem 3.5rem;
    border-top: 1px solid var(--border);
    z-index: 2;
    position: relative;
}
.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--f-mono);
    font-size: .72rem;
    color: var(--white2);
}
.footer-logo {
    font-family: var(--f-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--cyan);
    letter-spacing: .12em;
    text-shadow: 0 0 15px var(--cyan);
}


/* ================================================
   KEYFRAME ANIMATIONS
   ================================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0);    }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes blink {
    0%,100% { opacity: 1; }
    50%      { opacity: 0; }
}
@keyframes glitch-a {
    0%,94%,100% { clip-path: inset(50% 0 50% 0); transform: none; opacity: 0; }
    95%  { clip-path: inset(10% 0 80% 0); transform: translateX(-5px); opacity: 1; color: var(--pink); }
    96%  { clip-path: inset(60% 0 10% 0); transform: translateX(5px);  opacity: 1; color: var(--pink); }
    97%  { clip-path: inset(30% 0 50% 0); transform: translateX(-3px); opacity: 1; }
    98%  { clip-path: inset(0% 0 0% 0);   transform: none; opacity: .5; }
}
@keyframes glitch-b {
    0%,94%,100% { clip-path: inset(50% 0 50% 0); transform: none; opacity: 0; }
    95%  { clip-path: inset(50% 0 30% 0); transform: translateX(5px);  opacity: 1; color: var(--cyan); }
    96%  { clip-path: inset(20% 0 60% 0); transform: translateX(-5px); opacity: 1; color: var(--cyan); }
    97%  { clip-path: inset(70% 0 15% 0); transform: translateX(3px);  opacity: 1; }
    98%  { clip-path: inset(0% 0 0% 0);   transform: none; opacity: .5; }
}
@keyframes spin-cw  {
    from { transform: translate(-50%,-50%) rotate(0deg); }
    to   { transform: translate(-50%,-50%) rotate(360deg); }
}
@keyframes spin-ccw {
    from { transform: translate(-50%,-50%) rotate(0deg); }
    to   { transform: translate(-50%,-50%) rotate(-360deg); }
}
@keyframes cube-rotate {
    0%   { transform: rotateX(20deg) rotateY(0deg); }
    100% { transform: rotateX(20deg) rotateY(360deg); }
}
@keyframes orbit-sat {
    from { transform: translate(-50%,-50%) rotate(0deg) translateX(95px) rotate(0deg); }
    to   { transform: translate(-50%,-50%) rotate(360deg) translateX(95px) rotate(-360deg); }
}
@keyframes orbit-sat2 {
    from { transform: translate(-50%,-50%) rotate(0deg) translateX(148px) rotate(0deg); }
    to   { transform: translate(-50%,-50%) rotate(-360deg) translateX(148px) rotate(360deg); }
}
@keyframes pulse-green {
    0%,100% { box-shadow: 0 0 0 0 rgba(0,255,136,.4); }
    50%     { box-shadow: 0 0 0 8px rgba(0,255,136,0); }
}
@keyframes beam-scroll {
    0%  { transform: scaleY(0); transform-origin: top; opacity: 1; }
    50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
    51% { transform-origin: bottom; }
    100%{ transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}


/* ================================================
   HERO INTERACTIONS
   ================================================ */
.hero-floater {
    position: absolute;
    font-family: var(--f-mono);
    font-size: .6rem;
    pointer-events: none;
    z-index: 1;
    white-space: nowrap;
    user-select: none;
    will-change: transform;
    transition: opacity .6s;
}
.hero-ripple {
    position: absolute;
    width: 60px; height: 60px;
    border: 1px solid var(--cyan);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%,-50%) scale(0);
    animation: hero-ripple-anim .9s ease-out forwards;
}
.hero-ripple.pink {
    border-color: var(--pink);
    animation: hero-ripple-pink .9s ease-out forwards;
}
@keyframes hero-ripple-anim {
    from { transform: translate(-50%,-50%) scale(0); opacity: .6; }
    to   { transform: translate(-50%,-50%) scale(9); opacity: 0; }
}
@keyframes hero-ripple-pink {
    from { transform: translate(-50%,-50%) scale(0); opacity: .5; }
    to   { transform: translate(-50%,-50%) scale(6); opacity: 0; }
}
.stat {
    cursor: default;
    transition: transform .3s;
}
.stat:hover { transform: translateY(-4px); }
.stat:hover .stat-val {
    text-shadow: 0 0 30px var(--cyan), 0 0 60px var(--cyan);
}
.o-ring-4 {
    width: 450px; height: 450px;
    border-color: rgba(157,78,221,.12);
    animation: spin-ccw 28s linear infinite;
}
@keyframes orbit-sat3 {
    from { transform: translate(-50%,-50%) rotate(0deg) translateX(222px) rotate(0deg); }
    to   { transform: translate(-50%,-50%) rotate(360deg) translateX(222px) rotate(-360deg); }
}
.sat-e { animation: orbit-sat3 14s linear infinite; }
.sat-f { animation: orbit-sat3 14s linear infinite; animation-delay: -7s; }
.sat.purple { border-color: var(--purple2); color: var(--purple); }
.sat.green  { border-color: rgba(0,255,136,.35); color: var(--green); }

/* ================================================
   RESPONSIVE
   ================================================ */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 36px; height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 200;
    padding: 0;
}
.hamburger span {
    display: block;
    width: 22px; height: 2px;
    background: var(--cyan);
    border-radius: 2px;
    transition: transform .3s, opacity .3s, width .3s;
    transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
    #hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 8rem 2rem 4rem;
    }
    .hero-visual { display: none; }
    .hero-cta, .hero-stats { justify-content: center; }
    .hero-sub { margin: 0 auto 2.5rem; }
    .skills-layout, .contact-wrap { grid-template-columns: 1fr; gap: 3rem; }
    #navbar { padding: 1rem 1.8rem; }
    .nav-badge { display: none; }
    section { padding: 5rem 2rem; }
    .hamburger { display: flex; }
    .nav-links {
        position: fixed;
        top: 0; left: 0; right: 0;
        height: 100vh;
        background: rgba(3,3,9,.97);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2.8rem;
        z-index: 150;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-12px);
        transition: opacity .3s, transform .3s;
    }
    .nav-links.open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }
    .nav-links a {
        font-size: 1.1rem;
        letter-spacing: .25em;
    }
}
@media (max-width: 600px) {
    .projects-grid { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; gap: .5rem; text-align: center; }
}
