/* =============================================
   Dr. Ankitha Prakash Arvan — Portfolio v2
   ============================================= */

:root {
    --green: #2D6A4F;
    --green-dark: #1B4332;
    --green-light: #52B788;
    --green-pale: #D8F3DC;
    --orange: #E76F51;
    --orange-dark: #c9553a;
    --earth: #6b5840;
    --earth-dark: #3d2b1f;
    --earth-mid: #5C4033;
    --earth-light: #C4A77D;
    --sand: #F5E6CC;
    --dark: #111;
    --dark-card: #1a1a1a;
    --text: #2B2B2B;
    --text-sec: #5A5A5A;
    --text-muted: #6b6b6b;
    --white: #fff;
    --off-white: #FAFAF7;
    --border: #e8e4df;
    --font: 'Space Grotesk', -apple-system, sans-serif;
    --serif: 'DM Serif Display', Georgia, serif;
    --radius: 16px;
    --bento-dark: #1f1f1f;
    --bento-darker: #2a2a2a;
    --slate: #4a5568;
    --slate-light: #a0aec0;
    --transition: color 0.35s cubic-bezier(.4,0,.2,1), background-color 0.35s cubic-bezier(.4,0,.2,1), border-color 0.35s cubic-bezier(.4,0,.2,1), box-shadow 0.35s cubic-bezier(.4,0,.2,1), transform 0.35s cubic-bezier(.4,0,.2,1), opacity 0.35s cubic-bezier(.4,0,.2,1);
    --surface-nav: var(--white);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body { font-family: var(--font); color: var(--text); line-height: 1.7; background: var(--white); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: -100%; left: 16px; z-index: 1001; padding: 12px 24px; background: var(--green); color: var(--white); font-weight: 600; font-size: 0.85rem; border-radius: 0 0 8px 8px; }
.skip-link:focus { top: 0; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 28px; }

/* ── NAV ── */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255,255,255,0.95);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.nav-container { max-width: 1100px; margin: 0 auto; padding: 0 28px; display: flex; align-items: center; height: 56px; }
.nav-logo { font-weight: 700; font-size: 0.78rem; letter-spacing: 3px; color: var(--dark); }
.nav-menu { display: flex; list-style: none; gap: 0; margin-left: auto; }
.nav-menu a { padding: 6px 12px; font-size: 0.76rem; font-weight: 500; color: var(--text-sec); border-radius: 6px; letter-spacing: 0.3px; }
.nav-menu a:hover, .nav-menu a.active { color: var(--green); background: var(--green-pale); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--dark); border-radius: 2px; transition: var(--transition); }

/* ── THEME TOGGLE ── */
.theme-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; background: none;
    border: 1px solid var(--border); border-radius: 50%;
    cursor: pointer; color: var(--text-muted);
    margin-left: 12px; flex-shrink: 0; transition: var(--transition);
}
.theme-toggle:hover { color: var(--green); border-color: var(--green); }
.theme-toggle .icon-sun { display: none; }
html.dark .theme-toggle .icon-sun { display: block; }
html.dark .theme-toggle .icon-moon { display: none; }

/* ── ABOUT (Landing Section) ── */
.about-section { padding: 120px 0 100px; background: var(--off-white); }

.about-intro { display: flex; align-items: center; gap: 28px; margin-bottom: 48px; }
.about-photo {
    width: 120px; height: 120px; border-radius: 50%;
    overflow: hidden; flex-shrink: 0;
    border: 3px solid rgba(82,183,136,0.28);
    box-shadow: 0 14px 36px rgba(27,67,50,0.14);
    background: var(--green-pale);
}
.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.about-name-block h1 { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--dark); line-height: 1.2; }
.green-accent { color: var(--green-light); }
.about-role { font-size: 1rem; color: var(--text); font-weight: 500; margin-top: 4px; }
.about-affiliation { font-size: 0.85rem; color: var(--text-sec); }

/* Credentials Strip */
.credentials-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 60px;
}
.credentials-strip span {
    padding: 6px 16px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-sec);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    letter-spacing: 0.3px;
}

