/* ============================================================
   Portfolio v2 — Bento + Aurora redesign
   Light theme · All-cool sky-blue + lavender palette · Geist fonts
   ============================================================ */

@font-face {
    font-family: 'Geist';
    src: url('../assets/fonts/Geist-Variable.woff2') format('woff2-variations'),
         url('../assets/fonts/Geist-Variable.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

@font-face {
    font-family: 'Geist Mono';
    src: url('../assets/fonts/GeistMono-Variable.woff2') format('woff2-variations'),
         url('../assets/fonts/GeistMono-Variable.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

/* ---------- Tokens ---------- */
:root {
    --bg: #FAFAF7;
    --surface: #FFFFFF;
    --surface-frost: rgba(255, 255, 255, 0.62);
    --surface-frost-strong: rgba(255, 255, 255, 0.85);
    --text: #0B1220;
    --text-muted: #4B5563;
    --text-soft: #6B7280;
    --border: rgba(15, 23, 42, 0.08);
    --border-strong: rgba(15, 23, 42, 0.14);

    --accent: #0EA5E9;
    --accent-deep: #0369A1;
    --accent-soft: rgba(14, 165, 233, 0.12);
    --accent-cool: #6366F1;
    --accent-cool-soft: rgba(99, 102, 241, 0.12);
    --accent-mint: #14B8A6;
    --status-live: #10B981;

    --aurora-1: #BAE6FD;
    --aurora-2: #DDD6FE;
    --aurora-3: #E0F2FE;

    --gh-0: #EEF2F7;
    --gh-1: #BAE6FD;
    --gh-2: #7DD3FC;
    --gh-3: #38BDF8;
    --gh-4: #0284C7;

    --radius-card: 24px;
    --radius-sm: 12px;
    --radius-pill: 999px;

    --shadow-soft: 0 4px 24px rgba(15, 23, 42, .06);
    --shadow-lift: 0 18px 44px rgba(14, 165, 233, .14);
    --shadow-press: 0 2px 8px rgba(15, 23, 42, .08);

    --font-sans: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

    --ease-out-soft: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

    --container: 1200px;
    --gutter: 1.5rem;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-size-adjust: 100%;
}

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

img,
svg {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
}

input,
textarea {
    font: inherit;
    color: inherit;
}

ul {
    list-style: none;
}

::selection {
    background: var(--accent-soft);
    color: var(--accent-deep);
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ---------- Aurora background ---------- */
.aurora {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background: var(--bg);
}

.aurora::before,
.aurora::after,
.aurora-blob {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.55;
    will-change: transform;
}

.aurora::before {
    width: 540px;
    height: 540px;
    top: -120px;
    left: -100px;
    background: var(--aurora-1);
    animation: drift-1 28s ease-in-out infinite;
}

.aurora::after {
    width: 460px;
    height: 460px;
    top: 30%;
    right: -120px;
    background: var(--aurora-3);
    animation: drift-2 32s ease-in-out infinite;
    opacity: 0.5;
}

.aurora-blob {
    width: 380px;
    height: 380px;
    bottom: -80px;
    left: 35%;
    background: var(--aurora-2);
    opacity: 0.4;
    animation: drift-3 36s ease-in-out infinite;
}

@keyframes drift-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(60px, 80px) scale(1.08); }
}

@keyframes drift-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(-80px, 50px) scale(1.12); }
}

@keyframes drift-3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(40px, -60px) scale(1.06); }
}

/* ---------- Layout ---------- */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

main {
    padding-top: 88px;
}

section {
    padding: 4rem 0;
    scroll-margin-top: 88px;
}

@media (min-width: 768px) {
    section {
        padding: 5rem 0;
    }
}

