/* ============================================
   HB COMPUTER SECURITY — SYNTHWAVE THEME
   ============================================ */

:root {
    --neon-pink: #fe2085;
    --neon-cyan: #00d9ff;
    --neon-yellow: #fcdf11;
    --neon-green: #39ff14;
    --neon-purple: #bf5af2;
    --deep-blue: #0a0a2e;
    --dark-bg: #000;
    --grid-color: #aa33cc;
    --text-primary: #fff;
    --text-dim: rgba(255, 255, 255, 0.6);
    --card-bg: rgba(10, 10, 46, 0.85);
    --card-border: rgba(0, 217, 255, 0.25);
    --font-display: 'Orbitron', sans-serif;
    --font-mono: 'Share Tech Mono', monospace;
    --font-body: 'Rajdhani', sans-serif;
}

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

html, body {
    margin: 0;
    height: 100%;
    background: #000;
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow: hidden;
}

/* ============================================
   SCANLINE OVERLAY
   ============================================ */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.08) 2px,
        rgba(0, 0, 0, 0.08) 4px
    );
}

/* ============================================
   NAVIGATION
   ============================================ */
#main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    background: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 80%, transparent 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.nav-brand {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-family: var(--font-display);
    font-weight: 800;
}

.nav-logo-text {
    font-size: 1.4rem;
    color: var(--neon-pink);
    text-shadow: 0 0 10px var(--neon-pink), 0 0 30px var(--neon-pink);
    letter-spacing: 2px;
}

.nav-logo-sub {
    font-size: 0.75rem;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
    letter-spacing: 3px;
    font-weight: 500;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
}

.nav-link {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-dim);
    text-decoration: none;
    padding: 0.4rem 1rem;
    border: 1px solid transparent;
    border-radius: 2px;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--neon-cyan);
    border-color: var(--neon-cyan);
    text-shadow: 0 0 8px var(--neon-cyan);
    box-shadow: 0 0 8px rgba(0, 217, 255, 0.15), inset 0 0 8px rgba(0, 217, 255, 0.05);
}

/* Hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.nav-hamburger span {
    width: 24px;
    height: 2px;
    background: var(--neon-cyan);
    transition: all 0.3s ease;
    box-shadow: 0 0 4px var(--neon-cyan);
}

.nav-hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav-hamburger.open span:nth-child(2) {
    opacity: 0;
}
.nav-hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    backdrop-filter: blur(20px);
}

.mobile-menu.open {
    display: flex;
}

.mobile-link {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text-dim);
    text-decoration: none;
    letter-spacing: 4px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    padding: 0.5rem 2rem;
    border: 1px solid transparent;
}

.mobile-link:hover {
    color: var(--neon-cyan);
    text-shadow: 0 0 20px var(--neon-cyan);
    border-color: rgba(0, 217, 255, 0.3);
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-hamburger { display: flex; }
}

/* ============================================
   RETRO BACKGROUND (kept from original)
   ============================================ */
#retrobg {
    position: fixed;
    top: 0;
    left: 0;
    overflow: hidden;
    width: 100%;
    height: 100%;
    color: var(--grid-color);
    background-color: #000;
    z-index: 0;
}

#retrobg-sky {
    position: absolute;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    top: 0;
    width: 100%;
    height: 55%;
    background: linear-gradient(#0a0a2e 60%, #1a1145 75%, #2a1a5e 85%, #4a2a6e);
}

#retrobg-sunWrap {
    position: relative;
    width: 40%;
    margin-bottom: -15%;
}

#retrobg-sun {
    --glow-color: #d44;
    padding-top: 100%;
    border-radius: 50%;
    background-image: linear-gradient(#fcdf11, #ff623f 40%, #fe2085 60%, #bf5af2);
    box-shadow: 0 0 160px 80px var(--glow-color);
    animation: 2s ease infinite alternate retrobg-sun-glow-anim;
}

.retrobg-shutdown #retrobg-sun {
    background-image: linear-gradient(#000, #000 40%);
    --glow-color: #000;
}

