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

.work-item {
    margin-bottom: 32px;
}

.work-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 18px;
    font-size: 1.05em;
    margin-bottom: 4px;
}

.work-company {
    font-weight: bold;
    min-width: 140px;
}

.work-date {
    color: #7a6c5c;
    font-size: 0.98em;
    min-width: 120px;
}

.work-title {
    font-weight: 600;
    color: #3d3d3d;
    font-size: 1em;
}

.work-desc {
    margin-left: 0;
    line-height: 1.7;
    font-size: 0.98em;
}
:root {
    --bg-color: #F5F0E8;
    --text-color: #121212;
    --link-color: #000;
    --link-hover-color: #3F7D58;
    --accent-color: #3F7D58;
    --secondary-color: #f3f4f6;
    --border-color: rgba(0, 0, 0, 0.1);
    --modal-bg: rgba(0, 0, 0, 0.7);
    --modal-content-bg: #F5F0E8;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --card-bg: rgba(255, 255, 255, 0.4);
    --card-bg-hover: rgba(255, 255, 255, 0.6);
    --tech-tag-bg: rgba(63, 125, 88, 0.1);
    --tech-tag-color: #2d5a3f;
}

/* Dark Theme - Modern Charcoal */
[data-theme="dark"] {
    --bg-color: #111111;
    --text-color: #f5f5f5;
    --link-color: #f5f5f5;
    --link-hover-color: #22c55e;
    --accent-color: #22c55e;
    --secondary-color: #0a0a0a;
    --border-color: rgba(255, 255, 255, 0.08);
    --modal-bg: rgba(0, 0, 0, 0.9);
    --modal-content-bg: #111111;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-bg-hover: rgba(255, 255, 255, 0.06);
    --tech-tag-bg: rgba(34, 197, 94, 0.12);
    --tech-tag-color: #22c55e;
}

[data-theme="dark"] a {
    color: var(--text-color);
    border-bottom-color: rgba(34, 197, 94, 0.3);
}

[data-theme="dark"] .work-date {
    color: #a0a0a0;
}

[data-theme="dark"] .work-title {
    color: var(--accent-color);
}

[data-theme="dark"] .work-desc {
    color: rgba(232, 232, 232, 0.8);
}

[data-theme="dark"] .work-desc b {
    color: var(--text-color);
}

[data-theme="dark"] .projects a,
[data-theme="dark"] .experience a,
[data-theme="dark"] .facts a {
    color: rgba(232, 232, 232, 0.9);
}

[data-theme="dark"] .project-content {
    color: rgba(232, 232, 232, 0.8);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Space Mono', monospace;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    padding: var(--spacing-md);
    max-width: 800px;
    margin: 0 auto;
    font-weight: 400;
    letter-spacing: -0.2px;
}

