/* ==========================================================================
   Kowshiq Kattamuri — Portfolio v2 (multi-page)
   Reference-inspired layout (Luis Agámez) rebuilt in an amber identity.
   ========================================================================== */

:root {
    /* surfaces */
    --bg: #080b11;
    --bg-grid: rgba(255, 255, 255, 0.025);
    --surface: #10151d;
    --surface-2: #151c26;
    --surface-3: #1b2431;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);

    /* text */
    --text: #e8eef5;
    --text-dim: #9fadbc;
    --text-mute: #66727f;

    /* brand accent (amber) */
    --accent: #f7a83c;
    --accent-2: #ffc76b;
    --accent-ink: #1a1206;
    --accent-soft: rgba(247, 168, 60, 0.14);
    --accent-line: rgba(247, 168, 60, 0.35);

    /* category colors */
    --c-blue: #4c8dff;
    --c-purple: #b07bff;
    --c-green: #34d399;
    --c-orange: #ff9f45;
    --c-pink: #ff6b9d;
    --c-red: #ff5d5d;
    --c-cyan: #38c9d4;

    --radius: 18px;
    --radius-sm: 12px;
    --maxw: 1120px;

    --font-head: "Space Grotesk", "IBM Plex Sans", sans-serif;
    --font-body: "Inter", "IBM Plex Sans", sans-serif;
    --font-mono: "JetBrains Mono", "IBM Plex Mono", monospace;

    --nav-h: 68px;
}

/* ---------- light theme ---------- */
body.light {
    --bg: #f5f3ee;
    --bg-grid: rgba(20, 24, 30, 0.05);
    --surface: #ffffff;
    --surface-2: #f2efe9;
    --surface-3: #e9e5dd;
    --border: rgba(20, 24, 30, 0.10);
    --border-strong: rgba(20, 24, 30, 0.17);
    --text: #1b2027;
    --text-dim: #515b67;
    --text-mute: #8a939f;
    --accent: #cf8018;
    --accent-2: #f0a02f;
    --accent-soft: rgba(207, 128, 24, 0.13);
    --accent-line: rgba(207, 128, 24, 0.38);
}
body.light .nav.scrolled { background: rgba(245, 243, 238, 0.85); }
body.light .nav-menu.open { background: rgba(245, 243, 238, 0.97); }
body.light .orb { opacity: 0.42; }
body.light .bg-grain { opacity: 0.03; mix-blend-mode: multiply; }
body.light .bg-vignette { background: radial-gradient(ellipse 100% 82% at 50% 38%, transparent 58%, rgba(150, 138, 115, 0.14) 100%); }
body.light .cmdk-ov { background: rgba(60, 54, 44, 0.32); }
body.light .exp-logo { border: 1px solid var(--border); }

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

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ==========================================================================
   AMBIENT BACKGROUND SYSTEM
   Drifting blurred orbs + crisp grid + film grain + vignette.
   Injected once by app.js as <div class="bg-fx">…</div>.
   ========================================================================== */
.bg-fx {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}
.bg-grid {
    position: absolute;
    inset: -2px;
    background-image:
        linear-gradient(var(--bg-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px);
    background-size: 46px 46px;
    -webkit-mask-image: radial-gradient(ellipse 92% 82% at 50% 32%, #000 42%, transparent 88%);
    mask-image: radial-gradient(ellipse 92% 82% at 50% 32%, #000 42%, transparent 88%);
}
.bg-net {
    position: absolute;
    inset: 0;
    display: block;
}
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.6;
    will-change: transform;
}
.orb.o1 {
    width: 46vw; height: 46vw; left: -8vw; top: -8vw;
    background: radial-gradient(circle, rgba(247, 168, 60, 0.30), transparent 70%);
    animation: drift1 32s ease-in-out infinite alternate;
}
.orb.o2 {
    width: 42vw; height: 42vw; right: -12vw; top: 16vh;
    background: radial-gradient(circle, rgba(255, 138, 58, 0.16), transparent 70%);
    animation: drift2 40s ease-in-out infinite alternate;
}
.orb.o3 {
    width: 40vw; height: 40vw; left: 28vw; bottom: -18vw;
    background: radial-gradient(circle, rgba(92, 120, 255, 0.12), transparent 70%);
    animation: drift3 36s ease-in-out infinite alternate;
}
@keyframes drift1 { from { transform: translate(0, 0) scale(1); } to { transform: translate(6vw, 5vh) scale(1.14); } }
@keyframes drift2 { from { transform: translate(0, 0) scale(1); } to { transform: translate(-5vw, 5vh) scale(1.1); } }
@keyframes drift3 { from { transform: translate(0, 0) scale(1); } to { transform: translate(5vw, -5vh) scale(1.16); } }
.bg-grain {
    position: absolute;
    inset: 0;
    opacity: 0.05;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 200px 200px;
}
.bg-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 100% 82% at 50% 38%, transparent 52%, rgba(4, 6, 10, 0.55) 100%);
}
@media (prefers-reduced-motion: reduce) {
    .orb { animation: none !important; }
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* ---------- layout ---------- */
.page {
    position: relative;
    z-index: 1;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: calc(var(--nav-h) + 3.2rem) 1.5rem 5rem;
    min-height: 100vh;
    animation: pageIn 0.5s ease both;
}

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

.page-narrow { max-width: 920px; }

/* ---------- navbar ---------- */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    z-index: 1000;
    transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
    border-bottom: 1px solid transparent;
}

