/* ===== CSS Variables ===== */
:root {
    --bg: #020308;
    --bg2: #060b1a;
    --panel: rgba(6, 10, 28, 0.6);
    --border: rgba(0, 255, 204, 0.12);
    --border-h: rgba(0, 255, 204, 0.45);
    --cyan: #00ffcc;
    --pink: #ff00aa;
    --purple: #9d00ff;
    --blue: #00aaff;
    --text: #e8edf5;
    --muted: #6e7d90;
    --mono: 'Fira Code', monospace;
    --head: 'Orbitron', sans-serif;
    --body: 'Rajdhani', sans-serif;
}

/* ===== RESET & BASE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(0,255,204,0.25); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--cyan); }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--body);
    line-height: 1.7;
    overflow-x: hidden;
}

body.loading main, body.loading nav { display: none; }

/* Grid texture */
body::before {
    content: "";
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-image:
        linear-gradient(rgba(0,255,204,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,255,204,0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none; z-index: 0;
}

/* Noise overlay */
body::after {
    content: "";
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none; z-index: 9999; opacity: 0.35;
}

/* ===== SPLASH ===== */
.splash-screen {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: radial-gradient(ellipse at center, #07102a 0%, #000 100%);
    z-index: 5000; display: flex; align-items: center; justify-content: center;
    transition: opacity 0.8s ease-out; overflow: hidden;
}

.splash-screen::before {
    content: "";
    position: absolute; top: 0; left: 0; width: 200%; height: 200%;
    background-image:
        linear-gradient(rgba(0,255,204,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,255,204,0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(600px) rotateX(60deg) translateY(-50%);
    animation: grid-move 18s linear infinite; opacity: 0.7;
}

@keyframes grid-move { 0% { background-position: 0 0; } 100% { background-position: 0 1000px; } }

.splash-content {
    text-align: center; width: 90%; max-width: 680px; padding: 3rem;
    position: relative; z-index: 10;
    display: flex; flex-direction: column; align-items: center;
}

.splash-content h1.glitch { font-size: clamp(2rem, 8vw, 4.5rem); margin-bottom: 3rem; letter-spacing: 12px; }

.loader-bar-wrapper {
    width: 100%; height: 2px; background: rgba(0,255,204,0.08);
    margin: 2.5rem 0; overflow: hidden; border-radius: 1px;
}

.loader-progress {
    width: 0%; height: 100%;
    background: linear-gradient(90deg, var(--cyan), var(--pink), var(--cyan));
    background-size: 200% 100%;
    animation: shimmer 2s linear infinite;
    box-shadow: 0 0 12px var(--cyan), 0 0 24px rgba(0,255,204,0.3);
    transition: width 0.1s linear;
}

@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.mono-text {
    font-family: var(--mono); color: var(--cyan); font-size: 0.7rem;
    letter-spacing: 4px; text-transform: uppercase; opacity: 0.7;
}

.splash-screen.fade-out { opacity: 0; pointer-events: none; }

/* ===== BACKGROUND ===== */
#bgCanvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

.overlay-grad {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background:
        radial-gradient(ellipse at 5% 10%, rgba(157,0,255,0.06), transparent 55%),
        radial-gradient(ellipse at 95% 90%, rgba(0,255,204,0.05), transparent 55%);
    z-index: 0; pointer-events: none;
}

/* ===== LAYOUT ===== */
.container { max-width: 1400px; margin: 0 auto; padding: 0 4rem; position: relative; z-index: 1; }

.glass-panel {
    background: var(--panel);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.highlight { color: var(--cyan); }
.mt-2 { margin-top: 1.2rem; }

.blink { animation: blinking 1s step-end infinite !important; }
@keyframes blinking { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== NAVBAR ===== */
.navbar {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    background: rgba(2,3,8,0.8);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(0,255,204,0.06);
    transition: background 0.3s;
}

.nav-content {
    max-width: 1400px; margin: 0 auto; padding: 1.1rem 4rem;
    display: flex; justify-content: space-between; align-items: center;
}

/* ===== LOGO ===== */
.logo, .glitch-logo {
    font-family: var(--head); font-size: 1.35rem; font-weight: 900;
    color: var(--cyan); cursor: pointer; letter-spacing: 2px;
    text-decoration: none;
    display: inline-flex; align-items: center;
    position: relative;
    animation: logoNeonPulse 5s ease-in-out infinite;
    user-select: none;
}

@keyframes logoNeonPulse {
    0%, 89%, 100% {
        filter: drop-shadow(0 0 8px rgba(0,255,204,0.6)) drop-shadow(0 0 20px rgba(0,255,204,0.25));
    }
    90%  { filter: drop-shadow(0 0 2px rgba(0,255,204,0.2)); opacity: 0.8; }
    91%  { filter: drop-shadow(0 0 10px rgba(0,255,204,0.7)); opacity: 1; }
    92%  { filter: drop-shadow(0 0 2px rgba(0,255,204,0.2)); opacity: 0.85; }
    93%  { filter: drop-shadow(0 0 14px rgba(0,255,204,0.9)); opacity: 1; }
}

/* bracket parts — dimmer, smaller */
.lb {
    color: rgba(0,255,204,0.38);
    font-size: 1.05rem;
    transition: color 0.25s, transform 0.3s cubic-bezier(0.2,0,0.2,1),
                filter 0.25s, letter-spacing 0.3s;
    display: inline-block;
}

/* core text */
.lt {
    color: #fff;
    position: relative;
    display: inline-block;
    letter-spacing: 3px;
    transition: color 0.2s, letter-spacing 0.3s;
}

/* glitch layers */
.lt::before, .lt::after {
    content: attr(data-text);
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    pointer-events: none;
    font-family: inherit; font-weight: inherit; font-size: inherit;
}

/* blinking cursor */
.logo-cur {
    color: var(--cyan);
    font-weight: 400;
    margin-left: 1px;
    animation: logoCurBlink 1s step-end infinite;
    font-size: 1.1rem;
    opacity: 0.85;
}
@keyframes logoCurBlink { 0%, 100% { opacity: 0.85; } 50% { opacity: 0; } }

/* scanning beam — idle */
.glitch-logo::after {
    content: "";
    position: absolute; top: 0; left: -40%;
    width: 30%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,255,204,0.18) 50%, transparent);
    transform: skewX(-15deg);
    animation: logoBeam 4.5s ease-in-out infinite;
    pointer-events: none;
}
@keyframes logoBeam {
    0%   { left: -40%; opacity: 0; }
    10%  { opacity: 1; }
    60%  { left: 130%; opacity: 1; }
    61%, 100% { left: 130%; opacity: 0; }
}

/* ── HOVER ── */
.glitch-logo:hover .lb-open  { transform: translateX(-5px); color: var(--cyan); filter: drop-shadow(0 0 6px var(--cyan)); }
.glitch-logo:hover .lb-close { transform: translateX(5px);  color: var(--cyan); filter: drop-shadow(0 0 6px var(--cyan)); }
.glitch-logo:hover .lt       { color: var(--cyan); letter-spacing: 4px; }

.glitch-logo:hover .lt::before {
    opacity: 1;
    color: var(--pink);
    animation: logoSliceA 0.35s steps(1) infinite;
    clip-path: polygon(0 15%, 100% 15%, 100% 38%, 0 38%);
    transform: translateX(-3px);
    text-shadow: none;
}
.glitch-logo:hover .lt::after {
    opacity: 1;
    color: var(--blue);
    animation: logoSliceB 0.28s steps(1) infinite;
    clip-path: polygon(0 60%, 100% 60%, 100% 78%, 0 78%);
    transform: translateX(3px);
    text-shadow: none;
}

@keyframes logoSliceA {
    0%   { transform: translateX(-4px) scaleX(1.01); }
    25%  { transform: translateX(2px)  scaleX(0.99); }
    50%  { transform: translateX(-2px) scaleX(1.02); }
    75%  { transform: translateX(4px)  scaleX(1); }
    100% { transform: translateX(-4px) scaleX(1.01); }
}
@keyframes logoSliceB {
    0%   { transform: translateX(3px)  scaleX(0.98); }
    33%  { transform: translateX(-4px) scaleX(1.01); }
    66%  { transform: translateX(2px)  scaleX(0.99); }
    100% { transform: translateX(3px)  scaleX(0.98); }
}

/* corner brackets that appear on hover */
.glitch-logo::before {
    content: "";
    position: absolute; inset: -5px -8px;
    border: 1px solid transparent;
    border-image: linear-gradient(135deg, var(--cyan), transparent 40%, transparent 60%, var(--cyan)) 1;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.glitch-logo:hover::before { opacity: 0.5; }

.nav-links { display: flex; gap: 2.5rem; list-style: none; }

.nav-links a {
    text-decoration: none; color: var(--muted); font-family: var(--mono);
    font-size: 0.72rem; letter-spacing: 2px; text-transform: uppercase;
    transition: 0.25s; position: relative; padding-bottom: 4px;
}

.nav-links a::after {
    content: ""; position: absolute; bottom: 0; left: 0;
    width: 0; height: 1px;
    background: var(--cyan); transition: width 0.25s;
    box-shadow: 0 0 6px var(--cyan);
}

.nav-links a:hover { color: var(--cyan); }
.nav-links a:hover::after { width: 100%; }

/* ===== HERO ===== */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    min-height: 100vh;
    padding: 120px 4rem 80px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative; z-index: 1;
}

.hero-text {
    display: flex; flex-direction: column; align-items: flex-start;
}

.tagline {
    display: inline-flex; align-items: center; gap: 0.7rem;
    padding: 0.45rem 1.3rem;
    background: rgba(0,255,204,0.04);
    border: 1px solid rgba(0,255,204,0.2);
    font-family: var(--mono); font-size: 0.68rem;
    color: var(--cyan); letter-spacing: 4px;
    margin-bottom: 2rem; text-transform: uppercase;
}

.tagline::before {
    content: "";
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 8px var(--cyan);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:0.4; transform:scale(0.7); } }

h1.glitch {
    font-size: clamp(3rem, 6.5vw, 6.5rem);
    font-family: var(--head); font-weight: 900; line-height: 0.95;
    margin-bottom: 1.8rem; color: #fff; position: relative;
    text-shadow: 0 0 40px rgba(0,255,204,0.15);
    text-align: left;
}

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

h1.glitch::before {
    animation: glitch-a 600ms infinite;
    clip-path: polygon(0 0, 100% 0, 100% 40%, 0 40%);
    transform: translate(-0.03em, -0.01em);
    color: var(--cyan);
}

h1.glitch::after {
    animation: glitch-b 400ms infinite;
    clip-path: polygon(0 70%, 100% 25%, 100% 100%, 0 100%);
    transform: translate(0.01em, 0.02em);
    color: var(--pink);
}

@keyframes glitch-a {
    0%   { clip-path: polygon(0 5%,  100% 5%,  100% 10%, 0 10%); transform: translate(-0.03em, -0.01em); }
    20%  { clip-path: polygon(0 30%, 100% 30%, 100% 35%, 0 35%); }
    40%  { clip-path: polygon(0 55%, 100% 55%, 100% 58%, 0 58%); }
    60%  { clip-path: polygon(0 75%, 100% 75%, 100% 80%, 0 80%); }
    80%  { clip-path: polygon(0 20%, 100% 20%, 100% 25%, 0 25%); }
    100% { clip-path: polygon(0 5%,  100% 5%,  100% 10%, 0 10%); transform: translate(0.03em, 0.02em); }
}

@keyframes glitch-b {
    0%   { clip-path: polygon(0 65%, 100% 65%, 100% 70%, 0 70%); transform: translate(0.02em, 0.03em); }
    30%  { clip-path: polygon(0 85%, 100% 85%, 100% 90%, 0 90%); }
    60%  { clip-path: polygon(0 40%, 100% 40%, 100% 48%, 0 48%); }
    100% { clip-path: polygon(0 65%, 100% 65%, 100% 70%, 0 70%); transform: translate(-0.02em, 0); }
}

#hero-subtitle {
    font-size: 1rem;
    font-family: var(--head); text-transform: uppercase;
    letter-spacing: 4px; color: var(--text);
    margin-bottom: 1.8rem;
    padding: 0.8rem 0;
    border-top: 1px solid rgba(0,255,204,0.15);
    border-bottom: 1px solid rgba(0,255,204,0.15);
    min-width: 100%; min-height: 3.4rem;
    display: flex; align-items: center;
}

.sub-cursor-type {
    display: inline-block;
    width: 2px; height: 0.85em;
    background: var(--cyan);
    margin-left: 5px;
    vertical-align: middle;
    animation: blinking 0.6s step-end infinite;
    box-shadow: 0 0 8px var(--cyan);
    flex-shrink: 0;
}

.hero-text p {
    font-size: 1.05rem; margin-bottom: 2.5rem;
    color: var(--muted); max-width: 480px; line-height: 1.85;
}

.hero-buttons { display: flex; gap: 1.2rem; flex-wrap: wrap; }

/* ===== BUTTONS ===== */
.btn {
    padding: 0.85rem 2rem;
    font-family: var(--mono); font-size: 0.75rem;
    cursor: pointer; transition: all 0.28s;
    text-transform: uppercase; font-weight: 700; border: none;
    text-decoration: none; display: inline-flex; align-items: center;
    justify-content: center; gap: 0.5rem; letter-spacing: 1.5px;
    border-radius: 0;
}

.btn-primary {
    background: var(--cyan); color: #000;
    clip-path: polygon(8% 0, 100% 0, 92% 100%, 0% 100%);
    padding: 0.9rem 2.4rem;
    box-shadow: 0 0 24px rgba(0,255,204,0.3);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0,255,204,0.55);
    background: #2dffd9;
}

.btn-secondary {
    background: transparent; color: var(--pink);
    border: 1px solid rgba(255,0,170,0.5);
    clip-path: polygon(0 0, 92% 0, 100% 100%, 8% 100%);
    padding: 0.9rem 2.4rem;
    box-shadow: 0 0 16px rgba(255,0,170,0.1);
}
.btn-secondary:hover {
    background: rgba(255,0,170,0.08);
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(255,0,170,0.35);
}

.btn-outline {
    background: transparent; color: var(--muted);
    border: 1px solid rgba(255,255,255,0.12);
}
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan); }