.container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: var(--spacing-md);
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from { 
        opacity: 0;
        transform: translateY(-10px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

h1 {
    font-size: 2.5rem;
    font-weight: 400;
    letter-spacing: -1px;
    position: relative;
    display: inline-block;
    transition: color 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

h1:hover {
    color: var(--accent-color);
}

h1::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
    bottom: -2px;
    left: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

h1:hover::after {
    transform: scaleX(1);
}

h2 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
    opacity: 0.85;
    letter-spacing: -0.3px;
}

.socials {
    display: flex;
    gap: var(--spacing-sm);
}

.socials a {
    text-decoration: none;
    position: relative;
    font-weight: 500;
    opacity: 0.9;
    transition: opacity 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    border-bottom: none;
}

.socials a:hover {
    opacity: 1;
    border-bottom: none;
}

.socials a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--link-hover-color);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.socials a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

a {
    color: #121212;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    font-weight: 500;
    border-bottom: 1px solid rgba(63, 125, 88, 0.3);
}

a:hover {
    color: var(--link-hover-color);
    border-bottom: 1px solid var(--link-hover-color);
}

ul {
    list-style-type: none;
}

li {
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: flex-start;
    line-height: 1.6;
}

li::before {
    content: "•";
    margin-right: var(--spacing-xs);
    opacity: 0.7;
}

.highlights a, .projects a, .experience a, .facts a {
    margin-right: 5px;
}

.intro p {
    margin-bottom: var(--spacing-xs);
    font-size: 1.15rem;
    opacity: 0.9;
}

.image-section {
    margin: var(--spacing-md) 0;
}

.image-section img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.image-section img:hover {
    transform: scale(1.01);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

section {
    margin-bottom: var(--spacing-lg);
    animation: fadeIn 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.highlights li, .projects li, .experience li, .facts li {
    opacity: 0.85;
    transition: opacity 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.highlights li:hover, .projects li:hover, .experience li:hover, .facts li:hover {
    opacity: 1;
}

.projects h2, .experience h2, .facts h2 {
    margin-bottom: var(--spacing-sm);
    padding-bottom: var(--spacing-xs);
    border-bottom: 1px solid var(--border-color);
    font-size: 1.2rem;
    font-weight: 400;
    opacity: 0.7;
}

section a {
    position: relative;
    display: inline-block;
    font-weight: 500;
}

.projects a, .experience a, .facts a {
    font-weight: 500;
    display: inline-block;
    transition: color 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    color: rgba(0, 0, 0, 0.85);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: var(--modal-bg);
}

.modal-content {
    background-color: var(--modal-content-bg);
    margin: 8% auto;
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: 12px;
    width: 80%;
    max-width: 700px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    position: relative;
    animation: modalFadeIn 0.25s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-15px); }
    to { opacity: 1; transform: translateY(0); }
}

.close {
    color: #888;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    padding: 5px 10px;
    position: absolute;
    right: 15px;
    top: 15px;
    z-index: 10;
    background: none;
    border: none;
    outline: none;
}

.close:hover,
.close:focus {
    color: #000;
    background: none !important;
    outline: none;
}
.modal-content p {
    margin-bottom: var(--spacing-sm);
    line-height: 1.8;
}

.modal-content h2 {
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-xs);
    border-bottom: 1px solid var(--border-color);
    padding-right: 40px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    body {
        padding: var(--spacing-sm);
    }
    
    header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }
    
    .socials {
        margin-top: var(--spacing-xs);
    }
    
    .image-section img {
        height: 300px;
    }

    .modal-content {
        width: 90%;
        padding: var(--spacing-sm);
        margin: 15% auto;
    }
}

@media (min-width: 769px) {
    li {
        max-width: 90%;
    }
}

