/* ========================================
   Atom Casino Playing - Unique Animations
   Neon Aurora Theme Animations
   ======================================== */

/* Core Pulsing Animation */
@keyframes atm-core-pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.35;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.35);
        opacity: 0.55;
    }
}

/* Ring Spinning Animation */
@keyframes atm-ring-spin {
    from {
        transform: translate(-50%, -50%) rotateX(72deg) rotateZ(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotateX(72deg) rotateZ(360deg);
    }
}

/* Orbit Rotation for Logo */
@keyframes atm-orbit-rotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Stars Shimmer Effect */
@keyframes atm-shimmer {
    0%, 100% {
        opacity: 0.55;
    }
    50% {
        opacity: 0.85;
    }
}

/* CTA Radiate Animation */
@keyframes atm-cta-radiate {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.12);
    }
}

/* Slide Up Effect */
@keyframes atm-slide-up {
    from {
        opacity: 0;
        transform: translateY(45px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade In Effect */
@keyframes atm-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Zoom In Effect */
@keyframes atm-zoom-in {
    from {
        opacity: 0;
        transform: scale(0.92);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Slide From Left */
@keyframes atm-slide-left {
    from {
        opacity: 0;
        transform: translateX(-55px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Slide From Right */
@keyframes atm-slide-right {
    from {
        opacity: 0;
        transform: translateX(55px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Glow Pulse Effect */
@keyframes atm-glow-pulse {
    0%, 100% {
        box-shadow: 0 0 24px rgba(0, 212, 255, 0.25);
    }
    50% {
        box-shadow: 0 0 45px rgba(0, 212, 255, 0.45);
    }
}

/* Floating Animation */
@keyframes atm-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

/* Aurora Wave Animation */
@keyframes atm-aurora-wave {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* ========================================
   Animation Utility Classes
   ======================================== */

/* Scroll Reveal Effect */
.atm-reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.7s cubic-bezier(0.19, 1, 0.32, 1), 
                transform 0.7s cubic-bezier(0.19, 1, 0.32, 1);
}

.atm-reveal.atm-active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Reveal Animation */
.atm-reveal-stagger > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.19, 1, 0.32, 1), 
                transform 0.6s cubic-bezier(0.19, 1, 0.32, 1);
}

.atm-reveal-stagger.atm-active > *:nth-child(1) { transition-delay: 0.12s; }
.atm-reveal-stagger.atm-active > *:nth-child(2) { transition-delay: 0.18s; }
.atm-reveal-stagger.atm-active > *:nth-child(3) { transition-delay: 0.24s; }
.atm-reveal-stagger.atm-active > *:nth-child(4) { transition-delay: 0.3s; }
.atm-reveal-stagger.atm-active > *:nth-child(5) { transition-delay: 0.36s; }
.atm-reveal-stagger.atm-active > *:nth-child(6) { transition-delay: 0.42s; }

.atm-reveal-stagger.atm-active > * {
    opacity: 1;
    transform: translateY(0);
}

/* Hover Animation Classes */
.atm-hover-lift {
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.32, 1);
}

.atm-hover-lift:hover {
    transform: translateY(-10px);
}

.atm-hover-glow {
    transition: box-shadow 0.4s cubic-bezier(0.19, 1, 0.32, 1);
}

.atm-hover-glow:hover {
    box-shadow: 0 0 35px rgba(0, 212, 255, 0.35);
}

.atm-hover-scale {
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.32, 1);
}

.atm-hover-scale:hover {
    transform: scale(1.04);
}

/* Continuous Animation Classes */
.atm-animate-float {
    animation: atm-float 4.5s ease-in-out infinite;
}

.atm-animate-pulse {
    animation: atm-glow-pulse 2.8s ease-in-out infinite;
}

.atm-animate-aurora {
    background-size: 220% 220%;
    animation: atm-aurora-wave 9s ease infinite;
}

/* Animation Delay Utilities */
.atm-delay-100 { animation-delay: 0.1s; }
.atm-delay-200 { animation-delay: 0.2s; }
.atm-delay-300 { animation-delay: 0.3s; }
.atm-delay-400 { animation-delay: 0.4s; }
.atm-delay-500 { animation-delay: 0.5s; }
.atm-delay-600 { animation-delay: 0.6s; }

/* ========================================
   Mobile Menu Animations
   ======================================== */
.atm-nav-menu.atm-mobile-active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 78px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(9, 13, 25, 0.98);
    padding: 46px 28px;
    gap: 24px;
    animation: atm-fade-in 0.35s ease;
    z-index: 99;
}

.atm-burger.atm-active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.atm-burger.atm-active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-12px);
}

.atm-burger.atm-active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ========================================
   Page Load Animations
   ======================================== */
.atm-page-loaded .atm-hero-content {
    animation: atm-slide-up 0.9s cubic-bezier(0.19, 1, 0.32, 1) forwards;
}

.atm-page-loaded .atm-hero-tag {
    animation: atm-fade-in 0.7s ease forwards;
}

/* ========================================
   Entrance Animations
   ======================================== */
.atm-entrance-fade {
    animation: atm-fade-in 0.8s ease;
}

.atm-entrance-slide-up {
    animation: atm-slide-up 0.8s cubic-bezier(0.19, 1, 0.32, 1);
}

.atm-entrance-zoom {
    animation: atm-zoom-in 0.8s cubic-bezier(0.19, 1, 0.32, 1);
}

.atm-entrance-slide-left {
    animation: atm-slide-left 0.8s cubic-bezier(0.19, 1, 0.32, 1);
}

.atm-entrance-slide-right {
    animation: atm-slide-right 0.8s cubic-bezier(0.19, 1, 0.32, 1);
}

/* ========================================
   Loading Spinner
   ======================================== */
@keyframes atm-spinner {
    to {
        transform: rotate(360deg);
    }
}

.atm-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 212, 255, 0.15);
    border-top-color: var(--atm-azure);
    border-radius: 50%;
    animation: atm-spinner 0.8s linear infinite;
}

/* ========================================
   Ripple Effect
   ======================================== */
@keyframes atm-ripple {
    0% {
        transform: scale(0);
        opacity: 0.6;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

.atm-ripple-effect {
    position: relative;
    overflow: hidden;
}

.atm-ripple-effect::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 212, 255, 0.5);
    border-radius: 50%;
    transform: scale(0);
    opacity: 0;
}

.atm-ripple-effect:active::after {
    animation: atm-ripple 0.6s ease-out;
}

/* ========================================
   Text Typing Effect
   ======================================== */
@keyframes atm-typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes atm-blink {
    50% {
        border-color: transparent;
    }
}

.atm-typing-text {
    overflow: hidden;
    border-right: 2px solid var(--atm-azure);
    white-space: nowrap;
    animation: 
        atm-typing 3.5s steps(40, end),
        atm-blink 0.75s step-end infinite;
}

/* ========================================
   Parallax Scroll Effect
   ======================================== */
.atm-parallax {
    transition: transform 0.3s ease-out;
}

/* ========================================
   Shake Animation
   ======================================== */
@keyframes atm-shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

.atm-shake {
    animation: atm-shake 0.6s ease;
}

/* ========================================
   Bounce Animation
   ======================================== */
@keyframes atm-bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

.atm-bounce {
    animation: atm-bounce 1.2s ease;
}

/* ========================================
   Progress Bar Animation
   ======================================== */
@keyframes atm-progress {
    from {
        width: 0%;
    }
    to {
        width: 100%;
    }
}

.atm-progress-bar {
    height: 4px;
    background: var(--atm-gradient-neon);
    border-radius: 10px;
    animation: atm-progress 2s ease-in-out;
}

/* ========================================
   Reduced Motion Support
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    .atm-reveal,
    .atm-reveal-stagger > *,
    .atm-hover-lift,
    .atm-hover-glow,
    .atm-hover-scale,
    .atm-animate-float,
    .atm-animate-pulse,
    .atm-animate-aurora {
        animation: none !important;
        transition: none !important;
    }
    
    .atm-reveal {
        opacity: 1;
        transform: none;
    }
    
    .atm-reveal-stagger > * {
        opacity: 1;
        transform: none;
    }
    
    @keyframes atm-orbit-rotate {
        to { transform: translate(-50%, -50%) rotate(0deg); }
    }
    
    @keyframes atm-ring-spin {
        to { transform: translate(-50%, -50%) rotateX(72deg) rotateZ(0deg); }
    }
}