/* ---------- Navigation ---------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0.875rem 0;
    background: var(--surface-frost);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    border-bottom: 1px solid var(--border);
    transition: padding 0.25s var(--ease-out-soft);
}

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

.nav-logo {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-logo::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-cool));
    box-shadow: 0 0 0 4px var(--accent-soft);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius-pill);
    transition: color 0.2s var(--ease-out-soft), background 0.2s var(--ease-out-soft);
}

.nav-link:hover,
.nav-link[aria-current="true"] {
    color: var(--text);
    background: var(--accent-soft);
}

.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
    content: '';
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.25s var(--ease-out-soft), opacity 0.2s;
}

.nav-toggle span {
    position: relative;
}

.nav-toggle span::before {
    position: absolute;
    top: -6px;
    left: 0;
}

.nav-toggle span::after {
    position: absolute;
    top: 6px;
    left: 0;
}

.nav.is-open .nav-toggle span {
    background: transparent;
}

.nav.is-open .nav-toggle span::before {
    transform: translateY(6px) rotate(45deg);
}

.nav.is-open .nav-toggle span::after {
    transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 768px) {
    .nav-toggle {
        display: inline-flex;
    }

    .nav-menu {
        position: fixed;
        top: 64px;
        left: 16px;
        right: 16px;
        flex-direction: column;
        align-items: stretch;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius-card);
        padding: 0.5rem;
        box-shadow: var(--shadow-soft);
        opacity: 0;
        transform: translateY(-12px);
        pointer-events: none;
        transition: opacity 0.2s, transform 0.25s var(--ease-out-soft);
    }

    .nav.is-open .nav-menu {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav-link {
        padding: 0.875rem 1rem;
        text-align: left;
    }
}

/* ---------- Bento grid base ---------- */
.bento {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(12, 1fr);
}

.tile {
    background: var(--surface-frost-strong);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 1.75rem;
    box-shadow: var(--shadow-soft);
    transition: transform 0.35s var(--ease-out-soft),
                box-shadow 0.35s var(--ease-out-soft),
                border-color 0.25s;
    position: relative;
    overflow: hidden;
}

.tile:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lift);
    border-color: var(--border-strong);
}

.tile-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-soft);
    margin-bottom: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.tile-eyebrow::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

/* Tile size variants for bento layouts */
.tile-12 { grid-column: span 12; }
.tile-8  { grid-column: span 8; }
.tile-6  { grid-column: span 6; }
.tile-5  { grid-column: span 5; }
.tile-4  { grid-column: span 4; }
.tile-3  { grid-column: span 3; }

@media (max-width: 1024px) {
    .tile-8, .tile-6, .tile-5, .tile-4, .tile-3 {
        grid-column: span 6;
    }
}

@media (max-width: 640px) {
    .tile-12, .tile-8, .tile-6, .tile-5, .tile-4, .tile-3 {
        grid-column: span 12;
    }

    .tile {
        padding: 1.5rem;
    }
}

/* ---------- Section heading ---------- */
.section-head {
    grid-column: span 12;
    margin-bottom: 0.5rem;
}

.section-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--accent-deep);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.section-eyebrow::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--accent-deep);
}

.section-title {
    font-size: clamp(1.75rem, 3.6vw, 2.5rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--text);
}

.section-title em {
    font-style: normal;
    color: var(--accent-deep);
}

/* ---------- Hero bento ---------- */
.hero-greeting {
    grid-column: span 8;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 360px;
    position: relative;
}

@media (max-width: 1024px) {
    .hero-greeting {
        grid-column: span 12;
        min-height: auto;
    }
}

.hero-hi {
    font-family: var(--font-mono);
    color: var(--text-soft);
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-name {
    font-size: clamp(2.5rem, 6.5vw, 4.5rem);
    font-weight: 600;
    line-height: 1.02;
    letter-spacing: -0.035em;
    margin-bottom: 0.5rem;
}

.hero-name em {
    font-style: normal;
    color: var(--accent-deep);
}

.hero-role {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.hero-tagline {
    font-size: 1rem;
    color: var(--text-soft);
    max-width: 50ch;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--radius-pill);
    transition: transform 0.18s var(--ease-out-soft),
                box-shadow 0.25s,
                background 0.25s,
                color 0.25s;
    cursor: pointer;
    border: 1px solid transparent;
    white-space: nowrap;
}

.btn-primary {
    background: var(--text);
    color: var(--bg);
}

.btn-primary:hover {
    background: var(--accent-deep);
    box-shadow: var(--shadow-lift);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-press);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border-color: var(--border-strong);
}

.btn-secondary:hover {
    background: var(--surface);
    border-color: var(--accent);
    color: var(--accent-deep);
}

.btn-ghost {
    background: var(--accent-soft);
    color: var(--accent-deep);
}

