/* ========================================
   PROJECTS PAGE STYLES
   Project-specific styles only - navbar/footer from home-styles.css
   ======================================== */

/* ========================================
   1. PROJECTS SECTION STYLES
   ======================================== */
.projects-main {
    padding: 140px 0 60px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-label {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: #FF4D00;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.section-title {
    font-family: "Sora", sans-serif;
    font-size: 2.5rem;
    font-weight: 400;
    color: #333333;
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-description {
    font-family: "Barlow", sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    color: #666666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Base: 2 columns (used by homepage featured work) */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

/* Work page override: 3 columns */
.projects-main .projects-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

/* ========================================
   2. PROJECT CARDS (clean, reference-style)
   ======================================== */
.project {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid #eee;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
}

.project:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.project-image {
    width: 100%;
    height: 380px;
    overflow: hidden;
    position: relative;
    background: #f8f9fa;
}

/* Work page: shorter images for 3-col grid */
.projects-main .project-image {
    height: 300px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.project-image .primary-image {
    opacity: 1;
    z-index: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.project-image .hover-image {
    opacity: 0;
    z-index: 2;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* CSS fallback for hover effect */
.project:hover .project-image .primary-image {
    opacity: 0;
    transform: scale(1.05);
}

.project:hover .project-image .hover-image {
    opacity: 1;
    transform: scale(1.05);
}

.project-details {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.projects-main .project-details {
    padding: 24px;
    gap: 10px;
}

.project-details h2 {
    font-family: "Sora", sans-serif;
    font-size: 1.4rem;
    font-weight: 400;
    color: #111;
    margin: 0;
    line-height: 1.3;
}

/* Project Pills */
.project-pills {
    display: flex;
    gap: 8px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.project-client,
.project-date {
    background: rgba(255, 77, 0, 0.08);
    color: #FF4D00;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    transition: background 0.2s ease;
}

.project:hover .project-client,
.project:hover .project-date {
    background: rgba(255, 77, 0, 0.12);
}

.project-btn {
    display: inline-block;
    color: #FF4D00;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    align-self: flex-start;
    margin-top: 8px;
    border: 2px solid #FF4D00;
    padding: 12px 20px;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease;
}

.project:hover .project-btn {
    background: #FF4D00;
    color: #fff;
}

/* ========================================
   3. FADE-IN ANIMATIONS
   ======================================== */
/* Fade-in animations removed for faster loading */

/* ========================================
   4. RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1024px) {
    .projects-grid,
    .projects-main .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .project-image {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .projects-main {
        padding: 120px 0 40px;
    }

    .projects-grid,
    .projects-main .projects-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .project-image {
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .project-details h2 {
        font-size: 1.4rem;
    }
    
    .project-pills {
        gap: 6px;
        margin-bottom: 12px;
    }
    
    .project-client,
    .project-date {
        padding: 5px 10px;
        font-size: 11px;
    }

    .project-details {
        height: auto;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .projects-main {
        padding: 110px 0 30px;
    }

    .project-details h2 {
        font-size: 1.6rem;
    }
}