.btn-sm { padding: 0.6rem 1.4rem; font-size: 0.68rem; }

/* ===== HERO TERMINAL ===== */
.hero-image-wrapper {
    display: flex; align-items: center; justify-content: center;
    position: relative; z-index: 1;
}

.hero-terminal {
    width: 100%; max-width: 500px;
    border-radius: 10px; overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(0,255,204,0.12),
        0 24px 64px rgba(0,0,0,0.65),
        0 0 80px rgba(0,255,204,0.04),
        inset 0 0 60px rgba(0,0,40,0.3);
    animation: float 7s ease-in-out infinite;
}

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

.terminal-header {
    background: rgba(0,255,204,0.07);
    padding: 0.7rem 1.2rem;
    display: flex; align-items: center; gap: 0.45rem;
    border-bottom: 1px solid rgba(0,255,204,0.08);
}

.terminal-dot { width: 10px; height: 10px; border-radius: 50%; }
.terminal-dot.red    { background: #ff5f57; box-shadow: 0 0 6px #ff5f57; }
.terminal-dot.yellow { background: #febc2e; box-shadow: 0 0 6px #febc2e; }
.terminal-dot.green  { background: #28c840; box-shadow: 0 0 6px #28c840; }

.terminal-title {
    font-family: var(--mono); font-size: 0.68rem;
    color: var(--muted); margin: 0 auto; letter-spacing: 1px;
}

.terminal-body {
    padding: 1.5rem 1.6rem;
    font-family: var(--mono); font-size: 0.75rem; line-height: 1.9;
    background: rgba(1,3,12,0.9); min-height: 260px;
}

.t-line { display: flex; gap: 0.5rem; margin-bottom: 0.3rem; }
.t-prompt { color: var(--cyan); user-select: none; }
.t-cmd { color: #fff; }

.t-out {
    padding: 0.4rem 0 0.7rem 1rem; margin-bottom: 0.4rem;
    border-left: 2px solid rgba(0,255,204,0.12);
    margin-left: 0.3rem; color: var(--muted);
}

.t-key  { color: #9b8fff; }
.t-str  { color: var(--cyan); }
.t-num  { color: var(--pink); }
.t-ok   { color: #28c840; }
.t-arr  { color: var(--blue); }

.t-cursor {
    display: inline-block; width: 7px; height: 0.9em;
    background: var(--cyan);
    animation: blinking 0.8s step-end infinite;
    vertical-align: middle;
}

/* ===== SKILLS ===== */
.skills-bar {
    padding: 5rem 0;
    background: linear-gradient(180deg, transparent, rgba(0,255,204,0.02), transparent);
    border-top: 1px solid rgba(0,255,204,0.06);
    border-bottom: 1px solid rgba(0,255,204,0.06);
    position: relative; z-index: 1;
}

.skills-inner {
    max-width: 1400px; margin: 0 auto; padding: 0 4rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.skill-item { display: flex; flex-direction: column; gap: 0.65rem; }

.skill-header {
    display: flex; justify-content: space-between; align-items: center;
}

.skill-name {
    font-family: var(--mono); font-size: 0.72rem;
    text-transform: uppercase; letter-spacing: 2px; color: var(--text);
}

.skill-val {
    font-family: var(--mono); font-size: 0.7rem;
    color: var(--cyan); font-weight: 700;
}

.skill-bar-track {
    height: 2px; background: rgba(255,255,255,0.05);
    border-radius: 2px; overflow: hidden; position: relative;
}

.skill-bar-fill {
    height: 100%; width: 0;
    background: linear-gradient(90deg, var(--cyan), var(--pink));
    border-radius: 2px;
    transition: width 1.4s cubic-bezier(0.15, 0, 0.15, 1);
    box-shadow: 0 0 10px rgba(0,255,204,0.5);
    position: relative;
}

.skill-bar-fill::after {
    content: "";
    position: absolute; right: -1px; top: -2px;
    width: 5px; height: 6px;
    background: #fff; border-radius: 50%;
    box-shadow: 0 0 5px var(--cyan);
}

/* ===== SECTION ===== */
.section { padding: 8rem 0; position: relative; z-index: 1; }

.section-title {
    font-size: 1.8rem; font-family: var(--head); color: #fff;
    margin-bottom: 4.5rem;
    display: flex; align-items: center; gap: 1.2rem;
    letter-spacing: 2px;
}

.section-title::before {
    content: "";
    width: 4px; height: 2.2rem;
    background: linear-gradient(180deg, var(--cyan), var(--pink));
    border-radius: 2px; flex-shrink: 0;
    box-shadow: 0 0 14px rgba(0,255,204,0.5);
}

/* ===== FILTER ===== */
.filter-bar {
    display: flex; gap: 0.6rem; margin-bottom: 3rem;
    overflow-x: auto; padding-bottom: 0.5rem;
    scrollbar-width: none;
}
.filter-bar::-webkit-scrollbar { display: none; }

.filter-btn {
    padding: 0.45rem 1.3rem; border-radius: 3px;
    background: transparent; border: 1px solid rgba(255,255,255,0.07);
    color: var(--muted); cursor: pointer; transition: 0.25s;
    font-family: var(--mono); font-size: 0.68rem;
    text-transform: uppercase; letter-spacing: 1.5px; white-space: nowrap;
}

.filter-btn:hover { border-color: rgba(0,255,204,0.3); color: var(--text); }

.filter-btn.active {
    background: rgba(0,255,204,0.08); color: var(--cyan);
    border-color: rgba(0,255,204,0.4);
    box-shadow: 0 0 14px rgba(0,255,204,0.08);
}

/* ===== PROJECT CARDS ===== */
.projects-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem;
}

.project-card-link {
    display: block; text-decoration: none; color: inherit;
    transition: transform 0.3s, opacity 0.3s;
    -webkit-mask-composite: destination-in;
    mask-composite: intersect;
    height: 100%;
}

.project-card {
    display: flex; flex-direction: column;
    min-height: 380px; height: 100%;
    background: rgba(6,10,28,0.5);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 6px; overflow: hidden; position: relative;
    transition: all 0.35s cubic-bezier(0.2,0,0.2,1);
}

/* Top glow line on hover */
.project-card::before {
    content: "";
    position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
    opacity: 0; transition: opacity 0.35s;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0,255,204,0.2);
    box-shadow:
        0 20px 50px rgba(0,0,0,0.5),
        0 0 0 1px rgba(0,255,204,0.1),
        0 0 30px rgba(0,255,204,0.04);
}

.project-card:hover::before { opacity: 1; }

.card-image {
    position: relative; width: 100%; height: 170px; overflow: hidden;
    background: linear-gradient(135deg, rgba(0,40,80,0.9), rgba(60,0,100,0.9));
}

.card-image img {
    width: 100%; height: 100%; object-fit: cover;
    transition: 0.5s ease; filter: brightness(0.85);
}

.project-card:hover .card-image img { transform: scale(1.08); filter: brightness(1); }

.placeholder-img {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #000d20, #1a0035, #002218);
    display: flex; align-items: center; justify-content: center;
}

.placeholder-img::after {
    content: "</>"; font-family: var(--mono); font-size: 1.8rem;
    color: rgba(0,255,204,0.15); letter-spacing: 4px;
}

.card-image .overlay {
    position: absolute; top: 10px; right: 10px;
    background: rgba(0,0,0,0.75); backdrop-filter: blur(8px);
    color: var(--cyan); padding: 3px 9px;
    font-family: var(--mono); font-size: 0.62rem;
    letter-spacing: 2px; text-transform: uppercase;
    border: 1px solid rgba(0,255,204,0.2); border-radius: 3px;
}

.card-content {
    padding: 1.3rem 1.4rem 1.4rem;
    flex-grow: 1; display: flex; flex-direction: column;
}

.card-content h3 {
    font-size: 1rem; font-family: var(--head); color: #fff;
    margin-bottom: 0.5rem; letter-spacing: 1px; line-height: 1.35;
}

.card-content p {
    font-size: 0.85rem; color: var(--muted); margin-bottom: 1rem;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden; line-height: 1.65;
}

.tech-stack { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: auto; }

.tech-stack span {
    font-family: var(--mono); font-size: 0.62rem;
    color: rgba(0,255,204,0.65);
    border: 1px solid rgba(0,255,204,0.14);
    padding: 2px 7px; border-radius: 3px;
    background: rgba(0,255,204,0.03);
}

.btn.btn-sm.btn-primary {
    margin-top: 1.2rem; width: 100%;
    clip-path: none; border-radius: 3px;
    font-size: 0.65rem; letter-spacing: 2px;
    padding: 0.6rem 1rem;
}

/* ===== BLOG ===== */
.blog-list { display: grid; gap: 1.2rem; }

.blog-item-link { display: block; text-decoration: none; color: inherit; }

.blog-item {
    display: grid; grid-template-columns: 100px 1fr;
    gap: 2.5rem; padding: 2rem 2.5rem;
    align-items: center; transition: all 0.3s;
    border-left: 3px solid transparent;
    border-radius: 0 6px 6px 0;
}

.blog-item:hover {
    border-left-color: var(--pink);
    background: rgba(255,0,170,0.03);
    transform: translateX(5px);
}

.blog-meta {
    font-family: var(--mono); font-size: 0.66rem;
    color: var(--pink); font-weight: 700;
    letter-spacing: 1.5px; line-height: 1.7;
    text-transform: uppercase; text-align: center;
}

.blog-content h3 {
    font-size: 1.3rem; margin-bottom: 0.5rem;
    color: #fff; font-family: var(--head); letter-spacing: 1px;
}

.blog-content p { font-size: 0.9rem; color: var(--muted); line-height: 1.7; margin-bottom: 0.8rem; }

.read-more {
    font-family: var(--mono); font-size: 0.7rem;
    color: var(--muted); letter-spacing: 1px; text-transform: uppercase;
    transition: 0.25s;
}

.blog-item:hover .read-more { color: var(--cyan); }
.read-more .highlight { color: var(--cyan); }

/* ===== FOOTER ===== */
/* ===== FOOTER ===== */
.footer {
    margin-top: 6rem; position: relative; z-index: 1;
    background: linear-gradient(180deg, transparent 0%, rgba(0,6,18,0.95) 20%, #000610 100%);
}

.footer-topline {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(0,255,204,0.4) 30%, rgba(157,0,255,0.4) 70%, transparent 100%);
    position: relative;
}
.footer-topline::after {
    content: "";
    position: absolute; inset: 0;
    background: inherit;
    filter: blur(6px); opacity: 0.5;
}

.footer-inner {
    max-width: 1300px; margin: 0 auto; padding: 4rem 4rem 3rem;
}

/* Top bar */
.footer-bar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.6rem 1rem; margin-bottom: 4rem;
    border: 1px solid rgba(0,255,204,0.1);
    background: rgba(0,255,204,0.02);
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.footer-bar-label {
    font-family: var(--mono); font-size: 0.6rem;
    color: var(--cyan); letter-spacing: 3px;
}
.footer-bar-status { display: flex; align-items: center; gap: 0.6rem; }
.footer-status-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: #28c840; box-shadow: 0 0 6px #28c840;
    animation: pulse 2s infinite; display: inline-block;
}
.footer-bar-sys {
    font-family: var(--mono); font-size: 0.58rem;
    color: var(--muted); letter-spacing: 2px; text-transform: uppercase;
}

/* Main grid */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 5rem; align-items: center;
}

/* Left: CTA */
.footer-left {}

.footer-eyebrow-txt {
    font-family: var(--mono); font-size: 0.6rem;
    color: var(--muted); letter-spacing: 3px; text-transform: uppercase;
    margin-bottom: 1.2rem; display: none;
}

.footer-title {
    font-family: var(--head); font-size: clamp(2.4rem, 4vw, 3.5rem);
    color: #fff; line-height: 1.1; letter-spacing: 3px;
    margin-bottom: 1.4rem;
}
.footer-title-accent {
    background: linear-gradient(90deg, var(--cyan), var(--purple));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.footer-blink { color: var(--cyan); -webkit-text-fill-color: var(--cyan); animation: blink 1s step-end infinite; }

.footer-desc {
    font-size: 1rem; color: var(--muted); line-height: 1.85;
    max-width: 380px; margin-bottom: 2.5rem;
}

.footer-cta { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }

.footer-btn {
    position: relative; padding: 0.9rem 2.2rem;
    background: rgba(0,255,204,0.08); cursor: pointer;
    border: 1px solid rgba(0,255,204,0.5);
    overflow: hidden;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
    transition: 0.25s;
    box-shadow: 0 0 12px rgba(0,255,204,0.1), inset 0 0 12px rgba(0,255,204,0.04);
}
.footer-btn-bg {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(0,255,204,0.18), rgba(157,0,255,0.12));
    opacity: 0; transition: 0.25s;
}
.footer-btn:hover .footer-btn-bg { opacity: 1; }
.footer-btn:hover { border-color: var(--cyan); box-shadow: 0 0 30px rgba(0,255,204,0.25), inset 0 0 20px rgba(0,255,204,0.06); }
.footer-btn-content {
    position: relative; display: flex; align-items: center; gap: 0.7rem;
    font-family: var(--head); font-size: 0.8rem; letter-spacing: 3px;
    color: #fff; text-shadow: 0 0 10px rgba(0,255,204,0.5);
}
.footer-btn-content span { color: #fff; }
.footer-btn-arrow { font-size: 1rem; transition: transform 0.2s; color: var(--cyan); }
.footer-btn:hover .footer-btn-arrow { transform: translateX(5px); }

.footer-btn-hint {
    font-family: var(--mono); font-size: 0.65rem;
    color: var(--muted); letter-spacing: 1px;
}

/* Vertical divider */
.footer-divider {
    width: 1px; height: 220px;
    background: linear-gradient(to bottom, transparent, rgba(0,255,204,0.2) 30%, rgba(157,0,255,0.2) 70%, transparent);
    position: relative;
}
.footer-divider::before {
    content: ""; position: absolute;
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--cyan); box-shadow: 0 0 10px var(--cyan);
}

/* Right: Socials */
.footer-right {}

.footer-social-label {
    font-family: var(--mono); font-size: 0.6rem;
    color: var(--cyan); letter-spacing: 3px;
    margin-bottom: 1.4rem;
}

.social-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.social-icon {
    display: flex; flex-direction: column; align-items: center;
    gap: 0.5rem; padding: 1rem 0.8rem;
    border: 1px solid rgba(255,255,255,0.07);
    background: rgba(255,255,255,0.02);
    text-decoration: none; color: var(--muted);
    transition: 0.25s; position: relative; overflow: hidden;
    clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}
.social-icon::before {
    content: ""; position: absolute; inset: 0;
    background: var(--si-color, var(--cyan));
    opacity: 0; transition: opacity 0.25s;
}
.social-icon:hover::before { opacity: 0.07; }
.social-icon:hover {
    border-color: var(--si-color, var(--cyan));
    color: var(--si-color, var(--cyan));
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4), 0 0 15px color-mix(in srgb, var(--si-color, var(--cyan)) 30%, transparent);
}
.social-icon svg {
    width: 22px; height: 22px; fill: currentColor;
    transition: transform 0.25s;
    position: relative; z-index: 1;
}
.social-icon:hover svg { transform: scale(1.15); }
.social-icon-name {
    font-family: var(--mono); font-size: 0.55rem;
    letter-spacing: 2px; text-transform: uppercase;
    position: relative; z-index: 1;
}

/* Bottom bar */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.04);
    padding: 1.5rem 4rem;
    display: flex; align-items: center; gap: 1rem;
    font-family: var(--mono); font-size: 0.6rem;
    color: rgba(110,125,144,0.35); letter-spacing: 2px;
    max-width: none;
}
.footer-bottom-sep { opacity: 0.3; }
.footer-bottom-sys { text-transform: uppercase; }
.footer-admin-link {
    margin-left: auto; color: inherit; text-decoration: none;
    opacity: 0.4; transition: 0.2s;
}
.footer-admin-link:hover { opacity: 1; color: var(--cyan); }

