/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --tan-light: #f5f0e8;
    --tan-medium: #e8dcc8;
    --tan-dark: #d4c4a8;
    --black: #1a1a1a;
    --black-light: #333333;
    --gray: #666666;
    --gray-light: #888888;
}

body {
    font-family: Georgia, 'Times New Roman', serif;
    line-height: 1.7;
    color: var(--black);
    background-color: var(--tan-light);
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation Bar */
nav {
    background-color: var(--tan-light);
    border-bottom: 1px solid var(--tan-dark);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

nav .site-name {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--black);
    text-decoration: none;
}

nav .site-name:hover {
    color: var(--gray);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

nav ul li a {
    color: var(--black-light);
    text-decoration: none;
    font-size: 0.95em;
    transition: color 0.2s ease;
}

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

.hiring-trigger {
    font-family: inherit;
    font-size: 0.9em;
    color: var(--black);
    background: var(--tan-medium);
    border: 1px solid var(--tan-dark);
    border-radius: 999px;
    padding: 6px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hiring-trigger:hover {
    background: var(--black);
    color: white;
    border-color: var(--black);
}

.is-hidden {
    display: none !important;
}

.hiring-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(26, 26, 26, 0.55);
    z-index: 2000;
}

.hiring-dialog {
    position: relative;
    width: min(560px, 92vw);
    background: var(--tan-light);
    border: 1px solid var(--tan-dark);
    border-radius: 6px;
    padding: 30px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
}

.hiring-close {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--tan-dark);
    background: white;
    color: var(--black);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 0.9em;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(26, 26, 26, 0.12);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hiring-close:hover {
    background: var(--tan-medium);
    transform: translateY(-1px);
}

.hiring-close:focus-visible {
    outline: 2px solid var(--black);
    outline-offset: 2px;
}

.hiring-question {
    font-size: 1.2em;
    font-weight: 500;
    margin-bottom: 12px;
    color: var(--black);
}

.hiring-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
}

.hiring-actions--final {
    position: relative;
    min-height: 150px;
    padding-bottom: 10px;
    justify-content: center;
    flex-wrap: nowrap;
}

.hiring-choice {
    font-family: inherit;
    font-size: 1.05em;
    padding: 10px 20px;
    border-radius: 4px;
    border: 1px solid var(--tan-dark);
    background: white;
    color: var(--black);
    cursor: pointer;
    transition: all 0.2s ease;
}

.hiring-choice:hover {
    border-color: var(--black-light);
    color: var(--black);
}

.hiring-choice.primary {
    background: var(--black);
    color: white;
    border-color: var(--black);
}

.hiring-choice.primary:hover {
    background: var(--black-light);
}

.hiring-actions--final .hiring-choice {
    min-width: 150px;
    text-align: center;
}

.hiring-choice.runaway {
    position: relative;
}

.hiring-placeholder {
    visibility: hidden;
    pointer-events: none;
    position: static;
}

.hiring-response {
    margin-top: 18px;
    padding: 16px;
    border-radius: 4px;
    background: var(--tan-medium);
    border: 1px solid var(--tan-dark);
    color: var(--black-light);
    line-height: 1.6;
}

.hiring-contact {
    margin-top: 18px;
    padding: 16px;
    border-radius: 4px;
    background: white;
    border: 1px solid var(--tan-dark);
}

.hiring-contact p {
    margin-bottom: 10px;
    color: var(--black);
    font-weight: 500;
}

.hiring-contact a {
    color: var(--black-light);
    text-decoration: none;
}

.hiring-contact a:hover {
    text-decoration: underline;
}

.confetti {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 3000;
}

.confetti-piece {
    position: absolute;
    top: -10vh;
    opacity: 0.9;
    animation: confetti-fall linear forwards;
}

@keyframes confetti-fall {
    from {
        transform: translateY(-10vh) rotate(var(--spin, 0deg));
    }
    to {
        transform: translateY(110vh) rotate(calc(var(--spin, 0deg) + 360deg));
    }
}

/* Header */
header {
    background-color: var(--tan-light);
    color: var(--black);
    padding: 80px 0 40px 0;
    text-align: left;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 15px;
    font-weight: 400;
    letter-spacing: -0.5px;
}

.tagline {
    font-size: 1.1em;
    color: var(--gray);
    font-weight: 400;
}

/* Contact Info */
.contact-info {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.95em;
}

.contact-info a {
    color: var(--black-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-info a:hover {
    color: var(--gray);
    text-decoration: underline;
}

/* Main Content */
main {
    padding: 40px 0;
}

section {
    margin-bottom: 60px;
}

h2 {
    font-size: 1.6em;
    margin-bottom: 25px;
    color: var(--black);
    border-bottom: 1px solid var(--tan-dark);
    padding-bottom: 10px;
    font-weight: 400;
}

/* About Section */
#about p {
    font-size: 1.05em;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--black-light);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.project-card {
    background: white;
    border: 1px solid var(--tan-dark);
    border-radius: 4px;
    padding: 20px;
    transition: all 0.2s ease;
}

.project-card:hover {
    border-color: var(--black-light);
}

.project-card h3 {
    font-size: 1.2em;
    margin-bottom: 8px;
    font-weight: 500;
}

.project-card h3 a {
    color: var(--black);
    text-decoration: none;
    transition: color 0.2s ease;
}

.project-card h3 a:hover {
    color: var(--gray);
}

.language {
    display: inline-block;
    font-size: 0.85em;
    color: var(--gray);
    margin-bottom: 12px;
    padding: 3px 10px;
    background-color: var(--tan-medium);
    border-radius: 3px;
    font-weight: 400;
}

.project-card .description {
    color: var(--black-light);
    line-height: 1.6;
    margin-bottom: 12px;
    font-size: 0.95em;
    min-height: 60px;
}

.stats {
    display: flex;
    gap: 15px;
    font-size: 0.85em;
    color: var(--gray);
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--tan-medium);
}

.stats span {
    display: flex;
    align-items: center;
}

.github-link {
    display: inline-block;
    margin-top: 8px;
    color: var(--black-light);
    text-decoration: none;
    font-size: 0.85em;
    font-weight: 400;
    transition: color 0.2s ease;
}

.github-link:hover {
    color: var(--black);
    text-decoration: underline;
}

/* Publications Section */
#publications {
    margin-bottom: 60px;
}

