/* =============================================
   TERMINAL LUXE — style.css
   Jesewe Developer Portfolio
   Accent: Violet #a855f7
   ============================================= */

/* ── Reset & Root ───────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #0a0a0a;
    --bg-surface: #111111;
    --bg-card: #141414;
    --bg-card-hover: #181818;

    --accent: #a855f7;
    --accent-dim: rgba(168, 85, 247, 0.15);
    --accent-glow: rgba(168, 85, 247, 0.35);
    --accent-mid: #c084fc;

    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #475569;
    --text-code: #a855f7;

    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(168, 85, 247, 0.4);

    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --font-sans: 'DM Sans', sans-serif;

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ── Noise Overlay ──────────────────────────── */
.noise {
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    opacity: 0.028;
    pointer-events: none;
    z-index: 9999;
}

/* ── Grid Background ────────────────────────── */
.grid-bg {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(168, 85, 247, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(168, 85, 247, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

/* ── Navigation ─────────────────────────────── */
#nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    transition: border-color var(--transition);
}

#nav.scrolled {
    border-bottom-color: rgba(168, 85, 247, 0.15);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-mono);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: color var(--transition);
}

.nav-logo:hover {
    color: var(--accent);
}

.logo-bracket {
    color: var(--accent);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0;
    align-items: center;
}

.nav-link {
    position: relative;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 20px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color var(--transition);
}

.nav-link::before {
    content: attr(data-label) ' ';
    color: var(--accent);
    font-size: 0.68rem;
    opacity: 0;
    transition: opacity var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::before {
    opacity: 1;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.nav-link.active {
    color: var(--accent);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--text-secondary);
    transition: all var(--transition);
}

.hamburger.open span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    z-index: 999;
    transform: translateY(-110%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 16px 0 24px;
}

.mobile-menu.open {
    transform: translateY(0);
}

.mobile-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
}

.mobile-link {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 14px 32px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-left: 2px solid transparent;
    transition: all var(--transition);
}

.mobile-link:hover {
    color: var(--accent);
    border-left-color: var(--accent);
    background: var(--accent-dim);
}

/* ── Sections ───────────────────────────────── */
.section {
    position: relative;
    z-index: 1;
    padding: 120px 0;
}

.section-dark {
    background: var(--bg-surface);
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 64px;
}

.section-index {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.15em;
    opacity: 0.7;
}

.section-title {
    font-family: var(--font-mono);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

.section-line {
    flex: 1;
    height: 1px;
    background: var(--border);
    position: relative;
    overflow: hidden;
}

.section-line::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 80px;
    background: linear-gradient(90deg, var(--accent), transparent);
}

/* ── Hero ───────────────────────────────────── */
.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    /* No justify-content:center — hero-inner has auto top margin,
     scroll-hint uses margin-top:auto to reach the bottom */
    padding: 0;
}

.hero-inner {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 32px;
    /* Push content away from nav and center it vertically */
    margin-top: auto;
    margin-bottom: auto;
    padding-top: 100px;
    padding-bottom: 48px;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 48px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
}

.meta-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent-glow);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        box-shadow: 0 0 8px var(--accent-glow);
    }

    50% {
        box-shadow: 0 0 18px var(--accent), 0 0 30px var(--accent-glow);
    }
}

.meta-line {
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-sep {
    color: var(--border);
}

.hero-title-wrap {
    margin-bottom: 28px;
}

.hero-label {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent);
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.hero-name-row {
    min-height: calc(1em * 1 * 1.1 + 0px);
    /* reserve exactly one line at current clamp size */
    display: flex;
    align-items: baseline;
}

.hero-name {
    font-family: var(--font-mono);
    font-size: clamp(3.5rem, 10vw, 7.5rem);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 16px;
    white-space: nowrap;
}

.cursor-blink {
    color: var(--accent);
    animation: blink 1.1s step-end infinite;
    font-weight: 300;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hero-role {
    font-family: var(--font-sans);
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    font-weight: 300;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

.hero-desc {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 520px;
    margin-bottom: 44px;
    line-height: 1.8;
}

/* Buttons */
.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 64px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition: all var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    color: #0a0a0a;
    border-color: var(--accent);
}

.btn-primary:hover {
    background: var(--accent-mid);
    border-color: var(--accent-mid);
    box-shadow: 0 0 28px var(--accent-glow);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border-color: var(--border);
}

.btn-ghost:hover {
    color: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 18px var(--accent-dim);
    transform: translateY(-2px);
}

/* Stats */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-num {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: var(--font-mono);
}

.stat-divider {
    width: 1px;
    height: 30px;
    background: var(--border);
}

/* Scroll Hint — flex sibling of hero-inner, margin-top:auto pins it to bottom */
.hero-scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    /* Sits below hero-inner with natural gap, no absolute positioning */
    margin-top: auto;
    padding-bottom: 32px;
    animation: bounce-hint 2.5s ease-in-out infinite;
}

@keyframes bounce-hint {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(6px);
    }
}

