:root {
    /* === Base Colors === */
    --bg: #000a06;
    --bg-card: rgba(0, 18, 16, 0.35);
    --bg-card-hover: rgba(0, 26, 21, 0.55);
    --bg-nav: rgba(0, 10, 6, 0.4);
    --bg-nav-border: rgba(249, 115, 22, 0.15);
    --bg-dark: rgba(0, 10, 6, 0.35);
    --bg-darker: rgba(0, 0, 0, 0.2);
    --bg-overlay: rgba(0, 0, 0, 0.88);
    --bg-gradient-start: rgba(0, 10, 6, 0.95);
    --bg-gradient-mid: rgba(0, 10, 6, 0.6);
    
    /* === Accent Colors === */
    --accent: #f97316;
    --accent-light: #fb923c;
    --accent-dim: rgba(249, 115, 22, 0.15);
    --accent-glow: rgba(249, 115, 22, 0.35);
    --accent-02: rgba(249, 115, 22, 0.02);
    --accent-04: rgba(249, 115, 22, 0.04);
    --accent-05: rgba(249, 115, 22, 0.05);
    --accent-06: rgba(249, 115, 22, 0.06);
    --accent-07: rgba(249, 115, 22, 0.07);
    --accent-08: rgba(249, 115, 22, 0.08);
    --accent-12: rgba(249, 115, 22, 0.12);
    --accent-15: rgba(249, 115, 22, 0.15);
    --accent-30: rgba(249, 115, 22, 0.3);
    --accent-40: rgba(249, 115, 22, 0.4);
    --accent-45: rgba(249, 115, 22, 0.45);
    --accent-light-75: rgb(255, 115, 0);
    --accent-dark: rgba(124, 45, 18, 0.09);
    --accent-dark-10: rgba(124, 45, 18, 0.1);
    
    /* === Text Colors === */
    --text: #f5f5f5;
    --text-sub: #d1d5db;
    --text-muted: #9ca3af;
    
    /* === Border Colors === */
    --border: rgba(249, 115, 22, 0.2);
    --border-hover: rgba(249, 115, 22, 0.55);
    --border-white-03: rgba(255, 255, 255, 0.03);
    --border-white-04: rgba(255, 255, 255, 0.04);
    --border-white-05: rgba(255, 255, 255, 0.05);
    --border-white-06: rgba(255, 255, 255, 0.06);
    --border-white-08: rgba(255, 255, 255, 0.08);
    --border-white-10: rgba(255, 255, 255, 0.1);
    --border-accent-12: rgba(249, 115, 22, 0.12);
    --border-accent-15: rgba(249, 115, 22, 0.15);
    --border-accent-40: rgba(249, 115, 22, 0.4);
    --border-accent-45: rgba(249, 115, 22, 0.45);
    
    /* === Backgrounds (White/Light) === */
    --bg-white-02: rgba(255, 255, 255, 0.02);
    --bg-white-03: rgba(255, 255, 255, 0.03);
    --bg-white-05: rgba(255, 255, 255, 0.05);
    
    /* === Shadows === */
    --shadow-dark: rgba(0, 0, 0, 0.3);
    --shadow-darker: rgba(0, 0, 0, 0.37);
    --shadow-darkest: rgba(0, 0, 0, 0.5);
    --shadow-inset: rgba(0, 0, 0, 0.2);
    --shadow-white-04: rgba(255, 255, 255, 0.04);
    --shadow-white-05: rgba(255, 255, 255, 0.05);
    --shadow-accent-glow: rgba(249, 115, 22, 0.12);
    --shadow-accent-focus: rgba(249, 115, 22, 0.08);
    
    /* === Status Colors === */
    --success-bg: rgba(34, 197, 94, 0.1);
    --success-border: rgba(34, 197, 94, 0.3);
    --success-border-light: rgba(34, 197, 94, 0.2);
    --error-bg: rgba(239, 68, 68, 0.1);
    --error-border: rgba(239, 68, 68, 0.3);
    
    /* === Effects === */
    --blur: 32px;
    --blur-light: 16px;
    
    /* === Spacing === */
    --gap-sm: 16px;
    --gap-md: 20px;
    --gap-lg: 24px;
    --padding-sm: 24px;
    --padding-md: 32px;
    --padding-lg: 48px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'JetBrains Mono', monospace;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
}