.btn-ghost:hover {
    background: var(--accent);
    color: white;
}

/* Professional headshot tile */
.hero-portrait {
    grid-column: span 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.75rem;
    margin: 0;
    text-align: center;
    background: linear-gradient(160deg, var(--surface) 0%, rgba(186, 230, 253, 0.18) 100%);
}

.hero-portrait-frame {
    width: 100%;
    aspect-ratio: 1 / 1;
    max-width: 260px;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--aurora-1), var(--aurora-3));
    padding: 4px;
    box-shadow: 0 0 0 1px var(--border-strong),
                0 18px 40px rgba(14, 165, 233, .22),
                0 6px 16px rgba(15, 23, 42, .08);
    transition: transform 0.4s var(--ease-out-soft), box-shadow 0.4s var(--ease-out-soft);
}

.hero-portrait:hover .hero-portrait-frame {
    transform: translateY(-3px);
    box-shadow: 0 0 0 1px var(--accent),
                0 24px 48px rgba(14, 165, 233, .28),
                0 6px 16px rgba(15, 23, 42, .08);
}

.hero-portrait-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    background: var(--surface);
    display: block;
}

.hero-portrait figcaption {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding-top: 0.25rem;
}

.hero-portrait-name {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text);
    letter-spacing: -0.01em;
}

.hero-portrait-role {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-soft);
}

.hero-portrait .pulse-dot {
    margin-top: 0.4rem;
}

@media (max-width: 1024px) {
    .hero-portrait {
        grid-column: span 12;
    }
    .hero-portrait-frame {
        max-width: 220px;
    }
}

@media (max-width: 480px) {
    .hero-portrait-frame {
        max-width: 180px;
    }
}

.pulse-dot {
    background: var(--surface);
    color: var(--text-muted);
    padding: 0.3rem 0.65rem;
    border-radius: var(--radius-pill);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border);
}

.pulse-dot::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--status-live);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, .55);
    animation: pulse 1.8s ease-out infinite;
}

@keyframes pulse {
    70%  { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-stats {
    grid-column: span 12;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gh-card-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.875rem;
}

.gh-card-title-text {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.gh-refresh {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-soft);
}

.gh-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 0.875rem;
    padding-bottom: 0.875rem;
    border-bottom: 1px dashed var(--border);
}

.gh-stat {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.gh-stat-num {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text);
}

.gh-stat-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-soft);
}

.gh-events {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.875rem;
}

.gh-event {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5rem;
    align-items: start;
}

.gh-event::before {
    content: '↳';
    color: var(--accent);
    font-family: var(--font-mono);
    font-weight: 600;
}

.gh-event strong {
    color: var(--text);
    font-weight: 500;
}

.gh-event time {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-soft);
    margin-left: 0.4rem;
}

.gh-link {
    margin-top: auto;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--accent-deep);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: gap 0.2s;
}

.gh-link:hover {
    gap: 0.7rem;
}

.skel {
    background: linear-gradient(90deg, rgba(15, 23, 42, .04), rgba(15, 23, 42, .08), rgba(15, 23, 42, .04));
    background-size: 200% 100%;
    border-radius: 6px;
    animation: shimmer 1.6s ease-in-out infinite;
}

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

/* hero-greeting + hero-stats already span 12 on all sizes */

/* ---------- About ---------- */
.about-tile {
    grid-column: span 8;
    line-height: 1.7;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.about-tile p + p {
    margin-top: 1rem;
}

.about-tile strong {
    color: var(--text);
    font-weight: 600;
}

.about-side {
    grid-column: span 4;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    background: var(--accent-soft);
    color: var(--accent-deep);
    border-radius: var(--radius-pill);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 500;
    width: fit-content;
}

.chip-cool {
    background: var(--accent-cool-soft);
    color: var(--accent-cool);
}

.chip-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.85;
}

.now-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.now-row {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 0.75rem;
    align-items: baseline;
    font-size: 0.9rem;
}

.now-row dt {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.now-row dd {
    color: var(--text-muted);
    line-height: 1.55;
}

@media (max-width: 1024px) {
    .about-tile, .about-side {
        grid-column: span 12;
    }
}

/* ---------- Experience ---------- */
.exp-list {
    grid-column: span 12;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
}

.exp-tile {
    position: relative;
}

.exp-tile::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--accent), var(--accent-cool));
    border-radius: 4px 0 0 4px;
}

