@font-face {
    font-family: 'Aeonik-Regular';
    font-style: normal;
    font-weight: 400;
    src: url('fonts/aeonik-regular.ttf') format('ttf');
    src: url('fonts/aeonik-regular.woff') format('woff');
}

@font-face {
    font-family: 'Aeonik-Medium';
    font-style: medium;
    font-weight: 600;
    src: url('fonts/aeonik-regular.ttf') format('ttf');
    src: url('fonts/aeonik-regular.woff') format('woff');
}

:root {
    --blue: #0062FB;
    --black: #131315;
    --black-rgb: 19, 19, 21;
    --neon-green: #D8FF00;
    --gray: #EDEDEB;
    --dark-grey: #cacaca;
    --darker-grey: #505050;
    --white: #FFFFFF;
    --white-rgb: 255, 255, 255;
}

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}

article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}

body {
	line-height: 1;
}

ol, ul {
	list-style: none;
}

blockquote, q {
	quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}

table {
	border-collapse: collapse;
	border-spacing: 0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    height: fit-content;
    min-width: 220px;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    background: transparent;
}

body::-webkit-scrollbar {
    display: none;
}

body {
    font-family: 'Aeonik-Regular', sans-serif;
    color: var(--blue);
    line-height: 1.6;
    justify-content: center;
    padding-bottom: 0px;
    height: fit-content;
    background: transparent;
    background-color: transparent;
}

.page-container {
    width: 100%;
    min-width: 220px;
    height: fit-content;
    max-width: 1920px;
    margin-left: auto;
    margin-right: auto;
}

h1,
h2,
h3,
h4 {
    padding: 0;
    margin: 0;
}

h1 {
    color: var(--blue);
    font-size: clamp(4rem, 15vw + 1rem, 12.5rem);
    font-weight: 400;
    line-height: 0.75;
}

h2 {
    color: var(--blue);
    font-size: clamp(2.5rem, 8vw + 1rem, 5.25rem);
    font-weight: 500;
    line-height: 1;
}

h3 {
    color: var(--blue);
    font-size: clamp(2rem, 6vw + 1rem, 3.875rem);
    font-weight: 500;
    line-height: 0.9;
}

h4 {
    color: var(--dark-grey);
    font-size: clamp(1.5rem, 4vw + 1rem, 2.75rem);
    font-weight: 500;
}

p {
    color: var(--blue);
    font-family: 'Aeonik-Regular', sans-serif;
    font-size: clamp(1rem, 1.5vw + 0.5rem, 1.3125rem);
}

.main-content {
    max-width: 90vw;
    margin: 0;
    height: fit-content;
}

.showcase-section {
    display: flex;
    flex-direction: column;
    gap: 64px;
    text-align: left;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    margin-left: -5vw;
    margin-right: -5vw;
    padding-left: 5vw;
    padding-right: 5vw;
    padding-top: 5vw;
    padding-bottom: 5vw;
    overflow: visible;
}

.showcase-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 64px;
}

.showcase-cards {
    display: flex;
    justify-content: center;
    gap: 14px;
    width: 100%;
    perspective: 1000px;
}

.content-card {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    flex: 1;
    min-width: 600px;
    height: 560px;
    background-size: cover;
    background-position: center;
    border-radius: 14px;
    padding: 16px;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg) scale(1);
    transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.3s ease-out;
    will-change: transform, box-shadow;
    box-shadow: 0 6px 12px rgba(var(--black-rgb), 0.15);
    cursor: pointer;
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--content-card-bg);
    background-size: cover;
    background-position: var(--bg-pos-x, 50%) var(--bg-pos-y, 50%);
    transform: scale(var(--bg-scale, 1));
    border-radius: inherit;
    z-index: 0;
    transition: transform 0.4s ease-out, background-position 0.4s ease-out;
    will-change: transform, background-position;
}

.content-card:hover {
    box-shadow: 0 16px 32px rgba(var(--black-rgb), 0.3);
}

.image-card-overlay {
    display: flex;
    z-index: 5;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;

    grid-column: 1;
    grid-row: 1;

    background-color: var(--white);
    border-radius: 12px;
    padding: 20px;

    transform: translateZ(30px) translateX(0px);
    position: relative;
    overflow: hidden;

    transition: box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.image-card-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--image-card-overlay-bg);
    background-size: cover;
    background-position: center;
    z-index: 0;
    border-radius: inherit;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.image-card-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(var(--white-rgb), 0);
    z-index: 1;
    border-radius: inherit;
    transition: background-color 0.4s ease-in-out;
    pointer-events: none;
}

.content-card:hover .image-card-overlay:hover {
    box-shadow: 0 6px 18px rgba(var(--black-rgb), 0.35);
    transform: translateY(-5px);
}

.content-card .image-card-overlay:hover::before {
    transform: scale(1.1) rotate(1.5deg);
}

.content-card .image-card-overlay:hover::after {
    background-color: rgba(var(--white-rgb), 0.80);
}