/* ===== CYBER RADIO ===== */
.cyber-radio {
    position: fixed; bottom: 1.8rem; left: 1.8rem; width: 255px; z-index: 1000;
    transition: all 0.4s cubic-bezier(0.2,0,0.2,1);
    overflow: hidden; border-radius: 8px;
    background: rgba(2,3,13,0.93);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.7), 0 0 0 1px rgba(0,255,204,0.08);
}

.cyber-radio.collapsed { height: 38px; width: 155px; }

.radio-header {
    background: rgba(0,255,204,0.05); padding: 0.55rem 1rem;
    display: flex; justify-content: space-between; align-items: center;
    font-family: var(--mono); font-size: 0.62rem;
    color: var(--cyan); letter-spacing: 2px;
    border-bottom: 1px solid rgba(0,255,204,0.07);
}

.btn-min {
    background: transparent; border: none;
    color: var(--muted); cursor: pointer; font-size: 1rem; line-height: 1;
    transition: 0.2s;
}
.btn-min:hover { color: var(--cyan); }

.cyber-radio.collapsed .radio-body { display: none; }

.radio-body { padding: 1.1rem; }

.track-info { margin-bottom: 0.7rem; }

#track-name {
    font-size: 0.8rem; font-weight: 700; color: #fff;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    padding-bottom: 4px; border-bottom: 1px solid rgba(255,255,255,0.05);
}