.nav.scrolled {
    background: rgba(8, 11, 17, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom-color: var(--border);
}

.nav-inner {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.nav-logo {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.nav-logo .b { color: var(--accent); }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    list-style: none;
}

.nav-menu a {
    font-family: var(--font-mono);
    font-size: 0.86rem;
    color: var(--text-dim);
    padding: 0.45rem 0.7rem;
    border-radius: 8px;
    position: relative;
    transition: color 0.2s ease, background 0.2s ease;
}
.nav-menu a:hover { color: var(--text); }
.nav-menu a.active { color: var(--accent); }
.nav-menu a.active::after {
    content: "";
    position: absolute;
    left: 0.7rem; right: 0.7rem; bottom: 2px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.nav-cta { display: flex; align-items: center; gap: 0.6rem; }

.btn-yt, .btn-contact {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.45rem 0.85rem;
    border-radius: 9px;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-yt {
    background: linear-gradient(135deg, #ff2d55, #ff5257);
    color: #fff;
    box-shadow: 0 6px 18px rgba(255, 45, 85, 0.28);
}
.btn-yt:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(255, 45, 85, 0.38); }
.btn-yt svg { width: 14px; height: 14px; }
.btn-contact {
    color: var(--accent);
    border: 1px solid var(--accent-line);
    background: var(--accent-soft);
}
.btn-contact:hover { background: var(--accent); color: var(--accent-ink); transform: translateY(-1px); }

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    color: var(--text);
    width: 40px; height: 40px;
    border-radius: 10px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; }

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text-dim);
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent-line); }
.theme-toggle svg { width: 17px; height: 17px; }

/* ---------- section headings ---------- */
.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-mute);
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 0.9rem;
}

.h-title {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: clamp(2.4rem, 6vw, 3.6rem);
    line-height: 1.02;
    letter-spacing: -1px;
}
.h-title .accent { color: var(--accent); }

.h-underline {
    width: 66px;
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--accent), transparent);
    margin-top: 1rem;
}

.lead {
    color: var(--text-dim);
    font-size: 1.05rem;
    max-width: 720px;
    margin-top: 1.4rem;
}

.section-gap { margin-top: 3.4rem; }

.mono-label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-mute);
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 1.2rem;
}

/* ---------- buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.72rem 1.3rem;
    border-radius: 11px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: var(--accent-ink);
    box-shadow: 0 10px 26px var(--accent-soft);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px var(--accent-soft); }
.btn-ghost {
    background: var(--surface-2);
    border-color: var(--border);
    color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent-line); color: var(--accent); transform: translateY(-2px); }

/* ---------- cards ---------- */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.6rem;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-line);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
}

.icon-box {
    width: 48px; height: 48px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid var(--accent-line);
}
.icon-box svg { width: 22px; height: 22px; }

