/* =========================================================
   Asif Ahmed Ali — Executive CV
   Elegant, modern, and editorial in tone.
   ========================================================= */

:root {
    /* Palette — sophisticated navy with champagne gold accent */
    --c-bg:        #0b0f17;
    --c-bg-soft:   #11161f;
    --c-surface:   #ffffff;
    --c-surface-2: #f7f5ef;
    --c-ink:       #0b0f17;
    --c-ink-2:     #1f2937;
    --c-muted:     #5b6472;
    --c-line:      #e6e2d6;
    --c-line-2:    rgba(255, 255, 255, 0.08);

    --c-accent:    #b8985a;
    --c-accent-2:  #d4b977;
    --c-accent-soft: rgba(184, 152, 90, 0.12);

    /* Typography */
    --f-display: "Cormorant Garamond", "Times New Roman", serif;
    --f-body:    "Inter", system-ui, -apple-system, sans-serif;

    /* Spacing & Layout */
    --container: 1200px;
    --section-y: clamp(56px, 6vw, 96px);

    --r-sm: 6px;
    --r-md: 14px;
    --r-lg: 22px;

    --t-fast: 200ms cubic-bezier(.4, 0, .2, 1);
    --t-mid:  400ms cubic-bezier(.4, 0, .2, 1);
    --t-slow: 700ms cubic-bezier(.4, 0, .2, 1);

    --shadow-sm: 0 4px 20px rgba(11, 15, 23, 0.06);
    --shadow-md: 0 18px 50px -10px rgba(11, 15, 23, 0.18);
    --shadow-lg: 0 30px 80px -20px rgba(11, 15, 23, 0.30);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--f-body);
    color: var(--c-ink);
    background: var(--c-surface);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: transparent; }
ul { padding: 0; margin: 0; list-style: none; }

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

/* ---------- Container & Sections ---------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: var(--section-y) 0;
    position: relative;
}

.section-header {
    max-width: 720px;
    margin-bottom: 48px;
}

.section-tag {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--c-accent);
    font-weight: 600;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--f-display);
    font-weight: 500;
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    line-height: 1.1;
    margin: 0 0 16px;
    color: var(--c-ink);
    letter-spacing: -0.01em;
}

.section-subtitle {
    color: var(--c-muted);
    font-size: 1.05rem;
    margin: 0;
}

/* ---------- Loader ---------- */
.loader {
    position: fixed; inset: 0;
    background: var(--c-bg);
    z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 600ms ease, visibility 600ms;
}
.loader.hidden { opacity: 0; visibility: hidden; }

.loader-content {
    display: flex; flex-direction: column; align-items: center; gap: 24px;
}
.loader-monogram {
    font-family: var(--f-display);
    font-size: 3rem;
    color: var(--c-accent);
    letter-spacing: 0.08em;
    font-weight: 600;
}
.loader-line {
    width: 120px; height: 1px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
    position: relative;
}
.loader-line::after {
    content: "";
    position: absolute; left: -100%; top: 0;
    width: 100%; height: 100%;
    background: var(--c-accent);
    animation: loaderSlide 1.2s ease-in-out infinite;
}
@keyframes loaderSlide {
    0%   { left: -100%; }
    50%  { left: 0%; }
    100% { left: 100%; }
}

/* ---------- Navbar ---------- */
.navbar {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 22px 0;
    background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(0);
    transition: all var(--t-mid);
    border-bottom: 1px solid transparent;
}
.navbar.scrolled {
    padding: 14px 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--c-line);
}

.nav-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
}

.nav-brand {
    display: flex; align-items: center; gap: 12px;
    color: #fff;
    transition: color var(--t-mid);
}
.navbar.scrolled .nav-brand { color: var(--c-ink); }

.brand-mark {
    width: 40px;
    height: 40px;
    border: 1px solid var(--c-accent);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(184, 152, 90, 0.08);
    color: var(--c-accent);
    flex-shrink: 0;
    box-sizing: border-box;
}

