@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;800&display=swap");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: radial-gradient(circle at center, #2a2c3c 0%, #171717 100%);
    min-height: 100vh;
}

img {
    max-width: 100%;
    display: block;
}

section {
    font-family: "Poppins", sans-serif;
    font-weight: 300;
    font-style: normal;
    padding-block: min(20vh, 6rem);
    text-align: center;
    width: calc(min(90rem, 90%));
    margin-inline: auto;
    position: relative;
    isolation: isolate;
    --watermark-offset-y: 20px;
    --card-image-zoom: 1.005;
}

section span,
section p,
section h1,
section h2,
section h3 {
    letter-spacing: 0.035rem;
}

section p {
    line-height: 1.6;
    color: #a3a3a3;
    max-width: 54rem;
    margin: 0 auto;
    font-size: clamp(0.9rem, 0.825rem + 0.3vw, 1.2rem);
}

section .email-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    margin-top: 1.5rem;
    border: 0;
    border-radius: 8px;
    background:#fff;
    color: #2a2c3c;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08rem;
    text-transform: uppercase;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.28s cubic-bezier(0.22, 1, 0.36, 1),
        background-color 0.28s ease;
}

section .email-button:link,
section .email-button:visited {
    color: #2a2c3c;
    text-decoration: none;
    -webkit-text-fill-color: #2a2c3c;
}

section .email-button:hover {
    transform: translateY(-2px);
    background:#78AFB1;
    color: #fff;
    -webkit-text-fill-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}

section .email-button:active {
    transform: translateY(0);
    background: #4C8D90;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

section .email-button:focus-visible {
    outline: 2px solid #ff9472;
    outline-offset: 2px;
}

section .bg-watermark {
    color: #171717;
    font-size: clamp(6rem, 1.3333rem + 14.9333vw, 20rem);
    font-weight: 800;
    position: absolute;
    z-index: -1;
    left: 50%;
    transform: translateX(-50%) translateY(calc(-15% - var(--watermark-offset-y)));
    user-select: none;
    pointer-events: none;
    letter-spacing: 0.5rem;
}


@media screen and (min-width: 80rem) {
    section {
        --watermark-offset-y: 40px;
    }
}

section span {
    text-transform: uppercase;
    display: block;
    font-size: 1.2rem;
    color: #a3a3a3;
}

section h1 {
    font-size: clamp(3.5rem, 3rem + 1.6vw, 5rem);
    margin-top: -0.625rem;
    color: #fff;
}

section .cards {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(12rem, 100%), 1fr));
    gap: 2rem;
}

@media screen and (min-width: 51rem) {
    section .cards {
        gap: 0;
        padding-bottom: 2.5rem;
    }
}

section .cards .card {
    position: relative;
    cursor: pointer;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

section .cards .card h2,
section .cards .card p {
    text-transform: capitalize;
}

section .cards .card h2 {
    font-size: clamp(1rem, 0.9167rem + 0.2667vw, 1.25rem);
    font-weight: 400;
    color: #f6f6f6;
    opacity: 0.9;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

section .cards .card p {
    font-size: clamp(0.85rem, 0.75rem + 0.32vw, 1.15rem);
    letter-spacing: 0.12rem;
    font-weight: 300;
    max-width: 100%;
    opacity: 0.9;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

section .cards .card::before {
    position: absolute;
    content: "";
    width: 5rem;
    height: 6.25rem;
    z-index: 0;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    background: #f2709c;
    background: -webkit-linear-gradient(to left, #ff9472, #f2709c);
    background: linear-gradient(to left, #ff9472, #f2709c);
    top: -0.375rem;
    left: -0.375rem;
}

section .cards .card::after {
    position: absolute;
    inset: 0;
    content: "";
    width: 100%;
    height: 100%;
    background: #232526;
    background: -webkit-linear-gradient(to bottom, rgba(65, 67, 69, 0), rgba(8, 8, 8, 0.9));
    background: linear-gradient(to bottom, rgba(65, 67, 69, 0),rgba(65, 67, 69, 0), rgba(8, 8, 8, 0.9));
    opacity: 1;
    transition: opacity 0.45s ease;
}

section .cards .card img {
    filter: grayscale(10%);
    transition: filter 0.45s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

section .cards .card-content {
    position: absolute;
    bottom: 0;
    z-index: 99;
    left: 0;
    color: #fff;
    width: 100%;
    padding: 1.875rem 1.25rem;
    text-align: center;
}

section .cards .card:hover img {
    filter: grayscale(0%);
    transform: scale(var(--card-image-zoom));
}

section .cards .card:hover {
    transform: translateY(-6px);
}

section .cards .card:hover::before {
    transform: scale(1.08);
}

section .cards .card:hover::after {
    opacity: 0.1;
}

section .cards .card:hover .card-content h2,
section .cards .card:hover .card-content p {
    opacity: 0.0;
    transform: translateY(6px);
}

section .cards .card:nth-child(1)::before {
    top: -0.375rem;
    left: -0.375rem;
}

@media screen and (min-width: 31.25rem) {
    section .cards .card:nth-child(2) {
        transform: translatey(15%);
    }
}

section .cards .card:nth-child(2)::before {
    bottom: -0.375rem;
    left: -0.375rem;
    top: auto;
}

section .cards .card:nth-child(3)::before {
    top: -0.375rem;
    left: -0.375rem;
}

@media screen and (min-width: 1200px) and (max-width: 1899px) {
    section .cards {
        width: 90%;
        margin-inline: auto;
    }
}

@media screen and (max-width: 48rem) {
    section {
        --watermark-offset-y: 8px;
    }

    section h1 {
        line-height: 1.07;
        margin-top: 1rem;
        margin-bottom: 1rem;

    }

    section .email-button {
        margin-bottom: 2rem;
    }




}

