/* ═══════════════════════════════════════════════════════════════
   CUSTOM PROPERTIES
═══════════════════════════════════════════════════════════════ */
:root {
    --bg: #05050f;
    --bg-alt: #08081a;
    --surface: #0d0d22;
    --surface-2: #131332;
    --border: rgba(255, 255, 255, 0.07);
    --border-accent: rgba(139, 92, 246, 0.4);

    --accent: #8b5cf6;
    --accent-glow: rgba(139, 92, 246, 0.28);
    --accent-hover: #7c3aed;
    --cyan: #22d3ee;
    --cyan-glow: rgba(34, 211, 238, 0.2);
    --green: #10b981;

    --text: #f1f5f9;
    --text-2: #94a3b8;
    --text-3: #475569;

    --font-body: "Inter", system-ui, -apple-system, sans-serif;
    --font-display: "Space Grotesk", system-ui, sans-serif;

    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;

    --nav-h: 72px;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --t: 0.3s var(--ease);
}

/* ═══════════════════════════════════════════════════════════════
   RESET
═══════════════════════════════════════════════════════════════ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}
img,
video {
    max-width: 100%;
    display: block;
}
button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}
[ng-click] {
    cursor: pointer;
}

/* ═══════════════════════════════════════════════════════════════
   SCROLLBAR
═══════════════════════════════════════════════════════════════ */
::-webkit-scrollbar {
    width: 5px;
}
::-webkit-scrollbar-track {
    background: var(--bg);
}
::-webkit-scrollbar-thumb {
    background: var(--surface-2);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* ═══════════════════════════════════════════════════════════════
   LAYOUT HELPERS
═══════════════════════════════════════════════════════════════ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
}

/* ═══════════════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: all var(--t);
    white-space: nowrap;
    cursor: pointer;
}

.btn--primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 0 28px var(--accent-glow);
}
.btn--primary:hover,
.btn--primary:focus-visible {
    background: var(--accent-hover);
    box-shadow:
        0 0 48px var(--accent-glow),
        0 8px 24px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.btn--outline {
    border: 1px solid var(--border);
    color: var(--text-2);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
}
.btn--outline:hover,
.btn--outline:focus-visible {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(139, 92, 246, 0.08);
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════════════════════ */
.navbar {
    position: fixed;
    inset: 0 0 auto;
    height: var(--nav-h);
    z-index: 999;
    transition:
        background var(--t),
        box-shadow var(--t),
        border-color var(--t);
}

.navbar--scrolled {
    background: rgba(5, 5, 15, 0.82);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text);
    transition: opacity var(--t);
}
.nav-logo:hover {
    opacity: 0.8;
}
.nav-logo-dot {
    color: var(--accent);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 8px 16px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-2);
    border-radius: var(--radius-sm);
    transition:
        color var(--t),
        background var(--t);
}
.nav-link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

/* Language button */
.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 10px;
    padding: 7px 16px;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    color: var(--text-2);
    background: rgba(255, 255, 255, 0.03);
    transition: all var(--t);
}
.lang-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(139, 92, 246, 0.1);
}

/* ═══════════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════════ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--nav-h) + 60px) 28px 100px;
    overflow: hidden;
}

/* Animated background */
.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    animation: floatOrb 10s ease-in-out infinite;
}
.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle at center, rgba(139, 92, 246, 0.45), transparent 65%);
    top: -150px;
    left: -150px;
    animation-duration: 11s;
}
.orb-2 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle at center, rgba(34, 211, 238, 0.35), transparent 65%);
    top: 10%;
    right: -80px;
    animation-duration: 13s;
    animation-delay: -4s;
}
.orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle at center, rgba(16, 185, 129, 0.25), transparent 65%);
    bottom: 5%;
    left: 35%;
    animation-duration: 9s;
    animation-delay: -7s;
}

@keyframes floatOrb {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(40px, -25px) scale(1.06);
    }
    66% {
        transform: translate(-25px, 30px) scale(0.96);
    }
}