.brand-mark__text {
    font-family: var(--f-body);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    line-height: 1;
    text-align: center;
}
.footer-brand .brand-mark__text {
    transform: translateY(13px);
}
.brand-name {
    font-family: var(--f-display);
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.nav-links {
    display: flex; align-items: center; gap: 36px;
}
.nav-links a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color var(--t-fast);
    position: relative;
}
.nav-links a::after {
    content: "";
    position: absolute; left: 0; bottom: -6px;
    width: 0; height: 1px;
    background: var(--c-accent);
    transition: width var(--t-mid);
}
.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: #fff; }

.navbar.scrolled .nav-links a { color: var(--c-ink-2); }
.navbar.scrolled .nav-links a:hover { color: var(--c-ink); }

.nav-cta {
    background: var(--c-accent);
    color: #fff !important;
    padding: 10px 22px;
    border-radius: 50px;
    transition: background var(--t-fast), transform var(--t-fast);
}
.nav-cta:hover { background: var(--c-accent-2); transform: translateY(-1px); }
.nav-cta::after { display: none; }

.nav-toggle {
    display: none;
    flex-direction: column; gap: 5px;
    padding: 8px;
}
.nav-toggle span {
    width: 24px; height: 2px;
    background: #fff;
    transition: var(--t-fast);
    display: block;
}
.navbar.scrolled .nav-toggle span { background: var(--c-ink); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    color: #fff;
    display: flex; align-items: center;
    overflow: hidden;
    isolation: isolate;
}
.hero-bg {
    position: absolute; inset: 0;
    background: radial-gradient(circle at 20% 30%, rgba(184, 152, 90, 0.16) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(184, 152, 90, 0.08) 0%, transparent 50%),
                linear-gradient(180deg, #0b0f17 0%, #131a26 100%);
    z-index: -2;
}
.hero-pattern {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    z-index: -1;
}

.hero-container { padding-top: 120px; padding-bottom: 80px; }

.hero-content { max-width: 880px; }

.hero-eyebrow {
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 28px;
}
.eyebrow-line {
    width: 50px; height: 1px;
    background: var(--c-accent);
}
.eyebrow-text {
    font-size: 12px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--c-accent-2);
    font-weight: 500;
}

.hero-name {
    font-family: var(--f-display);
    font-weight: 500;
    font-size: clamp(3rem, 9vw, 6.5rem);
    line-height: 0.98;
    margin: 0 0 24px;
    letter-spacing: -0.02em;
}
.hero-first { display: block; }
.hero-last {
    display: block;
    font-style: italic;
    color: var(--c-accent-2);
    font-weight: 500;
}

.hero-title {
    font-size: clamp(1.05rem, 1.6vw, 1.3rem);
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 400;
    margin: 0 0 28px;
    text-transform: uppercase;
}

.hero-tagline {
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.72);
    max-width: 640px;
    margin: 0 0 44px;
}

.hero-actions {
    display: flex; gap: 16px; flex-wrap: wrap;
    margin-bottom: 80px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.04em;
    border-radius: 50px;
    transition: all var(--t-mid);
    cursor: pointer;
    text-transform: uppercase;
}
.btn-primary {
    background: var(--c-accent);
    color: #fff;
    box-shadow: 0 14px 30px -10px rgba(184, 152, 90, 0.6);
}
.btn-primary:hover {
    background: var(--c-accent-2);
    transform: translateY(-2px);
    box-shadow: 0 20px 40px -10px rgba(184, 152, 90, 0.7);
}
.btn-ghost {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.4);
}

/* ---------- Hero stats ---------- */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 600px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.stat-num {
    font-family: var(--f-display);
    font-size: clamp(2.5rem, 4.5vw, 3.5rem);
    color: var(--c-accent-2);
    line-height: 1;
    font-weight: 500;
}
.stat-num::after { content: "+"; color: var(--c-accent); margin-left: 4px; }
.stat-label {
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 8px;
}

/* ---------- Scroll cue ---------- */
.scroll-cue {
    position: absolute;
    bottom: 40px; left: 50%;
    transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}
