/* ═══════════════ SOCIALS SECTION — LEVITATION ═══════════════ */
.socials {
    padding: 80px 0 100px;
    background: linear-gradient(to bottom, var(--clr-bg), #FFF0F2);
    position: relative;
}

.socials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--clr-border), transparent);
}

/* ─── GRID ─── */
.socials-grid {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 32px;
    flex-wrap: wrap;
    max-width: 700px;
    margin: 0 auto;
    perspective: 800px;
}

/* ─── LEVITATION KEYFRAMES ─── */
@keyframes levitate {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-14px);
    }
}

@keyframes shadowPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.3;
    }

    50% {
        transform: scale(0.75);
        opacity: 0.12;
    }
}

@keyframes glowPulse {

    0%,
    100% {
        transform: scale(0.9);
        opacity: 0;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

/* ─── CARD WRAPPER (for shadow + card separation) ─── */
.social-card-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    position: relative;
}

/* ─── CARD ─── */
.social-card {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    cursor: none;
    color: var(--clr-text);
    position: relative;
    z-index: 2;

    /* Levitation */
    /* Levitation */
    animation: levitate 3.6s ease-in-out infinite;
}

.social-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    box-shadow: 0 18px 40px rgba(212, 114, 126, 0.15),
        0 0 20px 4px rgba(212, 114, 126, 0.1);
    opacity: 0;
    pointer-events: none;
    z-index: -1;
    animation: glowPulse 3.6s ease-in-out infinite;

    /* Smooth hover override */
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.4s ease,
        background 0.4s ease,
        border-color 0.4s ease;
}

/* Stagger the levitation wave */
.social-card-wrap:nth-child(1) .social-card {
    animation-delay: 0s;
}

.social-card-wrap:nth-child(2) .social-card {
    animation-delay: 0.35s;
}

.social-card-wrap:nth-child(3) .social-card {
    animation-delay: 0.7s;
}

.social-card-wrap:nth-child(4) .social-card {
    animation-delay: 1.05s;
}

.social-card-wrap:nth-child(5) .social-card {
    animation-delay: 1.4s;
}

/* Hover — lift higher, glow brighter */
.social-card:hover {
    animation-play-state: paused;
    transform: translateY(-22px) scale(1.12);
    background: #fff;
    border-color: #fff;
    box-shadow: 0 24px 48px rgba(212, 114, 126, 0.25),
        0 0 30px 4px rgba(212, 114, 126, 0.1);
}

/* ─── FLOATING SHADOW (below card) ─── */
.social-shadow {
    width: 50px;
    height: 10px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(61, 44, 46, 0.25), transparent 70%);
    margin-top: 10px;
    animation: shadowPulse 3.6s ease-in-out infinite;
    z-index: 1;
}

/* Stagger shadows in sync */
.social-card-wrap:nth-child(1) .social-shadow {
    animation-delay: 0s;
}

.social-card-wrap:nth-child(2) .social-shadow {
    animation-delay: 0.35s;
}

.social-card-wrap:nth-child(3) .social-shadow {
    animation-delay: 0.7s;
}

.social-card-wrap:nth-child(4) .social-shadow {
    animation-delay: 1.05s;
}

.social-card-wrap:nth-child(5) .social-shadow {
    animation-delay: 1.4s;
}

/* Hover — shadow shrinks more */
.social-card-wrap:hover .social-shadow {
    animation-play-state: paused;
    transform: scale(0.5);
    opacity: 0.08;
}

/* ─── SVG ICON ─── */
.social-card svg {
    width: 28px;
    height: 28px;
    transition: transform 0.4s ease, color 0.4s ease;
}

.social-card:hover svg {
    transform: scale(1.15) rotate(8deg);
}

/* ─── LABEL ─── */
.social-card span {
    font-family: var(--ff-body);
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--clr-text-light);
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.3s, transform 0.3s, color 0.3s;
    position: absolute;
    bottom: -22px;
    white-space: nowrap;
}

.social-card:hover span {
    opacity: 1;
    transform: translateY(0);
    color: var(--clr-primary);
}

/* ─── NETWORK COLORS ON HOVER ─── */
.social-card--vk:hover svg {
    color: #0077FF;
}

.social-card--tg:hover svg {
    color: #2AABEE;
}

.social-card--yt:hover svg {
    color: #FF0000;
}

.social-card--inst:hover svg {
    color: #E1306C;
}

.social-card--dzen:hover svg {
    color: #000000;
}

/* Keep Dzen glyph rendering consistent across browsers */
.social-card--dzen svg path {
    fill-rule: evenodd;
    clip-rule: evenodd;
}

/* ─── ENTRANCE ANIMATION (works with .reveal / .visible) ─── */
.socials-grid.reveal .social-card-wrap {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.socials-grid.reveal.visible .social-card-wrap {
    opacity: 1;
    transform: translateY(0);
}

.socials-id {
    margin-top: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.socials-id-copy {
    border: 1px solid rgba(212, 114, 126, 0.28);
    background: rgba(255, 255, 255, 0.72);
    color: var(--clr-text);
    border-radius: 999px;
    padding: 7px 14px;
    font: inherit;
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    transition: all 0.25s ease;
}

.socials-id-copy:hover {
    background: #fff;
    color: var(--clr-primary-dark);
    border-color: var(--clr-primary);
    transform: translateY(-1px);
}

.socials-id-copy.copied {
    border-color: rgba(168, 189, 160, 0.7);
    background: rgba(212, 228, 206, 0.8);
    color: #3d5a3a;
}

/* Stagger entrance */
.socials-grid.reveal.visible .social-card-wrap:nth-child(1) {
    transition-delay: 0.05s;
}

.socials-grid.reveal.visible .social-card-wrap:nth-child(2) {
    transition-delay: 0.12s;
}

.socials-grid.reveal.visible .social-card-wrap:nth-child(3) {
    transition-delay: 0.19s;
}

.socials-grid.reveal.visible .social-card-wrap:nth-child(4) {
    transition-delay: 0.26s;
}

.socials-grid.reveal.visible .social-card-wrap:nth-child(5) {
    transition-delay: 0.33s;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
    .socials-grid {
        gap: 20px;
    }

    .socials-id {
        margin-top: 28px;
    }

    .social-card {
        width: 64px;
        height: 64px;
    }

    .social-card svg {
        width: 24px;
        height: 24px;
    }

    .social-shadow {
        width: 40px;
        height: 8px;
    }
}

@media (max-width: 480px) {
    .socials-grid {
        gap: 14px;
    }

    .socials-id-copy {
        font-size: 1.1rem;
        padding: 6px 12px;
    }

    .social-card {
        width: 54px;
        height: 54px;
    }

    .social-card svg {
        width: 20px;
        height: 20px;
    }

    .social-shadow {
        width: 32px;
        height: 6px;
    }
}
