/* ====== PROBET855 - ANIMATIONS STYLESHEET ====== */

/* ====== KEYFRAME ANIMATIONS ====== */

/* Fade In Up Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade In Down Animation */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade In Left Animation */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Fade In Right Animation */
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scale In Animation */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Bounce Animation */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Pulse Animation */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 215, 0, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
    }
}

/* Glow Animation */
@keyframes glow {
    0% {
        box-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 0 0 30px rgba(255, 215, 0, 0.6);
    }
    100% {
        box-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
    }
}

/* Slide In Left */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Slide In Right */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Rotate Animation */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Shake Animation */
@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

/* Float Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Jackpot Counter Animation */
@keyframes jackpotCount {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
        color: var(--accent-gold);
    }
    100% {
        transform: scale(1);
    }
}

/* Gold Sparkle Animation */
@keyframes goldSparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Loading Dots Animation */
@keyframes loadingDots {
    0%, 80%, 100% {
        opacity: 0;
    }
    40% {
        opacity: 1;
    }
}

/* Typing Animation */
@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

/* Blink Cursor Animation */
@keyframes blink {
    50% {
        border-color: transparent;
    }
}

/* ====== ANIMATION CLASSES ====== */

/* Fade Animations */
.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.animate-fade-in-down {
    animation: fadeInDown 0.8s ease-out;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.8s ease-out;
}

.animate-fade-in-right {
    animation: fadeInRight 0.8s ease-out;
}

.animate-scale-in {
    animation: scaleIn 0.6s ease-out;
}

