/* =====================================================
   NOMBA AL'BOUCHRA — PORTFOLIO
   Design System inspiré HorizonX.so
   Light mode par défaut, Dark mode disponible
   ===================================================== */

/* =====================================================
   0. CSS RESET & BASE
   ===================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* =====================================================
   1. DESIGN TOKENS — LIGHT MODE (default)
   ===================================================== */
:root {
    /* Colors */
    --hx-cream:       #FAFAF8;
    --hx-white:       #FFFFFF;
    --hx-ink:         #171717;
    --hx-ink-80:      rgba(23, 23, 23, 0.80);
    --hx-ink-60:      rgba(23, 23, 23, 0.60);
    --hx-ink-40:      rgba(23, 23, 23, 0.40);
    --hx-ink-12:      rgba(23, 23, 23, 0.12);
    --hx-ink-06:      rgba(23, 23, 23, 0.06);
    --hx-blue:        #3B82F6;
    --hx-blue-light:  #EFF6FF;
    --hx-green:       #52B788;
    --hx-green-light: #ECFDF5;
    --hx-red-dot:     #EF4444;
    --hx-purple:      #7C3AED;

    /* Semantic surfaces */
    --bg-page:        var(--hx-cream);
    --bg-surface:     var(--hx-white);
    --bg-elevated:    var(--hx-white);
    --text-primary:   var(--hx-ink);
    --text-secondary: var(--hx-ink-60);
    --text-muted:     var(--hx-ink-40);
    --border:         var(--hx-ink-12);
    --border-subtle:  var(--hx-ink-06);

    /* Navbar glass (light) */
    --nav-glass-bg:   rgba(255, 255, 255, 0.72);
    --nav-glass-shadow-inner: inset 0 -1px 1px rgba(255,255,255,0.5), inset 0 1px 1px rgba(255,255,255,0.4);

    /* Terminal */
    --term-bg:        #060910;
    --term-header:    #0d1220;
    --term-green:     #34d399;
    --term-cyan:      #38bdf8;
    --term-yellow:    #fbbf24;
    --term-text:      #cbd5e1;

    /* Typography */
    --font-heading:   'Instrument Serif', 'Playfair Display', Georgia, serif;
    --font-body:      'Inter', -apple-system, sans-serif;
    --font-mono:      'JetBrains Mono', 'Fira Code', monospace;

    /* Radii */
    --radius-pill:    9999px;
    --radius-card:    18px;
    --radius-md:      10px;
    --radius-sm:      6px;

    /* Spacing */
    --section-py:     6rem;
    --container-max:  1180px;

    /* Transitions */
    --transition:     0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);

    /* Shadows */
    --shadow-card:    0 1px 3px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.08);
    --shadow-card-hover: 0 4px 6px rgba(0,0,0,0.04), 0 20px 40px rgba(0,0,0,0.14);
    --shadow-fan:     0 12px 40px rgba(0,0,0,0.18);
}

/* =====================================================
   2. DARK MODE OVERRIDES
   ===================================================== */
[data-theme="dark"] {
    --bg-page:        #0D0D0D;
    --bg-surface:     #171717;
    --bg-elevated:    #1e1e1e;
    --text-primary:   #F5F5F0;
    --text-secondary: rgba(245, 245, 240, 0.60);
    --text-muted:     rgba(245, 245, 240, 0.35);
    --border:         rgba(255, 255, 255, 0.10);
    --border-subtle:  rgba(255, 255, 255, 0.05);

    --nav-glass-bg:   rgba(23, 23, 23, 0.80);
    --nav-glass-shadow-inner: inset 0 -1px 0 rgba(255,255,255,0.06);

    --shadow-card:    0 1px 3px rgba(0,0,0,0.3), 0 8px 24px rgba(0,0,0,0.4);
    --shadow-card-hover: 0 4px 6px rgba(0,0,0,0.3), 0 20px 40px rgba(0,0,0,0.5);
    --shadow-fan:     0 12px 40px rgba(0,0,0,0.5);
}

/* =====================================================
   3. GLOBAL BASE STYLES
   ===================================================== */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-page);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background-color var(--transition-slow), color var(--transition-slow);
    overflow-x: hidden;
    position: relative;
}

/* =====================================================
   MATRIX BACKGROUND CANVAS & HACKER STREAM
   ===================================================== */
#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    opacity: 0.18;
    transition: opacity var(--transition-slow);
}

[data-theme="dark"] #matrix-canvas {
    opacity: 0.38;
}

body.matrix-off #matrix-canvas {
    opacity: 0 !important;
}

body.matrix-boost #matrix-canvas {
    opacity: 0.65 !important;
}

.navbar-outer, main, footer, .modal-overlay, .back-to-top {
    position: relative;
    z-index: 10;
}

/* Hacker Code Typing Bar in Hero */
.hacker-code-bar {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(6, 9, 16, 0.88);
    border: 1px solid rgba(56, 189, 248, 0.35);
    padding: 0.4rem 1.15rem;
    border-radius: var(--radius-pill);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: #e2e8f0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2), 0 0 15px rgba(56, 189, 248, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin-bottom: 0.35rem;
    transition: all var(--transition);
}