/* Grid dot overlay */
.grid-overlay {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, black 20%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, black 20%, transparent 100%);
}

/* Hero two-column inner wrapper */
.hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1100px;
    display: flex;
    align-items: center;
    gap: 72px;
}

/* Hero content */
.hero-content {
    flex: 1;
    min-width: 0;
    animation: fadeUp 0.9s var(--ease) both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(36px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 20px;
    animation: fadeUp 0.9s 0.1s var(--ease) both;
}
.eyebrow-line {
    display: block;
    width: 32px;
    height: 1px;
    background: var(--cyan);
    flex-shrink: 0;
}

.hero-name {
    font-family: var(--font-display);
    font-size: clamp(3.2rem, 9vw, 6rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 20px;
    background: linear-gradient(130deg, #ffffff 0%, var(--accent) 55%, var(--cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeUp 0.9s 0.15s var(--ease) both;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(1rem, 2.8vw, 1.35rem);
    font-weight: 500;
    color: var(--text-2);
    margin-bottom: 24px;
    animation: fadeUp 0.9s 0.2s var(--ease) both;
}

.hero-bio {
    font-size: 1.05rem;
    color: var(--text-2);
    max-width: 520px;
    margin: 0 0 40px;
    line-height: 1.85;
    animation: fadeUp 0.9s 0.25s var(--ease) both;
}

.hero-cta {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 52px;
    animation: fadeUp 0.9s 0.3s var(--ease) both;
}

/* Skill pills */
.hero-skills {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
    animation: fadeUp 0.9s 0.36s var(--ease) both;
}

/* ─── Profile photo ────────────────────────────────────────── */
.hero-photo-wrap {
    flex-shrink: 0;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 3px solid transparent;
    /* Gradient ring via background-clip trick */
    background:
        linear-gradient(var(--bg), var(--bg)) padding-box,
        linear-gradient(135deg, var(--accent) 0%, var(--cyan) 100%) border-box;
    box-shadow:
        0 0 40px var(--accent-glow),
        0 0 80px rgba(34, 211, 238, 0.12);
    overflow: hidden;
    z-index: 1;
    animation:
        fadeUp 0.9s 0.42s var(--ease) both,
        photoGlow 3.5s ease-in-out 1.3s infinite;
}

@keyframes photoGlow {
    0%,
    100% {
        box-shadow:
            0 0 35px var(--accent-glow),
            0 0 70px rgba(34, 211, 238, 0.1);
    }
    50% {
        box-shadow:
            0 0 65px var(--accent-glow),
            0 0 120px rgba(34, 211, 238, 0.22);
    }
}

.hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.skill-pill {
    padding: 6px 15px;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-3);
    background: rgba(255, 255, 255, 0.025);
    letter-spacing: 0.02em;
    transition: all var(--t);
}
.skill-pill:hover {
    border-color: rgba(139, 92, 246, 0.4);
    color: var(--accent);
    background: rgba(139, 92, 246, 0.07);
}

/* Scroll hint */
.scroll-hint {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    animation: fadeIn 1s 1.2s ease both;
}
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.scroll-line {
    width: 1px;
    height: 64px;
    background: linear-gradient(to bottom, transparent, var(--accent) 60%, transparent);
    margin: 0 auto;
    animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%,
    100% {
        opacity: 0.3;
        transform: scaleY(1);
    }
    50% {
        opacity: 1;
        transform: scaleY(1.08);
    }
}

/* ═══════════════════════════════════════════════════════════════
   SECTION SHARED
═══════════════════════════════════════════════════════════════ */
.section {
    padding: 110px 0;
}

.section-head {
    text-align: center;
    margin-bottom: 72px;
}

.section-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--text);
    margin-bottom: 16px;
}

