/* ═══════════════════════════════
       DESIGN TOKENS
    ═══════════════════════════════ */

html {
    scroll-behavior: smooth;
}

:root {
    /* Backgrounds */
    --bg-page: #fdf9f2;
    --bg-surface: #ffffff;
    --bg-parchment: #f5ede0;
    --bg-navy: #0a1628;
    --bg-navy-mid: #122040;
    --bg-navy-lt: #1a3060;

    /* Text — crisp & high contrast */
    --tx-primary: #0a0f1a;
    --tx-secondary: #2c3a50;
    --tx-muted: #536175;
    --tx-on-dark: #f4ede0;
    --tx-on-dark-2: rgba(244, 237, 224, 0.72);

    /* Gold */
    --gold: #c9922a;
    --gold-lt: #e4b96a;
    --gold-dim: rgba(201, 146, 42, 0.14);

    /* Borders & shadows */
    --border: rgba(10, 22, 40, 0.1);
    --shadow-sm: 0 2px 10px rgba(10, 22, 40, 0.07);
    --shadow-md: 0 8px 32px rgba(10, 22, 40, 0.11);
    --shadow-lg: 0 24px 64px rgba(10, 22, 40, 0.16);

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.84);
    --glass-border: rgba(255, 255, 255, 0.6);

    /* Misc */
    --nav-h: 72px;
    --ease: cubic-bezier(0.23, 1, 0.32, 1);
    --tr: 0.4s var(--ease);
}

[data-theme="dark"] {
    /* Backgrounds */
    --bg-page: #0b1421;
    --bg-surface: #111d2e;
    --bg-parchment: #15233a;
    --bg-navy: #08111e;
    --bg-navy-mid: #0d1928;
    --bg-navy-lt: #14253d;

    /* Text — bright & vivid in dark */
    --tx-primary: #f0e8d8;
    --tx-secondary: #c8d4e0;
    --tx-muted: #8fa3bc;
    --tx-on-dark: #f4ede0;
    --tx-on-dark-2: rgba(244, 237, 224, 0.75);

    /* Gold — slightly brighter in dark */
    --gold: #e4b96a;
    --gold-lt: #f5d08a;
    --gold-dim: rgba(228, 185, 106, 0.13);

    /* Borders & shadows */
    --border: rgba(228, 185, 106, 0.14);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.6);

    /* Glassmorphism */
    --glass-bg: rgba(11, 20, 33, 0.92);
    --glass-border: rgba(228, 185, 106, 0.2);
}

/* ═══════════════════════════════
       RESET
    ═══════════════════════════════ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    font-size: 16px;
}
body {
    font-family: "DM Sans", sans-serif;
    background: var(--bg-page);
    color: var(--tx-primary);
    line-height: 1.7;
    overflow-x: hidden;
    transition:
        background 0.5s var(--ease),
        color 0.5s var(--ease);
}
img {
    max-width: 100%;
    display: block;
}
a {
    text-decoration: none;
}
ul {
    list-style: none;
}

/* Reveal animations used across frontend (add 'reveal' class to elements) */
.reveal {
    opacity: 0;
    transform: translateY(18px) scale(0.995);
    transition:
        opacity 0.6s cubic-bezier(0.22, 0.9, 0.26, 1),
        transform 0.6s cubic-bezier(0.22, 0.9, 0.26, 1);
    will-change: opacity, transform;
}
.reveal.in-view {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.reveal.fade {
    transform: none;
}

/* Admin layout fixes: keep sidebar fixed and main content scrollable to avoid overflow */
.app-sidebar {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    width: 260px;
    height: calc(100vh - var(--nav-h));
    overflow-y: auto;
    z-index: 1020;
    padding-bottom: 2rem;
}
.app-main {
    margin-left: 260px;
    padding: 2rem 1.25rem 4rem;
    transition: margin 0.25s var(--ease);
}
.app-sidebar,
.app-main {
    will-change: transform, margin;
}

/* Collapsed sidebar state (toggle with `.sidebar-collapsed` on body) */
body.sidebar-collapsed .app-sidebar {
    width: 72px;
}
body.sidebar-collapsed .app-sidebar .sidebar-brand .brand-text {
    display: none;
}
body.sidebar-collapsed .app-sidebar .nav-link {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
}
body.sidebar-collapsed .app-main {
    margin-left: 72px;
}
@media (max-width: 991px) {
    .app-sidebar {
        position: relative;
        width: 100%;
        top: 0;
        height: auto;
    }
    .app-main {
        margin-left: 0;
        padding-top: 1rem;
    }
}

/* Subtle homepage visual polish */
.hero {
    padding: 4rem 0;
    border-radius: 12px;
    background: linear-gradient(
        180deg,
        rgba(13, 110, 253, 0.06),
        rgba(14, 165, 233, 0.03)
    );
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.06);
}
.btn-primary,
.btn-primary:focus {
    background: linear-gradient(90deg, #0d6efd, #06b6d4);
    border: none;
    box-shadow: 0 8px 24px rgba(7, 89, 133, 0.12);
}
.container-max {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

/* ═══════════════════════════════
       SCROLL PROGRESS
    ═══════════════════════════════ */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-lt));
    width: 0%;
    transition: width 0.1s linear;
    box-shadow: 0 0 14px var(--gold);
}

/* ═══════════════════════════════
       BACK TO TOP
    ═══════════════════════════════ */
#back-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 900;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--gold);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(201, 146, 42, 0.45);
    opacity: 0;
    pointer-events: none;
    transform: translateY(14px);
    transition:
        opacity 0.35s,
        transform 0.35s var(--ease),
        box-shadow 0.25s;
}
#back-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
#back-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(201, 146, 42, 0.55);
}
#back-top svg {
    width: 18px;
    height: 18px;
    stroke: #fff;
    stroke-width: 2.5;
    fill: none;
}

/* ═══════════════════════════════
       NAV
    ═══════════════════════════════ */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-h);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    background: var(--glass-bg);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
    transition:
        background 0.5s var(--ease),
        border-color 0.5s var(--ease),
        box-shadow 0.5s var(--ease);
}
.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 48px);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 600;
    color: var(--tx-primary);
    letter-spacing: 0.02em;
    transition: color 0.3s;
}
.nav-logo span {
    color: var(--gold);
}
.nav-links {
    display: flex;
    gap: clamp(16px, 3vw, 36px);
    align-items: center;
}
.nav-links a {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--tx-secondary);
    position: relative;
    transition: color 0.25s;
}
.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--gold);
    transition: width 0.3s var(--ease);
}
.nav-links a:hover,
.nav-links a.active {
    color: var(--gold);
}
.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}
.nav-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Theme toggle */
.theme-btn {
    width: 46px;
    height: 25px;
    border-radius: 13px;
    border: 1.5px solid var(--border);
    cursor: pointer;
    background: var(--gold-dim);
    position: relative;
    display: flex;
    align-items: center;
    padding: 3px;
    transition:
        background 0.3s,
        border-color 0.3s;
    flex-shrink: 0;
}
.theme-btn::before {
    content: "";
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: var(--gold);
    position: absolute;
    left: 3px;
    transition: transform 0.35s var(--ease);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
[data-theme="dark"] .theme-btn::before {
    transform: translateX(21px);
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    width: 28px;
    padding: 4px;
}
.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--tx-primary);
    border-radius: 1px;
    transition: all 0.3s;
}
.nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ═══════════════════════════════
       HERO
    ═══════════════════════════════ */