.hcb-prompt {
    color: var(--term-green);
    font-weight: 700;
}

.hcb-code {
    color: var(--term-cyan);
    font-weight: 500;
}

.hcb-cursor {
    color: var(--term-green);
    font-weight: 700;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: var(--section-py) 0;
}

/* =====================================================
   4. NAVBAR — GLASSMORPHISM PILL (HorizonX style)
   ===================================================== */
.navbar-outer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    pointer-events: none;
    padding: 0.75rem 1.5rem;
}

@media (min-width: 768px) {
    .navbar-outer { padding: 0.75rem 3rem; }
}
@media (min-width: 1024px) {
    .navbar-outer { padding: 0.75rem 5rem; }
}

.navbar-pill {
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem 0.5rem 1.25rem;
    border-radius: var(--radius-pill);
    overflow: hidden;
    position: relative;
    max-width: 1000px;
    margin: 0 auto;

    /* Glassmorphism */
    background: var(--nav-glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--nav-glass-shadow-inner), 0 2px 16px rgba(0,0,0,0.1);
    border: 1px solid var(--border);
    transition: background var(--transition-slow);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

.nav-avatar-img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--hx-blue);
    flex-shrink: 0;
}

.nav-logo-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--hx-blue);
}

.nav-logo-name {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.nav-links {
    display: none;
    align-items: center;
    gap: 0.25rem;
}

@media (min-width: 1024px) {
    .nav-links { display: flex; }
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-pill);
    transition: color var(--transition), background var(--transition);
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--border-subtle);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Language Dropdown */
.language-dropdown-wrapper {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--font-mono);
    color: var(--text-secondary);
    padding: 0.35rem 0.65rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
    background: var(--bg-surface);
    transition: all var(--transition);
}

.lang-btn:hover {
    color: var(--text-primary);
    border-color: var(--text-muted);
}

.lang-chevron {
    font-size: 0.65rem;
    transition: transform var(--transition);
}

.language-dropdown-wrapper.open .lang-chevron {
    transform: rotate(180deg);
}

.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 0.4rem;
    min-width: 160px;
    box-shadow: var(--shadow-card);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all var(--transition);
    z-index: 200;
}

.language-dropdown-wrapper.open .lang-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.45rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: left;
    transition: background var(--transition), color var(--transition);
}

.lang-option:hover, .lang-option.active {
    background: var(--border-subtle);
    color: var(--text-primary);
}

.lang-code-tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--hx-blue);
    min-width: 22px;
}

/* Theme Toggle */
.theme-toggle {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--border-subtle);
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: all var(--transition);
    border: 1px solid var(--border);
}

.theme-toggle:hover {
    color: var(--text-primary);
    background: var(--border);
}

/* CV Button */
.btn-nav-cv {
    display: none;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
    background: transparent;
    transition: all var(--transition);
}

@media (min-width: 1024px) {
    .btn-nav-cv { display: flex; }
}

.btn-nav-cv:hover {
    color: var(--text-primary);
    border-color: var(--text-muted);
    background: var(--border-subtle);
}

/* CTA Button */
.btn-nav-cta {
    display: none;
    padding: 0.45rem 1.1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    background: var(--hx-ink);
    border-radius: var(--radius-pill);
    transition: opacity var(--transition), transform var(--transition);
}

[data-theme="dark"] .btn-nav-cta {
    background: var(--hx-white);
    color: var(--hx-ink);
}

@media (min-width: 860px) {
    .btn-nav-cta { display: flex; }
}

.btn-nav-cta:hover {
    opacity: 0.82;
    transform: translateY(-1px);
}

/* Mobile Toggle */
.mobile-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 0.4rem;
    width: 2.2rem;
    height: 2.2rem;
    align-items: center;
    justify-content: center;
}

@media (min-width: 1024px) {
    .mobile-toggle { display: none; }
}

.mobile-toggle span {
    display: block;
    width: 18px;
    height: 1.5px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition);
}

/* Mobile Nav Menu */
@media (max-width: 1023px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: 1.5rem;
        right: 1.5rem;
        background: var(--bg-surface);
        border: 1px solid var(--border);
        border-radius: var(--radius-card);
        flex-direction: column;
        padding: 1rem;
        gap: 0.25rem;
        box-shadow: var(--shadow-card);
        transform: translateY(-16px);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        display: flex;
    }

    .nav-link {
        padding: 0.65rem 1rem;
        font-size: 0.95rem;
    }
}

/* =====================================================
   5. HERO SECTION — FAN CARDS + ANIMATED TITLE
   ===================================================== */
.hero-section {
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(250, 250, 248, 0.91);
    padding: 7rem 1.5rem 4rem;
    overflow: hidden;
    position: relative;
}
[data-theme="dark"] .hero-section {
    background-color: rgba(13, 13, 13, 0.88);
}

/* Subtle noise/grid overlay */
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 60% 20%, rgba(59,130,246,0.06) 0%, transparent 60%);
    pointer-events: none;
}

