/**
 * Sharmin Chougule — Portfolio
 * Design: Editorial Scholar
 * Palette: Ink Navy · Ivory · Oxblood · Gold
 * Fonts: Fraunces (display serif) · Inter (body) · JetBrains Mono (tags)
 */

/* ===== Google Fonts Import ===== */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,300;1,9..144,400&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ===== Design Tokens ===== */
:root {
    --navy:        #0B1F3A;
    --navy-mid:    #162E52;
    --navy-light:  #1E3D6A;
    --ivory:       #F7F3EC;
    --ivory-dark:  #EDE7D9;
    --oxblood:     #7A1F2B;
    --oxblood-lt:  #9B3040;
    --gold:        #B8893A;
    --gold-lt:     #D4A855;
    --white:       #FFFFFF;
    --charcoal:    #2D2D2D;
    --stone:       #6B6B6B;
    --stone-lt:    #9A9A9A;
    --border:      #D8D0C4;

    --ff-display: 'Fraunces', Georgia, serif;
    --ff-body:    'Inter', system-ui, sans-serif;
    --ff-mono:    'JetBrains Mono', 'Courier New', monospace;

    --shadow-sm:  0 1px 3px rgba(11,31,58,.08);
    --shadow-md:  0 4px 16px rgba(11,31,58,.12);
    --shadow-lg:  0 12px 36px rgba(11,31,58,.18);

    --radius-sm:  4px;
    --radius-md:  8px;
    --radius-lg:  16px;

    --transition: all 0.28s ease;
}

/* ===== Reset ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--ff-body);
    background-color: var(--ivory);
    color: var(--charcoal);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Gold rule utility ===== */
.gold-rule {
    display: block;
    width: 48px;
    height: 2px;
    background: var(--gold);
    margin-bottom: 1.25rem;
}

/* ===== Navigation ===== */
.navbar {
    background-color: var(--navy);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
    border-bottom: 1px solid var(--navy-light);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.nav-brand a {
    font-family: var(--ff-display);
    font-size: 1.15rem;
    font-weight: 400;
    font-style: italic;
    color: var(--ivory);
    letter-spacing: .02em;
    transition: var(--transition);
}
.nav-brand a:hover { color: var(--gold-lt); }

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    font-family: var(--ff-body);
    font-size: .8rem;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(247,243,236,.65);
    transition: var(--transition);
    position: relative;
    padding-bottom: 4px;
}
.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 1px;
    background: var(--gold);
    transition: var(--transition);
}
.nav-menu a:hover,
.nav-menu a.active { color: var(--ivory); }
.nav-menu a:hover::after,
.nav-menu a.active::after { width: 100%; }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
}
.hamburger span {
    width: 24px; height: 2px;
    background: var(--ivory);
    transition: var(--transition);
    display: block;
}

/* ===== Hero Section ===== */
.hero {
    background-color: var(--navy);
    padding: 80px 0 64px;
    overflow: hidden;
    position: relative;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(135deg, var(--navy-mid) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    font-family: var(--ff-mono);
    font-size: .7rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
}

.hero-title {
    font-family: var(--ff-display);
    font-size: clamp(2.6rem, 5vw, 4.2rem);
    font-weight: 300;
    color: var(--ivory);
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -.01em;
}

.hero-subtitle {
    font-family: var(--ff-display);
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 400;
    font-style: italic;
    color: var(--gold-lt);
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1rem;
    color: rgba(247,243,236,.75);
    line-height: 1.8;
    max-width: 580px;
    margin-bottom: 2rem;
}

.institution-strip {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1rem;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(184,137,58,.25);
}
.institution-strip span {
    font-family: var(--ff-mono);
    font-size: .68rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(247,243,236,.45);
}
.institution-strip span.sep {
    color: var(--gold);
    font-size: .6rem;
}

.hero-buttons {
    display: flex;
    gap: .875rem;
    flex-wrap: wrap;
}

/* Portrait block */
.hero-portrait {
    position: relative;
    display: flex;
    justify-content: center;
}
.portrait-frame {
    position: relative;
    width: 300px;
    height: 380px;
}
.portrait-frame::before {
    content: '';
    position: absolute;
    top: -12px; right: -12px;
    width: 100%; height: 100%;
    border: 1px solid var(--gold);
    border-radius: var(--radius-md);
    z-index: 0;
}
.portrait-frame::after {
    content: '';
    position: absolute;
    bottom: -12px; left: -12px;
    width: 60%; height: 40%;
    background: var(--oxblood);
    opacity: .25;
    border-radius: var(--radius-md);
    z-index: 0;
}
.profile-img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
    position: relative;
    z-index: 1;
    filter: grayscale(20%) contrast(1.05);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .7rem 1.6rem;
    border-radius: var(--radius-sm);
    font-family: var(--ff-body);
    font-size: .825rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}