/* colored variants */
.tint-blue { background: rgba(76,141,255,0.14); color: var(--c-blue); border-color: rgba(76,141,255,0.35); }
.tint-purple { background: rgba(176,123,255,0.14); color: var(--c-purple); border-color: rgba(176,123,255,0.35); }
.tint-green { background: rgba(52,211,153,0.14); color: var(--c-green); border-color: rgba(52,211,153,0.35); }
.tint-orange { background: rgba(255,159,69,0.14); color: var(--c-orange); border-color: rgba(255,159,69,0.35); }
.tint-pink { background: rgba(255,107,157,0.14); color: var(--c-pink); border-color: rgba(255,107,157,0.35); }
.tint-red { background: rgba(255,93,93,0.14); color: var(--c-red); border-color: rgba(255,93,93,0.35); }
.tint-cyan { background: rgba(56,201,212,0.14); color: var(--c-cyan); border-color: rgba(56,201,212,0.35); }

/* ==========================================================================
   HERO (Home)
   ========================================================================== */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: calc(100vh - var(--nav-h) - 6rem);
    justify-content: center;
}

.hero-card {
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    border: 1px solid var(--border);
    border-radius: 26px;
    padding: 2.8rem 2.4rem 2.4rem;
    max-width: 460px;
    width: 100%;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
    position: relative;
}

.hero-avatar {
    width: 132px; height: 132px;
    margin: 0 auto 1.4rem;
    border-radius: 50%;
    padding: 4px;
    background: conic-gradient(from 180deg, var(--accent), var(--accent-2), var(--accent));
    box-shadow: 0 0 34px var(--accent-soft);
}
.hero-avatar img {
    width: 100%; height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--bg);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px solid var(--accent-line);
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    margin-bottom: 1.3rem;
}
.status-pill .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--c-green);
    box-shadow: 0 0 0 0 rgba(52,211,153,0.5);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(52,211,153,0.5); }
    70% { box-shadow: 0 0 0 7px rgba(52,211,153,0); }
    100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); }
}

.hero-name {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 2.7rem);
    line-height: 1.05;
    letter-spacing: -1px;
}
.hero-role {
    color: var(--text-dim);
    font-size: 0.98rem;
    margin-top: 0.6rem;
}
.hero-tagline {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--text-mute);
    margin-top: 2.6rem;
    text-align: center;
    line-height: 2;
}
.hero-tagline .sep { color: var(--accent); margin: 0 0.35rem; }
.hero-card .btn { margin-top: 1.6rem; }

.hero-socials {
    display: flex;
    justify-content: center;
    gap: 0.7rem;
    margin-top: 1.5rem;
}
.hero-socials a {
    width: 42px; height: 42px;
    border-radius: 12px;
    background: var(--surface-3);
    border: 1px solid var(--border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.hero-socials a:hover { color: var(--accent); border-color: var(--accent-line); transform: translateY(-3px); }
.hero-socials svg { width: 18px; height: 18px; }

/* stats strip */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 3rem;
    width: 100%;
}
.stat {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.2rem 1rem;
    text-align: center;
}
.stat-num {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--accent);
    display: block;
}
.stat-label {
    font-size: 0.78rem;
    color: var(--text-dim);
    margin-top: 0.3rem;
}

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2rem;
    align-items: start;
}
.about-aside { text-align: center; }
.about-photo {
    width: 150px; height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 0.9rem;
    padding: 4px;
    background: conic-gradient(from 180deg, var(--accent), var(--accent-2));
}
.about-aside .cap { font-family: var(--font-mono); font-size: 0.82rem; color: var(--text-dim); }
.about-aside .socials { display: flex; justify-content: center; gap: 0.5rem; margin-top: 0.9rem; }
.about-aside .socials a {
    width: 38px; height: 38px; border-radius: 10px;
    background: var(--surface-3); border: 1px solid var(--border);
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--text-dim); transition: all 0.2s ease;
}
.about-aside .socials a:hover { color: var(--accent); border-color: var(--accent-line); }
.about-aside .socials svg { width: 17px; height: 17px; }

.about-body h3 {
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 700;
}
.about-loc {
    display: inline-flex; align-items: center; gap: 0.35rem;
    color: var(--text-mute); font-size: 0.85rem; margin: 0.35rem 0 1rem;
}
.about-loc svg { width: 14px; height: 14px; color: var(--accent); }
.about-body p { color: var(--text-dim); margin-bottom: 0.9rem; }
.about-body b, .about-body strong { color: var(--accent); font-weight: 600; }
.about-body a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--accent-line);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s ease;
}
.about-body a:hover { text-decoration-color: var(--accent); }