.hero-inner {
    width: 100%;
    max-width: 860px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

/* --- Fan Cards --- */
.fan-stage {
    position: relative;
    width: 100%;
    max-width: 420px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fan-card {
    position: absolute;
    width: 170px;
    height: 230px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-fan);
    transform: translate(var(--tx), var(--ty)) rotate(var(--rot));
    z-index: var(--zi, 10);
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), z-index 0s;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.4);
}

.fan-card:hover {
    transform: translate(var(--tx), calc(var(--ty) - 28px)) rotate(0deg) scale(1.08) !important;
    z-index: 50 !important;
}

.fan-card-visual {
    width: 100%;
    height: 100%;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.fan-card-label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    color: var(--hx-ink);
}

.fan-cat {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(23,23,23,0.1);
    color: var(--hx-ink);
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    width: fit-content;
}

.fan-title-card {
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.25;
}

.fan-card-icon {
    font-size: 3.5rem;
    color: rgba(23,23,23,0.12);
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

/* --- Hero Text Block --- */
.hero-text-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    max-width: 720px;
}

.hero-availability-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.9rem;
    background: var(--hx-green-light);
    color: var(--hx-green);
    border: 1px solid rgba(82,183,136,0.25);
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 500;
}

.avail-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--hx-green);
    flex-shrink: 0;
}

[data-theme="dark"] .hero-availability-pill {
    background: rgba(82, 183, 136, 0.1);
    border-color: rgba(82, 183, 136, 0.2);
}

.avail-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--hx-green);
    box-shadow: 0 0 0 2px rgba(82,183,136,0.25);
    animation: pulse-green 2s ease-in-out infinite;
}

@keyframes pulse-green {
    0%, 100% { box-shadow: 0 0 0 2px rgba(82,183,136,0.25); }
    50% { box-shadow: 0 0 0 5px rgba(82,183,136,0.1); }
}

/* Hero H1 — Premium Title */
.hero-h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 400;
    line-height: 1.0;
    letter-spacing: -0.04em;
    color: var(--text-primary);
    font-style: italic;
}

.hero-name-line {
    display: block;
    font-style: italic;
}

.hero-sub {
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: -0.01em;
}

.hero-lead {
    font-size: 0.975rem;
    color: var(--text-secondary);
    max-width: 560px;
    line-height: 1.7;
}

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

/* =====================================================
   6. BUTTONS — HorizonX pill style
   ===================================================== */
.btn-primary-hx {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.6rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    background: var(--hx-ink);
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    transition: opacity var(--transition), transform var(--transition);
}

[data-theme="dark"] .btn-primary-hx {
    background: var(--hx-white);
    color: var(--hx-ink);
}

.btn-primary-hx:hover {
    opacity: 0.82;
    transform: translateY(-1px);
}

.btn-primary-hx:active {
    transform: translateY(0);
}

.btn-ghost-hx {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.6rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    transition: all var(--transition);
}

.btn-ghost-hx:hover {
    border-color: var(--text-muted);
    background: var(--border-subtle);
    transform: translateY(-1px);
}

/* =====================================================
   7. SKILLS MARQUEE
   ===================================================== */
.marquee-section {
    padding: 1.5rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(250, 250, 248, 0.91);
    overflow: hidden;
}
[data-theme="dark"] .marquee-section {
    background: rgba(13, 13, 13, 0.88);
}

.marquee-track-wrapper {
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.marquee-track {
    display: flex;
    animation: marquee-scroll 50s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.marquee-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
    padding: 0 0.5rem;
}

.m-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--bg-surface);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    transition: color var(--transition);
}

.m-pill:hover {
    color: var(--text-primary);
}

.m-pill i {
    color: var(--hx-blue);
    font-size: 0.85rem;
}

.m-separator {
    color: var(--text-muted);
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* =====================================================
   8. SECTION HEADERS
   ===================================================== */
.section-eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--hx-blue);
    margin-bottom: 0.75rem;
}

.section-eyebrow.light {
    color: rgba(255,255,255,0.6);
}

.section-title-hx {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.section-title-hx.light {
    color: #FFFFFF;
}

.section-title-hx em {
    font-style: italic;
}

.section-subtitle {
    font-size: 0.975rem;
    color: var(--text-secondary);
    max-width: 540px;
    line-height: 1.7;
    margin-top: 0.75rem;
}

.section-header-centered {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header-centered .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

/* =====================================================
   9. ABOUT SECTION (WITH EXECUTIVE PHOTO CARD)
   ===================================================== */
.about-section {
    background: rgba(250, 250, 248, 0.91);
}
[data-theme="dark"] .about-section {
    background: rgba(13, 13, 13, 0.88);
}

.about-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 3rem;
    margin-bottom: 3.5rem;
    align-items: start;
}

@media (max-width: 960px) {
    .about-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

.about-photo-wrapper {
    width: 100%;
}

.executive-photo-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 1rem;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    overflow: hidden;
    box-sizing: border-box;
    width: 100%;
}

.photo-frame {
    position: relative;
    width: 100%;
    height: 420px;
    border-radius: calc(var(--radius-card) - 4px);
    overflow: hidden;
    background: #000;
}

.executive-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.executive-photo-card:hover .executive-main-img {
    transform: scale(1.03);
}

.photo-badge-overlay {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
    pointer-events: none;
}

.photo-verified-tag, .photo-loc-tag {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.3rem 0.65rem;
    border-radius: var(--radius-pill);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.photo-verified-tag {
    background: rgba(23, 23, 23, 0.85);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.15);
}

.photo-verified-tag i {
    color: var(--hx-blue);
}

.photo-loc-tag {
    background: rgba(255, 255, 255, 0.85);
    color: var(--hx-ink);
    border: 1px solid rgba(0,0,0,0.06);
}

[data-theme="dark"] .photo-loc-tag {
    background: rgba(30, 30, 30, 0.85);
    color: #fff;
    border-color: rgba(255,255,255,0.1);
}

.photo-switcher-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.45rem;
    width: 100%;
    box-sizing: border-box;
}