.animate-bounce {
    animation: bounce 2s infinite;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-glow {
    animation: glow 2s ease-in-out infinite;
}

.animate-slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

.animate-slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

.animate-rotate {
    animation: rotate 20s linear infinite;
}

.animate-shake {
    animation: shake 0.5s ease-in-out;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-jackpot {
    animation: jackpotCount 1s ease-in-out;
}

/* ====== DELAYED ANIMATIONS ====== */
.delay-100 {
    animation-delay: 100ms;
}

.delay-200 {
    animation-delay: 200ms;
}

.delay-300 {
    animation-delay: 300ms;
}

.delay-400 {
    animation-delay: 400ms;
}

.delay-500 {
    animation-delay: 500ms;
}

.delay-600 {
    animation-delay: 600ms;
}

.delay-700 {
    animation-delay: 700ms;
}

.delay-800 {
    animation-delay: 800ms;
}

.delay-900 {
    animation-delay: 900ms;
}

.delay-1000 {
    animation-delay: 1000ms;
}

/* ====== SECTION ANIMATIONS ====== */

/* Hero Section Animations */
.hero-content h1 {
    animation: fadeInDown 1s ease-out;
}

.hero-content .lead {
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-bonus {
    animation: scaleIn 0.8s ease-out 0.6s both;
}

.hero-buttons {
    animation: fadeInUp 0.8s ease-out 0.9s both;
}

.trust-item {
    animation: fadeInUp 0.6s ease-out;
}

.trust-item:nth-child(1) {
    animation-delay: 1.2s;
}

.trust-item:nth-child(2) {
    animation-delay: 1.4s;
}

.trust-item:nth-child(3) {
    animation-delay: 1.6s;
}

.jackpot-ticker {
    animation: glow 3s ease-in-out infinite;
}

/* Games Section Animations */
.game-card {
    animation: fadeInUp 0.8s ease-out both;
}

.game-card:nth-child(1) { animation-delay: 100ms; }
.game-card:nth-child(2) { animation-delay: 200ms; }
.game-card:nth-child(3) { animation-delay: 300ms; }
.game-card:nth-child(4) { animation-delay: 400ms; }
.game-card:nth-child(5) { animation-delay: 500ms; }
.game-card:nth-child(6) { animation-delay: 600ms; }

.provider-logo {
    animation: scaleIn 0.6s ease-out both;
}

.provider-logo:nth-child(1) { animation-delay: 100ms; }
.provider-logo:nth-child(2) { animation-delay: 200ms; }
.provider-logo:nth-child(3) { animation-delay: 300ms; }
.provider-logo:nth-child(4) { animation-delay: 400ms; }
.provider-logo:nth-child(5) { animation-delay: 500ms; }
.provider-logo:nth-child(6) { animation-delay: 600ms; }

/* Promotions Section Animations */
.promotion-card {
    animation: fadeInUp 0.8s ease-out both;
}

.promotion-card:nth-child(1) { animation-delay: 100ms; }
.promotion-card:nth-child(2) { animation-delay: 200ms; }
.promotion-card:nth-child(3) { animation-delay: 300ms; }
.promotion-card:nth-child(4) { animation-delay: 400ms; }
.promotion-card:nth-child(5) { animation-delay: 500ms; }

.promotion-card.featured {
    animation: scaleIn 0.8s ease-out 100ms both, glow 3s ease-in-out infinite;
}

/* Why Us Section Animations */
.feature-card {
    animation: fadeInUp 0.8s ease-out both;
}

.feature-card:nth-child(1) { animation-delay: 100ms; }
.feature-card:nth-child(2) { animation-delay: 200ms; }
.feature-card:nth-child(3) { animation-delay: 300ms; }
.feature-card:nth-child(4) { animation-delay: 400ms; }

.security-feature {
    animation: fadeInLeft 0.8s ease-out both;
}

.security-feature:nth-child(1) { animation-delay: 500ms; }
.security-feature:nth-child(2) { animation-delay: 600ms; }
.security-feature:nth-child(3) { animation-delay: 700ms; }

/* Payment Methods Animations */
.payment-method {
    animation: scaleIn 0.6s ease-out both;
}

.payment-method:nth-child(1) { animation-delay: 100ms; }
.payment-method:nth-child(2) { animation-delay: 200ms; }
.payment-method:nth-child(3) { animation-delay: 300ms; }
.payment-method:nth-child(4) { animation-delay: 400ms; }

/* Mobile App Section Animations */
.app-content {
    animation: fadeInLeft 1s ease-out both;
}

.app-image {
    animation: fadeInRight 1s ease-out both;
}

.app-feature {
    animation: fadeInUp 0.6s ease-out both;
}

.app-feature:nth-child(1) { animation-delay: 300ms; }
.app-feature:nth-child(2) { animation-delay: 400ms; }
.app-feature:nth-child(3) { animation-delay: 500ms; }
.app-feature:nth-child(4) { animation-delay: 600ms; }

/* Testimonials Section Animations */
.testimonial-card {
    animation: fadeInUp 0.8s ease-out both;
}

.testimonial-card:nth-child(1) { animation-delay: 100ms; }
.testimonial-card:nth-child(2) { animation-delay: 200ms; }
.testimonial-card:nth-child(3) { animation-delay: 300ms; }

/* FAQ Section Animations */
.accordion-item {
    animation: fadeInUp 0.6s ease-out both;
}

.accordion-item:nth-child(1) { animation-delay: 100ms; }
.accordion-item:nth-child(2) { animation-delay: 200ms; }
.accordion-item:nth-child(3) { animation-delay: 300ms; }
.accordion-item:nth-child(4) { animation-delay: 400ms; }

/* Footer Animations */
.footer-about {
    animation: fadeInUp 0.8s ease-out both;
}

.footer-links {
    animation: fadeInUp 0.8s ease-out both;
}

.footer-links:nth-child(2) { animation-delay: 200ms; }
.footer-links:nth-child(3) { animation-delay: 300ms; }
.footer-links:nth-child(4) { animation-delay: 400ms; }
.footer-links:nth-child(5) { animation-delay: 500ms; }

/* ====== INTERACTIVE ANIMATIONS ====== */

/* Button Hover Animations */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Card Hover Animations */
.game-card:hover,
.promotion-card:hover,
.feature-card:hover,
.payment-method:hover,
.testimonial-card:hover,
.provider-logo:hover {
    animation: bounce 0.6s ease;
}

/* Navigation Link Animations */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-amber));
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
    animation: glow 2s ease-in-out infinite;
}

/* Social Links Animation */
.social-links a {
    position: relative;
    transition: all 0.3s ease;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: var(--accent-gold);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
    z-index: -1;
}

.social-links a:hover::before {
    width: 50px;
    height: 50px;
}

/* WhatsApp Float Animation */
.whatsapp-float {
    animation: float 3s ease-in-out infinite, pulse 2s ease-in-out infinite;
}

.whatsapp-float:hover {
    animation: bounce 0.6s ease, pulse 1s ease-in-out infinite;
}

/* ====== SCROLL ANIMATIONS ====== */

/* Scroll Reveal Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.scroll-reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.scroll-reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease;
}

.scroll-reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* ====== LOADING ANIMATIONS ====== */