/* About Grid */
.about-grid { display: grid; grid-template-columns: 280px 1fr; gap: 48px; align-items: start; }
.about-svg { width: 100%; border-radius: var(--radius); box-shadow: 0 8px 30px rgba(0,0,0,0.08); }
.about-text blockquote {
    font-family: var(--serif); font-size: 1.25rem; font-style: italic;
    color: var(--green-dark); border-left: 3px solid var(--orange);
    padding-left: 20px; margin: 0 0 28px; line-height: 1.6;
}
.about-text p { color: var(--text-sec); margin-bottom: 14px; font-size: 0.92rem; }
.about-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}
.btn-outline {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 22px; font-weight: 600; font-size: 0.82rem;
    color: var(--green); border: 1.5px solid var(--green);
    border-radius: 8px;
}
.btn-outline:hover { background: var(--green); color: var(--white); }

/* ── LABELS & HEADINGS ── */
.label-tag {
    display: inline-block; font-size: 0.65rem; font-weight: 700;
    letter-spacing: 3px; text-transform: uppercase; color: var(--green);
    padding: 4px 12px; border: 1px solid var(--green-pale);
    background: var(--green-pale); border-radius: 20px; margin-bottom: 12px;
}
.label-tag.light { color: var(--green-light); background: rgba(82,183,136,0.12); border-color: rgba(82,183,136,0.2); }
.section-title { font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.5rem); color: var(--dark); margin-bottom: 8px; }
.section-title.light { color: var(--white); }
.section-sub { color: var(--text-sec); font-size: 0.92rem; margin-bottom: 40px; }
.section-sub.light { color: rgba(255,255,255,0.72); }
.green-link { color: var(--green); font-weight: 600; border-bottom: 1px solid var(--green-light); }
.orange-link { color: var(--orange); font-weight: 600; border-bottom: 1px solid var(--orange); }

/* ── RESEARCH — BENTO GRID ── */
.research-section { padding: 80px 0 100px; background: var(--green-dark); }
.bento-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 16px;
}
.bento-card {
    padding: 32px; border-radius: var(--radius);
    transition: var(--transition); position: relative; overflow: hidden;
}
.bento-tag {
    display: inline-block; font-size: 0.6rem; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 8px;
}
.bento-card h3 { font-family: var(--serif); font-size: 1.3rem; margin-bottom: 10px; }
.bento-card p { font-size: 0.88rem; line-height: 1.6; }

.bento-large {
    background: linear-gradient(160deg, var(--dark) 0%, var(--bento-dark) 50%, var(--bento-darker) 100%);
    color: var(--white);
    grid-row: span 2;
    display: flex; flex-direction: column; justify-content: center;
}
.bento-large .bento-tag { color: var(--orange); }
.bento-large h3 { font-size: 1.6rem; }
.bento-large p { color: rgba(255,255,255,0.75); font-size: 0.95rem; }
.bento-large:hover { box-shadow: 0 16px 48px rgba(0,0,0,0.4); }
.bento-badge {
    display: inline-block; margin-top: 16px; padding: 4px 12px;
    font-size: 0.62rem; font-weight: 700; letter-spacing: 1px;
    text-transform: uppercase; color: var(--dark);
    background: var(--orange); border-radius: 20px;
}

.bento-green { background: var(--green); color: var(--white); }
.bento-green .bento-tag { color: var(--green-pale); }
.bento-green p { color: rgba(255,255,255,0.85); }
.bento-green:hover { box-shadow: 0 12px 40px rgba(45,106,79,0.4); }

.bento-earth { background: var(--earth); color: var(--white); }
.bento-earth .bento-tag { color: var(--sand); }
.bento-earth p { color: rgba(255,255,255,0.9); }
.bento-earth:hover { box-shadow: 0 12px 40px rgba(107,88,64,0.4); }