::selection {
    background: var(--accent-30);
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: #1a1a1a;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* ===== LOADING SCREEN ===== */
#loading-screen {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    /* transition: opacity 0.6s ease-out, visibility 0.6s ease-out; */
}

#loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loader-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--border-white-10);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loader-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== BACKGROUND ===== */
.bg-fixed {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background: var(--bg);
}

.bg-grad {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 15% 50%, var(--accent-07) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 15%, var(--accent-dark) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 85%, var(--accent-04) 0%, transparent 50%);
}

.bg-hex {
    position: absolute;
    inset: 0;
    opacity: 0.15;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23f97316' fill-opacity='1' fill-rule='nonzero'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.7l10.99 6.34 11-6.35V17.9l-11-6.34L3 17.9zM0 15l12.98-7.5V0h-2v6.35L0 12.69v2.3zm0 18.5L12.98 41v8h-2v-6.85L0 35.81v-2.3zM15 0v7.5L27.99 15H28v-2.31h-.01L17 6.35V0h-2zm0 49v-8l12.99-7.5H28v2.31h-.01L17 42.15V49h-2z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    background-size: 28px 49px;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
}

.bg-orb-1 {
    width: 400px;
    height: 400px;
    top: 12%;
    left: 8%;
    background: var(--accent-08);
    animation: orbF1 14s ease-in-out infinite;
}

.bg-orb-2 {
    width: 500px;
    height: 500px;
    bottom: 15%;
    right: 8%;
    background: var(--accent-dark-10);
    animation: orbF2 18s ease-in-out infinite 4s;
}

@keyframes orbF1 {
    0%, 100% {
        transform: translate(0, 0);
        opacity: .12
    }

    50% {
        transform: translate(60px, -30px);
        opacity: .2
    }
}

@keyframes orbF2 {
    0%, 100% {
        transform: translate(0, 0);
        opacity: .08
    }

    50% {
        transform: translate(-50px, 30px);
        opacity: .16
    }
}

/* ===== FLOATING NAV ===== */
.topnav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-white-03);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid var(--border-white-08);
    box-shadow: 0 4px 24px 0 var(--shadow-dark), inset 0 1px 0 0 var(--shadow-white-04);
    transform: translateY(-100%);
    /* transition: transform 0.35s ease; */
    opacity: 0;
}

.topnav.show {
    transform: translateY(0);
    opacity: 1;
}

.topnav-brand {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    font-size: 1rem;
    color: var(--accent);
}

.topnav-links {
    display: flex;
    gap: 24px;
}

.topnav-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-sub);
    /* transition: color 0.2s; */
}

.topnav-links a i {
    width: 16px;
    height: 16px;
    stroke-width: 1.8;
}

.topnav-links a:hover {
    color: var(--accent);
}

@media(max-width:640px) {
    .topnav-links {
        gap: 14px;
    }

    .topnav-links a {
        font-size: 0.7rem;
    }
}

@media(max-width:760px) {
    .topnav {
        padding: 12px 16px;
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }

    .topnav-links {
        flex-wrap: nowrap;
        gap: 12px;
    }

    .topnav-links a {
        padding: 6px;
        border-radius: 10px;
        background: var(--bg-white-03);
        font-size: 0.75rem;
    }

    .topnav-links a span {
        display: none;
    }

    .topnav-links a i {
        width: 18px;
        height: 18px;
    }
}