.hero {
    min-height: 100vh;
    background: linear-gradient(
        145deg,
        var(--bg-navy) 0%,
        var(--bg-navy-mid) 45%,
        var(--bg-navy-lt) 100%
    );
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: calc(var(--nav-h)+60px) clamp(20px, 5vw, 80px) 100px;
}
.hero-bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: floatOrb 9s ease-in-out infinite;
    pointer-events: none;
}
.hero-bg-orb:nth-child(1) {
    width: 600px;
    height: 600px;
    top: -200px;
    right: -200px;
    background: radial-gradient(
        circle,
        rgba(201, 146, 42, 0.2),
        transparent 70%
    );
}
.hero-bg-orb:nth-child(2) {
    width: 420px;
    height: 420px;
    bottom: -100px;
    left: -100px;
    background: radial-gradient(
        circle,
        rgba(201, 146, 42, 0.12),
        transparent 70%
    );
    animation-delay: -4.5s;
}
.hero-bg-orb:nth-child(3) {
    width: 320px;
    height: 320px;
    top: 50%;
    left: 38%;
    background: radial-gradient(
        circle,
        rgba(80, 140, 255, 0.1),
        transparent 70%
    );
    animation-delay: -2s;
}
@keyframes floatOrb {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(28px, -28px) scale(1.06);
    }
}
.hero-grid-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.035;
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 60px,
            rgba(255, 255, 255, 0.7) 60px,
            rgba(255, 255, 255, 0.7) 61px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 60px,
            rgba(255, 255, 255, 0.7) 60px,
            rgba(255, 255, 255, 0.7) 61px
        );
}
.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: clamp(32px, 5vw, 80px);
    align-items: center;
    position: relative;
    z-index: 2;
}
.hero-photo-wrap {
    position: relative;
    flex-shrink: 0;
}
.hero-photo-ring {
    position: absolute;
    inset: -14px;
    border-radius: 50%;
    border: 1px solid rgba(201, 146, 42, 0.35);
    animation: spinRing 22s linear infinite;
}
.hero-photo-ring::before {
    content: "";
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold-lt);
    box-shadow: 0 0 14px var(--gold-lt);
}
@keyframes spinRing {
    from {
        transform: rotate(0);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Hero photo placeholder — glowing initials */
.hero-photo-placeholder {
    width: clamp(150px, 18vw, 220px);
    height: clamp(150px, 18vw, 220px);
    border-radius: 50%;
    background: linear-gradient(135deg, #122040, #1e3a6e);
    box-shadow:
        0 0 0 4px rgba(201, 146, 42, 0.45),
        0 0 40px rgba(201, 146, 42, 0.2),
        var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 400;
    color: #f0cc8a;
    letter-spacing: 0.04em;
    text-shadow: 0 0 24px rgba(228, 185, 106, 0.6);
    position: relative;
    z-index: 1;
    animation: glowInitials 4s ease-in-out infinite;
}
@keyframes glowInitials {
    0%,
    100% {
        text-shadow: 0 0 24px rgba(228, 185, 106, 0.6);
    }
    50% {
        text-shadow:
            0 0 40px rgba(228, 185, 106, 0.95),
            0 0 80px rgba(228, 185, 106, 0.35);
    }
}

/* Hero text */
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(201, 146, 42, 0.14);
    border: 1px solid rgba(201, 146, 42, 0.32);
    padding: 6px 18px;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: #f0cc8a;
    margin-bottom: 20px;
    animation: fadeSlideUp 0.8s var(--ease) both;
}
.hero-eyebrow::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #f0cc8a;
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.45;
        transform: scale(0.7);
    }
}
.hero-name {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2.4rem, 5vw, 4.4rem);
    font-weight: 300;
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    color: #ffffff;
    animation: fadeSlideUp 0.8s 0.12s var(--ease) both;
}
.hero-name strong {
    font-weight: 600;
    color: #f5d08a;
}
.hero-title {
    font-size: clamp(0.82rem, 1.5vw, 0.95rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.58);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 22px;
    animation: fadeSlideUp 0.8s 0.22s var(--ease) both;
}
.hero-desc {
    font-size: clamp(0.88rem, 1.5vw, 1.02rem);
    color: rgba(255, 255, 255, 0.78); /* bright on dark bg */
    max-width: 560px;
    line-height: 1.85;
    margin-bottom: 32px;
    animation: fadeSlideUp 0.8s 0.32s var(--ease) both;
}
.badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    animation: fadeSlideUp 0.8s 0.44s var(--ease) both;
}
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(201, 146, 42, 0.13);
    border: 1px solid rgba(201, 146, 42, 0.28);
    color: #f0cc8a;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 6px 15px;
    border-radius: 100px;
    backdrop-filter: blur(8px);
    transition:
        background 0.3s,
        border-color 0.3s;
}
.badge:hover {
    background: rgba(201, 146, 42, 0.22);
    border-color: rgba(201, 146, 42, 0.5);
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.38);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    z-index: 2;
    animation: scrollBounce 2.2s ease-in-out infinite;
}
.hero-scroll-line {
    width: 1px;
    height: 38px;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(201, 146, 42, 0.65)
    );
}
@keyframes scrollBounce {
    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(9px);
    }
}
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ═══════════════════════════════
       ACCENT BAR
    ═══════════════════════════════ */
.accent-bar {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ═══════════════════════════════
       LAYOUT
    ═══════════════════════════════ */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 48px);
}
.section {
    padding: clamp(60px, 9vw, 104px) 0;
    position: relative;
}
.section + .section {
    border-top: 1px solid var(--border);
}

.section-header {
    margin-bottom: clamp(36px, 5vw, 56px);
}
.section-eyebrow {
    display: inline-block;
    font-size: 0.67rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 10px;
}
.section-title {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(1.9rem, 3.5vw, 2.9rem);
    font-weight: 500;
    color: var(--tx-primary); /* ← uses high-contrast token */
    line-height: 1.12;
    position: relative;
    padding-bottom: 20px;
    transition: color 0.5s;
}
.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 48px;
    height: 2px;
    background: var(--gold);
    border-radius: 1px;
    transition: width 0.5s var(--ease);
}
.section-header:hover .section-title::after {
    width: 80px;
}

/* ═══════════════════════════════
       ABOUT
    ═══════════════════════════════ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(20px, 3vw, 32px);
}
.about-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: clamp(24px, 3vw, 38px);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition:
        transform var(--tr),
        box-shadow var(--tr),
        background 0.5s;
}
.about-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2.5px;
    background: linear-gradient(
        90deg,
        var(--gold),
        var(--gold-lt),
        transparent
    );
    opacity: 0;
    transition: opacity var(--tr);
}
.about-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.about-card:hover::before {
    opacity: 1;
}
.about-card h4 {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--tx-primary); /* high contrast */
    margin-bottom: 14px;
    transition: color 0.5s;
}
.about-card p {
    font-size: 0.9rem;
    color: var(--tx-secondary);
    line-height: 1.85;
    transition: color 0.5s;
}
.info-row {
    display: flex;
    gap: 10px;
    margin-bottom: 11px;
    font-size: 0.87rem;
    color: var(--tx-secondary);
    align-items: flex-start;
    transition: color 0.5s;
}
.info-label {
    font-weight: 600;
    color: var(--tx-primary); /* vivid */
    min-width: 90px;
    flex-shrink: 0;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    transition: color 0.5s;
}

/* ═══════════════════════════════
       PHD HIGHLIGHT
    ═══════════════════════════════ */
