:root {
    --bg-color: #ffffff;
    --text-color: #1a1a1a;
    --text-secondary: #666666;
    --border-color: #e5e5e5;
    --link-color: #0066cc;
    --link-hover: #0052a3;
    --sidebar-bg: #fafafa;
}

[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --text-color: #e5e5e5;
    --text-secondary: #a0a0a0;
    --border-color: #333333;
    --link-color: #5ca3ff;
    --link-hover: #8cc4ff;
    --sidebar-bg: #0f0f0f;
}

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

body {
    font-family: "Playfair Display", serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    display: flex;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 240px;
    height: 100vh;
    background-color: var(--sidebar-bg);
    padding: 40px 30px;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.nav-section {
    margin-bottom: 40px;
}

.nav-section h3 {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.nav-section a {
    display: block;
    color: var(--link-color);
    text-decoration: none;
    margin-bottom: 8px;
    font-size: 15px;
    transition: color 0.2s ease;
}

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

.theme-btn {
    margin-top: auto;
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.2s ease;
}

.theme-btn:hover {
    background-color: var(--border-color);
}

.content {
    margin-left: 240px;
    padding: 60px 80px;
    max-width: 900px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    max-width: 900px;
}

h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

h2 {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    margin-top: 50px;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

p {
    margin-bottom: 15px;
    color: var(--text-color);
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--link-hover);
}

.contact-info {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 40px;
    line-height: 1.8;
}

.contact-info span {
    margin: 0 4px;
}

.project {
    margin-bottom: 35px;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 6px;
}

.tech-stack {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 12px;
    font-style: italic;
}

ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

li {
    margin-bottom: 8px;
    color: var(--text-color);
}

.education {
    margin-bottom: 20px;
}

.education-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.education-header h3 {
    margin-bottom: 4px;
}

.about-section {
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.about-photo {
    flex-shrink: 0;
}

.about-photo img {
    width: 200px;
    height: 200px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid var(--border-color);
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 16px;
    line-height: 1.7;
}

.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background-color: var(--sidebar-bg);
}

.mobile-menu-btn.active {
    background-color: var(--link-color);
    color: white;
}

@media (max-width: 768px) {
    body {
        flex-direction: column;
    }

    .mobile-menu-btn {
        display: block;
    }

    .sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        width: 280px;
        height: 100vh;
        z-index: 1000;
        border-right: 1px solid var(--border-color);
        padding: 20px;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }

    .sidebar.active {
        left: 0;
    }

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

    .theme-btn {
        margin-top: 20px;
    }

    .content {
        margin-left: 0;
        padding: 30px 20px;
        padding-top: 70px;
    }

    h1 {
        font-size: 32px;
    }

    .project-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .education-header {
        flex-direction: column;
    }

    .about-section {
        flex-direction: column;
        gap: 20px;
    }

    .about-photo img {
        width: 150px;
        height: 150px;
    }
}

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

/* Focus styles for accessibility */
a:focus, button:focus {
    outline: 2px solid var(--link-color);
    outline-offset: 2px;
}
