/* =========================================================
   PROJECTS PAGE CSS
========================================================= */


/* =========================================================
   HERO SECTION
========================================================= */

.projects-hero-section {
    position: relative;
    width: 100%;
    min-height: 85vh;
    background-color: #1a1a1a;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    padding-top: 120px;
    padding-bottom: 80px;
    overflow: hidden;
}


.projects-hero-section .container {
    position: relative;
    z-index: 2;
}

.projects-hero-content {
    max-width: 520px;
}

.projects-hero-content h1 {
    font-size: 5rem;
    line-height: 1.05;
    color: #ffffff;
    font-weight: 900;
    margin-bottom: 18px;
}

.projects-hero-content p {
    font-size: 1.08rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.92);
    margin-bottom: 40px;
    max-width: 360px;
}

.projects-cta {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
}

.projects-cta-label {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 700;
}

.projects-arrow-btn {
    width: 48px;
    height: 48px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s ease;
    text-decoration: none;
}

.projects-arrow-btn:hover {
    background: #ffffff;
    color: #8d1b1b;
    transform: translateY(-3px);
}


/* =========================================================
   PROJECT SHOWCASE SECTION
========================================================= */

.projects-showcase-section {
    background: #f2f2f2;
    padding: 70px 5%;
}

.projects-grid {
    max-width: 1400px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}


/* =========================================================
   PROJECT CARD
========================================================= */

.project-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 18px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

.project-content {
    padding: 22px;
}

.project-content h3 {
    color: #9a1c1c;
    font-size: 1.35rem;
    line-height: 1.35;
    margin-bottom: 12px;
    font-weight: 800;
}

.project-content p {
    color: #555555;
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}


/* =========================================================
   LARGE CARDS
========================================================= */

.project-large {
    grid-column: span 2;
}

.project-large img {
    height: 500px;
}


/* =========================================================
   SPECIAL LAST 3 CARD LAYOUT
========================================================= */

.project-tall {
    grid-row: span 2;
    height: 100%;
}

.project-tall img {
    height: 720px;
}

.project-tall .project-content {
    flex-grow: 1;
}


/* =========================================================
   IMAGE STYLING
========================================================= */

.project-card img {
    transition: transform 0.5s ease;
}

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


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

@media (max-width: 1100px) {

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-large {
        grid-column: span 1;
    }

    .project-tall {
        grid-row: span 1;
    }

    .project-large img {
        height: 360px;
    }

    .project-tall img {
        height: 360px;
    }

    .project-card img {
        height: 320px;
    }
}


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

@media (max-width: 768px) {

    .projects-hero-section {
        min-height: 72vh;
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .projects-hero-content {
        text-align: center;
        max-width: 100%;
    }

    .projects-hero-content h1 {
        font-size: 3rem;
    }

    .projects-hero-content p {
        max-width: 100%;
        font-size: 1rem;
        line-height: 1.7;
    }

    .projects-cta {
        align-items: center;
    }

    .projects-showcase-section {
        padding: 45px 16px;
    }

    .projects-grid {
        gap: 22px;
    }

    .project-card img,
    .project-large img,
    .project-tall img {
        height: 240px;
    }

    .project-content {
        padding: 18px;
    }

    .project-content h3 {
        font-size: 1.15rem;
        margin-bottom: 10px;
    }

    .project-content p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
}


/* =========================================================
   EXTRA SMALL DEVICES
========================================================= */

@media (max-width: 480px) {

    .projects-hero-content h1 {
        font-size: 2.5rem;
    }

    .projects-hero-content p {
        font-size: 0.95rem;
    }

    .project-card img,
    .project-large img,
    .project-tall img {
        height: 220px;
    }

    .project-content {
        padding: 16px;
    }

    .project-content h3 {
        font-size: 1.05rem;
    }

    .project-content p {
        font-size: 0.92rem;
    }
}