@font-face {
    font-family: "Aeonik Pro Regular";
    src: url("https://db.onlinewebfonts.com/t/12ff62164c9778917bddb93c6379cf47.eot");
    src: url("https://db.onlinewebfonts.com/t/12ff62164c9778917bddb93c6379cf47.eot?#iefix")
        format("embedded-opentype"),
        url("https://db.onlinewebfonts.com/t/12ff62164c9778917bddb93c6379cf47.woff2")
        format("woff2"),
        url("https://db.onlinewebfonts.com/t/12ff62164c9778917bddb93c6379cf47.woff")
        format("woff"),
        url("https://db.onlinewebfonts.com/t/12ff62164c9778917bddb93c6379cf47.ttf")
        format("truetype"),
        url("https://db.onlinewebfonts.com/t/12ff62164c9778917bddb93c6379cf47.svg#Aeonik Pro Regular")
        format("svg");
}

* {
    box-sizing: border-box;
    scroll-behavior: smooth;
}
html, body {
    margin: 0;
    padding: 0;
}
:root {
    --sz: clamp(10px, min(1.5vw, vh), 10px); 
    font-size: var(--sz);
}
body {
    font-family: "Aeonik Pro Regular", sans-serif;
}

.card {
    position: relative;
    background: radial-gradient(circle at 50% 0%, #3a3a3a 0%, #1a1a1a 64%); 
    box-shadow: inset 0 1.01rem 0.2rem -1rem #fff0,
        inset 0 -1.01rem 0.2rem -1rem #0000, 0 -1.02rem 0.2rem -1rem #fff0,
        0 1rem 0.2rem -1rem #0000, 0 0 0 1px #fff3, 0 4px 4px 0 #0004, 0 0 0 1px #333;
    height: 24rem; 
    border-radius: 1.8rem;
    color: #fff;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: end;
    transition: all 0.4s ease-in-out, translate 0.4s ease-out;
    margin: auto; 
    width: 100%; 
}

.card::before {
    content: "";
    display: block;
    --offset: 1rem;
    width: calc(100% + 2 * var(--offset));
    height: calc(100% + 2 * var(--offset));
    position: absolute;
    left: calc(-1 * var(--offset));
    right: calc(-1 * var(--offset));
    top: calc(-1 * var(--offset));
    bottom: calc(-1 * var(--offset));
    margin: auto;
    box-shadow: inset 0 0 0px 0.06rem #fff2;
    border-radius: 2.6rem;
    --ax: 4rem;
    clip-path: polygon(
        var(--ax) 0,
        0 0,
        0 var(--ax),
        var(--ax) var(--ax),
        var(--ax) calc(100% - var(--ax)),
        0 calc(100% - var(--ax)),
        0 100%,
        var(--ax) 100%,
        var(--ax) calc(100% - var(--ax)),
        calc(100% - var(--ax)) calc(100% - var(--ax)),
        calc(100% - var(--ax)) 100%,
        100% 100%,
        100% calc(100% - var(--ax)),
        calc(100% - var(--ax)) calc(100% - var(--ax)),
        calc(100% - var(--ax)) var(--ax),
        100% var(--ax),
        100% 0,
        calc(100% - var(--ax)) 0,
        calc(100% - var(--ax)) var(--ax),
        var(--ax) var(--ax)
    );
    transition: all 0.4s ease-in-out;
}

.card:hover {
    translate: 0 -0.2rem;
}

.card:hover::before {
    --offset: 0.5rem;
    --ax: 8rem;
    border-radius: 2.2rem;
    box-shadow: inset 0 0 0 0.08rem #fff1;
}

.card .light-layer {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    transform-style: preserve-3d;
    perspective: 400px;
}

.card .content .icon {
    position: absolute;
    top: 5rem;
    height: 5rem;
    left: 0;
    right: 0;
    margin: auto;
    width: fit-content;
    filter: drop-shadow(0 0 0px transparent); 
    transition: filter 0.4s ease-in-out;
}
.card .content .bottom {
    position: relative;
}
.card .content .bottom h4 {
    margin: 0;
    margin-bottom: 0.5rem; 
    font-size: 1.4rem; 
    color: #FFFFFF; 
    font-weight: 700; 
}
.card .content .bottom p {
    margin: 0;
    padding-bottom: 0.6rem;
    color: #FFFFFF; 
    font-size: 0.8rem; 
    font-weight: 300; 
    border-bottom: 1px solid #fff1;
    max-width: 100%; 
    min-height: 40px; 
    overflow: hidden;
}
.card .content .bottom .toggle {
    position: absolute;
    right: 0;
    bottom: 0;
    height: 2rem;
    width: 4.8rem;
    background: transparent;
    opacity: 0;
    pointer-events: none;
}

.card:hover { 
    box-shadow: inset 0 1.01rem 0.1rem -1rem #fffa, inset 0 -4rem 3rem -3rem #000a,
        0 -1.02rem 0.2rem -1rem #fffa, 0 1rem 0.2rem -1rem #000, 0 0 0 1px #fff2,
        0 4px 4px 0 #0004, 0 0 0 1px #333;
}

.card:hover .content .icon {
    filter: drop-shadow(0 0 15px #38BDF8) brightness(1.6); 
}
.card:hover .content .bottom h4 {
    color: #38BDF8; 
}

@media (max-width: 1024px) {
    .card {
        width: 100%; 
        height: auto; 
        min-height: 18rem; 
        padding: 1.5rem;
        display: flex;
        flex-direction: column;
        justify-content: flex-end; 
    }
    .card .content .icon {
        top: 2rem;
        height: 4rem;
    }
    .card .content .bottom {
        padding-top: 4rem;
    }
}

.loading-animation {
    border-top-color: #38BDF8;
    -webkit-animation: spinner 1s linear infinite;
    animation: spinner 1s linear infinite;
}
@-webkit-keyframes spinner {
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
}
@keyframes spinner {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