.bento-wide {
    background: var(--slate); color: var(--white);
    grid-column: span 2;
}
.bento-wide .bento-tag { color: #cbd5e0; }
.bento-wide p { color: rgba(255,255,255,0.75); }
.bento-wide:hover { box-shadow: 0 12px 40px rgba(74,85,104,0.4); }

/* ── PUBLICATIONS ── */
.pub-section { padding: 100px 0; background: var(--white); }
.pub-list { max-width: 760px; }
.pub-row {
    display: flex; gap: 20px; padding: 24px 0;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}
.pub-row:hover { transform: translateX(8px); }
.pub-year {
    flex-shrink: 0; font-family: var(--serif); font-size: 1.2rem;
    color: var(--green); width: 54px; padding-top: 2px;
}
.pub-content h4 { font-size: 0.98rem; font-weight: 600; color: var(--dark); margin-bottom: 4px; }
.pub-meta { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 8px; }
.pub-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { padding: 3px 10px; font-size: 0.62rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); background: var(--off-white); border-radius: 20px; border: 1px solid var(--border); }
.pill-award { padding: 3px 10px; font-size: 0.62rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--green); background: var(--green-pale); border-radius: 20px; }
.note { font-size: 0.78rem; color: var(--text-muted); font-style: italic; margin-top: 20px; }

/* ── EXPERIENCE — TIMELINE ── */
.exp-section { padding: 80px 0 100px; background: var(--earth-dark); }
.timeline { position: relative; padding-left: 40px; max-width: 700px; }
.timeline::before {
    content: ''; position: absolute; left: 11px; top: 0; bottom: 0;
    width: 2px; background: rgba(255,255,255,0.15);
}
.timeline-item { position: relative; margin-bottom: 24px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-marker { position: absolute; left: -40px; top: 28px; }
.timeline-dot {
    width: 12px; height: 12px; border-radius: 50%;
    background: rgba(255,255,255,0.25); border: 2px solid rgba(255,255,255,0.4);
    position: relative; z-index: 2;
}
.timeline-item.active .timeline-dot { background: var(--orange); border-color: var(--orange); box-shadow: 0 0 12px rgba(231,111,81,0.4); }
.timeline-card {
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius); padding: 28px; color: var(--white);
    transition: var(--transition);
}
.timeline-card:hover { background: rgba(255,255,255,0.1); transform: translateX(4px); }
.timeline-item.active .timeline-card { background: var(--green); border-color: var(--green); }
.timeline-item.active .timeline-card:hover { box-shadow: 0 8px 30px rgba(45,106,79,0.4); }
.timeline-badge {
    display: inline-block; font-size: 0.6rem; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase; color: #F0967E;
    margin-bottom: 10px;
}
.timeline-item.active .timeline-badge { color: var(--green-pale); }
.timeline-card h3 { font-family: var(--serif); font-size: 1.1rem; margin-bottom: 6px; }
.timeline-org { font-size: 0.8rem; color: rgba(255,255,255,0.7); margin-bottom: 10px; }
.timeline-card p:last-child { font-size: 0.86rem; color: rgba(255,255,255,0.75); }
.timeline-item.active .timeline-card p:last-child { color: rgba(255,255,255,0.8); }

/* ── EDUCATION ── */
.edu-section { padding: 100px 0; background: var(--off-white); }
.edu-stack { display: flex; flex-direction: column; max-width: 640px; }
.edu-item { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--border); align-items: flex-start; }
.edu-item:last-child { border-bottom: none; }
.edu-badge {
    width: 50px; height: 50px; border-radius: 50%;
    background: var(--green-pale); color: var(--green);
    font-family: var(--serif); font-size: 0.95rem;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.edu-item h4 { font-size: 0.92rem; font-weight: 600; color: var(--dark); }
.edu-item p { font-size: 0.82rem; color: var(--text-sec); }
.small-note { font-size: 0.78rem !important; color: var(--text-muted) !important; font-style: italic; margin-top: 4px; }

/* ── TESTIMONIALS ── */
.testimonials-section { padding: 100px 0; background: var(--white); }
.testimonials-carousel { max-width: 760px; margin-top: 32px; }
.testimonials-grid { position: relative; min-height: 320px; }
.testimonial-card {
    display: none;
    padding: 32px;
    background: var(--off-white);
    border: 1px solid var(--border);
    border-left: 3px solid var(--green);
    border-radius: var(--radius);
    transition: var(--transition);
    box-shadow: 0 10px 28px rgba(0,0,0,0.04);
}
.testimonial-card.is-active { display: block; }
.testimonial-card:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.06); }
.testimonial-card blockquote {
    font-size: 0.9rem;
    color: var(--text-sec);
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}
.testimonial-author strong { display: block; font-size: 0.85rem; color: var(--dark); }
.testimonial-author span { font-size: 0.78rem; color: var(--text-muted); }
.testimonial-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 18px;
}
.testimonial-nav {
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--white);
    color: var(--green);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}