#track-status {
    font-family: var(--mono); font-size: 0.6rem;
    color: var(--pink); text-transform: uppercase; margin-top: 3px; letter-spacing: 2px;
}

.radio-controls { margin-top: 0.7rem; }

.radio-btn {
    background: transparent; border: 1px solid rgba(255,0,170,0.28);
    color: var(--pink); padding: 0.38rem 0.75rem;
    font-family: var(--mono); font-size: 0.65rem;
    cursor: pointer; transition: 0.2s; letter-spacing: 1px;
}
.radio-btn:hover { background: rgba(255,0,170,0.1); box-shadow: 0 0 12px rgba(255,0,170,0.2); }

#radio-vol {
    width: 100%; height: 2px; -webkit-appearance: none; appearance: none;
    background: rgba(255,255,255,0.07); outline: none; margin-top: 0.75rem;
    border-radius: 1px;
}
#radio-vol::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 10px; height: 10px; background: var(--cyan);
    cursor: pointer; border-radius: 50%; box-shadow: 0 0 6px var(--cyan);
}

/* ===== PACMAN ===== */
.pacman-actor {
    position: fixed; width: 52px; height: 52px; border-radius: 50%;
    background: #ffe600; z-index: 999999; pointer-events: none;
    box-shadow: 0 0 20px #ffe600, 0 0 40px rgba(255,230,0,0.3);
    display: none; transition: opacity 0.5s;
}

.pacman-actor::after {
    content: ''; position: absolute; top: 0; left: 0; width: 52px; height: 52px;
    background: #000;
    clip-path: polygon(100% 50%, 100% 0, 0 0, 0 100%, 100% 100%, 100% 50%, 50% 50%);
    animation: pacmouth 0.25s infinite alternate;
}

@keyframes pacmouth {
    0%   { clip-path: polygon(100% 50%, 100% 0, 0 0, 0 100%, 100% 100%, 100% 50%, 50% 50%); }
    100% { clip-path: polygon(100% 20%, 100% 0, 0 0, 0 100%, 100% 100%, 100% 80%, 50% 50%); }
}

.fully-eaten { filter: grayscale(1) brightness(0.4) sepia(1) hue-rotate(-50deg) saturate(5) !important; pointer-events: none; }
.respawning { transition: all 1s ease-in; filter: none !important; transform: scale(1); opacity: 1; }

/* ===== CONTACT MODAL ===== */
.contact-overlay {
    position: fixed; inset: 0; z-index: 3000;
    background: rgba(0,0,0,0.85); backdrop-filter: blur(12px);
    display: flex; align-items: center; justify-content: center;
    padding: 1.5rem; animation: fadeOverlay .2s ease;
}

