/* ============================================================
   ROOT — LIGHT (default) & DARK
   ============================================================ */
*, *::before, *::after {
    margin: 0; padding: 0;
    box-sizing: border-box;
    cursor: none !important;
}

:root {
    --bg:         #f4f4f4;
    --bg-alt:     #ebebeb;
    --card:       #ffffff;
    --thumb:      #e2e2e2;
    --border:     rgba(0,0,0,0.09);
    --border-h:   rgba(0,0,0,0.22);
    --primary:    #1e5c3c;
    --primary-bg: rgba(30,92,60,0.07);
    --text:       #111111;
    --text-2:     #555555;
    --text-3:     #aaaaaa;
    --shadow-h:   0 4px 24px rgba(0,0,0,0.10);
    --cursor:     rgba(30,92,60,0.35);
}

[data-theme="dark"] {
    --bg:         #0e0f12;
    --bg-alt:     #131417;
    --card:       #1a1b1f;
    --thumb:      #141518;
    --border:     rgba(255,255,255,0.07);
    --border-h:   rgba(255,255,255,0.18);
    --primary:    #6aaa84;
    --primary-bg: rgba(106,170,132,0.08);
    --text:       #ebebeb;
    --text-2:     #888888;
    --text-3:     #3a3a3a;
    --shadow-h:   0 4px 24px rgba(0,0,0,0.45);
    --cursor:     rgba(106,170,132,0.35);
}

html { scroll-behavior: smooth; }

body {
    font-family: Calibri, Carlito, 'Segoe UI', sans-serif;
    font-size: 14px;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
    transition: background .3s, color .3s;
}

/* ============================================================
   CURSOR
   ============================================================ */
#cursor-dot {
    position: fixed; width: 4px; height: 4px;
    background: var(--primary); border-radius: 50%;
    pointer-events: none; z-index: 9999;
    transform: translate(-50%,-50%);
    transition: opacity .2s;
}
#cursor-ring {
    position: fixed; width: 26px; height: 26px;
    border: 1px solid var(--cursor); border-radius: 50%;
    pointer-events: none; z-index: 9998;
    transform: translate(-50%,-50%);
    transition: width .22s ease, height .22s ease, opacity .22s ease;
}
#cursor-ring.expanded { width: 44px; height: 44px; opacity: .5; }
#cursor-dot.hidden { opacity: 0; }

/* ============================================================
   UTILITIES
   ============================================================ */
.container { max-width: 960px; margin: 0 auto; padding: 0 1.5rem; }

.gradient-text {
    background: linear-gradient(120deg, var(--text) 0%, var(--text-2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 200;
    padding: 1.25rem 0;
    transition: background .3s, border-color .3s, padding .3s;
    border-bottom: 1px solid transparent;
}
.navbar.scrolled {
    background: var(--bg);
    border-color: var(--border);
    padding: .9rem 0;
}
.nav-container {
    max-width: 1100px; margin: 0 auto; padding: 0 1.5rem;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.nav-logo {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.05rem; font-weight: 700; letter-spacing: .04em;
    text-decoration: none; color: var(--text); flex-shrink: 0;
}
.logo-bracket { color: var(--primary); }

.nav-links { display: flex; list-style: none; gap: 2rem; }
.nav-links a {
    text-decoration: none; color: var(--text-2);
    font-size: .84rem; font-weight: 600;
    letter-spacing: .09em; text-transform: uppercase;
    transition: color .2s; position: relative; padding-bottom: 2px;
}
.nav-links a::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 0; height: 1px; background: var(--primary);
    transition: width .2s;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { width: 100%; }

.nav-right { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }

.theme-toggle {
    width: 28px; height: 28px; border-radius: 6px;
    border: 1px solid var(--border); background: transparent;
    color: var(--text-2); display: flex; align-items: center;
    justify-content: center; transition: all .2s;
}
.theme-toggle:hover { border-color: var(--primary); color: var(--primary); }
.icon-dark { display: none; }
.icon-light { display: block; }
[data-theme="dark"] .icon-light { display: none; }
[data-theme="dark"] .icon-dark { display: block; }

.nav-toggle {
    display: none; flex-direction: column; gap: 4px;
    background: none; border: none; padding: 4px; z-index: 201;
}
.nav-toggle span {
    display: block; width: 18px; height: 1.5px;
    background: var(--text); border-radius: 2px; transition: all .3s;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative; min-height: 100vh;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
#neuralCanvas {
    position: absolute; inset: 0; width: 100%; height: 100%;
    opacity: .1; pointer-events: none; transition: opacity .3s;
}
[data-theme="dark"] #neuralCanvas { opacity: .22; }

.hero-inner {
    position: relative; z-index: 10;
    display: grid; grid-template-columns: 1fr auto;
    gap: 4rem; align-items: center;
    width: 100%; max-width: 960px; padding: 0 1.5rem;
    animation: fadeUp .6s ease both;
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: .66rem; color: var(--primary);
    letter-spacing: .14em; margin-bottom: 1rem;
    display: flex; align-items: center; gap: .6rem;
}

.badge-dot {
    width: 5px; height: 5px; background: var(--primary);
    border-radius: 50%; animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:.3;} }

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 700; line-height: 1.0;
    letter-spacing: .04em; text-transform: uppercase;
    margin-bottom: .6rem;
}
.hero-sub-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: .72rem; color: var(--text-2);
    letter-spacing: .04em; margin-bottom: 1rem; opacity: .8;
}
.hero-typing {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(.82rem, 1.6vw, .95rem);
    color: var(--text-2); margin-bottom: 1.1rem; min-height: 1.6rem;
}
.cursor { color: var(--primary); animation: blink 1s step-end infinite; }
@keyframes blink { 50%{opacity:0;} }