.testimonial-nav:hover {
    background: var(--green);
    color: var(--white);
    border-color: var(--green);
}
.testimonial-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex: 1;
}
.testimonial-dot {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.testimonial-dot::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(45,106,79,0.2);
    transition: var(--transition);
}
.testimonial-dot.is-active::after { background: var(--green); transform: scale(1.15); }

/* ── AWARDS ── */
.awards-section { padding: 100px 0; background: var(--off-white); }
.award-featured {
    background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
    border-radius: var(--radius); padding: 40px; margin-bottom: 16px;
    color: var(--white); transition: var(--transition);
}
.award-featured:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(45,106,79,0.3); }
.award-featured-content { display: flex; align-items: center; gap: 24px; }
.award-year-big { font-family: var(--serif); font-size: 3rem; color: var(--green-pale); flex-shrink: 0; line-height: 1; }
.award-featured h3 { font-family: var(--serif); font-size: 1.3rem; margin-bottom: 4px; }
.award-featured p { font-size: 0.9rem; color: rgba(255,255,255,0.85); }

.awards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.award-card {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 24px; transition: var(--transition);
}
.award-card:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.06); border-color: var(--green-light); }
.award-year { font-family: var(--serif); font-size: 1.2rem; color: var(--orange); display: block; margin-bottom: 6px; }
.award-card h3 { font-family: var(--serif); font-size: 0.98rem; margin-bottom: 6px; color: var(--dark); }
.award-card p { font-size: 0.82rem; color: var(--text-sec); }

/* ── NEWSLETTER ── */
.newsletter-section { padding: 80px 0 100px; background: var(--dark); }
.news-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 32px; }
.news-card {
    padding: 28px; background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius); display: flex; flex-direction: column;
    color: var(--white); transition: var(--transition);
}
.news-card:hover { background: rgba(255,255,255,0.07); transform: translateY(-3px); border-color: var(--orange); }
.news-date { font-size: 0.65rem; font-weight: 700; letter-spacing: 2px; color: var(--orange); margin-bottom: 10px; }
.news-card h3 { font-family: var(--serif); font-size: 1.1rem; margin-bottom: 10px; line-height: 1.4; }
.news-card p { font-size: 0.85rem; color: rgba(255,255,255,0.72); flex: 1; }
.read-arrow { color: var(--orange); font-weight: 600; font-size: 0.82rem; margin-top: 16px; }
.cta-center { text-align: center; }
.btn-orange {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 28px; font-family: var(--font);
    font-size: 0.85rem; font-weight: 600;
    color: var(--white); background: var(--orange);
    border: none; border-radius: 10px; cursor: pointer; transition: var(--transition);
}
.btn-orange:hover { background: var(--orange-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(231,111,81,0.3); }

/* ── CONTACT ── */
.contact-section { padding: 100px 0; background: var(--white); }
.contact-header { text-align: center; margin-bottom: 48px; }
.contact-header .section-sub { margin-bottom: 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-links { display: flex; flex-direction: column; gap: 16px; margin-bottom: 28px; }
.contact-links a { display: flex; align-items: center; gap: 14px; color: var(--text-sec); font-size: 0.88rem; }
.contact-links a:hover { color: var(--green); }
.contact-links strong { color: var(--dark); font-size: 0.82rem; }
.contact-links span { font-size: 0.85rem; }
.contact-icon-circle {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--green-pale); color: var(--green);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.social-row { display: flex; gap: 10px; }
.social-row a {
    width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); border: 1px solid var(--border); border-radius: 50%;
}
.social-row a:hover { color: var(--white); background: var(--green); border-color: var(--green); }
.contact-form {
    display: flex; flex-direction: column; gap: 12px;
    background: var(--off-white); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 28px;
}
.contact-form input, .contact-form textarea {
    width: 100%; padding: 12px 16px; font-family: var(--font);
    font-size: 0.86rem; color: var(--text); background: var(--white);
    border: 1px solid var(--border); border-radius: 8px;
    outline: 2px solid transparent;
    transition: var(--transition);
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-pale); }
.contact-form input:invalid:not(:placeholder-shown) { border-color: var(--orange); }
.contact-form textarea { resize: vertical; min-height: 100px; }
.contact-form button {
    padding: 13px; font-family: var(--font); font-size: 0.86rem;
    font-weight: 600; color: var(--white); background: var(--green);
    border: none; border-radius: 8px; cursor: pointer; transition: var(--transition);
}
.contact-form button:hover { background: var(--green-dark); }

