:root {
    --bg-primary: #1a1a1a;
    --bg-secondary: #252525;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --accent: #7289da;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;

    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

html, body{
    margin: 0;
    padding: 0;
    height: 100%;
}
main {
    flex: 1;
}

/* Navbar */
.navbar {
    background-color: var(--bg-secondary);
    padding: 1rem 2rem;
    display: flex;
    justify-content: center; /* Changed from space-between to center */
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    gap: 0rem; /* Added gap between elements */
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
    position: absolute; /* Position absolute to take it out of the flex flow */
    left: 2rem; /* Distance from left edge */
}

.nav-links {
    display: flex;
    gap: 2rem; /* Space between navigation links */
    justify-content: center;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem; /* Added padding for better clickable area */
}

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

.nav-links .active {
    color: var(--accent);
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        justify-content: space-between; /* Revert to space-between for mobile */
    }

    .nav-brand {
        position: static; /* Revert position for mobile */
    }

    .nav-links {
        display: none;
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
}

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

.highlight {
    color: var(--accent);
}

.subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
}

/* About Section */
.about {
    padding: 4rem 2rem;
}

.about h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Footer */
footer {
    background-color: var(--bg-secondary);
    text-align: center;
    padding: 1rem;
    position: relative;
    bottom: 0;
    width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

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

    .subtitle {
        font-size: 1.2rem;
    }
}

/* Page Header */
.page-header {
    padding-top: 120px; /* Modifié */
    padding-bottom: 2rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.page-header h1 {
    font-size: 2rem;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
}


/* Publications Styles */
.publications-list {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.pub-card {
    background-color: var(--bg-secondary);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

.pub-card:hover {
    transform: translateX(10px);
}

.pub-year {
    color: var(--accent);
    font-weight: bold;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.pub-content h3 {
    margin-bottom: 1rem;
}

.pub-authors {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.pub-journal {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.pub-abstract {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Projects Styles */
.projects-list {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}


.project-card {
    background-color: var(--bg-secondary);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateX(10px);
}

.project-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.project-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--bg-secondary), var(--accent));
    opacity: 0.5;
}

.project-content {
    padding: 2rem;
}

.project-content h3 {
    margin-bottom: 1rem;
}

.project-description {
    color: var(--text-secondary);
    margin: 1rem 0;
    line-height: 1.6;
}

.project-tags {
    margin: 1rem 0;
}

.tag {
    background-color: var(--bg-primary);
    color: var(--accent);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    display: inline-block;
    margin-bottom: 0.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    margin-right: 1rem;
    transition: all 0.3s ease;
}

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

.btn-secondary {
    background-color: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}

.btn:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .publications-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .pub-card,
    .project-card {
        margin: 1rem;
    }
}


/* Animation Styles */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Section Styles */
.intro-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
}

.about-section,
.internships-section,
.courses-section {
    padding: 4rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline-item {
    margin-bottom: 2rem;
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid var(--accent);
}

.timeline-date {
    color: var(--accent);
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.timeline-content {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 8px;
}

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

.course-item {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.course-item:hover {
    transform: translateY(-5px);
}

.typing-effect {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    width: 0;
    animation: typing 2.5s steps(30, end) forwards;
}


@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

.content-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.cool-stuff-list {
    list-style-type: none;
    padding-left: 20px;
    margin-top: 20px;
}

.cool-stuff-list li {
    margin-bottom: 20px;
    position: relative;
}

.cool-stuff-list li::before {
    content: "–";
    position: absolute;
    left: -20px;
    color: var(--text-primary);
}

.cool-stuff-list a {
    color: var(--accent);
    text-decoration: none;
}

.cool-stuff-list p {
    margin-top: 5px;
    color: var(--text-secondary);
}