/* ========================================
   Vanessa K. Le — Academic CV Website
   Color palette: muted greyish green
   ======================================== */

:root {
    --green-dark: #3a4a3f;
    --green-mid: #5a6e5f;
    --green-muted: #7a8e7f;
    --green-light: #a3b5a6;
    --green-pale: #c8d5c9;
    --green-wash: #e8ede9;
    --green-tint: #f3f6f3;
    --cream: #fafbfa;
    --white: #ffffff;
    --text-primary: #2c3530;
    --text-secondary: #4a5750;
    --text-light: #6b7a6f;
    --border: #d4ddd6;
    --serif: 'Cormorant Garamond', 'Georgia', serif;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--cream);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ---- Botanical Decorations ---- */
.botanical-top,
.botanical-bottom {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    color: var(--green-mid);
}

.botanical-top {
    top: 0;
    right: 30px;
    width: 120px;
}

.botanical-bottom {
    bottom: 0;
    left: 30px;
    width: 100px;
}

@media (max-width: 768px) {
    .botanical-top,
    .botanical-bottom {
        display: none;
    }
}

/* ---- Navigation ---- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250, 251, 250, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.nav.scrolled {
    border-bottom-color: var(--border);
    box-shadow: 0 1px 8px rgba(58, 74, 63, 0.06);
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-name {
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--green-dark);
    text-decoration: none;
    letter-spacing: 0.02em;
}

.nav-links {
    display: flex;
    gap: 1.8rem;
}

.nav-links a {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    transition: color 0.2s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--green-muted);
    transition: width 0.3s;
}

.nav-links a:hover {
    color: var(--green-dark);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--green-dark);
    border-radius: 1px;
    transition: transform 0.2s;
}

@media (max-width: 900px) {
    .nav-toggle {
        display: flex;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--cream);
        flex-direction: column;
        padding: 1.5rem 2rem;
        gap: 1rem;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 4px 12px rgba(58, 74, 63, 0.08);
    }
    .nav-links.open {
        display: flex;
    }
}

/* ---- Hero / About ---- */
.hero {
    padding: 8rem 2rem 5rem;
    background: linear-gradient(170deg, var(--green-wash) 0%, var(--cream) 60%);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(163, 181, 166, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    gap: 3.5rem;
    align-items: flex-start;
    position: relative;
    z-index: 1;
}

.hero-photo-wrapper {
    flex-shrink: 0;
}

.hero-photo {
    width: 220px;
    height: 280px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow:
        0 4px 20px rgba(58, 74, 63, 0.12),
        0 1px 4px rgba(58, 74, 63, 0.08);
    border: 3px solid var(--white);
    position: relative;
}

.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    filter: saturate(0.85) contrast(1.02);
    transform: scale(1.08);
}

.hero-text {
    padding-top: 0.5rem;
}

.hero-text h1 {
    font-family: var(--serif);
    font-size: 2.8rem;
    font-weight: 600;
    color: var(--green-dark);
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.hero-title {
    font-family: var(--serif);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--green-mid);
    margin-top: 0.3rem;
    font-style: italic;
}

.hero-affiliation {
    font-size: 0.92rem;
    font-weight: 400;
    color: var(--text-light);
    margin-top: 0.15rem;
}

.hero-rule {
    width: 50px;
    height: 2px;
    background: var(--green-pale);
    margin: 1.2rem 0;
    border-radius: 1px;
}

.hero-summary {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--text-secondary);
    max-width: 580px;
}

.hero-email {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.88rem;
    color: var(--green-mid);
    text-decoration: none;
    border-bottom: 1px solid var(--green-pale);
    padding-bottom: 1px;
    transition: color 0.2s, border-color 0.2s;
}

.hero-email:hover {
    color: var(--green-dark);
    border-color: var(--green-mid);
}

@media (max-width: 768px) {
    .hero {
        padding: 7rem 1.5rem 3.5rem;
    }
    .hero-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
    }
    .hero-photo {
        width: 180px;
        height: 230px;
    }
    .hero-text h1 {
        font-size: 2.2rem;
    }
    .hero-rule {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-summary {
        font-size: 0.9rem;
    }
}

/* ---- Sections ---- */
.section {
    padding: 4rem 2rem;
    position: relative;
    z-index: 1;
}

.section-alt {
    background: var(--green-tint);
}

.section-inner {
    max-width: 900px;
    margin: 0 auto;
}

.section h2 {
    font-family: var(--serif);
    font-size: 1.9rem;
    font-weight: 600;
    color: var(--green-dark);
    margin-bottom: 2rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--green-pale);
}

.subsection-heading {
    font-family: var(--serif);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--green-mid);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.subsection-heading:first-of-type {
    margin-top: 0;
}

/* ---- Timeline (Education, Teaching) ---- */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.timeline-item {
    display: flex;
    gap: 2rem;
}

.timeline-date {
    flex-shrink: 0;
    width: 130px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--green-muted);
    padding-top: 0.15rem;
    text-align: right;
}

