:root {
    --primary-bg: #1a1612;
    --secondary-bg: #2d2620;
    --accent-gold: #d4af37;
    --accent-copper: #b87333;
    --text-primary: #f5f5f0;
    --text-secondary: #c4b5a0;
    --overlay: rgba(26, 22, 18, 0.85);
}

/* About Page Specific Colors - Teal/Cyan Theme with White Boxes */
body.about-page {
    --primary-bg: #0d3d3d;
    --secondary-bg: #ffffff;
    --accent-gold: #26c6da;
    --accent-copper: #4dd0e1;
    --text-primary: #333333;
    --text-secondary: #555555;
    --overlay: rgba(13, 61, 61, 0.85);
    background: linear-gradient(135deg, #0d3d3d 0%, #1a5555 100%);
}

body.about-page nav {
    background: rgba(13, 61, 61, 0.95);
}

body.about-page nav .logo {
    color: #4dd0e1;
}

body.about-page nav .nav-links a {
    color: #b0e0e6;
}

body.about-page nav .nav-links a:hover,
body.about-page nav .nav-links a.active {
    color: #4dd0e1;
}

body.about-page .page-header {
    background: linear-gradient(135deg, #0d3d3d 0%, #1a5555 100%);
}

body.about-page .page-header h1 {
    background: linear-gradient(135deg, #4dd0e1 0%, #26c6da 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.about-page .page-header p {
    color: #b0e0e6;
}

/* White boxes for about page */
body.about-page .about-content {
    background: #ffffff;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

body.about-page .about-text p {
    color: #333333;
}

body.about-page .content-section h2 {
    color: #26c6da;
}

body.about-page .card,
body.about-page .list-item,
body.about-page .student-card,
body.about-page .year-section,
body.about-page .supervision-note,
body.about-page .publications-note {
    background: #ffffff;
    border-color: rgba(77, 208, 225, 0.3);
}

body.about-page .card:hover,
body.about-page .list-item:hover,
body.about-page .student-card:hover,
body.about-page .year-section:hover {
    border-color: #26c6da;
    box-shadow: 0 10px 30px rgba(77, 208, 225, 0.15);
}

body.about-page .card h3,
body.about-page .list-item h3,
body.about-page .student-info h4 {
    color: #26c6da;
}

body.about-page .card p,
body.about-page .list-item p,
body.about-page .student-info p,
body.about-page .pub-title,
body.about-page .pub-authors {
    color: #333333;
}

body.about-page .date,
body.about-page .student-supervision,
body.about-page .student-topic {
    color: #666666;
}

body.about-page .year-header {
    color: #26c6da;
    background: #ffffff;
}

body.about-page .year-header:hover {
    background: rgba(77, 208, 225, 0.1);
}

body.about-page .year-content {
    background: #ffffff;
    border-top-color: rgba(77, 208, 225, 0.2);
}

body.about-page .resource-link {
    color: #26c6da;
}

body.about-page .resource-link:hover {
    color: #4dd0e1;
}

body.about-page footer {
    background: rgba(13, 61, 61, 0.95);
    border-top-color: rgba(77, 208, 225, 0.3);
}

body.about-page footer p {
    color: #b0e0e6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Work Sans', sans-serif;
    background: var(--primary-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* =====================
   NAVIGATION
===================== */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 22, 18, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--accent-gold);
    text-transform: uppercase;
    text-decoration: none;
}

.logo:hover {
    opacity: 0.8;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-gold);
}

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

/* =====================
   MOBILE MENU BUTTON
===================== */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--accent-gold);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.3rem 0.5rem;
    line-height: 1;
    transition: color 0.2s, transform 0.2s;
    z-index: 1001;
}

.mobile-menu-btn:hover {
    color: #fff;
}

/* =====================
   HERO SECTION
===================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1612 0%, #2d2620 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(184, 115, 51, 0.06) 0%, transparent 50%);
    animation: gradient-shift 15s ease-in-out infinite;
}

@keyframes gradient-shift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.hero-content {
    text-align: center;
    z-index: 1;
    max-width: 1200px;
    padding: 2rem;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-copper) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -2px;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero h2 {
    font-family: 'Work Sans', sans-serif;
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-social {
    margin-top: 3rem;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-social a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-decoration: none;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.hero-social a:hover {
    color: var(--accent-gold);
}

/* =====================
   PAGE HEADER
===================== */
.page-header {
    padding-top: 120px;
    padding-bottom: 60px;
    text-align: center;
    background: linear-gradient(135deg, #1a1612 0%, #2d2620 100%);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
}

.page-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-copper) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    position: relative;
    z-index: 1;
}

.page-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-top: 1rem;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