.section-sub {
    font-size: 1rem;
    color: var(--text-2);
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ═══════════════════════════════════════════════════════════════
   ABOUT SECTION
═══════════════════════════════════════════════════════════════ */
.about-section {
    background: var(--bg);
}

.about-bio {
    font-size: 1.05rem;
    color: var(--text-2);
    max-width: 740px;
    margin: 0 auto 72px;
    text-align: center;
    line-height: 1.85;
}

/* ─ Competency cards ────────────────────────────────────────── */
.about-block {
    margin-bottom: 72px;
}

.about-block-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    text-align: center;
    margin-bottom: 32px;
}

.competencies-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.comp-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: all var(--t);
}

.comp-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.35),
        0 0 28px var(--accent-glow);
}

.comp-icon {
    font-size: 2rem;
    margin-bottom: 14px;
    line-height: 1;
    display: block;
}

.comp-title {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.comp-desc {
    font-size: 0.84rem;
    color: var(--text-2);
    line-height: 1.72;
}

/* ─ Education / Experience / Languages columns ──────────── */
.about-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    align-items: start;
}

.about-col-title {
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

/* ─ Timeline ────────────────────────────────────────────────── */
.timeline {
    display: flex;
    flex-direction: column;
}

.timeline-item {
    display: flex;
    gap: 16px;
    padding-bottom: 22px;
    position: relative;
}

.timeline-item:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 86px;
    top: 20px;
    bottom: 0;
    width: 1px;
    background: var(--border);
}

.timeline-period {
    flex-shrink: 0;
    width: 78px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.02em;
    padding-top: 2px;
    text-align: left;
    line-height: 1.4;
    white-space: nowrap;
}

.timeline-body {
    flex: 1;
    min-width: 0;
}

.timeline-degree {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 3px;
    line-height: 1.35;
}

.timeline-place {
    font-size: 0.78rem;
    color: var(--text-2);
    margin-bottom: 4px;
}

.timeline-note {
    font-size: 0.74rem;
    color: var(--accent);
    font-style: italic;
    line-height: 1.4;
}

/* ─ Language bars ───────────────────────────────────────────── */
.lang-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.lang-info {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}

.lang-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}

.lang-level {
    font-size: 0.74rem;
    color: var(--text-3);
    font-weight: 500;
    letter-spacing: 0.03em;
}

.lang-bar {
    height: 3px;
    background: var(--surface-2);
    border-radius: 2px;
    overflow: hidden;
}

.lang-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--cyan));
    border-radius: 2px;
}

/* ═══════════════════════════════════════════════════════════════
   PROJECTS SECTION
═══════════════════════════════════════════════════════════════ */
.projects-section {
    background: var(--bg-alt);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

/* ═══════════════════════════════════════════════════════════════
   PROJECT CARD
═══════════════════════════════════════════════════════════════ */
.project-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition:
        transform var(--t),
        border-color var(--t),
        box-shadow var(--t);
}

.project-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-6px);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.55),
        0 0 48px var(--accent-glow);
}

/* Glowing top accent line */
.card-glow-line {
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), var(--cyan), transparent);
    opacity: 0;
    transition: opacity var(--t);
    z-index: 2;
}
.project-card:hover .card-glow-line {
    opacity: 1;
}

/* Video wrapper — 16:9 */
.project-video-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #000;
    overflow: hidden;
    flex-shrink: 0;
}

.project-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Card body */
.project-body {
    padding: 24px 26px 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.project-meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.project-num {
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--accent);
    opacity: 0.7;
    flex-shrink: 0;
    padding-top: 2px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tag {
    padding: 3px 11px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    background: rgba(139, 92, 246, 0.12);
    color: var(--accent);
    border: 1px solid rgba(139, 92, 246, 0.22);
    transition: all var(--t);
}
.tag:hover {
    background: rgba(139, 92, 246, 0.22);
}

.project-title {
    font-family: var(--font-display);
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.015em;
    line-height: 1.35;
}

/* Collapsible description */
.project-desc-wrap {
    position: relative;
    overflow: hidden;
    max-height: 78px;
    transition: max-height 0.45s var(--ease);
}

.project-desc-wrap::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to top, var(--surface), transparent);
    pointer-events: none;
    transition: opacity 0.3s;
}