.image-card-overlay .image-card-title {
    font-family: 'Aeonik-Medium', sans-serif;
    font-size: 2.8rem;
    color: var(--black);
    line-height: 1.1;
    position: relative;
    z-index: 2;
}

.image-card-overlay .image-card-title::after {
    content: '';
    position: absolute;
    z-index: -1;
    bottom: 2px;
    left: 0;
    width: 0;
    height: 12px;
    background-color: var(--neon-green);
    transition: width 0.35s cubic-bezier(0.65, 0.05, 0.36, 1) 0.1s;
}

.content-card .image-card-overlay:hover .image-card-title::after {
    width: 100%;
}

.card-details-text {
    display: -webkit-box;
    position: relative;
    z-index: 2;

    width: 100%;
    flex-grow: 1;

    overflow: hidden;

    font-family: 'Aeonik-Regular', sans-serif;
    font-size: 1.05rem;
    line-height: 1.5;
    color: var(--darker-grey);
    text-overflow: ellipsis;
    white-space: normal;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;

    opacity: 0;
    transform: translateX(-15px);
    transition: opacity 0.4s ease-out 0.15s, transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.15s;
}

.content-card .image-card-overlay:hover .card-details-text {
    opacity: 1;
    transform: translateX(0);
}

.cta-button {
    z-index: 2;
    background-color: var(--neon-green);
    border: none;
    border-radius: 20px;
    padding: 10px 14px;
    text-transform: uppercase;
    cursor: pointer;
    align-self: flex-start;
    transition: background-color 0.35s ease-in-out, transform 0.15s ease-out, box-shadow 0.15s ease-out;
    position: relative;
}

.cta-button p {
    color: var(--black);
    font-family: 'Aeonik-Medium', sans-serif;
    font-size: 19px;
    font-weight: 400;
    transition: color 0.35s ease-in-out;
}

.cta-button:hover {
    transform: scale(1.05);
    background-color: var(--black);
    box-shadow: 0 6px 12px rgba(var(--black-rgb), 0.12);
}

.cta-button:hover p {
    color: var(--neon-green);
}

@media (max-width: 992px) {
    .showcase-container {
        gap: 48px;
    }

    .content-card {
        min-width: auto;
        width: 90%;
        height: auto;
        min-height: 480px;
        grid-template-columns: repeat(2, 1fr);
    }

    .image-card-overlay {
        width: 100%;
        height: auto;
        min-height: 300px;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .showcase-container {
        gap: 32px;
    }

    .showcase-cards {
        flex-direction: column;
        align-items: center;
    }

    .content-card {
        width: 100%;
        min-height: 340px;
        max-height: 340px;
    }

    .image-card-overlay {
        padding: 15px;
        height: auto;
        gap: 16px;
    }

    .image-card-overlay .image-card-title {
        font-size: 2rem;
    }

    .card-details-text {
        font-size: 0.9rem;
    }

    .showcase-section h2 {
        font-size: clamp(2rem, 10vw, 3.5rem);
    }
}

@media (max-width: 580px) {
    .cta-button {
        padding: 12px 18px;
    }

    .cta-button p {
        font-size: 16px;
    }

    .showcase-container {
        gap: 16px;
    }
    
    .content-card {
        max-width: 100%;
        min-height: 240px;
        max-height: 240px;
        padding: 12px;
    }

    .image-card-overlay {
        min-height: calc(240px - 12px * 2);
        max-height: calc(240px - 12px * 2);
        gap: 12px;
    }

    .image-card-overlay .image-card-title {
        font-size: 1.6rem;
    }

    .image-card-overlay .cta-button {
        padding: 10px 15px;
    }

    .image-card-overlay .cta-button p {
        font-size: 14px;
    }

    .card-details-text {
        font-size: 0.8rem;
    }
}

@media (max-width: 475px) {
    .content-card {
        min-height: 220px;
        max-height: 220px;
        padding: 8px;
    }

    .image-card-overlay {
        min-height: calc(220px - 8px * 2);
        max-height: calc(220px - 8px * 2);
        gap: 8px;
    }

    .image-card-overlay::before {
        content: none;
    }

    .image-card-overlay .image-card-title {
        font-size: 1.4rem;
    }

    .card-details-text {
        font-size: 0.7rem;
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 375px) {
    .showcase-container {
        gap: 20px;
    }
    
    .content-card {
        min-height: 180px;
        max-height: 180px;
        padding: 6px;
    }

    .image-card-overlay {
        min-height: calc(180px - 6px * 2);
        max-height: calc(180px - 6px * 2);
    }

    .image-card-overlay .image-card-title {
        font-size: 1.2rem;
    }

    .image-card-overlay .cta-button {
        padding: 8px 12px;
    }

    .image-card-overlay .cta-button p {
        font-size: 12px;
    }
}

@media (max-width: 320px) {
    .image-card-overlay .image-card-title {
        font-size: 1rem;
    }

    .image-card-overlay .cta-button {
        padding: 6px 10px;
    }

    .image-card-overlay .cta-button p {
        font-size: 10px;
    }
}