/* =====================
   MAIN CONTENT
===================== */
main {
    flex: 1;
    padding: 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.content-section {
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease-out;
}

.content-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.content-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.content-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* =====================
   ABOUT PAGE
===================== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-start;
    margin-bottom: 4rem;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.about-image {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    aspect-ratio: 3/4;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 120px;
}

.about-image::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid var(--accent-gold);
    border-radius: 8px;
    opacity: 0.5;
    z-index: 1;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.about-layout {
    max-width: 1200px;
    margin: 0 auto;
}

.about-bio-section {
    position: relative;
}

.about-image-float {
    float: right;
    width: 400px;
    margin: 0 0 2rem 3rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
}

.about-image-float::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid var(--accent-gold);
    border-radius: 8px;
    opacity: 0.5;
    z-index: 1;
}

.about-image-float img {
    width: 100%;
    height: auto;
    display: block;
}

.about-text-flow {
    text-align: justify;
}

.about-text-flow p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* =====================
   GRID LAYOUTS
===================== */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

/* =====================
   STUDENT CARDS
===================== */
.students-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.student-card {
    background: var(--secondary-bg);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
}

.student-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.student-photo {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(184, 115, 51, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.student-info {
    padding: 1.5rem;
}

.student-info h4 {
    color: var(--accent-gold);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

.student-degree {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.student-topic {
    color: var(--accent-copper);
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 0.5rem;
}

.student-supervision {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* =====================
   PUBLICATIONS
===================== */
.publications-years {
    margin-top: 2rem;
}

.year-section {
    margin-bottom: 1.5rem;
    background: var(--secondary-bg);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.year-section:hover {
    border-color: var(--accent-gold);
}

.year-header {
    padding: 1.5rem 2rem;
    background: var(--secondary-bg);
    color: var(--accent-gold);
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    font-family: 'Playfair Display', serif;
}

.year-header::-webkit-details-marker {
    display: none;
}

.year-header::after {
    content: '▼';
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

details[open] .year-header::after {
    transform: rotate(180deg);
}

.year-header:hover {
    background: rgba(212, 175, 55, 0.1);
}

.year-content {
    padding: 2rem;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.publication-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.publication-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.pub-title {
    color: var(--text-primary);
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.pub-authors {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* =====================
   CARDS
===================== */
.card {
    background: var(--secondary-bg);
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-copper));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card:hover::before {
    transform: scaleX(1);
}

.card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

.card .meta {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

/* =====================
   LIST ITEMS
===================== */
.list-item {
    background: var(--secondary-bg);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-gold);
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.list-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.list-item h3 {
    color: var(--accent-gold);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.list-item .date {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.list-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* =====================
   VIDEO CARDS
===================== */
.video-card {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 8px;
    overflow: hidden;
    background: var(--secondary-bg);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.video-card:hover {
    transform: scale(1.05);
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 22, 18, 0.9), transparent);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.video-overlay h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
}

/* =====================
   SPEAKING CARDS
===================== */
.speaking-card {
    text-align: center;
    padding: 2rem;
}

.speaking-card .icon {
    font-size: 3rem;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
}

.speaking-card h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.speaking-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* =====================
   RESOURCE LINKS
===================== */
.resource-link {
    display: inline-block;
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 2px;
}

.resource-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--accent-gold);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.resource-link:hover::after {
    transform: scaleX(1);
}

/* =====================
   FOOTER
===================== */
footer {
    background: var(--primary-bg);
    padding: 3rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    margin-top: auto;
}

footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* =====================
   RESPONSIVE / MOBILE
===================== */
@media (max-width: 900px) {

    /* Show hamburger button */
    .mobile-menu-btn {
        display: block;
    }

    /* Hide nav links by default on mobile */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(26, 22, 18, 0.98);
        flex-direction: column;
        padding: 1rem 0 1.5rem;
        gap: 0;
        border-top: 1px solid rgba(212, 175, 55, 0.2);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    /* Show nav links when open class is added */
    .nav-links.open {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links li a {
        display: block;
        padding: 0.85rem 2rem;
        font-size: 0.9rem;
        letter-spacing: 0.12em;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-links li:last-child a {
        border-bottom: none;
    }

    .nav-links li a:hover {
        background: rgba(212, 175, 55, 0.07);
        color: var(--accent-gold);
    }

    /* About page mobile nav */
    body.about-page .nav-links {
        background: rgba(13, 61, 61, 0.98);
        border-top-color: rgba(77, 208, 225, 0.2);
    }

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

    .about-image {
        max-width: 300px;
        margin: 2rem auto 0;
    }

    .about-image-float {
        float: none;
        width: 100%;
        margin: 0 0 2rem 0;
    }

    main {
        padding: 2rem 1.5rem;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .students-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .page-header {
        padding-top: 100px;
        padding-bottom: 40px;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }

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

    .year-header {
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
    }

    .year-content {
        padding: 1.5rem;
    }

    .publication-item {
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }

    .pub-title {
        font-size: 1rem;
    }

    .list-item {
        padding: 1.5rem;
    }

    .card {
        padding: 2rem;
    }
}

/* =====================
   ANIMATIONS
===================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in-delay-1 {
    animation-delay: 0.2s;
}

.fade-in-delay-2 {
    animation-delay: 0.4s;
}

.fade-in-delay-3 {
    animation-delay: 0.6s;
}
