/* CSS */
:root {
    --primary: #2c3e50;
    --accent: #3498db;
    --text: #333;
    --bg: #fff;
    --light-bg: #f8f9fa;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text);
}

header {
    background: var(--primary);
    color: white;
    padding: 1rem 0;
}

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

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.hero {
    text-align: center;
    padding: 4rem 0;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

section {
    margin: 4rem 0;
}

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

.project-card {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent);
}

.project-card h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    margin-top: 1rem;
}

.skills li {
    background: var(--accent);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

.job {
    margin-bottom: 2rem;
}

.organization {
    color: #666;
    margin-bottom: 0.5rem;
}

footer {
    background: var(--light-bg);
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}
.publication {
    background: var(--light-bg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent);
}

.publication h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.authors {
    color: #555;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.venue-year {
    color: #666;
    font-style: italic;
    margin-bottom: 0.5rem;
}

.citations {
    color: #666;
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.pub-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.pub-links a {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9rem;
}

.pub-links a:hover {
    text-decoration: underline;
}

/* Timeline Section */
#game-jam-timeline {
    padding: 4rem 0;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-intro {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

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

/* Vertical line */
.timeline:before {
    content: '';
    position: absolute;
    left: 80px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--accent), var(--primary));
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    display: flex;
    gap: 2rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* Timeline Marker (Year) */
.timeline-marker {
    position: relative;
    flex-shrink: 0;
    width: 160px;
    text-align: center;
}

.timeline-dot {
    width: 20px;
    height: 20px;
    background: var(--accent);
    border: 4px solid white;
    border-radius: 50%;
    position: absolute;
    left: 71px;
    top: 2rem;
    box-shadow: 0 0 0 3px var(--accent);
    z-index: 2;
}

.timeline-year {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary);
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: inline-block;
}

/* Game Jam Card */
.timeline-content {
    flex: 1;
}

.game-jam-card {
    background: var(--light-bg);
    border-radius: 12px;
    overflow: hidden;
    border-left: 4px solid var(--accent);
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.game-jam-card:hover {
    transform: translateX(8px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.game-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #e0e0e0;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-details {
    padding: 2rem;
}

.jam-theme {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.game-jam-card h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.contributors {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.description {
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.game-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

/* Responsive Timeline */
@media (max-width: 768px) {
    .timeline:before {
        left: 20px;
    }
    
    .timeline-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    .timeline-marker {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 1rem;
    }
    
    .timeline-dot {
        position: static;
        left: auto;
    }
    
    .timeline-year {
        font-size: 1.5rem;
    }
    
    .game-jam-card:hover {
        transform: translateY(-4px);
    }
    
    .game-image {
        height: 200px;
    }
}

/* Other Projects Section */
#other-projects {
    padding: 4rem 0;
    border-top: 2px solid var(--light-bg);
    margin-top: 4rem;
}

.project-list {
    margin-top: 3rem;
}

.project-list h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.project-list-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--light-bg);
}

.project-list-item:last-child {
    border-bottom: none;
}

.project-list-item h4 {
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.project-list-item .project-type {
    background: transparent;
    color: #666;
    padding: 0;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.5rem;
}
/* Hero Section */
.hero {
    text-align: center;
    padding: 6rem 2rem 4rem;
    background: linear-gradient(135deg, var(--light-bg) 0%, #fff 100%);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.tagline {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.bio {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 2rem;
}

.hero-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.hero-links a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.hero-links a:hover {
    text-decoration: underline;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Quick Links */
.quick-links {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

.quick-link-card {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    border-left: 4px solid var(--accent);
    transition: transform 0.2s, box-shadow 0.2s;
}

.quick-link-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.quick-link-card h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.quick-link-card p {
    color: #666;
}

/* About Page */
.about-content {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.bio-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* Experience Section */
.experience-item {
    background: var(--light-bg);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent);
}

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

.experience-item h3 {
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.organization {
    color: var(--accent);
    font-weight: 600;
}

.experience-meta {
    text-align: right;
}

.period, .location {
    color: #666;
    font-size: 0.9rem;
}

.description {
    line-height: 1.6;
    margin-bottom: 1rem;
}

.highlights {
    list-style: none;
    padding-left: 0;
}

.highlights li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
    color: #555;
}

.highlights li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* Research Projects */
.research-project {
    background: var(--light-bg);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent);
}

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

.research-project h3 {
    color: var(--primary);
    margin: 0;
}

.status {
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-ongoing {
    background: #e3f2fd;
    color: #1976d2;
}

.collaborators {
    color: #666;
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

/* Project Type Badge */
.project-type {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Project List (non-featured) */
.project-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.project-list-item {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--light-bg);
}

.project-list-item:last-child {
    border-bottom: none;
}

.project-list-item h3 {
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.project-list-item .project-type {
    background: transparent;
    color: #666;
    padding: 0;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .tagline {
        font-size: 1.2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .experience-header {
        flex-direction: column;
    }
    
    .experience-meta {
        text-align: left;
    }
}
/* Leadership Roles */
#leadership-roles {
    background: var(--light-bg);
    padding: 3rem 2rem;
    margin-bottom: 4rem;
    border-radius: 8px;
}

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

.leadership-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.leadership-card h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.leadership-card .organization {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.leadership-card .institution,
.leadership-card .period {
    color: #666;
    font-size: 0.95rem;
}

/* Research Cards */
#current-research,
#past-research {
    margin-bottom: 4rem;
}

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

.research-card {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--accent);
}

.research-card.current {
    border-left-color: #4caf50;
}

.research-card.past {
    border-left-color: #9e9e9e;
}

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

.research-header h3 {
    color: var(--primary);
    margin: 0;
    font-size: 1.4rem;
}

.subtitle {
    color: #666;
    font-size: 1rem;
    font-style: italic;
    margin-top: 0.25rem;
}

.status-badge {
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.status-badge.current {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-badge.past {
    background: #f5f5f5;
    color: #616161;
}

.research-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.research-meta .period {
    color: var(--accent);
    font-weight: 600;
}

.research-meta .role,
.research-meta .funding {
    color: #666;
}

.research-meta .role:before {
    content: "• ";
    margin-right: 0.25rem;
}

.research-meta .funding:before {
    content: "• ";
    margin-right: 0.25rem;
}

.project-name {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 1rem;
}

.team,
.supervisors,
.advisors {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.description {
    line-height: 1.6;
    margin-bottom: 1rem;
}

.project-status {
    background: #fff3cd;
    padding: 0.75rem;
    border-radius: 4px;
    border-left: 3px solid #ffc107;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.affiliations {
    margin: 1rem 0;
}

.affiliation-tag {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-right: 0.5rem;
    margin-top: 0.5rem;
}

.phd-publications {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 6px;
    margin-top: 1.5rem;
}

.phd-publications strong {
    color: var(--primary);
    display: block;
    margin-bottom: 0.75rem;
}

.phd-publications ul {
    list-style: none;
    padding-left: 0;
}

.phd-publications li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #555;
}

.phd-publications li:before {
    content: "📄";
    position: absolute;
    left: 0;
}

.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.project-links a {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.project-links a:hover {
    text-decoration: underline;
}

/* Publications Section */
#publications {
    padding-top: 4rem;
    border-top: 2px solid var(--light-bg);
}

.publications-intro {
    text-align: center;
    color: #666;
    font-style: italic;
    margin-bottom: 2rem;
}

.publications-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.publication {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent);
}

.publication h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    line-height: 1.4;
}

.authors {
    color: #555;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.venue-year {
    color: #666;
    font-style: italic;
    margin-bottom: 1rem;
}

.venue {
    font-weight: 500;
}

.year {
    margin-left: 0.5rem;
}

.pub-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.pub-links a {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9rem;
}

.pub-links a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .research-grid {
        grid-template-columns: 1fr;
    }
    
    .research-header {
        flex-direction: column;
    }
    
    .status-badge {
        align-self: flex-start;
    }
    
    .research-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .research-meta .role:before,
    .research-meta .funding:before {
        content: "";
    }
}
/* Header and Navigation */
header {
    background: var(--primary);
    color: white;
    padding: 1rem 0;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem; /* Adds space between h1 and ul */
}

nav h1 {
    margin: 0;
    flex-shrink: 0; /* Prevents h1 from shrinking */
}

nav h1 a {
    color: white;
    text-decoration: none;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
    margin-left: auto; /* Pushes ul to the right */
}

nav a {
    color: white;
    text-decoration: none;
    transition: opacity 0.2s;
}

nav a:hover {
    opacity: 0.8;
}

/* Responsive navigation */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    nav ul {
        margin-left: 0;
        justify-content: center;
    }
}