.btn-primary {
    background: var(--gold);
    color: var(--navy);
}
.btn-primary:hover {
    background: var(--gold-lt);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(184,137,58,.35);
}
.btn-secondary {
    background: transparent;
    color: var(--ivory);
    border: 1px solid rgba(247,243,236,.35);
}
.btn-secondary:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
}
.btn-outline {
    background: transparent;
    color: var(--navy);
    border: 1px solid var(--navy);
}
.btn-outline:hover {
    background: var(--navy);
    color: var(--ivory);
}
.btn-sm {
    padding: .5rem 1.1rem;
    font-size: .75rem;
}

/* ===== Stat Strip ===== */
.stat-strip {
    background: var(--ivory-dark);
    border-bottom: 1px solid var(--border);
    padding: 0;
}
.stats-row {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
}
.stat-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    border-right: 1px solid var(--border);
    text-align: center;
}
.stat-item:last-child { border-right: none; }
.stat-number {
    font-family: var(--ff-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--navy);
    line-height: 1;
    margin-bottom: .25rem;
}
.stat-label {
    font-family: var(--ff-mono);
    font-size: .62rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--stone);
}

/* ===== Sections ===== */
.section { padding: 80px 0; }
.section-bg { background-color: var(--white); }
.section-ivory { background-color: var(--ivory); }
.section-navy { background-color: var(--navy); }

.section-header {
    margin-bottom: 3rem;
}
.section-header.centered { text-align: center; }
.section-header.centered .gold-rule { margin-left: auto; margin-right: auto; }

.section-label {
    font-family: var(--ff-mono);
    font-size: .68rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--gold);
    display: block;
    margin-bottom: .5rem;
}

.section-title {
    font-family: var(--ff-display);
    font-size: clamp(1.75rem, 3vw, 2.8rem);
    font-weight: 300;
    color: var(--navy);
    line-height: 1.2;
    letter-spacing: -.01em;
}
.section-navy .section-title { color: var(--ivory); }

.section-intro {
    margin-top: .75rem;
    font-size: 1.05rem;
    color: var(--stone);
    max-width: 600px;
    line-height: 1.75;
}