@keyframes retrobg-sun-glow-anim {
    from { box-shadow: 0 0 160px 80px var(--glow-color); }
    to   { box-shadow: 0 0 200px 95px var(--glow-color); }
}

#retrobg-stars {
    position: absolute;
    width: 100%;
    height: 100%;
}

.retrobg-star {
    position: absolute;
    border-radius: 50%;
    width: 2px;
    height: 2px;
    background-color: #fff;
    animation: twinkle 3s ease-in-out infinite alternate;
}

.retrobg-star:nth-child(odd) { animation-duration: 2.5s; }
.retrobg-star:nth-child(3n)  { animation-duration: 4s; }

@keyframes twinkle {
    0% { opacity: 0.3; }
    100% { opacity: 1; }
}

#retrobg-mountains {
    position: absolute;
    width: 100%;
    height: 30%;
}

.retrobg-mountain {
    position: absolute;
    width: 30%;
    height: 100%;
    background-image: linear-gradient(#000 70%, #111 85%, #fff1);
}

#retrobg-mountains-left {
    left: 0;
    clip-path: polygon(0% 100%, 0% 55%, 5% 60%, 10% 55%, 20% 50%, 25% 42%, 30% 38%, 33% 35%, 40% 45%, 50% 50%, 60% 70%, 70% 85%, 75% 82%, 80% 91%, 85% 90%, 90% 95%, 95% 98%, 100% 100%);
}

#retrobg-mountains-right {
    right: 0;
    clip-path: polygon(0% 100%, 5% 95%, 10% 85%, 15% 87%, 20% 80%, 25% 78%, 30% 65%, 40% 70%, 50% 57%, 60% 53%, 67% 68%, 70% 70%, 75% 66%, 80% 55%, 90% 50%, 95% 60%, 100% 57%, 100% 100%);
}

#retrobg-cityWrap {
    position: absolute;
    width: 50%;
    margin-left: -1%;
}

#retrobg-city { padding-top: 20%; }

.retrobg-building {
    position: absolute;
    width: 5%;
    height: 100%;
    bottom: 0;
    border-radius: 4px 4px 0 0;
    background-image: linear-gradient(0deg, rgba(17, 17, 34, 0), #112 30px, #000);
}

.retrobg-building:nth-child(odd) {
    background-image: linear-gradient(0deg, rgba(24, 24, 42, 0), #223 30px, #000);
}

.retrobg-antenna::after {
    content: "";
    position: absolute;
    left: 50%;
    margin-left: calc(-1px - 5%);
    bottom: 100%;
    width: 10%;
    min-width: 2px;
    height: 33%;
    background-color: #000;
}

#retrobg-ground {
    position: absolute;
    overflow: hidden;
    width: 100%;
    height: 45%;
    bottom: 0;
    border-top: 2px solid var(--neon-pink);
    background-color: #000;
    box-shadow: 0 -2px 30px rgba(254, 32, 133, 0.3);
}

.retrobg-shutdown #retrobg-ground { border-color: #000; box-shadow: none; }

#retrobg-groundShadow {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(#000 0%, transparent);
}

#retrobg-linesWrap {
    height: 100%;
    perspective: 1000px;
    perspective-origin: center top;
}

#retrobg-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-origin: top center;
    animation: .55s linear infinite retrobg-lines-anim;
}

.retrobg-shutdown #retrobg-lines { animation-duration: 5s; }

@keyframes retrobg-lines-anim {
    from { transform: rotateX(84deg) translateY(0); }
    to   { transform: rotateX(84deg) translateY(100px); }
}

#retrobg-hlines,
#retrobg-vlines {
    position: absolute;
    left: calc((900% - 100%) / -2);
    width: 900%;
    height: 500%;
}

#retrobg-vlines {
    display: flex;
    justify-content: center;
}

.retrobg-hline,
.retrobg-vline {
    width: 100%;
    height: 100%;
    background-color: currentColor;
}