.photo-thumb-btn {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.5rem;
    border-radius: var(--radius-md);
    border: 1.5px solid transparent;
    background: var(--border-subtle);
    cursor: pointer;
    transition: all var(--transition);
    overflow: hidden;
    box-sizing: border-box;
}

.photo-thumb-btn img {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    transition: transform var(--transition);
}

.photo-thumb-btn span {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-secondary);
    font-family: var(--font-body);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.photo-thumb-btn:hover {
    background: var(--border);
}

.photo-thumb-btn:hover img {
    transform: scale(1.06);
}

.photo-thumb-btn.active {
    border-color: var(--hx-blue);
    background: var(--hx-blue-light);
}

[data-theme="dark"] .photo-thumb-btn.active {
    background: rgba(59, 130, 246, 0.15);
}

.photo-thumb-btn.active span {
    color: var(--hx-blue);
    font-weight: 700;
}

.about-bio-wrap {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.about-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-top: 0.5rem;
}

@media (max-width: 640px) {
    .about-meta-grid { grid-template-columns: 1fr; }
    .photo-frame { height: 350px; }
}

.about-text {
    font-size: 0.97rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

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

.avail-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.65rem;
    background: var(--hx-green-light);
    color: var(--hx-green);
    border: 1px solid rgba(82,183,136,0.2);
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 500;
}

[data-theme="dark"] .avail-pill {
    background: rgba(82,183,136,0.1);
    border-color: rgba(82,183,136,0.15);
}

.avail-dot-sm {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--hx-green);
    animation: pulse-green 2s ease-in-out infinite;
}

/* =====================================================
   BIOGRAPHY STORYTELLING & TIMELINE CHAPTERS
   ===================================================== */
.bio-story-wrap {
    margin-top: 3.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.bio-quote-card {
    position: relative;
    background: var(--bg-surface);
    border-left: 4px solid var(--hx-blue);
    border-radius: 0 var(--radius-card) var(--radius-card) 0;
    padding: 1.75rem 2rem;
    box-shadow: var(--shadow-card);
    border-top: 1px solid var(--border);
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.bio-quote-text {
    font-family: var(--font-heading);
    font-size: clamp(1.15rem, 2.2vw, 1.45rem);
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.55;
    margin-bottom: 0.75rem;
}

.bio-quote-author {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--hx-blue);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bio-metrics-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

@media (max-width: 860px) {
    .bio-metrics-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .bio-metrics-strip { grid-template-columns: 1fr; }
}

.bio-metric-box {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 1.35rem 1rem;
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: transform var(--transition), border-color var(--transition);
}

.bio-metric-box:hover {
    transform: translateY(-3px);
    border-color: var(--hx-blue);
}

.bio-metric-num {
    font-family: var(--font-mono);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--hx-blue);
    line-height: 1.1;
    margin-bottom: 0.35rem;
}

.bio-metric-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.35;
}

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

@media (max-width: 960px) {
    .bio-chapters-grid { grid-template-columns: 1fr; }
}

.bio-chapter-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    box-shadow: var(--shadow-card);
    transition: transform var(--transition), border-color var(--transition);
    position: relative;
    overflow: hidden;
}

.bio-chapter-card:hover {
    transform: translateY(-4px);
    border-color: var(--hx-blue);
}

.bio-chapter-badge {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--hx-blue);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.bio-chapter-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.35;
}

.bio-chapter-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
    flex: 1;
}

.bio-chapter-meta {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-subtle);
    padding-top: 0.75rem;
    margin-top: 0.25rem;
}

.about-right {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.about-qualities-card,
.about-languages-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 1.5rem;
}

.card-label {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.qualities-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.qualities-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.qualities-list li i {
    color: var(--hx-green);
    font-size: 0.75rem;
    margin-top: 0.22rem;
    flex-shrink: 0;
}

.lang-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.9rem;
}

.lang-row:last-child { border-bottom: none; }

.lang-name { color: var(--text-primary); font-weight: 500; }
.lang-level {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-family: var(--font-mono);
}

/* =====================================================
   10. TERMINAL (Preserved — repositioned in About)
   ===================================================== */
.terminal-wrapper {
    margin-top: 1rem;
}

.terminal-chrome {
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border);
}

