* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Poppins, sans-serif;
}

body {

    min-height: 100dvh;
    height: 100dvh;

    display: flex;

    justify-content: center;

    align-items: center;
    background:
        radial-gradient(circle at 20% 20%, rgba(0, 229, 255, 0.35), transparent 45%),
        radial-gradient(circle at 80% 30%, rgba(57, 197, 187, 0.30), transparent 50%),
        radial-gradient(circle at 50% 90%, rgba(45, 226, 230, 0.25), transparent 55%),
        linear-gradient(135deg, #050A12, #0B1B2B);

    overflow-x: hidden;
    overflow-y: auto;

    user-select: none !important;

        -ms-overflow-style:none;

}

img {
    -webkit-user-drag: none;
    user-select: none;
}

::-webkit-scrollbar{
    display:none;
}

/* Firefox */
html{
    scrollbar-width:none;
}

.bg {

    position: fixed;

    inset: 0;

    z-index: -1;

}

.card {
    width: 100%;
    max-width: 480px;

    position: relative;

    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);

    border-radius: 30px;
 
    padding: 5px;
    text-align: center;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);

    border: 1px solid rgba(255, 255, 255, 0.10);

    overflow: hidden;



    opacity: 0;
    transform: translateY(20px) scale(0.98);
    animation: cardIn 0.9s ease forwards;

    border-top: none;
    border-bottom: none;

    display: flex;
    flex-direction: column;

    padding-bottom: 0px;
}

.card::before {
    content: "";
    position: absolute;
    inset: -2px;



    background:
        linear-gradient(120deg,
            transparent 20%,
            rgba(0, 229, 255, 0.15),
            rgba(57, 197, 187, 0.10),
            transparent 70%);

    transform: rotate(8deg);
    filter: blur(8px);

    opacity: 0.6;

    pointer-events: none;
}

.card::after {
    content: "";
    position: absolute;
    inset: 0;

/*     border-radius: 30px;
 */
    padding: 1px;

    background: linear-gradient(135deg,
            rgba(0, 229, 255, 0.5),
            rgba(57, 197, 187, 0.3),
            transparent 60%);

    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);

    -webkit-mask-composite: xor;
    mask-composite: exclude;

    pointer-events: none;

    opacity: 0.7;

        

}

@keyframes cardIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);

                    min-height: 100dvh;
        height: 80dvh;
            align-content: center;
                border-radius: 0px;
    }
}

.avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 3px solid white;
    object-fit: cover;
}

.subtitle {

    color: #ececec;

    margin-top: 8px;
    margin-bottom: 30px;

}

.link {
    display: flex;
    align-items: center;
    gap: 18px;

    margin: 12px 30px 0px 30px;

    border-radius: 18px;

    text-decoration: none;
    color: white;

    background: rgba(255, 255, 255, 0.06);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);

    transition: .250s ease;

    opacity: 0;
    transform: translateY(15px);

    animation: linkIn .5s ease forwards;

    /* delay gestito da JS */


    position: relative;
    overflow: hidden;
    
    max-width: 410px;
}

.link:hover {
    transform: translateY(-3px) scale(1.02);


    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.35),
        0 0 25px rgba(0, 229, 255, 0.15);
}

.link::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;

    width: 35%;
    /* 🔥 prima era troppo largo */
    height: 100%;

    background: linear-gradient(120deg,
            transparent,
            rgba(255, 255, 255, 0.18),
            transparent);

    transform: skewX(-20deg);
    border-radius: inherit;

    pointer-events: none;
}

@keyframes shineMove {
    0% {
        left: -80%;
    }

    100% {
        left: 180%;
    }
}

.link.shine::after {
    animation: shineMove 1.4s ease-in-out;
}

@keyframes linkIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* PICCOLO */
.link.small {
    padding: 8px 16px;
}

/* MEDIO (default) */
.link.medium {
    padding: 14px 16px;
}