@keyframes fadeOverlay { from { opacity:0; } to { opacity:1; } }

.contact-modal {
    display: flex; flex-direction: column;
    width: 100%; max-width: 860px; max-height: 95vh;
    background: rgba(4,6,20,0.97);
    border: 1px solid rgba(0,255,204,0.2);
    box-shadow:
        0 0 0 1px rgba(0,255,204,0.05),
        0 0 60px rgba(0,255,204,0.08),
        0 0 120px rgba(157,0,255,0.06),
        inset 0 0 80px rgba(0,0,0,0.5);
    position: relative; overflow: hidden;
    animation: slideModal .35s cubic-bezier(0.16,1,0.3,1);
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

@keyframes slideModal {
    from { opacity:0; transform:translateY(24px) scale(0.97); }
    to   { opacity:1; transform:translateY(0) scale(1); }
}

/* Scanline sweep */
.cm-scanline {
    position: absolute; top: -100%; left: 0; width: 100%; height: 40%;
    background: linear-gradient(to bottom, transparent, rgba(0,255,204,0.025) 50%, transparent);
    animation: scanSweep 4s linear infinite; pointer-events: none; z-index: 1;
}
@keyframes scanSweep { 0% { top:-40%; } 100% { top:140%; } }

/* Corner brackets */
.cm-corner {
    position: absolute; width: 14px; height: 14px; z-index: 5;
    border-color: var(--cyan); border-style: solid;
}
.cm-corner.cm-tl { top: 6px; left: 6px; border-width: 2px 0 0 2px; }
.cm-corner.cm-tr { top: 6px; right: 6px; border-width: 2px 2px 0 0; }
.cm-corner.cm-bl { bottom: 6px; left: 6px; border-width: 0 0 2px 2px; }
.cm-corner.cm-br { bottom: 6px; right: 6px; border-width: 0 2px 2px 0; }

/* Top bar */
.cm-topbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.65rem 1.2rem;
    border-bottom: 1px solid rgba(0,255,204,0.1);
    background: rgba(0,255,204,0.03);
    flex-shrink: 0;
}
.cm-topbar-left { display: flex; align-items: center; gap: 0.8rem; }
.cm-topbar-right { display: flex; align-items: center; gap: 1.2rem; }

.cm-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.cm-dot-r { background: #ff5f57; box-shadow: 0 0 6px rgba(255,95,87,0.6); }
.cm-dot-y { background: #febc2e; box-shadow: 0 0 6px rgba(254,188,46,0.5); }
.cm-dot-g { background: #28c840; box-shadow: 0 0 6px rgba(40,200,64,0.6); }

.cm-channel {
    font-family: var(--mono); font-size: 0.62rem;
    color: var(--cyan); letter-spacing: 3px;
}
.cm-sig, .cm-ping {
    font-family: var(--mono); font-size: 0.6rem;
    color: var(--muted); letter-spacing: 1.5px;
}
.cm-sig span, .cm-ping span { margin-left: 0.3rem; }

.contact-close {
    background: transparent; border: 1px solid rgba(255,255,255,0.1);
    color: var(--muted); width: 26px; height: 26px;
    cursor: pointer; font-size: 0.65rem; transition: 0.2s;
    display: flex; align-items: center; justify-content: center;
    clip-path: polygon(0 0, calc(100% - 5px) 0, 100% 5px, 100% 100%, 5px 100%, 0 calc(100% - 5px));
}
.contact-close:hover { background: rgba(255,0,170,0.2); color: var(--pink); border-color: var(--pink); box-shadow: 0 0 10px rgba(255,0,170,0.3); }

/* Body */
.cm-body {
    display: grid; grid-template-columns: 1fr 1.3fr;
    flex: 1; overflow: hidden;
}

/* Left panel */
.contact-modal-left {
    padding: 2.5rem 2rem;
    background: linear-gradient(160deg, rgba(0,20,50,0.8) 0%, rgba(30,0,60,0.6) 100%);
    border-right: 1px solid rgba(0,255,204,0.08);
    display: flex; flex-direction: column; gap: 1.5rem;
    position: relative; overflow: hidden;
}
.contact-modal-left::after {
    content: "";
    position: absolute; bottom: -80px; right: -80px;
    width: 220px; height: 220px;
    background: radial-gradient(circle, rgba(157,0,255,0.12), transparent 70%);
    pointer-events: none;
}

/* Avatar */
.cm-avatar-ring {
    position: relative; width: 72px; height: 72px;
}
.cm-avatar-inner {
    position: absolute; inset: 8px; border-radius: 50%;
    background: linear-gradient(135deg, rgba(0,255,204,0.15), rgba(157,0,255,0.1));
    border: 1px solid rgba(0,255,204,0.3);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--head); font-size: 1.4rem; color: var(--cyan);
    box-shadow: 0 0 20px rgba(0,255,204,0.15), inset 0 0 15px rgba(0,255,204,0.05);
}
.cm-avatar-svg {
    position: absolute; inset: 0; width: 100%; height: 100%;
    animation: spinSlow 20s linear infinite;
}
@keyframes spinSlow { to { transform: rotate(360deg); } }

.cm-title {
    font-family: var(--head); font-size: 1.65rem; color: #fff;
    line-height: 1.25; letter-spacing: 2px; margin: 0;
}
.cm-title-accent { color: var(--cyan); }
.cm-blink { animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity:0; } }

.cm-desc { font-size: 0.88rem; color: var(--muted); line-height: 1.75; }

/* Stats row */
.cm-stats {
    display: flex; align-items: center; gap: 1.2rem;
    padding: 0.9rem 1rem;
    background: rgba(0,255,204,0.03);
    border: 1px solid rgba(0,255,204,0.1);
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
.cm-stat { display: flex; flex-direction: column; align-items: center; gap: 0.1rem; }
.cm-stat-val { font-family: var(--head); font-size: 1.1rem; font-weight: 700; }
.cm-stat-label { font-family: var(--mono); font-size: 0.55rem; color: var(--muted); letter-spacing: 2px; text-transform: uppercase; }
.cm-stat-sep { width: 1px; height: 30px; background: rgba(0,255,204,0.15); }

/* Info rows */
.cm-info { display: flex; flex-direction: column; gap: 0.6rem; }
.cm-info-item {
    display: flex; align-items: center; gap: 0.8rem;
    font-family: var(--mono); font-size: 0.68rem;
}
.cm-info-key {
    color: var(--muted); letter-spacing: 2px; min-width: 52px;
    text-transform: uppercase;
}
.cm-info-key::after { content: ":"; margin-left: 1px; }
.cm-info-val { color: var(--text); }

/* Deco binary lines */
.cm-deco-lines {
    margin-top: auto; display: flex; flex-direction: column; gap: 0.3rem;
    font-family: var(--mono); font-size: 0.55rem;
    color: rgba(0,255,204,0.12); letter-spacing: 2px;
    user-select: none; overflow: hidden;
}

/* Right panel */
.contact-modal-right {
    padding: 2rem 2rem; overflow-y: auto;
    background: rgba(2,4,14,0.95);
    scrollbar-width: thin; scrollbar-color: rgba(0,255,204,0.2) transparent;
}

/* Form groups */
.cf-group { margin-bottom: 1.2rem; }

.cf-label {
    display: flex; align-items: center; gap: 0.6rem;
    font-family: var(--mono); font-size: 0.62rem;
    color: var(--muted); letter-spacing: 2px; text-transform: uppercase;
    margin-bottom: 0.5rem;
}
.cf-label-idx {
    color: var(--cyan); opacity: 0.5; font-size: 0.55rem;
}

.cf-input-wrap { position: relative; }

.cf-input {
    width: 100%; padding: 0.7rem 0.9rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-bottom: 1px solid rgba(0,255,204,0.2);
    color: var(--text); font-family: var(--mono); font-size: 0.85rem;
    border-radius: 2px; transition: 0.2s; outline: none;
    resize: vertical;
}
.cf-input::placeholder { color: rgba(110,125,144,0.5); font-size: 0.8rem; }
.cf-input:focus {
    background: rgba(0,255,204,0.03);
    border-color: rgba(0,255,204,0.15);
    border-bottom-color: var(--cyan);
    box-shadow: 0 2px 0 rgba(0,255,204,0.15), 0 0 20px rgba(0,255,204,0.04);
}

.cf-input-line {
    position: absolute; bottom: 0; left: 0; height: 2px; width: 0;
    background: linear-gradient(90deg, var(--cyan), var(--purple));
    transition: width 0.3s ease;
    box-shadow: 0 0 8px var(--cyan);
}
.cf-input:focus + .cf-input-line { width: 100%; }

/* Captcha */
.cf-captcha {
    margin-bottom: 1.2rem;
    background: rgba(0,255,204,0.02);
    border: 1px solid rgba(0,255,204,0.1);
    padding: 0.9rem 1rem;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
}
.cf-captcha-header {
    display: flex; align-items: center; gap: 0.5rem;
    margin-bottom: 0.7rem;
}
.cf-captcha-icon { color: var(--cyan); font-size: 0.7rem; }
.cf-captcha-title {
    font-family: var(--mono); font-size: 0.58rem;
    color: var(--cyan); letter-spacing: 3px;
}
.cf-captcha-row { display: flex; align-items: center; gap: 0.8rem; }
.cf-captcha-q {
    font-family: var(--mono); font-size: 0.95rem; color: #fff;
    font-weight: 700; letter-spacing: 3px; flex: 1;
}
.cf-captcha-arrow { color: var(--cyan); font-size: 0.9rem; }
.cf-captcha-input { width: 80px !important; text-align: center; flex: 0 0 auto; }
.cf-captcha-input::-webkit-inner-spin-button { display: none; }

/* Error */
.cf-error {
    font-family: var(--mono); font-size: 0.65rem;
    color: var(--pink); margin-bottom: 0.8rem; min-height: 1rem;
    letter-spacing: 1px; display: flex; align-items: center; gap: 0.4rem;
}
.cf-error:not(:empty)::before { content: "! "; color: var(--pink); }

/* Submit button */
.cf-submit-btn {
    position: relative; width: 100%; padding: 0.9rem;
    background: transparent; border: 1px solid rgba(0,255,204,0.3);
    color: var(--cyan); cursor: pointer; overflow: hidden;
    font-family: var(--head); font-size: 0.8rem; letter-spacing: 3px;
    transition: 0.25s;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
.cf-submit-bg {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(0,255,204,0.08), rgba(157,0,255,0.08));
    opacity: 0; transition: opacity 0.25s;
}
.cf-submit-btn:hover .cf-submit-bg { opacity: 1; }
.cf-submit-btn:hover {
    border-color: var(--cyan);
    box-shadow: 0 0 20px rgba(0,255,204,0.2), inset 0 0 20px rgba(0,255,204,0.04);
    color: #fff;
}
.cf-submit-content {
    position: relative; display: flex; align-items: center;
    justify-content: center; gap: 0.8rem;
}
.cf-submit-arrow { font-size: 1rem; transition: transform 0.2s; }
.cf-submit-btn:hover .cf-submit-arrow { transform: translateX(4px); }

/* Success */
.cf-success {
    text-align: center; padding: 2.5rem 1rem;
    animation: fadeOverlay .4s ease; height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.2rem;
}
.cf-success-rings {
    position: relative; width: 80px; height: 80px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 0.5rem;
}
.cf-success-ring {
    position: absolute; border-radius: 50%; border: 1px solid rgba(0,255,204,0.3);
    animation: expandRing 2s ease-out infinite;
}
.r1 { width: 80px; height: 80px; animation-delay: 0s; }
.r2 { width: 80px; height: 80px; animation-delay: 0.5s; }
.r3 { width: 80px; height: 80px; animation-delay: 1s; }
@keyframes expandRing {
    0%   { transform: scale(0.8); opacity: 0.8; }
    100% { transform: scale(2.2); opacity: 0; }
}
.cf-success-icon {
    position: relative; z-index: 1;
    width: 52px; height: 52px; border-radius: 50%;
    background: rgba(0,255,204,0.08); border: 2px solid var(--cyan);
    color: var(--cyan); font-size: 1.4rem;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 25px rgba(0,255,204,0.3);
    animation: popIn .4s cubic-bezier(0.2,0,0.2,1);
}
@keyframes popIn { from { transform:scale(0.5); opacity:0; } to { transform:scale(1); opacity:1; } }
.cf-success-title {
    font-family: var(--head); font-size: 0.8rem; letter-spacing: 3px;
    color: var(--cyan);
}
.cf-success-sub { font-size: 0.9rem; color: var(--muted); line-height: 1.7; max-width: 260px; }

/* Bottom bar */
.cm-bottombar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.5rem 1.2rem;
    border-top: 1px solid rgba(0,255,204,0.08);
    background: rgba(0,0,0,0.4); flex-shrink: 0;
}
.cm-bottombar-enc, .cm-bottombar-ts {
    font-family: var(--mono); font-size: 0.55rem;
    color: rgba(110,125,144,0.5); letter-spacing: 2px;
}
.cm-progress-dots { display: flex; gap: 6px; align-items: center; }
.cm-pdot {
    width: 6px; height: 6px; border-radius: 50%;
    background: rgba(255,255,255,0.1); transition: 0.3s;
}
.cm-pdot.active {
    background: var(--cyan);
    box-shadow: 0 0 6px var(--cyan);
}

/* Footer redesign */
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 4rem; align-items: center;
}

