/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.125rem;
}

p {
    margin-bottom: 1rem;
    color: #555;
    line-height: 1.7;
}

a {
    color: #CD853F;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #B8860B;
    text-decoration: underline;
}

ul, ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
    color: #555;
}

strong {
    font-weight: 600;
    color: #333;
}

em {
    font-style: italic;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin-left: 2rem;
}

.nav-link {
    color: #555;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #CD853F;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #CD853F;
}

/* Mobile menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Main content */
.main-content {
    margin-top: 70px;
    min-height: calc(100vh - 70px);
}

/* Hero section */
.hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, #faf8f5 0%, #f0e6d2 100%);
    margin-bottom: 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #7f8c8d;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero-description {
    font-size: 1.125rem;
    color: #555;
    line-height: 1.7;
}

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

.profile-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 4px solid #fff;
}

/* Section styles */
.about, .highlights, .research-preview {
    padding: 4rem 0;
}

.about {
    background-color: #fff;
}

.highlights {
    background-color: #f8f9fa;
}

.research-preview {
    background-color: #fff;
}

/* Timeline */
.timeline {
    position: relative;
    margin: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #CD853F;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 4rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #CD853F;
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px #CD853F;
}

.timeline-date {
    font-size: 0.9rem;
    color: #7f8c8d;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-content h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: #555;
}