.project-desc-wrap--open {
    max-height: 800px;
}
.project-desc-wrap--open::after {
    opacity: 0;
}

.project-desc {
    font-size: 0.9rem;
    color: var(--text-2);
    line-height: 1.78;
}

/* Read-more toggle */
.read-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent);
    background: none;
    border: none;
    padding: 0;
    margin-top: 4px;
    align-self: flex-start;
    transition:
        color var(--t),
        gap var(--t);
}
.read-more:hover {
    color: #a78bfa;
    gap: 9px;
}

.chevron {
    transition: transform 0.35s var(--ease);
}
.chevron--up {
    transform: rotate(180deg);
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER / CONTACT
═══════════════════════════════════════════════════════════════ */
.footer {
    padding: 90px 0 44px;
    background: var(--bg);
}

.footer-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
    margin-bottom: 56px;
    padding: 48px 52px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

/* Gradient accent corner */
.footer-cta::before {
    content: "";
    position: absolute;
    top: -80px;
    right: -80px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.2), transparent 70%);
    pointer-events: none;
}

.footer-cta-text {
    flex: 1;
    min-width: 240px;
}

.footer-heading {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.15;
    background: linear-gradient(130deg, var(--text) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.footer-sub {
    font-size: 1rem;
    color: var(--text-2);
}

.footer-btn {
    flex-shrink: 0;
}

.footer-divider {
    height: 1px;
    background: var(--border);
    margin-bottom: 32px;
}

.footer-copy {
    font-size: 0.82rem;
    color: var(--text-3);
    text-align: center;
    letter-spacing: 0.02em;
}

/* ═══════════════════════════════════════════════════════════════
   SCROLL REVEAL ANIMATION
═══════════════════════════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 0.7s var(--ease),
        transform 0.7s var(--ease);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delay for project cards via ng-attr-style */
.project-card.reveal {
    transition-delay: 0s;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — 900px
═══════════════════════════════════════════════════════════════ */
@media (max-width: 960px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — hero adjustments at 960px
═══════════════════════════════════════════════════════════════ */
@media (max-width: 960px) {
    .hero-inner {
        gap: 48px;
    }
    .hero-photo-wrap {
        width: 240px;
        height: 240px;
    }
    .competencies-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-cols {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    /* Languages column spans full width on tablet */
    .about-cols > .about-col:last-child {
        grid-column: 1 / -1;
    }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — 640px
═══════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
    :root {
        --nav-h: 62px;
    }

    .nav-link {
        display: none;
    }

    .hero {
        padding: calc(var(--nav-h) + 32px) 20px 80px;
        align-items: center;
    }
    .hero-inner {
        flex-direction: column-reverse;
        gap: 36px;
        text-align: center;
    }
    .hero-photo-wrap {
        width: 200px;
        height: 200px;
    }
    .hero-eyebrow {
        justify-content: center;
    }
    .hero-bio {
        margin: 0 auto 40px;
        max-width: 100%;
    }
    .hero-cta {
        justify-content: center;
    }
    .hero-skills {
        justify-content: center;
    }

    .competencies-grid {
        grid-template-columns: 1fr;
    }
    .about-cols {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-cols > .about-col:last-child {
        grid-column: auto;
    }
    .about-bio {
        text-align: left;
        margin-left: 0;
    }

    .section {
        padding: 72px 0;
    }
    .section-head {
        margin-bottom: 48px;
    }

    .footer-cta {
        flex-direction: column;
        align-items: flex-start;
        padding: 32px 28px;
    }

    .project-body {
        padding: 20px;
    }

    .container {
        padding: 0 20px;
    }
    .btn {
        padding: 12px 22px;
        font-size: 0.88rem;
    }
}

/* ═══════════════════════════════════════════════════════════════
   FOCUS STYLES (accessibility)
═══════════════════════════════════════════════════════════════ */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}
