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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* CSS Variables */
:root {
    --primary-color: #2a9d8f;
    --primary-dark: #238b7e;
    --secondary-color: #264653;
    --accent-color: #e9c46a;
    --light-bg: #f8f9fa;
    --text-color: #333;
    --text-light: #666;
    --white: #fff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.15);
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
}

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

.nav-logo {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--secondary-color);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

/* Hero Section */
.hero {
    padding: 120px 20px 80px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #1a3a47 100%);
    color: var(--white);
}

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

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

.hero-image img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.hero-text h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero-text .title {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-weight: 600;
}

.hero-text .affiliation {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 25px;
}

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

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--secondary-color);
}

/* Sections */
.section {
    padding: 80px 20px;
}

.section-alt {
    background: var(--light-bg);
}

.section h2 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 40px;
    text-align: center;
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto 50px;
    text-align: center;
}

.about-content p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--text-light);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.skill-category {
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
}

.skill-category h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

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

.skill-category li {
    padding: 5px 0;
    color: var(--text-light);
    font-size: 0.95rem;
}

.skill-category li::before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 10px;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 120px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
}

.timeline-item {
    display: flex;
    margin-bottom: 40px;
    position: relative;
}

.timeline-date {
    width: 100px;
    flex-shrink: 0;
    font-weight: 600;
    color: var(--primary-color);
    text-align: right;
    padding-right: 30px;
    font-size: 0.9rem;
}

.timeline-content {
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-left: 30px;
    flex-grow: 1;
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: 114px;
    top: 30px;
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 3px solid var(--light-bg);
}

.timeline-content h3 {
    color: var(--secondary-color);
    margin-bottom: 5px;
    font-size: 1.15rem;
}

.timeline-content .institution {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.timeline-content p:last-child {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Publications */
.publications-list {
    max-width: 800px;
    margin: 0 auto;
}

.publication {
    display: flex;
    gap: 25px;
    padding: 25px;
    background: var(--light-bg);
    border-radius: 8px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

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

.pub-year {
    flex-shrink: 0;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.pub-content h3 {
    color: var(--secondary-color);
    font-size: 1.05rem;
    margin-bottom: 8px;
    line-height: 1.4;
}

.pub-content .authors {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.pub-content .journal {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Grants */
.grants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.grant-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
}

.grant-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.grant-card h3 {
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.grant-year {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.grant-card p:last-child {
    color: var(--text-light);
    font-size: 0.95rem;
}

.subsection-title {
    color: var(--secondary-color);
    margin-bottom: 25px;
    text-align: center;
    font-size: 1.4rem;
}

.awards-list {
    max-width: 600px;
    margin: 0 auto;
}

.award {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--white);
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: var(--shadow);
}

.award-icon {
    font-size: 2rem;
}

.award strong {
    color: var(--secondary-color);
    display: block;
    margin-bottom: 5px;
}

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

/* Teaching */
.teaching-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.teaching-card {
    background: var(--light-bg);
    padding: 25px;
    border-radius: 8px;
    text-align: center;
}

.teaching-card h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

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

.committee-list {
    max-width: 600px;
    margin: 0 auto;
    list-style: none;
}

.committee-list li {
    padding: 12px 20px;
    background: var(--light-bg);
    margin-bottom: 10px;
    border-radius: 5px;
    color: var(--text-light);
    border-left: 3px solid var(--primary-color);
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    max-width: 900px;
    margin: 0 auto;
    align-items: start;
}

.contact-form-container {
    background: var(--white);
    padding: 35px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.contact-intro {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 1.05rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.1);
}

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

.contact-form .btn {
    align-self: flex-start;
    cursor: pointer;
    border: none;
}

.contact-info {
    text-align: center;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.contact-icon {
    font-size: 1.3rem;
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
}

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

.social-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.social-link {
    padding: 10px 20px;
    background: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: var(--secondary-color);
    color: var(--white);
    text-align: center;
    padding: 25px 20px;
}

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

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

    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

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

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

    .timeline::before {
        left: 0;
    }

    .timeline-item {
        flex-direction: column;
    }

    .timeline-date {
        text-align: left;
        padding-left: 25px;
        margin-bottom: 10px;
    }

    .timeline-content {
        margin-left: 25px;
    }

    .timeline-content::before {
        left: -6px;
    }

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

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

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-form .btn {
        align-self: stretch;
    }
}

@media (max-width: 480px) {
    .hero-image img {
        width: 180px;
        height: 180px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .grants-grid,
    .skills-grid,
    .teaching-grid {
        grid-template-columns: 1fr;
    }
}