.phd-highlight {
    background: linear-gradient(135deg, var(--bg-parchment), var(--bg-page));
    border: 1px solid rgba(201, 146, 42, 0.38);
    border-radius: 20px;
    padding: clamp(24px, 3vw, 42px);
    margin: 0 0 clamp(36px, 5vw, 60px);
    display: flex;
    gap: clamp(20px, 3vw, 34px);
    align-items: flex-start;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    transition:
        background 0.5s,
        border-color 0.5s,
        transform var(--tr),
        box-shadow var(--tr);
}
.phd-highlight:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.phd-highlight::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--gold), var(--gold-lt));
}
.phd-highlight::after {
    content: "";
    position: absolute;
    top: -60px;
    right: -40px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(201, 146, 42, 0.08),
        transparent 70%
    );
    pointer-events: none;
}
.phd-icon-wrap {
    width: 66px;
    height: 66px;
    border-radius: 17px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--gold), var(--gold-lt));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    box-shadow: 0 10px 28px rgba(201, 146, 42, 0.35);
    animation: iconPop 0.6s var(--ease) both;
}
@keyframes iconPop {
    from {
        opacity: 0;
        transform: scale(0.6) rotate(-8deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}
.phd-content h3 {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(1rem, 1.8vw, 1.28rem);
    font-weight: 600;
    color: var(--tx-primary);
    margin-bottom: 8px;
    transition: color 0.5s;
}
.phd-content p {
    font-size: 0.87rem;
    color: var(--tx-secondary);
    line-height: 1.75;
    transition: color 0.5s;
}
.phd-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--gold);
    color: #fff;
    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    padding: 4px 13px;
    border-radius: 100px;
    margin-bottom: 10px;
    box-shadow: 0 4px 14px rgba(201, 146, 42, 0.38);
}

/* ═══════════════════════════════
       TIMELINE
    ═══════════════════════════════ */
.timeline-v2 {
    display: flex;
    flex-direction: column;
}
.tl-row {
    display: grid;
    grid-template-columns: 130px 42px 1fr;
    gap: 0 clamp(12px, 2vw, 24px);
    position: relative;
}
.tl-left {
    text-align: right;
    padding-top: 9px;
    padding-right: 8px;
}
.tl-left .yr {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--gold);
    display: block;
}
.tl-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}
.tl-dot2 {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 2.5px solid var(--gold);
    flex-shrink: 0;
    margin-top: 11px;
    z-index: 1;
    transition: all 0.3s;
}
.tl-dot2.a {
    background: var(--gold);
    box-shadow:
        0 0 0 4px var(--gold-dim),
        0 0 12px var(--gold);
    animation: dotPulse 2.5s ease-in-out infinite;
}
@keyframes dotPulse {
    0%,
    100% {
        box-shadow:
            0 0 0 4px var(--gold-dim),
            0 0 12px var(--gold);
    }
    50% {
        box-shadow:
            0 0 0 8px rgba(201, 146, 42, 0.06),
            0 0 20px var(--gold);
    }
}
.tl-line {
    width: 1px;
    flex: 1;
    min-height: 20px;
    background: linear-gradient(to bottom, var(--gold) 0%, var(--border) 100%);
}
.tl-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: clamp(16px, 2vw, 26px);
    box-shadow: var(--shadow-sm);
    margin-bottom: clamp(16px, 2vw, 24px);
    position: relative;
    overflow: hidden;
    transition:
        transform var(--tr),
        box-shadow var(--tr),
        background 0.5s;
}
.tl-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--gold), var(--gold-lt));
    opacity: 0;
    transition: opacity 0.3s;
}
.tl-card:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow-md);
}
.tl-card:hover::before {
    opacity: 1;
}
.tl-card .role {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(1rem, 1.5vw, 1.18rem);
    font-weight: 600;
    color: var(--tx-primary);
    margin-bottom: 5px;
    transition: color 0.5s;
}
.tl-card .place {
    font-size: 0.84rem;
    color: var(--tx-muted);
    transition: color 0.5s;
}

/* ═══════════════════════════════
       POSITIONS GRID
    ═══════════════════════════════ */
.pos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}
.pos-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-left: 3.5px solid var(--gold);
    border-radius: 12px;
    padding: 20px 22px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition:
        transform var(--tr),
        box-shadow var(--tr),
        background 0.5s;
}
.pos-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: linear-gradient(
        135deg,
        rgba(201, 146, 42, 0.04),
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.3s;
}
.pos-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.pos-card:hover::after {
    opacity: 1;
}
.pos-card h4 {
    font-size: 0.89rem;
    font-weight: 600;
    color: var(--tx-primary);
    margin-bottom: 6px;
    line-height: 1.45;
    transition: color 0.5s;
}
.pos-card p {
    font-size: 0.78rem;
    color: var(--tx-muted);
    transition: color 0.5s;
}

/* ═══════════════════════════════
       EDUCATION
    ═══════════════════════════════ */
.edu-list {
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 2vw, 24px);
}
.edu-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: clamp(16px, 2vw, 24px);
    align-items: start;
}
.edu-year-box {
    background: linear-gradient(135deg, var(--bg-navy-mid), var(--bg-navy-lt));
    color: var(--gold-lt);
    font-weight: 700;
    font-size: 0.78rem;
    padding: clamp(8px, 1.5vw, 13px) clamp(12px, 2vw, 18px);
    border-radius: 10px;
    text-align: center;
    min-width: 74px;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
    line-height: 1.35;
    transition: transform 0.3s var(--ease);
}
.edu-item:hover .edu-year-box {
    transform: scale(1.06);
}
[data-theme="dark"] .edu-year-box {
    background: linear-gradient(
        135deg,
        rgba(228, 185, 106, 0.15),
        rgba(228, 185, 106, 0.08)
    );
    border: 1px solid rgba(228, 185, 106, 0.22);
    color: var(--gold-lt);
}
.edu-body {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 13px;
    padding: clamp(16px, 2vw, 24px);
    box-shadow: var(--shadow-sm);
    transition:
        transform var(--tr),
        box-shadow var(--tr),
        background 0.5s;
    position: relative;
    overflow: hidden;
}
.edu-body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}
.edu-body:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.edu-body:hover::before {
    opacity: 1;
}
.edu-body h4 {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(0.95rem, 1.5vw, 1.12rem);
    font-weight: 600;
    color: var(--tx-primary);
    margin-bottom: 5px;
    transition: color 0.5s;
}
.edu-body p {
    font-size: 0.84rem;
    color: var(--tx-secondary);
    transition: color 0.5s;
}

/* ═══════════════════════════════
       PUBLICATION
    ═══════════════════════════════ */
.pub-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: clamp(24px, 3vw, 38px);
    box-shadow: var(--shadow-sm);
    max-width: 700px;
    display: flex;
    gap: 22px;
    align-items: flex-start;
    transition:
        transform var(--tr),
        box-shadow var(--tr),
        background 0.5s;
    position: relative;
    overflow: hidden;
}
.pub-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2.5px;
    background: linear-gradient(
        90deg,
        var(--gold),
        var(--gold-lt),
        transparent
    );
    opacity: 0;
    transition: opacity 0.3s;
}
.pub-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.pub-card:hover::before {
    opacity: 1;
}
.pub-icon {
    width: 54px;
    height: 54px;
    border-radius: 13px;
    flex-shrink: 0;
    background: var(--gold-dim);
    border: 1px solid rgba(201, 146, 42, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: transform 0.4s var(--ease);
}
.pub-card:hover .pub-icon {
    transform: rotate(-6deg) scale(1.1);
}
.pub-body h4 {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(1rem, 1.6vw, 1.18rem);
    font-weight: 600;
    color: var(--tx-primary);
    margin-bottom: 9px;
    line-height: 1.45;
    transition: color 0.5s;
}
.pub-body p {
    font-size: 0.87rem;
    color: var(--tx-secondary);
    line-height: 1.75;
    transition: color 0.5s;
}

/* ═══════════════════════════════
       GALLERY
    ═══════════════════════════════ */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(12px, 2vw, 22px);
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
    transition:
        box-shadow var(--tr),
        transform var(--tr);
}
.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.gallery-item img {
    width: 100%;
    height: clamp(180px, 22vw, 265px);
    object-fit: cover;
    display: block;
    border-radius: 18px;
    transition: transform 0.65s var(--ease);
    background: var(--bg-parchment);
}
.gallery-item:hover img {
    transform: scale(1.06);
}
.gallery-overlay {
    position: absolute;
    inset: 0;
    border-radius: 18px;
    background: linear-gradient(
        to top,
        rgba(8, 17, 30, 0.88) 0%,
        transparent 55%
    );
    opacity: 0;
    transition: opacity var(--tr);
    display: flex;
    align-items: flex-end;
    padding: 20px;
}
.gallery-item:hover .gallery-overlay {
    opacity: 1;
}
.gallery-overlay-text {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transform: translateY(8px);
    transition: transform 0.4s var(--ease);
}
.gallery-item:hover .gallery-overlay-text {
    transform: translateY(0);
}
.gallery-caption {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-align: center;
    padding: 10px 4px 0;
    color: var(--tx-muted);
    transition: color 0.5s;
    font-family: var(--font-display);
}