.retrobg-hline { height: 3px; }
.retrobg-vline { width: 3px; }
.retrobg-hline + .retrobg-hline { margin-top: 98px; }
.retrobg-vline + .retrobg-vline { margin-left: 48px; }

/* ============================================
   PAGE CONTENT SYSTEM
   ============================================ */
#page-content {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

.section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    pointer-events: none;
}

.section.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ============================================
   HERO / HOME
   ============================================ */
.section-home {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-container {
    text-align: center;
    z-index: 10;
}

.hero-glitch {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(2rem, 7vw, 5.5rem);
    color: #fff;
    text-shadow:
        0 0 10px rgba(254, 32, 133, 0.5),
        0 0 40px rgba(254, 32, 133, 0.3),
        0 0 80px rgba(254, 32, 133, 0.1);
    letter-spacing: 0.08em;
    line-height: 1.1;
    position: relative;
    animation: hero-entrance 1s ease-out both;
}

.hero-glitch--sub {
    color: var(--neon-cyan);
    text-shadow:
        0 0 10px rgba(0, 217, 255, 0.5),
        0 0 40px rgba(0, 217, 255, 0.3),
        0 0 80px rgba(0, 217, 255, 0.1);
    animation-delay: 0.2s;
    font-size: clamp(1.6rem, 5.5vw, 4.5rem);
    margin-top: -0.1em;
}

@keyframes hero-entrance {
    0% {
        opacity: 0;
        transform: translateY(30px) scaleY(0.8);
        filter: blur(8px);
    }
    60% {
        opacity: 1;
        filter: blur(0);
    }
    100% {
        transform: translateY(0) scaleY(1);
    }
}

/* Glitch hover effect */
.hero-glitch:hover {
    animation: glitch-flicker 0.3s steps(2) infinite;
}

@keyframes glitch-flicker {
    0%   { text-shadow: -2px 0 var(--neon-pink), 2px 0 var(--neon-cyan); }
    25%  { text-shadow: 2px 0 var(--neon-pink), -2px 0 var(--neon-cyan); }
    50%  { text-shadow: -1px 2px var(--neon-pink), 1px -2px var(--neon-cyan); }
    75%  { text-shadow: 1px -1px var(--neon-pink), -1px 1px var(--neon-cyan); }
    100% { text-shadow: -2px 0 var(--neon-pink), 2px 0 var(--neon-cyan); }
}

.hero-cta-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2.5rem;
    opacity: 0;
    animation: fade-in 0.5s ease-out 0.8s both;
}

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

.cta-button {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--neon-cyan);
    background: transparent;
    border: 1px solid var(--neon-cyan);
    padding: 0.7rem 2rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 217, 255, 0.1), transparent);
    transition: left 0.4s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.3), inset 0 0 15px rgba(0, 217, 255, 0.05);
    text-shadow: 0 0 8px var(--neon-cyan);
}

.cta-icon {
    margin-right: 0.3rem;
}

/* ============================================
   PAGE SECTIONS (About, CV, Blog, Contact)
   ============================================ */
.section-page {
    overflow-y: auto;
    padding-top: 80px;
    padding-bottom: 4rem;
}

.page-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.5rem, 4vw, 2.8rem);
    color: var(--neon-pink);
    text-shadow: 0 0 20px rgba(254, 32, 133, 0.4);
    margin-bottom: 2rem;
    letter-spacing: 3px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-pink), var(--neon-cyan));
    margin-top: 0.8rem;
    box-shadow: 0 0 10px var(--neon-pink);
}

.section-subtitle {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    color: var(--neon-cyan);
    text-shadow: 0 0 15px rgba(0, 217, 255, 0.3);
    margin: 3rem 0 1.5rem;
    letter-spacing: 3px;
}

/* Content Cards */
.content-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 4px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.content-card:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.1);
}

.card-scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.content-card:hover .card-scanline {
    opacity: 1;
    animation: scan-across 2s linear infinite;
}