.hero-desc {
    font-size: .88rem; color: var(--text-2);
    max-width: 420px; line-height: 1.8; margin-bottom: 1.8rem;
}
.hero-cta { display: flex; gap: .45rem; flex-wrap: wrap; }

.btn {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .5rem 1.05rem; border-radius: 5px;
    font-size: .72rem; font-weight: 700;
    text-decoration: none; transition: all .2s;
    border: 1px solid transparent; font-family: Calibri, Carlito, 'Segoe UI', sans-serif;
    letter-spacing: .09em; text-transform: uppercase;
}
.btn-primary { background: var(--primary); color: var(--bg); border-color: var(--primary); }
.btn-primary:hover { opacity: .85; transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--border-h); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); }

.hero-photo {
    width: 160px; height: 160px; border-radius: 50%;
    object-fit: cover; object-position: center top;
    border: 2px solid var(--border); display: block;
    filter: grayscale(10%);
}

.hero-scroll {
    position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: .3rem;
    color: var(--text-3); font-size: .58rem; letter-spacing: .14em;
    text-transform: uppercase; z-index: 10;
    animation: fadeIn 1.5s ease 1s both;
    font-family: 'JetBrains Mono', monospace;
}
@keyframes fadeIn { from{opacity:0;} to{opacity:1;} }
.scroll-arrow {
    width: 10px; height: 10px;
    border-right: 1px solid var(--text-3); border-bottom: 1px solid var(--text-3);
    transform: rotate(45deg); animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce { 0%,100%{transform:rotate(45deg) translateY(0);} 50%{transform:rotate(45deg) translateY(5px);} }

/* ============================================================
   SECTION SHARED
   ============================================================ */
.section { padding: 5rem 0; }
.section-header { margin-bottom: 2.5rem; }
.section-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: .64rem; color: var(--primary);
    letter-spacing: .14em; margin-bottom: .45rem; display: none;
}
.section-title {
    font-size: clamp(1.35rem, 2.8vw, 1.7rem);
    font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.section-divider {
    width: 28px; height: 1px; background: var(--primary); margin-top: .65rem;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about { background: var(--bg-alt); }
.about-grid { display: grid; grid-template-columns: 1fr 235px; gap: 3rem; align-items: start; }
.about-text p { color: var(--text-2); margin-bottom: .8rem; font-size: .88rem; line-height: 1.8; }
.about-text strong { color: var(--text); font-weight: 700; }
.about-stats { display: flex; gap: 2.5rem; margin-top: 1.4rem; padding-top: 1.4rem; border-top: 1px solid var(--border); }
.stat-number { font-size: 1.5rem; font-weight: 700; line-height: 1; margin-bottom: .1rem; }
.stat-label { font-size: .6rem; color: var(--text-3); text-transform: uppercase; letter-spacing: .1em; font-family: 'JetBrains Mono', monospace; }

.info-card { background: var(--card); border-radius: 8px; border: 1px solid var(--border); overflow: hidden; }
.info-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .58rem 1rem; border-bottom: 1px solid var(--border); }
.info-row:last-child { border-bottom: none; }
.info-k { font-family: 'JetBrains Mono', monospace; font-size: .6rem; color: var(--text-3); letter-spacing: .08em; flex-shrink: 0; }
.info-v { font-size: .78rem; color: var(--text); font-weight: 600; text-align: right; }
.status-badge {
    display: inline-block; padding: .1rem .48rem;
    background: var(--primary-bg); border: 1px solid rgba(98,114,232,.2);
    border-radius: 3px; font-size: .62rem; font-weight: 700;
    color: var(--primary); font-family: 'JetBrains Mono', monospace; letter-spacing: .06em;
}

/* ============================================================
   EXPERIENCE
   ============================================================ */
.experience { background: var(--bg); }
.exp-list { display: flex; flex-direction: column; }
.exp-item { padding: 1.5rem 0; border-bottom: 1px solid var(--border); }
.exp-item:first-child { padding-top: 0; }
.exp-item:last-child { border-bottom: none; padding-bottom: 0; }
.exp-header { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .15rem; flex-wrap: wrap; }
.exp-company { font-size: .95rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.exp-date-meta { text-align: right; flex-shrink: 0; }
.exp-date { font-family: 'JetBrains Mono', monospace; font-size: .63rem; color: var(--text-3); display: block; }
.exp-loc { font-family: 'JetBrains Mono', monospace; font-size: .6rem; color: var(--text-3); display: block; margin-top: .05rem; }
.exp-role { font-size: .73rem; color: var(--primary); font-weight: 600; font-family: 'JetBrains Mono', monospace; letter-spacing: .03em; margin-bottom: .65rem; }
.exp-bullets { list-style: none; display: flex; flex-direction: column; gap: .3rem; margin-bottom: .75rem; }
.exp-bullets li { font-size: .83rem; color: var(--text-2); padding-left: 1rem; position: relative; line-height: 1.7; }
.exp-bullets li::before { content: ''; position: absolute; left: .15rem; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--primary); }
.exp-bullets li strong { color: var(--text); }
.exp-tags { display: flex; flex-wrap: wrap; gap: .28rem; }

/* ============================================================
   EDUCATION
   ============================================================ */
.education { background: var(--bg-alt); }
.edu-list { display: flex; flex-direction: column; }
.edu-item { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; padding: 1.3rem 0; border-bottom: 1px solid var(--border); }
.edu-item:first-child { padding-top: 0; }
.edu-item:last-child { border-bottom: none; padding-bottom: 0; }
.edu-school { font-size: .92rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-bottom: .18rem; }
.edu-degree { font-size: .81rem; color: var(--text-2); margin-bottom: .15rem; }
.edu-courses { font-family: 'JetBrains Mono', monospace; font-size: .65rem; color: var(--text-3); max-width: 420px; line-height: 1.7; }
.edu-meta { text-align: right; flex-shrink: 0; }
.edu-period { display: block; font-family: 'JetBrains Mono', monospace; font-size: .63rem; color: var(--text-3); margin-bottom: .18rem; }
.edu-gpa { font-size: .76rem; color: var(--primary); font-weight: 700; font-family: 'JetBrains Mono', monospace; }

/* ============================================================
   SKILLS
   ============================================================ */
.skills { background: var(--bg); }
.skills-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: .65rem; }
.skill-category { background: var(--card); border-radius: 8px; padding: 1.1rem 1.15rem; border: 1px solid var(--border); transition: border-color .22s, box-shadow .22s; }
.skill-category:hover { border-color: var(--border-h); box-shadow: var(--shadow-h); }
.skill-cat-title { font-family: 'JetBrains Mono', monospace; font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--primary); margin-bottom: .75rem; }
.skill-tags { display: flex; flex-wrap: wrap; gap: .26rem; }
.skill-tag { padding: .16rem .52rem; border-radius: 3px; font-family: 'JetBrains Mono', monospace; font-size: .63rem; font-weight: 500; background: var(--bg-alt); color: var(--text-2); border: 1px solid var(--border); transition: all .18s; }
.skill-tag:hover { background: var(--primary-bg); color: var(--primary); border-color: rgba(98,114,232,.3); }