.value-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.1rem;
    margin-top: 2rem;
}
.value-card h4 { font-family: var(--font-head); font-size: 1.05rem; margin: 0.9rem 0 0.5rem; }
.value-card p { color: var(--text-dim); font-size: 0.92rem; }

/* ==========================================================================
   TIMELINE (experience / education / journey)
   ========================================================================== */
.timeline { position: relative; margin-top: 1.4rem; padding-left: 2rem; }
.timeline::before {
    content: "";
    position: absolute;
    left: 7px; top: 6px; bottom: 6px;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-line), var(--border));
}
.tl-item { position: relative; margin-bottom: 1.6rem; }
.tl-item::before {
    content: "";
    position: absolute;
    left: -2rem;
    top: 6px;
    width: 16px; height: 16px;
    margin-left: 0;
    border-radius: 50%;
    background: var(--bg);
    border: 3px solid var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}
.tl-item.b::before { border-color: var(--c-blue); box-shadow: 0 0 0 4px rgba(76,141,255,0.16); }
.tl-year {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.exp-head { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 0.4rem; }
.exp-logo {
    width: 52px; height: 52px; border-radius: 13px;
    background: #fff; padding: 7px;
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.exp-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.exp-head h3 { font-family: var(--font-head); font-size: 1.25rem; }
.exp-head h4 { color: var(--text-mute); font-size: 0.88rem; font-weight: 500; }

.sub-role { margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px dashed var(--border); }
.sub-role-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.4rem; }
.sub-role-title { font-weight: 600; color: var(--text); }
.sub-role-date { font-family: var(--font-mono); font-size: 0.76rem; color: var(--text-mute); }
.role-points { list-style: none; margin: 0.7rem 0 0; }
.role-points li {
    position: relative;
    padding-left: 1.3rem;
    margin-bottom: 0.55rem;
    color: var(--text-dim);
    font-size: 0.93rem;
}
.role-points li::before {
    content: "▹";
    position: absolute; left: 0;
    color: var(--accent);
}
.role-points li:hover { color: var(--text); }

.status-tag {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-family: var(--font-mono); font-size: 0.68rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.5px;
    padding: 0.2rem 0.6rem; border-radius: 999px;
    background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-line);
    vertical-align: middle;
}
.status-tag .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-tag.done { background: rgba(52,211,153,0.14); color: var(--c-green); border-color: rgba(52,211,153,0.35); }

/* ==========================================================================
   TECH PILLS / STACK
   ========================================================================== */
.tech-stack { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.tech-stack span, .pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    padding: 0.32rem 0.7rem;
    border-radius: 999px;
    background: var(--surface-3);
    border: 1px solid var(--border);
    color: var(--text-dim);
}
.tech-stack span i, .tech-stack span img, .pill i, .pill img { width: 14px; height: 14px; font-size: 14px; }

.pill-grid { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.pill { font-size: 0.82rem; padding: 0.4rem 0.8rem; transition: transform 0.15s ease; }
.pill:hover { transform: translateY(-2px); }
.pill.p-amber { color: var(--accent); border-color: var(--accent-line); }
.pill.p-blue { color: var(--c-blue); border-color: rgba(76,141,255,0.4); }
.pill.p-purple { color: var(--c-purple); border-color: rgba(176,123,255,0.4); }
.pill.p-green { color: var(--c-green); border-color: rgba(52,211,153,0.4); }
.pill.p-orange { color: var(--c-orange); border-color: rgba(255,159,69,0.4); }
.pill.p-pink { color: var(--c-pink); border-color: rgba(255,107,157,0.4); }
.pill.p-cyan { color: var(--c-cyan); border-color: rgba(56,201,212,0.4); }

/* language cards (skills) */
.lang-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}
.lang-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.4rem 1rem;
    text-align: center;
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.lang-card:hover { transform: translateY(-4px); border-color: var(--accent-line); }
.lang-card .ic { font-size: 2rem; margin-bottom: 0.6rem; display: block; }
.lang-card .ic img { width: 34px; height: 34px; margin: 0 auto; }
.lang-card .nm { font-family: var(--font-mono); font-size: 0.86rem; color: var(--text); }