.exp-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    margin-bottom: 0.5rem;
}

.exp-role {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.01em;
}

.exp-company {
    font-size: 1rem;
    color: var(--accent-deep);
    font-weight: 500;
}

.exp-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-soft);
    margin-bottom: 1rem;
}

.exp-bullets {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-bottom: 1rem;
}

.exp-bullets li {
    position: relative;
    padding-left: 1.4rem;
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

.exp-bullets li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.exp-bullets strong {
    color: var(--text);
    font-weight: 600;
}

.exp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tag {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 0.3rem 0.65rem;
    background: rgba(15, 23, 42, .04);
    color: var(--text-muted);
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
    transition: background 0.2s, color 0.2s;
}

.tag:hover {
    background: var(--accent-soft);
    color: var(--accent-deep);
    border-color: transparent;
}

/* ---------- Skills ---------- */
.skills-grid-bento {
    grid-column: span 12;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
}

.skill-tile {
    grid-column: span 4;
}

.skill-tile.wide  { grid-column: span 6; }
.skill-tile.full  { grid-column: span 12; }

@media (max-width: 1024px) {
    .skill-tile,
    .skill-tile.wide {
        grid-column: span 6;
    }
}

@media (max-width: 640px) {
    .skill-tile,
    .skill-tile.wide,
    .skill-tile.full {
        grid-column: span 12;
    }
}

.skill-cat-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-cat-title::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.skill-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.skill-icon-wrap {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: transform 0.2s var(--ease-out-soft),
                box-shadow 0.2s,
                border-color 0.2s;
    position: relative;
}

.skill-icon-wrap:hover {
    transform: translateY(-3px) rotate(-2deg);
    box-shadow: var(--shadow-soft);
    border-color: var(--accent);
}

.skill-icon-wrap img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.skill-icon-wrap[data-name]:hover::after {
    content: attr(data-name);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    background: var(--text);
    color: var(--bg);
    padding: 0.25rem 0.55rem;
    border-radius: 6px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 10;
}

/* ---------- Projects ---------- */
.proj-tile {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    padding: 1.5rem;
}

.proj-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent-cool));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

.proj-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.01em;
}

.proj-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
    flex-grow: 1;
}

.proj-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.proj-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.proj-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
    padding: 0.45rem 0.75rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
    transition: all 0.2s var(--ease-out-soft);
}

.proj-link:hover {
    color: var(--accent-deep);
    border-color: var(--accent);
    background: var(--accent-soft);
    transform: translateY(-1px);
}

.proj-link.primary {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}

.proj-link.primary:hover {
    background: var(--accent-deep);
    border-color: var(--accent-deep);
    color: white;
}

.proj-see-all {
    grid-column: span 12;
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
}

/* ---------- Contact ---------- */
.contact-form-tile {
    grid-column: span 7;
}

.contact-side {
    grid-column: span 5;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (max-width: 1024px) {
    .contact-form-tile, .contact-side {
        grid-column: span 12;
    }
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.field label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-soft);
}

.field input,
.field textarea {
    padding: 0.75rem 0.875rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
    font-family: var(--font-sans);
    color: var(--text);
}

.field textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

.field input.is-invalid,
.field textarea.is-invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.field label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
}

.field-counter {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-soft);
    text-transform: none;
    letter-spacing: 0;
    transition: color 0.2s;
}

