/* ==============================================================================
   Prof. (Dr.) Parshotam Singh (P. S. Thakur) - Academic Personal Portfolio
   Design Tokens: Oxford Navy, Warm Ivory / Crisp Slate, Gold Accent
   Print-ready CV styling included
   ============================================================================== */

:root {
    --bg-base: #FAF9F6;
    --bg-alt: #F2F4F8;
    --bg-card: #FFFFFF;
    --bg-nav: rgba(250, 249, 246, 0.92);

    --text-primary: #0F172A;
    --text-secondary: #334155;
    --text-muted: #64748B;

    --navy: #0F294A;
    --navy-deep: #091B33;
    --accent: #1D4ED8;
    --accent-soft: rgba(29, 78, 216, 0.08);
    --gold: #B45309;
    --gold-soft: rgba(180, 83, 9, 0.10);
    --emerald: #047857;
    --emerald-soft: rgba(4, 120, 87, 0.10);

    --border-hairline: #E2E8F0;
    --border-strong: #CBD5E1;

    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 14px 36px rgba(15, 41, 74, 0.09);

    --font-serif: 'Newsreader', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

[data-theme="dark"] {
    --bg-base: #0B1120;
    --bg-alt: #0F172A;
    --bg-card: #131E33;
    --bg-nav: rgba(11, 17, 32, 0.90);

    --text-primary: #F8FAFC;
    --text-secondary: #CBD5E1;
    --text-muted: #94A3B8;

    --navy: #E2E8F0;
    --navy-deep: #FFFFFF;
    --accent: #60A5FA;
    --accent-soft: rgba(96, 165, 250, 0.14);
    --gold: #FBBF24;
    --gold-soft: rgba(251, 191, 36, 0.14);
    --emerald: #34D399;
    --emerald-soft: rgba(52, 211, 153, 0.14);

    --border-hairline: #1E293B;
    --border-strong: #334155;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 10px 26px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 16px 38px rgba(0, 0, 0, 0.45);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.container {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

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

.mono-text {
    font-family: var(--font-mono);
}

/* ==============================================================================
   Navbar
   ============================================================================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-nav);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-hairline);
}

.nav-inner {
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.monogram {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #0F294A;
    color: #FFFFFF;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 16px;
    display: grid;
    place-items: center;
    letter-spacing: 0.04em;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.brand-meta {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 16px;
    line-height: 1.2;
    color: var(--text-primary);
}

.brand-sub {
    font-size: 11.5px;
    color: var(--text-muted);
    font-weight: 500;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 7px 11px;
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-hairline);
    background: var(--bg-card);
    color: var(--text-secondary);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.icon-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 14px;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.16s ease;
}

.btn-sm {
    font-size: 13px;
    padding: 7px 13px;
}

.btn-primary {
    background: #0F294A;
    color: #FFFFFF;
}

.btn-primary:hover {
    background: #1B4173;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .btn-primary {
    background: #2563EB;
}

[data-theme="dark"] .btn-primary:hover {
    background: #3B82F6;
}

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

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

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

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
}

/* ==============================================================================
   Hero Section
   ============================================================================== */
.hero-section {
    padding: 52px 0 44px;
    border-bottom: 1px solid var(--border-hairline);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.32fr 0.98fr;
    gap: 36px;
    align-items: center;
}

.hero-identity-row {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 20px;
}

.hero-portrait-frame {
    width: 132px;
    height: 132px;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--border-strong);
    box-shadow: var(--shadow-md);
    background: var(--bg-alt);
}

.hero-portrait-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 14%;
    display: block;
}

.hero-heading-group {
    min-width: 0;
}

.eyebrow-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 11px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-bottom: 10px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--emerald);
    box-shadow: 0 0 0 3px var(--emerald-soft);
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(1.85rem, 2.9vw, 2.55rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: 0;
}

.hero-alias {
    display: block;
    font-family: var(--font-sans);
    font-size: 15.5px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0;
    margin-top: 6px;
}

.hero-bio {
    font-size: 15.5px;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 22px;
    max-width: 65ch;
}

.hero-contact-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 26px;
}

.contact-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 13px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-hairline);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
}

.interactive-chip {
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.interactive-chip:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Profile Card */
.profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-md);
}

.profile-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-hairline);
    margin-bottom: 16px;
}

.crest-avatar {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0F294A 0%, #1E40AF 100%);
    color: #FFFFFF;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 19px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    letter-spacing: 0.05em;
}

.card-kicker {
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--accent);
}

