/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #48766c;
    --primary-dark: #365a54;
    --primary-light: #5a8a7f;
    --secondary-color: #64748b;
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #ffffff;
    --section-bg: #f5f5f5;
    --border-color: #e0e0e0;
    --shadow: 0 2px 4px rgba(0,0,0,0.1);
    --max-width: 1100px;
    
    /* Skill bar colors */
    --skill-technical-bg: #e8f0ed;
    --skill-technical-fill: #48766c;
    --skill-hobbies-bg: #f0ebe8;
    --skill-hobbies-fill: #48766c;
}

[data-theme="dark"] {
    --text-color: #e0e0e0;
    --text-light: #b0b0b0;
    --bg-color: #121212;
    --section-bg: #1e1e1e;
    --border-color: #333333;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
    font-size: 18px;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    box-shadow: var(--shadow);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand a {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-color);
    text-decoration: none;
}

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

.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.theme-switcher button {
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    color: var(--text-color);
}

/* Main Content */
main {
    margin-top: 60px;
}

section {
    padding: 3rem 0;
}

h1, h2, h3, h4 {
    margin-bottom: 1rem;
}

h2 {
    font-size: 2rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 500;
}

/* Hero Section */
.hero-section {
    padding: 4rem 0;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 4rem;
    align-items: start;
}

.hero-left {
    text-align: center;
}

.profile-image {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.hero-left h1 {
    font-size: 1.75rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.hero-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.hero-role {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.hero-org a {
    color: var(--primary-color);
    text-decoration: none;
}

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

.social-links a {
    font-size: 1.25rem;
    color: var(--text-color);
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--primary-color);
}

.hero-right h2 {
    text-align: left;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.bio-content {
    text-align: justify;
    line-height: 1.8;
}

.bio-content p {
    margin-bottom: 1.5rem;
}

.bio-content p:last-child {
    margin-bottom: 0;
}

.bio-content a {
    color: var(--primary-color);
    text-decoration: none;
}

/* About Section */
.about-section {
    background-color: var(--section-bg);
}

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

/* Skills Grid - Technical and Hobbies side by side */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.skill-column {
    flex: 1;
}

/* Info Grid - Interests and Education side by side */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.interests-section h3,
.education-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.interests-list {
    list-style: none;
    padding: 0;
}

.interests-list li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
}

.interests-list i {
    color: var(--text-light);
    font-size: 0.9rem;
}

.education-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: start;
}

.education-item i {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-top: 0.2rem;
}

.education-content strong {
    display: block;
    margin-bottom: 0.25rem;
}

.education-content p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Skills Section */
.skills-section {
    text-align: center;
}

.skills-title {
    font-size: 1.75rem;
    margin-bottom: 2rem;
}

.skill-group-title {
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0 0 1rem;
    color: var(--text-light);
    letter-spacing: 0.5px;
}

.skill-item {
    margin-bottom: 1.5rem;
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.skill-header i {
    font-size: 1.1rem;
    color: var(--text-light);
}

.skill-name {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-light);
    letter-spacing: 0.5px;
}

.skill-bar {
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
}

.skill-bar-technical {
    background-color: var(--skill-technical-bg);
}

.skill-bar-hobbies {
    background-color: var(--skill-hobbies-bg);
}

.skill-bar-technical .skill-progress {
    background-color: var(--skill-technical-fill);
}

.skill-bar-hobbies .skill-progress {
    background-color: var(--skill-hobbies-fill);
}

.skill-progress {
    height: 100%;
    transition: width 0.8s ease;
}

/* Publications Section */
.publications-list {
    max-width: 900px;
    margin: 0 auto;
}

.publication-item {
    display: flex;
    justify-content: space-between;
    align-items: start;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.pub-content {
    flex: 1;
}

.pub-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.pub-authors {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.pub-venue {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    font-style: italic;
}

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

.pub-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: opacity 0.3s;
}

.pub-link:hover {
    opacity: 0.7;
}

.pub-link i {
    font-size: 0.8rem;
}

.pub-year {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-left: 2rem;
    font-weight: 500;
}

/* Projects Section */
.projects-section {
    background-color: var(--section-bg);
}

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

.project-card {
    background-color: var(--bg-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: var(--shadow);
}

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

.project-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.project-tags {
    color: var(--text-light);
    font-size: 0.875rem;
    margin: 1rem 0;
}

.project-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Contact Section */
.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-info p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.contact-info .schedule-link {
    margin-top: 1.5rem;
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.contact-info a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

/* Buttons */
.btn-view-all {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s;
}

.btn-view-all:hover {
    background-color: var(--primary-dark);
}

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

/* Footer */
footer {
    background-color: var(--section-bg);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hero-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-right h2 {
        text-align: center;
    }
    
    .skills-grid,
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    section {
        padding: 2rem 0;
    }
    
    .publication-item {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .pub-year {
        margin-left: 0;
    }
}

/* Additional styles for pages */
.filter-section {
    text-align: center;
    margin-bottom: 2rem;
}

.filter-tags {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.filter-tag {
    padding: 0.5rem 1rem;
    background-color: var(--section-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.875rem;
}

.filter-tag:hover {
    background-color: var(--primary-light);
    color: white;
}

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