/* Form Success */
.form-success {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 16px; padding: 48px 28px; text-align: center;
    background: var(--off-white); border: 1px solid var(--border);
    border-radius: var(--radius); min-height: 280px;
}
.form-success svg { color: var(--green); }
.form-success p { font-size: 0.95rem; color: var(--text-sec); max-width: 300px; }

/* ── FOOTER ── */
.footer { background: var(--dark); padding: 36px 0 20px; color: rgba(255,255,255,0.7); }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-name { font-family: var(--serif); font-size: 1rem; color: var(--white); margin-bottom: 2px; }
.footer-brand p { font-size: 0.78rem; }
.footer-nav { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-nav a { font-size: 0.78rem; padding: 8px 10px; border-radius: 6px; }
.footer-nav a:hover { color: var(--green-light); background: rgba(255,255,255,0.05); }
.copyright { font-size: 0.7rem; color: rgba(255,255,255,0.6); padding-top: 16px; }

/* ── BACK TO TOP ── */
.back-to-top {
    position: fixed; bottom: 32px; right: 32px; z-index: 999;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--green); color: var(--white);
    border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
    pointer-events: none;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--green-dark); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .about-grid { grid-template-columns: 1fr; }
    .about-visual { max-width: 340px; }
    .bento-grid { grid-template-columns: 1fr; }
    .bento-large { grid-row: span 1; }
    .bento-wide { grid-column: span 1; }
    .news-cards { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .awards-grid { grid-template-columns: 1fr 1fr; }
    .testimonials-carousel { max-width: 100%; }
}
@media (max-width: 768px) {
    .nav-menu {
        display: none; position: absolute; top: 56px; left: 0; right: 0;
        background: var(--surface-nav); flex-direction: column; padding: 12px 28px 24px;
        gap: 6px;
        border-bottom: 1px solid var(--border); box-shadow: 0 14px 28px rgba(0,0,0,0.08);
        margin-bottom: 14px;
    }
    .nav-menu.active { display: flex; }
    .theme-toggle { margin-left: auto; }
    .nav-toggle { display: flex; margin-left: 8px; }
    .nav-menu a { padding: 12px 16px; font-size: 0.88rem; display: inline-flex; align-self: flex-start; }
    .about-section { padding: 100px 0 80px; }
    .about-intro { flex-direction: column; text-align: center; }
    .about-photo { width: 100px; height: 100px; }
    .credentials-strip { gap: 6px; }
    .credentials-strip span { font-size: 0.72rem; padding: 5px 12px; }
    .awards-grid { grid-template-columns: 1fr; }
    .award-featured-content { flex-direction: column; text-align: center; }
    .footer-inner { flex-direction: column; gap: 16px; }
    .footer-nav { flex-wrap: wrap; }
    .timeline { padding-left: 32px; }
    .timeline::before { left: 7px; }
    .timeline-marker { left: -32px; }
    .timeline-dot { width: 10px; height: 10px; }
    .testimonials-grid { min-height: 380px; }
    .testimonial-card { padding: 24px; }
    .testimonial-controls { gap: 12px; }
}

