:root {
    --bg-color: #fdfdfd;
    --text-color: #222;
    --link-color: #0366d6;
    --border-color: #eaeaea;
    --desc-color: #555;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

header {
    margin-bottom: 3rem;
}

h1 {
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Hide the radio inputs that drive the logic */
input[type="radio"][name="portfolio-tabs"] {
    display: none;
}

/* Navigation Styles */
nav {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

label.nav-btn {
    font-size: 1rem;
    color: var(--desc-color);
    cursor: pointer;
    font-weight: 500;
    transition: color 0.2s ease;
}

label.nav-btn:hover {
    color: var(--text-color);
}

/* Hide all sections by default */
.content-section {
    display: none;
}

/* CSS LOGIC: Show correct section based on checked radio button */
#tab-home:checked ~ #content-home,
#tab-writings:checked ~ #content-writings,
#tab-solutions:checked ~ #content-solutions,
#tab-code:checked ~ #content-code,
#tab-blog:checked ~ #content-blog {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

/* CSS LOGIC: Underline the active nav button */
#tab-home:checked ~ nav label[for="tab-home"],
#tab-writings:checked ~ nav label[for="tab-writings"],
#tab-solutions:checked ~ nav label[for="tab-solutions"],
#tab-code:checked ~ nav label[for="tab-code"],
#tab-blog:checked ~ nav label[for="tab-blog"] {
    color: var(--text-color);
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-thickness: 2px;
}

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

/* About Me Section */
.about-section {
    padding: 1.5rem;
    background-color: #f4f7f9;
    border-radius: 8px;
    border-left: 4px solid var(--link-color);
}

.about-section p {
    margin: 0;
    font-size: 1.05rem;
}

/* List Styles */
.item-list {
    list-style-type: none;
    padding: 0;
}

.item {
    margin-bottom: 2rem;
}

.item-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--link-color);
    text-decoration: none;
}

.item-title:hover {
    text-decoration: underline;
}

.item-desc {
    margin-top: 0.4rem;
    color: var(--desc-color);
    font-size: 0.95rem;
}

/* Status Badges */
.badge-in-progress {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background-color: #fff8e1;
    border: 1px solid #ebd0a0;
    color: #8c6a2c;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.15rem 0.6rem;
    border-radius: 12px;
    margin-left: 0.5rem;
    vertical-align: middle;
    position: relative;
    top: -2px; /* Slight optical adjustment to align beautifully with the title */
}

/* The small colored dot */
.badge-in-progress::before {
    content: "";
    display: block;
    width: 6px;
    height: 6px;
    background-color: #dca337;
    border-radius: 50%;
}