/* ═══════════════════════════════
       QUOTE
    ═══════════════════════════════ */
.quote-section {
    background: linear-gradient(
        145deg,
        var(--bg-navy) 0%,
        var(--bg-navy-mid) 60%,
        var(--bg-navy-lt) 100%
    );
    padding: clamp(60px, 9vw, 100px) clamp(24px, 5vw, 80px);
    position: relative;
    overflow: hidden;
    margin: 0;
}
.quote-section::before {
    content: "\201C";
    position: absolute;
    top: -40px;
    left: clamp(20px, 5vw, 60px);
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(200px, 25vw, 320px);
    color: rgba(201, 146, 42, 0.055);
    line-height: 1;
    pointer-events: none;
}
.quote-inner {
    max-width: 880px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}
.quote-marks {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(3rem, 6vw, 5rem);
    color: var(--gold);
    line-height: 0.5;
    margin-bottom: clamp(16px, 2vw, 26px);
    display: block;
}
blockquote {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(1.15rem, 2.5vw, 1.65rem);
    font-style: italic;
    font-weight: 300;
    color: #f0e8d8; /* crisp warm white — always readable on dark bg */
    line-height: 1.75;
    margin-bottom: clamp(16px, 2vw, 24px);
}
cite {
    font-size: 0.77rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #e4b96a; /* gold — always vivid on dark */
    display: block;
}

/* ═══════════════════════════════
       CONTACT
    ═══════════════════════════════ */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(16px, 2vw, 24px);
}
.contact-card {
    background: linear-gradient(145deg, var(--bg-navy), var(--bg-navy-mid));
    border-radius: 22px;
    padding: clamp(26px, 3vw, 38px);
    text-align: center;
    border: 1px solid rgba(201, 146, 42, 0.17);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    transition:
        transform var(--tr),
        box-shadow var(--tr);
}
.contact-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 22px;
    background: radial-gradient(
        circle at 50% -10%,
        rgba(201, 146, 42, 0.12),
        transparent 65%
    );
    opacity: 0;
    transition: opacity var(--tr);
}
.contact-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(201, 146, 42, 0.3),
        transparent
    );
}
.contact-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow-lg);
}
.contact-card:hover::before {
    opacity: 1;
}
.contact-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin: 0 auto 17px;
    background: rgba(201, 146, 42, 0.16);
    border: 1.5px solid rgba(201, 146, 42, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    box-shadow: 0 0 22px rgba(201, 146, 42, 0.22);
    transition:
        transform 0.4s var(--ease),
        box-shadow 0.4s;
}
.contact-card:hover .contact-icon-wrap {
    transform: scale(1.12) rotate(-5deg);
    box-shadow: 0 0 34px rgba(201, 146, 42, 0.4);
}
.contact-card h4 {
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #f0cc8a; /* always vivid gold on dark cards */
    margin-bottom: 9px;
}
.contact-card p {
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.78); /* bright on dark */
    line-height: 1.65;
    word-break: break-word;
}

/* ═══════════════════════════════
       FOOTER
    ═══════════════════════════════ */
footer {
    background: var(--bg-navy);
    padding: clamp(36px, 5vw, 60px) clamp(20px, 4vw, 48px);
    text-align: center;
}
.footer-inner {
    max-width: 900px;
    margin: 0 auto;
}
.footer-name {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.25rem;
    font-weight: 500;
    color: #e4b96a;
    margin-bottom: 8px;
}
.footer-details {
    font-size: 0.77rem;
    color: rgba(255, 255, 255, 0.38);
    line-height: 1.85;
}
.footer-divider {
    width: 60px;
    height: 1px;
    background: rgba(201, 146, 42, 0.32);
    margin: 16px auto;
}

/* ═══════════════════════════════
       REVEAL ANIMATIONS
    ═══════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition:
        opacity 0.75s var(--ease),
        transform 0.75s var(--ease);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-left {
    opacity: 0;
    transform: translateX(-36px);
    transition:
        opacity 0.75s var(--ease),
        transform 0.75s var(--ease);
}
.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ═══════════════════════════════
       COUNTER STAT STRIP
    ═══════════════════════════════ */
.stat-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin: clamp(32px, 4vw, 56px) 0;
}
.stat-item {
    padding: clamp(22px, 3vw, 36px) clamp(12px, 2vw, 24px);
    text-align: center;
    position: relative;
    transition: background 0.3s;
}
.stat-item + .stat-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 20%;
    bottom: 20%;
    width: 1px;
    background: var(--border);
}
.stat-item:hover {
    background: var(--gold-dim);
    border-radius: 4px;
}
.stat-number {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    color: var(--gold);
    line-height: 1;
    display: block;
    margin-bottom: 6px;
}
.stat-label {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--tx-muted);
}

/* ═══════════════════════════════
       MOBILE
    ═══════════════════════════════ */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: var(--nav-h);
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--glass-bg);
        backdrop-filter: blur(28px);
        -webkit-backdrop-filter: blur(28px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        transform: translateX(-100%);
        transition: transform var(--tr);
        z-index: 999;
    }
    .nav-links.open {
        transform: translateX(0);
    }
    .nav-links a {
        font-size: 1.1rem;
        letter-spacing: 0.1em;
    }
    .nav-toggle {
        display: flex;
    }
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }
    .hero-photo-wrap {
        order: -1;
    }
    .hero-desc {
        margin: 0 auto 32px;
    }
    .badge-row {
        justify-content: center;
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
    .gallery {
        grid-template-columns: 1fr 1fr;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .timeline-v2 .tl-row {
        grid-template-columns: 0 0 1fr;
    }
    .tl-left,
    .tl-center {
        display: none;
    }
    .tl-card {
        border-left: 3.5px solid var(--gold);
    }
    .edu-item {
        grid-template-columns: 1fr;
    }
    .edu-year-box {
        width: fit-content;
    }
    .stat-strip {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .gallery {
        grid-template-columns: 1fr;
    }
    .pos-grid {
        grid-template-columns: 1fr;
    }
    #back-top {
        bottom: 20px;
        right: 20px;
    }
    .stat-strip {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ═══════════════════════════════
   HEADER / NAVBAR — MOBILE
═══════════════════════════════ */

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-h);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    background: var(--glass-bg);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
    transition:
        background 0.5s,
        border-color 0.5s;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 48px);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(0.95rem, 2vw, 1.18rem);
    font-weight: 600;
    color: var(--tx-primary);
    letter-spacing: 0.02em;
    white-space: nowrap;
    transition: color 0.3s;
}
.nav-logo span {
    color: var(--gold);
}

