:root {
    --primary: #2196F3;
    --primary-dark: #1976D2;
    --text: #333;
    --text-light: #666;
    --bg: #ffffff;
    --bg-alt: #f5f5f5;
    --max-width: 1200px;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--bg);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.logo {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
}

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

section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 4rem 2rem;
}

.hero {
    display: flex;
    align-items: center;
    gap: 3rem;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.hero-image {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.hero-text h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.tagline {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.hero-subtext {
    margin-bottom: 1.5rem;
    max-width: 500px;
}

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

.hero-link {
    padding: 0.6rem 1.2rem;
    border: 1px solid var(--primary);
    color: var(--primary);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.hero-link:hover {
    background: var(--primary);
    color: white;
}

.about h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.about-content p {
    margin-bottom: 1rem;
    max-width: 700px;
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }
    .hero-links {
        justify-content: center;
    }
}

.projects h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

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

.project-card {
    background: var(--bg-alt);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

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

.project-tag {
    display: inline-block;
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    width: fit-content;
    margin-bottom: 0.75rem;
}

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

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

.project-link:hover {
    text-decoration: underline;
}

.experience h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.experience-item {
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--bg-alt);
}

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

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

.experience-header h3 {
    font-size: 1.2rem;
}

.experience-dates {
    color: var(--text-light);
    font-size: 0.9rem;
    white-space: nowrap;
}

.experience-company {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.experience-item ul {
    padding-left: 1.2rem;
}

.experience-item li {
    margin-bottom: 0.5rem;
}

.research h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.research-item p {
    margin-bottom: 1rem;
    max-width: 700px;
}

.research-item ul {
    padding-left: 1.2rem;
    margin-bottom: 1rem;
}

.research-item li {
    margin-bottom: 0.4rem;
    color: var(--text-light);
}

.skills h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

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

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

.skill-category p {
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.7;
}

.education h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.education-item p {
    margin-bottom: 0.5rem;
    max-width: 700px;
}

.awards h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.awards-list {
    list-style: none;
}

.awards-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--bg-alt);
    font-size: 0.95rem;
}

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

.cv-section {
    text-align: center;
    padding: 3rem 2rem;
    margin: 2rem auto;
    background: var(--bg-alt);
    border-radius: 8px;
    max-width: var(--max-width);
}

.cv-download-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
    font-size: 1.1rem;
}

.cv-download-button:hover {
    background-color: var(--primary-dark);
}

.cv-icon {
    width: 24px;
    height: 24px;
}

.cv-description {
    margin-top: 1rem;
    color: var(--text-light);
}

footer#contact {
    text-align: center;
    padding: 3rem 2rem 4rem;
}

footer#contact h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

footer#contact p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
    }
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
}