/* =============================
   SECTION PAGE LAYOUT
   ============================= */
body.section-page {
    overflow: hidden;
}

.section-container {
    display: flex;
    height: 100vh;
}

/* =============================
   SIDEBAR
   ============================= */
.sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    display: flex;
    flex-direction: column;
    padding: 40px 24px;
    gap: 36px;
    overflow-y: auto;
}

.sidebar .name {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.sidebar .name:hover {
    color: #fff;
    text-decoration: none;
}

.sidebar .tagline {
    font-size: 1rem;
    color: #ccc;
    margin-top: 8px;
    line-height: 1.5;
    font-style: italic;
}

.sidebar .about p {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #aaa;
}

/* =============================
   MAIN CONTENT
   ============================= */
.section-content {
    flex: 1;
    overflow-y: auto;
    background: #fafafa;
    padding: 60px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--section-color, var(--accent));
    margin-bottom: 40px;
}

/* =============================
   PROJECT GRID
   ============================= */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 32px;
}

.project-card {
    display: block;
    text-decoration: none;
    color: var(--text);
    transition: transform 0.2s;
}

.project-card:hover {
    transform: translateY(-4px);
    text-decoration: none;
}

.card-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 6px;
    background: #eee;
    margin-bottom: 12px;
}

.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.project-card:hover .card-thumb img {
    transform: scale(1.04);
}

.card-info h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: #222;
}

.card-info p {
    font-size: 0.8rem;
    color: #888;
}

/* =============================
   RESPONSIVE
   ============================= */
@media (max-width: 640px) {
    body.section-page {
        overflow: auto;
    }

    .section-container {
        flex-direction: column;
        height: auto;
    }

    .sidebar {
        width: 100%;
        min-width: unset;
        padding: 24px;
        gap: 24px;
    }

    .section-links {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .section-content {
        padding: 24px;
        order: -1;
    }

    .project-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 20px;
    }
}