@keyframes scan-across {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.card-heading {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.3rem;
    color: var(--neon-cyan);
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.card-heading--sm {
    font-size: 1rem;
}

.card-text {
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-dim);
    margin-bottom: 0.8rem;
    font-weight: 400;
}

.card-text--sm {
    font-size: 0.95rem;
    line-height: 1.6;
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 0.8rem;
    opacity: 0.7;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.content-card--small {
    text-align: center;
    padding: 1.5rem;
}

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

.cv-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--neon-pink), var(--neon-cyan), var(--neon-purple));
    box-shadow: 0 0 8px var(--neon-pink);
}

.cv-entry {
    position: relative;
    margin-bottom: 2rem;
}

.cv-entry::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 1rem;
    width: 10px;
    height: 10px;
    background: var(--neon-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-cyan);
    transform: translateX(-4px);
}

.cv-date {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--neon-pink);
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 8px rgba(254, 32, 133, 0.3);
}

.cv-card {
    margin-bottom: 0;
}

/* Cert Grid */
.cert-category-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--neon-purple);
    text-shadow: 0 0 8px rgba(191, 90, 242, 0.3);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

.cert-grid {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.cert-grid--dense {
    gap: 0.6rem;
}

.cert-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 1rem 1.4rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 4px;
    transition: all 0.3s ease;
    min-width: 120px;
    text-align: center;
}

.cert-badge--sm {
    padding: 0.6rem 0.8rem;
    min-width: 90px;
}

.cert-badge:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.15);
    transform: translateY(-3px);
}

a.cert-badge {
    text-decoration: none;
    color: inherit;
}

.cert-label {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--neon-cyan);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.cert-badge--sm .cert-label {
    font-size: 0.7rem;
}

.cert-sub {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--text-dim);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ============================================
   BLOG
   ============================================ */
.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.blog-card {
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateX(4px);
}

.blog-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 0.8rem;
}

.blog-date {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-dim);
    letter-spacing: 1px;
}

.blog-tag {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--neon-green);
    background: rgba(57, 255, 20, 0.1);
    border: 1px solid rgba(57, 255, 20, 0.3);
    padding: 0.15rem 0.6rem;
    border-radius: 2px;
    letter-spacing: 2px;
}

.blog-read-more {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--neon-cyan);
    text-decoration: none;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 0.5rem;
}

.blog-read-more:hover {
    text-shadow: 0 0 8px var(--neon-cyan);
    transform: translateX(4px);
}

.blog-card {
    cursor: pointer;
}

/* ============================================
   BLOG READER OVERLAY
   ============================================ */
.blog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5000;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.blog-overlay.open {
    display: flex;
    opacity: 1;
}

.blog-reader-window {
    width: 90%;
    max-width: 760px;
    height: 80vh;
    max-height: 650px;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    box-shadow:
        0 0 40px rgba(0, 217, 255, 0.1),
        0 0 80px rgba(0, 0, 0, 0.6),
        0 4px 60px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 217, 255, 0.2);
    transform: scale(0.95) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.blog-overlay.open .blog-reader-window {
    transform: scale(1) translateY(0);
}

.blog-reader-topbar {
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, #1e1030, #150c22);
    height: 36px;
    padding: 0 12px;
    border-bottom: 1px solid rgba(0, 217, 255, 0.15);
    flex-shrink: 0;
}

.blog-reader-body {
    flex: 1;
    background: rgba(5, 5, 15, 0.97);
    padding: 2.5rem 2.5rem 3rem;
    overflow-y: auto;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.75);
}

.blog-reader-body::-webkit-scrollbar {
    width: 5px;
}

.blog-reader-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

.blog-reader-body::-webkit-scrollbar-thumb {
    background: var(--neon-cyan);
    border-radius: 3px;
    box-shadow: 0 0 4px var(--neon-cyan);
}

/* Blog reader typography */
.blog-reader-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.blog-reader-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.3rem, 3vw, 2rem);
    color: var(--neon-cyan);
    text-shadow: 0 0 15px rgba(0, 217, 255, 0.3);
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    line-height: 1.3;
}