/* ============================================================
   PROJECTS
   ============================================================ */
.projects { background: var(--bg-alt); }
.project-filters { display: flex; gap: .35rem; margin-bottom: 2rem; flex-wrap: wrap; }
.filter-btn { padding: .25rem .7rem; border-radius: 4px; font-size: .65rem; font-weight: 700; border: 1px solid var(--border); background: transparent; color: var(--text-2); transition: all .18s; font-family: 'JetBrains Mono', monospace; letter-spacing: .07em; text-transform: uppercase; }
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active { background: var(--primary); color: var(--bg); border-color: var(--primary); }

.projects-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: .65rem; }
.project-card { background: var(--card); border: 1px solid var(--border); border-left: 2px solid transparent; border-radius: 8px; overflow: hidden; transition: border-color .22s, box-shadow .22s, transform .22s, border-left-color .22s; display: flex; flex-direction: column; }
.project-card:hover { border-color: var(--border-h); border-left-color: var(--primary); transform: translateY(-3px); box-shadow: var(--shadow-h); }
.project-card.hidden { display: none; }

.project-thumb { height: 96px; background: var(--thumb); display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--border); color: var(--text-3); flex-shrink: 0; transition: background .22s, color .22s; }
.project-card:hover .project-thumb { background: var(--primary-bg); color: var(--primary); }

