﻿.card-wrapper {
    position: relative;
    z-index: 10;
    opacity: 0;
    width: 90%;
    max-width: 420px;
}

body.is-initiated .card-wrapper {
    animation: cardEntrance 1.6s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}

@keyframes cardEntrance {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.98);
        filter: blur(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* 3D Acrylic Glass Container */
.glass-card {
    position: relative;
    background: rgba(20, 20, 24, 0.45);
    backdrop-filter: blur(24px) saturate(120%);
    -webkit-backdrop-filter: blur(24px) saturate(120%);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), inset 1px 1px 2px rgba(255, 255, 255, 0.1), inset -1px -1px 3px rgba(0, 0, 0, 0.2);
    --mouse-x: 50%;
    --mouse-y: 50%;
    overflow: hidden;
}

    .glass-card::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 24px;
        padding: 1px;
        background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(186, 230, 253, 0.6), rgba(255, 255, 255, 0.03) 40%);
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        pointer-events: none;
        z-index: 10;
    }

    .glass-card::after {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y), rgba(186, 230, 253, 0.05), transparent 50%);
        pointer-events: none;
        z-index: 0;
    }

@keyframes textReveal {
    0% {
        opacity: 0;
        transform: translateY(15px);
        filter: blur(8px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

h1 {
    position: relative;
    z-index: 10;
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.15rem;
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
    color: var(--accent-glow);
    text-shadow: 0 0 20px rgba(186, 230, 253, 0.3);
    opacity: 0;
}

body.is-initiated h1 {
    animation: textReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) 1.4s forwards;
}

.tagline {
    position: relative;
    z-index: 10;
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: 2rem;
    letter-spacing: 0.02rem;
    white-space: nowrap;
    text-align: center;
    opacity: 0;
}

body.is-initiated .tagline {
    animation: textReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) 1.6s forwards;
}

.tagline span {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.links-container {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.link-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    padding: 12px 20px;
    width: 100%;
    box-sizing: border-box;
    background: var(--btn-bg);
    border: 1px solid rgba(255,255,255,0.03);
    border-radius: 14px;
    color: var(--text-main);
    text-decoration: none;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
    opacity: 0;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

    .link-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 50%;
        height: 100%;
        background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(186, 230, 253,0.12) 50%, rgba(255,255,255,0) 100%);
        transform: skewX(-25deg);
        transition: left 0.7s ease;
        z-index: 1;
    }

body.is-initiated .links-container a:nth-child(1), body.is-initiated .links-container div:nth-child(1) {
    animation: textReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 1.9s forwards;
}

body.is-initiated .links-container a:nth-child(2), body.is-initiated .links-container div:nth-child(2) {
    animation: textReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 2.1s forwards;
}

body.is-initiated .links-container a:nth-child(3), body.is-initiated .links-container div:nth-child(3) {
    animation: textReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 2.3s forwards;
}

body.is-initiated .links-container a:nth-child(4), body.is-initiated .links-container div:nth-child(4) {
    animation: textReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 2.5s forwards;
}

.link-btn:hover {
    border-color: rgba(186, 230, 253, 0.2);
    background: rgba(30, 30, 35, 0.85);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.link-btn:active {
    transform: scale(0.98);
}

.link-btn:hover::before {
    left: 200%;
}

.link-btn svg {
    width: 24px;
    height: 24px;
    display: block;
    fill: var(--text-muted);
    transition: transform 0.2s ease-out, fill 0.2s ease, filter 0.2s ease;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    transform-origin: center center;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0) scale(1) !important;
}

.link-btn:hover svg {
    fill: var(--text-main);
    transform: translateZ(0) scale(1.15) !important;
}

.social-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.3;
    position: relative;
    z-index: 2;
    pointer-events: none;
}

.social-label {
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.social-username {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
}

/* ====================================================
   EXTERNAL SVG FILE SUPPORT (CSS MASK)
   ==================================================== */
.mask-icon {
    width: 24px;
    height: 24px;
    background-color: var(--text-muted);
    transition: transform 0.2s ease-out, background-color 0.2s ease, filter 0.2s ease;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    transform-origin: center center;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0) scale(1) !important;
}

.link-btn:hover .mask-icon {
    background-color: var(--text-main);
    transform: translateZ(0) scale(1.15) !important;
}