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

:root {
    --navy: #1B2A4A;
    --navy-deep: #0D1B2A;
    --navy-light: #2C3E6B;
    --maroon: #8B1A1A;
    --maroon-light: #A52A2A;
    --gold: #C9A84C;
    --grey-lightest: #FAFAFA;
    --grey-light: #F0F0F0;
    --grey-mid: #D1D5DB;
    --grey-dark: #6B7280;
    --text-primary: #1A1A1A;
    --text-secondary: #555555;
    --white: #FFFFFF;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.14);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
    line-height: 1.7;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--maroon);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--maroon-light);
}

ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: var(--white);
    border-bottom-color: var(--grey-mid);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 100%;
    margin: 0;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo {
    font-family: 'Oswald', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--navy);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-right: auto;
    white-space: nowrap;
}

.nav-logo:hover {
    color: var(--navy);
}

.nav-links {
    display: flex;
    gap: 4px;
    margin-left: auto;
}

.nav-links a {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--maroon);
    background: rgba(139, 26, 26, 0.06);
}

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

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--navy);
    transition: all 0.3s ease;
    border-radius: 1px;
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--navy-deep);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(13, 27, 42, 0.95) 0%,
        rgba(27, 42, 74, 0.9) 40%,
        rgba(44, 62, 107, 0.85) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 120px 32px 80px;
    max-width: 700px;
}

.hero-photo {
    width: 220px;
    height: 220px;
    margin: 0 auto 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.hero h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 3.2rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 3px;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 8px;
}

.hero-credentials {
    font-family: 'Oswald', sans-serif;
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--gold);
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero-divider {
    width: 60px;
    height: 2px;
    background: var(--gold);
    margin: 0 auto 24px;
}

.hero-title {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.15rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 4px;
}

.hero-dept {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 4px;
}

.hero-institution {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 12px;
}

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

.section-dark {
    background: var(--navy-deep);
    color: var(--white);
}

.section-light {
    background: var(--grey-lightest);
}

.section-title {
    font-family: 'Oswald', sans-serif;
    font-size: 2.4rem;
    font-weight: 500;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0;
}

.section-title.light {
    color: var(--white);
}

.title-bar {
    width: 50px;
    height: 3px;
    background: var(--maroon);
    margin-top: 16px;
    margin-bottom: 32px;
}

.title-bar.light {
    background: var(--gold);
}

.section-subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 48px;
    max-width: 640px;
    line-height: 1.8;
}

.section-subtitle.dark {
    color: var(--text-secondary);
}

.section-subtitle a {
    color: var(--maroon);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ===== About ===== */
.about-content > p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    max-width: 800px;
    line-height: 1.9;
}

.about-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-top: 48px;
}

.detail-card {
    background: var(--grey-lightest);
    padding: 36px;
    border-radius: 4px;
    border-top: 3px solid var(--maroon);
}

.detail-card h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.detail-card ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-card li {
    font-size: 0.95rem;
    color: var(--text-secondary);
    padding-left: 20px;
    position: relative;
    line-height: 1.6;
}

.detail-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 8px;
    height: 2px;
    background: var(--maroon);
}

/* ===== CV Link ===== */
.cv-link {
    margin-top: 40px;
}

.cv-link a {
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--maroon);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 3px;
    transition: all 0.3s ease;
}

.cv-link a:hover {
    color: var(--maroon-light);
    border-bottom-color: var(--maroon);
}

/* ===== OR Banner ===== */
.or-banner {
    width: 100%;
    max-height: 520px;
    overflow: hidden;
    position: relative;
}

.or-banner img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    object-position: center 20%;
    display: block;
    filter: brightness(0.85);
}

@media (max-width: 640px) {
    .or-banner img {
        height: 240px;
    }
}

/* ===== Research Link ===== */
.research-link {
    color: var(--gold) !important;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 8px;
    transition: opacity 0.3s ease;
}

.research-link:hover {
    opacity: 0.8;
    color: var(--gold) !important;
}

/* ===== Research ===== */
.research-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.research-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px 28px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.research-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.research-number {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(201, 168, 76, 0.3);
    margin-bottom: 16px;
    line-height: 1;
}

.research-card h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.research-gif {
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 16px;
}

.research-gif img {
    width: 100%;
    display: block;
    border-radius: 4px;
}

.research-card p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
}

/* ===== Video Portfolio ===== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.video-card {
    background: var(--white);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

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

.video-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--navy-deep);
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-placeholder svg {
    width: 48px;
    height: 48px;
    color: rgba(255, 255, 255, 0.3);
}

.video-card h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 16px 20px 4px;
}

.video-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 0 20px 20px;
    line-height: 1.6;
}

/* When videos are embedded */
.video-thumbnail a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.video-thumbnail .thumbnail-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.video-thumbnail .thumbnail-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-thumbnail:hover .thumbnail-wrapper img {
    transform: scale(1.03);
}

