/* Animation Keyframes */

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

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

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

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

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

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

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

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

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

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

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

.floating-element {
    animation: float 8s ease-in-out infinite;
}

.anti-gravity {
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.anti-gravity:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 40px 80px -20px rgba(15, 23, 42, 0.25);
}

/* Base reveal state */
.reveal {
    opacity: 0;
}

/* Active states triggering animations */
.reveal.active {
    opacity: 1;
    /* The animation property handles the movement */
}

.reveal.active.fade-up {
    animation: fadeUp 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.reveal.active.fade-left {
    animation: fadeLeft 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.reveal.active.fade-right {
    animation: fadeRight 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.reveal.active.scale-up {
    animation: scaleUp 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* Delays */
.delay-1 {
    animation-delay: 0.15s;
}

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

.delay-3 {
    animation-delay: 0.45s;
}

/* Parallax Class */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Button Glow */
.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    bottom: -50%;
    left: -50%;
    background: linear-gradient(to bottom, rgba(229, 231, 235, 0), rgba(255, 255, 255, 0.5) 50%, rgba(229, 231, 235, 0));
    transform: rotateZ(60deg) translate(-5em, 7.5em);
    opacity: 0;
    transition: all 0.3s;
}

.btn-glow:hover::after {
    animation: sheen 1s forwards;
    opacity: 1;
}

@keyframes sheen {
    100% {
        transform: rotateZ(60deg) translate(1em, -9em);
    }
}