/* ── Projects Grid ──────────────────────────── */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--border);
}

.project-card {
    position: relative;
    background: var(--bg-card);
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow: hidden;
    transition: background var(--transition);
}

.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(168, 85, 247, 0.06), transparent 70%);
    opacity: 0;
    transition: opacity var(--transition);
}

.project-card:hover {
    background: var(--bg-card-hover);
}

.project-card:hover::before {
    opacity: 1;
}

.card-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 0;
}

.project-card>* {
    position: relative;
    z-index: 1;
}

.project-card:hover .card-accent {
    transform: scaleX(1);
}

.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-num {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

.card-icon {
    font-size: 1.1rem;
    color: var(--accent);
    opacity: 0.7;
    transition: opacity var(--transition);
}

.project-card:hover .card-icon {
    opacity: 1;
}

.card-title {
    font-family: var(--font-mono);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    transition: color var(--transition);
}

.project-card:hover .card-title {
    color: var(--accent-mid);
}

.card-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
    flex: 1;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    padding: 3px 10px;
    border-radius: 3px;
    transition: all var(--transition);
}

.project-card:hover .tag {
    border-color: rgba(168, 85, 247, 0.2);
    color: var(--accent);
    background: var(--accent-dim);
}

.card-footer {
    margin-top: 4px;
}

.card-link {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition);
}

.card-link:hover,
.project-card:hover .card-link {
    color: var(--accent);
    gap: 12px;
}

/* ── About ──────────────────────────────────── */
.about-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 80px;
    align-items: start;
}

.about-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    position: sticky;
    top: 100px;
}

.about-avatar {
    position: relative;
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-desc-icon {
    color: var(--accent);
    font-size: 0.9rem;
    margin-left: 4px;
    opacity: 0.8;
}

.avatar-inner {
    font-size: 2rem;
    color: var(--accent);
    z-index: 2;
    position: relative;
}

.avatar-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid var(--accent);
    opacity: 0.4;
    animation: spin-ring 12s linear infinite;
}

.avatar-ring::after {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent);
}

@keyframes spin-ring {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.about-handle {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.about-handle .handle-prefix {
    color: var(--accent);
}

.about-location {
    font-size: 0.78rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.about-right {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.about-block {
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.about-block:last-of-type,
.skills-block {
    border-bottom: none;
    padding-bottom: 0;
}

.about-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}

.about-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.skill {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-primary);
    background: var(--accent-dim);
    border: 1px solid rgba(168, 85, 247, 0.25);
    padding: 6px 14px;
    border-radius: 3px;
    letter-spacing: 0.04em;
    transition: all var(--transition);
}

.skill:hover {
    background: rgba(168, 85, 247, 0.25);
    border-color: var(--accent);
    box-shadow: 0 0 12px var(--accent-dim);
}

/* ── Contact ────────────────────────────────── */
.contact-layout {
    max-width: 720px;
}

.contact-intro {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 48px;
    line-height: 1.8;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 1px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--border);
}

.contact-card {
    background: var(--bg-card);
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 28px;
    text-decoration: none;
    transition: background var(--transition);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform var(--transition);
}

.contact-card:hover {
    background: var(--bg-card-hover);
}

.contact-card:hover::before {
    transform: scaleY(1);
}

.cc-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--accent-dim);
    border: 1px solid rgba(168, 85, 247, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--accent);
    flex-shrink: 0;
    transition: all var(--transition);
}

.contact-card:hover .cc-icon {
    background: rgba(168, 85, 247, 0.25);
    box-shadow: 0 0 16px var(--accent-dim);
}

.cc-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.cc-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.cc-val {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition);
}

.contact-card:hover .cc-val {
    color: var(--text-primary);
}

.cc-arrow {
    color: var(--text-muted);
    font-size: 0.75rem;
    transition: all var(--transition);
}

.contact-card:hover .cc-arrow {
    color: var(--accent);
    transform: translate(2px, -2px);
}

