/* =========================================================
   BAL BAHADUR TAMANG / SONAM TAMANG
   Clean, Fast, Professional Personal Portfolio
   ========================================================= */

:root {
    --bg: #0b0d10;
    --bg-alt: #0f1217;
    --surface: #12151b;
    --surface-2: #171b23;
    --text: #f5f3ee;
    --text-soft: #d8d4cc;
    --muted: #a7adba;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);
    --accent: #c9a468;
    --accent-strong: #e2c18c;
    --accent-soft: rgba(201, 164, 104, 0.13);
    --header-bg: rgba(11, 13, 16, 0.94);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.18);
    --shadow-hover: 0 16px 40px rgba(0, 0, 0, 0.26);
    --header-height: 76px;
    --container: 1160px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-pill: 999px;
    --font-latin: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    --font-ne: "Noto Sans Devanagari", "Mangal", "Kohinoor Devanagari", "Noto Sans", system-ui, sans-serif;
    color-scheme: dark;
}

[data-theme="light"] {
    --bg: #f8f7f4;
    --bg-alt: #fffdf9;
    --surface: #ffffff;
    --surface-2: #f1eee8;
    --text: #15171c;
    --text-soft: #3b404b;
    --muted: #5e6572;
    --border: rgba(21, 23, 28, 0.10);
    --border-strong: rgba(21, 23, 28, 0.18);
    --accent: #9a6f35;
    --accent-strong: #b3823f;
    --accent-soft: rgba(154, 111, 53, 0.12);
    --header-bg: rgba(248, 247, 244, 0.95);
    --shadow-soft: 0 10px 30px rgba(24, 25, 30, 0.08);
    --shadow-hover: 0 16px 40px rgba(24, 25, 30, 0.12);
    color-scheme: light;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

html[lang="ne"],
html[lang="ne"] body {
    font-family: var(--font-ne);
}

body {
    font-family: var(--font-latin);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

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

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

ul,
ol {
    list-style: none;
}

h1,
h2,
h3,
h4 {
    line-height: 1.12;
    letter-spacing: -0.03em;
    overflow-wrap: break-word;
}

p,
li,
strong,
span,
a,
button {
    overflow-wrap: break-word;
}

section[id] {
    scroll-margin-top: calc(var(--header-height) + 12px);
}

.container {
    width: min(100% - 32px, var(--container));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    top: -4rem;
    left: 1rem;
    z-index: 999;
    background: var(--accent);
    color: #111;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-pill);
    font-weight: 800;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 1rem;
}

::selection {
    background: var(--accent);
    color: #111;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 6px;
}

/* Header */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    background: var(--header-bg);
    border-bottom: 1px solid transparent;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.3s ease;
}

.site-header.scrolled {
    border-bottom-color: var(--border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
}

.header-inner {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 0;
}

/* Brand mark: circular photo with gold ring (BT fallback if no photo) */
.brand-mark {
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #111;
    font-weight: 900;
    letter-spacing: -0.04em;
    border: 2px solid rgba(201, 164, 104, 0.55);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.brand-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.brand-fallback {
    display: none;
}

.brand-mark.no-photo .brand-photo {
    display: none;
}

.brand-mark.no-photo .brand-fallback {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
}

.brand-text {
    display: grid;
    line-height: 1.25;
    min-width: 0;
}

.brand-text strong {
    font-size: 0.96rem;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-text small {
    color: var(--muted);
    font-size: 0.73rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 0.18rem;
    padding: 0.28rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--surface);
}

.main-nav a {
    padding: 0.52rem 0.8rem;
    border-radius: var(--radius-pill);
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 650;
    white-space: nowrap;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--text);
    background: var(--accent-soft);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.language-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.22rem;
    padding: 0.22rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--surface);
}

.lang-btn {
    padding: 0.42rem 0.68rem;
    border-radius: var(--radius-pill);
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 800;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.lang-btn.active {
    background: var(--accent);
    color: #111;
}

.theme-toggle {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--text-soft);
    transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.theme-toggle:hover {
    border-color: var(--accent);
    color: var(--accent-strong);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
}

.theme-toggle-wide {
    width: auto;
    padding: 0 1rem;
    gap: 0.55rem;
}

[data-theme="dark"] .icon-moon,
[data-theme="light"] .icon-sun {
    display: none;
}

.menu-toggle {
    width: 42px;
    height: 42px;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--surface);
}

.menu-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--text);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
    position: relative;
    padding: calc(var(--header-height) + clamp(4rem, 8vw, 7rem)) 0 clamp(4rem, 8vw, 6rem);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: clamp(2rem, 5vw, 4rem);
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.42rem 0.8rem;
    border: 1px solid rgba(201, 164, 104, 0.24);
    border-radius: var(--radius-pill);
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-title {
    margin: 1.2rem 0 1.15rem;
    font-size: clamp(2.7rem, 7vw, 5.6rem);
    line-height: 0.98;
    letter-spacing: -0.065em;
}