.scroll-line {
    width: 1px; height: 50px;
    background: linear-gradient(to bottom, var(--c-accent), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%, 100% { transform: scaleY(1); opacity: 1; }
    50%      { transform: scaleY(0.4); opacity: 0.4; }
}

/* ---------- About ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 80px;
    align-items: start;
}
.about-narrative p { color: var(--c-ink-2); margin: 0 0 18px; font-size: 1rem; }
.inline-link {
    color: var(--c-accent);
    font-weight: 600;
    border-bottom: 1px solid var(--c-accent-soft);
    transition: border-color var(--t-fast), color var(--t-fast);
}
.inline-link:hover { color: var(--c-ink); border-bottom-color: var(--c-accent); }
.about-narrative .about-lead {
    font-family: var(--f-display);
    font-size: clamp(1.4rem, 2.2vw, 1.75rem);
    line-height: 1.4;
    color: var(--c-ink);
    font-weight: 500;
    margin-bottom: 28px;
}

.about-card {
    background: var(--c-surface-2);
    border: 1px solid var(--c-line);
    border-radius: var(--r-md);
    padding: 32px;
    position: sticky; top: 100px;
}
.about-card-header {
    display: flex; align-items: center; gap: 10px;
    padding-bottom: 16px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--c-line);
}
.about-card-header h3 {
    font-family: var(--f-display);
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0; flex: 1;
}
.status-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #2dbd6e;
    box-shadow: 0 0 0 4px rgba(45, 189, 110, 0.18);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(45, 189, 110, 0.18); }
    50%      { box-shadow: 0 0 0 8px rgba(45, 189, 110, 0); }
}
.status-text { font-size: 12px; color: var(--c-muted); font-weight: 500; }

.profile-list { display: grid; gap: 14px; }
.profile-list li {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 18px;
    align-items: baseline;
    font-size: 14px;
    padding-bottom: 14px;
    border-bottom: 1px dashed var(--c-line);
}
.profile-list li:last-child { border: 0; padding-bottom: 0; }
.profile-key {
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--c-muted);
    font-weight: 600;
}
.profile-val { color: var(--c-ink-2); font-weight: 500; }

/* ---------- Pillars ---------- */
.pillars { background: var(--c-surface-2); }
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.pillar {
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--r-md);
    padding: 36px 32px;
    transition: all var(--t-mid);
    position: relative;
    overflow: hidden;
}
.pillar::before {
    content: "";
    position: absolute; top: 0; left: 0;
    width: 4px; height: 0;
    background: var(--c-accent);
    transition: height var(--t-mid);
}
.pillar:hover {
    border-color: var(--c-accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.pillar:hover::before { height: 100%; }
.pillar-icon {
    width: 56px; height: 56px;
    background: var(--c-accent-soft);
    color: var(--c-accent);
    border-radius: 14px;
    display: grid; place-items: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
}
.pillar h3 {
    font-family: var(--f-display);
    font-size: 1.4rem;
    margin: 0 0 12px;
    font-weight: 600;
}
.pillar p {
    color: var(--c-muted);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.7;
}

/* ---------- Timeline / Experience ---------- */
.timeline {
    position: relative;
    padding-left: 32px;
}
.timeline::before {
    content: "";
    position: absolute;
    left: 7px; top: 8px; bottom: 8px;
    width: 1px;
    background: linear-gradient(to bottom, var(--c-accent), var(--c-line) 90%);
}

.timeline-item {
    position: relative;
    margin-bottom: 56px;
    padding-left: 40px;
}
.timeline-item:last-child { margin-bottom: 0; }

.timeline-marker {
    position: absolute;
    left: -32px; top: 8px;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--c-accent);
    box-shadow: 0 0 0 4px rgba(184, 152, 90, 0.12);
}

.timeline-meta {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.timeline-period {
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--c-muted);
    font-weight: 600;
}
.timeline-tag {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--c-accent);
    background: var(--c-accent-soft);
    padding: 4px 10px;
    border-radius: 50px;
    font-weight: 600;
}
.timeline-tag--live {
    color: #16a34a;
    background: rgba(22, 163, 74, 0.10);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.timeline-tag--live::before {
    content: "";
    width: 7px; height: 7px;
    background: #16a34a;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.18);
    animation: pulse 2s ease-in-out infinite;
}

.timeline-role {
    font-family: var(--f-display);
    font-size: clamp(1.4rem, 2.2vw, 1.85rem);
    margin: 0 0 6px;
    font-weight: 600;
    color: var(--c-ink);
}
.timeline-company {
    margin: 0 0 16px;
    color: var(--c-accent);
    font-weight: 500;
    font-size: 1.05rem;
    display: inline-flex; align-items: center; gap: 8px;
}
.timeline-company a {
    color: var(--c-muted);
    font-size: 0.85rem;
    transition: color var(--t-fast);
}
.timeline-company a:hover { color: var(--c-accent); }

.timeline-summary {
    color: var(--c-ink-2);
    margin: 0 0 14px;
    font-size: 1rem;
}
.timeline-points {
    display: grid; gap: 10px;
    margin-top: 16px;
}
.timeline-points li {
    position: relative;
    padding-left: 22px;
    color: var(--c-muted);
    font-size: 0.95rem;
}
.timeline-points li::before {
    content: "";
    position: absolute;
    left: 0; top: 11px;
    width: 12px; height: 1px;
    background: var(--c-accent);
}

/* ---------- Expertise ---------- */
.expertise { background: var(--c-surface-2); }

.hiring-callout {
    display: grid;
    grid-template-columns: 220px 1fr;
    align-items: center;
    gap: 48px;
    padding: 40px 48px;
    margin-bottom: 40px;
    background: var(--c-bg);
    color: rgba(255, 255, 255, 0.85);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}
.hiring-callout::before {
    content: "";
    position: absolute;
    top: -120px; right: -120px;
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(184, 152, 90, 0.18), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.hiring-callout__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    padding-right: 32px;
}
.hiring-callout__num {
    font-family: var(--f-display);
    font-size: clamp(4.5rem, 9vw, 6.5rem);
    line-height: 1;
    color: var(--c-accent-2);
    font-weight: 500;
    letter-spacing: -0.02em;
}
.hiring-callout__label {
    margin-top: 6px;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 600;
}
.hiring-callout__body h3 {
    font-family: var(--f-display);
    font-size: clamp(1.5rem, 2.4vw, 1.9rem);
    margin: 0 0 12px;
    font-weight: 600;
    color: #fff;
}
.hiring-callout__body p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.7;
    font-size: 0.97rem;
}
.hiring-callout__body strong { color: var(--c-accent-2); font-weight: 600; }

