/* =========================================
   PROJECTS SECTION
========================================= */
* {
    text-decoration: none;
}


.projects-section {

    width: 100%;

    padding: 120px 8%;

    position: relative;

    overflow-x: clip;
}

/* =========================================
   HEADING
========================================= */

.projects-heading {

    margin-bottom: 80px;

    max-width: 900px;
}

.mini-label {

    display: inline-block;

    font-size: 13px;

    text-transform: uppercase;

    letter-spacing: 2px;

    color: #ff8a65;

    margin-bottom: 18px;
}

.projects-heading h1 {

    font-size: 78px;

    line-height: 0.95;

    letter-spacing: -5px;

    color: #1f1f1f;
}

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

.projects-grid {

    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 32px;
}

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

.project-card {

    position: relative;

    display: flex;
    flex-direction: column;

    min-width: 0;

    background: rgba(255,255,255,0.72);

    backdrop-filter: blur(14px);

    border: 1px solid #ececec;

    border-radius: 38px;

    overflow: hidden;

    transition:
        transform 0.45s ease,
        box-shadow 0.45s ease,
        border-color 0.45s ease;

    cursor: pointer;
}

/* HOVER */

.project-card:hover {

    transform:
        translateY(-12px)
        rotate(-1deg);

    border-color: rgba(124,92,255,0.20);

    box-shadow:
        0 30px 70px rgba(0,0,0,0.08);
}

/* =========================================
   GLOW
========================================= */

.project-card::before {

    content: "";

    position: absolute;

    width: 220px;
    height: 220px;

    border-radius: 50%;

    background: rgba(124,92,255,0.10);

    filter: blur(60px);

    top: -100px;
    right: -100px;

    opacity: 0;

    transition: 0.45s ease;

    pointer-events: none;
}

.project-card:hover::before {

    opacity: 1;
}

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

.project-image {

    position: relative;

    width: 100%;

    aspect-ratio: 1 / 1.05;

    overflow: hidden;
}

.project-image img {

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.7s ease,
        filter 0.7s ease;
}

/* IMAGE HOVER */

.project-card:hover .project-image img {

    transform: scale(1.08);

    filter: brightness(0.92);
}

/* =========================================
   OVERLAY
========================================= */

.project-overlay {

    position: absolute;

    inset: 0;

    display: flex;
    align-items: flex-end;

    padding: 24px;

    background:
        linear-gradient(
            to top,
            rgba(0,0,0,0.60),
            transparent 60%
        );

    opacity: 0;

    transition: 0.4s ease;
}

.project-card:hover .project-overlay {

    opacity: 1;
}

/* VIEW BUTTON */

.project-view {

    display: inline-flex;
    align-items: center;

    gap: 10px;

    padding: 14px 18px;

    border-radius: 50px;

    background: rgba(255,255,255,0.14);

    backdrop-filter: blur(14px);

    border: 1px solid rgba(255,255,255,0.25);

    color: white;

    font-size: 14px;

    transform:
        translateY(20px);

    transition: 0.45s ease;
}

.project-card:hover .project-view {

    transform:
        translateY(0px);
}

/* =========================================
   CONTENT
========================================= */

.project-content {

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    flex: 1;

    padding: 30px;

    min-height: 260px;
}

/* TOP */

.project-top {

    flex: 1;
}

/* CATEGORY */

.project-category {

    display: inline-flex;
    align-items: center;

    padding: 10px 14px;

    border-radius: 50px;

    background: #f7f7f7;

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: 1.5px;

    color: #777;

    margin-bottom: 22px;
}

/* TITLE */

.project-title {

    font-size: 34px;

    line-height: 1;

    letter-spacing: -2px;

    color: #1f1f1f;

    margin-bottom: 18px;

    min-height: 76px;

    display: flex;
    align-items: flex-start;
}

/* DESCRIPTION */

.project-description {

    font-size: 15px;

    line-height: 1.8;

    color: #666;

    min-height: 110px;
}

/* =========================================
   BOTTOM
========================================= */

.project-bottom {

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-top: 30px;
}

/* YEAR */

.project-year {

    font-size: 14px;

    color: #999;

    flex-shrink: 0;
}

/* BUTTON */

.project-btn {

    display: inline-flex;
    align-items: center;

    gap: 10px;

    padding: 14px 18px;

    border-radius: 50px;

    background: #f7f7f7;

    color: #2b2b2b;

    font-size: 14px;

    transition: 0.35s ease;

    flex-shrink: 0;
}

.project-card:hover .project-btn {

    background: #3a86ff;

    color: white;

    transform: translateX(4px);
}



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

@media(max-width: 1200px) {

    .projects-heading h1 {

        font-size: 62px;

        letter-spacing: -4px;
    }

    .projects-grid {

        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .project-title {

        font-size: 28px;

        min-height: 64px;
    }

}

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

@media(max-width: 700px) {

    .projects-section {

        padding: 90px 6%;
    }

    .projects-heading {

        margin-bottom: 50px;
    }

    .projects-heading h1 {

        font-size: 42px;

        line-height: 1;

        letter-spacing: -2px;
    }

    .projects-grid {

        grid-template-columns: 1fr;

        gap: 24px;
    }

    .project-card {

        border-radius: 28px;
    }

    .project-content {

        padding: 24px;

        min-height: auto;
    }

    .project-title {

        font-size: 26px;

        min-height: auto;
    }

    .project-description {

        min-height: auto;

        font-size: 14px;
    }

    .project-bottom {

        margin-top: 24px;
    }

    .project-btn,
    .project-view {

        padding: 12px 16px;

        font-size: 13px;
    }

}