@media (max-width: 860px) {
    .cm-body { grid-template-columns: 1fr; }
    .contact-modal-left { padding: 1.5rem 1.5rem; border-right: none; border-bottom: 1px solid rgba(0,255,204,0.08); }
    .cm-deco-lines { display: none; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ===== LANGUAGE SWITCHER ===== */
.lang-switcher {
    display: flex; align-items: center; gap: 0.25rem; margin-left: 1.8rem;
}

.lang-btn {
    background: none; border: none; cursor: pointer;
    font-family: var(--mono); font-size: 0.68rem; font-weight: 700;
    color: var(--muted); padding: 0.3rem 0.5rem;
    letter-spacing: 1.5px; text-transform: uppercase; transition: 0.2s;
    border-radius: 3px;
}

.lang-btn:hover { color: var(--text); }
.lang-btn.active { color: var(--cyan); text-shadow: 0 0 8px rgba(0,255,204,0.5); }
.lang-sep { color: rgba(255,255,255,0.12); font-size: 0.65rem; user-select: none; }

/* ===== TERMINAL REDESIGN ===== */
.terminal-header {
    background: rgba(0,0,0,0.4);
    padding: 0.75rem 1.2rem;
    display: flex; align-items: center; gap: 0; /* override old rules */
    border-bottom: 1px solid rgba(0,255,204,0.1);
}

.term-dots { display: flex; gap: 0.45rem; flex: 0 0 auto; }

.term-path {
    flex: 1; text-align: center;
    font-family: var(--mono); font-size: 0.8rem; font-weight: 600;
    letter-spacing: 1px;
}

.term-path .t-ok   { color: #28c840; }
.term-path .t-muted { color: var(--muted); }
.term-path .t-str  { color: var(--cyan); }

.term-conn {
    flex: 0 0 auto; display: flex; align-items: center; gap: 0.4rem;
    font-family: var(--mono); font-size: 0.58rem;
    color: var(--muted); letter-spacing: 1.5px; text-transform: uppercase;
}

.conn-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: #28c840; box-shadow: 0 0 7px #28c840;
    animation: pulse 2s ease-in-out infinite;
}

/* Terminal body */
.terminal-body {
    padding: 1.4rem 1.6rem;
    font-family: var(--mono); font-size: 0.78rem; line-height: 1.85;
    background: rgba(1,2,10,0.88); min-height: 240px;
    overflow: hidden;
}

.t-muted { color: var(--muted); }

/* Terminal stats bar */
.term-stats-bar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.55rem 1.6rem;
    background: rgba(0,0,0,0.45);
    border-top: 1px solid rgba(0,255,204,0.08);
}

.ts-item {
    display: flex; align-items: center; gap: 0.3rem;
    font-family: var(--mono); font-size: 0.62rem;
}

.ts-label { color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.ts-val   { color: var(--text); font-weight: 700; }
.ts-val.t-ok  { color: #28c840; text-shadow: 0 0 6px #28c840; }
.ts-val.t-str { color: var(--cyan); }
.ts-sep { color: rgba(255,255,255,0.1); font-size: 0.7rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .hero { grid-template-columns: 1fr; padding: 120px 4rem 60px; text-align: center; }
    .hero-text { align-items: center; }
    .hero-text p { margin: 0 auto 2.5rem; }
    .hero-image-wrapper { justify-content: center; }
    .hero-terminal { max-width: 460px; }
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== HAMBURGER BUTTON ===== */
.nav-right { display: flex; align-items: center; gap: 1.5rem; }
.nav-lang-mobile { display: none; }

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

@media (max-width: 768px) {
    /* General */
    .container { padding: 0 1.2rem; }
    .nav-content { padding: 1rem 1.2rem; }

    /* Hamburger */
    .nav-hamburger { display: flex; }
    .lang-switcher { display: none; } /* desktop lang switcher hidden, mobile one inside nav */

    /* Mobile nav overlay */
    .nav-links {
        position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
        background: rgba(2,3,8,0.97);
        backdrop-filter: blur(20px);
        flex-direction: column; align-items: center; justify-content: center;
        gap: 0;
        z-index: 1050;
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
        pointer-events: none;
    }
    .nav-links.open {
        transform: translateX(0);
        pointer-events: all;
    }
    .nav-links li {
        width: 100%; text-align: center;
        border-bottom: 1px solid rgba(0,255,204,0.05);
    }
    .nav-links li a {
        display: block; padding: 1.4rem 2rem;
        font-size: 1rem; letter-spacing: 3px;
        color: var(--muted);
        transition: color 0.2s, background 0.2s;
    }
    .nav-links li a:hover { color: var(--cyan); background: rgba(0,255,204,0.05); }
    .nav-lang-mobile {
        display: flex; gap: 1rem; align-items: center;
        margin-top: 2rem; padding: 1.4rem 2rem;
    }

    /* Hero */
    .hero { padding: 90px 1.2rem 50px; gap: 2rem; }
    h1.glitch { font-size: clamp(2rem, 9vw, 3.5rem); }
    .section-title { font-size: 1.3rem; }
    .hero-terminal { font-size: 0.6rem; }
    .hero-image-wrapper::before { display: none; }
    .hero-cta { flex-direction: column; gap: 0.8rem; }
    .hero-cta .btn { width: 100%; text-align: center; }

    /* Stats */
    .stats-inner { padding: 0 1.2rem; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
    .stat-num { font-size: clamp(2rem, 7vw, 3rem); }

    /* Skills */
    .skills-inner { padding: 0 1.2rem; grid-template-columns: 1fr; }

    /* Projects */
    .projects-grid { grid-template-columns: 1fr; }

    /* Timeline */
    .timeline { padding-left: 2rem; }
    .tl-item { padding: 1.2rem 1rem 1.2rem 1.5rem; }
    .tl-year { font-size: 0.7rem; }
    .tl-title { font-size: 1rem; }

    /* Badges */
    .badges-grid { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
    .badge-card { padding: 1.2rem 0.8rem; }
    .badge-icon { font-size: 1.8rem; }

    /* Blog */
    .blog-item { grid-template-columns: 1fr; gap: 0.8rem; padding: 1.2rem; }
    .blog-meta { text-align: left; }

    /* Footer */
    .footer-inner { padding: 3rem 1.2rem 2rem; }
    .footer-bottom { padding: 1.2rem 1.2rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-divider { width: 100%; height: 1px; }
    .footer-divider::before { top: 0; left: 50%; }
    .social-links { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 420px) {
    .badges-grid { grid-template-columns: 1fr; }
    .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
    .hero-cta .btn { font-size: 0.7rem; padding: 0.8rem 1.2rem; }
    .tl-tags { gap: 0.3rem; }
    .tl-tag { font-size: 0.6rem; padding: 3px 8px; }
}


/* ===== SCROLL PROGRESS ===== */
.scroll-progress {
    position: fixed; top: 0; left: 0;
    height: 2px; width: 0%;
    background: linear-gradient(90deg, var(--cyan), var(--pink), var(--purple));
    z-index: 99999;
    box-shadow: 0 0 10px var(--cyan);
    transition: width 0.08s linear;
}

/* ===== STATS SECTION ===== */
.stats-section {
    padding: 5rem 0;
    position: relative; z-index: 1;
    background: linear-gradient(180deg, transparent, rgba(0,255,204,0.015), transparent);
    border-top: 1px solid rgba(0,255,204,0.06);
    border-bottom: 1px solid rgba(0,255,204,0.06);
}

.stats-inner {
    max-width: 1400px; margin: 0 auto; padding: 0 4rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.stat-block {
    text-align: center;
    padding: 2.5rem 1rem 2rem;
    position: relative;
    border: 1px solid rgba(0,255,204,0.08);
    background: rgba(0,255,204,0.015);
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
    transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}

.stat-block:hover {
    border-color: rgba(0,255,204,0.22);
    background: rgba(0,255,204,0.04);
    box-shadow: 0 0 40px rgba(0,255,204,0.06), inset 0 0 30px rgba(0,255,204,0.03);
}

/* corner accent */
.stat-block::before {
    content: "";
    position: absolute; top: 6px; right: 6px;
    width: 14px; height: 14px;
    border-top: 1px solid rgba(0,255,204,0.3);
    border-right: 1px solid rgba(0,255,204,0.3);
}

.stat-num {
    display: block;
    font-family: var(--head);
    font-size: clamp(2.8rem, 4vw, 4.2rem);
    font-weight: 900;
    color: var(--cyan);
    line-height: 1;
    text-shadow: 0 0 40px rgba(0,255,204,0.5);
    letter-spacing: -1px;
}

.stat-label {
    display: block;
    font-family: var(--mono);
    font-size: 0.62rem;
    color: var(--muted);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 0.6rem;
}

/* ===== TIMELINE ===== */
.timeline {
    position: relative;
    padding-left: 3.5rem;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 0; top: 0.5rem; bottom: 2rem;
    width: 1px;
    background: linear-gradient(to bottom, var(--cyan), var(--purple) 60%, transparent);
    box-shadow: 0 0 12px rgba(0,255,204,0.25);
}

.tl-item {
    position: relative;
    margin-bottom: 2.5rem;
    padding: 1.6rem 2rem;
    background: rgba(6,10,28,0.5);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 6px;
    transition: border-color 0.35s, transform 0.35s, box-shadow 0.35s;
    overflow: hidden;
}

.tl-item::before {
    content: "";
    position: absolute;
    left: -3.6rem; top: 1.9rem;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 14px var(--cyan), 0 0 28px rgba(0,255,204,0.4);
    border: 2px solid var(--bg);
    z-index: 1;
}

.tl-item::after {
    content: "";
    position: absolute;
    left: -2.6rem; top: calc(1.9rem + 4px);
    width: 1.2rem; height: 1px;
    background: linear-gradient(90deg, var(--cyan), transparent);
}

.tl-item:hover {
    border-color: rgba(0,255,204,0.14);
    transform: translateX(8px);
    box-shadow: 0 8px 40px rgba(0,0,0,0.35);
}

/* scan sweep on timeline item hover */
.tl-item .tl-sweep {
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,255,204,0.04) 50%, transparent);
    transform: skewX(-8deg);
    transition: left 0.8s ease;
    pointer-events: none;
}
.tl-item:hover .tl-sweep { left: 160%; }

.tl-year {
    font-family: var(--mono);
    font-size: 0.65rem;
    color: var(--cyan);
    letter-spacing: 3px;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
}

.tl-title {
    font-family: var(--head);
    font-size: 1.05rem;
    color: #fff;
    margin-bottom: 0.2rem;
    letter-spacing: 1px;
}

.tl-org {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--pink);
    margin-bottom: 0.7rem;
    letter-spacing: 1px;
}

.tl-desc {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.75;
    margin-bottom: 0.8rem;
}

.tl-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }

.tl-tag {
    font-family: var(--mono); font-size: 0.6rem;
    color: rgba(0,170,255,0.75);
    border: 1px solid rgba(0,170,255,0.18);
    padding: 2px 8px; border-radius: 3px;
    background: rgba(0,170,255,0.04);
}

/* ===== BADGES ===== */
.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.4rem;
}

.badge-card {
    text-align: center;
    padding: 2rem 1.2rem 1.6rem;
    border: 1px solid rgba(0,255,204,0.1);
    background: rgba(6,10,28,0.5);
    position: relative;
    overflow: hidden;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    transition: border-color 0.35s, transform 0.35s, box-shadow 0.35s;
}

.badge-card:hover {
    border-color: rgba(0,255,204,0.28);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 40px rgba(0,255,204,0.07);
}

/* holographic shimmer */
.badge-card::after {
    content: "";
    position: absolute;
    top: 0; left: -120%;
    width: 55%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06) 50%, transparent);
    transform: skewX(-12deg);
    transition: left 0.8s ease;
    pointer-events: none;
}
.badge-card:hover::after { left: 170%; }

/* top-left corner brackets */
.badge-card::before {
    content: "";
    position: absolute; top: 5px; left: 5px;
    width: 12px; height: 12px;
    border-top: 1px solid rgba(0,255,204,0.4);
    border-left: 1px solid rgba(0,255,204,0.4);
    pointer-events: none;
}

.badge-icon {
    font-size: 2.4rem;
    margin-bottom: 0.7rem;
    display: block;
    filter: drop-shadow(0 0 12px rgba(0,255,204,0.5));
    transition: transform 0.3s;
}
.badge-card:hover .badge-icon { transform: scale(1.15) rotate(-5deg); }

.badge-name {
    font-family: var(--head);
    font-size: 0.72rem;
    color: #fff;
    letter-spacing: 1.5px;
    margin-bottom: 0.3rem;
}

.badge-desc {
    font-family: var(--mono);
    font-size: 0.58rem;
    color: var(--muted);
    letter-spacing: 1px;
    line-height: 1.5;
    margin-bottom: 0.8rem;
}

.badge-level {
    display: flex;
    gap: 5px;
    justify-content: center;
}

.badge-pip {
    width: 22px; height: 3px;
    background: rgba(255,255,255,0.08);
    border-radius: 2px;
}

.badge-pip.filled {
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    box-shadow: 0 0 6px rgba(0,255,204,0.5);
}

/* ===== PAGE TRANSITION ===== */
.page-transition-overlay {
    position: fixed; inset: 0; z-index: 999990;
    background: #000;
    pointer-events: none;
    opacity: 0;
}

.page-transition-overlay.active {
    pointer-events: all;
    animation: pageTransition 0.5s ease forwards;
}

@keyframes pageTransition {
    0%  { opacity: 0; clip-path: inset(100% 0 0 0); }
    30% { opacity: 1; clip-path: inset(0 0 0 0); filter: hue-rotate(90deg) brightness(2); }
    60% { clip-path: inset(0 0 0 0); filter: hue-rotate(0deg) brightness(1); }
    100%{ opacity: 1; clip-path: inset(0 0 0 0); }
}

/* ===== EASTER EGG ===== */
.easter-egg-overlay {
    position: fixed; inset: 0; z-index: 999995;
    background: rgba(0,0,0,0.97);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 1rem; cursor: pointer;
    animation: fadeOverlay 0.3s ease;
}

.easter-egg-ascii {
    font-family: var(--mono);
    font-size: clamp(0.3rem, 1vw, 0.75rem);
    color: var(--cyan);
    text-shadow: 0 0 10px var(--cyan), 0 0 20px rgba(0,255,204,0.4);
    line-height: 1.2;
    white-space: pre;
    text-align: center;
}

.easter-egg-msg {
    font-family: var(--head);
    font-size: 0.9rem;
    letter-spacing: 4px;
    color: var(--pink);
    text-shadow: 0 0 20px var(--pink);
    margin-top: 1rem;
    animation: blinking 1s step-end infinite;
}

.easter-egg-hint {
    font-family: var(--mono);
    font-size: 0.6rem;
    color: rgba(0,255,204,0.3);
    letter-spacing: 2px;
}

/* ===== RESPONSIVE — new sections ===== */
@media (max-width: 900px) {
    .stats-inner { grid-template-columns: repeat(2, 1fr); padding: 0 1.5rem; }
    .badges-grid { grid-template-columns: repeat(2, 1fr); }
    .timeline { padding-left: 2.5rem; }
}

@media (max-width: 560px) {
    .stats-inner { grid-template-columns: 1fr 1fr; gap: 0.8rem; }
    .badges-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== DESIGN ENHANCEMENTS ===== */

/* Navbar bottom pulse line */
.navbar::after {
    content: "";
    position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--cyan) 35%, var(--purple) 65%, transparent 100%);
    opacity: 0;
    animation: navGlow 5s ease-in-out infinite;
}
@keyframes navGlow { 0%, 100% { opacity: 0; } 50% { opacity: 0.5; } }

/* Hero retrowave perspective grid */
.hero-image-wrapper {
    position: relative;
}
.hero-image-wrapper::before {
    content: "";
    position: absolute;
    bottom: -80px; left: -80px; right: -80px;
    height: 360px;
    background-image:
        linear-gradient(rgba(0,255,204,0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,255,204,0.05) 1px, transparent 1px);
    background-size: 42px 42px;
    transform: perspective(480px) rotateX(65deg);
    transform-origin: bottom center;
    -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 65%);
    mask-image: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
    animation: retroGridScroll 20s linear infinite;
}
@keyframes retroGridScroll {
    0%   { background-position: 0 0; }
    100% { background-position: 0 42px; }
}