.hero-name {
    display: block;
}

.hero-alias {
    display: block;
    margin-top: 1rem;
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    line-height: 1.5;
    color: var(--muted);
    font-weight: 500;
    letter-spacing: 0;
}

.alias-name {
    color: var(--accent-strong);
    font-weight: 800;
    margin-left: 0.35rem;
}

.hero-role {
    margin-bottom: 1rem;
    color: var(--text-soft);
    font-size: clamp(0.9rem, 1.5vw, 1.02rem);
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero-desc {
    max-width: 650px;
    margin-bottom: 1.9rem;
    color: var(--muted);
    font-size: 1.02rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0.9rem 1.3rem;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    font-weight: 800;
    letter-spacing: -0.01em;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #111;
    box-shadow: 0 14px 32px rgba(201, 164, 104, 0.18);
}

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

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.hero-meta li {
    padding: 0.42rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 650;
}

/* Profile — premium frame */
.hero-visual {
    position: relative;
}

.profile-card {
    position: relative;
    padding: 0.9rem;
    border: 1px solid transparent;
    border-radius: 34px;
    background:
        linear-gradient(var(--surface), var(--surface)) padding-box,
        linear-gradient(155deg,
            rgba(201, 164, 104, 0.85),
            rgba(201, 164, 104, 0.12) 30%,
            rgba(255, 255, 255, 0.14) 55%,
            rgba(201, 164, 104, 0.55)) border-box;
    box-shadow: var(--shadow-soft);
}

.profile-glow {
    position: absolute;
    inset: -26px;
    background: radial-gradient(closest-side, var(--accent-soft), transparent 72%);
    z-index: -1;
    filter: blur(6px);
    pointer-events: none;
}

.profile-corner {
    position: absolute;
    width: 46px;
    height: 46px;
    border: 2px solid var(--accent);
    pointer-events: none;
    z-index: 2;
}

.profile-corner-tl {
    top: -10px;
    left: -10px;
    border-right: 0;
    border-bottom: 0;
    border-top-left-radius: 22px;
}

.profile-corner-br {
    bottom: -10px;
    right: -10px;
    border-left: 0;
    border-top: 0;
    border-bottom-right-radius: 22px;
}

.profile-frame {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    aspect-ratio: 4 / 5;
    background: var(--surface-2);
}

.profile-frame-line {
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 20px;
    pointer-events: none;
}

[data-theme="light"] .profile-frame-line {
    border-color: rgba(21, 23, 28, 0.14);
}

.profile-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.35s ease, transform 0.45s ease;
}

.profile-frame img.loading {
    opacity: 0;
}

.profile-caption {
    display: grid;
    gap: 0.2rem;
    margin-top: 0.9rem;
    padding: 0.9rem 0.4rem 0.25rem;
    border-top: 1px solid var(--border);
}

.profile-caption strong {
    font-size: 1.02rem;
}

.profile-caption span {
    color: var(--muted);
    font-size: 0.87rem;
}

/* Sections */
.section {
    padding: clamp(4.5rem, 9vw, 7.25rem) 0;
}

.section-alt {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-head {
    max-width: 820px;
    margin-bottom: 2.35rem;
}

.section-title {
    margin: 0.35rem 0 0.75rem;
    font-size: clamp(1.9rem, 4vw, 3.2rem);
    letter-spacing: -0.055em;
    max-width: 22ch;
}

.section-lead {
    max-width: 720px;
    color: var(--muted);
    font-size: 1rem;
}

.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: clamp(1.25rem, 3vw, 2.1rem);
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: 1.45fr 0.9fr;
    gap: 1.25rem;
    align-items: start;
}

.about-copy p {
    margin-bottom: 1rem;
    max-width: 70ch;
    color: var(--text-soft);
}

.about-copy p:last-child {
    margin-bottom: 0;
}

.about-facts {
    display: grid;
    gap: 0.75rem;
    align-content: start;
    padding: 1rem;
}

