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

/* CSS Variables for theming */
:root {
    /* Dark theme (default) */
    --bg-color: #1a1a1a;
    --text-color: #ffffff;
    --text-secondary: #888;
    --border-color: #333;
    --link-hover-bg: rgba(255, 255, 255, 0.1);
    --selection-bg: rgba(255, 255, 255, 0.2);
    --accent-color: #fbbf24;
}

/* Light theme */
[data-theme="light"] {
    --bg-color: #ffffff;
    --text-color: #1a1a1a;
    --text-secondary: #666;
    --border-color: #e0e0e0;
    --link-hover-bg: rgba(0, 0, 0, 0.1);
    --selection-bg: rgba(0, 0, 0, 0.2);
    --accent-color: #f59e0b;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    font-weight: 400;
    font-size: 16px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Time Section */
.time-section {
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.local-time {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.time-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-style: italic;
}

.time-display {
    font-size: 24px;
    font-weight: 500;
    color: var(--text-color);
    font-family: 'Courier New', monospace;
}



.theme-toggle {
    font-size: 18px;
    cursor: pointer;
    transition: opacity 0.3s ease;
    color: var(--text-color);
    margin-top: 5px;
}

.theme-toggle:hover {
    opacity: 0.7;
}

/* Main Content */
.content {
    flex: 1;
}

.intro {
    margin-bottom: 40px;
}

.intro p {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.role {
    color: var(--text-secondary);
    font-weight: 400;
}

/* Navigation */
.section-nav {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 5px;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 5px 0;
    position: relative;
}

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

.nav-link.active {
    color: var(--accent-color);
    text-decoration: underline;
    text-decoration-color: var(--accent-color);
    text-underline-offset: 3px;
}

.nav-separator {
    color: var(--text-secondary);
    margin: 0 5px;
    font-weight: 300;
}

/* Links */
.link {
    color: var(--text-color);
    text-decoration: underline;
    text-decoration-color: var(--text-color);
    text-underline-offset: 3px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.link:hover {
    color: var(--text-color);
    text-decoration-color: var(--accent-color);
    background-color: var(--link-hover-bg);
    padding: 2px 4px;
    border-radius: 3px;
}

/* Sections */
.section {
    margin-bottom: 40px;
}

.content-section {
    margin-bottom: 40px;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.content-section.hidden {
    display: none;
    opacity: 0;
    transform: translateY(10px);
}

.section h2 {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 30px;
    text-transform: lowercase;
    transition: color 0.3s ease;
}

.section ul {
    list-style: none;
    padding-left: 0;
}

.section li {
    margin-bottom: 8px;
    font-size: 16px;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.section p {
    font-size: 16px;
    color: var(--text-color);
    line-height: 1.6;
    transition: color 0.3s ease;
}

.section-separator {
    height: 1px;
    background-color: var(--border-color);
    margin-bottom: 25px;
    transition: background-color 0.3s ease;
}

/* Experience Items */
.experience-item {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    transition: border-color 0.3s ease;
}

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

.experience-item h3 {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.company {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

/* Project Items */
.project-item {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    transition: border-color 0.3s ease;
}

.project-item:last-child {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0;
    padding-bottom: 25px;
}

.project-item h3 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.project-item p {
    margin-bottom: 8px;
}

.project-tech {
    font-size: 14px;
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
    transition: color 0.3s ease;
}

.project-details {
    margin-top: 15px;
    transition: all 0.3s ease;
}

.project-details p {
    margin-bottom: 8px;
    font-size: 16px;
    color: var(--text-color);
    line-height: 1.5;
}

.project-details strong {
    font-weight: 400;
}

.project-overview {
    margin-bottom: 25px;
}

.project-section {
    margin-bottom: 20px;
}

.project-details h4 {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-color);
    margin-bottom: 12px;
    text-transform: lowercase;
}

.project-details h5 {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-color);
    margin-bottom: 6px;
    text-transform: lowercase;
}

.overview-section {
    margin-bottom: 15px;
}

.project-details ul {
    list-style: disc;
    padding-left: 20px;
}

.project-details li {
    margin-bottom: 6px;
    font-size: 16px;
    color: var(--text-color);
    line-height: 1.5;
}

.result-item {
    margin-bottom: 15px;
}

.result-item h5 {
    color: var(--text-color);
}

/* Blog Items */
.blog-item {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    transition: border-color 0.3s ease;
}

.blog-item:last-child {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0;
    padding-bottom: 25px;
}

.blog-item h3 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.blog-date {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

/* Books Items */
.books-item {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    transition: border-color 0.3s ease;
}

.books-item:last-child {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0;
    padding-bottom: 25px;
}

.books-item h3 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.book-author {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.blog-details {
    margin-top: 15px;
    transition: all 0.3s ease;
}

.blog-content {
    line-height: 1.6;
}

.blog-content h1 {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 15px;
    margin-top: 25px;
}

.blog-content h2 {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 12px;
    margin-top: 20px;
}

.blog-content h4 {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 12px;
    margin-top: 20px;
}

.blog-content h5 {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 8px;
    margin-top: 16px;
}

.blog-content p {
    margin-bottom: 12px;
    font-size: 16px;
    color: var(--text-color);
    line-height: 1.6;
}

.blog-content ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 12px;
}

.blog-content li {
    margin-bottom: 6px;
    font-size: 16px;
    color: var(--text-color);
    line-height: 1.5;
}

.blog-content em {
    font-style: italic;
    color: var(--text-secondary);
}

.blog-content strong {
    font-weight: 500;
}

/* Motto */
.motto {
    margin: 40px 0;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    transition: border-color 0.3s ease;
}

.motto p {
    font-size: 14px;
    color: var(--text-secondary);
    font-style: italic;
    text-align: center;
    transition: color 0.3s ease;
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: auto;
    padding-top: 40px;
}

.social-link {
    color: var(--text-color);
    font-size: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

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



/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 30px 15px;
    }
    
    .intro p {
        font-size: 16px;
    }
    
    .time-display {
        font-size: 20px;
    }
    
    .section h2 {
        font-size: 15px;
    }
    
    .section li,
    .section p {
        font-size: 15px;
    }
    
    .experience-item h3,
    .project-item h3,
    .blog-item h3 {
        font-size: 16px;
    }
    
    .section-nav {
        gap: 3px;
    }
    
    .nav-separator {
        margin: 0 3px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 20px 10px;
    }
    
    .intro p {
        font-size: 15px;
    }
    
    .time-display {
        font-size: 18px;
    }
    
    .social-links {
        gap: 15px;
    }
    
    .social-link {
        font-size: 18px;
        width: 35px;
        height: 35px;
    }
    
    .experience-item,
    .project-item,
    .blog-item {
        margin-bottom: 20px;
        padding-bottom: 20px;
    }
    
    .section-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .nav-separator {
        display: none;
    }
}

/* Focus styles for accessibility */
.social-link:focus {
    outline: 2px solid var(--text-color);
    outline-offset: 2px;
}

.nav-link:focus,
.link:focus {
    outline: none;
}

/* Selection styles */
::selection {
    background-color: var(--selection-bg);
    color: var(--text-color);
} 