.project-body { padding: .85rem .95rem; flex: 1; display: flex; flex-direction: column; }
.project-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: .38rem; }
.project-type { font-family: 'JetBrains Mono', monospace; font-size: .58rem; color: var(--primary); text-transform: uppercase; letter-spacing: .1em; }
.project-link { color: var(--text-3); display: flex; align-items: center; text-decoration: none; transition: color .2s, transform .2s; }
.project-link:hover { color: var(--primary); transform: translate(1px,-1px); }
.project-title { font-size: .85rem; font-weight: 700; letter-spacing: .03em; margin-bottom: .38rem; text-transform: uppercase; }
.project-desc { font-size: .79rem; color: var(--text-2); line-height: 1.7; margin-bottom: .7rem; flex: 1; }
.project-tags { display: flex; flex-wrap: wrap; gap: .22rem; margin-top: auto; }
.tag { padding: .12rem .4rem; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 3px; font-family: 'JetBrains Mono', monospace; font-size: .58rem; color: var(--text-2); }

/* ============================================================
   CERTIFICATIONS
   ============================================================ */
.certifications { background: var(--bg); }
.cert-list { display: flex; flex-direction: column; }
.cert-row { display: flex; justify-content: space-between; align-items: center; padding: .78rem 0; border-bottom: 1px solid var(--border); gap: 1rem; }
.cert-row:first-child { padding-top: 0; }
.cert-row:last-child { border-bottom: none; padding-bottom: 0; }
.cert-name { font-size: .84rem; font-weight: 600; color: var(--text); letter-spacing: .01em; }
.cert-issuer { font-family: 'JetBrains Mono', monospace; font-size: .62rem; color: var(--primary); flex-shrink: 0; text-align: right; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--bg-alt); }
.contact-desc { font-size: .88rem; color: var(--text-2); margin-bottom: 1.8rem; line-height: 1.8; max-width: 480px; }
.contact-links { display: flex; gap: .45rem; flex-wrap: wrap; }
.contact-btn { display: inline-flex; align-items: center; gap: .5rem; padding: .56rem 1.15rem; background: var(--card); border: 1px solid var(--border); border-radius: 5px; text-decoration: none; color: var(--text); font-weight: 700; font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; transition: all .2s; }
.contact-btn:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-h); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { padding: 1.4rem 0; border-top: 1px solid var(--border); text-align: center; color: var(--text-3); font-size: .7rem; letter-spacing: .06em; font-family: 'JetBrains Mono', monospace; }

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

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .skills-grid { grid-template-columns: repeat(2,1fr); }
    .projects-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; gap: 1.8rem; }
}
@media (max-width: 768px) {
    .nav-links { display: none; position: fixed; inset: 0; background: var(--bg); flex-direction: column; justify-content: center; align-items: center; gap: 2rem; z-index: 199; }
    .nav-links.open { display: flex; }
    .nav-links a { font-size: .9rem; }
    .nav-toggle { display: flex; }

    .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
    .hero-photo-wrap { order: -1; display: flex; justify-content: center; }
    .hero-photo { width: 120px; height: 120px; border-radius: 50%; }
    .hero-desc { margin: 0 auto 1.4rem; }
    .hero-cta { justify-content: center; }
    .hero-label { justify-content: center; }

    .skills-grid { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; }
    .exp-header { flex-direction: column; align-items: flex-start; gap: .2rem; }
    .exp-date-meta { text-align: left; }
    .edu-item { flex-direction: column; gap: .4rem; }
    .edu-meta { text-align: left; }
    .cert-row { flex-direction: column; align-items: flex-start; gap: .1rem; }
    .cert-issuer { text-align: left; }
}
@media (max-width: 480px) {
    .hero-cta { flex-direction: column; align-items: center; }
    .btn { width: 100%; justify-content: center; }
    .contact-links { flex-direction: column; }
    .contact-btn { justify-content: center; }
}