.fact {
    padding: 0.95rem;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface-2);
}

.fact span {
    display: block;
    margin-bottom: 0.22rem;
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.fact strong {
    font-size: 0.97rem;
    line-height: 1.45;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.card,
.work-card,
.interest-card,
.timeline-item,
.education-card,
.future-box,
.contact-info,
.social-list,
.quote-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.feature-card {
    position: relative;
    padding: 1.35rem;
    overflow: hidden;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    margin-bottom: 0.95rem;
    border: 1px solid rgba(201, 164, 104, 0.22);
    border-radius: 15px;
    background: var(--accent-soft);
    color: var(--accent-strong);
}

.icon svg {
    width: 23px;
    height: 23px;
}

.feature-card h3,
.work-card h3,
.interest-card h3,
.timeline-item h3,
.education-card h3,
.contact-info h3 {
    margin-bottom: 0.42rem;
    font-size: 1.1rem;
    letter-spacing: -0.025em;
}

.feature-card p,
.work-card p,
.interest-card p,
.timeline-item p,
.about-copy p,
.panel p {
    color: var(--muted);
}

/* Work */
.filter-bar {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.32rem;
    margin-bottom: 1.35rem;
    padding: 0.32rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--surface);
}

.filter-btn {
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius-pill);
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 800;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.filter-btn.active {
    background: var(--accent);
    color: #111;
}

.filter-btn:not(.active):hover {
    color: var(--text);
    background: var(--accent-soft);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.work-card {
    display: flex;
    flex-direction: column;
    min-height: 220px;
    padding: 1.35rem;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.work-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.95rem;
}

.work-category {
    color: var(--accent-strong);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.work-number {
    color: var(--border-strong);
    font-size: 2.3rem;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.06em;
}

.work-card p {
    margin-bottom: 1rem;
}

.work-empty {
    padding: 2rem;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-lg);
    color: var(--muted);
    background: var(--surface);
}

/* Experience */
.experience-card {
    padding: clamp(1.3rem, 3vw, 2.1rem);
}

.experience-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding-bottom: 1.1rem;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid var(--border);
}

.experience-top h3 {
    font-size: 1.3rem;
}

.role {
    color: var(--accent-strong);
    font-weight: 700;
}

.badge {
    padding: 0.42rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 650;
    white-space: nowrap;
}

.checked-list,
.clean-list,
.status-grid {
    display: grid;
    gap: 0.65rem;
}

.checked-list {
    grid-template-columns: repeat(2, 1fr);
}

.checked-list li,
.clean-list li,
.status-grid li {
    position: relative;
    padding: 0.82rem 1rem 0.82rem 2.25rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface-2);
    color: var(--text-soft);
}

.checked-list li::before,
.clean-list li::before,
.status-grid li::before {
    content: "";
    position: absolute;
    left: 0.95rem;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

/* Split */
.split-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 1.25rem;
    align-items: start;
}

.clean-list {
    padding: 1rem;
}

