/* ===== CSS Variables ===== */
:root {
    --peach: #e8a87c;
    --peach-light: #f5d5c8;
    --peach-dark: #d4896a;
    --beige: #faf6f2;
    --beige-dark: #f0e6dc;
    --text-primary: #2d2d2d;
    --text-secondary: #5a5a5a;
    --text-light: #7a7a7a;
    --white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);
    --transition: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--white);
}

a {
    color: var(--peach-dark);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--peach);
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    font-weight: 600;
}

/* ===== Layout ===== */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
}

.section-alt {
    background-color: var(--beige);
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 32px;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--peach), var(--peach-light));
    border-radius: 2px;
}

.section-intro {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 700px;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

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

.nav-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

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

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
}

.nav-links a:hover {
    color: var(--peach-dark);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--peach);
    transition: width var(--transition);
}

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

/* ===== Hero Section ===== */
.hero {
    padding: 160px 24px 100px;
    background: linear-gradient(135deg, var(--white) 0%, var(--beige) 100%);
}

.hero-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-text {
    flex: 1;
}

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

.subtitle {
    font-size: 1.35rem;
    color: var(--peach-dark);
    font-weight: 500;
    margin-bottom: 8px;
}

.affiliation {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.job-market {
    font-size: 1rem;
    color: var(--peach-dark);
    font-weight: 500;
    margin-bottom: 32px;
}

.hero-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image {
    flex-shrink: 0;
}

.profile-photo {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 15%;
    border: 4px solid var(--white);
    box-shadow: var(--shadow-lg);
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1rem;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--peach) 0%, var(--peach-dark) 100%);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(232, 168, 124, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 168, 124, 0.5);
    color: var(--white);
}

.btn-secondary {
    background: var(--white);
    color: var(--text-primary);
    border: 2px solid var(--beige-dark);
}

.btn-secondary:hover {
    border-color: var(--peach);
    color: var(--peach-dark);
}

/* ===== About Section ===== */
#about p {
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

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

/* ===== Research Section ===== */
.research-areas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.research-card {
    background: var(--white);
    padding: 32px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    border: 1px solid var(--beige-dark);
}

.research-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--peach-light);
}

.research-card h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

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

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

.year-heading {
    font-size: 1.25rem;
    color: var(--peach-dark);
    margin-top: 16px;
    margin-bottom: -8px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--peach-light);
}

.year-heading:first-child {
    margin-top: 0;
}

.publication {
    padding: 28px;
    background: var(--beige);
    border-radius: 12px;
    border-left: 4px solid var(--peach);
    transition: all var(--transition);
}

.publication:hover {
    background: var(--beige-dark);
}

.publication h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.authors {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.venue {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 16px;
}

.pub-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.pub-link {
    display: inline-block;
    padding: 6px 14px;
    background: var(--white);
    border: 1px solid var(--peach-light);
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--peach-dark);
    transition: all var(--transition);
}

.pub-link:hover {
    background: var(--peach);
    border-color: var(--peach);
    color: var(--white);
}

/* ===== Talks Section ===== */
.talks-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.talks-list .year-heading {
    margin-top: 24px;
}

.talks-list .year-heading:first-child {
    margin-top: 0;
}

.talk {
    display: flex;
    gap: 24px;
    padding: 20px;
    background: var(--white);
    border-radius: 8px;
    transition: all var(--transition);
}

.talk:hover {
    box-shadow: var(--shadow-sm);
}

.talk-date {
    flex-shrink: 0;
    width: 80px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--peach-dark);
}

.talk-details h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.talk-details h3 a {
    color: var(--text-primary);
}

.talk-details h3 a:hover {
    color: var(--peach-dark);
}

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

.talk-title {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 4px;
}

@media (max-width: 480px) {
    .talk {
        flex-direction: column;
        gap: 8px;
    }

    .talk-date {
        width: auto;
    }
}

/* ===== CV Section ===== */
.cv-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-bottom: 40px;
}

.cv-category h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: var(--peach-dark);
}

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

.cv-category li {
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    border-bottom: 1px solid var(--beige-dark);
}

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

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

.gallery-item {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: transform var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item img {
        height: 200px;
    }
}

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

    .gallery-item img {
        height: 250px;
    }
}

/* ===== Contact Section ===== */
.contact-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 32px 48px;
    background: var(--beige);
    border-radius: 12px;
    transition: all var(--transition);
    text-decoration: none;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    background: var(--beige-dark);
}

.contact-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--peach) 0%, var(--peach-dark) 100%);
    color: var(--white);
    border-radius: 50%;
    font-size: 1.25rem;
    font-weight: 700;
}

.contact-label {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* ===== Footer ===== */
.footer {
    padding: 32px 24px;
    background: var(--text-primary);
    color: var(--text-light);
    text-align: center;
}

.footer p {
    font-size: 0.9rem;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
    }

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

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

    .profile-photo {
        width: 200px;
        height: 200px;
    }

    .section {
        padding: 60px 0;
    }

    .section h2 {
        font-size: 1.75rem;
    }

    .section h2::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .section-alt .container {
        text-align: center;
    }

    .publication {
        text-align: left;
    }

    .pub-links {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 120px 16px 60px;
    }

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

    .subtitle {
        font-size: 1.1rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    .research-card,
    .publication {
        padding: 20px;
    }
}
