/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

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

/* Header and Navigation */
header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 1rem 0;
}

nav li {
    margin: 0 1.5rem;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover,
nav a.active {
    color: #007bff;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 8rem 0 4rem;
    margin-top: 60px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.resume-btn {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background 0.3s ease;
    border: 2px solid rgba(255,255,255,0.3);
}

.resume-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* Sections */
.section {
    padding: 4rem 0;
    background: white;
    margin-bottom: 2rem;
}

.section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #333;
}

/* CV Section */
.cv-item {
    margin-bottom: 3rem;
}

.cv-item h3 {
    color: #007bff;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
}

.cv-entry {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.cv-entry h4 {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.institution {
    font-weight: 600;
    color: #666;
    margin-bottom: 0.25rem;
}

.date {
    color: #888;
    font-style: italic;
    margin-bottom: 1rem;
}

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

.skill {
    background: #007bff;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

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

.project-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.project-card h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.project-card p {
    color: #666;
    margin-bottom: 1.5rem;
}

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

.project-links a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 2px solid #007bff;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.project-links a:hover {
    background: #007bff;
    color: white;
}

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

.publication-item {
    background: white;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #28a745;
}

.publication-item h3 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.authors {
    color: #666;
    font-style: italic;
    margin-bottom: 0.25rem;
}

.venue {
    color: #888;
    font-weight: 600;
    margin-bottom: 1rem;
}

.description {
    color: #555;
    margin-bottom: 1rem;
}

.publication-item a {
    color: #28a745;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 2px solid #28a745;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.publication-item a:hover {
    background: #28a745;
    color: white;
}

/* Contact Section */
#contact {
    background: #f8f9fa;
}

#contact p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-align: center;
}

#contact a {
    color: #007bff;
    text-decoration: none;
}

#contact a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    nav li {
        margin: 0.25rem 0;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .section h2 {
        font-size: 2rem;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
    }
    
    .skills {
        justify-content: center;
    }
    
    .project-links {
        flex-direction: column;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Section spacing adjustments */
.section:nth-child(even) {
    background: #f8f9fa;
}