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

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --accent-pink: #ec4899;
    --accent-light-blue: #38bdf8;
    --text: #1f2937;
    --text-light: #6b7280;
    --bg: #ffffff;
    --bg-alt: #f9fafb;
    --border: #e5e7eb;
}

html {
    scroll-behavior: smooth;
}

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

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-dark);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

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

nav .logo {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text);
}

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

nav ul a {
    color: var(--text-light);
    font-size: 0.95rem;
}

nav ul a:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 2rem 4rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #fdf2f8 100%);
}

.hero .container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.hero-content .title {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.hero-content .affiliation {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.hero-content .bio {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 540px;
}

.hero-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-light-blue) 0%, var(--accent-pink) 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0ea5e9 0%, #db2777 100%);
    color: white;
}

.btn-outline {
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.profile-photo {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid transparent;
    background:
        linear-gradient(white, white) padding-box,
        linear-gradient(135deg, var(--accent-light-blue), var(--accent-pink)) border-box;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.profile-placeholder {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: white;
    font-weight: 600;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Sections */
section {
    padding: 5rem 2rem;
}

section:nth-child(even) {
    background: var(--bg-alt);
}

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

section h2 {
    font-size: 2rem;
    margin-bottom: 2.5rem;
    color: var(--text);
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.2s;
}

.project-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.project-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.project-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: var(--bg-alt);
    color: var(--text-light);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

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

.skill-category h3 {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    padding: 0.5rem 0;
    color: var(--text-light);
    border-bottom: 1px solid var(--border);
}

.skill-category li:last-child {
    border-bottom: none;
}

/* Education */
.education-item {
    display: flex;
    gap: 2rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
}

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

.education-year {
    color: var(--primary);
    font-weight: 600;
    min-width: 100px;
}

.education-details h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.education-details p {
    color: var(--text-light);
}

/* Contact */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info p {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text);
    font-size: 1rem;
}

.contact-link:hover {
    color: var(--primary);
}

.contact-link svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 0.875rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

/* About Section */
.about-content p {
    color: var(--text);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.about-content p:last-child {
    margin-bottom: 0;
}

/* Research Section */
.research-highlight {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.research-highlight h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.research-meta {
    color: var(--primary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.research-intro {
    color: var(--text);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.finding-box {
    background: linear-gradient(135deg, var(--accent-light-blue) 0%, var(--accent-pink) 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.finding-box h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    opacity: 0.9;
}

.finding-box p {
    font-size: 1.05rem;
    line-height: 1.6;
}

.research-section {
    margin-bottom: 1.5rem;
}

.research-section:last-child {
    margin-bottom: 0;
}

.research-section h4 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.research-section p {
    color: var(--text-light);
    line-height: 1.6;
}

.research-section ul,
.research-section ol {
    padding-left: 1.25rem;
    color: var(--text-light);
}

.research-section li {
    padding: 0.4rem 0;
    line-height: 1.5;
}

.research-note {
    margin-top: 1rem;
    font-style: italic;
    color: var(--text-light);
}

.my-view {
    background: var(--bg-alt);
    padding: 1.25rem;
    border-radius: 8px;
    border-left: 3px solid var(--accent-pink);
}

.my-view p {
    color: var(--text);
    font-style: italic;
    margin-bottom: 0.5rem;
}

.my-view p:last-child {
    margin-bottom: 0;
}

.findings {
    background: var(--bg-alt);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.findings h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.findings ul {
    list-style: none;
}

.findings li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-light);
    line-height: 1.5;
}

.findings li:last-child {
    border-bottom: none;
}

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

.research-questions {
    margin-top: 1.5rem;
}

.research-questions h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.research-questions ul {
    list-style: decimal;
    padding-left: 1.25rem;
}

.research-questions li {
    padding: 0.5rem 0;
    color: var(--text-light);
    line-height: 1.5;
}

.publications {
    margin-top: 2rem;
}

.publications h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.publication {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.publication:last-child {
    border-bottom: none;
}

.pub-title {
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.pub-authors {
    color: var(--text);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.pub-affiliation {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.pub-desc {
    color: var(--text-light);
    font-size: 0.95rem;
}

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

.pub-links a {
    color: var(--primary);
    font-weight: 500;
    font-size: 0.9rem;
}

/* Teaching Section */
.teaching-content,
.applied-content,
.earlier-content {
    max-width: 720px;
}

.teaching-header,
.applied-header,
.earlier-header {
    margin-bottom: 1rem;
}

.teaching-header h3,
.applied-header h3,
.earlier-header h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.teaching-header h3 a,
.applied-header h3 a {
    color: var(--text);
}

.teaching-header h3 a:hover,
.applied-header h3 a:hover {
    color: var(--primary);
}

.institution {
    color: var(--primary);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.period {
    color: var(--text-light);
    font-size: 0.9rem;
}

.teaching-content > p,
.applied-content > p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.curriculum-intro {
    color: var(--text);
    font-weight: 500;
    margin-top: 1.5rem;
}

.curriculum-list {
    padding-left: 1.25rem;
    color: var(--text-light);
}

.curriculum-list li {
    padding: 0.3rem 0;
}

.applied-content h4,
.earlier-content h4 {
    font-size: 1rem;
    margin: 1.5rem 0 0.75rem;
    color: var(--text);
}

.applied-content ul,
.earlier-content ul {
    padding-left: 1.25rem;
    color: var(--text-light);
}

.applied-content li,
.earlier-content li {
    padding: 0.4rem 0;
    line-height: 1.5;
}

.projects-intro {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 1rem;
}

/* Experience Section */
.experience-item {
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
}

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

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.exp-header h3 {
    font-size: 1.1rem;
}

.exp-company {
    color: var(--primary);
    font-weight: 500;
}

.exp-period {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.exp-summary {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-style: italic;
}

.experience-item ul {
    list-style: disc;
    padding-left: 1.25rem;
    color: var(--text-light);
}

.experience-item li {
    padding: 0.25rem 0;
    line-height: 1.5;
}

/* Teaching Section */
.teaching-item {
    margin-bottom: 2rem;
}

.course-topics {
    margin-top: 1.5rem;
}

.course-topics h4 {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.topic-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.teaching-resources {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.teaching-resources h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.teaching-resources p {
    color: var(--text-light);
}

/* Education emphasis */
.emphasis {
    color: var(--primary);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

/* Location */
.location-text {
    color: var(--text-light);
    font-size: 1rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
    font-size: 0.9rem;
    border-top: 1px solid var(--border);
}

footer .disclosure {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
    nav .container {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        gap: 1rem;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.25rem;
    }

    .hero-content .bio {
        max-width: 100%;
    }

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

    .profile-photo {
        width: 200px;
        height: 200px;
        margin: 0 auto 2rem;
        order: -1;
    }

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

    .education-item {
        flex-direction: column;
        gap: 0.5rem;
    }
}