/* ===== About Section ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 4rem;
    align-items: start;
}

.about-body p {
    font-size: 1.02rem;
    color: var(--charcoal);
    line-height: 1.82;
    margin-bottom: 1.25rem;
}

.pull-quote {
    font-family: var(--ff-display);
    font-size: 1.35rem;
    font-style: italic;
    color: var(--navy);
    border-left: 3px solid var(--gold);
    padding: .75rem 1.25rem;
    margin: 1.75rem 0;
    line-height: 1.5;
    background: var(--ivory-dark);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

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

.detail-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.1rem 1.25rem;
    box-shadow: var(--shadow-sm);
}
.detail-card strong {
    display: block;
    font-family: var(--ff-mono);
    font-size: .65rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: .35rem;
}
.detail-card span {
    font-size: .9rem;
    color: var(--charcoal);
    line-height: 1.5;
}

.research-pillars {
    background: var(--navy);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-top: .5rem;
}
.research-pillars h4 {
    font-family: var(--ff-mono);
    font-size: .68rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
}
.pillar-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .6rem 0;
    border-bottom: 1px solid rgba(247,243,236,.08);
    color: var(--ivory);
    font-size: .9rem;
}
.pillar-item:last-child { border-bottom: none; }
.pillar-dot {
    width: 6px; height: 6px;
    background: var(--gold);
    border-radius: 50%;
    flex-shrink: 0;
}

/* ===== Expertise Section ===== */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.expertise-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-top: 3px solid var(--navy);
    border-radius: var(--radius-md);
    padding: 2rem 1.75rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.expertise-card:hover {
    box-shadow: var(--shadow-md);
    border-top-color: var(--gold);
    transform: translateY(-4px);
}
.expertise-card h3 {
    font-family: var(--ff-display);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 1.25rem;
}
.expertise-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .6rem;
}
.expertise-list li {
    display: flex;
    align-items: center;
    gap: .625rem;
    font-size: .9rem;
    color: var(--charcoal);
}
.expertise-list li::before {
    content: '';
    width: 5px; height: 5px;
    background: var(--oxblood);
    border-radius: 50%;
    flex-shrink: 0;
}
.expertise-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}
.etag {
    font-family: var(--ff-mono);
    font-size: .68rem;
    padding: .3rem .7rem;
    background: var(--ivory-dark);
    border: 1px solid var(--border);
    border-radius: 2px;
    color: var(--navy);
    letter-spacing: .04em;
    transition: var(--transition);
}
.etag:hover {
    background: var(--navy);
    color: var(--ivory);
    border-color: var(--navy);
}

/* ===== Publications Section ===== */
.featured-publication {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
    align-items: center;
    background: var(--white);
    border: 1px solid var(--border);
    border-left: 4px solid var(--oxblood);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-md);
}
.featured-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-family: var(--ff-mono);
    font-size: .62rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--oxblood);
    border: 1px solid var(--oxblood);
    border-radius: 2px;
    padding: .25rem .65rem;
    margin-bottom: 1rem;
}
.featured-pub-title {
    font-family: var(--ff-display);
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--navy);
    line-height: 1.3;
    margin-bottom: 1rem;
}
.featured-pub-meta {
    font-family: var(--ff-mono);
    font-size: .7rem;
    letter-spacing: .06em;
    color: var(--stone);
    margin-bottom: 1rem;
}
.featured-pub-abstract {
    font-size: .95rem;
    color: var(--charcoal);
    line-height: 1.75;
    margin-bottom: 1.5rem;
}
.featured-pub-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 280px;
    background: var(--ivory-dark);
}
.featured-pub-image img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.pub-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.pub-tag {
    font-family: var(--ff-mono);
    font-size: .65rem;
    padding: .25rem .7rem;
    background: rgba(122,31,43,.08);
    color: var(--oxblood);
    border-radius: 2px;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.publications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.pub-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.pub-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: var(--navy);
}
.pub-card-image {
    height: 160px;
    overflow: hidden;
    background: var(--ivory-dark);
}
.pub-card-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.pub-card:hover .pub-card-image img { transform: scale(1.05); }
.pub-card-body { padding: 1.25rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.pub-year {
    font-family: var(--ff-mono);
    font-size: .65rem;
    color: var(--gold);
    letter-spacing: .1em;
    margin-bottom: .5rem;
}
.pub-card-title {
    font-family: var(--ff-display);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--navy);
    line-height: 1.35;
    margin-bottom: .75rem;
}
.pub-card-desc {
    font-size: .875rem;
    color: var(--stone);
    line-height: 1.65;
    flex: 1;
    margin-bottom: 1rem;
}
.pub-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: .875rem;
    border-top: 1px solid var(--border);
    margin-top: auto;
}
.pub-link {
    font-size: .8rem;
    font-weight: 600;
    color: var(--navy);
    letter-spacing: .04em;
    text-transform: uppercase;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: .3rem;
}
.pub-link:hover { color: var(--oxblood); }
.pub-link::after { content: ' →'; }

