/* ============================================
   ALATAU TRACK — Анимации и эффекты
   Обновлено для светлой темы (Geotab)
   ============================================ */

/* ---- Пульсирующий GPS-маркер ---- */
@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }

    100% {
        transform: translate(-50%, -50%) scale(3);
        opacity: 0;
    }
}

/* ---- Fade In снизу ---- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* ---- Fade In слева ---- */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

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

/* ---- Fade In справа ---- */
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

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

/* ---- Scale In ---- */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

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

/* ---- Плавное мерцание (синий, под Geotab) ---- */
@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(27, 106, 201, 0.2);
    }

    50% {
        box-shadow: 0 0 25px rgba(27, 106, 201, 0.4);
    }
}

/* ---- Анимированные классы для Intersection Observer ---- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animate-left {
    transform: translateX(-30px);
}

.animate-on-scroll.animate-right {
    transform: translateX(30px);
}

.animate-on-scroll.animate-scale {
    transform: scale(0.9);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* Задержки для каскадных анимаций */
.animate-delay-1 {
    transition-delay: 0.1s;
}

.animate-delay-2 {
    transition-delay: 0.2s;
}

.animate-delay-3 {
    transition-delay: 0.3s;
}

.animate-delay-4 {
    transition-delay: 0.4s;
}

.animate-delay-5 {
    transition-delay: 0.5s;
}

/* ---- Hero-анимации ---- */
.hero-content {
    animation: fadeInUp 0.8s ease forwards;
}

.hero-visual {
    animation: fadeInRight 1s ease 0.3s forwards;
    opacity: 0;
}

.hero-badge {
    animation: fadeInUp 0.6s ease 0.2s forwards;
    opacity: 0;
}

.hero-partners {
    animation: fadeInUp 0.8s ease 0.6s forwards;
    opacity: 0;
}

/* ---- GPS-маркеры — каскадная задержка ---- */
.gps-marker:nth-child(1) .gps-marker-pulse {
    animation-delay: 0s;
}

.gps-marker:nth-child(2) .gps-marker-pulse {
    animation-delay: 0.5s;
}

.gps-marker:nth-child(3) .gps-marker-pulse {
    animation-delay: 1s;
}

.gps-marker:nth-child(4) .gps-marker-pulse {
    animation-delay: 1.5s;
}

/* ---- Частицы hero (скрыты на светлой теме) ---- */
.hero-particles {
    display: none;
}

.particle {
    display: none;
}

/* ---- Respect prefers-reduced-motion ---- */
@media (prefers-reduced-motion: reduce) {
    .animate-on-scroll {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .hero-content,
    .hero-visual,
    .hero-badge,
    .hero-partners {
        animation: none;
        opacity: 1;
    }

    .gps-marker-pulse {
        animation: none;
    }

    html {
        scroll-behavior: auto;
    }
}