.terminal-chrome-bar {
    background: var(--term-header);
    padding: 0.7rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.chrome-dots {
    display: flex;
    gap: 0.35rem;
}

.cdot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.cdot-red { background: #FF5F57; }
.cdot-yellow { background: #FFBD2E; }
.cdot-green { background: #28C840; }

.chrome-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
    flex: 1;
    text-align: center;
}

.chrome-badge {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--hx-green);
    letter-spacing: 0.08em;
    border: 1px solid rgba(52,211,153,0.3);
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-pill);
}

.terminal-screen {
    background: var(--term-bg);
    padding: 1.25rem;
    min-height: 280px;
    max-height: 420px;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.7;
    color: var(--term-text);
}

.term-line {
    margin-bottom: 0.15rem;
}

.output-dim {
    color: rgba(148,163,184,0.5);
}

.output-highlight {
    color: var(--term-cyan);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.terminal-quick-cmds {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0.75rem 0;
}

.term-cmd-btn {
    padding: 0.3rem 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    background: rgba(255,255,255,0.06);
    color: var(--term-yellow);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition);
}

.term-cmd-btn:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.2);
}

.terminal-dynamic-logs {
    margin-bottom: 0.5rem;
}

.term-output-block {
    background: rgba(255,255,255,0.04);
    border-left: 2px solid var(--term-cyan);
    padding: 0.75rem 1rem;
    margin: 0.5rem 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 0.8rem;
    line-height: 1.75;
}

.terminal-input-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: 0.5rem;
}

.term-prompt {
    color: var(--term-green);
    font-weight: 600;
    flex-shrink: 0;
    font-size: 0.82rem;
}

#terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--term-text);
    caret-color: var(--term-green);
}

#terminal-input::placeholder {
    color: rgba(148,163,184,0.35);
}

/* =====================================================
   11. SERVICES SECTION
   ===================================================== */
.services-section {
    background: rgba(255, 255, 255, 0.90);
}
[data-theme="dark"] .services-section {
    background: rgba(23, 23, 23, 0.88);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

@media (max-width: 768px) {
    .services-grid { grid-template-columns: 1fr; }
}

@media (min-width: 1024px) {
    .services-grid { grid-template-columns: repeat(4, 1fr); }
}

.service-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
    animation-delay: var(--delay, 0ms);
}

.service-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-4px);
    border-color: var(--hx-blue);
}

.service-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--hx-blue-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hx-blue);
    font-size: 1.1rem;
}

[data-theme="dark"] .service-icon-wrap {
    background: rgba(59,130,246,0.12);
}

.service-card h3 {
    font-size: 0.97rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.35;
}

.service-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.65;
    flex: 1;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.service-tags span {
    font-size: 0.72rem;
    font-weight: 500;
    font-family: var(--font-mono);
    color: var(--hx-blue);
    background: var(--hx-blue-light);
    padding: 0.18rem 0.55rem;
    border-radius: var(--radius-pill);
}

[data-theme="dark"] .service-tags span {
    background: rgba(59,130,246,0.1);
}

/* =====================================================
   12. PROJECTS SECTION
   ===================================================== */
.projects-section {
    background: rgba(250, 250, 248, 0.91);
}
[data-theme="dark"] .projects-section {
    background: rgba(13, 13, 13, 0.88);
}

.filter-row {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.45rem 1.1rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--hx-ink);
    color: #fff;
    border-color: var(--hx-ink);
}

[data-theme="dark"] .filter-btn.active {
    background: var(--hx-white);
    color: var(--hx-ink);
    border-color: var(--hx-white);
}

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

@media (max-width: 900px) {
    .projects-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .projects-grid { grid-template-columns: 1fr; }
}

.project-card-hx {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition);
    animation-delay: var(--delay, 0ms);
}

.project-card-hx:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-6px);
}

.project-card-hx.hidden {
    display: none;
}

.project-visual {
    height: 180px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-visual-icon {
    font-size: 4rem;
    color: rgba(23,23,23,0.1);
}

.project-visual-img {
    position: relative;
    overflow: hidden;
}

.project-visual-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.6) 100%);
    transition: opacity var(--transition);
}

.project-card-hx:hover .project-visual-overlay {
    background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.75) 100%);
}

.project-live-btn {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 600;
    background: rgba(23,23,23,0.7);
    color: #fff;
    border-radius: var(--radius-pill);
    backdrop-filter: blur(8px);
    transition: background var(--transition);
}

.project-live-btn:hover {
    background: rgba(23,23,23,0.9);
}

.project-meta {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.project-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.project-cat-pill {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.65rem;
    border-radius: var(--radius-pill);
    background: var(--hx-blue-light);
    color: var(--hx-blue);
}

.project-specs-btn {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: 0.2rem 0.65rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    transition: all var(--transition);
}

.project-specs-btn:hover {
    color: var(--text-primary);
    border-color: var(--text-muted);
    background: var(--border-subtle);
}

.project-action-btns {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.project-pdf-pill {
    font-size: 0.72rem;
    font-weight: 600;
    color: #ef4444;
    background: #fef2f2;
    border: 1px solid rgba(239, 68, 68, 0.25);
    padding: 0.2rem 0.65rem;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all var(--transition);
    text-decoration: none;
    font-family: var(--font-mono);
}

[data-theme="dark"] .project-pdf-pill {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.3);
}

.project-pdf-pill:hover {
    background: #ef4444;
    color: #fff;
    transform: translateY(-1px);
}

.project-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.project-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.project-tech-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.25rem;
}

