:root {
    --navy: #173f5f;
    --navy-dark: #102f48;
    --blue: #20639b;
    --teal: #3caea3;
    --gold: #f6b64a;
    --cream: #f8f6f1;
    --light: #f5f8fa;
    --white: #ffffff;
    --text: #263238;
    --muted: #61717c;
    --border: #dce5ea;
    --shadow: 0 12px 32px rgba(23, 63, 95, 0.1);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family:
        Inter,
        "Segoe UI",
        Arial,
        Helvetica,
        sans-serif;
    background: var(--white);
    color: var(--text);
    line-height: 1.7;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--blue);
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

/* Navigation */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
}

.nav-container {
    width: min(1180px, calc(100% - 40px));
    min-height: 76px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    color: var(--navy);
    font-size: 1.25rem;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: 0.01em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-links a {
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 650;
    text-decoration: none;
    transition:
        color 0.2s ease,
        border-color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus {
    color: var(--blue);
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    color: var(--navy);
    font-size: 1.8rem;
    cursor: pointer;
}

/* Hero */

.hero {
    min-height: calc(100vh - 76px);
    display: flex;
    align-items: center;
    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(60, 174, 163, 0.18),
            transparent 30%
        ),
        linear-gradient(135deg, #f8fbfc 0%, #edf4f7 100%);
    border-bottom: 1px solid var(--border);
}

.hero-content {
    width: min(1120px, calc(100% - 40px));
    margin: auto;
    padding: 70px 0;
    display: grid;
    grid-template-columns: minmax(280px, 410px) 1fr;
    align-items: center;
    gap: 70px;
}

.hero-photo-wrapper {
    position: relative;
}

.hero-photo-wrapper::before {
    content: "";
    position: absolute;
    inset: -18px 22px 18px -18px;
    border: 3px solid rgba(60, 174, 163, 0.42);
    border-radius: 34px;
}

.hero-photo {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center top;
    border-radius: 30px;
    box-shadow: var(--shadow);
}

.eyebrow,
.section-label {
    margin: 0 0 10px;
    color: var(--teal);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;
    color: var(--navy-dark);
    font-size: clamp(3rem, 7vw, 5.4rem);
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.hero h2 {
    margin: 22px 0 0;
    max-width: 700px;
    color: var(--blue);
    font-size: clamp(1.35rem, 2.8vw, 2.15rem);
    line-height: 1.3;
}

.hero-description {
    max-width: 720px;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 1.12rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

/* Buttons */

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 48px;
    padding: 12px 23px;
    border: 2px solid transparent;
    border-radius: 999px;
    font-weight: 750;
    text-decoration: none;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: var(--navy);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(23, 63, 95, 0.2);
}

.button-primary:hover {
    background: var(--navy-dark);
}

.button-secondary {
    background: var(--white);
    color: var(--navy);
    border-color: var(--navy);
}

.button-outline {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}

/* Main sections */

.section {
    width: min(1100px, calc(100% - 40px));
    margin: auto;
    padding: 90px 0;
    scroll-margin-top: 90px;
}

.section-alt {
    position: relative;
}

.section-alt::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    background: var(--light);
}

.section-heading {
    max-width: 760px;
    margin-bottom: 42px;
}

.section-heading h2,
.resume-box h2 {
    margin: 0;
    color: var(--navy-dark);
    font-size: clamp(2.1rem, 5vw, 3.25rem);
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.8fr);
    gap: 55px;
    align-items: start;
}

.about-text p:first-child {
    margin-top: 0;
}

.about-text p {
    font-size: 1.08rem;
}

.quick-profile,
.content-card,
.featured-card,
.info-card,
.contact-card,
.resume-box {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
}

.quick-profile {
    padding: 28px;
}

.quick-profile h3 {
    margin-top: 0;
    color: var(--navy);
}

.quick-profile dl {
    margin-bottom: 0;
}

.quick-profile dl > div {
    padding: 16px 0;
    border-top: 1px solid var(--border);
}

.quick-profile dt {
    color: var(--navy);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.quick-profile dd {
    margin: 5px 0 0;
    color: var(--muted);
}

/* Academics */

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 30px;
}

.stat-card {
    min-height: 135px;
    padding: 22px 14px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--white);
    text-align: center;
    box-shadow: 0 6px 20px rgba(23, 63, 95, 0.07);
}

.stat-card strong {
    display: block;
    color: var(--navy);
    font-size: 2rem;
    line-height: 1.15;
}

.stat-card span {
    display: block;
    margin-top: 10px;
    color: var(--muted);
    font-size: 0.88rem;
}

.content-card {
    padding: 34px;
}

.content-card h3 {
    margin: 0;
    color: var(--navy);
    font-size: 1.55rem;
}

.content-card h4 {
    margin: 28px 0 10px;
    color: var(--navy);
}

.subheading,
.role {
    color: var(--teal);
    font-weight: 750;
}

/* Lists */

.check-list {
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    margin: 10px 0;
    padding-left: 28px;
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--teal);
    font-weight: 900;
}

/* Research */

.featured-card {
    padding: 40px;
}