.publications-list {
    margin-top: 20px;
}

.publication-item {
    margin-bottom: 20px;
    padding: 15px 0;
    border-bottom: 1px solid var(--tan-medium);
}

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

.publication-title {
    font-size: 1.05em;
    font-weight: 500;
    color: var(--black);
    margin-bottom: 5px;
}

.publication-title a {
    color: var(--black);
    text-decoration: none;
}

.publication-title a:hover {
    text-decoration: underline;
}

.publication-venue {
    font-size: 0.9em;
    color: var(--gray);
    font-style: italic;
}

.coming-soon {
    color: var(--gray);
    font-style: italic;
    font-size: 1em;
}

/* Interests Section */
#interests {
    margin-bottom: 60px;
}

.interests-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.interest-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 1px solid var(--tan-dark);
    padding: 10px 16px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.interest-item:hover {
    border-color: var(--black-light);
}

.interest-emoji {
    font-size: 1.2em;
}

.interest-text {
    font-weight: 400;
    color: var(--black);
    font-size: 0.95em;
}

.interest-link {
    margin-left: 8px;
    font-size: 0.85em;
}

/* Travel Map */
.travel-section-heading {
    margin-top: 30px;
    font-size: 1em;
    font-weight: 500;
    color: var(--black);
}

.travel-map {
    height: 400px;
    margin-top: 15px;
    border-radius: 4px;
    border: 1px solid var(--tan-dark);
}

/* Project Tagline */
.project-tagline {
    font-size: 1.2em;
    font-style: italic;
    margin-bottom: 20px;
}

/* Blog Post Styles */
.blog-post {
    max-width: 700px;
    margin: 0 auto;
    padding: 30px 0;
}

.post-header {
    margin-bottom: 30px;
}

.post-header h2 {
    display: block;
    margin-bottom: 15px;
}

.post-meta {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
}

.post-meta .date {
    color: var(--gray);
    font-size: 0.9em;
}

.code-link {
    display: inline-block;
    padding: 8px 16px;
    background: var(--black);
    color: white;
    text-decoration: none;
    border-radius: 3px;
    font-weight: 400;
    font-size: 0.9em;
    transition: all 0.2s ease;
}

.code-link:hover {
    background: var(--black-light);
}

.post-content {
    line-height: 1.8;
}

.post-content h3 {
    font-size: 1.3em;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--black);
    border-bottom: 1px solid var(--tan-dark);
    padding-bottom: 8px;
    font-weight: 500;
}

.post-content h4 {
    font-size: 1.1em;
    margin-top: 20px;
    margin-bottom: 12px;
    color: var(--black);
    font-weight: 500;
}

.post-content p {
    color: var(--black-light);
    margin-bottom: 18px;
    font-size: 1em;
}

.post-content ul {
    margin-left: 25px;
    margin-bottom: 18px;
    color: var(--black-light);
}

.post-content li {
    margin-bottom: 8px;
    font-size: 1em;
}