/* ── DARK MODE ── */
html.dark {
    --text: #d4d4d4;
    --text-sec: #a0a0a0;
    --text-muted: #888;
    --border: #2a2a2a;
    --surface-nav: #161616;
}
html.dark body { background: #111; }
html.dark .navbar { background: rgba(17,17,17,0.95); border-bottom-color: rgba(255,255,255,0.06); }
html.dark .nav-logo { color: #f0f0f0; }
html.dark .nav-menu a:hover, html.dark .nav-menu a.active { color: var(--green-light); background: rgba(82,183,136,0.1); }
html.dark .nav-toggle span { background: #f0f0f0; }
html.dark .theme-toggle:hover { color: var(--green-light); border-color: var(--green-light); }
html.dark .about-section { background: #161616; }
html.dark .about-name-block h1 { color: #f0f0f0; }
html.dark .about-photo { border-color: rgba(82,183,136,0.2); }
html.dark .about-text blockquote { color: var(--green-light); }
html.dark .credentials-strip span { background: #1e1e1e; }
html.dark .section-title { color: #f0f0f0; }
html.dark .btn-outline { color: var(--green-light); border-color: var(--green-light); }
html.dark .btn-outline:hover { background: var(--green); color: #fff; border-color: var(--green); }
html.dark .green-link { color: var(--green-light); border-bottom-color: var(--green-light); }
html.dark .pub-section { background: #111; }
html.dark .pub-year { color: var(--green-light); }
html.dark .pub-content h4 { color: #f0f0f0; }
html.dark .pill { background: #1e1e1e; }
html.dark .pill-award { color: var(--green-light); background: rgba(82,183,136,0.12); }
html.dark .edu-section { background: #161616; }
html.dark .edu-item h4 { color: #f0f0f0; }
html.dark .edu-badge { color: var(--green-light); background: rgba(82,183,136,0.12); }
html.dark .testimonials-section { background: #111; }
html.dark .testimonial-card { background: #1e1e1e; }
html.dark .testimonial-author strong { color: #f0f0f0; }
html.dark .testimonial-nav { background: #1e1e1e; }
html.dark .testimonial-nav:hover { background: var(--green); border-color: var(--green); color: #fff; }
html.dark .testimonial-card:hover { box-shadow: 0 8px 25px rgba(0,0,0,0.3); }
html.dark .awards-section { background: #161616; }
html.dark .award-card { background: #1e1e1e; }
html.dark .award-card h3 { color: #f0f0f0; }
html.dark .award-card:hover { box-shadow: 0 8px 25px rgba(0,0,0,0.3); }
html.dark .contact-section { background: #111; }
html.dark .contact-links a:hover { color: var(--green-light); }
html.dark .contact-links strong { color: #f0f0f0; }
html.dark .contact-icon-circle { background: rgba(82,183,136,0.12); }
html.dark .contact-form { background: #1e1e1e; }
html.dark .contact-form input, html.dark .contact-form textarea { background: #252525; border-color: #333; }
html.dark .contact-form input:focus, html.dark .contact-form textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(82,183,136,0.15); }
html.dark .form-success { background: #1e1e1e; }
html.dark .about-svg { box-shadow: 0 8px 30px rgba(0,0,0,0.3); }
html.dark .back-to-top { box-shadow: 0 4px 12px rgba(0,0,0,0.4); }
@media (max-width: 768px) {
    html.dark .nav-menu { box-shadow: 0 14px 28px rgba(0,0,0,0.3); }
}

/* ── ANIMATIONS ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* ── FOCUS VISIBLE ── */
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 4px; }
.contact-form input:focus-visible, .contact-form textarea:focus-visible { outline: none; }

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; }
    .back-to-top { transition: none; }
}