/* Loading Spinner */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 215, 0, 0.3);
    border-top: 4px solid var(--accent-gold);
    border-radius: 50%;
    animation: rotate 1s linear infinite;
}

/* Loading Dots */
.loading-dots span {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--accent-gold);
    border-radius: 50%;
    margin: 0 2px;
    animation: loadingDots 1.4s infinite both;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

/* ====== TEXT ANIMATIONS ====== */

/* Typing Effect */
.typing-effect {
    overflow: hidden;
    border-right: 2px solid var(--accent-gold);
    white-space: nowrap;
    animation: typing 3s steps(40, end), blink 0.75s step-end infinite;
}

/* Glitch Effect */
.glitch-effect {
    position: relative;
    animation: glitch 2s infinite;
}

.glitch-effect::before,
.glitch-effect::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-effect::before {
    animation: glitch-1 0.5s infinite;
    color: var(--accent-gold);
    z-index: -1;
}

.glitch-effect::after {
    animation: glitch-2 0.5s infinite;
    color: var(--accent-amber);
    z-index: -2;
}

@keyframes glitch-1 {
    0%, 100% {
        clip-path: inset(0 0 0 0);
        transform: translate(0);
    }
    20% {
        clip-path: inset(20% 0 30% 0);
        transform: translate(-2px, 2px);
    }
    40% {
        clip-path: inset(50% 0 20% 0);
        transform: translate(2px, -2px);
    }
    60% {
        clip-path: inset(10% 0 60% 0);
        transform: translate(-2px, 0);
    }
    80% {
        clip-path: inset(80% 0 5% 0);
        transform: translate(2px, 0);
    }
}

@keyframes glitch-2 {
    0%, 100% {
        clip-path: inset(0 0 0 0);
        transform: translate(0);
    }
    20% {
        clip-path: inset(60% 0 20% 0);
        transform: translate(2px, -2px);
    }
    40% {
        clip-path: inset(20% 0 50% 0);
        transform: translate(-2px, 2px);
    }
    60% {
        clip-path: inset(30% 0 40% 0);
        transform: translate(2px, 0);
    }
    80% {
        clip-path: inset(5% 0 80% 0);
        transform: translate(-2px, 0);
    }
}

/* ====== SPECIAL EFFECTS ====== */

/* Gold Sparkle Effect */
.gold-sparkle {
    position: relative;
}

.gold-sparkle::before {
    content: '✨';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 20px;
    animation: goldSparkle 2s ease-in-out infinite;
}

/* Confetti Animation */
@keyframes confetti {
    0% {
        transform: translateY(0) rotateZ(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(300px) rotateZ(720deg);
        opacity: 0;
    }
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: var(--accent-gold);
    animation: confetti 3s ease-out forwards;
}

/* ====== PERFORMANCE OPTIMIZATIONS ====== */

/* Hardware Acceleration */
.animate-fade-in-up,
.animate-fade-in-down,
.animate-fade-in-left,
.animate-fade-in-right,
.animate-scale-in,
.animate-slide-in-left,
.animate-slide-in-right,
.game-card,
.promotion-card,
.feature-card,
.payment-method,
.testimonial-card {
    will-change: transform, opacity;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Reduce Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .animate-bounce,
    .animate-pulse,
    .animate-glow,
    .animate-rotate,
    .animate-float,
    .animate-jackpot,
    .jackpot-ticker,
    .whatsapp-float {
        animation: none !important;
    }
    
    .btn::before,
    .social-links a::before {
        transition: none !important;
    }
}

/* ====== CROSS-BROWSER COMPATIBILITY ====== */

/* Firefox */
@-moz-document url-prefix() {
    .btn::before,
    .social-links a::before {
        background-color: rgba(255, 215, 0, 0.1);
    }
}

/* Safari */
@media not all and (min-resolution:.001dpcm) {
    @supports (-webkit-appearance:none) {
        .game-card,
        .promotion-card,
        .feature-card,
        .payment-method,
        .testimonial-card {
            transform: translateZ(0);
            backface-visibility: hidden;
        }
    }
}

/* IE11 Support */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    .animate-fade-in-up,
    .animate-fade-in-down,
    .animate-fade-in-left,
    .animate-fade-in-right,
    .animate-scale-in {
        opacity: 1;
        transform: none;
        animation: none;
    }
    
    .btn::before,
    .social-links a::before {
        display: none;
    }
}