.readme-content {
    background: var(--tan-medium);
    border: 1px solid var(--tan-dark);
    border-radius: 4px;
    padding: 20px;
    margin: 15px 0;
}

.readme-content h4 {
    margin-top: 12px;
}

.readme-content a {
    color: var(--black);
    text-decoration: underline;
}

.readme-content a:hover {
    color: var(--gray);
}

.post-footer {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid var(--tan-dark);
}

.back-link {
    color: var(--black-light);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--black);
    text-decoration: underline;
}

/* Home link in header */
.home-link {
    color: var(--black);
    text-decoration: none;
}

.home-link:hover {
    color: var(--gray);
}

/* Skills Section */
.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.skill {
    background: var(--tan-medium);
    color: var(--black);
    padding: 8px 14px;
    border-radius: 3px;
    font-size: 0.9em;
    font-weight: 400;
    border: 1px solid var(--tan-dark);
    transition: all 0.2s ease;
}

.skill:hover {
    border-color: var(--black-light);
}

/* Skills Categories */
.skills-category {
    margin-bottom: 20px;
}

.skills-category h3 {
    font-size: 1em;
    font-weight: 500;
    color: var(--black);
    margin-bottom: 10px;
}

.skills-category .skills-list {
    margin-top: 8px;
}

/* Contact Section */
#contact {
    text-align: left;
}

#contact p {
    font-size: 1em;
    color: var(--black-light);
    margin-bottom: 20px;
}

.contact-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.contact-link {
    display: inline-block;
    padding: 8px 16px;
    background: var(--black);
    color: white;
    text-decoration: none;
    border-radius: 3px;
    font-weight: 400;
    font-size: 0.9em;
    transition: all 0.2s ease;
}

.contact-link:hover {
    background: var(--black-light);
}

/* Footer */
footer {
    background-color: var(--black);
    color: var(--gray-light);
    text-align: center;
    padding: 25px 0;
    margin-top: 40px;
}

/* Experience Section */
#experience, #research, #leadership {
    margin-bottom: 60px;
}

.experience-list {
    margin-top: 20px;
}

.experience-item {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--tan-medium);
}

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

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

.experience-company {
    font-size: 1.1em;
    font-weight: 500;
    color: var(--black);
}

.experience-location {
    font-size: 0.9em;
    color: var(--gray);
}

.experience-title {
    font-size: 1em;
    color: var(--black-light);
    margin-bottom: 5px;
}

.experience-dates {
    font-size: 0.9em;
    color: var(--gray);
    margin-bottom: 10px;
}

.experience-description {
    margin-top: 10px;
}

.experience-description ul {
    margin-left: 20px;
    color: var(--black-light);
}

.experience-description li {
    margin-bottom: 6px;
    font-size: 0.95em;
    line-height: 1.6;
}

/* Resume Section */
#resume {
    margin-bottom: 60px;
}

#resume p {
    color: var(--black-light);
    margin-bottom: 15px;
}

.resume-link {
    display: inline-block;
    padding: 8px 16px;
    background: var(--black);
    color: white;
    text-decoration: none;
    border-radius: 3px;
    font-weight: 400;
    font-size: 0.9em;
    transition: all 0.2s ease;
}

.resume-link:hover {
    background: var(--black-light);
}

/* Education Section */
#education {
    margin-bottom: 60px;
}

.education-item {
    margin-bottom: 20px;
}

.education-school {
    font-size: 1.1em;
    font-weight: 500;
    color: var(--black);
}

.education-degree {
    font-size: 1em;
    color: var(--black-light);
    margin-top: 5px;
}

.education-dates {
    font-size: 0.9em;
    color: var(--gray);
    margin-top: 3px;
}

.education-details {
    font-size: 0.95em;
    color: var(--black-light);
    margin-top: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }

    .tagline {
        font-size: 1em;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    h2 {
        font-size: 1.4em;
    }

    section {
        margin-bottom: 40px;
    }

    nav ul {
        gap: 15px;
    }

    .contact-info {
        flex-direction: column;
        gap: 10px;
    }

    .experience-header {
        flex-direction: column;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 50px 0 30px 0;
    }

    header h1 {
        font-size: 1.8em;
    }

    .tagline {
        font-size: 0.95em;
    }

    main {
        padding: 30px 0;
    }

    h2 {
        font-size: 1.3em;
    }

    .project-card {
        padding: 15px;
    }

    .interests-grid {
        justify-content: flex-start;
    }

    .interest-item {
        padding: 8px 12px;
    }

    .blog-post {
        padding: 15px 0;
    }

    .post-content h3 {
        font-size: 1.1em;
    }

    nav .container {
        flex-direction: column;
        gap: 10px;
    }

    nav ul {
        gap: 15px;
    }
}