/* GRANDE */
.link.large {
    padding: 22px 16px;
}

.link:hover {

    transform: translateY(-4px) scale(1.02);

}

.icon {

    width: 42px;

    font-size: 28px;

    text-align: center;
    display: flex;
    flex-direction: column;
    margin-top: 2px;
}

.text {
    flex: 1;
    text-align: left;
}

.title {

    /* font-weight:700; */

    font-size: 18px;

}

.desc {

    font-size: 13px;

    opacity: .9;

    margin-top: 3px;
    width: 90%;

}

.instagram {
    background: linear-gradient(45deg, #405de6, #833ab4, #c13584, #fd1d1d, #f77737, #ffdc80);
}

.facebook {
    background: #1877F2;
}

.youtube {
    background: #FF0000;
}

.tiktok {
    background: #111111;
}

.telegram {
    background: #229ED9;
}

.whatsapp {
    background: #25D366;
}

.linkedin {
    background: #0077B5;
}

.github {
    background: #24292f;
}

.discord {
    background: #5865F2;
}

.spotify {
    background: #1DB954;
}

.x {
    background: #000000;
}

.myanimelist {
    background: #2E51A2;
}

.steam {
    background: linear-gradient(135deg,
            #0b1b2b,
            #1b2838,
            #2a475e);
}

.website {
    background: #000000;
}

.arrow {

    font-size: 20px;

}

.custom-logo {
    width: 38px;
    height: 38px;
    object-fit: contain;
    display: block;
    margin: auto;
}

.header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 30px;
    padding-bottom: 0px;

    animation: headerMargin .4s ease forwards;
    animation-delay: .5s; /* aspetta la fine di cardIn */
}

@keyframes headerMargin {
    from {
        margin-bottom: 0;
    }
    to {
        margin-top: 5px;
        margin-bottom: 30px;
    }
}

@keyframes polaroidsMargin {
    from {
        margin-bottom: 0;
    }
    to {
        margin-bottom: 25px;
    }
}

.logo-full {
    max-width: 250px;
    max-height: 80px;
    object-fit: contain;
}

#rippleCanvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

@media (max-width: 700px) {
    .card {
        border: none !important;
        max-width: none !important;
        border-radius: 0px !important;
        box-shadow: none !important;
                        background: none !important;

    }

    .link {
            margin: 12px 25px 0px 25px;

    }

    .card::after {
        padding: 0px !important;
        border: none !important;
        border-radius: none !important;

    }
}


#loader {
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    z-index:10;
}


.loading {
    display:flex;
    gap:12px;
}


.loading span {
    width:18px;
    height:18px;
    background:#ffffff;
    border-radius:50%;
    animation:bounce 1.2s infinite ease-in-out;
}


.loading span:nth-child(2) {
    animation-delay:.2s;
}


.loading span:nth-child(3) {
    animation-delay:.4s;
}


@keyframes bounce {

    0%,80%,100% {
        transform:scale(.6);
        opacity:.5;
    }

    40% {
        transform:scale(1.2);
        opacity:1;
    }

}


.loading-text {
    margin-top:20px;
    font-family:sans-serif;
    letter-spacing:3px;
    font-size:14px;
    animation:pulse 1.5s infinite;
}


@keyframes pulse {

    50% {
        opacity:.3;
    }

}

@keyframes gira {
    from {
        transform:rotate(0deg);
    }
    to {
        transform:rotate(360deg);
    }
}

#viewer {
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.85);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:100;
    flex-direction: column;

    backdrop-filter:blur(8px);
    -webkit-backdrop-filter:blur(8px);
}


#viewer img {
    max-width:90%;
    max-height:90%;
    object-fit:contain;

    animation:zoomIn .3s ease;
}


@keyframes zoomIn {

    from {
        transform:scale(.8);
        opacity:0;
    }

    to {
        transform:scale(1);
        opacity:1;
    }

}