/* Terminal stronger ambient glow */
.hero-terminal {
    box-shadow:
        0 0 0 1px rgba(0,255,204,0.18),
        0 28px 72px rgba(0,0,0,0.85),
        0 0 100px rgba(0,255,204,0.09),
        0 0 180px rgba(0,255,204,0.04),
        inset 0 0 60px rgba(0,0,40,0.5);
    z-index: 2;
}

/* CRT scanlines inside terminal body */
.terminal-body {
    position: relative;
}
.terminal-body::after {
    content: "";
    position: absolute; inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0,0,0,0.09) 2px,
        rgba(0,0,0,0.09) 4px
    );
    pointer-events: none;
    z-index: 5;
}

/* Project card diagonal scan sweep on hover */
.project-card::after {
    content: "";
    position: absolute;
    top: 0; left: -130%;
    width: 55%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,255,204,0.06) 50%, transparent);
    transform: skewX(-12deg);
    transition: left 0.75s ease;
    pointer-events: none;
    z-index: 3;
}
.project-card:hover::after { left: 190%; }

/* Section title — stronger left bar */
.section-title::before {
    width: 3px;
    height: 2.4rem;
    background: var(--cyan);
    box-shadow: 0 0 18px var(--cyan), 0 0 36px rgba(0,255,204,0.35), 0 0 60px rgba(0,255,204,0.15);
}

