/* Animation Classes */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards;
}

.slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s forwards;
}

.scale-on-hover {
    transition: transform 0.3s ease;
}

.scale-on-hover:hover {
    transform: scale(1.05);
}

.breathing-animation {
    animation: breathing 4s infinite ease-in-out;
}

/* Animation Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes breathing {
    0% {
        transform: scale(1);
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    }
    50% {
        transform: scale(1.03);
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.4), 0 0 30px rgba(205, 15, 139, 0.2);
    }
    100% {
        transform: scale(1);
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    }
}

/* Menu Animation */
.menu li a {
    position: relative;
    overflow: hidden;
}

.menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.menu li a:hover::after, .menu li a.active::after {
    width: 80%;
}

/* Button Animations */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transition: all 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

/* Card Hover Effects */
.feature-card, .benefit-card, .pricing-card, .testimonial-card {
    transition: all 0.3s ease;
}

.feature-card:hover, .benefit-card:hover, .pricing-card:hover, .testimonial-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Staggered Animations for Lists */
.feature-grid > *, .benefits-grid > *, .pricing-grid > *, .testimonial-grid > * {
    animation-delay: calc(var(--i, 0) * 0.1s);
}

/* Scroll Animation */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .scroll-reveal.active {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Menu Animation */
@media screen and (max-width: 768px) {
    .hamburger.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}