/* Common Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.gradient-title {
    font-size: 2.5rem;
    font-weight: bold;
    background: linear-gradient(to right, #0070f3, #6b46c1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: #666;
    font-size: 1.1rem;
}

/* Research Section */
.research-section {
    padding: 6rem 0;
    background: #fff;
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.research-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.research-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background: linear-gradient(45deg, #f3f4f6, #ffffff);
}

.card-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #1a202c;
}

.card-description {
    color: #4a5568;
    line-height: 1.6;
}

/* Publications Section */
.publications-section {
    padding: 6rem 0;
    background: #f8fafc;
}

.year-section {
    margin-bottom: 4rem;
}

.year-title {
    font-size: 2rem;
    font-weight: bold;
    color: #1a202c;
    margin-bottom: 2rem;
}

.publication-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.publication-card:hover {
    transform: translateY(-3px);
}

.pub-type {
    display: inline-block;
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    background: #e5e7eb;
    color: #4b5563;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.pub-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #1a202c;
    margin-bottom: 0.5rem;
}

.pub-authors {
    color: #4b5563;
    margin-bottom: 0.5rem;
}

.pub-venue {
    color: #6b7280;
    font-style: italic;
}

.download-link {
    display: inline-flex;
    align-items: center;
    color: #2563eb;
    text-decoration: none;
    margin-top: 1rem;
    transition: color 0.3s ease;
}

.download-link:hover {
    color: #1d4ed8;
}

.download-link i {
    margin-right: 0.5rem;
}

/* Teaching Section */
.teaching-section {
    padding: 6rem 0;
    background: #fff;
}

.teaching-timeline {
    max-width: 900px;
    margin: 0 auto;
}

.teaching-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.teaching-card:hover {
    transform: translateY(-3px);
}

.period-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(to right, #0070f3, #6b46c1);
    color: white;
    border-radius: 9999px;
    font-weight: 500;
    margin-bottom: 1rem;
}

.institution {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1a202c;
    margin-bottom:0.5rem;
}

.location {
    color: #4b5563;
    margin-bottom: 0.5rem;
}

.role {
    color: #2563eb;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.course-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: #f3f4f6;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease;
}

.course-item:hover {
    background: #e5e7eb;
}

.course-item i {
    color: #2563eb;
    margin-right: 0.75rem;
    font-size: 1.25rem;
}

/* CV Section */
.cv-section {
    padding: 6rem 0;
    background: #f8fafc;
}

.cv-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.cv-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.cv-card:hover {
    transform: translateY(-5px);
}

.cv-preview {
    aspect-ratio: 210/297;
    background: #f3f4f6;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.cv-preview iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.download-cv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(to right, #0070f3, #6b46c1);
    color: white;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.download-cv-btn:hover {
    transform: translateY(-2px);
}

.download-cv-btn i {
    margin-right: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gradient-title {
        font-size: 2rem;
    }

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

    .cv-container {
        grid-template-columns: 1fr;
    }

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

    .teaching-card {
        padding: 1.5rem;
    }
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    .research-section,
    .teaching-section {
        background: #111827;
    }

    .publications-section,
    .cv-section {
        background: #1f2937;
    }

    .research-card,
    .publication-card,
    .teaching-card,
    .cv-card {
        background: #1f2937;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    }

    .card-title {
        color: #f3f4f6;
    }

    .card-description,
    .pub-authors,
    .pub-venue,
    .location {
        color: #9ca3af;
    }

    .course-item {
        background: #374151;
    }

    .course-item:hover {
        background: #4b5563;
    }

    .pub-type {
        background: #374151;
        color: #e5e7eb;
    }

    .section-subtitle {
        color: #9ca3af;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Gradient backgrounds for research cards */
.blue-gradient .card-icon {
    background: linear-gradient(135deg, #60a5fa20, #3b82f620);
    color: #3b82f6;
}

.purple-gradient .card-icon {
    background: linear-gradient(135deg, #a78bfa20, #7c3aed20);
    color: #7c3aed;
}

.indigo-gradient .card-icon {
    background: linear-gradient(135deg, #818cf820, #4f46e520);
    color: #4f46e5;
}

.pink-gradient .card-icon {
    background: linear-gradient(135deg, #f472b620, #db277820);
    color: #db2777;
}

.green-gradient .card-icon {
    background: linear-gradient(135deg, #4ade8020, #16a34a20);
    color: #16a34a;
}

.yellow-gradient .card-icon {
    background: linear-gradient(135deg, #fbbf2420, #d9770620);
    color: #d97706;
}