/* ===== PROJECTS SECTION STYLES ===== */

/* ===== MAIN PROJECTS AREA ===== */

.projects-section {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    height: 100vh;
    scrollbar-width: none;

    width: 100vw;
    left: 0;
    gap: 2.5rem;
    padding-bottom: 5rem;
    background-color: rgba(0, 0, 0, 0.4);
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    position: relative;
    z-index: 1;
}

.projects-section::-webkit-scrollbar {
    display: none;
}

/* ===== NAV SPACER ===== */

.nav-spacer {
    height: 3.5rem;
}

/* ===== SECTION HEADER ===== */

.section-header {
    display: flex;
    flex-direction: column;
}

.section-header .section-label {
    color: #6b7280;
    font-size: 0.875rem;
    font-family: "JetBrains Mono", monospace;
}

.section-header h1 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-top: 0.5rem;
}

.section-header .section-description {
    color: #9ca3af;
    margin-top: 0.5rem;
    max-width: 36rem;
}

/* ===== FEATURED PROJECTS GRID ===== */

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

/* ===== FEATURED CARD ===== */

.featured-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 0.75rem;
    border: 1px dashed #1f2937;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
}

.featured-card:hover {
    background-color: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.25);
}

.featured-card .card-img {
    width: 100%;
    height: 12rem;
    object-fit: cover;
    display: block;
}

.featured-card .card-info {
    padding: 1rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.featured-card .card-year {
    color: #4b5563;
    font-size: 0.8rem;
}

.featured-card .card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #ffffff;
    transition: color 0.2s ease;
}

.featured-card:hover .card-title {
    color: #60a5fa;
}

.featured-card .card-description {
    color: #9ca3af;
    font-size: 0.85rem;
    line-height: 1.4;
}

.featured-card .card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.5rem;
}

.featured-card .card-link {
    color: #6b7280;
    font-size: 0.8rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.featured-card .card-link:hover {
    color: #60a5fa;
}

/* ===== ARCHIVE SECTION ===== */

.archive-header {
    margin-top: 2.5rem;
}

.archive-header .section-label {
    color: #6b7280;
    font-size: 0.875rem;
    font-family: "JetBrains Mono", monospace;
}

.archive-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
}

/* ===== PROJECT GRID ===== */

.project-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
}

/* ===== PROJECT CATEGORY ===== */

.project-category {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.project-category .category-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.project-category .category-icon {
    font-size: 1.125rem;
}

.project-category .category-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #ffffff;
}

/* ===== PROJECT LINK ===== */

.project-link {
    display: flex;
    flex-direction: column;
    padding: 0.75rem 1rem;
    background-color: rgba(0, 0, 0, 0.25);
    border: 1px dashed rgba(255, 255, 255, 0.125);
    border-radius: 0.5rem;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
}

.project-link:hover {
    background-color: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.25);
}

.project-link .project-name {
    color: #d1d5db;
}

.project-link .project-type {
    color: #4b5563;
    font-size: 0.75rem;
}

/* ===== FOOTER ===== */

.footer {
    text-align: center;
    color: #4b5563;
    font-size: 0.875rem;
    padding: 2rem 0;
    border-top: 1px dashed #1f2937;
}

.footer .copyright {
    margin-top: 0.25rem;
    font-size: 0.75rem;
}

/* ===== RESPONSIVE ===== */

@media (min-width: 768px) {
    .projects-section {
        padding-left: 3rem;
        padding-right: 3rem;
    }

    .section-header h1 {
        font-size: 3rem;
    }

    .featured-card .card-img {
        height: 14rem;
    }

    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-section {
        width: 65vw;
    }
}

@media (min-width: 1440px) {
    .projects-section {
        width: 68vw;
    }

    .project-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}