.project-tech-row span {
    font-size: 0.7rem;
    font-weight: 500;
    font-family: var(--font-mono);
    color: var(--text-muted);
    background: var(--border-subtle);
    border: 1px solid var(--border);
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-pill);
}

/* =====================================================
   13. EDUCATION TIMELINE
   ===================================================== */
.education-section {
    background: rgba(255, 255, 255, 0.90);
}
[data-theme="dark"] .education-section {
    background: rgba(23, 23, 23, 0.88);
}

.timeline {
    position: relative;
    padding-left: 2rem;
    max-width: 760px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0.45rem;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    padding-bottom: 2.5rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -2rem;
    top: 0.35rem;
    width: 1.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.t-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--hx-blue);
    box-shadow: 0 0 0 3px var(--bg-surface), 0 0 0 4px var(--hx-blue);
    flex-shrink: 0;
}

.timeline-content {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 1.5rem;
    transition: box-shadow var(--transition);
}

.timeline-content:hover {
    box-shadow: var(--shadow-card);
}

.t-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.t-header h3 {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.t-org {
    display: block;
    font-size: 0.82rem;
    color: var(--hx-blue);
    font-weight: 500;
    margin-top: 0.2rem;
}

.t-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
    flex-shrink: 0;
}

.t-date {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.t-badge {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.18rem 0.6rem;
    border-radius: var(--radius-pill);
    background: var(--hx-blue-light);
    color: var(--hx-blue);
}

[data-theme="dark"] .t-badge {
    background: rgba(59,130,246,0.12);
}

.timeline-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* Timeline Photo Proof Gallery (3 Cards) */
.timeline-proof-gallery {
    margin-top: 1.25rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

@media (max-width: 768px) {
    .timeline-proof-gallery {
        grid-template-columns: 1fr;
    }
}

.proof-card-item {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all var(--transition);
}

.proof-card-item:hover {
    border-color: var(--hx-blue);
    box-shadow: var(--shadow-card);
    transform: translateY(-2px);
}

.proof-card-item .proof-thumb-wrapper {
    width: 58px;
    height: 58px;
    border-radius: 8px;
    flex-shrink: 0;
}

.proof-meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    overflow: hidden;
}

.proof-tag {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--hx-blue);
    font-family: var(--font-mono);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.proof-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Timeline Document Download Bar */
.timeline-doc-action {
    margin-top: 1rem;
}

.btn-doc-download {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    padding: 0.85rem 1.15rem;
    background: var(--bg-surface);
    border: 1px dashed var(--hx-blue);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.86rem;
    font-weight: 600;
    transition: all var(--transition);
    text-decoration: none;
    box-sizing: border-box;
}

.btn-doc-download:hover {
    background: var(--hx-blue-light);
    border-style: solid;
    border-color: var(--hx-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

[data-theme="dark"] .btn-doc-download {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(59, 130, 246, 0.4);
}

[data-theme="dark"] .btn-doc-download:hover {
    background: rgba(59, 130, 246, 0.12);
    border-color: var(--hx-blue);
}

.btn-doc-download i:first-child {
    color: #ef4444;
    font-size: 1.15rem;
}

/* Timeline Photo Proof Card (CNIB Certification single fallback) */
.timeline-photo-proof {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.timeline-photo-proof:hover {
    border-color: var(--hx-blue);
    box-shadow: var(--shadow-card);
}

.proof-thumb-wrapper {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
    border: 1px solid var(--border);
}

.proof-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform var(--transition);
}

.proof-thumb-wrapper:hover .proof-thumb {
    transform: scale(1.1);
}

.proof-overlay-btn {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    transition: opacity var(--transition);
    gap: 0.2rem;
    padding: 0.2rem;
}

.proof-thumb-wrapper:hover .proof-overlay-btn {
    opacity: 1;
}

.proof-caption {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.proof-badge {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--hx-blue);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: var(--font-mono);
}

.proof-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

/* =====================================================
   14. CONTACT SECTION
   ===================================================== */
.contact-section {
    background: rgba(250, 250, 248, 0.91);
}
[data-theme="dark"] .contact-section {
    background: rgba(13, 13, 13, 0.88);
}

.contact-card {
    background: var(--hx-ink);
    border-radius: 24px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 480px;
}

@media (max-width: 860px) {
    .contact-card { grid-template-columns: 1fr; }
}

[data-theme="dark"] .contact-card {
    background: #111111;
    border: 1px solid var(--border);
}

.contact-card-top {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: center;
}

.contact-lead {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.7;
    max-width: 400px;
}

.contact-channels {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.channel-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-card);
    color: #fff;
    transition: all var(--transition);
    text-decoration: none;
}

.channel-btn:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.2);
    transform: translateX(4px);
}

.channel-btn > i:first-child {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.6);
    flex-shrink: 0;
}

.channel-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.channel-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
}

.channel-sub {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    font-family: var(--font-mono);
}

.channel-ext {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.3);
}

.wa-channel {
    border-color: rgba(37,211,102,0.25);
    background: rgba(37,211,102,0.06);
}