.featured-card-header {
    display: flex;
    justify-content: space-between;
    gap: 25px;
    align-items: flex-start;
}

.featured-card h3 {
    margin: 0;
    color: var(--navy);
    font-size: 1.8rem;
}

.date-badge {
    flex-shrink: 0;
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(60, 174, 163, 0.12);
    color: #1e756e;
    font-size: 0.82rem;
    font-weight: 800;
}

.research-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
    margin: 30px 0;
    padding: 28px;
    border-radius: 14px;
    background: var(--light);
}

.research-grid h4,
.featured-card > h4 {
    margin-top: 0;
    color: var(--navy);
}

/* Cards */

.card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.three-column {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card {
    padding: 30px;
}

.info-card h3 {
    margin: 0;
    color: var(--navy);
    font-size: 1.4rem;
}

.info-card ul {
    padding-left: 20px;
}

.info-card li {
    margin: 9px 0;
}

.text-link {
    display: inline-block;
    margin-top: 12px;
    color: var(--blue);
    font-weight: 800;
    text-decoration: none;
}

.text-link:hover {
    text-decoration: underline;
}

.card-icon {
    margin-bottom: 15px;
    font-size: 2.6rem;
}

.music-card {
    height: 100%;
}

/* Timeline */

.timeline {
    position: relative;
    max-width: 900px;
    margin: auto;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: 11px;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 24px;
    margin-bottom: 38px;
}

.timeline-marker {
    z-index: 1;
    width: 24px;
    height: 24px;
    margin-top: 5px;
    border: 5px solid var(--white);
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 0 2px var(--teal);
}

.timeline-content {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
}

.timeline-content h3 {
    margin-top: 0;
    color: var(--navy);
}

/* Achievements */

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

.achievement-grid article {
    padding: 26px;
    border-left: 5px solid var(--teal);
    border-radius: 12px;
    background: var(--light);
}

.achievement-grid h3 {
    margin: 0 0 10px;
    color: var(--navy);
}

.achievement-grid p {
    margin-bottom: 0;
}

/* Resume */

.resume-section {
    padding-top: 65px;
    padding-bottom: 65px;
}

.resume-box {
    padding: 42px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    background:
        linear-gradient(
            135deg,
            rgba(60, 174, 163, 0.08),
            rgba(32, 99, 155, 0.08)
        ),
        var(--white);
}

.resume-box > div:first-child {
    max-width: 680px;
}

.resume-buttons {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Contact */

.contact-card {
    padding: 38px;
}

.contact-card > p {
    max-width: 850px;
    margin-top: 0;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 25px;
}

.contact-links a {
    padding: 11px 17px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--navy);
    font-weight: 750;
    text-decoration: none;
}

.contact-links a:hover {
    border-color: var(--teal);
    background: rgba(60, 174, 163, 0.08);
}

/* Footer */

footer {
    padding: 42px 20px;
    background: var(--navy-dark);
    color: rgba(255, 255, 255, 0.84);
    text-align: center;
}

footer p {
    margin: 6px 0;
}

footer strong {
    color: var(--white);
}

/* Tablet */

@media (max-width: 980px) {

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 76px;
        right: 20px;
        left: 20px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px;
        border: 1px solid var(--border);
        border-radius: 15px;
        background: var(--white);
        box-shadow: var(--shadow);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        display: block;
        padding: 12px 14px;
        border-radius: 9px;
    }

    .nav-links a:hover {
        background: var(--light);
    }

    .hero-content {
        grid-template-columns: 320px 1fr;
        gap: 40px;
    }

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

    .three-column,
    .achievement-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

/* Mobile */

@media (max-width: 760px) {

    .nav-container {
        width: min(100% - 28px, 1180px);
    }

    .brand {
        font-size: 1.08rem;
    }

    .hero {
        min-height: auto;
    }

    .hero-content {
        width: min(100% - 36px, 1120px);
        padding: 55px 0 65px;
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .hero-photo-wrapper {
        width: min(320px, 90%);
        margin: auto;
    }

    .hero-text {
        text-align: center;
    }

    .hero-description {
        margin-right: auto;
        margin-left: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .section {
        width: min(100% - 34px, 1100px);
        padding: 68px 0;
        scroll-margin-top: 84px;
    }

    .about-grid,
    .research-grid,
    .card-grid,
    .three-column,
    .achievement-grid {
        grid-template-columns: 1fr;
    }

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

    .featured-card-header {
        flex-direction: column;
    }

    .featured-card,
    .content-card,
    .quick-profile,
    .info-card,
    .contact-card,
    .resume-box {
        padding: 26px;
    }

    .resume-box {
        flex-direction: column;
        align-items: stretch;
    }

    .resume-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .resume-buttons .button {
        flex: 1;
    }

}

/* Small phones */

@media (max-width: 470px) {

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero-buttons,
    .resume-buttons,
    .contact-links {
        flex-direction: column;
    }

    .button,
    .contact-links a {
        width: 100%;
    }

    .stat-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .stat-card {
        min-height: 115px;
    }

    .timeline-item {
        gap: 15px;
    }

    .timeline-content {
        padding: 22px;
    }

}