.skill-cat { margin-top: 2.4rem; }
.skill-cat h3 {
    font-family: var(--font-head); font-size: 1.15rem; margin-bottom: 0.9rem;
    display: flex; align-items: center; gap: 0.6rem;
}

/* ==========================================================================
   PROJECTS
   ========================================================================== */
.proj-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
    gap: 1.3rem;
}
.proj-card { display: flex; flex-direction: column; position: relative; overflow: hidden; }
.proj-card .icon-box { margin-bottom: 1.1rem; }
.proj-card h3 { font-family: var(--font-head); font-size: 1.2rem; line-height: 1.2; }
.proj-card p { color: var(--text-dim); font-size: 0.93rem; margin-top: 0.7rem; flex-grow: 1; }
.proj-links { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.1rem; }
.proj-btn {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600;
    padding: 0.45rem 0.85rem; border-radius: 9px;
    background: var(--surface-3); border: 1px solid var(--border); color: var(--text);
    transition: all 0.2s ease;
}
.proj-btn:hover { border-color: var(--accent-line); color: var(--accent); transform: translateY(-2px); }
.proj-btn svg { width: 14px; height: 14px; }
.proj-btn.view { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.proj-card.accent-purple .view { color: var(--c-purple); border-color: rgba(176,123,255,0.4); background: rgba(176,123,255,0.12); }
.proj-card.accent-orange .view { color: var(--c-orange); border-color: rgba(255,159,69,0.4); background: rgba(255,159,69,0.12); }
.proj-card.accent-blue .view { color: var(--c-blue); border-color: rgba(76,141,255,0.4); background: rgba(76,141,255,0.12); }

/* ==========================================================================
   CERTIFICATIONS
   ========================================================================== */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
    gap: 1.2rem;
}
.cert-card { display: flex; flex-direction: column; }
.cert-brand { height: 40px; display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem; }
.cert-brand img { max-height: 34px; width: auto; }
.cert-brand i { font-size: 1.9rem; }
.cert-card h3 { font-family: var(--font-head); font-size: 1.05rem; line-height: 1.25; }
.cert-card p { color: var(--text-dim); font-size: 0.9rem; margin-top: 0.6rem; }
.cert-meta { font-family: var(--font-mono); font-size: 0.74rem; color: var(--text-mute); margin-top: 0.5rem; }
.cert-skills { font-size: 0.82rem; color: var(--text-mute); margin-top: 0.4rem; }
.cert-link {
    display: inline-flex; align-items: center; gap: 0.35rem;
    font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent);
    margin-top: 0.8rem;
}
.cert-link svg { width: 13px; height: 13px; }
.cert-link:hover { text-decoration: underline; }

/* ==========================================================================
   YOUTUBE
   ========================================================================== */
.yt-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.6rem; }
.yt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
    gap: 1.1rem;
    margin-top: 2.4rem;
}
.yt-card { display: flex; flex-direction: column; }
.yt-card-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.8rem; }
.yt-tag {
    font-family: var(--font-mono); font-size: 0.68rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.4px;
    padding: 0.22rem 0.6rem; border-radius: 999px;
    background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-line);
}
.yt-count { display: inline-flex; align-items: center; gap: 0.3rem; font-family: var(--font-mono); font-size: 0.74rem; color: var(--text-mute); }
.yt-count svg { width: 12px; height: 12px; }
.yt-card h3 { font-family: var(--font-head); font-size: 1.05rem; line-height: 1.25; flex-grow: 1; }
.yt-cta { display: inline-flex; align-items: center; gap: 0.35rem; font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent); margin-top: 0.9rem; }
.yt-cta svg { width: 13px; height: 13px; }

/* ==========================================================================
   MENTORSHIP (consult + testimonials + community)
   ========================================================================== */
.consult-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: 1.2rem;
    margin-top: 1.6rem;
}
.consult-card { display: flex; flex-direction: column; }
.consult-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.9rem; }
.consult-tag { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-dim); background: var(--surface-3); border: 1px solid var(--border); padding: 0.25rem 0.6rem; border-radius: 999px; }
.consult-price { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; color: var(--accent); }
.consult-card h3 { font-family: var(--font-head); font-size: 1.08rem; }
.consult-card p { color: var(--text-dim); font-size: 0.9rem; margin-top: 0.6rem; flex-grow: 1; }
.consult-cta { display: inline-flex; align-items: center; gap: 0.35rem; font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent); margin-top: 0.9rem; }
.consult-cta svg { width: 13px; height: 13px; }