.wa-channel:hover {
    border-color: rgba(37,211,102,0.4);
    background: rgba(37,211,102,0.1);
}

.wa-channel > i:first-child {
    color: #25d366;
}

.contact-form-wrap {
    padding: 3rem;
    background: var(--bg-surface);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form-wrap h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 480px) {
    .form-row-2 { grid-template-columns: 1fr; }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.form-group input,
.form-group textarea {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.7rem 1rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: border-color var(--transition);
    width: 100%;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--hx-blue);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

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

.btn-submit-form {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.4rem;
    font-size: 0.87rem;
    font-weight: 600;
    color: #fff;
    background: var(--hx-ink);
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    transition: opacity var(--transition);
    cursor: pointer;
}

[data-theme="dark"] .btn-submit-form {
    background: var(--hx-white);
    color: var(--hx-ink);
}

.btn-submit-form:hover { opacity: 0.82; }

.btn-submit-wa {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.4rem;
    font-size: 0.87rem;
    font-weight: 600;
    color: #fff;
    background: #25d366;
    border-radius: var(--radius-pill);
    border: none;
    transition: opacity var(--transition);
    cursor: pointer;
}

.btn-submit-wa:hover { opacity: 0.88; }

.form-feedback {
    font-size: 0.85rem;
    min-height: 1.2rem;
}

.form-feedback.success { color: var(--hx-green); }
.form-feedback.error { color: #ef4444; }

/* =====================================================
   15. FOOTER
   ===================================================== */
.footer {
    background: var(--hx-ink);
    color: rgba(255,255,255,0.6);
}

[data-theme="dark"] .footer {
    background: #111111;
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr auto;
    gap: 2.5rem;
    align-items: center;
    padding-top: 3rem;
    padding-bottom: 2rem;
}

@media (max-width: 768px) {
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-style: italic;
    font-weight: 400;
    color: #fff;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    font-size: 0.875rem;
    line-height: 1.6;
    max-width: 300px;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-nav a {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.5);
    transition: color var(--transition);
}

.footer-nav a:hover { color: #fff; }

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.4);
    font-size: 1rem;
    transition: all var(--transition);
}

.footer-social a:hover {
    border-color: rgba(255,255,255,0.4);
    color: #fff;
    background: rgba(255,255,255,0.06);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 1.25rem 0;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.3);
    text-align: center;
}

/* =====================================================
   16. MODALS
   ===================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    max-width: 580px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.5rem;
    position: relative;
    box-shadow: 0 32px 80px rgba(0,0,0,0.3);
    transform: translateY(8px);
    transition: transform var(--transition);
}

.modal-overlay.active .modal-card {
    transform: translateY(0);
}

.cv-modal-card {
    max-width: 820px;
}

/* Photo Lightbox Modal Card */
.photo-modal-card {
    max-width: 650px;
    padding: 1.5rem;
    background: var(--bg-surface);
}

.photo-modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.photo-modal-img {
    max-width: 100%;
    max-height: 72vh;
    border-radius: var(--radius-md);
    object-fit: contain;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.photo-modal-caption {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: center;
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--border-subtle);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all var(--transition);
}

.modal-close:hover {
    background: var(--hx-ink);
    color: #fff;
    border-color: var(--hx-ink);
}

/* =====================================================
   17. CV PRINT STYLES
   ===================================================== */
.cv-preview-container {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.6;
}

.cv-header-print {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.25rem;
    border-bottom: 2px solid var(--border);
    margin-bottom: 1.5rem;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.cv-photo-id-wrap {
    width: 76px;
    height: 76px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--hx-blue);
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.cv-avatar-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.cv-title-block {
    flex: 1;
}

.cv-title-block h1 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 400;
    font-style: italic;
    color: var(--text-primary);
}

.cv-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.cv-contact-block {
    text-align: right;
    font-size: 0.82rem;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.cv-contact-block i { color: var(--hx-blue); margin-right: 0.35rem; }

.cv-section-print {
    margin-bottom: 1.5rem;
}

.cv-section-print h2 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.4rem;
    margin-bottom: 0.9rem;
}

.cv-entry {
    margin-bottom: 0.9rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.cv-entry strong {
    color: var(--text-primary);
    font-weight: 600;
}

.cv-grid-print {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.cv-col-print h3 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
}

.cv-col-print p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.cv-actions-print {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
}

/* =====================================================
   18. BACK TO TOP
   ===================================================== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 150;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: var(--hx-ink);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    transition: transform var(--transition), opacity var(--transition);
    opacity: 0;
    transform: translateY(10px);
}

[data-theme="dark"] .back-to-top {
    background: var(--hx-white);
    color: var(--hx-ink);
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
}

/* =====================================================
   19. SCROLL REVEAL ANIMATIONS
   ===================================================== */
.reveal-item {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--delay, 0ms);
}

.reveal-item.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Hero section always visible (no reveal) */
.hero-section .fan-card,
.hero-section .hero-text-block > * {
    opacity: 1;
    transform: none;
}

/* =====================================================
   20. HERO FADE-SCALE ENTRANCE
   ===================================================== */
@keyframes hero-fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-availability-pill {
    animation: hero-fade-up 0.6s cubic-bezier(0.16,1,0.3,1) 0.2s both;
}

