* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

img,
svg {
    user-select: none;
    -webkit-user-drag: none;
    user-drag: none;
}

body {
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    background:
        linear-gradient(
            135deg,
            rgba(5, 5, 10, 0.5),
            rgba(10, 8, 18, 0.65)
        ),
        url("../assets/background.jpg") center / cover no-repeat;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    overflow: hidden;
}

.container {
    width: 100%;
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 20px;

    perspective: 1200px;
}

.card {
    width: 440px;
    min-height: 440px;

    position: relative;

    padding: 36px;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.085),
            rgba(255, 255, 255, 0.025)
        );

    border: 1px solid rgba(255, 255, 255, 0.14);

    border-radius: 26px;

    box-shadow:
        0 35px 90px rgba(0, 0, 0, 0.5),
        0 10px 40px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.13),
        inset 0 -1px 0 rgba(255, 255, 255, 0.025);

    backdrop-filter: blur(24px) saturate(125%);
    -webkit-backdrop-filter: blur(24px) saturate(125%);

    overflow: hidden;

    transform-style: preserve-3d;

    will-change: transform;

    transition:
        box-shadow 0.4s ease,
        border-color 0.4s ease;
}

.card::before {
    content: "";

    position: absolute;

    top: -55%;
    left: -30%;

    width: 160%;
    height: 100%;

    background:
        radial-gradient(
            ellipse at center,
            rgba(255, 255, 255, 0.09),
            transparent 58%
        );

    transform: rotate(-12deg);

    pointer-events: none;

    opacity: 0.75;
}

.card::after {
    content: "";

    position: absolute;

    inset: 1px;

    border-radius: 25px;

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.045),
            transparent 35%
        );

    pointer-events: none;
}

.card-glow {
    position: absolute;

    top: -120px;
    right: -120px;

    width: 260px;
    height: 260px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(255, 255, 255, 0.07),
            transparent 70%
        );

    filter: blur(20px);

    pointer-events: none;
}

.heading,
.second,
.buttons {
    position: relative;
    z-index: 3;
}

.heading {
    color: white;

    text-align: left;

    transform: translateZ(30px);
}

.heading h1 {
    margin-bottom: 13px;

    color: #ffffff;

    font-size: 32px;
    font-weight: 700;

    line-height: 1.15;
    letter-spacing: -0.9px;

    text-shadow:
        0 3px 20px rgba(0, 0, 0, 0.5);
}

.secondary {
    color: rgba(255, 255, 255, 0.7);

    font-size: 15px;
    font-weight: 400;

    line-height: 1.65;

    text-shadow:
        0 2px 10px rgba(0, 0, 0, 0.35);
}

.second {
    margin-top: 42px;

    transform: translateZ(25px);
}

.second .secondary {
    color: rgba(255, 255, 255, 0.62);
}

.buttons {
    position: absolute;

    left: 50%;
    bottom: 27px;

    display: flex;
    justify-content: center;
    align-items: center;

    gap: 12px;

    transform:
        translateX(-50%)
        translateZ(25px);
}

.project-button {
    position: relative;

    width: 70px;
    height: 70px;

    flex-shrink: 0;

    display: flex;
    justify-content: center;
    align-items: center;

    border: 1px solid rgba(255, 255, 255, 0.13);

    border-radius: 17px;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.09),
            rgba(255, 255, 255, 0.045)
        );

    color: #ffffff;

    text-decoration: none;

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(255, 255, 255, 0.025);

    transition:
        width 0.3s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}

.project-button img {
    position: absolute;

    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: 16px;

    filter: blur(0);

    transition:
        filter 0.3s ease,
        opacity 0.3s ease,
        transform 0.3s ease;
}

.discord-icon {
    position: absolute;

    width: 48px;
    height: auto;

    display: block;

    color: #ffffff;

    opacity: 1;

    transform: scale(1);

    transition:
        filter 0.3s ease,
        opacity 0.3s ease,
        transform 0.3s ease;
}

.button-text {
    position: absolute;

    inset: 0;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 0 12px;

    color: #ffffff;

    font-size: 12px;
    font-weight: 600;

    text-align: center;

    white-space: nowrap;

    opacity: 0;

    text-shadow:
        0 2px 10px rgba(0, 0, 0, 0.5);

    transition:
        opacity 0.25s ease;
}

.project-button:hover {
    width: 150px;

    background:
        linear-gradient(
            135deg,
            rgba(90, 90, 90, 0.42),
            rgba(45, 45, 45, 0.35)
        );

    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.13),
        inset 0 -1px 0 rgba(255, 255, 255, 0.04);

    transform:
        translateY(-2px)
        scale(1.02);
}

.project-button:hover img {
    filter: blur(7px);

    opacity: 0.3;

    transform: scale(1.1);
}

.project-button:hover .discord-icon {
    filter: blur(7px);

    opacity: 0.22;

    transform: scale(1.14);
}

.project-button:hover .button-text {
    opacity: 1;
}

.project-button:active {
    transform:
        translateY(1px)
        scale(0.97);
}

.project-button:focus,
.project-button:focus-visible {
    outline: none;
}

@media (max-width: 480px) {
    body {
        overflow: auto;
    }

    .container {
        min-height: 100vh;
        padding: 15px;
    }

    .card {
        width: 100%;
        min-height: 430px;

        padding: 27px;

        border-radius: 22px;
    }

    .heading h1 {
        font-size: 28px;
    }

    .secondary {
        font-size: 14px;
    }

    .buttons {
        bottom: 22px;
        gap: 10px;
    }

    .project-button {
        width: 64px;
        height: 64px;

        border-radius: 15px;
    }

    .project-button img {
        border-radius: 14px;
    }

    .discord-icon {
        width: 44px;
    }

    .project-button:hover {
        width: 140px;
    }
}