/* h1 glitch deeper ambient glow */
h1.glitch {
    text-shadow:
        0 0 60px rgba(0,255,204,0.14),
        0 0 120px rgba(157,0,255,0.07);
}

/* Footer topline slow pulse */
.footer-topline {
    animation: toplinePulse 4s ease-in-out infinite;
}
@keyframes toplinePulse { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }

/* Blog item hover — stronger left border glow */
.blog-item:hover {
    border-left-color: var(--pink);
    box-shadow: -4px 0 20px rgba(255,0,170,0.15), inset 0 0 30px rgba(255,0,170,0.02);
}

/* Skill bar fill dot brighter */
.skill-bar-fill::after {
    box-shadow: 0 0 8px var(--cyan), 0 0 16px rgba(0,255,204,0.6);
}

/* Tagline dot faster pulse */
.tagline::before {
    animation: pulse 1.4s ease-in-out infinite;
}

/* Filter btn active stronger glow */
.filter-btn.active {
    box-shadow: 0 0 20px rgba(0,255,204,0.12), inset 0 0 12px rgba(0,255,204,0.04);
}

/* ===== MOBILE IMPROVEMENTS ===== */
@media (max-width: 768px) {
    /* Hero buttons stack */
    .hero-buttons { flex-direction: column; align-items: stretch; gap: 0.75rem; }
    .hero-buttons .btn { text-align: center; }

    /* Filter bar scrollable */
    .filter-bar { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 0.5rem; justify-content: flex-start; }
    .filter-btn { white-space: nowrap; flex-shrink: 0; }

    /* Cyber radio smaller on mobile */
    .cyber-radio { width: 200px; left: 1rem; bottom: 1rem; font-size: 0.58rem; }
    .cyber-radio.collapsed { width: 130px; }

    /* Contact modal full screen on mobile */
    .contact-modal { max-height: 100vh; border-radius: 0; overflow-y: auto; }
    .cm-body { flex-direction: column; }
    .contact-modal-left { padding: 1.2rem; }
    .contact-modal-right { padding: 1.2rem; }

    /* Project card full width */
    .projects-grid { grid-template-columns: 1fr; gap: 1rem; }

    /* Terminal smaller */
    .hero-terminal { font-size: 0.62rem; }
    .terminal-body { min-height: 160px; padding: 1rem; }

    /* Section padding */
    .section { padding: 3rem 0; }
}

@media (max-width: 480px) {
    /* Cyber radio hidden on very small screens - not critical feature */
    .cyber-radio { bottom: 0.5rem; left: 0.5rem; width: 180px; }

    /* Hero title smaller */
    h1.glitch { font-size: clamp(1.8rem, 8vw, 3rem); }

    /* Footer social links 2 columns */
    .social-links { grid-template-columns: repeat(2, 1fr) !important; }

    /* Stats 2 column */
    .stats-inner { grid-template-columns: 1fr 1fr; }
}
