/* ==========================================================================
   TABLE OF CONTENTS
   1. Projects Page Layout
   2. Project Toolbar (Categories & Sorting)
   3. Project Grid & UNIFIED Card Styles
   4. Pagination
   5. On-Scroll Animations
   6. Responsive Design
   ========================================================================== */

/* ==========================================================================
   1. Projects Page Layout
   ========================================================================== */
.projects-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    /* Increased back to 40px */
}

.portfolio-header {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.portfolio-header h1 {
    line-height: 1.1;
    /* Inherits from base.css h1 */
}

.portfolio-header h1 span {
    color: var(--accent-color);
}

.portfolio-header p {
    font-size: 18px;
    color: var(--paragraph-color);
    max-width: 800px;
    margin: 0 auto;
}

/* ==========================================================================
   2. Project Toolbar (Categories & Sorting)
   ========================================================================== */
/* Page-specific overrides only */
.sort-dropdown {
    flex-shrink: 0;
}

/* ==========================================================================
   3. Project Grid & UNIFIED Card Styles
   (These styles are copied from home.css for consistency)
   ========================================================================== */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 400px));
    gap: 30px;
    width: 100%;
    justify-content: start;
}

.project-card {
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 100%;
    max-width: 400px;
    cursor: pointer;
}

/* Removed hover effect for simplified styling */
.project-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 1;
}

.project-content h3 {
    font-size: 22px;
    line-height: 1.2;
}

.project-content h3 a {
    color: var(--title-color);
    text-decoration: none;
}

.project-content h3 a:hover {
    color: var(--accent-color);
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.teg {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: var(--radius-tag, 4px);
    background-color: rgba(0, 169, 255, 0.1);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    font-size: 12px;
    font-weight: 500;
}

.project-links {
    margin-top: auto;
    padding-top: 10px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.outline-btn {
    background: transparent;
    border: 2px solid var(--card-border);
    color: var(--title-color);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    border-radius: var(--radius-btn, 4px);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 16px;
    text-decoration: none;
}

.outline-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}


/* ==========================================================================
   5. On-Scroll Animations
   ========================================================================== */


/* ==========================================================================
   6. Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
    .project-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 380px));
        justify-content: start;
    }
}

@media (max-width: 768px) {

    /* Typography inherits from base.css responsive styles */
    .portfolio-container {
        gap: 35px;
    }

    /* Increased from 25px */
}

@media (max-width: 576px) {
    .project-grid {
        grid-template-columns: 1fr;
        justify-content: stretch;
    }

    .project-card {
        max-width: 100%;
        padding: 16px;
    }

    .portfolio-container {
        gap: 30px;
    }
}

@media (max-width: 400px) {
    .project-card {
        padding: 14px;
    }

    .project-content h3 {
        font-size: 18px;
    }

    .project-links {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }

    .project-links .outline-btn {
        width: 100%;
        justify-content: center;
        padding: 8px 12px;
        font-size: 13px;
    }

    .teg {
        padding: 3px 8px;
        font-size: 11px;
    }
}