/* ========================================
   ENHANCED ANIMATIONS - Subtle & Pleasant
   Более мягкие и приятные глазу анимации
   ======================================== */

/* Floating particles animation - более плавная */
@keyframes floatParticles {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.2;
    }
    25% {
        transform: translate(8px, -15px) rotate(45deg);
        opacity: 0.4;
    }
    50% {
        transform: translate(-10px, -30px) rotate(90deg);
        opacity: 0.6;
    }
    75% {
        transform: translate(15px, -45px) rotate(135deg);
        opacity: 0.4;
    }
}

/* Glowing text animation - более мягкое */
@keyframes glowText {
    0%, 100% {
        text-shadow: 0 0 5px rgba(255, 215, 0, 0.3),
                     0 0 10px rgba(255, 215, 0, 0.2);
    }
    50% {
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.5),
                     0 0 20px rgba(255, 215, 0, 0.3),
                     0 0 30px rgba(255, 215, 0, 0.2);
    }
}

/* Shake animation - более мягкая */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-2px); }
    20%, 40%, 60%, 80% { transform: translateX(2px); }
}

/* Wave animation - более плавная */
@keyframes wave {
    0%, 100% { transform: translateY(0) scaleY(1); }
    50% { transform: translateY(-8px) scaleY(1.05); }
}

/* Spin in animation - более медленная */
@keyframes spinIn {
    from {
        opacity: 0;
        transform: rotate(-180deg) scale(0.5);
    }
    to {
        opacity: 1;
        transform: rotate(0) scale(1);
    }
}