/* Desktop nav links */
.nav-links {
    display: flex;
    gap: clamp(14px, 2.5vw, 32px);
    align-items: center;
}
.nav-links a {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--tx-secondary);
    position: relative;
    padding: 6px 2px;
    transition: color 0.25s;
    -webkit-tap-highlight-color: transparent;
}
.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--gold);
    transition: width 0.3s;
}
.nav-links a:hover,
.nav-links a.active {
    color: var(--gold);
}
.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* BUTTON STYLES — Theme toggle */
.theme-btn {
    width: 46px;
    height: 26px;
    border-radius: 13px;
    border: 1.5px solid var(--border);
    cursor: pointer;
    background: var(--gold-dim);
    position: relative;
    display: flex;
    align-items: center;
    padding: 3px;
    flex-shrink: 0;
    transition:
        background 0.3s,
        border-color 0.3s;
    -webkit-tap-highlight-color: transparent;
}
.theme-btn::before {
    content: "";
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--gold);
    position: absolute;
    left: 3px;
    transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
[data-theme="dark"] .theme-btn::before {
    transform: translateX(20px);
}

/* BUTTON STYLES — Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    -webkit-tap-highlight-color: transparent;
}
.nav-toggle:hover {
    background: var(--gold-dim);
}
.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--tx-primary);
    border-radius: 2px;
    transition:
        transform 0.3s,
        opacity 0.3s,
        background 0.3s;
}

/* Hamburger → X animation */
.nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ═══════════════════════════════
   MOBILE RESPONSIVE — NAVBAR
═══════════════════════════════ */

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    /* Full-screen mobile menu */
    .nav-links {
        position: fixed;
        top: var(--nav-h);
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 10px;

        /* IMPORTANT: পরিষ্কার backdrop blur + bg */
        background: var(--glass-bg);
        backdrop-filter: blur(32px) saturate(200%);
        -webkit-backdrop-filter: blur(32px) saturate(200%);
        border-top: 1px solid var(--glass-border);

        /* Slide-in from left */
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
        z-index: 999;
    }

    .nav-links.open {
        transform: translateX(0);
    }

    /* মোবাইলে বড় ও ক্লিকযোগ্য লিঙ্ক */
    .nav-links li {
        width: 100%;
        max-width: 280px;
    }

    .nav-links a {
        display: block;
        width: 100%;
        font-size: 1rem;
        font-weight: 500;
        letter-spacing: 0.12em;
        text-align: center;
        padding: 14px 24px;
        border-radius: 10px;
        border: 1px solid transparent;
        transition:
            background 0.2s,
            border-color 0.2s,
            color 0.2s;
    }

    .nav-links a:hover,
    .nav-links a.active {
        background: var(--gold-dim);
        border-color: rgba(201, 146, 42, 0.25);
        color: var(--gold);
    }

    /* active underline লাইন মোবাইলে সরানো */
    .nav-links a::after {
        display: none;
    }

    /* Divider — লিঙ্কগুলোর মাঝে হালকা বিভাজন */
    .nav-links li + li {
        border-top: 1px solid var(--border);
    }
}

/* ═══════════════════════════════
   HERO — NAVBAR OVERLAP FIX
═══════════════════════════════ */

.hero {
    padding-top: calc(var(--nav-h) + 60px);
}

@media (max-width: 768px) {
    .hero {
        padding-top: calc(var(--nav-h) + 40px);
        min-height: 100svh;
    }

    /* Photo + content — column layout, centered */
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
        gap: 28px;
    }

    .hero-photo-wrap {
        order: -1;
    }

    .hero-photo,
    .hero-photo-placeholder {
        width: 160px;
        height: 160px;
    }

    .hero-desc {
        margin: 0 auto 28px;
    }

    .badge-row {
        justify-content: center;
    }

    .hero-scroll {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: calc(var(--nav-h) + 28px);
    }

    .hero-photo,
    .hero-photo-placeholder {
        width: 140px;
        height: 140px;
    }
}

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 80px 20px;
}

.hero-inner {
    width: 100%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 70px;
    position: relative;
    z-index: 2;
}

.hero-photo-wrap {
    position: relative;
    flex-shrink: 0;
}

.hero-photo-ring {
    position: absolute;
    inset: -15px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6, #06b6d4);
    z-index: -1;
    filter: blur(10px);
    opacity: 0.7;
}

.hero-photo {
    width: 280px;
    height: 280px;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    border: 6px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.25),
        0 0 30px rgba(59, 130, 246, 0.4);
    /* margin-top:20px; */
}

.hero-content {
    max-width: 650px;
}

.hero-eyebrow {
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
    opacity: 0.8;
}

.hero-name {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 15px;
}

.hero-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    opacity: 0.9;
}