.video-thumbnail .play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease;
}

.video-thumbnail:hover .play-overlay {
    background: rgba(0, 0, 0, 0.15);
}

.video-thumbnail .play-overlay svg {
    width: 56px;
    height: 56px;
    opacity: 0.9;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.video-card iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
    display: block;
}

.video-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ===== Grants & Awards ===== */
.ga-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
}

.ga-divider {
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(201, 168, 76, 0.4), transparent);
}

.ga-column {
    display: flex;
    flex-direction: column;
}

.ga-heading {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ga-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ga-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid var(--gold);
    padding: 18px 22px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.ga-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(4px);
}

.ga-card p {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
}

.ga-card strong {
    color: var(--white);
    font-weight: 600;
}

.ga-card em {
    color: var(--gold);
    font-style: italic;
    font-size: 0.85rem;
}

.ga-role {
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(201, 168, 76, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ga-distinction {
    font-size: 0.8rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 900px) {
    .ga-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .ga-divider {
        width: 100%;
        height: 1px;
        background: linear-gradient(to right, transparent, rgba(201, 168, 76, 0.4), transparent);
    }
}

/* ===== Publications ===== */
.publications-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pub-item {
    padding: 24px 28px;
    background: var(--grey-lightest);
    border-radius: 4px;
    border-left: 3px solid var(--maroon);
    transition: all 0.3s ease;
}

.pub-item:hover {
    box-shadow: var(--shadow-sm);
    transform: translateX(4px);
}

.pub-citation {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.pub-citation strong {
    color: var(--text-primary);
}

/* ===== Select Media ===== */
.media-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.media-item {
    background: var(--white);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.media-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.media-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
}

.media-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.media-item h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 16px 20px;
}

.media-item p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 0 20px 20px;
    line-height: 1.6;
}

.media-article a {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.media-article-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 32px 28px;
    height: 100%;
    min-height: 200px;
}

.media-article-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    color: var(--maroon);
}

.media-article-icon svg {
    width: 100%;
    height: 100%;
}

.media-article h3 {
    padding: 0;
    margin-bottom: 6px;
}

.media-article p {
    padding: 0;
    font-style: italic;
}

.media-source {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--maroon);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.media-thumbnail a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.thumbnail-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.thumbnail-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.media-thumbnail:hover .thumbnail-wrapper img {
    transform: scale(1.03);
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease;
}

.media-thumbnail:hover .play-overlay {
    background: rgba(0, 0, 0, 0.15);
}

.play-overlay svg {
    width: 56px;
    height: 56px;
    opacity: 0.9;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

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

/* ===== Contact ===== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.contact-card {
    background: var(--white);
    padding: 40px 32px;
    border-radius: 4px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

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

.contact-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 20px;
    color: var(--maroon);
}

.contact-icon svg {
    width: 100%;
    height: 100%;
}

.contact-card h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.contact-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.contact-card a {
    font-weight: 600;
}

/* ===== Disclaimer ===== */
.disclaimer {
    background: var(--grey-light);
    padding: 20px 0;
    border-top: 1px solid var(--grey-mid);
}

.disclaimer p {
    font-size: 0.8rem;
    color: var(--grey-dark);
    text-align: center;
    line-height: 1.6;
}

.disclaimer strong {
    color: var(--text-secondary);
}

/* ===== Footer ===== */
.footer {
    background: var(--navy-deep);
    padding: 24px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.5px;
}

/* ===== Highlight ===== */
.highlight {
    font-family: 'Oswald', sans-serif;
    font-size: 1.15em;
    font-weight: 500;
    color: var(--maroon);
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 1px;
}

/* ===== Animations ===== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.fade-in:nth-child(2) { transition-delay: 0.1s; }
.fade-in:nth-child(3) { transition-delay: 0.2s; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .hero h1 {
        font-size: 2.4rem;
        letter-spacing: 2px;
    }

    .hero-credentials {
        font-size: 1.1rem;
        letter-spacing: 4px;
    }

    .hero-photo {
        width: 180px;
        height: 180px;
    }

    .about-details {
        grid-template-columns: 1fr;
    }

    .research-grid {
        grid-template-columns: 1fr;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 72px 0;
    }
}

@media (max-width: 640px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 16px 32px;
        gap: 4px;
        border-bottom: 1px solid var(--grey-mid);
        box-shadow: var(--shadow-md);
    }

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

    .nav-links a {
        padding: 12px 16px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

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

    .hero-photo {
        width: 160px;
        height: 160px;
        margin-bottom: 32px;
    }

    .hero-content {
        padding: 100px 24px 60px;
    }

    .container {
        padding: 0 20px;
    }

    .section {
        padding: 56px 0;
    }

    .section-title {
        font-size: 1.8rem;
    }
}