/* Timeline */
.timeline {
    display: grid;
    gap: 0.9rem;
    max-width: 880px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 0.95rem;
    align-items: start;
    padding: 1.25rem;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.timeline-dot {
    width: 13px;
    height: 13px;
    margin-top: 0.35rem;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 5px var(--accent-soft);
}

.timeline-date {
    display: inline-block;
    margin-bottom: 0.32rem;
    color: var(--accent-strong);
    font-size: 0.87rem;
    font-weight: 800;
}

/* Education */
.education-card {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    max-width: 800px;
}

.education-card .icon {
    margin-bottom: 0;
    width: 54px;
    height: 54px;
    flex: 0 0 auto;
}

.education-card p {
    margin-bottom: 0.22rem;
}

.education-card strong {
    color: var(--accent-strong);
}

/* Interests */
.interest-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.interest-card {
    padding: 1.25rem;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.interest-card::before {
    content: "";
    display: block;
    width: 9px;
    height: 9px;
    margin-bottom: 0.75rem;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 5px var(--accent-soft);
}

/* Quote */
.quote-card {
    max-width: 900px;
    margin-inline: auto;
    text-align: center;
    padding: clamp(1.9rem, 5vw, 3.2rem);
}

.quote-card::before {
    content: "“";
    display: block;
    margin-bottom: 0.45rem;
    color: var(--accent-strong);
    font-size: 4.2rem;
    line-height: 0.8;
    font-family: Georgia, serif;
}

.quote-card p {
    max-width: 760px;
    margin: 0 auto 1.1rem;
    color: var(--text);
    font-size: clamp(1.12rem, 2.3vw, 1.65rem);
    line-height: 1.55;
    letter-spacing: -0.03em;
}

.quote-motto {
    display: block;
    margin-bottom: 0.7rem;
    color: var(--accent-strong);
    font-size: 0.86rem;
    font-weight: 900;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.quote-card cite {
    color: var(--muted);
    font-style: normal;
}

/* Status */
.status-grid {
    grid-template-columns: repeat(3, 1fr);
}

/* Future */
.future-box {
    max-width: 860px;
    border-left: 4px solid var(--accent);
}

.future-box p {
    color: var(--text-soft);
    font-size: 1.03rem;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    align-items: start;
}

.contact-info h3 {
    font-size: 1.45rem;
}

.contact-line {
    color: var(--muted);
}

.contact-line strong {
    color: var(--accent-strong);
}

.contact-role {
    display: inline-block;
    margin-top: 0.65rem;
    color: var(--text-soft);
    font-weight: 700;
}

.contact-social-title {
    margin-top: 0.95rem;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.social-list {
    display: grid;
    gap: 0.65rem;
    padding: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 0.95rem;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface-2);
    color: var(--text-soft);
    font-weight: 700;
    transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.social-link:hover {
    border-color: var(--accent);
    color: var(--accent-strong);
}

.social-link svg {
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
    color: var(--accent-strong);
}

/* Footer */
.site-footer {
    padding-top: 2.8rem;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr 0.7fr 0.9fr;
    gap: 1.75rem;
    padding-bottom: 2.3rem;
}

.footer-brand .brand {
    margin-bottom: 0.9rem;
}

.footer-brand p {
    color: var(--muted);
}

.footer-motto {
    color: var(--accent-strong);
    font-weight: 700;
}

.footer-title {
    margin-bottom: 0.9rem;
    color: var(--accent-strong);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.footer-col ul {
    display: grid;
    gap: 0.5rem;
}

.footer-col a {
    color: var(--muted);
    transition: color 0.2s ease;
}

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

.footer-col .language-switch {
    margin-bottom: 0.75rem;
}

.footer-bottom {
    padding: 1.15rem 0;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--muted);
    font-size: 0.89rem;
}

/* Reveal */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

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

/* Hover only for devices that really hover */
@media (hover: hover) {
    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 18px 40px rgba(201, 164, 104, 0.24);
    }

    .btn-secondary:hover {
        transform: translateY(-2px);
        border-color: var(--accent);
        color: var(--accent-strong);
    }

    .feature-card:hover,
    .work-card:hover,
    .interest-card:hover,
    .timeline-item:hover {
        transform: translateY(-3px);
        border-color: rgba(201, 164, 104, 0.42);
        box-shadow: var(--shadow-hover);
    }

    .social-link:hover {
        transform: translateX(4px);
    }

    .profile-card:hover img {
        transform: scale(1.02);
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .interest-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1120px) {
    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: 16px;
        right: 16px;
        display: grid;
        gap: 0.35rem;
        padding: 1rem;
        border-radius: 22px;
        background: var(--surface);
        box-shadow: var(--shadow-hover);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-12px);
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    }

    .main-nav.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .main-nav a {
        padding: 0.88rem 1rem;
        border-radius: 16px;
        font-size: 1rem;
    }

    .menu-toggle {
        display: flex;
    }
}

@media (max-width: 1000px) {
    .card-grid,
    .work-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .hero-grid,
    .about-grid,
    .split-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        order: -1;
        max-width: 420px;
        margin-inline: auto;
    }

    .status-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .interest-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    :root {
        --header-height: 68px;
    }

    .container {
        width: min(100% - 24px, var(--container));
    }

    .brand-mark {
        width: 40px;
        height: 40px;
    }

    .brand-text strong {
        font-size: 0.83rem;
    }

    .brand-text small {
        display: none;
    }

    .card-grid,
    .work-grid,
    .interest-grid,
    .status-grid,
    .checked-list,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .filter-bar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        border-radius: 22px;
    }

    .filter-btn {
        text-align: center;
    }

    .experience-top {
        flex-direction: column;
    }

    .education-card {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 380px) {
    .lang-btn {
        padding: 0.35rem 0.5rem;
        font-size: 0.72rem;
    }

    .theme-toggle,
    .menu-toggle {
        width: 39px;
        height: 39px;
    }

    .hero-title {
        font-size: 2.4rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

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