/* XPANDSIA HERO SECTION PREMIUM ANIMATIONS */

/* Hero Background Parallax Effect */
.hero-parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    transition: transform 0.1s ease-out;
}

/* Background animations removed - no longer needed */

/* Premium Text Reveal Animation */
@keyframes textReveal {
    0% {
        opacity: 0;
        transform: translateY(60px) rotateX(90deg);
        filter: blur(10px);
    }
    50% {
        opacity: 0.7;
        transform: translateY(-5px) rotateX(-5deg);
        filter: blur(2px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0deg);
        filter: blur(0px);
    }
}

/* Background shape animations removed - no longer needed */

/* Premium Button Hover Effects */
.hero-btn-premium {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.hero-btn-premium:hover::before {
    left: 100%;
}

.hero-btn-premium::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 212, 0, 0.3) 0%, transparent 70%);
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

.hero-btn-premium:hover::after {
    width: 300px;
    height: 300px;
}

/* Typing Animation Effect */
@keyframes typeWriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

.typing-effect {
    overflow: hidden;
    border-right: 3px solid var(--primary-yellow);
    white-space: nowrap;
    animation: typeWriter 3s steps(40, end), blink 0.75s step-end infinite;
}

@keyframes blink {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: var(--primary-yellow);
    }
}

/* Staggered Card Animation */
.stagger-cards .hero-stat-card {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    animation: cardSlideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.stagger-cards .hero-stat-card:nth-child(1) { animation-delay: 0.6s; }
.stagger-cards .hero-stat-card:nth-child(2) { animation-delay: 0.8s; }
.stagger-cards .hero-stat-card:nth-child(3) { animation-delay: 1.0s; }

@keyframes cardSlideUp {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    60% {
        opacity: 0.8;
        transform: translateY(-5px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive Animations */
@media (max-width: 768px) {
    .hero-stat-card {
        animation-duration: 0.6s;
    }
    
    .hero-btn-premium {
        transform: none !important;
    }
    
    .hero-btn-premium:hover {
        transform: translateY(-2px) !important;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}