/* Research areas */
.research-areas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.research-card {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.research-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.research-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

/* CTA Button */
.cta-button-container {
    text-align: center;
    margin-top: 2rem;
}

.cta-button {
    display: inline-block;
    background-color: #CD853F;
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
    background-color: #B8860B;
    transform: translateY(-2px);
    text-decoration: none;
    color: #fff;
}

/* Page header */
.page-header {
    text-align: center;
    padding: 3rem 0;
    background: linear-gradient(135deg, #CD853F 0%, #B8860B 100%);
    color: #fff;
    margin-bottom: 3rem;
}

.page-header h1 {
    color: #fff;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    font-weight: 400;
}

/* Publications */
.publications-section {
    margin-bottom: 4rem;
}

.publications-section h2 {
    border-bottom: 3px solid #CD853F;
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
}

.publication-list {
    margin-bottom: 2rem;
}

.publication-item {
    background: #fff;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #CD853F;
    transition: transform 0.3s ease;
}

.publication-item:hover {
    transform: translateX(5px);
}

.publication-item.featured {
    border-left-color: #e74c3c;
    background: linear-gradient(135deg, #fff 0%, #fff5f5 100%);
}

.publication-item h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

/* Books grid (cards) */
.books-grid {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    margin-bottom: 2rem;
    overflow-x: hidden;
    padding-bottom: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.book-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(180deg, #fff 0%, #fffaf5 100%);
    padding: 1.25rem;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.04);
    min-width: 300px;
    max-width: 320px;
    min-height: 220px;
    flex-shrink: 0;
    flex-grow: 0;
}

.book-card h3 {
    font-size: 1.05rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.book-card .publication-details {
    color: #6b4a2a;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    flex-grow: 1;
}

.book-card .publication-link {
    margin-top: auto;
}

.book-card .publication-link a {
    display: inline-block;
    background-color: #CD853F;
    color: #fff;
    padding: 0.5rem 0.9rem;
    border-radius: 6px;
    text-decoration: none;
    width: 100%;
    text-align: center;
}

.book-card .publication-link a:hover {
    background-color: #B8860B;
}

/* Conference cards (monitor style) */
.conference-grid {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    margin-bottom: 2rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    flex-wrap: nowrap;
    justify-content: center;
}

.conference-card {
    min-width: 320px;
    max-width: 320px;
    width: 320px;
    flex-shrink: 0;
    flex-grow: 0;
}

.monitor-screen {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border: 8px solid #1a1a1a;
    border-radius: 12px 12px 4px 4px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    height: auto;
    display: flex;
    flex-direction: column;
    overflow-y: hidden;
    overflow-x: visible;
}

.monitor-screen::after {
    content: '';
    display: block;
    width: 60px;
    height: 8px;
    background: #1a1a1a;
    margin: 1rem auto -1.5rem;
    border-radius: 0 0 4px 4px;
    position: relative;
    top: 1.5rem;
}

.monitor-screen h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.conference-details {
    color: #ecf0f1;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-top: auto;
}

.publication-details {
    color: #666;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.publication-link {
    margin-top: 0.5rem;
}

.publication-link a {
    font-size: 0.9rem;
    color: #CD853F;
    font-weight: 500;
}

/* Research sections */
.research-section {
    margin-bottom: 4rem;
}

.research-section h2 {
    color: #2c3e50;
    border-bottom: 3px solid #CD853F;
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
}

.research-project {
    background: #fff;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.research-project h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.project-logo {
    margin-bottom: 1.5rem;
    text-align: center;
}

.popcon-logo {
    max-width: 200px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.popcon-logo-inline {
    height: 72px !important;
    max-height: 72px !important;
    width: auto !important;
    max-width: 72px !important;
    vertical-align: middle;
    margin: 0 8px;
    border-radius: 4px;
    display: inline;
    float: left;
    margin-right: 12px;
    margin-top: 2px;
}

.project-details ul {
    margin: 1rem 0;
    list-style: none;
    padding-left: 0;
}

.project-details ul li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.project-details ul li::before {
    content: '🏀';
    position: absolute;
    left: 0;
    font-size: 0.8rem;
}

/* General list styling for basketball bullets */
.about-content ul,
.about-content ol {
    list-style: none;
    padding-left: 0;
}

.about-content ul li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.about-content ul li::before {
    content: '🏀';
    position: absolute;
    left: 0;
    font-size: 0.8rem;
}

.about-content ol {
    counter-reset: item;
}

.about-content ol li {
    counter-increment: item;
    padding-left: 2rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.about-content ol li::before {
    content: counter(item) ')';
    position: absolute;
    left: 0;
    font-weight: 500;
    color: #CD853F;
}

.project-links {
    margin-top: 1rem;
}

.external-link {
    display: inline-block;
    background-color: #34495e;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.external-link:hover {
    background-color: #2c3e50;
    color: #fff;
    text-decoration: none;
}

/* Research timeline */
.research-timeline {
    position: relative;
}

.research-timeline::before {
    content: '';
    position: absolute;
    left: 185px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #CD853F;
}

.research-timeline .timeline-item {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 0;
}

.research-timeline .timeline-item::before {
    content: '';
    position: absolute;
    left: 179px;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #CD853F;
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px #CD853F;
}

.timeline-year {
    font-size: 1.125rem;
    font-weight: 600;
    color: #CD853F;
    text-align: right;
    padding-right: 1rem;
}

/* Methodology grid */
.research-methodologies {
    margin-bottom: 4rem;
}

.methodology-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.methodology-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #CD853F;
}

.methodology-card h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

/* Teaching sections */
.teaching-section {
    margin-bottom: 4rem;
}

.institution {
    background: #fff;
    margin-bottom: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.institution-header {
    background: linear-gradient(135deg, #CD853F, #B8860B);
    color: #fff;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.institution-header h2 {
    color: #fff;
    margin-bottom: 0;
}

.years {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.9;
}

.institution-content {
    padding: 2rem;
}

.teaching-role {
    margin-bottom: 2rem;
}

.teaching-role h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.role-description {
    color: #666;
    font-style: italic;
}

.courses h4 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 0.5rem;
}

.course-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #CD853F;
}

.course-item h5 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.course-details {
    color: #666;
    margin-bottom: 1rem;
}

.course-resources {
    margin-top: 1rem;
}

/* Teaching philosophy */
.teaching-philosophy {
    margin-bottom: 4rem;
}

.philosophy-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.philosophy-item {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    border-top: 4px solid #CD853F;
}

.philosophy-item h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

/* Back link */
.back-link {
    text-align: center;
    margin: 3rem 0;
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #CD853F;
}

.footer-copyright p {
    color: #95a5a6;
    margin: 0;
    font-size: 0.9rem;
}

/* Responsive design */
@media screen and (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 1rem 0;
    }

    .nav-link.active::after {
        display: none;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

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

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

    .research-timeline {
        margin-left: 0;
    }

    .research-timeline::before {
        left: 20px;
    }

    .research-timeline .timeline-item {
        grid-template-columns: 1fr;
        padding-left: 3rem;
    }

    .research-timeline .timeline-item::before {
        left: 14px;
    }

    .timeline-year {
        text-align: left;
        padding-right: 0;
        margin-bottom: 0.5rem;
    }

    .institution-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 2rem 0;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .page-header {
        padding: 2rem 0;
    }

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

    .about, .highlights, .research-preview {
        padding: 2rem 0;
    }

    .research-section, .publications-section, .teaching-section {
        margin-bottom: 2rem;
    }

    .publication-item, .research-project, .institution-content {
        padding: 1rem;
    }

    .timeline-item {
        padding-left: 3rem;
    }

    /* Adjust book cards for mobile - keep horizontal but smaller */
    .books-grid {
        gap: 1rem;
    }

    .book-card {
        min-width: 240px;
        padding: 1rem;
    }

    .book-card h3 {
        font-size: 1rem;
    }

    .book-card .publication-details {
        font-size: 0.9rem;
    }

    /* Adjust conference cards for mobile */
    .conference-grid {
        gap: 1.5rem;
    }

    .conference-card {
        min-width: 280px;
    }

    .monitor-screen {
        padding: 1.25rem;
        height: auto;
    }

    .monitor-screen h3 {
        font-size: 1rem;
    }

    .conference-details {
        font-size: 0.85rem;
    }
}

/* Print styles */
@media print {
    .navbar, .footer, .cta-button, .hamburger {
        display: none;
    }

    .main-content {
        margin-top: 0;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
    }

    h1, h2, h3, h4, h5, h6 {
        color: #000;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    .hero {
        background: none;
        padding: 1rem 0;
    }

    .page-header {
        background: none;
        color: #000;
        padding: 1rem 0;
    }

    .publication-item, .research-project {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }
}