.hero-h1 {
    animation: hero-fade-up 0.8s cubic-bezier(0.16,1,0.3,1) 0.35s both;
}

.hero-sub {
    animation: hero-fade-up 0.7s cubic-bezier(0.16,1,0.3,1) 0.45s both;
}

.hero-lead {
    animation: hero-fade-up 0.7s cubic-bezier(0.16,1,0.3,1) 0.55s both;
}

.hero-cta-row {
    animation: hero-fade-up 0.7s cubic-bezier(0.16,1,0.3,1) 0.65s both;
}

@keyframes fan-rise {
    from { opacity: 0; transform: translate(var(--tx), calc(var(--ty) + 40px)) rotate(var(--rot)) scale(0.9); }
    to   { opacity: 1; transform: translate(var(--tx), var(--ty)) rotate(var(--rot)) scale(1); }
}

.fan-card-left  { animation: fan-rise 0.9s cubic-bezier(0.16,1,0.3,1) 0.1s both; }
.fan-card-center { animation: fan-rise 1.0s cubic-bezier(0.16,1,0.3,1) 0.2s both; }
.fan-card-right { animation: fan-rise 0.9s cubic-bezier(0.16,1,0.3,1) 0.15s both; }

/* =====================================================
   21. PRINT STYLES
   ===================================================== */
@media print {
    body * { visibility: hidden; }
    #cv-modal, #cv-modal * { visibility: visible; }
    #cv-modal {
        position: absolute;
        left: 0; top: 0;
        width: 100%;
        background: #fff;
        padding: 0;
    }
    .cv-modal-card {
        box-shadow: none;
        border: none;
        width: 100%;
        padding: 1.5rem;
        max-height: none;
    }
    .no-print, .modal-close { display: none !important; }
}

/* =====================================================
   22. RESPONSIVE TWEAKS
   ===================================================== */
@media (max-width: 768px) {
    :root { --section-py: 4rem; }

    .hero-section { padding: 6rem 1.25rem 3rem; }

    .fan-stage {
        max-width: 340px;
        height: 240px;
    }

    .fan-card {
        width: 140px;
        height: 190px;
    }

    .fan-card-left  { --tx: -95px; }
    .fan-card-right { --tx: 90px; }

    .contact-card-top { padding: 2rem; }
    .contact-form-wrap { padding: 2rem; }

    .cv-grid-print { grid-template-columns: 1fr; }

    .timeline { padding-left: 1.5rem; }

    .t-header { flex-direction: column; gap: 0.5rem; }
    .t-meta { align-items: flex-start; }
}

@media (max-width: 480px) {
    .fan-stage {
        max-width: 300px;
        height: 210px;
    }

    .fan-card {
        width: 120px;
        height: 170px;
    }

    .fan-card-left  { --tx: -80px; --ty: 15px; }
    .fan-card-right { --tx: 75px;  --ty: 12px; }
    .fan-card-center { --ty: -10px; }
}

/* Additional Mobile Responsiveness Fixes */
@media (max-width: 768px) {
    .modal-card {
        width: 92%;
        max-width: 100%;
        padding: 1.25rem;
        max-height: 85vh;
    }

    .cv-modal-card {
        width: 95%;
        padding: 1.25rem;
        max-height: 90vh;
    }

    .photo-modal-card {
        width: 95%;
        padding: 0.75rem;
    }

    .photo-modal-card img {
        max-height: 65vh;
    }

    .lang-dropdown-menu {
        right: -10px;
        min-width: 140px;
    }
}

@media (max-width: 480px) {
    .hero-actions-hx {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions-hx .btn-primary-hx,
    .hero-actions-hx .btn-ghost-hx {
        width: 100%;
        justify-content: center;
    }

    .hero-headline {
        font-size: 1.85rem;
        line-height: 1.2;
    }

    .navbar-outer {
        padding: 0.5rem 0.75rem;
    }

    .navbar-pill {
        padding: 0.4rem 0.75rem;
    }

    .nav-links {
        left: 0.75rem;
        right: 0.75rem;
    }
}

/* Additional Mobile Responsiveness Fixes */
@media (max-width: 768px) {
    .modal-card {
        width: 92%;
        max-width: 100%;
        padding: 1.25rem;
        max-height: 85vh;
    }

    .cv-modal-card {
        width: 95%;
        padding: 1.25rem;
        max-height: 90vh;
    }

    .photo-modal-card {
        width: 95%;
        padding: 0.75rem;
    }

    .photo-modal-card img {
        max-height: 65vh;
    }

    .lang-dropdown-menu {
        right: -10px;
        min-width: 140px;
    }
}

@media (max-width: 480px) {
    .hero-actions-hx {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions-hx .btn-primary-hx,
    .hero-actions-hx .btn-ghost-hx {
        width: 100%;
        justify-content: center;
    }

    .hero-headline {
        font-size: 1.85rem;
        line-height: 1.2;
    }

    .navbar-outer {
        padding: 0.5rem 0.75rem;
    }

    .navbar-pill {
        padding: 0.4rem 0.75rem;
    }

    .nav-links {
        left: 0.75rem;
        right: 0.75rem;
    }
}