/* ============================================================
   TYPE: Calibri for text, Poppins for headings
   ============================================================ */
body { font-size: 15px; }
h1, h2, h3, h4, .section-title, .hero-name, .project-title, .exp-company, .edu-school, .cert-name {
    font-family: 'Poppins', sans-serif; font-weight: 500; letter-spacing: .01em;
}
.theme-toggle { width: auto; min-width: 28px; padding: 0 .55rem; gap: .4rem; }
.theme-name { font-family: 'JetBrains Mono', monospace; font-size: .62rem; text-transform: lowercase; }
[data-theme] .icon-light, [data-theme] .icon-dark { display: none; }
[data-theme="light"] .icon-light, [data-theme]:not([data-theme="light"]) .icon-dark { display: block; }

/* ============================================================
   THEMES: hacker (green), blue, purple, orange
   ============================================================ */
[data-theme="hacker"] {
    --bg: #030703; --bg-alt: #061006; --card: #0a140a; --thumb: #071007;
    --border: rgba(0,255,102,0.12); --border-h: rgba(0,255,102,0.35);
    --primary: #00ff66; --primary-bg: rgba(0,255,102,0.08);
    --text: #b9ffcf; --text-2: #5fcf86; --text-3: #2f6b44;
    --shadow-h: 0 0 24px rgba(0,255,102,0.18); --cursor: rgba(0,255,102,0.45);
}
[data-theme="hacker"] body, [data-theme="hacker"] h1, [data-theme="hacker"] h2, [data-theme="hacker"] h3,
[data-theme="hacker"] .section-title, [data-theme="hacker"] .project-title, [data-theme="hacker"] .exp-company {
    font-family: 'JetBrains Mono', monospace;
}
[data-theme="blue"] {
    --bg: #070f1f; --bg-alt: #0a1428; --card: #0f1b34; --thumb: #0b162b;
    --border: rgba(120,170,255,0.12); --border-h: rgba(120,170,255,0.32);
    --primary: #5aa2ff; --primary-bg: rgba(90,162,255,0.10);
    --text: #e6eefc; --text-2: #92a6c9; --text-3: #3d5276;
    --shadow-h: 0 4px 24px rgba(0,0,0,0.45); --cursor: rgba(90,162,255,0.40);
}
[data-theme="purple"] {
    --bg: #0f0a1a; --bg-alt: #140e22; --card: #1b1430; --thumb: #160f27;
    --border: rgba(180,150,255,0.12); --border-h: rgba(180,150,255,0.32);
    --primary: #b18cff; --primary-bg: rgba(177,140,255,0.10);
    --text: #efe9fb; --text-2: #a79cc4; --text-3: #4b3f6b;
    --shadow-h: 0 4px 24px rgba(0,0,0,0.45); --cursor: rgba(177,140,255,0.40);
}
[data-theme="orange"] {
    --bg: #140d07; --bg-alt: #1a110a; --card: #22170d; --thumb: #1c130b;
    --border: rgba(255,160,90,0.12); --border-h: rgba(255,160,90,0.32);
    --primary: #ff9142; --primary-bg: rgba(255,145,66,0.10);
    --text: #fbefe4; --text-2: #c4a184; --text-3: #6b4c33;
    --shadow-h: 0 4px 24px rgba(0,0,0,0.45); --cursor: rgba(255,145,66,0.40);
}
[data-theme="hacker"] #neuralCanvas, [data-theme="blue"] #neuralCanvas,
[data-theme="purple"] #neuralCanvas, [data-theme="orange"] #neuralCanvas { opacity: .22; }
.exp-skills-label { font-family: 'JetBrains Mono', monospace; font-size: .6rem; color: var(--text-3); text-transform: uppercase; letter-spacing: .08em; margin: .6rem 0 .3rem; }

/* ============================================================
   PROFESSIONAL TYPE PASS: no code-style labels outside the hacker theme
   ============================================================ */
