/* ==========================================================================
   CSS Variables for Theming
   ========================================================================== */
:root {
    /* Light theme colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-primary: #1a1a1a;
    --text-secondary: #6c757d;
    --accent: #666666;
    --border: #e9ecef;
    --shadow: rgba(0, 0, 0, 0.1);
    --menu-hover: #f1f3f4;
    --toggle-bg: #e9ecef;
    --toggle-active: #666666;
}

[data-theme="dark"] {
    /* Dark theme colors */
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --accent: #cccccc;
    --border: #404040;
    --shadow: rgba(0, 0, 0, 0.3);
    --menu-hover: #404040;
    --toggle-bg: #404040;
    --toggle-active: #cccccc;
}

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

body {
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    min-height: 100vh;
}

/* ==========================================================================
   Desktop Layout
   ========================================================================== */
.desktop-container {
    display: none;
    min-height: 100vh;
}

/* Sidebar navigation */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 300px;
    height: 100vh;
    background-color: var(--bg-primary);
    border-right: 1px solid var(--border);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Main content area */
.content-area {
    margin-left: 300px;
    min-height: 100vh;
    padding: 2rem;
    max-width: calc(100vw - 300px);
}

/* Page content sections */
.page-content {
    display: none;
    max-width: 800px;
}

.page-content.active {
    display: block;
}

/* ==========================================================================
   Mobile Layout
   ========================================================================== */
.mobile-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
}

/* ==========================================================================
   Header Styles
   ========================================================================== */
header {
    margin-bottom: 3rem;
    position: relative;
}

.name {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

/* ==========================================================================
   Theme Toggle Styles
   ========================================================================== */
.theme-toggle-container {
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 8px;
    transition: background-color 0.2s ease;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 400;
}

/* Toggle switch styling */
.theme-toggle .toggle-switch {
    position: relative;
    width: 40px;
    height: 20px;
    background-color: var(--toggle-bg);
    border-radius: 10px;
    transition: background-color 0.3s ease;
}

.theme-toggle .toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

/* Dark theme toggle states */
[data-theme="dark"] .theme-toggle .toggle-switch {
    background-color: var(--toggle-active);
}

[data-theme="dark"] .theme-toggle .toggle-switch::after {
    transform: translateX(20px);
}

/* ==========================================================================
   Navigation Menu Styles
   ========================================================================== */
.menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.menu-item {
    display: block;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 400;
    transition: color 0.2s ease;
    padding: 0;
    background: none;
    border: none;
}

.menu-item:hover {
    color: var(--text-primary);
}

.menu-item:active {
    transform: none;
}

/* Active menu item styling */
.menu-item.active {
    color: var(--text-primary);
    font-weight: 500;
}

.menu-item.active:hover {
    color: var(--text-primary);
}

/* ==========================================================================
   Content Styles
   ========================================================================== */
.content {
    margin-bottom: 2rem;
}

/* About page text */
.about-text {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   Project Styles
   ========================================================================== */
.project {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.project-title {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

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

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

.project-link {
    font-size: 0.9rem;
    color: var(--accent);
    text-decoration: none;
    padding: 0.25rem 0;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.project-link:hover {
    border-bottom-color: var(--accent);
}

/* ==========================================================================
   Resume Styles
   ========================================================================== */
.resume-container {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Resume header section */
.resume-header {
    margin-bottom: 2rem;
    text-align: left;
}

.resume-name {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.resume-contact {
    font-size: 0.95rem;
    color: var(--text-secondary);
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Resume summary */
.resume-summary {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    text-align: justify;
}

/* Resume sections */
.resume-section {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

/* Job experience styling */
.job-header {
    margin-bottom: 0.75rem;
}

.job-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.job-meta {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.job-meta .company {
    font-weight: 500;
    color: var(--text-primary);
}

/* Job description bullets */
.job-description {
    list-style: none;
    padding-left: 0;
}

.job-description li {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
    text-align: justify;
}

.job-description li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* Publications list */
.publications-list {
    list-style: none;
    padding-left: 0;
}

.publications-list li {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    text-align: justify;
}

/* Skills and interests */
.skills-interests {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.skills-group {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
    text-align: justify;
}

.skills-group strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Resume download section */
.resume-download {
    margin-bottom: 2rem;
    text-align: left;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.download-link {
    display: inline-block;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--accent);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.download-link:hover {
    background-color: var(--accent);
    color: var(--bg-primary);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

/* Desktop breakpoint */
@media (min-width: 1024px) {
    .desktop-container {
        display: block;
    }
    
    .mobile-container {
        display: none;
    }
}

/* Mobile breakpoint */
@media (max-width: 1023px) {
    .desktop-container {
        display: none;
    }
    
    .mobile-container {
        display: flex;
    }
}

/* Tablet and small desktop */
@media (max-width: 768px) {
    .resume-container {
        padding: 0 1rem;
    }
    
    .resume-name {
        font-size: 1.75rem;
    }
    
    .resume-contact {
        font-size: 0.9rem;
        flex-direction: column;
        gap: 0.25rem;
        justify-content: flex-start;
    }
    
    .job-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    .container {
        padding: 1.5rem;
    }
    
    .name {
        font-size: 2rem;
    }
    
    .menu-item {
        font-size: 1rem;
    }
}

/* Small mobile phones */
@media (max-width: 360px) {
    .container {
        padding: 1rem;
    }
    
    .name {
        font-size: 1.75rem;
    }
    
    .menu-item {
        font-size: 0.95rem;
    }
}

/* ==========================================================================
   Global Transitions
   ========================================================================== */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
} 