/* =========================================
   SELECTED PROJECTS
========================================= */

.selected-projects {
    padding: 80px 0;
    background: var(--color-bg);
    overflow: hidden;
}


/* =========================================
   HEADING
========================================= */

.projects-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 58px;
}

.section-eyebrow {
    display: block;
    margin-bottom: 12px;

    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.22em;
    color: var(--color-text-muted);

    text-transform: none;
}

.projects-heading h2 {
    margin: 0;

    font-size: clamp(38px, 4vw, 56px);
    line-height: 1;
    letter-spacing: -0.045em;
    font-weight: 600;

    color: var(--color-text);

    text-transform: none;
}

.projects-heading h2 span {
    color: var(--color-primary);
}


/* =========================================
   VIEW ALL BUTTON
========================================= */

.projects-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    padding: 11px 18px;

    border: 1px solid #aeb4bc;
    border-radius: 30px;

    color: var(--color-text);
    background: transparent;

    font-size: 14px;
    font-weight: 500;

    text-decoration: none;

    transition:
        background .3s ease,
        border-color .3s ease,
        color .3s ease;
}

.projects-all-btn i {
    font-size: 13px;
}

.projects-all-btn:hover {
    background: var(--color-text);
    border-color: var(--color-text);
    color: #fff;
}


/* =========================================
   SHOWCASE
========================================= */

.project-showcase {
    position: relative;

    display: grid;
    grid-template-columns: 34% 66%;

    min-height: 510px;

    padding: 34px 32px;

    border-radius: 20px;

    background: #ffffff;

    overflow: hidden;

    box-shadow:
        0 20px 60px rgba(17, 19, 24, 0.045);
}


/* =========================================
   PROJECT INFO
========================================= */

.project-info {
    position: relative;
    z-index: 5;

    display: flex;
    flex-direction: column;
}

.project-counter {
    display: flex;
    align-items: center;
    gap: 7px;

    margin-bottom: 34px;

    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.08em;

    color: var(--color-text-muted);
}

.project-current {
    color: var(--color-text);
}

.project-content {
    max-width: 340px;
}

.project-title {
    margin: 0 0 8px;

    font-size: clamp(34px, 3vw, 48px);
    line-height: .98;
    letter-spacing: -0.045em;

    font-weight: 600;

    color: var(--color-text);
}

.project-type {
    margin: 0 0 22px;

    font-size: 13px;
    font-weight: 500;

    color: var(--color-text-muted);
}

.project-description {
    margin: 0 0 22px;

    font-size: 16px;
    line-height: 1.65;

    color: #5f6873;
}


.project-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    margin-bottom: 24px;

    font-size: 14px;
    font-weight: 500;

    color: var(--color-primary);

    text-decoration: none;
}

.project-link i {
    transition: transform .25s ease;
}

.project-link:hover i {
    transform: translateX(4px);
}


/* =========================================
   TAGS
========================================= */

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tags span {
    padding: 5px 9px;

    border: 1px solid #cbd0d6;
    border-radius: 20px;

    font-size: 12px;
    font-weight: 500;

    color: #59616b;

    background: #fff;
}


/* =========================================
   CONTROLS
========================================= */

.project-controls {
    display: flex;
    gap: 10px;

    margin-top: auto;
    padding-top: 28px;
}

.project-arrow {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #b8bec5;
    border-radius: 50%;

    background: #fff;
    color: var(--color-text);

    font-size: 14px;

    cursor: pointer;

    transition:
        background .25s ease,
        color .25s ease,
        border-color .25s ease;
}

.project-arrow:hover {
    background: var(--color-text);
    border-color: var(--color-text);
    color: #fff;
}


/* =========================================
   VISUAL AREA
========================================= */

.project-visual {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 430px;
}


/* =========================================
   SOFT ORBITS
========================================= */

.project-orbit {
    position: absolute;

    border-radius: 50%;

    pointer-events: none;
}

.orbit-one {
    width: 330px;
    height: 330px;

    background: rgba(47, 109, 246, .06);
}

.orbit-two {
    width: 470px;
    height: 470px;

    border: 1px solid rgba(47, 109, 246, .07);
}


/* =========================================
   FIXED LAPTOP
========================================= */

.project-laptop {
    position: relative;
    z-index: 3;

    width: min(610px, 92%);

    transform: perspective(1200px) rotateY(-7deg) rotateX(2deg);

    filter:
        drop-shadow(0 30px 25px rgba(17, 19, 24, .16));
}


/* =========================================
   LAPTOP SCREEN
========================================= */

.laptop-screen {
    position: relative;

    width: 100%;
    aspect-ratio: 16 / 10;

    padding: 10px;

    background: #15171a;

    border-radius: 13px 13px 7px 7px;

    border: 1px solid #2b2f34;

    overflow: hidden;
}


/* Camera */
.laptop-screen::before {
    content: "";

    position: absolute;

    top: 4px;
    left: 50%;

    width: 4px;
    height: 4px;

    transform: translateX(-50%);

    border-radius: 50%;

    background: #30343a;

    z-index: 5;
}


/* =========================================
   SCREEN CONTENT
========================================= */

.screen-content {
    position: relative;

    width: 100%;
    height: 100%;

    overflow: hidden;

    border-radius: 5px;

    background: #fff;
}

.project-image {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: top center;

    will-change: transform, opacity;
}


/* =========================================
   LAPTOP BASE
========================================= */

.laptop-base {
    position: relative;

    width: 112%;

    height: 20px;

    margin-left: -6%;

    background: linear-gradient(
        to bottom,
        #9da2a8 0%,
        #d7d9dc 45%,
        #8b9096 100%
    );

    border-radius: 0 0 15px 15px;

    transform: perspective(500px) rotateX(55deg);

    transform-origin: top center;
}

.laptop-base::after {
    content: "";

    position: absolute;

    left: 50%;
    top: 4px;

    width: 90px;
    height: 4px;

    transform: translateX(-50%);

    border-radius: 0 0 5px 5px;

    background: #a2a6aa;
}

.laptop-notch {
    display: none;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 991.98px) {

    .selected-projects {
        padding: 60px 24px;
    }

    .projects-heading {
        margin-bottom: 42px;
    }

    .project-showcase {
        grid-template-columns: 1fr;
        padding: 30px;
    }

    .project-info {
        min-height: 330px;
    }

    .project-content {
        max-width: 420px;
    }

    .project-visual {
        min-height: 390px;
    }

    .project-laptop {
        width: min(600px, 90%);
    }
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 575.98px) {

    .selected-projects {
        padding: 60px 24px;
    }

    .projects-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 22px;

        margin-bottom: 30px;
    }

    .projects-heading h2 {
        font-size: 38px;
    }

    .projects-all-btn {
        padding: 10px 15px;
    }

    .project-showcase {
        padding: 24px 20px;

        border-radius: 16px;
    }

    .project-counter {
        margin-bottom: 25px;
    }

    .project-title {
        font-size: 36px;
    }

    .project-description {
        font-size: 16px;
    }

    .project-info {
        min-height: 330px;
    }

    .project-visual {
        min-height: 270px;
    }

    .project-laptop {
        width: 105%;
    }

    .orbit-one {
        width: 220px;
        height: 220px;
    }

    .orbit-two {
        width: 300px;
        height: 300px;
    }

    .project-tags span {
        font-size: 12px;
    }
}