body { font-size: 15.5px; line-height: 1.7; letter-spacing: .005em; }
.section-title { font-family: 'Poppins', sans-serif; font-weight: 600; letter-spacing: -.01em; text-transform: none; }
.hero-name, h1 { font-family: 'Poppins', sans-serif; font-weight: 600; letter-spacing: -.02em; }
.hero-sub-title { font-family: 'Poppins', sans-serif; font-weight: 400; }
.hero-label-text, .stat-label, .info-k, .exp-date, .exp-loc, .exp-role, .exp-skills-label, .edu-courses,
.skill-cat-title, .project-type, .filter-btn, .tag, .skill-tag, .cert-issuer, .theme-name, .nav-links a {
    font-family: 'Poppins', sans-serif; letter-spacing: .02em;
}
.exp-role { font-size: .82rem; font-weight: 500; text-transform: none; }
.exp-date, .exp-loc { font-size: .72rem; }
.stat-label, .info-k, .exp-skills-label, .skill-cat-title, .project-type { font-size: .66rem; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; }
.tag, .skill-tag { font-size: .7rem; font-weight: 400; }
.project-title { text-transform: none; font-weight: 600; font-size: .95rem; letter-spacing: 0; }
.project-desc, .exp-bullets li { font-family: Calibri, Carlito, 'Segoe UI', sans-serif; font-size: .95rem; }
.exp-bullets li { padding-left: 1rem; }
.cert-row { text-decoration: none; color: inherit; transition: background .15s; padding-left: .5rem; padding-right: .5rem; border-radius: 6px; }
.cert-row:hover { background: var(--primary-bg); }
.cert-main { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.cert-name { font-family: 'Poppins', sans-serif; font-weight: 500; font-size: .9rem; }
.cert-issuer { text-align: left; font-size: .72rem; color: var(--text-2); }
.cert-verify { font-family: 'Poppins', sans-serif; font-size: .72rem; font-weight: 500; color: var(--primary); border: 1px solid var(--border-h); border-radius: 999px; padding: .2rem .7rem; flex-shrink: 0; }
.cert-row:hover .cert-verify { border-color: var(--primary); }
/* the hacker theme keeps its terminal look */
[data-theme="hacker"] .hero-label-text, [data-theme="hacker"] .stat-label, [data-theme="hacker"] .info-k,
[data-theme="hacker"] .exp-role, [data-theme="hacker"] .tag, [data-theme="hacker"] .skill-tag, [data-theme="hacker"] .cert-name,
[data-theme="hacker"] .cert-issuer, [data-theme="hacker"] .cert-verify, [data-theme="hacker"] .project-desc,
[data-theme="hacker"] .exp-bullets li, [data-theme="hacker"] .filter-btn, [data-theme="hacker"] .nav-links a { font-family: 'JetBrains Mono', monospace; }

/* ============================================================
   SMOOTH TRANSITIONS
   ============================================================ */
body, .navbar, .card, .project-card, .exp-item, .skill-category, .info-card, .cert-row, .edu-item,
.tag, .skill-tag, .filter-btn, .btn, .theme-toggle, .contact-btn, .section-title, .project-thumb {
    transition: background-color .45s ease, color .45s ease, border-color .45s ease, box-shadow .3s ease, transform .3s cubic-bezier(.2,.8,.2,1);
}
.reveal { transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1); transform: translateY(14px); }
.project-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-h); }
.cert-row:hover { transform: translateX(3px); }
.btn:hover, .contact-btn:hover { transform: translateY(-1px); }
a, button { transition: color .25s ease, background-color .25s ease, border-color .25s ease, opacity .25s ease; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
    .reveal { opacity: 1; transform: none; }
}
.hero-typing { font-family: 'Poppins', sans-serif; font-weight: 400; letter-spacing: .01em; }
[data-theme="hacker"] .hero-typing { font-family: 'JetBrains Mono', monospace; }
.info-v a, .contact-desc a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--border-h); }
.info-v a:hover, .contact-desc a:hover { color: var(--primary); border-color: var(--primary); }
/* larger profile photo with a soft accent ring */
.hero-photo { width: 280px; height: 280px; border: 3px solid var(--primary); box-shadow: 0 0 0 8px var(--primary-bg), 0 18px 48px -12px rgba(0,0,0,.45); filter: none; }
@media (max-width: 1100px) { .hero-photo { width: 220px; height: 220px; } }
@media (max-width: 900px) { .hero-photo { width: 170px; height: 170px; } }

/* ============================================================
   CERTIFICATES: card grid
   ============================================================ */
