/* =========================================================
   MY APPS / MORALES LAB
========================================================= */

.apps-hero,
.apps-section,
.apps-message {
    width: min(1200px, calc(100% - 48px));

    margin-left: auto;
    margin-right: auto;
}


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

.apps-hero {
    min-height: 650px;

    padding: 75px 0 90px;

    display: grid;
    grid-template-columns: 1fr .9fr;

    gap: 80px;

    align-items: center;

    border-bottom: 2px solid var(--ink);
}


.apps-kicker {
    display: inline-block;

    font-family: var(--font-tech);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;

    color: var(--blue);
}


.apps-hero h1 {
    margin: 20px 0 30px;

    font-family: var(--font-display);

    font-size: clamp(85px, 10vw, 145px);
    font-weight: 400;

    line-height: .82;

    letter-spacing: -2px;
}


.apps-hero h1 span {
    color: var(--blue);
}


.apps-hero-copy p {
    max-width: 620px;

    margin: 0;

    font-size: 18px;
    line-height: 1.65;
}


/* =========================================================
   CODE WINDOW
========================================================= */

.code-window {
    position: relative;

    padding: 0 0 30px;

    background: var(--ink);
    color: var(--paper);

    border: 3px solid var(--ink);

    box-shadow:
        11px 12px 0 var(--yellow);

    transform: rotate(1.5deg);
}


.code-window-top {
    min-height: 48px;

    padding: 0 16px;

    display: flex;
    align-items: center;

    gap: 8px;

    background: var(--paper);

    color: var(--ink);

    border-bottom: 3px solid var(--ink);
}


.code-window-top > span {
    width: 10px;
    height: 10px;

    display: block;

    border: 2px solid var(--ink);

    border-radius: 50%;
}


.code-window-top strong {
    margin-left: auto;

    font-family: var(--font-tech);
    font-size: 10px;
}


.code-lines {
    min-height: 310px;

    padding: 45px;

    display: flex;
    flex-direction: column;

    justify-content: center;

    font-family: var(--font-display);
    font-size: 48px;

    line-height: 1;
}


.code-lines span:nth-of-type(2),
.code-lines span:nth-of-type(4) {
    color: var(--yellow);
}


.code-lines strong {
    margin: 4px 0;

    color: var(--blue);

    font-family: var(--font-tech);
    font-size: 20px;
}


.code-window small {
    display: block;

    padding: 0 45px;

    color: var(--yellow);

    font-family: var(--font-tech);
    font-size: 10px;
    font-weight: 800;
}


/* =========================================================
   TOOLBOX
========================================================= */

.apps-section {
    padding: 95px 0 110px;
}


.apps-section-heading {
    margin-bottom: 45px;
}


.apps-section-heading > span {
    display: inline-block;

    padding: 7px 10px;

    background: var(--yellow);

    border: 2px solid var(--ink);

    font-family: var(--font-tech);
    font-size: 11px;
    font-weight: 800;
}


.apps-section-heading p {
    margin: 15px 0 0;

    font-family: var(--font-tech);
    font-size: 11px;

    opacity: .7;
}

/* =========================================================
   CATEGORY FILTERS
   Student Showcase style
========================================================= */

.apps-filters {
    display: flex;
    flex-wrap: wrap;

    gap: 14px;

    margin-bottom: 45px;
}


/* BUTTON */

.filter-button {
    padding: 11px 18px;

    background: var(--paper-light);
    color: var(--ink);

    border: 2px solid var(--ink);

    box-shadow:
        4px 5px 0 rgba(0, 0, 0, .12);

    font-family: var(--font-tech);
    font-size: 10px;
    font-weight: 800;

    text-transform: uppercase;

    cursor: pointer;

    transition:
        transform .15s ease,
        box-shadow .15s ease,
        background .15s ease,
        color .15s ease;
}


/* Small handmade rotations */

.filter-button:nth-child(2n) {
    transform: rotate(-1deg);
}

.filter-button:nth-child(3n) {
    transform: rotate(.8deg);
}


/* HOVER */

.filter-button:hover {
    transform:
        translateY(-3px)
        rotate(0deg);

    box-shadow:
        6px 7px 0 rgba(0, 0, 0, .14);
}


/* ACTIVE */

.filter-button.active {
    background: var(--ink);
    color: var(--paper);

    box-shadow:
        4px 5px 0 var(--blue);

    transform: rotate(-1deg);
}



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

.apps-grid {
    display: grid;

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

    gap: 38px 30px;

    align-items: start;
}


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

