/* ===== Footer Button Links ===== */
footer nav a.footer-link {
    background: var(--VinDXit-yellow) !important;   /* Bright yellow */
    color: black !important;                        /* High-contrast text */
    border: none !important;
    padding: 0.6rem 1.25rem !important;
    border-radius: 9999px !important;              /* Pill shape */
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    text-decoration: none !important;
    transition: background-color 0.2s ease, transform 0.1s ease, scale 0.2s ease !important;
    display: inline-block !important;
    margin: 0.25rem 0.5rem !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15) !important;
    /* Animation: Fade in and slide up on load */
    opacity: 0;
    transform: translateY(10px);
    animation: footer-slide-in 0.3s ease-out forwards;
}

/* Keyframes for footer link entrance */
@keyframes footer-slide-in {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

footer nav a.footer-link:hover {
    background: #ffe066 !important;                /* Lighter yellow on hover */
    transform: translateY(-1px) scale(1.05) !important; /* Bounce effect */
}

footer nav {
    display: flex !important;
    justify-content: center !important;             /* Center buttons */
    flex-wrap: wrap !important;                    /* Allow wrapping */
    gap: 0.5rem !important;                        /* Space between buttons */
    margin: 1rem auto 0.75rem !important;          /* Space before footer text */
    text-align: center !important;
}

footer {
    background: #000 !important;
    color: #FFD700 !important;                     /* Vindxit gold */
    padding: 1rem 0 !important;
    text-align: center !important;
    flex-shrink: 0 !important;                     /* Sticky footer */
    /* Animation: Fade in entire footer */
    opacity: 0;
    animation: footer-fade-in 0.5s ease-out 0.2s forwards;
}

/* Keyframes for footer entrance */
@keyframes footer-fade-in {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

footer .footer-inner {
    position: relative;
    display: flex;
    justify-content: center;                        /* Center <p> */
    align-items: center;
}

footer .footer-inner p {
    margin: 0 !important;
    font-size: 0.85rem !important;
    color: #fff !important;
    opacity: 0.85 !important;
    /* Prepare for animations */
    display: inline-block;                          /* Ensure transform works */
    transform-origin: 50% 50%;                     /* Initial center pivot for spin */
    transition: transform 0.1s ease;               /* Smooth reset */
}

/* Initial spin on first hover */
footer .footer-inner p:not(.flip-right):not(.flip-left):hover {
    animation: spin-text 2.5s ease-out forwards;
}

/* Flip animation for subsequent hovers (left pivot) */
footer .footer-inner p.flip-left:hover {
    transform-origin: left;                        /* Pivot at left edge */
    animation: flip-text 0.6s ease-out forwards;
}

/* Flip animation for subsequent hovers (right pivot) */
footer .footer-inner p.flip-right:hover {
    transform-origin: right;                       /* Pivot at right edge */
    animation: flip-text 0.6s ease-out forwards;
}

/* Keyframes for initial spin: slower multi-rotation, slowing to stop */
@keyframes spin-text {
    0% {
        transform: rotate(0deg);
    }
    40% {
        transform: rotate(720deg);                    /* 2 rotations in ~1s */
    }
    100% {
        transform: rotate(1080deg);                   /* End at 3 rotations */
    }
}

/* Keyframes for flip: 180-degree horizontal flip */
@keyframes flip-text {
    0% {
        transform: perspective(400px) rotateY(0deg);
    }
    100% {
        transform: perspective(400px) rotateY(180deg);
    }
}

footer .ladyMuteBtn {
    position: absolute;
    right: 1rem;                                   /* Far right */
    background: var(--VinDXit-yellow);
    color: #111;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    /* Animation: Slide in from right */
    opacity: 0;
    transform: translateX(20px);
    animation: mute-btn-slide-in 0.3s ease-out 0.4s forwards;
}

footer .ladyMuteBtn:hover {
    transform: scale(1.05) !important;             /* Bounce effect */
}

/* Keyframes for mute button entrance */
@keyframes mute-btn-slide-in {
    0% {
        opacity: 0;
        transform: translateX(20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    footer nav a.footer-link,
    footer,
    footer .footer-inner p,
    footer .ladyMuteBtn {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Ensure body and html take full height */
html, body {
    height: 100% !important;
    margin: 0 !important;
}

/* Wrap content in a flex container */
body {
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh !important;
}

/* Main content takes available space */
main {
    flex: 1 0 auto !important;
}

/* Footer stays at the bottom */
footer {
    flex-shrink: 0 !important;
}