@media (max-width: 768px) {
    .hiring-callout {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 32px 24px;
        text-align: center;
    }
    .hiring-callout__stat {
        border-right: 0;
        padding-right: 0;
        padding-bottom: 24px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
}
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.expertise-card {
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--r-md);
    padding: 36px 32px;
    transition: all var(--t-mid);
}
.expertise-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--c-accent);
}
.expertise-icon {
    width: 52px; height: 52px;
    background: var(--c-bg);
    color: var(--c-accent-2);
    border-radius: 12px;
    display: grid; place-items: center;
    font-size: 1.3rem;
    margin-bottom: 22px;
}
.expertise-card h3 {
    font-family: var(--f-display);
    font-size: 1.35rem;
    margin: 0 0 18px;
    font-weight: 600;
}
.expertise-card ul { display: grid; gap: 8px; }
.expertise-card li {
    color: var(--c-ink-2);
    font-size: 0.92rem;
    padding-left: 18px;
    position: relative;
}
.expertise-card li::before {
    content: "";
    position: absolute;
    left: 0; top: 9px;
    width: 6px; height: 6px;
    background: var(--c-accent);
    transform: rotate(45deg);
}

/* ---------- Portfolio ---------- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.portfolio-card {
    border: 1px solid var(--c-line);
    border-radius: var(--r-md);
    padding: 28px;
    background: #fff;
    transition: all var(--t-mid);
    position: relative;
    overflow: hidden;
    display: flex; flex-direction: column;
}
.portfolio-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--c-accent);
}
.portfolio-card::after {
    content: "";
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--c-accent), var(--c-accent-2));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t-mid);
}
.portfolio-card:hover::after { transform: scaleX(1); }

.portfolio-tag {
    display: inline-block;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--c-accent);
    background: var(--c-accent-soft);
    padding: 5px 12px;
    border-radius: 50px;
    font-weight: 600;
    margin-bottom: 18px;
    width: fit-content;
}
.portfolio-card h3 {
    font-family: var(--f-display);
    font-size: 1.5rem;
    margin: 0 0 10px;
    font-weight: 600;
}
.portfolio-card p {
    color: var(--c-muted);
    font-size: 0.92rem;
    margin: 0;
    flex: 1;
}
.portfolio-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--c-ink);
    transition: color var(--t-fast);
    width: fit-content;
}
.portfolio-link:hover { color: var(--c-accent); gap: 14px; }
.portfolio-link i { font-size: 11px; transition: transform var(--t-fast); }

/* Feature-list cards (longer descriptions) */
.portfolio-features {
    display: grid;
    gap: 8px;
    margin: 16px 0 0;
    padding-top: 16px;
    border-top: 1px dashed var(--c-line);
}
.portfolio-features li {
    position: relative;
    padding-left: 20px;
    color: var(--c-ink-2);
    font-size: 0.86rem;
    line-height: 1.5;
}
.portfolio-features li::before {
    content: "";
    position: absolute;
    left: 0; top: 9px;
    width: 10px; height: 1px;
    background: var(--c-accent);
}
.portfolio-card--feature p { margin-bottom: 4px; }