.blog-reader-body h1 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.3rem, 3vw, 2rem);
    color: var(--neon-cyan);
    text-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
    letter-spacing: 1px;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.blog-reader-body h2 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--neon-pink);
    text-shadow: 0 0 10px rgba(254, 32, 133, 0.2);
    margin: 2rem 0 1rem;
    letter-spacing: 1px;
}

.blog-reader-body h3 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    color: var(--neon-purple);
    margin: 1.5rem 0 0.8rem;
    letter-spacing: 1px;
}

.blog-reader-body p {
    margin-bottom: 1rem;
}

.blog-reader-body code {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.06);
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    color: var(--neon-green);
}

.blog-reader-body pre {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(170, 51, 204, 0.2);
    border-radius: 4px;
    padding: 1rem 1.2rem;
    margin: 1.2rem 0;
    overflow-x: auto;
}

.blog-reader-body pre code {
    background: none;
    padding: 0;
    font-size: 0.8rem;
    line-height: 1.6;
    color: var(--neon-green);
}

.blog-reader-body a {
    color: var(--neon-cyan);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 217, 255, 0.3);
    transition: all 0.2s ease;
}

.blog-reader-body a:hover {
    text-shadow: 0 0 8px var(--neon-cyan);
    border-bottom-color: var(--neon-cyan);
}

.blog-reader-body ul,
.blog-reader-body ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.blog-reader-body li {
    margin-bottom: 0.4rem;
}

.blog-reader-body img {
    max-width: 100%;
    border-radius: 4px;
    border: 1px solid rgba(170, 51, 204, 0.2);
    margin: 1rem 0;
}

.blog-reader-body hr {
    border: none;
    border-top: 1px solid rgba(170, 51, 204, 0.25);
    margin: 2rem 0;
}

.blog-reader-body em {
    color: var(--text-dim);
}

.blog-reader-body strong {
    color: rgba(255, 255, 255, 0.9);
}

.blog-reader-body blockquote {
    border-left: 3px solid var(--neon-pink);
    padding-left: 1.2rem;
    margin: 1.2rem 0;
    color: var(--text-dim);
    font-style: italic;
}

@media (max-width: 768px) {
    .blog-reader-window {
        width: 96%;
        height: 85vh;
        max-height: none;
    }
    .blog-reader-body {
        padding: 1.5rem 1.2rem 2rem;
    }
}

/* ============================================
   CONTACT
   ============================================ */
.contact-card {
    max-width: 600px;
    margin: 0 auto;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-dim);
    text-decoration: none;
    padding: 1rem 1.5rem;
    border: 1px solid var(--card-border);
    border-radius: 4px;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.contact-link:hover {
    color: var(--neon-cyan);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.1);
    transform: translateX(4px);
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
}

.contact-icon svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .hero-glitch {
        font-size: clamp(1.5rem, 10vw, 3rem);
    }

    .hero-glitch--sub {
        font-size: clamp(1.2rem, 8vw, 2.5rem);
    }

    .hero-cta-row {
        flex-direction: column;
        align-items: center;
    }

    .page-container {
        padding: 0 1rem;
    }

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

    .cv-timeline {
        padding-left: 1.5rem;
    }

    .cert-grid {
        gap: 1rem;
    }

    .cert-badge {
        min-width: 100px;
        padding: 1rem;
    }
}

/* ============================================
   SCROLLBAR
   ============================================ */
.section-page::-webkit-scrollbar {
    width: 6px;
}

.section-page::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

.section-page::-webkit-scrollbar-thumb {
    background: var(--neon-pink);
    border-radius: 3px;
    box-shadow: 0 0 6px var(--neon-pink);
}

.section-page::-webkit-scrollbar-thumb:hover {
    background: var(--neon-cyan);
    box-shadow: 0 0 6px var(--neon-cyan);
}

/* ============================================
   AUDIO WIDGET — 80s COMPACT STEREO
   ============================================ */
