/* ==========================================================================
   ABYNS STUDIO - Keyframes & Micro-Interactions
   ========================================================================== */

/* 1. Custom Cursor Elements */
.custom-cursor {
    width: 8px;
    height: 8px;
    background-color: var(--color-gold);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 999999;
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.custom-cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-gold);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 999998;
    transition: transform 0.08s ease-out, width 0.3s, height 0.3s, background-color 0.3s, border-color 0.3s;
}

/* Hover States for Cursor */
body.cursor-hover .custom-cursor {
    width: 12px;
    height: 12px;
    background-color: var(--color-white);
}

body.cursor-hover .custom-cursor-follower {
    width: 60px;
    height: 60px;
    background-color: rgba(214, 183, 122, 0.1);
    border-color: var(--color-white);
}

body.cursor-active .custom-cursor {
    transform: translate(-50%, -50%) scale(0.5);
}

body.cursor-active .custom-cursor-follower {
    transform: translate(-50%, -50%) scale(1.4);
    border-color: var(--color-gold-hover);
}

/* Hide default cursor on desktops */
@media (min-width: 992px) {
    body {
        cursor: none;
    }
    a, button, select, input, textarea, .faq-question, .swiper-button-next, .swiper-button-prev {
        cursor: none !important;
    }
}

/* Restore default cursor in fullscreen mode because custom cursor is hidden */
:fullscreen, :fullscreen * {
    cursor: default !important;
}
:-webkit-full-screen, :-webkit-full-screen * {
    cursor: default !important;
}
:fullscreen a, :fullscreen button, 
:-webkit-full-screen a, :-webkit-full-screen button {
    cursor: pointer !important;
}

/* 2. Keyframes */

/* Vertical Floating */
@keyframes float-slow {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(3deg);
    }
    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

/* Floating reverse */
@keyframes float-slow-reverse {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(15px) rotate(-2deg);
    }
    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

/* Slow Rotation */
@keyframes rot-slow {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Ambient Purple Glow Pulse */
@keyframes glow-pulse {
    0% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.15);
    }
    100% {
        opacity: 0.3;
        transform: scale(1);
    }
}

/* Infinite Marquee Logo Wall */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* 3. Animation Helper Classes */
.animate-float {
    animation: float-slow 8s ease-in-out infinite;
}

.animate-float-reverse {
    animation: float-slow-reverse 7s ease-in-out infinite;
}

.animate-rot {
    animation: rot-slow 25s linear infinite;
}

.animate-glow {
    animation: glow-pulse 6s ease-in-out infinite;
}

/* Logo Marquee Container */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 3rem 0;
    border-top: 1px solid var(--color-border-glass);
    border-bottom: 1px solid var(--color-border-glass);
    background: rgba(20, 9, 23, 0.4);
}

.marquee-content {
    display: inline-flex;
    gap: 6rem;
    animation: marquee 30s linear infinite;
}

.marquee-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
    color: rgba(246, 241, 235, 0.15);
    transition: var(--transition-fast);
}

.marquee-logo svg {
    fill: rgba(246, 241, 235, 0.15);
    width: 32px;
    height: 32px;
    transition: var(--transition-fast);
}

.marquee-logo:hover {
    color: var(--color-gold);
}

.marquee-logo:hover svg {
    fill: var(--color-gold);
}

/* 4. Mask Reveals & Hover Glows */
.reveal-text-wrap {
    overflow: hidden;
    position: relative;
}

.reveal-text-line {
    display: block;
    transform: translateY(100%);
}

/* Golden Gradient Border Hover Glow */
.gold-glow-border {
    transition: var(--transition-smooth) !important;
}

.gold-glow-border:hover {
    border-color: rgba(214, 183, 122, 0.8) !important;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.15), 0 25px 50px rgba(0, 0, 0, 0.8), 0 0 25px rgba(214, 183, 122, 0.25) !important;
}

/* Image Reveal Mask */
.img-reveal-mask {
    position: relative;
    overflow: hidden;
}

.img-reveal-mask::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-bg-primary);
    transform-origin: right;
    transition: transform 1.2s cubic-bezier(0.76, 0, 0.24, 1);
}

.img-reveal-mask.revealed::after {
    transform: scaleX(0);
}