/* ---------- Education ---------- */
.education-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}
.education-card {
    padding: 36px 32px;
    border: 1px solid var(--c-line);
    border-radius: var(--r-md);
    transition: all var(--t-mid);
    background: var(--c-surface-2);
}
.education-card:hover {
    transform: translateY(-4px);
    background: #fff;
    box-shadow: var(--shadow-md);
}
.education-year {
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--c-accent);
    font-weight: 600;
    margin-bottom: 16px;
}
.education-card h3 {
    font-family: var(--f-display);
    font-size: 1.35rem;
    margin: 0 0 8px;
    font-weight: 600;
    line-height: 1.3;
}
.education-school {
    color: var(--c-ink-2);
    font-weight: 500;
    margin: 0 0 12px;
    font-size: 0.95rem;
}
.education-card > p:last-child {
    color: var(--c-muted);
    font-size: 0.92rem;
    margin: 0;
}

.education-card--research {
    background: var(--c-bg);
    color: rgba(255, 255, 255, 0.85);
    border-color: transparent;
}
.education-card--research:hover { background: var(--c-bg-soft); }
.education-card--research h3 { color: #fff; }
.education-card--research .education-school { color: var(--c-accent-2); }
.education-card--research > p:last-child { color: rgba(255, 255, 255, 0.6); }

/* ---------- Contact ---------- */
.contact { background: var(--c-bg); color: #fff; position: relative; overflow: hidden; }
.contact::before {
    content: "";
    position: absolute;
    top: -200px; right: -200px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(184, 152, 90, 0.15), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.contact .section-tag { color: var(--c-accent-2); }
.contact .section-title { color: #fff; }

.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    position: relative;
    z-index: 1;
}
.contact-intro p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 36px;
    font-size: 1rem;
    max-width: 500px;
}

.contact-channels {
    display: grid;
    gap: 16px;
}
.contact-channel {
    display: flex; align-items: center; gap: 18px;
    padding: 18px 22px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--r-md);
    transition: all var(--t-mid);
}
.contact-channel:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--c-accent);
    transform: translateX(4px);
}
.contact-channel i {
    width: 44px; height: 44px;
    background: var(--c-accent-soft);
    color: var(--c-accent-2);
    border-radius: 50%;
    display: grid; place-items: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.channel-label {
    display: block;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 600;
    margin-bottom: 2px;
}
.channel-value {
    display: block;
    color: #fff;
    font-weight: 500;
    font-size: 0.95rem;
    word-break: break-word;
}

/* Form */
.contact-form {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 40px;
    border-radius: var(--r-lg);
    display: grid; gap: 18px;
}
.contact-form h3 {
    font-family: var(--f-display);
    font-size: 1.6rem;
    margin: 0 0 12px;
    color: #fff;
    font-weight: 600;
}
.contact-form label {
    display: grid; gap: 8px;
}
.contact-form label > span {
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
}
.contact-form input,
.contact-form textarea {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--r-sm);
    color: #fff;
    padding: 14px 16px;
    font-family: inherit;
    font-size: 14px;
    transition: border-color var(--t-fast), background var(--t-fast);
    resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: 0;
    border-color: var(--c-accent);
    background: rgba(184, 152, 90, 0.04);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.contact-form > button[type="submit"] {
    justify-self: center;
    margin-top: 8px;
    transition: opacity var(--t-fast);
}
.contact-form > button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.form-feedback {
    margin: 0;
    text-align: center;
    font-size: 13px;
    min-height: 18px;
}
.form-feedback.success { color: #4ade80; }
.form-feedback.error   { color: #f87171; }

/* ---------- Footer ---------- */
.footer {
    background: var(--c-bg-soft);
    color: rgba(255, 255, 255, 0.6);
    padding: 36px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 14px; color: #fff; }
.footer-brand .brand-mark {
    width: 44px; height: 44px;
    border-color: var(--c-accent);
    color: var(--c-accent);
    font-size: 1rem;
}
.footer-brand strong {
    display: block;
    font-family: var(--f-display);
    font-size: 1.15rem;
    color: #fff;
    font-weight: 500;
}
.footer-brand span {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.04em;
}
.footer-meta {
    display: flex; align-items: center; gap: 28px;
    font-size: 13px;
}
.footer-top {
    color: var(--c-accent-2);
    font-weight: 500;
    transition: color var(--t-fast);
    display: inline-flex; align-items: center; gap: 8px;
}
.footer-top:hover { color: #fff; }

/* ---------- Reveal animations ---------- */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity var(--t-slow), transform var(--t-slow);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .pillars-grid,
    .expertise-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .education-grid {
        grid-template-columns: 1fr;
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-card { position: static; }
    .contact-wrap { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
    :root { --section-y: 56px; }

    .nav-toggle { display: flex; }
    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        width: 80%; max-width: 340px;
        height: 100vh;
        background: var(--c-bg);
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        padding: 60px 36px;
        gap: 28px;
        transition: right var(--t-mid);
        box-shadow: -10px 0 60px rgba(0, 0, 0, 0.4);
    }
    .nav-links.open { right: 0; }
    .nav-links a { color: rgba(255, 255, 255, 0.85) !important; font-size: 16px; }
    .navbar.scrolled .nav-links a { color: rgba(255, 255, 255, 0.85) !important; }

    .hero-stats { grid-template-columns: 1fr; gap: 24px; }
    .pillars-grid,
    .expertise-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    .form-row { grid-template-columns: 1fr; }
    .timeline { padding-left: 0; }
    .timeline::before { left: 7px; }

    .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
    .container { padding: 0 18px; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .btn { justify-content: center; }
    .contact-form { padding: 28px 22px; }
}

/* ---------- Print ---------- */
@media print {
    .navbar, .scroll-cue, .contact-form, .nav-toggle, .loader { display: none !important; }
    .hero { min-height: auto; color: var(--c-ink); padding: 32px 0; }
    .hero-bg, .hero-pattern { display: none; }
    .hero-name, .hero-title, .hero-tagline, .stat-num, .stat-label { color: var(--c-ink) !important; }
    .section { padding: 24px 0; }
    .pillar, .expertise-card, .portfolio-card, .education-card { break-inside: avoid; }
    body { background: #fff; color: #000; }
    .contact { background: #fff; color: #000; }
    .contact .section-title { color: #000; }
}
