/* Glowing Effect Animations */
@keyframes glow {
    0% {
        text-shadow: 0 0 10px rgba(61, 255, 77, 0.5);
    }
    50% {
        text-shadow: 0 0 20px rgba(61, 255, 77, 0.8), 0 0 30px rgba(61, 255, 77, 0.4);
    }
    100% {
        text-shadow: 0 0 10px rgba(61, 255, 77, 0.5);
    }
}

@keyframes borderGlow {
    0% {
        box-shadow: 0 0 10px rgba(0, 232, 232, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 232, 232, 0.8), 0 0 30px rgba(0, 232, 232, 0.4);
    }
    100% {
        box-shadow: 0 0 10px rgba(0, 232, 232, 0.5);
    }
}

@keyframes floatAnimation {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes leafSway {
    0% {
        transform: rotate(0deg) translateX(0);
    }
    25% {
        transform: rotate(5deg) translateX(5px);
    }
    50% {
        transform: rotate(0deg) translateX(0);
    }
    75% {
        transform: rotate(-5deg) translateX(-5px);
    }
    100% {
        transform: rotate(0deg) translateX(0);
    }
}

@keyframes vinePulse {
    0% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
    100% {
        opacity: 0.6;
        transform: scale(1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Animations Applied */
.logo {
    animation: glow 3s infinite;
}

.logo-hero {
    animation: glow 3s infinite, pulse 4s infinite;
}

.vines {
    animation: vinePulse 8s infinite;
}

.vines.left {
    animation-delay: 0s;
}

.vines.right {
    animation-delay: 4s;
}

.hero-content h1 {
    animation: fadeInUp 1.5s ease;
}

.hero-content p {
    animation: fadeInUp 1.5s ease 0.3s backwards;
}

.cta-button {
    animation: fadeInUp 1.5s ease 0.6s backwards;
}

.game-card {
    animation: fadeInUp 0.8s ease;
}

.game-card:nth-child(1) {
    animation-delay: 0.1s;
}

.game-card:nth-child(2) {
    animation-delay: 0.2s;
}

.game-card:nth-child(3) {
    animation-delay: 0.3s;
}

.game-card:nth-child(4) {
    animation-delay: 0.4s;
}

.game-card:nth-child(5) {
    animation-delay: 0.5s;
}

.game-card:nth-child(6) {
    animation-delay: 0.6s;
}

.game-card:nth-child(7) {
    animation-delay: 0.7s;
}

.game-card:nth-child(8) {
    animation-delay: 0.8s;
}

.benefit-icon {
    animation: borderGlow 4s infinite, pulse 4s infinite;
}

.benefit-icon.lag-free {
    animation-delay: 0s;
}

.benefit-icon.no-signup {
    animation-delay: 1s;
}

.benefit-icon.instant {
    animation-delay: 2s;
}

.benefit {
    animation: fadeInUp 1s ease;
}

.benefit:nth-child(1) {
    animation-delay: 0.2s;
}

.benefit:nth-child(2) {
    animation-delay: 0.4s;
}

.benefit:nth-child(3) {
    animation-delay: 0.6s;
}

.featured-img {
    animation: fadeInLeft 1s ease;
}

.featured-info {
    animation: fadeInRight 1s ease;
}

/* Parallax Effect for Hero Leaves */
.hero-leaves {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 2;
    pointer-events: none;
}

.leaf {
    position: absolute;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.3;
    filter: hue-rotate(100deg) brightness(1.5);
}

.leaf-1 {
    width: 400px;
    height: 400px;
    top: 10%;
    left: 5%;
    background-image: url('https://images.pexels.com/photos/1031641/pexels-photo-1031641.jpeg?auto=compress&cs=tinysrgb&w=1600');
    transform-origin: top left;
    animation: leafSway 20s ease-in-out infinite;
}

.leaf-2 {
    width: 300px;
    height: 300px;
    top: 30%;
    right: 10%;
    background-image: url('https://images.pexels.com/photos/158028/bellingrath-gardens-alabama-landscape-scenic-158028.jpeg?auto=compress&cs=tinysrgb&w=1600');
    transform-origin: top right;
    animation: leafSway 15s ease-in-out infinite reverse;
    animation-delay: 2s;
}

.leaf-3 {
    width: 250px;
    height: 250px;
    bottom: 10%;
    right: 25%;
    background-image: url('https://images.pexels.com/photos/1083822/pexels-photo-1083822.jpeg?auto=compress&cs=tinysrgb&w=1600');
    transform-origin: bottom center;
    animation: leafSway 18s ease-in-out infinite;
    animation-delay: 4s;
}

/* Menu Animation */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Scroll Animation */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}