.field-counter.is-near-limit { color: #f59e0b; }
.field-counter.is-at-limit   { color: #ef4444; }

.field-error {
    display: block;
    min-height: 1em;
    margin-top: 0.35rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: #ef4444;
    transition: opacity 0.15s;
}

.field-error:empty {
    margin-top: 0;
    min-height: 0;
}

.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-status {
    margin-top: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    min-height: 1.2em;
    transition: color 0.2s;
}

.form-status.success { color: #10B981; }
.form-status.error   { color: #ef4444; }
.form-status.warn    { color: #d97706; }

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all 0.2s var(--ease-out-soft);
}

.contact-link:hover {
    border-color: var(--accent);
    transform: translateX(2px);
    box-shadow: var(--shadow-soft);
}

.contact-link img {
    width: 22px;
    height: 22px;
}

.contact-link-content {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.contact-link-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-soft);
}

.contact-link-value {
    font-size: 0.92rem;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.location-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.875rem;
    background: linear-gradient(135deg, var(--aurora-1), var(--aurora-3));
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text);
}

/* ---------- Footer ---------- */
.footer {
    padding: 2.5rem 0 3rem;
    border-top: 1px solid var(--border);
    margin-top: 2rem;
    text-align: center;
    color: var(--text-soft);
    font-family: var(--font-mono);
    font-size: 0.78rem;
}

.footer p + p {
    margin-top: 0.4rem;
}

.footer a {
    color: var(--accent-deep);
    transition: color 0.2s;
}

.footer a:hover {
    color: var(--accent);
}

/* ---------- Reveal-on-scroll ---------- */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s var(--ease-out-soft),
                transform 0.7s var(--ease-out-soft);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children inside revealed bento */
.reveal > * {
    transition-delay: calc(var(--stagger, 0) * 60ms);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    .aurora::before,
    .aurora::after,
    .aurora-blob {
        animation: none;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ---------- GitHub contribution heatmap ---------- */
.gh-heatmap-wrap {
    margin: 0.5rem 0 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.gh-heatmap-wrap::-webkit-scrollbar {
    height: 5px;
}

.gh-heatmap-wrap::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 3px;
}

.gh-heatmap {
    display: grid;
    grid-template-rows: repeat(7, 11px);
    grid-auto-flow: column;
    grid-auto-columns: 11px;
    gap: 3px;
    width: max-content;
}

.gh-day {
    width: 11px;
    height: 11px;
    border-radius: 2px;
    background: var(--gh-0);
    transition: transform 0.15s var(--ease-out-soft);
}

.gh-day[data-level="1"] { background: var(--gh-1); }
.gh-day[data-level="2"] { background: var(--gh-2); }
.gh-day[data-level="3"] { background: var(--gh-3); }
.gh-day[data-level="4"] { background: var(--gh-4); }

.gh-day:hover {
    transform: scale(1.4);
    outline: 1px solid var(--accent-deep);
    outline-offset: 1px;
    z-index: 5;
}

.gh-heatmap-legend {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-soft);
    margin-top: 0.5rem;
}

.gh-heatmap-legend-cells {
    display: inline-flex;
    gap: 2px;
}

.gh-heatmap-legend-cells span {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    background: var(--gh-0);
}

.gh-heatmap-legend-cells span:nth-child(2) { background: var(--gh-1); }
.gh-heatmap-legend-cells span:nth-child(3) { background: var(--gh-2); }
.gh-heatmap-legend-cells span:nth-child(4) { background: var(--gh-3); }
.gh-heatmap-legend-cells span:nth-child(5) { background: var(--gh-4); }

/* ---------- Mobile responsiveness tweaks ---------- */
@media (max-width: 768px) {
    main {
        padding-top: 72px;
    }

    section {
        padding: 3rem 0;
        scroll-margin-top: 72px;
    }

    .container {
        padding: 0 1rem;
    }

    .bento {
        gap: 0.75rem;
    }

    .tile {
        padding: 1.25rem;
        border-radius: 18px;
    }

    .hero-name {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero-role {
        font-size: 1rem;
    }

    .hero-tagline {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

    .gh-stats {
        gap: 1rem;
    }

    .gh-stat-num {
        font-size: 1.25rem;
    }

    .exp-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .exp-meta {
        font-size: 0.72rem;
    }

    .skill-icon-wrap {
        width: 46px;
        height: 46px;
    }

    .skill-icon-wrap img {
        width: 26px;
        height: 26px;
    }

    .btn {
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
    }

    .nav-inner {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-cta .btn {
        justify-content: center;
    }

    .now-row {
        grid-template-columns: 64px 1fr;
        font-size: 0.85rem;
    }

    .gh-events {
        font-size: 0.8rem;
    }

    .contact-link {
        padding: 0.75rem;
    }

    .contact-link-value {
        font-size: 0.85rem;
    }
}

/* ---------- Print ---------- */
@media print {
    .nav, .aurora, .footer { display: none; }
    .tile { box-shadow: none; border-color: #ccc; }
    body { background: white; color: black; }
}