/* Neon glow - более мягкое */
@keyframes neonGlow {
    0%, 100% {
        filter: drop-shadow(0 0 3px #ffd700)
                drop-shadow(0 0 6px #ffd700);
    }
    50% {
        filter: drop-shadow(0 0 6px #ffd700)
                drop-shadow(0 0 12px #ffd700)
                drop-shadow(0 0 18px #ffd700);
    }
}

/* Heartbeat - более мягкая */
@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    10%, 30% { transform: scale(0.95); }
    20%, 40% { transform: scale(1.05); }
}

/* Flip animation - более медленная */
@keyframes flip {
    0% { transform: perspective(400px) rotateY(0); }
    100% { transform: perspective(400px) rotateY(180deg); }
}

/* Elastic bounce - более мягкая */
@keyframes elasticBounce {
    0%, 100% { transform: translateY(0) scaleY(1); }
    30% { transform: translateY(-15px) scaleY(1.1); }
    50% { transform: translateY(-8px) scaleY(0.95); }
    70% { transform: translateY(-3px) scaleY(1.02); }
}

/* Zoom pulse - более мягкая */
@keyframes zoomPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

/* Gradient shift - более медленная */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Swing animation - более мягкая */
@keyframes swing {
    0%, 100% { transform: rotate(0deg); }
    20% { transform: rotate(8deg); }
    40% { transform: rotate(-6deg); }
    60% { transform: rotate(3deg); }
    80% { transform: rotate(-2deg); }
}

/* Slide and fade - более плавная */
@keyframes slideAndFade {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Attention seeker - rubber band - более мягкая */
@keyframes rubberBand {
    0%, 100% { transform: scale(1); }
    30% { transform: scaleX(1.15) scaleY(0.85); }
    40% { transform: scaleX(0.85) scaleY(1.15); }
    50% { transform: scaleX(1.08) scaleY(0.92); }
    65% { transform: scaleX(0.97) scaleY(1.03); }
    75% { transform: scaleX(1.02) scaleY(0.98); }
}

/* Jello animation - более мягкая */
@keyframes jello {
    0%, 100% { transform: skewX(0deg) skewY(0deg); }
    30% { transform: skewX(12deg) skewY(12deg); }
    40% { transform: skewX(-8deg) skewY(-8deg); }
    50% { transform: skewX(8deg) skewY(8deg); }
    65% { transform: skewX(-3deg) skewY(-3deg); }
    75% { transform: skewX(3deg) skewY(3deg); }
}

/* Wobble - более мягкая */
@keyframes wobble {
    0%, 100% { transform: translateX(0); }
    15% { transform: translateX(-15px) rotate(-3deg); }
    30% { transform: translateX(12px) rotate(2deg); }
    45% { transform: translateX(-8px) rotate(-2deg); }
    60% { transform: translateX(5px) rotate(1deg); }
    75% { transform: translateX(-3px) rotate(-1deg); }
}

/* Lightning effect - более редкая */
@keyframes lightning {
    0%, 95%, 100% { opacity: 0; }
    96%, 98% { opacity: 1; }
    97%, 99% { opacity: 0.5; }
}

/* Color wave - более мягкая */
@keyframes colorWave {
    0% { color: #ffd700; }
    25% { color: #ffe34d; }
    50% { color: #ffeb99; }
    75% { color: #ffe34d; }
    100% { color: #ffd700; }
}

/* Apply subtle animations to elements */

/* Hero section enhancements - более мягкие */
.hero-particles {
    background-image: 
        radial-gradient(2px 2px at 20% 30%, rgba(255, 215, 0, 0.4), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(255, 215, 0, 0.4), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(255, 215, 0, 0.3), transparent),
        radial-gradient(1px 1px at 80% 10%, rgba(255, 215, 0, 0.3), transparent),
        radial-gradient(2px 2px at 90% 60%, rgba(255, 215, 0, 0.4), transparent),
        radial-gradient(1px 1px at 30% 80%, rgba(255, 215, 0, 0.2), transparent),
        radial-gradient(1px 1px at 70% 20%, rgba(255, 215, 0, 0.2), transparent);
    background-size: 200% 200%;
    animation: floatParticles 25s ease-in-out infinite, gradientShift 20s ease infinite;
}

/* Animated gradient text - более мягкая */
.gradient-text {
    background: linear-gradient(
        90deg,
        #ffd700 0%,
        #ffe34d 25%,
        #ffeb99 50%,
        #ffe34d 75%,
        #ffd700 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease-in-out infinite, glowText 3s ease-in-out infinite;
}

/* Hero title animation - более мягкая */
.hero-title {
    animation: slideAndFade 1.2s ease-out, glowText 4s ease-in-out infinite 1.5s;
}

/* Logo pulse animation - более мягкая */
.logo-icon {
    animation: zoomPulse 3s ease-in-out infinite;
}

/* Operator badge animations - менее активные */
.operator-badge {
    animation: elasticBounce 3s ease-in-out infinite;
}

.operator-badge.hot {
    animation: elasticBounce 3s ease-in-out infinite;
}

.operator-badge.new {
    animation: zoomPulse 3s ease-in-out infinite;
}

/* Operator card hover enhancement - более плавная */
.operator-card {
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.operator-card:hover {
    transform: translateY(-12px) scale(1.01);
    box-shadow: 
        0 20px 40px -12px rgba(0, 0, 0, 0.2),
        0 0 20px rgba(255, 215, 0, 0.2);
}

/* Category icon animations - более мягкие */
.category-icon {
    animation: float 4s ease-in-out infinite;
    transition: all 0.4s ease;
}

.category-card:hover .category-icon {
    animation: zoomPulse 1.5s ease-in-out;
}

/* Feature card animations - более мягкие */
.feature-icon-wrapper {
    animation: float 5s ease-in-out infinite;
    transition: all 0.5s ease;
}

.feature-card:hover .feature-icon-wrapper {
    animation: zoomPulse 1.5s ease-in-out;
}

/* Button enhancements - более мягкие */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-primary::before {
    animation: shimmer 3s linear infinite;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.8s, height 0.8s;
}

.btn-primary:hover::after {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 
        0 15px 20px -5px rgba(0, 0, 0, 0.15),
        0 0 20px rgba(255, 215, 0, 0.3);
}

.btn-primary:active {
    transform: translateY(0) scale(1);
}

/* Stars animation - более мягкая */
.stars i {
    display: inline-block;
    animation: wave 3s ease-in-out infinite;
}

.stars i:nth-child(1) { animation-delay: 0s; }
.stars i:nth-child(2) { animation-delay: 0.15s; }
.stars i:nth-child(3) { animation-delay: 0.3s; }
.stars i:nth-child(4) { animation-delay: 0.45s; }
.stars i:nth-child(5) { animation-delay: 0.6s; }

/* Age badge animation - более мягкая */
.age-badge {
    animation: zoomPulse 3s ease-in-out infinite;
}

.age-modal-icon {
    animation: zoomPulse 2s ease-in-out infinite;
}

.age-warning .age-logo {
    animation: elasticBounce 3s ease-in-out infinite;
}

/* Warning icon animation - более мягкая */
.warning-icon {
    animation: zoomPulse 4s ease-in-out infinite;
}

/* Cookie icon animation - более мягкая */
.cookie-icon {
    animation: rotate 8s linear infinite;
}

/* Regulator logos animation - более мягкая */
.regulator-logo {
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.regulator-logo:hover {
    transform: translateY(-6px) scale(1.05);
    box-shadow: 
        0 12px 24px -8px rgba(0, 0, 0, 0.2),
        0 0 15px rgba(255, 215, 0, 0.25);
}

.regulator-logo img {
    transition: all 0.4s ease;
}

.regulator-logo:hover img {
    filter: grayscale(0%) brightness(1.05);
}

/* Bonus amount animation - более мягкая */
.bonus-amount {
    animation: glowText 3s ease-in-out infinite, colorWave 4s ease-in-out infinite;
}

.bonus-amount-large {
    animation: glowText 3s ease-in-out infinite, zoomPulse 3s ease-in-out infinite;
}

/* Social icons animation - более мягкая */
.social-icon,
.social-link {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-icon:hover,
.social-link:hover {
    transform: translateY(-4px) scale(1.05);
}

/* Nav link animation - более мягкая */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 215, 0, 0.08);
    border-radius: var(--radius-lg);
    transform: scale(0);
    transition: transform 0.3s ease;
}

.nav-link:hover::before {
    transform: scale(1);
}

/* Feature tag animation - более мягкая */
.feature-tag {
    transition: all 0.3s ease;
}

.feature-tag:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 6px rgba(255, 215, 0, 0.2);
}

/* Category card hover animation - более мягкая */
.category-card {
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.category-card:hover {
    transform: translateY(-8px);
}

/* Bonus card animation - более мягкая */
.bonus-card {
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bonus-card:hover {
    transform: translateY(-10px);
    box-shadow: 
        0 20px 40px -12px rgba(0, 0, 0, 0.2),
        0 0 20px rgba(255, 215, 0, 0.2);
}

/* Hero scroll animation - более мягкая */
.hero-scroll {
    animation: elasticBounce 3s ease-in-out infinite;
}

/* Loading states - более мягкая */
.loading {
    animation: zoomPulse 2s ease-in-out infinite;
}

/* Attention grabber for CTAs - более мягкая */
.attention-grabber {
    animation: zoomPulse 3s ease-in-out infinite;
}

/* Sparkle effect - отключаем для меньшей навязчивости */
.sparkle {
    position: relative;
}

/* Убираем sparkle эффект - слишком навязчиво */
.sparkle::before,
.sparkle::after {
    display: none;
}

/* Hover lift effect - более мягкая */
.hover-lift {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hover-lift:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.2);
}

/* Magnetic button effect - более мягкая */
.magnetic-btn {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.magnetic-btn:hover {
    transform: scale(1.03);
}

/* Pulse glow - более мягкая */
.pulse-glow {
    animation: none; /* Отключаем постоянное свечение */
}

.pulse-glow:hover {
    animation: neonGlow 2s ease-in-out;
}

/* 3D card flip effect - более мягкая */
.card-3d {
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-3d:hover {
    transform: rotateY(2deg) rotateX(2deg);
}

/* Continuous animations for background elements - более медленные */
.animated-bg {
    background: linear-gradient(
        45deg,
        var(--color-primary) 0%,
        var(--color-primary-light) 25%,
        var(--color-primary) 50%,
        var(--color-primary-light) 75%,
        var(--color-primary) 100%
    );
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

/* Fade in elements on scroll - stagger effect - более медленные */
.fade-in-stagger:nth-child(1) { animation-delay: 0.15s; }
.fade-in-stagger:nth-child(2) { animation-delay: 0.3s; }
.fade-in-stagger:nth-child(3) { animation-delay: 0.45s; }
.fade-in-stagger:nth-child(4) { animation-delay: 0.6s; }
.fade-in-stagger:nth-child(5) { animation-delay: 0.75s; }
.fade-in-stagger:nth-child(6) { animation-delay: 0.9s; }