:root {
    --bg-color: #f5f5f5;
    --text-color: #333;
    --accent-color: #a4c3b2;
    --accent-dark: #6b917f;
    --accent-light: #c5dbd0;
    --light-gray: #eaeaea;
    --card-bg: #fff;
    --transition: all 0.3s ease;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* Header and Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: rgba(245, 245, 245, 0.95);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

.logo {
    font-size: 24px;
    font-weight: 300;
    color: var(--sage-green-dark);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    margin-right: auto;
}

.nav-link {
    position: relative;
    font-weight: 500;
    transition: var(--transition);
}

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

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

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background-color: rgba(164, 195, 178, 0.1);
    right: -200px;
    top: -200px;
    z-index: -1;
    animation: float 6s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background-color: rgba(164, 195, 178, 0.1);
    left: -100px;
    bottom: -100px;
    z-index: -1;
    animation: float 8s ease-in-out infinite reverse;
}

.hero-content {
    max-width: 700px;
}

.hero-greeting {
    font-size: 1.2rem;
    color: var(--accent-dark);
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeUp 0.8s forwards;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeUp 0.8s 0.2s forwards;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: #666;
    margin-bottom: 1rem;
    max-width: 600px;
    opacity: 0;
    animation: fadeUp 0.8s 0.4s forwards;
}

.hero-location {
    display: flex;
    align-items: center;
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    opacity: 0;
    animation: fadeUp 0.8s 0.5s forwards;
}

.hero-cta {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--accent-color);
    color: white;
    border-radius: 4px;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(107, 145, 127, 0.2);
    opacity: 0;
    animation: fadeUp 0.8s 0.6s forwards;
}

.hero-cta:hover {
    background-color: var(--accent-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(107, 145, 127, 0.3);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}


.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    animation: fadeIn 1s 1s forwards;
}

.scroll-indicator span {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.scroll-indicator .arrow {
    width: 30px;
    height: 30px;
    border-right: 2px solid var(--accent-dark);
    border-bottom: 2px solid var(--accent-dark);
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

/* About Section */
.section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.about-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: #555;
}

.skills-container {
    margin-top: 2rem;
}

.skills-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--accent-dark);
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-pill {
    background-color: var(--light-gray);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.skill-pill:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-3px);
}

/* Experience Section */
.experience-section {
    background-color: #fff;
}

.publication-date {
    font-style: italic;
    color: #888;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.experience-details {
    list-style: none;
    padding-left: 0;
    margin-top: 15px;
}

.experience-details li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    color: #555;
}

.experience-details li:before {
    content: "•";
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.project-image {
    height: 200px;
    background-color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 500;
    background-size: cover;
    background-position: center;
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--accent-dark);
}

.project-description {
    color: #555;
    margin-bottom: 1.5rem;
}

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

.project-tag {
    background-color: var(--light-gray);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

.project-link {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background-color: var(--accent-color);
    color: white;
    border-radius: 4px;
    font-weight: 500;
    transition: var(--transition);
}

.project-link:hover {
    background-color: var(--accent-dark);
}

/* Publications Section */
.publications-section {
    background-color: #fff;
}

.publication-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    transition: var(--transition);
    border-left: 4px solid var(--accent-color);
    position: relative;  
    overflow: hidden; 
}

.publication-card:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

.publication-journal {
    font-style: italic;
    color: #888;
    margin-bottom: 1rem;
}

.publication-link {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background-color: var(--accent-color);
    color: white;
    border-radius: 4px;
    font-weight: 500;
    transition: var(--transition);
}

.publication-link:hover {
    background-color: var(--accent-dark);
}

/* Contact Section - Horizontal Style */
.contact-container {
    text-align: center;
    padding: 2rem 0;
}

.contact-method {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
    margin: 0 1.5rem;
}

.contact-method:hover {
    transform: translateY(-5px);
    color: var(--accent-dark);
}

.contact-method .contact-icon {
    width: 70px;
    height: 70px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.contact-method:hover .contact-icon {
    background-color: var(--accent-dark);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.contact-method span {
    font-weight: 500;
    font-size: 1.1rem;
}

/* Chatbot */
.chatbot-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background-color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 100;
    transition: var(--transition);
    color: white;
    font-size: 1.5rem;
}

.chatbot-toggle:hover {
    background-color: var(--accent-dark);
    transform: scale(1.1);
}

.chatbot-container {
    position: fixed;
    bottom: 5rem;
    right: 2rem;
    width: 350px;
    height: 500px;
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 99;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.chatbot-header {
    background-color: var(--accent-color);
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-title {
    font-weight: 500;
}

.close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
}

.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
}

.chat-input {
    padding: 1rem;
    border-top: 1px solid #eee;
    display: flex;
}

.chat-input input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 0.5rem;
}
    
.chat-input button {
    padding: 0.8rem 1.2rem;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.chat-input button:hover {
    background-color: var(--accent-dark);
}

/* Dark mode switch */
.theme-switch {
    position: fixed;
    bottom: 2rem;
    right: 7rem;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--card-bg);
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
}

.theme-switch:hover {
    transform: scale(1.1);
}

.theme-icon {
    font-size: 1.8rem;
    transition: var(--transition);
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-text {
    margin-bottom: 2rem;
    color: #aaa;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background-color: #444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid #444;
    color: #aaa;
    font-size: 0.9rem;
}

/* Dark mode styles */
body.dark-mode {
    --bg-color: #1a1a1a;
    --text-color: #f5f5f5;
    --card-bg: #2d2d2d;
    --light-gray: #333;
}

body.dark-mode header {
    background-color: rgba(26, 26, 26, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

body.dark-mode .project-tag {
    color: #f5f5f5;
}

body.dark-mode .slider {
    background-color: #555;
}

body.dark-mode .slider:before {
    background-color: #ddd;
}

body.dark-mode input:checked + .slider {
    background-color: var(--accent-light);
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) rotate(45deg);
    }
    40% {
        transform: translateY(-10px) rotate(45deg);
    }
    60% {
        transform: translateY(-5px) rotate(45deg);
    }
}

/* Responsive Styles */
@media screen and (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }
    
    .contact-container {
        flex-direction: column;
    }
}

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

    .mobile-menu-btn {
        display: block;
    }

    .hero-title {
        font-size: 2.5rem;
    }

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

.category-title {
    font-size: 1.8rem;
    color: var(--accent-dark);
    margin: 4rem 0 2rem 0;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--accent-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}


.category-title:first-of-type {
    margin-top: 2rem;
}


.category-title.animated {
    animation: fadeUp 0.6s ease forwards;
}