:root {
    /* Light Mode (Default) */
    --bg-color: #FFF4D9;
    --text-color: #333333;
    --secondary-text: #888888;
    --accent-color: #e0e0e0;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body.dark-mode {
    /* ChatGPT Dark Mode */
    --bg-color: #282828;
    --text-color: #ECECF1;
    --secondary-text: #C5C5D2;
    --accent-color: #565869;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
    height: 100vh;
    overflow: hidden;
    line-height: 1.5;
}

.container {
    display: flex;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Sidebar */
.sidebar {
    width: 35%;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    /* For absolute positioning of toggle */
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.profile-pic {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    object-fit: cover;
}

.profile h1 {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--secondary-text);
    /* Muted title color like image */
    opacity: 0.5;
    transition: color 0.3s ease, opacity 0.3s ease;
    cursor: default;
    margin-bottom: 0;
    /* Remove margin as it's handled by flex gap */
}

.profile h1:hover {
    color: var(--text-color);
    opacity: 1;
}

.greeting {
    font-size: 1.2rem;
    color: var(--secondary-text);
    line-height: 1.4;
    opacity: 0.6;
}

nav ul {
    list-style: none;
    margin-top: 2rem;
}

nav li {
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
}

nav li::before {
    content: '•';
    color: var(--secondary-text);
    margin-right: 1rem;
    opacity: 0.5;
    font-size: 0.8rem;
}

nav a {
    text-decoration: none;
    color: var(--secondary-text);
    font-size: 1.2rem;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover,
nav a.active {
    color: var(--text-color);
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: var(--secondary-text);
}

.footer {
    font-size: 0.9rem;
    color: var(--secondary-text);
    opacity: 0.6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    margin-bottom: 1rem;
    margin-right: 1rem;
}

.theme-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--secondary-text);
    padding: 5px;
    border-radius: 50%;
    transition: color 0.3s, background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 4rem;
    right: 4rem;
    z-index: 10;
}

.theme-toggle-btn:hover {
    color: var(--text-color);
    background-color: var(--accent-color);
}

/* Icon Visibility Logic */
.sun-icon {
    display: none;
}

.moon-icon {
    display: block;
}

body.dark-mode .sun-icon {
    display: block;
}

body.dark-mode .moon-icon {
    display: none;
}

.picker-popover {
    position: absolute;
    bottom: 40px;
    left: 0;
    background: var(--bg-color);
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: none;
    z-index: 100;
    border: 1px solid var(--accent-color);
}

.picker-popover.visible {
    display: block;
    animation: popIn 0.2s ease;
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Main Content */
.content {
    flex: 1;
    padding: 4rem 4rem 4rem 2rem;
    /* Less left padding */
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Center vertically like image */
}

section {
    display: none;
    animation: fadeIn 0.6s ease;
    max-width: 700px;
}

section.active {
    display: block;
}

section h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--secondary-text);
    opacity: 0.4;
    border-bottom: 1px solid var(--accent-color);
    padding-bottom: 0.5rem;
    display: inline-block;
    width: 100%;
}

.intro p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.detail-col h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--secondary-text);
    margin-bottom: 1rem;
    font-weight: 600;
}

.detail-col ul {
    list-style: none;
}

.detail-col li {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: var(--text-color);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Project List Styling */
.project-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.project-item {
    position: relative;
    padding-left: 1.5rem;
    border-left: 1px solid var(--accent-color);
    transition: border-color 0.3s ease;
}

.project-item:hover {
    border-left-color: var(--text-color);
}

.project-item h3 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--secondary-text);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.project-item p {
    color: var(--secondary-text);
    font-size: 1rem;
    line-height: 1.6;
}

.project-item p a {
    color: var(--text-color);
    font-size: 1.4rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 0.5rem;
    transition: opacity 0.3s ease;
}

.project-item p a:hover {
    opacity: 0.7;
}

/* Social Links */
.social-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.social-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
    transition: opacity 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}

.social-icon {
    width: 1.2rem;
    height: 1.2rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.social-links a:hover {
    opacity: 0.7;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: var(--secondary-text);
}

.social-links a:hover .social-icon {
    opacity: 1;
}

/* Blog List */
.blog-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.blog-list a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
    transition: opacity 0.3s ease;
    display: inline-block;
    line-height: 1.4;
}

.blog-list a:hover {
    opacity: 0.7;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: var(--secondary-text);
}

/* Mobile */
@media (max-width: 900px) {
    .container {
        flex-direction: column;
        height: auto;
    }

    .sidebar {
        width: 100%;
        padding: 2rem;
        height: auto;
        border-bottom: 1px solid var(--accent-color);
    }

    .profile-header {
        gap: 1rem;
    }

    .profile-pic {
        width: 4rem;
        height: 4rem;
    }

    .profile h1 {
        font-size: 2.5rem;
    }

    .theme-toggle-btn {
        top: 2rem;
        right: 2rem;
    }

    .content {
        padding: 2rem;
        justify-content: flex-start;
    }

    body {
        overflow: auto;
    }

    .details-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    section h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
}