.tst-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
    gap: 1.2rem;
    margin-top: 1.6rem;
}
.tst-card { display: flex; flex-direction: column; }
.tst-stars { color: var(--accent); letter-spacing: 2px; margin-bottom: 0.7rem; }
.tst-quote { color: var(--text-dim); font-style: italic; flex-grow: 1; }
.tst-author { display: flex; align-items: center; justify-content: space-between; margin-top: 1rem; }
.tst-name { font-weight: 600; color: var(--text); }
.tst-date { font-family: var(--font-mono); font-size: 0.74rem; color: var(--text-mute); }

.community {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 2rem;
    align-items: center;
    margin-top: 1.6rem;
    position: relative;
    overflow: hidden;
}
.community-badge {
    display: inline-flex; align-items: center; gap: 0.45rem;
    font-family: var(--font-mono); font-size: 0.78rem; color: var(--c-green);
    background: rgba(52,211,153,0.12); border: 1px solid rgba(52,211,153,0.3);
    padding: 0.32rem 0.75rem; border-radius: 999px;
}
.community-badge svg { width: 14px; height: 14px; }
.community h3 { font-family: var(--font-head); font-size: 1.6rem; margin: 0.9rem 0 0.3rem; }
.community .tagline { color: var(--accent); font-weight: 600; margin-bottom: 0.6rem; }
.community p { color: var(--text-dim); }
.community-features { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin: 1.2rem 0; }
.community-feature { display: flex; align-items: center; gap: 0.5rem; color: var(--text-dim); font-size: 0.88rem; }
.community-feature svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }
.community-logo { width: 100%; border-radius: 16px; border: 1px solid var(--border); }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact-quote {
    border-left: 3px solid var(--accent);
    background: var(--surface);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 1.4rem 1.6rem;
    color: var(--text-dim);
    margin-bottom: 1.6rem;
}
.contact-quote b, .contact-quote strong { color: var(--accent); }
.contact-list { display: flex; flex-direction: column; gap: 0.9rem; }
.contact-row {
    display: flex; align-items: center; gap: 1rem;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 1rem 1.2rem;
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.contact-row:hover { transform: translateX(4px); border-color: var(--accent-line); }
.contact-ic {
    width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
}
.contact-ic svg { width: 20px; height: 20px; }
.contact-info { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.12rem; }
.contact-info .k { display: block; font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-mute); }
.contact-info .v { display: block; font-weight: 600; font-size: 1rem; color: var(--text); overflow-wrap: anywhere; line-height: 1.25; }
.contact-info .s { display: block; font-size: 0.82rem; color: var(--text-mute); }
.contact-arrow { color: var(--text-mute); }
.contact-arrow svg { width: 18px; height: 18px; }

/* ---------- book (mentorship/about highlight) ---------- */
.book {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 2rem;
    align-items: start;
    margin-top: 1.6rem;
}
.book h3 { font-family: var(--font-head); font-size: 1.5rem; }
.book .byline { font-family: var(--font-mono); font-size: 0.82rem; color: var(--text-mute); margin: 0.3rem 0 0.9rem; }
.book .quote { color: var(--accent); font-style: italic; margin-bottom: 0.9rem; }
.book p { color: var(--text-dim); }
.book-stats { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }
.book-stats span { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-dim); background: var(--surface-3); border: 1px solid var(--border); padding: 0.28rem 0.6rem; border-radius: 8px; }
.book-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1rem; }
.book-cover { width: 100%; border-radius: 14px; border: 1px solid var(--border); box-shadow: 0 16px 40px rgba(0,0,0,0.4); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border);
    padding: 2rem 1.5rem;
    text-align: center;
    color: var(--text-mute);
    font-family: var(--font-mono);
    font-size: 0.82rem;
}
.footer a { color: var(--text-dim); }
.footer a:hover { color: var(--accent); }
.footer-links { display: flex; justify-content: center; gap: 1.2rem; margin-bottom: 0.8rem; flex-wrap: wrap; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
    .nav-menu { display: none; }
    .nav-toggle { display: inline-flex; }
    .cmdk-trigger { display: none; }
    .nav-menu.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--nav-h); left: 0; right: 0;
        background: rgba(8,11,17,0.97);
        backdrop-filter: blur(14px);
        border-bottom: 1px solid var(--border);
        padding: 1rem 1.5rem;
        gap: 0.2rem;
        align-items: stretch;
    }
    .nav-menu.open a { padding: 0.7rem 0.5rem; }
    .about-card { grid-template-columns: 1fr; text-align: center; }
    .about-body { text-align: left; }
    .value-grid { grid-template-columns: 1fr; }
    .community { grid-template-columns: 1fr; }
    .community-visual { order: -1; max-width: 200px; margin: 0 auto; }
    .book { grid-template-columns: 1fr; }
    .book-cover { max-width: 220px; margin: 0 auto; }
}