.aw-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.audio-widget {
    width: 240px;
    background: linear-gradient(
        180deg,
        #1a1a2e 0%,
        #0d0d1a 40%,
        #0a0a14 100%
    );
    border: 1px solid rgba(170, 51, 204, 0.35);
    border-top-color: rgba(254, 32, 133, 0.4);
    border-radius: 6px;
    padding: 0;
    overflow: hidden;
    box-shadow:
        0 0 20px rgba(254, 32, 133, 0.12),
        0 0 60px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    font-family: var(--font-mono);
    transition: box-shadow 0.4s ease, opacity 0.3s ease, transform 0.3s ease;
    transform-origin: bottom right;
}

.audio-widget:hover {
    box-shadow:
        0 0 25px rgba(254, 32, 133, 0.2),
        0 0 80px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Collapsed state */
.aw-container.collapsed .audio-widget {
    opacity: 0;
    transform: scale(0.3);
    pointer-events: none;
    position: absolute;
    bottom: 0;
    right: 0;
}

.aw-container.collapsed .aw-fab {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

/* -- Header with toggle button -- */
.aw-header {
    display: flex;
    justify-content: flex-end;
    padding: 3px 6px 0;
    background: linear-gradient(180deg, #1e1030, #1a1a2e);
}

.aw-toggle {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 0.55rem;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 2px;
    transition: all 0.2s ease;
    line-height: 1;
    opacity: 0.5;
}

.aw-toggle:hover {
    opacity: 1;
    color: var(--neon-cyan);
}

/* -- FAB (minimised state) -- */
.aw-fab {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a1a2e, #0d0d1a);
    border: 1px solid rgba(254, 32, 133, 0.4);
    color: var(--neon-pink);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 0 15px rgba(254, 32, 133, 0.2),
        0 0 40px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0.3);
    pointer-events: none;
    position: absolute;
    bottom: 0;
    right: 0;
}

.aw-fab:hover {
    border-color: var(--neon-pink);
    box-shadow:
        0 0 20px rgba(254, 32, 133, 0.35),
        0 0 50px rgba(0, 0, 0, 0.6);
    text-shadow: 0 0 8px var(--neon-pink);
    transform: scale(1.08);
}

/* Pulsing glow when music is playing and collapsed */
.aw-container.collapsed .aw-fab.playing {
    animation: fab-pulse 2s ease infinite alternate;
}

@keyframes fab-pulse {
    from {
        box-shadow: 0 0 15px rgba(254, 32, 133, 0.2), 0 0 40px rgba(0, 0, 0, 0.5);
        border-color: rgba(254, 32, 133, 0.4);
    }
    to {
        box-shadow: 0 0 25px rgba(254, 32, 133, 0.4), 0 0 50px rgba(0, 0, 0, 0.5);
        border-color: rgba(254, 32, 133, 0.7);
    }
}

/* -- Display area (EQ + status) -- */
.aw-display {
    background:
        linear-gradient(180deg, #05050f, #0a0a18 50%, #08081a);
    border-bottom: 1px solid rgba(170, 51, 204, 0.2);
    padding: 10px 12px 8px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    min-height: 48px;
    position: relative;
}

/* faint screen glare */
.aw-display::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent);
    pointer-events: none;
    border-radius: 4px 4px 0 0;
}

/* -- EQ Bars -- */
.aw-eq {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 28px;
}

.aw-eq-bar {
    width: 4px;
    height: 4px;
    min-height: 4px;
    background: var(--neon-cyan);
    border-radius: 1px;
    transition: height 0.15s ease;
    box-shadow: 0 0 4px rgba(0, 217, 255, 0.4);
}

/* Animate bars when playing */
.aw-eq.playing .aw-eq-bar {
    animation: eq-bounce 0.6s ease-in-out infinite alternate;
}

.aw-eq.playing .aw-eq-bar:nth-child(1) { animation-duration: 0.45s; }
.aw-eq.playing .aw-eq-bar:nth-child(2) { animation-duration: 0.55s; animation-delay: 0.05s; }
.aw-eq.playing .aw-eq-bar:nth-child(3) { animation-duration: 0.4s;  animation-delay: 0.1s; }
.aw-eq.playing .aw-eq-bar:nth-child(4) { animation-duration: 0.6s;  animation-delay: 0.02s; }
.aw-eq.playing .aw-eq-bar:nth-child(5) { animation-duration: 0.5s;  animation-delay: 0.08s; }
.aw-eq.playing .aw-eq-bar:nth-child(6) { animation-duration: 0.42s; animation-delay: 0.12s; }
.aw-eq.playing .aw-eq-bar:nth-child(7) { animation-duration: 0.52s; animation-delay: 0.03s; }

@keyframes eq-bounce {
    0%   { height: 4px;  background: var(--neon-cyan); }
    50%  { background: var(--neon-pink); }
    100% { height: 26px; background: var(--neon-yellow); }
}

/* -- Status text -- */
.aw-status {
    font-size: 0.6rem;
    letter-spacing: 2px;
    color: var(--neon-green);
    text-shadow: 0 0 6px rgba(57, 255, 20, 0.5);
    text-transform: uppercase;
    white-space: nowrap;
}

.aw-status.paused {
    color: var(--text-dim);
    text-shadow: none;
}

/* -- Progress bar -- */
.aw-progress-wrap {
    height: 3px;
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
    position: relative;
}

.aw-progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--neon-pink), var(--neon-cyan));
    box-shadow: 0 0 6px var(--neon-pink);
    transition: width 0.1s linear;
    position: relative;
}