/* ===== Affiliations Section ===== */
.affiliations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}
.affiliation-card {
    background: rgba(247,243,236,.06);
    border: 1px solid rgba(184,137,58,.2);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    transition: var(--transition);
}
.affiliation-card:hover {
    border-color: var(--gold);
    background: rgba(184,137,58,.06);
}
.aff-org {
    font-family: var(--ff-mono);
    font-size: .68rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: .5rem;
}
.aff-role {
    font-family: var(--ff-display);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--ivory);
    line-height: 1.35;
    margin-bottom: .75rem;
}
.aff-desc {
    font-size: .875rem;
    color: rgba(247,243,236,.6);
    line-height: 1.65;
    margin-bottom: 1rem;
}
.aff-link {
    font-family: var(--ff-mono);
    font-size: .68rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--gold);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: .3rem;
}
.aff-link:hover { color: var(--gold-lt); }
.aff-link::after { content: ' ↗'; }

/* ===== Experience / Timeline Section ===== */
.timeline-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 2.5rem;
    border-bottom: 2px solid var(--border);
}
.tab-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--ff-body);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--stone);
    padding: .875rem 1.5rem;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: var(--transition);
}
.tab-btn:hover { color: var(--navy); }
.tab-btn.active {
    color: var(--navy);
    border-bottom-color: var(--gold);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.timeline {
    position: relative;
    padding-left: 2rem;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 6px; top: 0; bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, var(--gold) 0%, var(--border) 100%);
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
    padding-left: 2rem;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.5rem; top: .45rem;
    width: 10px; height: 10px;
    background: var(--white);
    border: 2px solid var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--ivory-dark);
}
.timeline-item.current::before {
    background: var(--gold);
}