.app-card {
    position: relative;

    background: var(--paper-light);

    border: 3px solid var(--blue);

    box-shadow:
        8px 9px 0 rgba(0, 0, 0, .09);

    overflow: visible;

    transition:
        transform .22s ease,
        box-shadow .22s ease;
}


/* Slight handmade rotation */

.app-card:nth-child(3n + 1) {
    transform: rotate(-.6deg);
}


.app-card:nth-child(3n + 2) {
    transform: rotate(.5deg);
}


.app-card:nth-child(3n + 3) {
    transform: rotate(-.25deg);
}


.app-card:hover {
    transform:
        translateY(-7px)
        rotate(0deg);

    box-shadow:
        12px 14px 0 rgba(0, 0, 0, .11);
}


/* =========================================================
   TAPE
========================================================= */

.app-card::before {
    content: "";

    position: absolute;

    z-index: 5;

    width: 82px;
    height: 24px;

    top: -13px;
    left: 50%;

    background:
        rgba(222, 200, 143, .72);

    transform:
        translateX(-50%)
        rotate(-3deg);
}


/* =========================================================
   MEDIA AREA
========================================================= */

.app-media {
    position: relative;

    margin: 18px 18px 0;

    aspect-ratio: 16 / 10;

    background: #d9d2c4;

    border: 2px solid var(--ink);

    overflow: hidden;
}


.app-media img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform .35s ease;
}


.app-card:hover .app-media img {
    transform: scale(1.045);
}


/* =========================================================
   PLACEHOLDER
========================================================= */

.app-placeholder {
    width: 100%;
    height: 100%;

    display: flex;

    justify-content: center;
    align-items: center;

    background:
        linear-gradient(
            135deg,
            rgba(40, 95, 184, .12),
            rgba(243, 200, 75, .18)
        );
}


.app-placeholder strong {
    font-family: var(--font-display);

    font-size: 76px;
    font-weight: 400;

    color: var(--blue);
}


/* =========================================================
   CATEGORY BADGE
========================================================= */

.app-category {
    position: absolute;

    left: 10px;
    bottom: 10px;

    z-index: 2;

    padding: 6px 10px;

    background: var(--yellow);
    color: var(--ink);

    border: 2px solid var(--ink);

    font-family: var(--font-tech);
    font-size: 10px;
    font-weight: 800;

    transform: rotate(-1deg);

    box-shadow:
        3px 3px 0 rgba(0, 0, 0, .10);
}


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

.app-content {
    padding: 24px 22px 26px;
}


.app-content h2 {
    margin: 0 0 12px;

    font-family: var(--font-display);

    font-size: 34px;
    font-weight: 400;

    line-height: .95;
}


.app-content p {
    margin: 0 0 24px;

    font-size: 14px;
    line-height: 1.55;
}


/* =========================================================
   APP LINK
========================================================= */

.app-link {
    display: inline-block;

    margin-top: 6px;

    padding-bottom: 4px;

    color: var(--blue);

    text-decoration: none;

    font-family: var(--font-tech);
    font-size: 12px;
    font-weight: 800;

    border-bottom:
        3px solid currentColor;

    transition:
        color .2s ease,
        transform .2s ease;
}


.app-link:hover {
    color: var(--red);

    transform: translateX(5px);
}


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

.apps-message {
    box-sizing: border-box;

    margin-bottom: 100px;

    padding: 50px;

    display: flex;
    flex-wrap: wrap;

    gap: 16px 28px;

    background: var(--ink);
    color: var(--paper);

    border: 3px solid var(--ink);

    box-shadow:
        9px 10px 0 var(--yellow);

    font-family: var(--font-display);

    font-size:
        clamp(32px, 4vw, 55px);
}


.apps-message strong {
    color: var(--yellow);

    font-weight: 400;
}


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

@media (max-width: 950px) {

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

}


@media (max-width: 850px) {

    .apps-hero {
        grid-template-columns: 1fr;

        gap: 55px;
    }

}


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

@media (max-width: 650px) {

    .apps-hero,
    .apps-section,
    .apps-message {
        width: calc(100% - 30px);
    }


    .apps-hero {
        min-height: auto;

        padding: 55px 0 70px;
    }


    .apps-hero h1 {
        font-size:
            clamp(72px, 23vw, 105px);
    }


    .apps-section {
        padding:
            70px 0 80px;
    }


    .apps-grid {
        grid-template-columns: 1fr;

        gap: 38px;
    }


    .code-lines {
        min-height: 260px;

        padding: 35px;

        font-size: 40px;
    }


    .code-window small {
        padding: 0 35px;
    }


    .apps-message {
        padding: 35px 27px;

        margin-bottom: 75px;
    }

}