.cert-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.cert-row, .cert-row:first-child, .cert-row:last-child {
    display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: .9rem;
    padding: 1.1rem 1.2rem; border: 1px solid var(--border); border-radius: 10px; background: var(--card); min-height: 150px;
}
.cert-row:hover { transform: translateY(-3px); border-color: var(--primary); box-shadow: var(--shadow-h); background: var(--card); }
.cert-main { gap: .45rem; }
.cert-issuer { order: -1; font-size: .66rem; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--primary); }
.cert-name { font-size: .95rem; line-height: 1.35; }
.cert-verify { align-self: flex-start; }
.cert-verify::after { content: ' \2197'; }
@media (max-width: 900px) { .cert-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cert-list { grid-template-columns: 1fr; } .cert-row { min-height: 0; } }

/* ============================================================
   THEME PICKER MENU
   ============================================================ */
.theme-picker { position: relative; }
.theme-toggle { gap: .45rem; padding: 0 .65rem; height: 30px; }
.theme-toggle .theme-name { font-family: 'Poppins', sans-serif; font-size: .7rem; text-transform: none; }
.theme-menu { position: absolute; right: 0; top: calc(100% + .5rem); min-width: 170px; padding: .35rem; border-radius: 10px;
    background: var(--card); border: 1px solid var(--border-h); box-shadow: var(--shadow-h); z-index: 1000;
    opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s ease, transform .2s ease, visibility .2s; }
.theme-menu.open { opacity: 1; visibility: visible; transform: none; }
.theme-menu button { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .5rem .6rem; border: 0; border-radius: 6px;
    background: transparent; color: var(--text); font-family: 'Poppins', sans-serif; font-size: .78rem; text-align: left; }