.timeline-date {
    font-family: var(--ff-mono);
    font-size: .67rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: .4rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.current-badge {
    background: var(--oxblood);
    color: var(--white);
    font-size: .58rem;
    padding: .15rem .5rem;
    border-radius: 2px;
    letter-spacing: .08em;
    font-family: var(--ff-mono);
    text-transform: uppercase;
}

.timeline-content {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.timeline-content:hover { box-shadow: var(--shadow-md); }

.timeline-content h3 {
    font-family: var(--ff-display);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: .2rem;
}
.timeline-content h4 {
    font-size: .9rem;
    color: var(--oxblood);
    font-weight: 600;
    margin-bottom: .5rem;
}
.timeline-location {
    font-family: var(--ff-mono);
    font-size: .68rem;
    color: var(--stone-lt);
    letter-spacing: .06em;
    margin-bottom: .75rem;
}
.timeline-content p {
    font-size: .9rem;
    color: var(--stone);
    line-height: 1.7;
    margin-bottom: .5rem;
}
.timeline-content p:last-child { margin-bottom: 0; }

.timeline-highlight {
    margin-top: 1rem;
    padding: .875rem 1rem;
    background: rgba(184,137,58,.06);
    border-left: 3px solid var(--gold);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: .875rem;
    color: var(--charcoal);
    line-height: 1.65;
}
.timeline-highlight a {
    color: var(--navy);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.timeline-highlight a:hover { color: var(--gold); }

/* ===== Contact Section ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 3rem;
}
.contact-intro h3 {
    font-family: var(--ff-display);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--navy);
    margin-bottom: 1rem;
}
.contact-intro p {
    font-size: .95rem;
    color: var(--stone);
    line-height: 1.8;
    margin-bottom: 2rem;
}
.contact-list { display: flex; flex-direction: column; gap: .875rem; margin-bottom: 2rem; }
.contact-list-item {
    display: flex;
    flex-direction: column;
    gap: .2rem;
}
.contact-list-item strong {
    font-family: var(--ff-mono);
    font-size: .63rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gold);
}
.contact-list-item a,
.contact-list-item span {
    font-size: .9rem;
    color: var(--charcoal);
    transition: var(--transition);
}
.contact-list-item a:hover { color: var(--navy); text-decoration: underline; }

.contact-social { display: flex; gap: .75rem; flex-wrap: wrap; }
.social-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .5rem 1rem;
    background: var(--ivory-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: .78rem;
    font-weight: 600;
    color: var(--navy);
    transition: var(--transition);
}
.social-link:hover {
    background: var(--navy);
    color: var(--ivory);
    border-color: var(--navy);
    transform: translateY(-2px);
}

/* Contact Form */
.contact-form-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    box-shadow: var(--shadow-md);
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
    display: block;
    font-family: var(--ff-mono);
    font-size: .65rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--navy);
    margin-bottom: .4rem;
    font-weight: 500;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: .7rem .9rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--ff-body);
    font-size: .9rem;
    color: var(--charcoal);
    background: var(--ivory);
    transition: var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--navy);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(11,31,58,.08);
}
.form-group textarea { resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* Flash Messages */
.flash-messages { margin-bottom: 1.25rem; }
.flash-message {
    padding: .875rem 1rem;
    border-radius: var(--radius-sm);
    font-size: .9rem;
    font-weight: 500;
    animation: fadeDown .3s ease-out;
}
.flash-success {
    background: #d1fae5; color: #065f46;
    border: 1px solid #6ee7b7;
}
.flash-error {
    background: #fee2e2; color: #991b1b;
    border: 1px solid #fca5a5;
}
@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===== Footer ===== */
.footer {
    background: var(--navy);
    border-top: 1px solid rgba(184,137,58,.2);
    padding: 2rem 0;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-brand {
    font-family: var(--ff-display);
    font-style: italic;
    font-size: 1rem;
    color: rgba(247,243,236,.5);
}
.footer-copy {
    font-size: .8rem;
    color: rgba(247,243,236,.35);
}
.footer-links {
    display: flex;
    gap: 1.25rem;
}
.footer-links a {
    font-size: .78rem;
    color: rgba(247,243,236,.45);
    transition: var(--transition);
}
.footer-links a:hover { color: var(--gold); }

/* ===== Scroll-reveal ===== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .about-grid { grid-template-columns: 1fr; }
    .about-sidebar { display: grid; grid-template-columns: 1fr 1fr; }
    .expertise-grid { grid-template-columns: repeat(2, 1fr); }
    .featured-publication { grid-template-columns: 1fr; }
    .featured-pub-image { height: 220px; }
}

@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav-menu {
        position: fixed;
        top: 64px; left: -100%;
        width: 100%;
        flex-direction: column;
        background: var(--navy);
        padding: 2rem;
        gap: 1.25rem;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
        z-index: 999;
    }
    .nav-menu.active { left: 0; }
    .nav-menu a { font-size: .9rem; color: var(--ivory); }

    .hero { padding: 48px 0 40px; }
    .hero-content { grid-template-columns: 1fr; gap: 2.5rem; }
    .hero-portrait { order: -1; }
    .portrait-frame { width: 220px; height: 280px; }
    .stats-row { flex-wrap: wrap; }
    .stat-item { flex: 1 1 45%; border-right: none; border-bottom: 1px solid var(--border); }
    .stat-item:nth-last-child(-n+2) { border-bottom: none; }
    .contact-grid { grid-template-columns: 1fr; }
    .expertise-grid { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; gap: 1rem; text-align: center; }
    .timeline-tabs { overflow-x: auto; }
    .tab-btn { white-space: nowrap; padding: .75rem 1rem; }
    .about-sidebar { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero-title { font-size: 2rem; }
    .hero-buttons { flex-direction: column; }
    .btn { width: 100%; justify-content: center; }
    .portrait-frame { width: 180px; height: 230px; }
    .section { padding: 48px 0; }
    .stat-item { flex: 1 1 100%; border-bottom: 1px solid var(--border); }
    .stat-item:last-child { border-bottom: none; }
    .publications-grid { grid-template-columns: 1fr; }
    .affiliations-grid { grid-template-columns: 1fr; }
}
