/* ===========================
   Global Styles & Reset
   =========================== */

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

:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #64748b;
    --accent-color: #0ea5e9;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

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

/* ===========================
   Navigation Bar
   =========================== */

.navbar {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

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

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
    background-color: var(--bg-light);
}

/* ===========================
   Hero Section
   =========================== */

.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6rem 0;
    text-align: center;
}

.profile-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.profile-text {
    text-align: left;
    flex: 1;
}

.profile-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.profile-text .subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

/* ===========================
   Buttons
   =========================== */

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

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

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

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

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

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn:disabled:hover {
    transform: none;
}

/* ===========================
   Sections
   =========================== */

.about,
.highlights,
.cta,
.publications,
.projects,
.skills,
.experience {
    padding: 4rem 0;
}

.about {
    background-color: var(--bg-white);
}

.about h2,
.highlights h2,
.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-dark);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.125rem;
    color: var(--text-light);
}

.about-content p {
    margin-bottom: 1rem;
}

/* ===========================
   Highlights Grid
   =========================== */

.highlights {
    background-color: var(--bg-light);
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.highlight-card {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.highlight-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.highlight-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

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

/* ===========================
   CTA Section
   =========================== */

.cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.cta h2 {
    color: white;
}

.cta p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

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

/* ===========================
   Page Header
   =========================== */

.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* ===========================
   Publications Page
   =========================== */

.publications {
    background-color: var(--bg-white);
}

.publication-filters {
    margin-bottom: 3rem;
    text-align: center;
}

.publication-filters h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.filter-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--border-color);
    background-color: var(--bg-white);
    color: var(--text-dark);
    border-radius: 2rem;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.publications-list {
    max-width: 900px;
    margin: 0 auto;
}

.publication-item {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    margin-bottom: 2rem;
    background-color: var(--bg-light);
    border-radius: 0.5rem;
    border-left: 4px solid var(--primary-color);
    transition: box-shadow 0.3s ease;
}

.publication-item:hover {
    box-shadow: var(--shadow-lg);
}

.publication-year {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    min-width: 60px;
}

.publication-content {
    flex: 1;
}

.publication-title {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.publication-authors {
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.publication-venue {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.publication-abstract {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

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

.pub-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border: 1px solid var(--primary-color);
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

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

.note-box {
    margin-top: 3rem;
    padding: 1.5rem;
    background-color: #eff6ff;
    border-left: 4px solid var(--accent-color);
    border-radius: 0.5rem;
}

.note-box a {
    color: var(--primary-color);
    font-weight: 600;
}

/* ===========================
   Projects Page
   =========================== */

.projects {
    background-color: var(--bg-white);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.project-card {
    background-color: var(--bg-white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.project-card.featured {
    grid-column: span 2;
}

.project-preview {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.neurodamus-preview {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.placeholder-gradient-1 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.placeholder-gradient-2 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.placeholder-gradient-3 {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.placeholder-gradient-4 {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.placeholder-gradient-5 {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

.placeholder-content {
    text-align: center;
    color: white;
}

.project-icon {
    font-size: 3rem;
}

.placeholder-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.project-info {
    padding: 2rem;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.project-info p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--bg-light);
    color: var(--primary-color);
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.info-box {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
}

.info-box h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.info-box p {
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* ===========================
   Experience Timeline
   =========================== */

.experience {
    background-color: var(--bg-white);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 3rem auto 0;
}

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

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 3rem;
}

.timeline-marker {
    position: absolute;
    left: 11px;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 3px solid var(--bg-white);
    box-shadow: 0 0 0 3px var(--bg-light);
}

.timeline-content {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s ease;
}

.timeline-content:hover {
    box-shadow: var(--shadow-lg);
}

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

.timeline-header h3 {
    color: var(--text-dark);
    font-size: 1.25rem;
    margin: 0;
}

.timeline-date {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

.timeline-company {
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 1rem;
}

.timeline-details {
    list-style: none;
    padding: 0;
}

.timeline-details li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-light);
    line-height: 1.6;
}

.timeline-details li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* ===========================
   Education Section
   =========================== */

.education {
    background-color: var(--bg-light);
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.education-card {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.education-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.degree-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.education-card h3 {
    color: var(--text-dark);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.institution {
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.year {
    color: var(--primary-color);
    font-weight: 600;
}

.dissertation {
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
    margin-top: 0.5rem;
}

/* ===========================
   Skills Section
   =========================== */

.skills {
    background-color: var(--bg-white);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.skill-category {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 0.5rem;
}

.skill-category h3 {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--bg-white);
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* ===========================
   Contact Info Grid
   =========================== */

.contact-info-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: center;
}

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

.contact-item a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.contact-item a:hover {
    opacity: 0.8;
}

.contact-item span {
    color: white;
    font-weight: 500;
}

/* ===========================
   Footer
   =========================== */

footer {
    background-color: var(--text-dark);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

footer p {
    opacity: 0.8;
}

/* ===========================
   Responsive Design
   =========================== */

@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
    }

    .profile-section {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .profile-text {
        text-align: center;
    }

    .profile-image {
        width: 150px;
        height: 150px;
    }

    .profile-text h1 {
        font-size: 2.5rem;
    }

    .profile-text .subtitle {
        font-size: 1rem;
        line-height: 1.4;
    }

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

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

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

    .project-card.featured {
        grid-column: span 1;
    }

    .publication-item {
        flex-direction: column;
        gap: 1rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .timeline::before {
        left: 10px;
    }

    .timeline-item {
        padding-left: 40px;
    }

    .timeline-marker {
        left: 1px;
    }

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

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

    .contact-info-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .about h2,
    .highlights h2,
    .cta h2 {
        font-size: 2rem;
    }

    .btn {
        padding: 0.625rem 1.5rem;
        font-size: 0.9rem;
    }
}