.aw-progress::after {
    content: '';
    position: absolute;
    right: -1px;
    top: -2px;
    width: 7px;
    height: 7px;
    background: var(--neon-cyan);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--neon-cyan);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.aw-progress-wrap:hover .aw-progress::after {
    opacity: 1;
}

/* -- Controls -- */
.aw-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 8px 10px;
}

.aw-btn {
    background: none;
    border: 1px solid transparent;
    color: var(--text-dim);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 3px;
    transition: all 0.2s ease;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aw-btn:hover {
    color: var(--neon-cyan);
    border-color: rgba(0, 217, 255, 0.25);
    text-shadow: 0 0 8px var(--neon-cyan);
}

.aw-btn--play {
    font-size: 1rem;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(254, 32, 133, 0.35);
    border-radius: 50%;
    color: var(--neon-pink);
    margin: 0 4px;
    transition: all 0.25s ease;
}

.aw-btn--play:hover {
    color: #fff;
    background: rgba(254, 32, 133, 0.15);
    border-color: var(--neon-pink);
    box-shadow: 0 0 15px rgba(254, 32, 133, 0.25);
    text-shadow: 0 0 8px var(--neon-pink);
}

.aw-btn--play.playing {
    color: var(--neon-cyan);
    border-color: rgba(0, 217, 255, 0.35);
}

.aw-btn--play.playing:hover {
    background: rgba(0, 217, 255, 0.15);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.25);
}

/* -- Volume -- */
.aw-volume {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.aw-btn--vol {
    font-size: 0.8rem;
    padding: 4px 4px;
}

.aw-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 50px;
    height: 3px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.aw-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px;
    height: 10px;
    background: var(--neon-purple);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 6px var(--neon-purple);
    transition: box-shadow 0.2s ease;
}

.aw-slider::-webkit-slider-thumb:hover {
    box-shadow: 0 0 12px var(--neon-purple);
}

.aw-slider::-moz-range-thumb {
    width: 10px;
    height: 10px;
    background: var(--neon-purple);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 6px var(--neon-purple);
}

/* -- Responsive auto-collapse -- */
@media (max-width: 600px) {
    .aw-container:not(.user-expanded) {
        /* Auto-collapse on small viewports */
    }
    .aw-container:not(.user-expanded) .audio-widget {
        opacity: 0;
        transform: scale(0.3);
        pointer-events: none;
        position: absolute;
        bottom: 0;
        right: 0;
    }
    .aw-container:not(.user-expanded) .aw-fab {
        opacity: 1;
        transform: scale(1);
        pointer-events: auto;
    }
}