/* ===== GLASS CARD ===== */
.card {
    position: relative;
    background: var(--bg-white-03);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--border-white-08);
    border-radius: 16px;
    /* transition: all 0.35s ease; */
    box-shadow: 0 8px 32px 0 var(--shadow-darker),
        inset 0 1px 0 0 var(--shadow-white-04);
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(145deg,
            var(--accent-30) 0%,
            var(--accent-05) 50%,
            var(--accent-30) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    /* transition: opacity 0.35s ease; */
}

.card:hover {
    background: var(--bg-white-05);
    border-color: var(--border-accent-40);
    box-shadow: 0 0 40px var(--shadow-accent-glow),
        0 8px 32px 0 var(--shadow-darkest),
        inset 0 1px 0 var(--accent-15);
    transform: translateY(-4px);
}

.card:hover::before {
    opacity: 1;
}

/* ===== LAYOUT ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.section-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2.4rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 56px;
    background: linear-gradient(135deg, var(--accent-light), #fff, var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== GRIDS ===== */
.g2, .g3, .g4 {
    display: grid;
    gap: 16px;
}

.g2 {
    grid-template-columns: 1fr;
}

.g3 {
    grid-template-columns: 1fr;
}

.g4 {
    grid-template-columns: repeat(2, 1fr);
}

@media(min-width:640px) {
    .g2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .g3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .g4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media(min-width:960px) {
    .g3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .g4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ===== FADE-IN ===== */
.fi {
    opacity: 0;
    transform: translateY(28px);
    /* transition: opacity 0.7s ease, transform 0.7s ease; */
}

.fi.vis {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================
           HERO
           ========================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 24px 40px;
}

.hero-avatar {
    position: relative;
    width: 160px;
    height: 160px;
    margin-bottom: 28px;
}

.hero-glow {
    position: absolute;
    inset: -24px;
    border-radius: 50%;
    background: var(--accent-glow);
    filter: blur(50px);
    animation: pulse 3.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: .25;
        transform: scale(1)
    }

    50% {
        opacity: .5;
        transform: scale(1.06)
    }
}

.hero-ring {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--accent-45);
    background: var(--bg-dark);
    backdrop-filter: blur(32px) saturate(180%);
    -webkit-backdrop-filter: blur(32px) saturate(180%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 50px var(--accent-15), inset 0 2px 4px var(--bg-white-05);
    overflow: hidden;
}

.hero-ring span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
}

