/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS Custom Properties for Light Mode */
:root {
    --bg-primary: white;
    --bg-secondary: #f8f8f8;
    --text-primary: #666666;
    --text-secondary: #666;
    --text-tertiary: #555;
    --text-header: #333;
    --border-color: #ddd;
}

/* Common list styles */
ul {
    margin-left: 20px;
    margin-bottom: 10px;
}

li {
    margin-bottom: 3px;
}

body {
    font-family: 'Source Code Pro', monospace;
    
    color: var(--text-primary);
    background: var(--bg-primary);
    min-height: 100vh;
    font-size: 0.9rem;
    max-width: 800px;
    margin: 0 auto;
    
}

/* Container */
.container {
    max-width: none;
    margin: 0;
    padding: 0;
    background: none;
    box-shadow: none;
}

/* Header and Navigation */
header {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.site-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    color: var(--text-header);
    margin-bottom: 10px;
    text-align: left;
    font-weight: bold;
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-header);
    font-weight: normal;
    font-size: 14px;
    padding: 2px 0;
    border: none;
    background: none;
}

.nav-link:hover {
    text-decoration: underline;
}

.nav-link.active {
    font-weight: bold;
}

.nav-link.external::after {
    content: " ↗";
    font-size: 12px;
}

/* Main content */
main {
    margin-bottom: 40px;
}

/* Typography */
.retro-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
}

.page-title {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: bold;
    border-left: 4px solid #333;
    padding-left: 15px;
}

.page-description {
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.last-update {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-style: italic;
    text-align: right;
    padding: 5px 10px;
}

.section-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    color: var(--text-header);
    margin: 0 0 10px 0;
    font-weight: bold;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 5px;
}

/* Welcome section */
.welcome-section {
    margin-bottom: 20px;
    padding: 0;
    background: none;
    border: none;
}

.intro-text {
    font-size: 0.9rem;
    margin-bottom: 10px;
}

/* Sections */
.skills-section,
.experience-section,
.education-section,
.hobbies-section,
.projects-section {
    background: var(--bg-secondary);
    padding: 25px;
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.skill-category {
    margin-bottom: 20px;
}

.skill-category h3 {
    font-family: 'Oswald', sans-serif;
    color: var(--text-header);
    font-size: 1rem;
    margin-bottom: 8px;
    font-weight: bold;
}

.experience-item,
.education-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: none;
}

.experience-item:last-child,
.education-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.experience-item h3,
.education-item h3 {
    font-family: 'Oswald', sans-serif;
    color: var(--text-header);
    font-size: 0.9rem;
    margin-bottom: 3px;
    font-weight: bold;
}

.experience-item h4 {
    color: var(--text-header);
    font-size: 0.8rem;
    margin-bottom: 5px;
    font-weight: normal;
    font-style: normal;
}

.experience-date {
    color: var(--text-secondary);
    font-weight: normal;
    font-size: 0.8rem;
    margin-bottom: 5px;
}


.education-meta {
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.hobbies-text {
    font-size: 0.95rem;
    color: var(--text-tertiary);
}

/* Table of Contents */
.toc-section {
    background: none;
    padding: 0;
    border: none;
    margin-bottom: 20px;
}

.toc-links {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.toc-link {
    color: var(--text-primary);
    text-decoration: none;
    padding: 6px 10px;
    font-size: 0.9rem;
    line-height: 1.4;
    display: block;
    background: white;
    border: 1px solid #333;
    margin-bottom: 4px;
    font-weight: bold;
    transition: all 0.2s ease;
    cursor: pointer;
}

.toc-meta {
    font-weight: normal;
    font-size: 0.85rem;
    opacity: 0.8;
}

.toc-link:hover {
    background: var(--bg-secondary);
    color: var(--text-header);
}

.toc-link:active {
    background: #555;
}

/* Projects page */
.project-timeline {
    position: relative;
}

.project-year {
    font-size: 2rem;
    color: white;
    text-align: center;
    margin: 40px 0 20px 0;
    background: #333;
    padding: 10px 20px;
    display: inline-block;
    width: 100%;
    font-weight: bold;
}

.project-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 25px;
    margin-bottom: 30px;
}

.project-card.featured {
    border: 2px solid #333;
}

.project-header {
    margin-bottom: 15px;
}

.project-title {
    font-size: 1.4rem;
    color: var(--text-header);
    margin: 0 0 10px 0;
    font-weight: bold;
    border-left: 4px solid #333;
    padding-left: 15px;
}

.project-badge {
    background: #e8e8e8;
    color: #333;
    padding: 5px 12px;
    font-size: 0.9rem;
    font-weight: bold;
    border: 1px solid #ccc;
}


.project-content h3 {
    color: var(--text-header);
    font-size: 1.1rem;
    margin: 15px 0 6px 0;
}

.project-links {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.project-link {
    background: var(--bg-primary);
    color: var(--text-header);
    text-decoration: none;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: bold;
}

.project-link:hover {
    background: var(--text-secondary);
}

.project-media {
    margin-top: 20px;
    text-align: center;
}

.project-media iframe,
.project-media img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.project-media iframe {
    width: 100%;
    max-width: 560px;
    height: 315px;
    aspect-ratio: 16/9;
}

.project-media img {
    max-width: 560px;
    width: 100%;
    height: auto;
}

.project-media img.small {
    max-width: 200px;
}

/* Footer */
footer {
    text-align: left;
    padding: 10px 0;
    border-top: 1px solid #333;
    margin-top: 20px;
}

.footer-text {
    color: #666;
    font-size: 0.8rem;
    font-style: italic;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        margin: 10px;
        padding: 15px;
    }
    
    .retro-title {
        font-size: 2rem;
    }
    
    .page-title {
        font-size: 1.3rem;
    }
    
    .nav-link {
        font-size: 16px;
        padding: 6px 10px;
    }
    
    .project-title {
        font-size: 1.2rem;
    }
    
    .project-links {
        justify-content: center;
    }
    
    .project-media iframe {
        height: 200px;
        max-width: 100%;
    }
    
    .project-media img {
        max-width: 100%;
        width: 100%;
    }
    
    .project-media img.small {
        max-width: 150px;
        width: auto;
    }
}

@media (max-width: 480px) {
    .retro-title {
        font-size: 1.8rem;
    }
    
    .page-title {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
    
    .project-title {
        font-size: 1.1rem;
    }
    
    .nav-link {
        font-size: 14px;
        padding: 6px 10px;
    }
    
    .project-card {
        padding: 15px;
    }
}

/* Simple focus styles for accessibility */
.nav-link:focus,
.project-link:focus,
.toc-link:focus {
    outline: 2px solid #333;
    outline-offset: 2px;
}