.card-name {
    font-family: var(--font-serif);
    font-size: 19px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.25;
}

.card-role {
    font-size: 13px;
    color: var(--text-muted);
}

.dossier-list {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.dossier-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    font-size: 13px;
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--border-hairline);
}

.dossier-item dt {
    color: var(--text-muted);
    font-weight: 500;
    flex-shrink: 0;
}

.dossier-item dd {
    color: var(--text-primary);
    font-weight: 600;
    text-align: right;
}

.mono-highlight {
    font-family: var(--font-mono);
    color: var(--gold) !important;
    font-size: 12.5px;
}

.committee-tags {
    padding-top: 4px;
}

.tag-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.tags-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pill {
    font-size: 11.5px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--bg-alt);
    border: 1px solid var(--border-hairline);
    color: var(--text-secondary);
}

/* Metrics Bar */
.metrics-bar {
    margin-top: 38px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.metric-cell {
    background: var(--bg-card);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-md);
    padding: 16px 14px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.metric-val {
    display: block;
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.15;
    margin-bottom: 4px;
}

.metric-lbl {
    font-size: 11.5px;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.3;
    display: block;
}

/* ==============================================================================
   Sections General
   ============================================================================== */
.section {
    padding: 64px 0;
}

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

.section-header {
    margin-bottom: 32px;
}

.row-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 20px;
}

.section-kicker {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 6px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.65rem, 2.5vw, 2.15rem);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 8px;
}

.section-desc {
    color: var(--text-secondary);
    max-width: 68ch;
    font-size: 15px;
}

/* ==============================================================================
   Experience & Timeline
   ============================================================================== */
.current-role-card {
    background: var(--bg-card);
    border: 1px solid var(--border-hairline);
    border-top: 4px solid #0F294A;
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-md);
    margin-bottom: 36px;
}

[data-theme="dark"] .current-role-card {
    border-top-color: #3B82F6;
}

.role-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-hairline);
    margin-bottom: 22px;
}

.status-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 4px;
    background: var(--emerald-soft);
    color: var(--emerald);
    margin-bottom: 8px;
}

.role-title {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

.role-org {
    font-size: 14.5px;
    color: var(--text-secondary);
    font-weight: 500;
}

.role-period {
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    background: var(--bg-alt);
    border: 1px solid var(--border-hairline);
    color: var(--text-primary);
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.pillar-box {
    background: var(--bg-base);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-md);
    padding: 18px;
}

.pillar-box h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
}

.pillar-box ul {
    list-style: none;
    display: grid;
    gap: 10px;
}

.pillar-box li {
    position: relative;
    padding-left: 14px;
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.55;
}

.pillar-box li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
}

.subsection-heading {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--text-primary);
}

.timeline-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.timeline-card {
    background: var(--bg-card);
    border: 1px solid var(--border-hairline);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow-sm);
}

.tl-date {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 6px;
}

.timeline-card h4 {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.timeline-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* ==============================================================================
   Publications, Book & Patent
   ============================================================================== */
.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-btn {
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-sans);
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: #0F294A;
    border-color: #0F294A;
    color: #FFFFFF;
}

[data-theme="dark"] .filter-btn.active {
    background: #2563EB;
    border-color: #2563EB;
}

.pub-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.pub-card {
    background: var(--bg-card);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-md);
    padding: 22px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.pub-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.pub-card.hidden {
    display: none;
}

.featured-patent {
    border-left: 4px solid var(--gold);
}

.featured-book {
    border-left: 4px solid var(--emerald);
}

.pub-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.badge {
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 4px;
}

.badge-patent {
    background: var(--gold-soft);
    color: var(--gold);
}

.badge-book {
    background: var(--emerald-soft);
    color: var(--emerald);
}

.badge-journal {
    background: var(--accent-soft);
    color: var(--accent);
}