.timeline-body h3 {
    font-family: var(--serif);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.35;
}

.institution {
    font-size: 0.88rem;
    color: var(--text-light);
    font-style: italic;
    margin-top: 0.15rem;
}

.timeline-body ul {
    margin-top: 0.5rem;
    padding-left: 1.2rem;
}

.timeline-body li {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 0.2rem;
}

.timeline-body li::marker {
    color: var(--green-light);
}

.timeline-body p:not(.institution) {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.4rem;
}

@media (max-width: 600px) {
    .timeline-item {
        flex-direction: column;
        gap: 0.3rem;
    }
    .timeline-date {
        width: auto;
        text-align: left;
    }
}

/* ---- Experience Cards (Clinical, Research) ---- */
.experience-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1.5rem 1.8rem;
    margin-bottom: 1.2rem;
    transition: box-shadow 0.2s;
}

.section-alt .experience-card {
    background: var(--white);
}

.experience-card:hover {
    box-shadow: 0 2px 12px rgba(58, 74, 63, 0.06);
}

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

.experience-header h4 {
    font-family: var(--serif);
    font-size: 1.08rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.35;
}

.date-badge {
    flex-shrink: 0;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--green-muted);
    background: var(--green-wash);
    padding: 0.2rem 0.65rem;
    border-radius: 3px;
    white-space: nowrap;
}

.experience-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-top: 0.6rem;
    line-height: 1.7;
}

/* Rotations within internship */
.rotation {
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--green-wash);
}

.rotation h5 {
    font-family: var(--serif);
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--text-primary);
}

.rotation-date {
    font-family: var(--sans);
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--text-light);
}

.rotation-site {
    font-size: 0.82rem;
    color: var(--text-light);
    font-style: italic;
    margin-top: 0.1rem;
    margin-bottom: 0.4rem;
}

.rotation p:not(.rotation-site) {
    font-size: 0.86rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ---- Publications ---- */
.publications-list {
    list-style: decimal;
    padding-left: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.publications-list li {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
    padding-left: 0.4rem;
}

.publications-list li::marker {
    color: var(--green-muted);
    font-weight: 600;
}

.publications-list strong {
    color: var(--text-primary);
}

.publications-list em {
    color: var(--text-secondary);
}

/* ---- Presentations ---- */
.presentations-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.presentations-list li {
    font-size: 0.86rem;
    color: var(--text-secondary);
    line-height: 1.7;
    padding-left: 1rem;
    border-left: 2px solid var(--green-pale);
}

.presentations-list strong {
    color: var(--text-primary);
}

.note {
    font-size: 0.84rem;
    color: var(--text-light);
    font-style: italic;
    margin-top: 0.5rem;
}

/* ---- Awards & Memberships (Two-col) ---- */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

@media (max-width: 700px) {
    .two-col {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.two-col h2 {
    font-size: 1.5rem;
}

.clean-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.clean-list li {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.award-year {
    display: inline-block;
    width: 55px;
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--green-muted);
}

.membership-detail {
    display: block;
    font-size: 0.82rem;
    color: var(--text-light);
    padding-left: 0.8rem;
    margin-top: 0.15rem;
}

/* ---- Service Grid ---- */
.mt-section {
    margin-top: 3rem;
}

.service-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

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

.service-item {
    background: var(--green-tint);
    border-radius: 6px;
    padding: 1.2rem 1.4rem;
    border: 1px solid var(--border);
}

.service-item h4 {
    font-family: var(--serif);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.service-item p {
    font-size: 0.84rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ---- Footer ---- */
.footer {
    background: var(--green-dark);
    color: var(--green-pale);
    padding: 3.5rem 2rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.footer-botanical {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    color: var(--green-light);
}

.footer-botanical svg {
    width: 100%;
    height: 100%;
}

.footer-inner {
    position: relative;
    z-index: 1;
}

.footer h2 {
    font-family: var(--serif);
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--green-pale);
    margin-bottom: 0.8rem;
}

.footer-email a {
    font-size: 1.05rem;
    color: var(--green-light);
    text-decoration: none;
    border-bottom: 1px solid rgba(163, 181, 166, 0.3);
    padding-bottom: 1px;
    transition: color 0.2s, border-color 0.2s;
}

.footer-email a:hover {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.4);
}

.footer-affiliation {
    font-size: 0.85rem;
    color: var(--green-muted);
    margin-top: 0.8rem;
    line-height: 1.6;
}

.footer-copy {
    font-size: 0.78rem;
    color: var(--green-muted);
    margin-top: 2rem;
    opacity: 0.7;
}

/* ---- Print Styles ---- */
@media print {
    .nav, .botanical-top, .botanical-bottom, .footer-botanical, .nav-toggle {
        display: none;
    }
    .hero {
        padding-top: 2rem;
    }
    body {
        font-size: 11pt;
    }
    .section {
        padding: 1.5rem 0;
    }
    .experience-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
