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

:root {
    /* Elegant Nude Color Palette */
    --primary-color: #bda0a0;      /* Warm taupe */
    --secondary-color: #dac5b1;    /* Soft beige */
    --accent-color: #A67B5B;       /* Mocha brown */
    --text-color: #886e66;         /* Deep brown */
    --light-bg: #faf2f2;           /* Warm off-white */
    --white: #FFFFFF;              /* Pure white */
    --card-bg: #F8F4EB;            /* Cream background */
    --border-color: #E8DECD;       /* Light sand */
    --shadow: 0 4px 20px rgba(139, 115, 85, 0.08);
    --hover-shadow: 0 8px 30px rgba(139, 115, 85, 0.12);
}

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

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

/* Navigation */
#navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

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

.nav-logo h2 {
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: -0.5px;
}

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

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

.nav-link:hover {
    color: var(--accent-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
#hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #FFFFFF;
    padding: 120px 0 80px;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path fill="rgba(255,255,255,0.05)" d="M0,0 L100,0 L100,100 Z"/></svg>');
    background-size: cover;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Hero Social Links */
.hero-social-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hero-social-links .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.hero-social-links .social-link:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 300;
    line-height: 1.2;
}

.highlight {
    color: #FFFFFF;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    font-weight: 300;
}

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

.btn {
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(139, 115, 85, 0.2);
}

.btn-primary:hover {
    background: var(--light-bg);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 115, 85, 0.3);
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    transform: translateY(-2px);
}

.hero-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: var(--hover-shadow);
    border: 1px solid var(--border-color);
}

/* Sections */
section {
    padding: 80px 0;
}

#about {
    background: var(--light-bg);
}

#cv {
    background: var(--white);
}

#publications {
    background: var(--light-bg);
}

#talks {
    background: var(--white);
}

#blog {
    background: var(--light-bg);
}

#projects {
    background: var(--white);
}

#contact {
    background: var(--light-bg);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
    font-weight: 300;
    letter-spacing: -0.5px;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--accent-color);
    margin: 1rem auto;
}

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

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-color);
}

.skills {
    margin-top: 2rem;
}

.skills h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 500;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
}

.skill-tag {
    background: var(--secondary-color);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.skill-tag:hover {
    background: var(--accent-color);
    transform: translateY(-1px);
}

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

.cv-section h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.timeline {
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--secondary-color), var(--accent-color));
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.timeline-date {
    background: var(--secondary-color);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 0.8rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(139, 115, 85, 0.15);
}

.timeline-content h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.institution {
    font-weight: 500;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.download-cv {
    text-align: center;
    margin-top: 4rem;
    margin-bottom: 3rem;
}

/* Publications Section */
.publication-filters {
    text-align: center;
    margin-bottom: 3rem;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 8px 20px;
    margin: 0 4px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 400;
}

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

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

.publication-year {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 2.5rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.publication-year:first-child {
    margin-top: 0;
}

.publication-item {
    padding: 1.5rem 0;
    margin-bottom: 0;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.publication-item:last-child {
    border-bottom: none;
}

.publication-item:hover {
    background: rgba(232, 190, 148, 0.05);
    padding-left: 1rem;
    padding-right: 1rem;
    margin-left: -1rem;
    margin-right: -1rem;
    border-radius: 6px;
}

.pub-details h4 {
    color: var(--primary-color);
    margin-bottom: 0.6rem;
    font-weight: 500;
    line-height: 1.4;
    font-size: 1.05rem;
}

.pub-authors {
    font-style: italic;
    margin-bottom: 0.4rem;
    color: var(--accent-color);
    font-size: 0.95rem;
    line-height: 1.4;
}

.pub-journal {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0.9;
}

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

.pub-link {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 500;
}

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

/* Responsive Design for Publications */
@media (max-width: 768px) {
    .publication-item {
        padding: 1.2rem 0;
    }
    
    .pub-details h4 {
        font-size: 1rem;
    }
    
    .pub-authors {
        font-size: 0.9rem;
    }
    
    .pub-journal {
        font-size: 0.85rem;
    }
    
    .publication-year {
        font-size: 1.1rem;
        margin: 2rem 0 0.8rem 0;
    }
    
    .publication-item:hover {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }
}

/* Talks Section */
.talks-content {
    max-width: 800px;
    margin: 0 auto;
}

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

.blog-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

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

.placeholder-image {
    height: 200px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1rem;
    opacity: 0.8;
}

.blog-content {
    padding: 1.5rem;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.blog-date {
    color: var(--accent-color);
}

.blog-category {
    background: var(--secondary-color);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
}

.blog-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 500;
    line-height: 1.4;
}

.blog-excerpt {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    opacity: 0.8;
}

.blog-read-more {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.blog-read-more:hover {
    color: var(--accent-color);
}

.blog-cta {
    text-align: center;
}

/* Projects Section - Expandable Cards */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.project-item {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.project-header:hover {
    background: rgba(212, 132, 95, 0.05);
}

.project-title-year {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
}

.project-year {
    background: var(--accent-color);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    min-width: 60px;
    text-align: center;
}

.project-name {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
}

.expand-icon {
    color: var(--accent-color);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.project-item.active .expand-icon {
    transform: rotate(180deg);
}

.project-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 2rem;
}

.project-item.active .project-details {
    max-height: 1200px;
    padding: 0 2rem 1.5rem 2rem;
}

.project-details p {
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* Tech tags styling - bubble effect */
.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 1rem 0;
}

.tech-tag {
    background: var(--white);
    color: var(--text-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid var(--border-color);
    display: inline-block;
    transition: all 0.3s ease;
}

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

/* Project links styling */
.project-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.project-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.project-link:hover {
    color: var(--primary-color);
}

/* Responsive for projects */
@media (max-width: 768px) {
    .project-header {
        padding: 1.2rem 1.5rem;
    }

    .project-title-year {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }

    .project-name {
        font-size: 1rem;
    }
}

/* Contact Section */
.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-align: left;
    width: 100%;
    max-width: 500px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    flex-shrink: 0;
}

.contact-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.3rem;
    font-weight: 500;
}

.contact-item p {
    color: var(--text-color);
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-item {
        max-width: 100%;
    }
}
/* Contact Social Links */
.contact-social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: center;
}

.contact-social-links .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--card-bg);
    color: var(--primary-color);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.contact-social-links .social-link:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}



/* Footer */
footer {
    background: var(--border-color);
    color: var(--primary-color);
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
}

/* Additional icons for CV sections */
.fa-flask, .fa-chalkboard-teacher, .fa-tools, .fa-language, .fa-lightbulb, .fa-briefcase {
    color: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
        gap: 1rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

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

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

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .section-title {
        font-size: 2rem;
    }

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

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

    .section-title {
        font-size: 1.8rem;
    }

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

    .publication-item {
        padding: 1.5rem;
    }

    .hero-social-links .social-link {
        width: 40px;
        height: 40px;
    }
}