.hero h1 {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    font-weight: 700;
    letter-spacing: -2px;
    margin-bottom: 10px;
    background: linear-gradient(90deg, var(--accent-light), #fff, var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 1.1rem;
    color: var(--accent-light-75);
    font-weight: 300;
    margin-bottom: 10px;
    max-width: 550px;
}

.hero-loc {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.hero-loc svg {
    width: 14px;
    height: 14px;
}

.hero-desc {
    color: var(--text-sub);
    max-width: 650px;
    margin-bottom: 32px;
    line-height: 1.8;
    font-size: 0.9rem;
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 32px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--border-white-08);
    cursor: pointer;
    /* transition: all 0.3s ease; */
    font-family: 'JetBrains Mono', monospace;
    background: var(--bg-white-03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: inset 0 1px 0 var(--shadow-white-04);
    /* color: var(--text); */
    color: var(--text-sub);

}

.btn:hover {
    background: var(--accent-dim);
    border-color: var(--border-accent-40);
    color: var(--accent);
    box-shadow: 0 0 16px var(--shadow-accent-focus);
}

.btn svg {
    width: 16px;
    height: 16px;
}

.btn-accent {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

.btn-accent:hover {
    background: var(--accent-light);
    color: #000;
    border-color: var(--accent-light);
    box-shadow: 0 0 20px var(--accent-glow);
}

.socials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.soc {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--bg-white-03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-white-08);
    color: var(--text-sub);
    /* transition: all 0.3s ease; */
    box-shadow: inset 0 1px 0 var(--shadow-white-04);
}

.soc:hover {
    background: var(--accent-dim);
    border-color: var(--border-accent-40);
    color: var(--accent);
    box-shadow: 0 0 16px var(--shadow-accent-focus);
}

.soc svg {
    width: 20px;
    height: 20px;
}

/* ===== STATS BAR ===== */
.stats {
    padding: 40px 0;
    border-top: 1px solid var(--border-white-03);
    border-bottom: 1px solid var(--border-white-03);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media(min-width:640px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-card {
    padding: 24px 16px;
    text-align: center;
}

.stat-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: 'JetBrains Mono', monospace;
}

/* ===== EXPERIENCE ===== */
.timeline {
    position: relative;
    padding-left: 36px;
    margin-left: 12px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), var(--accent-08));
}

.tl-item {
    position: relative;
    margin-bottom: 40px;
}

.tl-item:last-child {
    margin-bottom: 0;
}

.tl-dot {
    position: absolute;
    left: -43px;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid var(--bg);
    box-shadow: 0 0 12px var(--accent-glow);
}

.tl-card {
    padding: 24px;
}

.tl-head {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

@media(min-width:640px) {
    .tl-head {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.tl-role {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

.tl-co {
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent);
    font-size: 0.85rem;
}

.tl-date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-muted);
    background: var(--bg-white-03);
    padding: 4px 12px;
    border-radius: 16px;
    border: 1px solid var(--border-white-05);
    white-space: nowrap;
    width: fit-content;
}

.tl-list li {
    font-size: 0.82rem;
    color: var(--text-sub);
    line-height: 1.7;
    padding-left: 18px;
    position: relative;
    margin-bottom: 5px;
}

.tl-list li::before {
    content: '\25C6';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 0.5rem;
    top: 5px;
}

.tl-sub {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border-white-04);
}

.tl-sub-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-light);
    margin-bottom: 8px;
    font-family: 'JetBrains Mono', monospace;
}

.tl-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border-white-04);
}

.tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: var(--accent-light);
    background: var(--accent-08);
    padding: 3px 10px;
    border-radius: 4px;
    border: 1px solid var(--border-accent-12);
}

/* ===== PROJECTS ===== */
.pj-card {
    padding: 22px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pj-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.pj-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pj-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--accent-06);
    border: 1px solid var(--border-accent-12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-light);
}

.pj-icon svg {
    width: 20px;
    height: 20px;
}

.pj-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
}

.pj-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    color: var(--accent-light);
    background: var(--accent-08);
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid var(--border-accent-12);
}

.pj-desc {
    font-size: 0.82rem;
    color: var(--text-sub);
    line-height: 1.7;
    margin-bottom: 16px;
    flex-grow: 1;
}

.pj-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.pj-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: var(--text-muted);
    background: var(--bg-white-02);
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid var(--border-white-04);
}

.pj-links {
    display: flex;
    gap: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border-white-04);
    margin-top: auto;
}

.pj-link {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: var(--text-sub);
    /* transition: color 0.2s; */
}

.pj-link:hover {
    color: var(--accent);
}

.pj-link svg {
    width: 14px;
    height: 14px;
}

/* ===== SKILLS ===== */
.sk-card {
    padding: 24px;
}

.sk-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sk-title svg {
    width: 18px;
    height: 18px;
}

.sk-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sk-tag {
    font-size: 0.75rem;
    color: var(--text-sub);
    background: var(--bg-white-03);
    padding: 5px 12px;
    border-radius: 6px;
    border: 1px solid var(--border-white-05);
    /* transition: all 0.25s ease; */
}

.sk-tag:hover {
    border-color: var(--border-hover);
    color: var(--accent-light);
    background: var(--accent-dim);
}

.sk-tag .sk-score {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    color: var(--accent);
    margin-left: 6px;
    opacity: 0.7;
}

/* ===== CERTIFICATES ===== */
.cert-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-bottom: 28px;
}