.theme-menu button:hover { background: var(--primary-bg); }
.theme-menu button.active { color: var(--primary); font-weight: 600; }
.sw { width: 14px; height: 14px; border-radius: 50%; display: inline-block; border: 1px solid rgba(127,127,127,.4); flex-shrink: 0; }
.sw-light { background: #f4f4f4; } .sw-dark { background: #0e0f12; } .sw-hacker { background: #00ff66; }
.sw-blue { background: #5aa2ff; } .sw-purple { background: #b18cff; } .sw-orange { background: #ff9142; }

/* ============================================================
   PROJECT CARDS: uniform size, one-line description
   ============================================================ */
.projects-grid { align-items: stretch; grid-auto-rows: 1fr; }
.project-card { display: flex; flex-direction: column; height: 100%; }
.project-body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.project-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.project-desc { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: .7rem; }
.project-tags { margin-top: auto; display: flex; flex-wrap: nowrap; overflow: hidden; gap: .3rem;
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.project-tags .tag { flex-shrink: 0; }

/* ============================================================
   MONOCHROME LIGHT / DARK, GREEN-GREY-BLACK HACKER
   ============================================================ */
:root:not([data-theme]), [data-theme="light"] {
    --bg: #f5f5f5; --bg-alt: #ececec; --card: #ffffff; --thumb: #e9e9e9;
    --border: rgba(0,0,0,0.10); --border-h: rgba(0,0,0,0.28);
    --primary: #111111; --primary-bg: rgba(0,0,0,0.05);
    --text: #111111; --text-2: #555555; --text-3: #8a8a8a;
    --shadow-h: 0 6px 24px rgba(0,0,0,0.10); --cursor: rgba(0,0,0,0.30);
}
[data-theme="dark"] {
    --bg: #0d0d0d; --bg-alt: #141414; --card: #1a1a1a; --thumb: #161616;
    --border: rgba(255,255,255,0.08); --border-h: rgba(255,255,255,0.24);
    --primary: #f2f2f2; --primary-bg: rgba(255,255,255,0.06);
    --text: #ededed; --text-2: #9a9a9a; --text-3: #5c5c5c;
    --shadow-h: 0 6px 24px rgba(0,0,0,0.55); --cursor: rgba(255,255,255,0.30);
}
[data-theme="hacker"] {
    --bg: #0a0a0a; --bg-alt: #101110; --card: #151615; --thumb: #121312;
    --border: rgba(160,170,160,0.14); --border-h: rgba(0,230,118,0.45);
    --primary: #00e676; --primary-bg: rgba(0,230,118,0.08);
    --text: #d6dbd6; --text-2: #8e968e; --text-3: #565c56;
    --shadow-h: 0 0 22px rgba(0,230,118,0.14); --cursor: rgba(0,230,118,0.45);
}
/* buttons and badges that used the accent as a fill need readable text in the monochrome themes */
[data-theme="light"] .btn-primary, :root:not([data-theme]) .btn-primary { color: #ffffff; }
[data-theme="dark"] .btn-primary { color: #0d0d0d; }
[data-theme="hacker"] .btn-primary { color: #0a0a0a; }
.sw-light { background: #ffffff; } .sw-dark { background: #1a1a1a; } .sw-hacker { background: linear-gradient(135deg, #0a0a0a 50%, #00e676 50%); }

/* ============================================================
   CERTIFICATES: one line each
   ============================================================ */
.cert-list { display: flex; flex-direction: column; gap: 0; }
.cert-row, .cert-row:first-child, .cert-row:last-child {
    display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 1rem;
    min-height: 0; padding: .7rem .75rem; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: transparent;
}
.cert-row:last-child { border-bottom: 0; }
.cert-row:hover { transform: none; box-shadow: none; background: var(--primary-bg); border-color: var(--border); }
.cert-main { flex-direction: row; align-items: baseline; gap: .75rem; min-width: 0; flex: 1; }
.cert-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .92rem; min-width: 0; }
.cert-issuer { order: 0; flex-shrink: 0; white-space: nowrap; text-transform: none; letter-spacing: .01em; font-size: .78rem; color: var(--text-2); font-weight: 400; }
.cert-verify { padding: .1rem .65rem; font-size: .72rem; }
.cert-verify::after { content: ''; }
.cert-verify::before { content: '('; } .cert-verify::after { content: ')'; }
.cert-verify { border: 0; padding: 0; color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) {
    .cert-main { flex-direction: column; gap: .1rem; align-items: flex-start; }
    .cert-name { white-space: normal; }
}

/* ============================================================
   COMPACT, FRAMED LAYOUT (about 20% smaller, modern section cards)
   ============================================================ */
html { font-size: 15.5px; }
body { font-size: 15.5px; }
.container { max-width: 1020px; }
.hero { min-height: 86vh; }
.hero-title { font-size: clamp(2.4rem, 5.2vw, 3.9rem) !important; line-height: 1.04; }
.hero-photo { width: 220px; height: 220px; }
@media (max-width: 1100px) { .hero-photo { width: 190px; height: 190px; } }
@media (max-width: 900px) { .hero-photo { width: 150px; height: 150px; } }

/* every content section sits in its own bordered card */
.section { padding: 1.25rem 0; }
.section > .container {
    border: 1px solid var(--border); border-radius: 18px; padding: 2.1rem 2.3rem;
    background: color-mix(in srgb, var(--card) 72%, transparent);
    box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 10px 30px -18px rgba(0,0,0,.25);
}
.section:last-of-type { padding-bottom: 2.5rem; }
.section-header { margin-bottom: 1.5rem; }
.section-title { font-size: 1.65rem !important; }
.section-divider { margin-top: .6rem; }

/* inner tiles: rounded, bordered, with breathing room */
.projects-grid, .skills-grid { gap: 1rem; }
.project-card, .skill-category, .info-card { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--card); }
.project-body { padding: 1rem 1.1rem 1.1rem; }
.project-thumb { height: 76px; }
.skill-category { padding: 1rem 1.1rem; }
.exp-item { padding: 1.15rem 0; }
.exp-item:first-child { padding-top: 0; }
.exp-item:last-child { border-bottom: 0; padding-bottom: 0; }
.edu-item { padding: 1rem 0; }
.cert-row, .cert-row:first-child, .cert-row:last-child { padding: .6rem .7rem; }
.about-text p { margin-bottom: .9rem; }

@media (max-width: 640px) {
    .section > .container { border-radius: 14px; padding: 1.4rem 1.1rem; margin: 0 .6rem; }
    .section { padding: .7rem 0; }
    .section-title { font-size: 1.4rem !important; }
}
/* hacker: lime terminal green on grey and black */
[data-theme="hacker"] {
    --primary: #2ea84a; --primary-bg: rgba(46,168,74,0.08); --border-h: rgba(46,168,74,0.42);
    --border: rgba(46,168,74,0.14); --text: #a9d4b4; --text-2: #5f9e70; --text-3: #3a6a48;
    --shadow-h: 0 0 18px rgba(46,168,74,0.14); --cursor: rgba(46,168,74,0.45);
}
.sw-hacker { background: linear-gradient(135deg, #0a0a0a 50%, #2ea84a 50%); }