.hero-desc {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.badge {
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    font-size: 0.85rem;
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.7;
}

.hero-scroll-line {
    width: 2px;
    height: 50px;
    margin: auto;
    background: currentColor;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .hero-inner {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .hero-photo {
        width: 220px;
        height: 220px;
    }

    .badge-row {
        justify-content: center;
    }
}

/* ═══════════════════════════════════════════
   MOBILE RESPONSIVE — CAREER TIMELINE
   (max-width: 768px)
═══════════════════════════════════════════ */

@media (max-width: 768px) {
    /* পুরো timeline container */
    .timeline-v2 {
        padding-left: 0;
    }

    /* প্রতিটি row — 3-column grid থেকে সরলীকৃত layout */
    .timeline-v2 .tl-row {
        display: flex;
        flex-direction: column;
        position: relative;
        padding-left: 28px; /* বাম দিকে line ও dot-এর জায়গা */
        margin-bottom: 24px;
        grid-template-columns: unset; /* আগের grid override */
    }

    /* বাম দিকের vertical line — pseudo element দিয়ে */
    .timeline-v2 .tl-row::before {
        content: "";
        position: absolute;
        left: 7px;
        top: 14px;
        bottom: -24px;
        width: 2px;
        background: linear-gradient(to bottom, var(--gold), var(--border));
    }

    /* শেষ row-এ line থাকবে না */
    .timeline-v2 .tl-row:last-child::before {
        display: none;
    }

    /* dot — pseudo element */
    .timeline-v2 .tl-row::after {
        content: "";
        position: absolute;
        left: 0px;
        top: 12px;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: var(--bg-surface);
        border: 2.5px solid var(--gold);
        z-index: 1;
    }

    /* active dot (current position) */
    .timeline-v2 .tl-row:first-child::after,
    .timeline-v2 .tl-row:nth-child(2)::after {
        background: var(--gold);
        box-shadow:
            0 0 0 4px var(--gold-dim),
            0 0 10px var(--gold);
    }

    /* বাম পাশের year column — লুকানো হবে না, উপরে দেখাবে */
    .timeline-v2 .tl-left {
        display: block; /* লুকাবে না */
        text-align: left;
        padding: 0;
        margin-bottom: 6px;
        order: unset;
        grid-column: unset;
    }

    /* Year badge */
    .timeline-v2 .tl-left .yr {
        display: inline-block;
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        padding: 3px 12px;
        border-radius: 50px;
        background: rgba(201, 146, 42, 0.12);
        border: 1px solid rgba(201, 146, 42, 0.25);
        color: var(--gold);
    }

    /* মাঝের dot/line column — লুকানো (pseudo দিয়ে handle করা হচ্ছে) */
    .timeline-v2 .tl-center {
        display: none;
    }

    /* Card */
    .timeline-v2 .tl-card {
        grid-column: unset;
        order: unset;
        border-left: 3px solid var(--gold);
        border-radius: 12px;
        padding: 14px 16px;
        margin-bottom: 0;
        background: var(--bg-surface);
        box-shadow: var(--shadow-sm);
    }

    .timeline-v2 .tl-card .role {
        font-size: 1rem;
        font-weight: 600;
        margin-bottom: 4px;
    }

    .timeline-v2 .tl-card .place {
        font-size: 0.84rem;
        line-height: 1.55;
    }
}

/* ═══════════════════════════
   Extra small (max-width: 480px)
═══════════════════════════ */

@media (max-width: 480px) {
    .timeline-v2 .tl-row {
        padding-left: 24px;
        margin-bottom: 20px;
    }

    .timeline-v2 .tl-card {
        padding: 12px 14px;
    }

    .timeline-v2 .tl-left .yr {
        font-size: 0.68rem;
        padding: 3px 10px;
    }

    .timeline-v2 .tl-card .role {
        font-size: 0.96rem;
    }
    .timeline-v2 .tl-card .place {
        font-size: 0.8rem;
    }
}

/* ═══════════════════════════════
   OFFICIAL TYPOGRAPHY SYSTEM
═══════════════════════════════ */

@import url("https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500&family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;0,8..60,500;0,8..60,600;1,8..60,300;1,8..60,400&family=Noto+Serif+Bengali:wght@300;400;500;600;700&display=swap");

:root {
    /* ── Font Families ── */
    --font-display: "EB Garamond", "Times New Roman", serif;
    --font-body: "Source Serif 4", Georgia, serif;
    --font-bengali: "Noto Serif Bengali", serif;
    --font-mono: "Courier New", Courier, monospace;

    /* ── Font Sizes (fluid) ── */
    --fs-hero: clamp(2.2rem, 5vw, 4.2rem);
    --fs-h1: clamp(1.8rem, 3.5vw, 3rem);
    --fs-h2: clamp(1.4rem, 2.5vw, 2.2rem);
    --fs-h3: clamp(1.1rem, 1.8vw, 1.5rem);
    --fs-h4: clamp(1rem, 1.4vw, 1.2rem);
    --fs-body: clamp(0.9rem, 1.2vw, 1rem);
    --fs-sm: clamp(0.78rem, 1vw, 0.88rem);
    --fs-xs: clamp(0.68rem, 0.85vw, 0.75rem);
    --fs-label: 0.65rem;

    /* ── Line Heights ── */
    --lh-tight: 1.15;
    --lh-heading: 1.28;
    --lh-body: 1.82;
    --lh-relaxed: 2;

    /* ── Letter Spacing ── */
    --ls-tight: -0.02em;
    --ls-normal: 0.01em;
    --ls-wide: 0.08em;
    --ls-wider: 0.14em;
    --ls-label: 0.2em;
}

/* ═══════════════════════════════
   BASE RESET
═══════════════════════════════ */

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    font-weight: 400;
    line-height: var(--lh-body);
    letter-spacing: var(--ls-normal);
    font-feature-settings:
        "kern" 1,
        "liga" 1,
        "calt" 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ═══════════════════════════════
   HEADINGS
═══════════════════════════════ */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: var(--lh-heading);
    letter-spacing: var(--ls-tight);
    color: var(--tx-primary);
}

h1 {
    font-size: var(--fs-h1);
    font-weight: 700;
}
h2 {
    font-size: var(--fs-h2);
    font-weight: 600;
}
h3 {
    font-size: var(--fs-h3);
    font-weight: 600;
}
h4 {
    font-size: var(--fs-h4);
    font-weight: 500;
}
h5 {
    font-size: var(--fs-sm);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: var(--ls-wider);
}
h6 {
    font-size: var(--fs-xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: var(--ls-label);
}

p {
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    color: var(--tx-secondary);
    margin-bottom: 0.75em;
}

p:last-child {
    margin-bottom: 0;
}

/* ═══════════════════════════════
   HERO SECTION TYPOGRAPHY
═══════════════════════════════ */

.hero-name {
    font-family: var(--font-display);
    font-size: var(--fs-hero);
    font-weight: 700;
    line-height: var(--lh-tight);
    letter-spacing: -0.03em;
    color: #ffffff;
}

.hero-name strong {
    font-weight: 800;
    font-style: italic;
    color: #f5d08a;
}

.hero-title {
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-weight: 400;
    letter-spacing: var(--ls-wider);
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    line-height: var(--lh-heading);
}

.hero-eyebrow {
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    font-weight: 500;
    letter-spacing: var(--ls-label);
    text-transform: uppercase;
}

.hero-desc {
    font-family: var(--font-body);
    font-size: clamp(0.9rem, 1.4vw, 1.02rem);
    font-weight: 400;
    line-height: var(--lh-relaxed);
    color: rgba(255, 255, 255, 0.8);
}

/* ═══════════════════════════════
   SECTION TYPOGRAPHY
═══════════════════════════════ */

.section-eyebrow {
    font-family: var(--font-body);
    font-size: var(--fs-label);
    font-weight: 600;
    letter-spacing: var(--ls-label);
    text-transform: uppercase;
    color: var(--gold);
}

.section-title {
    font-family: var(--font-display);
    font-size: var(--fs-h2);
    font-weight: 600;
    line-height: var(--lh-heading);
    letter-spacing: -0.015em;
    color: var(--tx-primary);
}

/* ═══════════════════════════════
   CARD & COMPONENT TYPOGRAPHY
═══════════════════════════════ */

/* About card */
.about-card h4 {
    font-family: var(--font-display);
    font-size: var(--fs-h4);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.about-card p,
.info-row {
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    line-height: var(--lh-body);
}

.info-label {
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: var(--ls-wide);
    text-transform: uppercase;
}

/* Timeline */
.tl-card .role {
    font-family: var(--font-display);
    font-size: var(--fs-h4);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.tl-card .place,
.tl-left .yr {
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    font-weight: 500;
    letter-spacing: var(--ls-wide);
    text-transform: uppercase;
}

/* Position cards */
.pos-card h4 {
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-weight: 600;
}

.pos-card p {
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    font-weight: 400;
}

/* Education */
.edu-body h4 {
    font-family: var(--font-display);
    font-size: var(--fs-h4);
    font-weight: 600;
}

.edu-body p {
    font-family: var(--font-body);
    font-size: var(--fs-sm);
}

.edu-year-box {
    font-family: var(--font-display);
    font-size: var(--fs-sm);
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* Publication */
.pub-body h4 {
    font-family: var(--font-display);
    font-size: var(--fs-h4);
    font-weight: 600;
    line-height: var(--lh-heading);
}

.pub-body p {
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    line-height: var(--lh-body);
}

/* PhD highlight */
.phd-content h3 {
    font-family: var(--font-display);
    font-size: var(--fs-h3);
    font-weight: 600;
    line-height: var(--lh-heading);
}

.phd-badge {
    font-family: var(--font-body);
    font-size: var(--fs-label);
    font-weight: 700;
    letter-spacing: var(--ls-label);
    text-transform: uppercase;
}

/* Stat strip */
.stat-number {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
}

.stat-label {
    font-family: var(--font-body);
    font-size: var(--fs-label);
    font-weight: 500;
    letter-spacing: var(--ls-label);
    text-transform: uppercase;
}

/* Badge */
.badge {
    font-family: var(--font-body);
    font-size: var(--fs-label);
    font-weight: 500;
    letter-spacing: var(--ls-label);
    text-transform: uppercase;
}

/* Contact cards */
.contact-card h4 {
    font-family: var(--font-body);
    font-size: var(--fs-label);
    font-weight: 700;
    letter-spacing: var(--ls-label);
    text-transform: uppercase;
}

.contact-card p {
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    line-height: var(--lh-body);
    color: rgba(255, 255, 255, 0.78);
}

/* ═══════════════════════════════
   QUOTE / BLOCKQUOTE
═══════════════════════════════ */

blockquote {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2.4vw, 1.6rem);
    font-style: italic;
    font-weight: 400;
    line-height: 1.78;
    letter-spacing: 0.005em;
    color: #f0e8d8;
}

cite {
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: var(--ls-wider);
    text-transform: uppercase;
    color: #e4b96a;
    font-style: normal;
}

/* ═══════════════════════════════
   NAV TYPOGRAPHY
═══════════════════════════════ */

.nav-logo {
    font-family: var(--font-display);
    font-size: clamp(0.95rem, 2vw, 1.18rem);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.nav-links a {
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    font-weight: 500;
    letter-spacing: var(--ls-label);
    text-transform: uppercase;
}

/* ═══════════════════════════════
   FOOTER TYPOGRAPHY
═══════════════════════════════ */

.footer-name {
    font-family: var(--font-display);
    font-size: 1.22rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.footer-details {
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    line-height: var(--lh-body);
}

/* ═══════════════════════════════
   GALLERY CAPTION
═══════════════════════════════ */

.gallery-caption,
.gallery-overlay-text {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.04em;
}

/* ═══════════════════════════════
   MOBILE TYPOGRAPHY ADJUSTMENTS
═══════════════════════════════ */

@media (max-width: 768px) {
    body {
        font-size: 0.95rem;
        line-height: 1.75;
    }

    .hero-name {
        letter-spacing: -0.02em;
    }
    .hero-desc {
        font-size: 0.92rem;
        line-height: 1.8;
    }
    .hero-title {
        font-size: 0.72rem;
        letter-spacing: 0.12em;
    }

    blockquote {
        font-size: 1.08rem;
    }

    .nav-links a {
        font-size: 0.9rem;
        letter-spacing: 0.1em;
    }
}

/* পুরো section background */
.about-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    font-family: Arial, sans-serif;
}

/* Hover effect */
.about-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

/* Heading */
.about-card h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #222;
    border-left: 4px solid #4f46e5;
    padding-left: 10px;
}

/* প্রতিটি info row কে card বানানো */
.info-row {
    background: #f8f9fb;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 12px 15px;
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    transition: all 0.2s ease;
}

/* hover effect on row */
.info-row:hover {
    background: #eef2ff;
    border-color: #c7d2fe;
    transform: scale(1.01);
}

/* label styling */
.info-label {
    font-weight: 600;
    color: #4f46e5;
    min-width: 140px;
}

/* text styling */
.info-row {
    color: #333;
    font-size: 14px;
    line-height: 1.6;
}

/* hr style */
.about-card hr {
    border: none;
    border-top: 1px dashed #ddd;
    margin: 15px 0;
}

/* responsive */
@media (max-width: 600px) {
    .info-label {
        min-width: 100%;
    }

    .info-row {
        flex-direction: column;
    }
}
body {
    background: linear-gradient(120deg, #f0f2f5, #ffffff);
}

:root {
    /* LIGHT */
    --bg: #f5f7fb;
    --card: #ffffff;
    --text: #111827;
    --muted: #374151;
    --border: #e5e7eb;
    --accent: #4f46e5;
    --row: #f3f4f6;
    --row-hover: #e0e7ff;
}

/* DARK */
body.dark {
    --bg: #0b1220;
    --card: #111827;
    --text: #f9fafb; /* 👈 HIGH CONTRAST TEXT */
    --muted: #e5e7eb; /* 👈 FIXED (no blur gray) */
    --border: #243244;
    --accent: #818cf8;
    --row: #1f2937;
    --row-hover: #273449;
}

/* BODY */
body {
    background: var(--bg);
    color: var(--text);
    transition: 0.3s ease;
}

/* CARD */
.about-card {
    background: var(--card);
    color: var(--text); /* 👈 VERY IMPORTANT */
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* TITLE */
.about-card h4 {
    color: var(--text); /* FIXED */
    border-left: 4px solid var(--accent);
    padding-left: 10px;
}

/* ROW */
.info-row {
    background: var(--row);
    color: var(--text); /* 👈 MAIN FIX */
    border: 1px solid var(--border);
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 10px;
    transition: 0.2s ease;
}

/* HOVER */
.info-row:hover {
    background: var(--row-hover);
}

/* LABEL */
.info-label {
    color: var(--accent);
    font-weight: 700;
    min-width: 140px;
}

/* REMOVE ANY BLUR EFFECT (important) */
.info-row,
.about-card,
body {
    filter: none !important;
    text-shadow: none !important;
    opacity: 1 !important;
}

/* MOBILE */
@media (max-width: 600px) {
    .info-label {
        min-width: 100%;
    }
    .info-row {
        flex-direction: column;
    }
}

/* ═══════════════════════════════════════════════════════
   DARK MODE FIX — style.css
   সমস্যা: style.css-এ body.dark ব্যবহার, কিন্তু
   index.html-এ [data-theme="dark"] — সব এখানে ঠিক করা হয়েছে
═══════════════════════════════════════════════════════ */

/* ── 1. about-card: dark mode-এ hardcoded white background fix ── */
[data-theme="dark"] .about-card {
    background: var(--bg-surface); /* #111d2e */
    color: var(--tx-primary); /* #f0e8d8 */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* ── 2. about-card h4: hardcoded #222 fix ── */
[data-theme="dark"] .about-card h4 {
    color: var(--tx-primary); /* #f0e8d8 */
    border-left-color: var(--accent, #818cf8);
}

.nav-inner {
    min-width: 0;
}
.nav-logo {
    flex-shrink: 0;
}
.nav-links {
    gap: clamp(8px, 1.2vw, 16px);
    min-width: 0;
}
.nav-links a {
    font-size: 0.68rem;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

@media (max-width: 1100px) and (min-width: 769px) {
    nav {
        height: var(--nav-h);
    }
    .nav-inner {
        flex-wrap: wrap;
        height: auto;
        min-height: var(--nav-h);
    }
    .nav-right {
        margin-left: auto;
    }
    .nav-toggle {
        display: flex;
    }
    .nav-links {
        display: none;
        order: 3;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0;
        padding: 8px 0 14px;
        background: var(--glass-bg);
        border-top: 1px solid var(--border);
    }
    .nav-links.open {
        display: flex;
    }
    .nav-links a {
        padding: 9px 0;
    }
}

/* ── 3. info-row: hardcoded #f8f9fb background ও #333 text fix ── */
[data-theme="dark"] .info-row {
    background: #1a2740;
    color: var(--tx-primary); /* #f0e8d8 */
    border-color: var(--border);
}

/* ── 4. info-row hover: dark mode ── */
[data-theme="dark"] .info-row:hover {
    background: #243550;
}

/* ── 5. info-label: dark mode accent color ── */
[data-theme="dark"] .info-label {
    color: var(--gold, #c9922a);
}

/* ── 6. about-card hr: hardcoded #ddd fix ── */
[data-theme="dark"] .about-card hr {
    border-top-color: var(--border); /* #243244 */
}

.artist-preview {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(240px, 0.8fr);
    gap: 48px;
    align-items: end;
    padding-top: 76px;
    padding-bottom: 76px;
}

.artist-preview-copy p {
    max-width: 720px;
    color: var(--tx-secondary);
}

.artist-preview-role,
.profile-lead {
    color: var(--gold) !important;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.artist-preview-role span,
.profile-lead span {
    color: var(--tx-muted);
    padding: 0 8px;
}

.profile-more-link {
    display: inline-flex;
    gap: 12px;
    align-items: center;
    margin-top: 18px;
    color: var(--tx-primary);
    border-bottom: 1px solid var(--gold);
    padding-bottom: 5px;
    font-weight: 600;
}

.profile-more-link span {
    color: var(--gold);
    transition: transform 0.25s ease;
}

.profile-more-link:hover span {
    transform: translateX(5px);
}

.artist-preview-facts {
    border-left: 1px solid var(--gold);
    padding-left: 24px;
}

.artist-preview-facts div {
    display: grid;
    gap: 3px;
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
}

.artist-preview-facts span,
.profile-details strong {
    color: var(--tx-muted);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.profile-page {
    padding-bottom: 80px;
}

.profile-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 70px;
    align-items: center;
    min-height: 520px;
    padding-top: 70px;
    padding-bottom: 70px;
}

.profile-hero h1 {
    margin: 12px 0 10px;
    color: var(--tx-primary);
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(3.2rem, 8vw, 7rem);
    font-weight: 500;
    line-height: 0.9;
}

.profile-intro {
    max-width: 560px;
    margin-top: 22px;
    color: var(--tx-secondary);
    font-size: 1.15rem;
}

.profile-contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 26px;
    margin-top: 28px;
}

.profile-contact-links a,
.profile-details a {
    color: var(--gold);
    text-decoration: underline;
    text-underline-offset: 4px;
    overflow-wrap: anywhere;
}

.profile-portrait-wrap {
    position: relative;
    max-width: 310px;
    justify-self: end;
}

.profile-portrait-frame {
    position: absolute;
    inset: 18px -18px -18px 18px;
    border: 1px solid var(--gold);
}

.profile-portrait {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    filter: saturate(0.8);
}

.profile-content {
    display: grid;
    gap: 24px;
}

.profile-section {
    padding: 34px 0;
    border-top: 1px solid var(--border);
    min-width: 0;
}

.profile-section-wide {
    max-width: 900px;
}

.profile-section p {
    color: var(--tx-secondary);
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 54px;
}

.profile-grid > *,
.profile-event-grid > * {
    min-width: 0;
}

.profile-list {
    display: grid;
    gap: 12px;
    margin-top: 16px;
    color: var(--tx-secondary);
}

.profile-list li {
    padding-left: 18px;
    position: relative;
    overflow-wrap: anywhere;
}
.profile-list li::before {
    content: "—";
    color: var(--gold);
    position: absolute;
    left: 0;
}
.profile-details li {
    display: grid;
    gap: 4px;
    padding-left: 0;
}
.profile-details li::before {
    display: none;
}

.profile-note {
    font-style: italic;
}

.timeline-list li {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 14px;
    padding-left: 0;
}

.timeline-list li::before {
    display: none;
}
.timeline-list strong,
.profile-event-grid strong {
    color: var(--gold);
    font-weight: 600;
}

.profile-event-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 38px;
    margin-top: 18px;
}

.profile-event-grid div {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    color: var(--tx-secondary);
    min-width: 0;
    overflow-wrap: anywhere;
}

.profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 18px;
}
.profile-tags span {
    padding: 7px 11px;
    border: 1px solid var(--gold);
    color: var(--tx-secondary);
    font-size: 0.86rem;
    max-width: 100%;
    overflow-wrap: anywhere;
}
.profile-tags-muted span {
    border-color: var(--border);
}
.profile-subheading {
    display: block;
    margin-top: 34px;
}
.visited-countries {
    line-height: 2;
    overflow-wrap: anywhere;
}

@media (max-width: 900px) {
    .artist-preview,
    .profile-hero,
    .profile-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .artist-preview {
        padding-top: 50px;
        padding-bottom: 50px;
    }
    .artist-preview-facts {
        border-left: 0;
        border-top: 1px solid var(--gold);
        padding: 12px 0 0;
    }
    .profile-hero {
        min-height: 0;
        padding-top: 48px;
        padding-bottom: 54px;
    }
    .profile-hero h1 {
        font-size: clamp(3rem, 16vw, 5rem);
    }
    .profile-portrait-wrap {
        justify-self: start;
        max-width: 230px;
    }
    .profile-event-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .profile-hero h1 {
        font-size: 2.25rem;
        line-height: 1;
    }
}

/* ── 7. body background: hardcoded gradient fix ── */
[data-theme="dark"] body {
    background: var(--bg-base, #0b1220);
}

/* ── 8. body.dark সরিয়ে [data-theme="dark"] দিয়ে replace ──
   (নিচের পুরানো block কে override করে)              */
[data-theme="dark"] {
    --bg: #0b1220;
    --card: #111827;
    --text: #f9fafb;
    --muted: #e5e7eb;
    --border: #243244;
    --accent: #818cf8;
    --row: #1f2937;
    --row-hover: #273449;
}

/* New Navigation Bar */
/* ═══════════════════════════════════════════
   MOBILE MENU ULTRA FIX (Compact Layout)
   গ্যাপ, মার্জিন এবং ফন্ট সাইজ কমিয়ে ফিক্স করা হয়েছে
═══════════════════════════════════════════ */

@media (max-width: 768px) {
    /* পুরো নেভিগেশন বারকে রেস্পনসিভ ব্লকে রূপান্তর */
    nav {
        position: relative !important;
        height: auto !important;
        backdrop-filter: none !important;
        background: var(--glass-bg) !important;
    }

    /* লোগো এবং হ্যামবার্গার বাটনের এরিয়া */
    .nav-inner {
        height: 60px !important; /* 🌟 হাইলাইট ১: নব-বারের উচ্চতা ৭২px থেকে কমিয়ে ৬০px করা হয়েছে */
    }

    /* হ্যামবার্গার বাটন */
    .nav-toggle {
        display: flex !important;
    }

    /* মোবাইল মেনু লিঙ্ক কন্টেইনার */
    .nav-links {
        display: none !important;
        flex-direction: column !important;
        width: 100%;

        /* 🌟 হাইলাইট ২: প্যাডিং ও গ্যাপ অনেক কমানো হয়েছে যাতে মার্জিন বেশি না লাগে */
        gap: 0 !important; /* মেনুর ভেতরের অপ্রয়োজনীয় গ্যাপ সম্পূর্ণ জিরো */
        padding: 0 20px 12px 20px !important; /* টপ-বটম এবং ডানে-বামের প্যাডিং কমানো হয়েছে */

        background: var(--glass-bg);
        border-top: 1px solid var(--border);
        transition: all 0.3s var(--ease);
    }

    /* জাভাস্ক্রিপ্ট একটিভ হলে মেনু যেভাবে নিচে নামবে */
    .nav-toggle.open ~ .nav-links,
    .nav-links.open,
    .nav-links.active {
        display: flex !important;
        animation: slideDownMenu 0.35s var(--ease) forwards;
    }

    /* 🌟 হাইলাইট ৩: মোবাইল মেনুর ভেতরের লিঙ্কের সাইজ ও প্যাডিং ফিক্স */
    .nav-links a {
        width: 100%;
        display: block;

        /* ফন্ট সাইজ এবং স্পেসিং কমানো */
        font-size: 0.78rem !important; /* ফন্ট সাইজ ছোট করা হয়েছে যাতে মোবাইলে বড় না দেখায় */
        font-family: var(--ff-sans) !important; /* রিডিং সহজ করার জন্য */
        letter-spacing: 0.04em !important;

        /* প্যাডিং কমানো */
        padding: 10px 0 !important; /* ১৪px থেকে কমিয়ে ১০px করা হয়েছে যাতে লম্বাটে মার্জিন না লাগে */

        border-bottom: 1px solid rgba(130, 130, 130, 0.08);
        color: var(--tx-secondary) !important;
    }

    /* শেষ লিঙ্কের নিচের বর্ডার রিমুভ */
    .nav-links a:last-child {
        border-bottom: none !important;
    }

    /* হোভার বা একটিভ স্টেট */
    .nav-links a:hover,
    .nav-links a.active {
        color: var(--gold) !important;
        padding-left: 4px !important; /* ডানে সরার পরিমাণ কমানো হয়েছে */
        transition: all 0.2s ease;
    }

    .nav-links a::after {
        display: none !important;
    }

    .nav-right {
        gap: 15px !important; /* টগল আইকন ও হ্যামবার্গারের মাঝের গ্যাপ কমানো */
    }

    /* হিরো সেকশনের টপ স্পেস অ্যাডজাস্টমেন্ট */
    .hero {
        padding-top: 20px !important; /* মেনুর সাথে হিরো সেকশনের গ্যাপ সামঞ্জস্যপূর্ণ করা */
    }

    /* স্মুথ অ্যানিমেশন */
    @keyframes slideDownMenu {
        from {
            opacity: 0;
            transform: translateY(-8px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}
