/* Animation styles for Call Center Landing */

/* Floating Head Animation */
@keyframes floatHead {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.8;
    }

    10% {
        transform: translate(100px, -50px) rotate(10deg);
        opacity: 1;
    }

    20% {
        transform: translate(200px, 50px) rotate(-5deg);
        opacity: 0.9;
    }

    30% {
        transform: translate(300px, -30px) rotate(15deg);
        opacity: 1;
    }

    40% {
        transform: translate(400px, 80px) rotate(-10deg);
        opacity: 0.8;
    }

    50% {
        transform: translate(500px, -20px) rotate(5deg);
        opacity: 1;
    }

    60% {
        transform: translate(400px, -60px) rotate(-15deg);
        opacity: 0.9;
    }

    70% {
        transform: translate(300px, 40px) rotate(10deg);
        opacity: 1;
    }

    80% {
        transform: translate(200px, -40px) rotate(-5deg);
        opacity: 0.8;
    }

    90% {
        transform: translate(100px, 60px) rotate(12deg);
        opacity: 1;
    }

    100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.8;
    }
}

.animate-float-head {
    animation: floatHead 25s ease-in-out infinite;
    animation-delay: 1s;
}

.floating-head {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: all 0.5s ease;
}

.floating-head:hover {
    transform: scale(1.05);
    opacity: 0.3 !important;
}

/* Новая анимация для курсирования между карточками */
@keyframes floatHeadGrid {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.12;
    }

    11% {
        transform: translate(280px, 0) rotate(10deg);
        opacity: 0.18;
    }

    22% {
        transform: translate(560px, 0) rotate(-5deg);
        opacity: 0.12;
    }

    33% {
        transform: translate(0, 200px) rotate(15deg);
        opacity: 0.18;
    }

    44% {
        transform: translate(280px, 200px) rotate(-10deg);
        opacity: 0.12;
    }

    55% {
        transform: translate(560px, 200px) rotate(5deg);
        opacity: 0.18;
    }

    66% {
        transform: translate(0, 400px) rotate(-15deg);
        opacity: 0.12;
    }

    77% {
        transform: translate(280px, 400px) rotate(10deg);
        opacity: 0.18;
    }

    88% {
        transform: translate(560px, 400px) rotate(-5deg);
        opacity: 0.12;
    }

    100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.12;
    }
}

.animate-float-head {
    animation: floatHeadGrid 30s ease-in-out infinite;
    animation-delay: 1s;
}

/* Анимация для наушников в секции "Почему мы?" */
@keyframes floatHeadphonesGrid {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.12;
    }

    11% {
        transform: translate(280px, 0) rotate(10deg);
        opacity: 0.18;
    }

    22% {
        transform: translate(560px, 0) rotate(-5deg);
        opacity: 0.12;
    }

    33% {
        transform: translate(0, 200px) rotate(15deg);
        opacity: 0.18;
    }

    44% {
        transform: translate(280px, 200px) rotate(-10deg);
        opacity: 0.12;
    }

    55% {
        transform: translate(560px, 200px) rotate(5deg);
        opacity: 0.18;
    }

    66% {
        transform: translate(0, 400px) rotate(-15deg);
        opacity: 0.12;
    }

    77% {
        transform: translate(280px, 400px) rotate(10deg);
        opacity: 0.18;
    }

    88% {
        transform: translate(560px, 400px) rotate(-5deg);
        opacity: 0.12;
    }

    100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.12;
    }
}

.animate-float-headphones {
    animation: floatHeadphonesGrid 35s ease-in-out infinite;
    animation-delay: 2s;
}

/* Particle animations from fran */
.particle {
    position: absolute;
    background: rgba(16, 183, 125, 0.6);
    border-radius: 50%;
    animation: particle-float 8s infinite linear;
}

@keyframes particle-float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Enhanced floating element animations */
.floating-element {
    position: absolute;
    border-radius: 50%;
    animation: floating-float 8s ease-in-out infinite;
}

/* Remove focus outline from navigation */
.nav-link:focus,
.nav-link:active,
button:focus,
button:active,
a:focus,
a:active {
    outline: none !important;
    box-shadow: none !important;
}

/* Remove default button focus styles */
.btn-enhanced:focus,
.btn-enhanced:active {
    outline: none !important;
    box-shadow: none !important;
}

/* Text balance for better line breaks */
.text-balance {
    text-wrap: balance;
    word-break: break-word;
    hyphens: auto;
}

@keyframes floating-float {

    0%,
    100% {
        transform: translateY(0px) translateX(0px) scale(1);
        opacity: 0.4;
    }

    25% {
        transform: translateY(-20px) translateX(15px) scale(1.1);
        opacity: 0.8;
    }

    50% {
        transform: translateY(-35px) translateX(-10px) scale(1.2);
        opacity: 1;
    }

    75% {
        transform: translateY(-15px) translateX(20px) scale(1.05);
        opacity: 0.6;
    }
}

/* Keyframe animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes bounce {

    0%,
    20%,
    80%,
    53%,
    80%,
    100% {
        transform: translateY(0);
    }

    40%,
    43% {
        transform: translateY(-30px);
    }

    70% {
        transform: translateY(-15px);
    }

    90% {
        transform: translateY(-4px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }

    100% {
        background-position: calc(200px + 100%) 0;
    }
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(212, 175, 55, 0.5);
    }

    50% {
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.8), 0 0 30px rgba(212, 175, 55, 0.6);
    }
}

/* Animation classes */
.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.6s ease-out;
}

.animate-fade-in-right {
    animation: fadeInRight 0.6s ease-out;
}

.animate-scale-in {
    animation: scaleIn 0.5s ease-out;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-pulse-slow {
    animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-bounce-slow {
    animation: bounce 2s infinite;
}

.animate-shimmer {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    background-size: 200px 100%;
    animation: shimmer 2s infinite;
}

.animate-glow {
    animation: glow 2s ease-in-out infinite alternate;
}

/* Hover animations */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

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

.hover-rotate:hover {
    transform: rotate(5deg);
}

.hover-glow {
    transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
}

/* Staggered animations */
.stagger-1 {
    animation-delay: 0.1s;
}

.stagger-2 {
    animation-delay: 0.2s;
}

.stagger-3 {
    animation-delay: 0.3s;
}

.stagger-4 {
    animation-delay: 0.4s;
}

.stagger-5 {
    animation-delay: 0.5s;
}

.stagger-6 {
    animation-delay: 0.6s;
}

/* Scroll-triggered animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.scroll-reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

.scroll-reveal-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* Loading animations */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(212, 175, 55, 0.3);
    border-top: 4px solid #d4af37;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Text animations */
.text-shimmer {
    background: linear-gradient(90deg, #d4af37, #f4d03f, #d4af37);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
}

.text-typing {
    overflow: hidden;
    border-right: 2px solid #d4af37;
    white-space: nowrap;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent;
    }

    50% {
        border-color: #d4af37;
    }
}

/* Particle animations */
.particle {
    position: absolute;
    background: rgba(212, 175, 55, 0.6);
    border-radius: 50%;
    animation: particle-float 8s infinite linear;
}

@keyframes particle-float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Responsive animations */
@media (max-width: 768px) {
    .scroll-reveal {
        transform: translateY(30px);
    }

    .scroll-reveal-left,
    .scroll-reveal-right {
        transform: translateY(30px);
    }

    .hover-lift:hover {
        transform: translateY(-4px);
    }
}