.cert-tab {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-family: 'JetBrains Mono', monospace;
    background: var(--bg-white-03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-white-08);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: inset 0 1px 0 var(--shadow-white-04);
}

.cert-tab svg {
    width: 14px;
    height: 14px;
}

.cert-tab:hover, .cert-tab.active {
    background: var(--accent-dim);
    border-color: var(--border-accent-40);
    color: var(--accent);
    box-shadow: 0 0 16px var(--shadow-accent-focus);
}

.cert-tab .ct-count {
    font-size: 0.6rem;
    background: var(--accent-15);
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 4px;
}

.cert-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 3/2;
    cursor: pointer;
}

.cert-card.hidden {
    display: none;
}

.cert-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* transition: transform 0.5s ease; */
}

.cert-card:hover img {
    transform: scale(1.06);
}

.cert-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(to top, var(--bg-gradient-start), var(--bg-gradient-mid), transparent);
    transform: translateY(100%);
    /* transition: transform 0.35s ease; */
}

.cert-card:hover .cert-info {
    transform: translateY(0);
}

.cert-info-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.cert-info-desc {
    font-size: 0.7rem;
    color: var(--text-sub);
    line-height: 1.5;
}

.cert-fb {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #060606, #0f0f0f);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    text-align: center;
}

.cert-fb-icon {
    font-size: 2rem;
    margin-bottom: 6px;
    opacity: 0.3;
}

.cert-fb-name {
    font-size: 0.65rem;
    color: var(--text-muted);
    word-break: break-all;
}

/* ===== LIGHTBOX ===== */
.lb {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: var(--bg-overlay);
    backdrop-filter: blur(40px) saturate(120%);
    -webkit-backdrop-filter: blur(40px) saturate(120%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    /* transition: all 0.3s ease; */
    cursor: pointer;
    padding: 24px;
}

.lb.on {
    opacity: 1;
    visibility: visible;
}

.lb img {
    max-width: 92%;
    max-height: 75vh;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 0 60px var(--shadow-accent-focus);
}

.lb-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 16px;
    text-align: center;
}

.lb-desc {
    color: var(--text-sub);
    font-size: 0.8rem;
    margin-top: 6px;
    max-width: 500px;
    text-align: center;
    line-height: 1.5;
}

.lb-close {
    position: absolute;
    top: 20px;
    right: 28px;
    font-size: 2rem;
    color: var(--text-sub);
    cursor: pointer;
    background: none;
    border: none;
    /* transition: color 0.2s; */
    z-index: 201;
}

.lb-close:hover {
    color: var(--accent);
}

/* ===== FOOTER ===== */
footer {
    text-align: center;
    padding: 48px 24px 40px;
    border-top: 1px solid var(--border-white-08);
    margin-top: 80px;
    background: var(--bg-darker);
}

footer p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

footer p:first-child {
    margin-bottom: 12px;
    font-weight: 400;
    letter-spacing: 0.02em;
}

footer .fa {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 300;
    color: var(--border-accent-40);
    letter-spacing: 0.05em;
    display: block;
}

/* ===== CONTACT FORM ===== */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
}

.form-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 20px;
}

@media(min-width:640px) {
    .form-grid.two-col {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}

.form-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-sub);
    font-family: 'JetBrains Mono', monospace;
}

