/* Global Styles */
:root {
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --accent-color: #bb86fc;
    --secondary-color: #03dac6;
    --error-color: #cf6679;
    --surface-color: #1e1e1e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* Header and Navigation */
header {
    background-color: rgba(18, 18, 18, 0.8);
    position: fixed;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

nav ul {
    display: flex;
    justify-content: center;
    list-style-type: none;
    padding: 1rem 0;
}

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    font-size: 1.1rem;
    font-weight: 500;
}

nav a.active {
    color: var(--secondary-color);
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem 2rem;
}

section {
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

h1, h2, h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

/* Home Section */
#home {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#home h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.tagline {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn.primary {
    background-color: var(--accent-color);
    color: var(--bg-color);
}

.btn.secondary {
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    background-color: transparent;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    background-color: var(--surface-color);
    border: none;
    border-radius: 50px;
    width: 80px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    overflow: hidden;
}

.theme-toggle i {
    color: var(--text-color);
    font-size: 1.2rem;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.theme-toggle .fa-sun {
    opacity: 0;
    transform: translateX(40px);
}

.theme-toggle .fa-moon {
    opacity: 1;
    transform: translateX(0);
}

body.light-mode .theme-toggle .fa-sun {
    opacity: 1;
    transform: translateX(0);
}

body.light-mode .theme-toggle .fa-moon {
    opacity: 0;
    transform: translateX(-40px);
}

body.light-mode .theme-toggle {
    background-color: var(--accent-color);
}

body.light-mode .theme-toggle i {
    color: var(--bg-color);
}

/* About Section */
#about {
    max-width: 800px;
    margin: 0 auto;
}

.about-content {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.profile-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--accent-color);
}

.about-text {
    flex: 1;
}

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-category h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.skill-category ul {
    list-style-type: none;
}

.skill-category li {
    margin-bottom: 0.3rem;
    position: relative;
    padding-left: 20px;
}

.skill-category li::before {
    content: "\2022";
    color: var(--accent-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Experience Section */
.experience-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--surface-color);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.experience-details {
    font-style: italic;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.experience-item ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-top: 0.5rem;
}

.experience-item li {
    margin-bottom: 0.5rem;
}

/* Research Interests Section */
#research-interests ul {
    list-style-type: none;
    padding-left: 0;
}

#research-interests li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 20px;
}

#research-interests li::before {
    content: "\2022";
    color: var(--accent-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Publications Section */
.publication-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--surface-color);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.publication-details {
    font-style: italic;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.publication-venue {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.publication-description {
    margin-bottom: 1rem;
}

.publication-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--accent-color);
    color: var(--bg-color);
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.publication-link:hover {
    background-color: var(--secondary-color);
}

.publication-status {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: normal;
    background-color: var(--accent-color);
    color: var(--bg-color);
}

/* Projects Section */
.project-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--surface-color);
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.project-details {
    font-style: italic;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.project-item ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-top: 0.5rem;
}

.project-item li {
    margin-bottom: 0.5rem;
}

.project-images {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.project-figure {
    width: calc(33% - 0.67rem);
    margin: 0;
}

.project-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

figcaption {
    background-color: rgba(187, 134, 252, 0.1);
    color: var(--text-color);
    padding: 0.5rem;
    text-align: center;
    font-size: 0.9rem;
    border-radius: 0 0 8px 8px;
}

/* Education Section */
.education-item {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: var(--surface-color);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.education-details {
    font-style: italic;
    color: var(--secondary-color);
    margin-bottom: 0.3rem;
}

/* Awards Section */
.award-item {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: var(--surface-color);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.award-details {
    font-style: italic;
    color: var(--secondary-color);
    margin-bottom: 0.3rem;
}

/* Contact Section */
.contact-info {
    margin-bottom: 1.5rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: var(--accent-color);
    color: var(--bg-color);
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.social-links a i {
    margin-right: 0.5rem;
}

.social-links a:hover {
    background-color: var(--secondary-color);
}

/* Footer */
footer {
    background-color: var(--surface-color);
    color: var(--text-color);
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
}

/* Light Mode */
body.light-mode {
    --bg-color: #f5f5f5;
    --text-color: #333333;
    --surface-color: #ffffff;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 0.5rem 0;
    }

    main {
        padding: 5rem 1rem 1rem;
    }

    #home h1 {
        font-size: 2.5rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .about-content {
        flex-direction: column;
        align-items: center;
    }

    .skills-container {
        grid-template-columns: 1fr;
    }

    .project-item, .education-item, .publication-item, .award-item {
        padding: 1rem;
    }

    .project-figure {
        width: 100%;
    }

    .social-links {
        flex-direction: column;
    }

    .social-links a {
        text-align: center;
    }

    .theme-toggle {
        top: 10px;
        right: 10px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.5s ease-out;
}

.x-link {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: var(--accent-color);
    color: var(--bg-color);
    border-radius: 5px;
    transition: background-color 0.3s ease;
  }
  
  .x-logo {
    margin-right: 0.5rem;
  }
  
  .x-link:hover {
    background-color: var(--secondary-color);
  }