/* Custom Cursor */
.cursor-follower {
    position: fixed;
    width: 20px;
    height: 20px;
    background: var(--color-primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: width 0.3s, height 0.3s, background-color 0.3s, transform 0.1s;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 10px;
    color: #000;
    font-weight: bold;
    text-transform: uppercase;
}

.cursor-follower.active {
    width: 80px;
    height: 80px;
    background: rgba(255, 216, 0, 0.8);
    backdrop-filter: blur(2px);
    color: #000;
}

.cursor-follower.hidden {
    opacity: 0;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

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

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

@keyframes glow-pulse {
    0% {
        box-shadow: 0 0 5px var(--color-primary-glow);
    }

    50% {
        box-shadow: 0 0 20px var(--color-primary-glow), 0 0 10px var(--color-primary);
    }

    100% {
        box-shadow: 0 0 5px var(--color-primary-glow);
    }
}

/* Utilities */
.animate-float {
    animation: float 4s ease-in-out infinite;
}

.glow-text {
    text-shadow: 0 0 10px var(--color-primary-glow);
}

.glow-box {
    animation: glow-pulse 3s infinite;
}

/* Mouse Trail / Electric effect container */
.electric-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(rgba(255, 216, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 216, 0, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveGrid 20s linear infinite;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 80%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 80%);
}

@keyframes moveGrid {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 50px 50px;
    }
}

/* Scroll Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeRight {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeLeft {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-up {
    opacity: 0;
    animation-fill-mode: forwards;
}

.animate-fade-in {
    opacity: 0;
    animation-fill-mode: forwards;
}

.animate-scale {
    opacity: 0;
    animation-fill-mode: forwards;
}

.animate-fade-right {
    opacity: 0;
    animation-fill-mode: forwards;
}

.animate-fade-left {
    opacity: 0;
    animation-fill-mode: forwards;
}

/* Logo Lightning Animation */
@keyframes lightningFlash {

    0%,
    90% {
        opacity: 1;
        filter: brightness(1);
        transform: skewX(0);
    }

    91% {
        opacity: 0.8;
        filter: brightness(3) drop-shadow(0 0 10px #FFD800);
        transform: skewX(-10deg);
    }

    92% {
        opacity: 1;
        filter: brightness(5) drop-shadow(0 0 20px #fff);
        transform: skewX(10deg);
    }

    93% {
        opacity: 0.8;
        filter: brightness(2);
        transform: skewX(-5deg);
    }

    94% {
        opacity: 1;
        filter: brightness(1);
        transform: skewX(0);
    }

    95% {
        opacity: 1;
        transform: scale(1.05);
    }

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

.lightning-logo {
    animation: lightningFlash 6s infinite;
    transform-origin: center;
    will-change: transform, filter, opacity;
}

/* Scroll Animation Utilities */
.start-animation.animate-fade-up {
    animation: fadeUp 0.8s ease-out forwards;
}

.start-animation.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.start-animation.animate-scale {
    animation: scaleUp 0.6s ease-out forwards;
}

.start-animation.animate-fade-right {
    animation: fadeRight 1s ease-out forwards;
}

.start-animation.animate-fade-left {
    animation: fadeLeft 1s ease-out forwards;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}


/* Page Transition - Fade Out */
.page-transition-exit {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease-in-out;
}

body {
    opacity: 1;
    transition: opacity 0.4s ease-in-out;
}

/* Electric Yellow Impact Section */
.section-electric-yellow {
    background-color: var(--color-primary);
    color: #000;
    position: relative;
    overflow: hidden;
    padding: 100px 0;
}

.section-electric-yellow h2 {
    color: #000 !important;
    text-shadow: none !important;
}

.section-electric-yellow .btn-glow {
    border-color: #000;
    color: #000;
}

.section-electric-yellow .btn-glow:hover {
    background: #000;
    color: var(--color-primary);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

/* Spark Particles */
.spark-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
}

.spark-1 {
    top: 80%;
    left: 20%;
    animation: sparkFly 2s infinite ease-out;
}

.spark-2 {
    top: 90%;
    left: 50%;
    animation: sparkFly 2.5s infinite ease-out 0.5s;
}

.spark-3 {
    top: 70%;
    left: 80%;
    animation: sparkFly 2.2s infinite ease-out 1s;
}

.spark-4 {
    top: 85%;
    left: 35%;
    animation: sparkFly 1.8s infinite ease-out 0.3s;
}

.spark-5 {
    top: 75%;
    left: 65%;
    animation: sparkFly 2.1s infinite ease-out 0.7s;
}

@keyframes sparkFly {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
        box-shadow: 0 0 10px #fff;
    }

    100% {
        transform: translateY(-100px) scale(0);
        opacity: 0;
        box-shadow: 0 0 0 #fff;
    }
}