/* ============================================
   TERMINAL OVERLAY
   ============================================ */
.terminal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5000;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.terminal-overlay.open {
    display: flex;
    opacity: 1;
}

.term-window {
    width: 90%;
    max-width: 820px;
    height: 70vh;
    max-height: 550px;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    box-shadow:
        0 0 40px rgba(254, 32, 133, 0.15),
        0 0 80px rgba(0, 0, 0, 0.6),
        0 4px 60px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(170, 51, 204, 0.3);
    transform: scale(0.95) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.terminal-overlay.open .term-window {
    transform: scale(1) translateY(0);
}

/* -- Top bar -- */
.term-topbar {
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, #1e1030, #150c22);
    height: 36px;
    padding: 0 12px;
    border-bottom: 1px solid rgba(170, 51, 204, 0.25);
    flex-shrink: 0;
}

.term-dots {
    display: flex;
    gap: 7px;
    align-items: center;
}

.term-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: filter 0.2s ease;
}

.term-dot:hover {
    filter: brightness(1.3);
}

.term-dot--close {
    background: #ff5f56;
    box-shadow: 0 0 4px rgba(255, 95, 86, 0.5);
}

.term-dot--min {
    background: #ffbd2e;
    box-shadow: 0 0 4px rgba(255, 189, 46, 0.5);
}

.term-dot--max {
    background: #27c93f;
    box-shadow: 0 0 4px rgba(39, 201, 63, 0.5);
}

.term-title {
    flex: 1;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-dim);
    letter-spacing: 1px;
}

.term-topbar-spacer {
    width: 50px;
}

/* -- Terminal body -- */
.term-body {
    flex: 1;
    background: rgba(5, 5, 15, 0.95);
    padding: 12px 14px;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.5;
    color: #c0c0c0;
}

.term-body::-webkit-scrollbar {
    width: 5px;
}

.term-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

.term-body::-webkit-scrollbar-thumb {
    background: var(--neon-purple);
    border-radius: 3px;
    box-shadow: 0 0 4px var(--neon-purple);
}

.term-output {
    white-space: pre-wrap;
    word-break: break-word;
}

.term-output-after {
    white-space: pre-wrap;
    word-break: break-word;
}

.term-input-line {
    display: flex;
    align-items: center;
}

.term-prompt {
    margin-right: 6px;
    color: var(--neon-green);
    text-shadow: 0 0 4px rgba(57, 255, 20, 0.4);
    white-space: nowrap;
    font-weight: 500;
}

.term-input {
    background: none;
    border: none;
    color: #e0e0e0;
    flex-grow: 1;
    outline: none;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    caret-color: var(--neon-green);
}

/* Terminal colour classes */
.term-c-user { color: var(--neon-green); }
.term-c-root { color: #ff4444; }
.term-c-dir  { color: var(--neon-cyan); }
.term-c-pink { color: var(--neon-pink); }
.term-c-cyan { color: var(--neon-cyan); }
.term-c-yellow { color: var(--neon-yellow); }
.term-c-green { color: var(--neon-green); }
.term-c-purple { color: var(--neon-purple); }
.term-c-dim { color: var(--text-dim); }
.term-c-white { color: #ffffff; }
.term-c-red { color: #ff4444; }

@media (max-width: 768px) {
    .term-window {
        width: 96%;
        height: 80vh;
        max-height: none;
    }
    .term-body {
        font-size: 0.72rem;
        -webkit-overflow-scrolling: touch;
    }
    /* Prevent iOS auto-zoom on input focus (requires font-size >= 16px) */
    .term-input {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .cert-badge--sm {
        min-width: 70px;
        padding: 0.5rem;
    }
    .cert-badge--sm .cert-label {
        font-size: 0.65rem;
    }
}