@media (max-width: 620px) {
    .stats-row { grid-template-columns: 1fr 1fr; }
    .community-features { grid-template-columns: 1fr; }
    .nav-cta .btn-yt span { display: none; }
    .page { padding-top: calc(var(--nav-h) + 2rem); }
    .hero-card { padding: 2rem 1.4rem; }
}

/* hide desktop-only nav labels on very small screens handled above */

/* ==========================================================================
   COMMAND PALETTE
   ========================================================================== */
.cmdk-trigger {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: var(--text-dim);
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.35rem 0.55rem;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.cmdk-trigger:hover { color: var(--accent); border-color: var(--accent-line); }

.cmdk-ov {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(4, 6, 10, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 14vh;
}
.cmdk-ov[hidden] { display: none; }
.cmdk-panel {
    width: min(560px, 92vw);
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: 16px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    animation: pageIn 0.2s ease both;
}
.cmdk-input-wrap { display: flex; align-items: center; gap: 0.6rem; padding: 0.9rem 1.1rem; border-bottom: 1px solid var(--border); }
.cmdk-p { font-family: var(--font-mono); color: var(--accent); }
.cmdk-input { flex: 1; background: none; border: none; outline: none; color: var(--text); font-size: 1rem; font-family: var(--font-body); }
.cmdk-esc { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-mute); border: 1px solid var(--border); padding: 0.1rem 0.4rem; border-radius: 5px; }
.cmdk-list { list-style: none; max-height: 340px; overflow-y: auto; padding: 0.5rem; }
.cmdk-item {
    display: flex; align-items: center; gap: 0.7rem;
    padding: 0.65rem 0.8rem; border-radius: 10px; cursor: pointer; color: var(--text-dim);
    font-size: 0.92rem;
}
.cmdk-item svg { width: 16px; height: 16px; }
.cmdk-item.on { background: var(--accent-soft); color: var(--accent); }
.cmdk-ext { margin-left: auto; color: var(--text-mute); font-size: 0.8rem; }

/* ==========================================================================
   AI CHAT WIDGET
   ========================================================================== */
.askme { position: fixed; right: 20px; bottom: 20px; z-index: 2500; }
.askme-fab {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.72rem 1.15rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: var(--accent-ink); border: none; border-radius: 999px;
    font-family: var(--font-body); font-weight: 650; font-size: 0.9rem; cursor: pointer;
    box-shadow: 0 10px 26px var(--accent-soft), 0 6px 16px rgba(0,0,0,0.3);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.askme-fab:hover { transform: translateY(-2px); box-shadow: 0 16px 34px var(--accent-soft); }
.askme-fab svg { width: 18px; height: 18px; }

.askme-panel {
    position: absolute; right: 0; bottom: 64px;
    width: min(384px, 92vw);
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: 18px;
    box-shadow: 0 30px 70px rgba(0,0,0,0.55);
    display: flex; flex-direction: column; overflow: hidden;
    transform-origin: bottom right;
    animation: pageIn 0.28s cubic-bezier(0.22,1,0.36,1);
}
.askme-panel[hidden] { display: none; }
.askme-head {
    display: flex; align-items: center; justify-content: space-between; gap: 0.6rem;
    padding: 0.8rem 0.9rem; border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, var(--accent-soft), transparent);
}
.askme-id { display: flex; align-items: center; gap: 0.6rem; min-width: 0; }
.askme-ava {
    width: 38px; height: 38px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink);
    flex-shrink: 0; box-shadow: 0 4px 12px var(--accent-soft);
}
.askme-ava svg { width: 19px; height: 19px; }
.askme-id-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.askme-id-text strong { font-size: 0.95rem; color: var(--text); }
.askme-id-text small { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.72rem; color: var(--text-dim); }
.askme-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c-green); box-shadow: 0 0 0 0 rgba(52,211,153,0.5); animation: pulse 2s infinite; }
.askme-close {
    background: none; border: none; color: var(--text-dim); font-size: 1.5rem; cursor: pointer;
    width: 30px; height: 30px; border-radius: 8px; line-height: 1;
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    transition: background 0.2s ease, color 0.2s ease;
}
.askme-close:hover { background: var(--surface-3); color: var(--text); }
.askme-body {
    padding: 1rem; display: flex; flex-direction: column; gap: 0.55rem;
    height: 340px; overflow-y: auto;
    scrollbar-width: thin; scrollbar-color: var(--accent-line) transparent;
}
.askme-body::-webkit-scrollbar { width: 7px; }
.askme-body::-webkit-scrollbar-thumb { background: var(--accent-line); border-radius: 999px; }
.askme-msg {
    max-width: 86%; padding: 0.62rem 0.85rem; border-radius: 14px;
    font-size: 0.88rem; line-height: 1.5; animation: pageIn 0.3s ease both;
    overflow-wrap: anywhere;
}
.askme-msg.bot { align-self: flex-start; background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-bottom-left-radius: 5px; }
.askme-msg.user { align-self: flex-end; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink); font-weight: 550; border-bottom-right-radius: 5px; }
.askme-msg a.askme-link {
    display: inline-flex; align-items: center; gap: 0.28rem;
    padding: 0.26rem 0.62rem; margin: 0.2rem 0.3rem 0.05rem 0;
    background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 999px;
    font-family: var(--font-mono); font-size: 0.78rem; font-weight: 550; color: var(--accent);
    text-decoration: none; line-height: 1.2; vertical-align: middle;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.askme-msg a.askme-link::after { content: "↗"; font-size: 0.72em; opacity: 0.75; }
.askme-msg a.askme-link:hover { background: var(--accent); color: var(--accent-ink); transform: translateY(-1px); }
.askme-msg.user a.askme-link { background: rgba(26,18,6,0.14); border-color: rgba(26,18,6,0.5); color: var(--accent-ink); }
.askme-typing { display: inline-flex; gap: 4px; align-items: center; padding: 0.72rem 0.9rem; }
.askme-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--text-dim); opacity: 0.5; animation: askDot 1.2s infinite ease-in-out; }
.askme-typing span:nth-child(2) { animation-delay: 0.2s; }
.askme-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes askDot { 0%,60%,100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-4px); opacity: 1; } }
.askme-suggest { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0 1rem 0.55rem; }
.askme-chip {
    background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px;
    padding: 0.32rem 0.7rem; font-size: 0.74rem; color: var(--text-dim); cursor: pointer;
    font-family: var(--font-mono); transition: color 0.2s ease, border-color 0.2s ease;
}
.askme-chip:hover { color: var(--accent); border-color: var(--accent-line); }
.askme-input {
    display: flex; align-items: center; gap: 0.4rem; margin: 0 0.8rem 0.5rem;
    padding: 0.22rem 0.22rem 0.22rem 0.9rem;
    background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.askme-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.askme-input input { flex: 1; min-width: 0; background: none; border: none; outline: none; color: var(--text); font-size: 0.88rem; padding: 0.4rem 0; }
.askme-input button {
    background: linear-gradient(135deg, var(--accent), var(--accent-2)); border: none; border-radius: 50%;
    width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; color: var(--accent-ink); flex-shrink: 0; transition: transform 0.2s ease;
}
.askme-input button:hover { transform: scale(1.08); }
.askme-input button svg { width: 16px; height: 16px; }
.askme-foot { margin: 0; padding: 0 1rem 0.7rem; font-size: 0.66rem; color: var(--text-mute); text-align: center; }

@media (max-width: 480px) {
    .askme { right: 12px; bottom: 12px; }
    .askme-fab span { display: none; }
    .askme-body { height: 320px; }
}