/* ── Footer ─────────────────────────────────── */
footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border);
    padding: 48px 0;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.footer-logo {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.footer-copy {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.footer-heart {
    color: var(--accent);
    font-size: 0.75rem;
}

.footer-tagline {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    font-family: var(--font-mono);
    opacity: 0.5;
}

/* ── Scroll Reveal ──────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ─────────────────────────────── */

/* Tablet: 2-col projects */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ── Mobile ≤ 768px ─────────────────────────── */
@media (max-width: 768px) {

    /* --- Nav --- */
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .nav-inner {
        padding: 0 16px;
    }

    /* --- Sections --- */
    .section {
        padding: 60px 0;
    }

    .section-inner {
        padding: 0 16px;
    }

    .section-header {
        gap: 10px;
        margin-bottom: 32px;
        flex-wrap: wrap;
    }

    .section-index {
        flex-shrink: 0;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .section-line {
        min-width: 24px;
        flex: 1;
    }

    /* --- Hero --- */
    .hero-inner {
        padding: 80px 16px 40px;
        margin-top: 0;
        margin-bottom: 0;
        flex: 0 0 auto;
    }

    .hero-meta {
        margin-bottom: 24px;
        font-size: 0.72rem;
        gap: 8px;
        flex-wrap: wrap;
    }

    .hero-title-wrap {
        margin-bottom: 20px;
    }

    .hero-label {
        font-size: 0.75rem;
        margin-bottom: 6px;
    }

    .hero-name {
        font-size: clamp(2.4rem, 11vw, 3.6rem);
        white-space: normal;
        word-break: break-word;
        letter-spacing: -0.03em;
    }

    .hero-name-row {
        min-height: unset;
        display: block;
    }

    .hero-role {
        font-size: clamp(0.9rem, 3.5vw, 1.1rem);
        margin-top: 8px;
    }

    .hero-desc {
        font-size: 0.875rem;
        margin-bottom: 28px;
        max-width: 100%;
    }

    .hero-cta {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 32px;
    }

    .btn {
        width: 100%;
        max-width: none;
        justify-content: center;
        padding: 13px 20px;
        font-size: 0.78rem;
    }

    /* Stats: bordered boxes, no dividers */
    .hero-stats {
        display: flex;
        gap: 8px;
        flex-wrap: nowrap;
    }

    .stat {
        flex: 1;
        align-items: center;
        text-align: center;
        padding: 10px 4px;
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
    }

    .stat-num {
        font-size: 0.9rem;
    }

    .stat-label {
        font-size: 0.58rem;
        letter-spacing: 0.04em;
    }

    .stat-divider {
        display: none;
    }

    /* Scroll hint: visible on mobile, compact */
    .hero-scroll-hint {
        padding-bottom: 20px;
        font-size: 0.6rem;
        gap: 6px;
    }

    /* --- Projects --- */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1px;
    }

    .project-card {
        padding: 20px 16px;
        gap: 12px;
    }

    .card-title {
        font-size: 1rem;
    }

    .card-desc {
        font-size: 0.83rem;
    }

    .card-link {
        font-size: 0.74rem;
    }

    .tag {
        font-size: 0.65rem;
        padding: 2px 7px;
    }

    /* --- About --- */
    .about-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .about-left {
        position: static;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 16px;
    }

    .about-avatar {
        width: 68px;
        height: 68px;
        flex-shrink: 0;
    }

    .avatar-inner {
        font-size: 1.4rem;
    }

    .about-handle {
        font-size: 0.8rem;
    }

    .about-location {
        font-size: 0.72rem;
    }

    .about-right {
        gap: 24px;
    }

    .about-block {
        padding-bottom: 20px;
    }

    .about-text {
        font-size: 0.88rem;
        line-height: 1.75;
    }

    .skills-list {
        gap: 8px;
        margin-top: 8px;
    }

    .skill {
        font-size: 0.72rem;
        padding: 5px 10px;
    }

    /* --- Contact --- */
    .contact-layout {
        max-width: 100%;
    }

    .contact-intro {
        font-size: 0.88rem;
        margin-bottom: 24px;
    }

    .contact-card {
        padding: 16px 14px;
        gap: 12px;
    }

    .cc-icon {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
        flex-shrink: 0;
    }

    .cc-label {
        font-size: 0.62rem;
    }

    .cc-val {
        font-size: 0.76rem;
        overflow-wrap: anywhere;
        word-break: break-all;
    }

    .cc-arrow {
        font-size: 0.7rem;
        flex-shrink: 0;
    }

    /* --- Footer --- */
    footer {
        padding: 36px 0;
    }

    .footer-inner {
        padding: 0 16px;
        gap: 8px;
    }

    .footer-copy {
        font-size: 0.75rem;
    }

    .footer-tagline {
        font-size: 0.68rem;
    }
}

/* ── Very small phones ≤ 390px ──────────────── */
@media (max-width: 390px) {

    .nav-inner {
        height: 60px;
    }

    .mobile-menu {
        top: 60px;
    }

    .hero-name {
        font-size: clamp(1.9rem, 12.5vw, 2.6rem);
    }

    .hero-role {
        font-size: 0.85rem;
    }

    /* Stats: allow wrap if 3 don't fit */
    .hero-stats {
        flex-wrap: wrap;
        gap: 8px;
    }

    .stat {
        flex: 1 1 calc(33% - 6px);
        min-width: 76px;
    }

    .section-title {
        font-size: 1.1rem;
    }

    .project-card {
        padding: 16px 12px;
    }

    .contact-card {
        padding: 14px 12px;
    }
}