/* All Projects Page - Matching Main Site Row Layout */

/* Projects page styles — tuned to the site's soft pastel theme
   This file expects the main `styles.css` to be loaded first so it can
   reuse root variables like --primary, --card-bg, --card-hover, etc. */

.all-projects-section {
    width: 100%;
    background: white;
    padding-top: 100px;
}

/* Projects Header */
.projects-header {
    text-align: center;
    padding: 60px 40px;
    background: white;
}

.projects-main-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.projects-subtitle {
    font-size: 16px;
    color: var(--text-gray);
    font-weight: 400;
}

/* Projects Grid Container - Full Width Rows */
.projects-grid-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Each Project in Full Width Row */
.project-card {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 72px 20px;
    position: relative;
    overflow: visible;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    cursor: default;
}

/* Alternating Backgrounds */
.project-card:nth-child(3n+1) {
    background: linear-gradient(135deg, #FFE5E5 0%, #FFF0F0 100%);
}

.project-card:nth-child(3n+2) {
    background: linear-gradient(135deg, #FFF9E6 0%, #FFFDF0 100%);
}

.project-card:nth-child(3n) {
    background: linear-gradient(135deg, #E8E4F3 0%, #F5F3FA 100%);
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(47, 93, 84, 0.12);
}

/* Inner Container */
.project-card-inner {
    max-width: 1100px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: #ffffff;
    border-radius: 16px;
    padding: 36px 48px;
    box-shadow: 0 18px 40px rgba(20, 20, 20, 0.06);
    border: 1px solid rgba(20, 20, 20, 0.04);
}

/* Project Card Header */
.project-card-header {
    margin-bottom: 5px;
}

.project-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.project-card-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 6px 0 0 0;
    line-height: 1.2;
    letter-spacing: -0.3px;
}

/* Project Description - Always Visible */
.project-card-description {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.75;
    margin-bottom: 18px;
    max-height: none;
    overflow: visible;
    position: relative;
    transition: color 0.25s ease;
}

.project-card:hover .project-card-description {
    color: var(--text-dark);
}

/* Tech Stack - Hidden by default, visible on hover */
.project-card-tech {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
    /* hidden by default, reveal on hover of the parent project card */
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.35s ease;
    visibility: hidden;
    pointer-events: none;
}

.project-card:hover .project-card-tech {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
}

.project-card-tech span {
    background: rgba(47, 93, 84, 0.06);
    color: var(--text-dark);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.25s ease;
}

.project-card:hover .project-card-tech span {
    background: var(--card-hover);
    color: var(--text-dark);
    transform: translateY(-2px);
}

/* Back Button Container */
.back-button-container {
    width: 100%;
    text-align: center;
    padding: 60px 40px;
    background: white;
}

.back-button {
    display: inline-block;
    padding: 14px 36px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 26px rgba(102, 126, 234, 0.15);
    font-family: 'Sora', sans-serif;
}

.back-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 40px rgba(102, 126, 234, 0.18);
}

/* Responsive Design */
@media (max-width: 968px) {
    .project-card {
        padding: 45px 40px;
    }

    .projects-header {
        padding: 50px 30px;
    }

    .projects-main-title {
        font-size: 36px;
    }

    .project-card-title {
        font-size: 28px;
    }
}

@media (max-width: 640px) {
    .project-card {
        padding: 40px 25px;
    }

    .projects-header {
        padding: 40px 20px;
    }

    .projects-main-title {
        font-size: 28px;
    }

    .project-card-title {
        font-size: 24px;
    }

    .project-card-description {
        font-size: 13px;
    }

    .project-card-tech {
        gap: 15px;
    }

    .project-card-tech span {
        font-size: 12px;
    }
}