.form-input, .form-textarea, .form-select {
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid var(--border-white-08);
    background: var(--bg-white-03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    /* transition: all 0.3s ease; */
    box-shadow: inset 0 1px 0 var(--shadow-white-04);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
    outline: none;
    border-color: var(--border-hover);
    background: var(--accent-05);
    box-shadow: 0 0 0 3px var(--shadow-accent-focus), inset 0 1px 2px var(--shadow-inset);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 0;
}

.form-select {
    cursor: pointer;
    color-scheme: dark;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: var(--bg-white-03);
}

.form-select option {
    background: #0b1410;
    color: var(--text);
}

.form-submit {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    background: var(--accent);
    color: #000;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    /* transition: all 0.3s ease; */
    font-family: 'JetBrains Mono', monospace;
    margin-top: 8px;
    position: relative;
    z-index: 10;
}

.form-submit:hover {
    background: var(--accent-light);
    box-shadow: 0 0 20px var(--accent-glow);
    transform: translateY(-2px);
}

.form-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.form-message {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.8rem;
    margin-top: 12px;
    text-align: center;
}

.form-message.success {
    background: var(--success-bg);
    border: 1px solid var(--success-border);
    color: #22c55e;
}

.form-message.error {
    background: var(--error-bg);
    border: 1px solid var(--error-border);
    color: #ef4444;
}

/* ===== CV POPUP ===== */
.cv-popup {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: var(--bg-overlay);
    backdrop-filter: blur(40px) saturate(120%);
    -webkit-backdrop-filter: blur(40px) saturate(120%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    /* transition: all 0.3s ease; */
}

.cv-popup.show {
    opacity: 1;
    visibility: visible;
}

.cv-popup-content {
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    background: var(--bg-white-03);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--border-white-08);
    border-radius: 16px;
    padding: 32px;
    position: relative;
    box-shadow: 0 8px 32px 0 var(--shadow-darker), inset 0 1px 0 0 var(--shadow-white-04);
}

.cv-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--bg-white-03);
    border: 1px solid var(--border-white-08);
    color: var(--text-sub);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    /* transition: all 0.3s ease; */
    font-size: 1.5rem;
    line-height: 1;
}

.cv-popup-close:hover {
    background: var(--accent-dim);
    color: var(--accent);
    border-color: var(--border-hover);
}

.cv-popup-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    font-family: 'JetBrains Mono', monospace;
}

.cv-popup-subtitle {
    font-size: 0.85rem;
    color: var(--text-sub);
    margin-bottom: 24px;
}

.cv-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cv-item {
    padding: 16px;
    border-radius: 12px;
    background: var(--bg-white-03);
    border: 1px solid var(--border-white-08);
    cursor: pointer;
    /* transition: all 0.3s ease; */
    display: flex;
    align-items: center;
    gap: 12px;
}

.cv-item:hover {
    background: var(--accent-dim);
    border-color: var(--border-hover);
    transform: translateX(4px);
}

.cv-item-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--accent-08);
    border: 1px solid var(--border-accent-15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.cv-item-icon svg {
    width: 24px;
    height: 24px;
}

.cv-item-content {
    flex-grow: 1;
}

.cv-item-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.cv-item-desc {
    font-size: 0.75rem;
    color: var(--text-sub);
    line-height: 1.4;
    margin-bottom: 4px;
}

.cv-item-meta {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

.cv-item-badge {
    padding: 4px 10px;
    border-radius: 6px;
    background: var(--success-bg);
    border: 1px solid var(--success-border-light);
    color: #22c55e;
    font-size: 0.65rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
}

/* ===== RESPONSIVE ===== */
@media(max-width:640px) {
    .section-title {
        font-size: 1.7rem;
        margin-bottom: 36px;
    }

    .section {
        padding: 60px 0;
    }

    .hero h1 {
        letter-spacing: -1px;
    }

    .timeline {
        padding-left: 24px;
        margin-left: 6px;
    }

    .tl-dot {
        left: -31px;
        width: 12px;
        height: 12px;
    }

    .tl-card {
        padding: 18px;
    }

    .hero-avatar {
        width: 130px;
        height: 130px;
    }

    .hero-ring span {
        font-size: 2.6rem;
    }

    .stats-grid {
        gap: 10px;
    }

    .stat-num {
        font-size: 1.4rem;
    }

    .cert-tabs {
        gap: 6px;
    }

    .cert-tab {
        padding: 6px 12px;
        font-size: 0.7rem;
    }

    .cv-popup-content {
        padding: 24px;
    }
}