/* Additional responsive tweaks */
@media (max-width: 576px) {
    body {
        padding: 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .socials {
        margin-top: var(--spacing-xs);
        gap: 0.7rem;
    }
    
    .modal-content {
        width: 95%;
        padding: 1rem;
        margin: 10% auto;
    }
}

/* ========== ENHANCED UI STYLES ========== */

/* Work Experience Cards */
.experience ul {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.experience li {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 0;
    display: block;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.experience li:hover {
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.experience li::before {
    display: none;
}

/* Work Row Improvements */
.work-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.75rem 1rem;
    align-items: baseline;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.work-company {
    font-weight: 600;
    font-size: 1.1em;
    color: var(--text-color);
}

.work-date {
    color: #6b7280;
    font-size: 0.9em;
    text-align: right;
}

.work-title {
    grid-column: 1 / -1;
    font-weight: 500;
    color: var(--accent-color);
    font-size: 0.95em;
    margin-top: -0.25rem;
}

.work-desc {
    line-height: 1.75;
    font-size: 0.95em;
    color: rgba(0, 0, 0, 0.75);
}

.work-desc b {
    color: var(--text-color);
    font-weight: 600;
}

/* Projects Section Enhancement */
.projects li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.projects li:last-child {
    border-bottom: none;
}

.projects li:hover {
    padding-left: 0.5rem;
    background: rgba(63, 125, 88, 0.03);
    border-radius: 6px;
}

/* Quick Facts Enhancement */
.facts li {
    padding: 0.4rem 0;
    position: relative;
}

.facts li::before {
    content: "→";
    color: var(--accent-color);
    font-weight: 600;
    margin-right: 0.75rem;
    opacity: 1;
}

/* Highlights Enhancement */
.highlights li {
    padding: 0.3rem 0;
}

.highlights li::before {
    content: "◦";
    font-size: 1.2em;
    color: var(--accent-color);
    opacity: 0.7;
}

/* Section Dividers */
section h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-color);
    opacity: 0.5;
    border-radius: 2px;
}

/* Footer Styles */
footer {
    margin-top: 3rem;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    opacity: 0.7;
    font-size: 0.9rem;
}

footer p {
    margin-bottom: 0.5rem;
}

footer .footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

footer .footer-links span {
    opacity: 0.4;
    font-size: 0.7em;
}

footer a {
    border-bottom: none;
    opacity: 0.8;
}

footer a:hover {
    opacity: 1;
    border-bottom: none;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Selection styling */
::selection {
    background: rgba(63, 125, 88, 0.2);
    color: var(--text-color);
}

/* Intro section polish */
.intro {
    padding: 0.5rem 0;
}

.intro p:first-child {
    font-size: 1.2rem;
    font-weight: 500;
}

/* Modal close button enhancement */
.close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 24px;
    padding: 0;
    transition: all 0.2s ease;
}

.close:hover {
    background: rgba(0, 0, 0, 0.05) !important;
    transform: rotate(90deg);
}

/* Mobile adjustments for new styles */
@media (max-width: 768px) {
    .work-row {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }
    
    .work-date {
        text-align: left;
        order: 2;
    }
    
    .work-title {
        order: 3;
    }
    
    .experience li {
        padding: 1rem;
    }
    
    footer .footer-links {
        gap: 0.5rem;
    }
}

/* ========== NEW UI ENHANCEMENTS ========== */

/* Header Right Container */
.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.theme-toggle:hover {
    background: var(--card-bg);
    border-color: var(--accent-color);
    transform: rotate(15deg);
}

.theme-toggle .sun-icon {
    display: block;
}

.theme-toggle .moon-icon {
    display: none;
}

[data-theme="dark"] .theme-toggle .sun-icon {
    display: none;
}

[data-theme="dark"] .theme-toggle .moon-icon {
    display: block;
}

/* Tech Tags */
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.tech-tag {
    background: var(--tech-tag-bg);
    color: var(--tech-tag-color);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.tech-tag:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(63, 125, 88, 0.3);
}

/* Project Content Wrapper */
.projects li {
    display: block;
    flex-direction: column;
}

.project-content {
    display: inline;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    box-shadow: 0 4px 15px rgba(63, 125, 88, 0.3);
    z-index: 100;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(63, 125, 88, 0.4);
}

.back-to-top:active {
    transform: translateY(-2px);
}

/* Scroll-triggered Animations - optimized */
.scroll-animate {
    opacity: 0.9;
    transform: translateY(10px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.scroll-animate.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Simplified list animation - no stagger for better performance */
.scroll-animate.animate-in li {
    opacity: 1;
}

/* Improved Hover Effects */
.projects li {
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.projects li::after {
    content: '';
    position: absolute;
    left: -1rem;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent-color);
    border-radius: 2px;
    transform: scaleY(0);
    transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.projects li:hover::after {
    transform: scaleY(1);
}

.projects li:hover {
    padding-left: 0.75rem;
    background: transparent;
}

/* Enhanced Experience Card Hover */
.experience li {
    position: relative;
    overflow: hidden;
}

.experience li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-color), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.experience li:hover::before {
    opacity: 1;
}

/* Link hover glow effect */
a {
    position: relative;
}

section a:hover {
    text-shadow: 0 0 20px rgba(63, 125, 88, 0.2);
}

/* Facts arrow animation */
.facts li {
    transition: all 0.3s ease;
}

.facts li:hover {
    padding-left: 0.5rem;
}

.facts li:hover::before {
    transform: translateX(4px);
}

/* Dark mode adjustments for new elements */
[data-theme="dark"] .back-to-top {
    background: var(--accent-color);
    box-shadow: 0 4px 15px rgba(111, 202, 142, 0.3);
}

[data-theme="dark"] .back-to-top:hover {
    box-shadow: 0 6px 20px rgba(111, 202, 142, 0.4);
}

[data-theme="dark"] .experience li {
    background: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .experience li:hover {
    background: var(--card-bg-hover);
}

[data-theme="dark"] .close:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] section a:hover {
    text-shadow: 0 0 20px rgba(111, 202, 142, 0.3);
}

/* Mobile adjustments for new elements */
@media (max-width: 768px) {
    header {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .header-right {
        width: 100%;
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        gap: 0.75rem;
    }
    
    .header-right .theme-toggle {
        position: fixed;
        right: 1rem;
        top: 1rem;
        z-index: 99;
        background: var(--bg-color);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    .theme-toggle {
        width: 36px;
        height: 36px;
    }
    
    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 44px;
        height: 44px;
    }
    
    .tech-tags {
        margin-top: 0.5rem;
    }
    
    .tech-tag {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }
    
    .projects li::after {
        left: -0.5rem;
    }
}

@media (max-width: 576px) {
    .experience li {
        padding: 0.875rem;
        border-radius: 8px;
    }
    
    .work-company {
        font-size: 1em;
    }
    
    footer {
        padding: 1.5rem 0;
        margin-top: 2rem;
    }
} 