.pub-date {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.pub-title {
    font-family: var(--font-serif);
    font-size: 18.5px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 8px;
}

.pub-venue {
    font-size: 13.5px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.pub-footer {
    padding-top: 12px;
    border-top: 1px solid var(--border-hairline);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 12px;
}

.pub-id {
    font-weight: 600;
    color: var(--text-primary);
}

.pub-tag {
    color: var(--text-muted);
    background: var(--bg-alt);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}

/* ==============================================================================
   Education Grid
   ============================================================================== */
.edu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.edu-card {
    background: var(--bg-card);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.edu-doctoral {
    border-top: 4px solid var(--gold);
}

.edu-year {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 8px;
}

.edu-card h3 {
    font-family: var(--font-serif);
    font-size: 17.5px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
}

.edu-inst {
    font-size: 13.5px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 14px;
    flex-grow: 1;
}

.edu-level {
    font-size: 11.5px;
    color: var(--text-muted);
    padding-top: 10px;
    border-top: 1px solid var(--border-hairline);
}

/* ==============================================================================
   Competencies & Service Dual Grid
   ============================================================================== */
.dual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.panel-card {
    background: var(--bg-card);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-lg);
    padding: 26px;
    box-shadow: var(--shadow-sm);
}

.panel-title {
    font-family: var(--font-serif);
    font-size: 21px;
    font-weight: 700;
    margin-bottom: 10px;
}

.panel-lead {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 18px;
}

.skill-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-chip {
    font-size: 13px;
    font-weight: 600;
    padding: 7px 13px;
    border-radius: var(--radius-sm);
    background: var(--bg-alt);
    border: 1px solid var(--border-hairline);
    color: var(--text-primary);
}

.service-list {
    list-style: none;
    display: grid;
    gap: 12px;
}

.service-list li {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: var(--bg-base);
    border: 1px solid var(--border-hairline);
}

.service-list strong {
    display: block;
    font-size: 14px;
    color: var(--navy);
    margin-bottom: 2px;
}

.service-list span {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ==============================================================================
   Contact & Form
   ============================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.15fr;
    gap: 32px;
    align-items: start;
}

.contact-cards {
    margin-top: 22px;
    display: grid;
    gap: 12px;
}

.c-item {
    background: var(--bg-card);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 13.5px;
}

.c-label {
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.c-action-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.mono-link {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--accent);
}

.mini-copy {
    font-size: 11.5px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 4px;
    border: 1px solid var(--border-strong);
    background: var(--bg-alt);
    color: var(--text-secondary);
    cursor: pointer;
}

.mini-copy:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.contact-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-lg);
    padding: 26px;
    box-shadow: var(--shadow-md);
}

.contact-form-card h3 {
    font-family: var(--font-serif);
    font-size: 21px;
    margin-bottom: 4px;
}

.form-sub {
    font-size: 13.5px;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 14px;
}

.form-row .field {
    margin-bottom: 0;
}

.field label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-secondary);
}

.field input,
.field select,
.field textarea {
    font-family: var(--font-sans);
    font-size: 14px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-strong);
    background: var(--bg-base);
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.15s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--accent);
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.form-feedback {
    margin-top: 12px;
    font-size: 13.5px;
    font-weight: 500;
    min-height: 20px;
}

.form-feedback.ok { color: var(--emerald); }
.form-feedback.err { color: #DC2626; }

/* ==============================================================================
   Footer & Toast
   ============================================================================== */
.footer {
    border-top: 1px solid var(--border-hairline);
    background: var(--bg-alt);
    padding: 24px 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 13px;
}

.footer-left,
.footer-right {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.footer-right {
    text-align: right;
    color: var(--text-secondary);
}

.footer-note {
    font-size: 12px;
    color: var(--text-muted);
}

.toast {
    position: fixed;
    bottom: 22px;
    right: 22px;
    background: #0F294A;
    color: #FFFFFF;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: all 0.2s ease;
    z-index: 200;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* ==============================================================================
   Responsive Breakpoints
   ============================================================================== */
@media (max-width: 1024px) {
    .hero-grid,
    .pillars-grid,
    .dual-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .metrics-bar {
        grid-template-columns: repeat(3, 1fr);
    }

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

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

@media (max-width: 760px) {
    .nav-links {
        display: none;
    }

    .pub-grid,
    .edu-grid,
    .timeline-grid,
    .form-row {
        grid-template-columns: 1fr;
    }

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

    .footer-right {
        text-align: left;
    }

    .hero-identity-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .hero-portrait-frame {
        width: 112px;
        height: 112px;
    }
}

/* ==============================================================================
   Print / PDF CV Styling
   ============================================================================== */
@media print {
    body {
        background: #FFFFFF !important;
        color: #000000 !important;
        font-size: 11pt;
    }

    .navbar,
    .hero-cta-row,
    .filter-tabs,
    .contact-form-card,
    .mini-copy,
    .toast {
        display: none !important;
    }

    .section,
    .hero-section {
        padding: 14pt 0;
        border: none;
    }

    .section-alt {
        background: #FFFFFF !important;
    }

    .profile-card,
    .current-role-card,
    .pub-card,
    .edu-card,
    .panel-card,
    .timeline-card {
        box-shadow: none !important;
        break-inside: avoid;
    }
}
