/* =========================================================
   KUTAISI CARGO
   ANIMATIONS STYLESHEET
   ========================================================= */

/* =========================================================
   BASIC KEYFRAMES
   ========================================================= */

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(34px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeLeft {
  from {
    opacity: 0;
    transform: translateX(34px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeRight {
  from {
    opacity: 0;
    transform: translateX(-34px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes softFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes softFloatSmall {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 122, 0, 0.24);
  }

  50% {
    box-shadow: 0 0 0 12px rgba(255, 122, 0, 0);
  }
}

@keyframes greenPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(31, 191, 117, 0.26);
  }

  50% {
    box-shadow: 0 0 0 10px rgba(31, 191, 117, 0);
  }
}

@keyframes rotateSlow {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes roadMove {
  from {
    background-position-x: 0;
  }

  to {
    background-position-x: 88px;
  }
}

@keyframes routeMove {
  from {
    left: 12%;
  }

  to {
    left: 88%;
  }
}

@keyframes progressLoading {
  0% {
    transform: translateX(-110%);
  }

  100% {
    transform: translateX(240%);
  }
}

@keyframes loaderTruckDrive {
  0% {
    left: -10%;
    transform: translateY(0);
  }

  45% {
    transform: translateY(-2px);
  }

  100% {
    left: 92%;
    transform: translateY(0);
  }
}

@keyframes loaderBounce {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }
}

@keyframes truckStageFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }

  50% {
    transform: translateY(-9px) rotate(1deg);
  }
}

@keyframes speedLineMove {
  0% {
    opacity: 0;
    transform: translateX(-35px);
  }

  35% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateX(45px);
  }
}

@keyframes mapTruckDrive {
  0% {
    transform: translate(-90px, 18px) rotate(-5deg);
  }

  50% {
    transform: translate(-15px, -20px) rotate(4deg);
  }

  100% {
    transform: translate(55px, 15px) rotate(-3deg);
  }
}

@keyframes buttonArrowMove {
  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(5px);
  }
}

@keyframes scrollArrow {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.45;
  }

  50% {
    transform: translateY(7px);
    opacity: 1;
  }
}

@keyframes cookieEnter {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes notificationEnter {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes notificationLeave {
  from {
    opacity: 1;
    transform: translateX(0);
  }

  to {
    opacity: 0;
    transform: translateX(30px);
  }
}

/* =========================================================
   PAGE LOADER
   ========================================================= */

.loader-truck {
  animation:
    loaderTruckDrive 2.1s ease-in-out infinite,
    loaderBounce 0.45s ease-in-out infinite;
}

.loader-road-line {
  animation: roadMove 1.2s linear infinite;
}

.loader-progress span {
  animation: progressLoading 1.4s ease-in-out infinite;
}

.loader-logo-mark {
  animation: softFloatSmall 2.4s ease-in-out infinite;
}

/* =========================================================
   HEADER
   ========================================================= */

.site-header {
  animation: fadeDown 0.7s ease both;
}

.top-bar {
  animation: fadeDown 0.55s ease both;
}

.brand-logo-glow {
  animation: pulseGlow 2.4s ease-in-out infinite;
}

.status-dot,
.hero-visual-status-dot {
  animation: greenPulse 2s ease-in-out infinite;
}

/* =========================================================
   HERO
   ========================================================= */

.hero-glow-orange {
  animation: softFloat 7s ease-in-out infinite;
}

.hero-glow-blue {
  animation: softFloat 8.5s ease-in-out infinite reverse;
}

.hero-orbit-one {
  animation: rotateSlow 34s linear infinite;
}

.hero-orbit-two {
  animation: rotateSlow 22s linear infinite reverse;
}

.hero-road-line {
  animation: roadMove 1.8s linear infinite;
}

.hero-road-light {
  animation: speedLineMove 2.8s ease-in-out infinite;
}

.hero-road-light-two {
  animation-delay: 0.6s;
}

.hero-road-light-three {
  animation-delay: 1.2s;
}

.hero-truck-placeholder {
  animation: truckStageFloat 4s ease-in-out infinite;
}

.hero-speed-line {
  animation: speedLineMove 1.8s ease-in-out infinite;
}

.hero-speed-line-two {
  animation-delay: 0.35s;
}

.hero-speed-line-three {
  animation-delay: 0.7s;
}

.route-progress-truck {
  animation: routeMove 4.8s ease-in-out infinite alternate;
}

.hero-scroll-indicator i {
  animation: scrollArrow 1.7s ease-in-out infinite;
}

.floating-card-rating {
  animation: softFloat 4.2s ease-in-out infinite;
}

.floating-card-delivery {
  animation: softFloat 4.8s ease-in-out infinite reverse;
}

.floating-card-support {
  animation: softFloat 5.2s ease-in-out infinite;
}

/* =========================================================
   INTERSECTION REVEALS
   ========================================================= */

[data-reveal] {
  opacity: 0;
  will-change: opacity, transform;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.reveal-up {
  transform: translateY(34px);
  transition:
    opacity 0.75s ease,
    transform 0.75s cubic-bezier(0.2, 0.65, 0.3, 1);
}

.reveal-scale {
  transform: scale(0.93);
  transition:
    opacity 0.78s ease,
    transform 0.78s cubic-bezier(0.2, 0.65, 0.3, 1);
}

.reveal-left {
  transform: translateX(34px);
  transition:
    opacity 0.75s ease,
    transform 0.75s cubic-bezier(0.2, 0.65, 0.3, 1);
}

.reveal-right {
  transform: translateX(-34px);
  transition:
    opacity 0.75s ease,
    transform 0.75s cubic-bezier(0.2, 0.65, 0.3, 1);
}

[data-reveal]:nth-child(2) {
  transition-delay: 0.06s;
}

[data-reveal]:nth-child(3) {
  transition-delay: 0.12s;
}

[data-reveal]:nth-child(4) {
  transition-delay: 0.18s;
}

[data-reveal]:nth-child(5) {
  transition-delay: 0.24s;
}

[data-reveal]:nth-child(6) {
  transition-delay: 0.3s;
}

/* =========================================================
   CARDS
   ========================================================= */

.service-card:hover .service-card-icon,
.offer-card:hover .offer-icon,
.process-card:hover .process-card-icon,
.work-card:hover .work-card-placeholder-icon {
  animation: softFloatSmall 1.2s ease-in-out infinite;
}

.service-card-link:hover i,
.text-link:hover i,
.work-card-content > a:hover i,
.contact-list-item:hover > i,
.final-cta-actions .btn:hover i,
.offer-card .btn:hover i {
  animation: buttonArrowMove 0.85s ease-in-out infinite;
}

.cargo-type-option input:checked + .cargo-type-card,
.additional-service-option input:checked + .additional-service-card,
.payment-method-option input:checked + span {
  animation: scaleIn 0.25s ease both;
}

/* =========================================================
   CALCULATOR
   ========================================================= */

.calculator-result-panel.result-updated {
  animation: scaleIn 0.35s ease both;
}

.calculator-result-price.price-updated {
  animation: fadeUp 0.4s ease both;
}

.calculator-submit-button.is-calculating {
  pointer-events: none;
  opacity: 0.8;
}

.calculator-submit-button.is-calculating .btn-icon {
  animation: rotateSlow 0.9s linear infinite;
}

/* =========================================================
   BOOKING
   ========================================================= */

.file-preview-item {
  animation: scaleIn 0.3s ease both;
}

.booking-panel.form-success {
  animation: pulseGlow 1.2s ease-in-out;
}

/* =========================================================
   MAP
   ========================================================= */

.map-location-pin {
  animation: softFloatSmall 2.2s ease-in-out infinite;
}

.map-truck-marker {
  animation: mapTruckDrive 5.5s ease-in-out infinite alternate;
}

.map-route {
  animation: roadMove 2s linear infinite;
}

/* =========================================================
   FLOATING BUTTONS
   ========================================================= */

.floating-phone-button {
  animation: pulseGlow 2.8s ease-in-out infinite;
}

.floating-whatsapp-button {
  animation: greenPulse 2.6s ease-in-out infinite;
}

/* =========================================================
   COOKIE AND NOTIFICATION
   ========================================================= */

.cookie-banner:not([hidden]) {
  animation: cookieEnter 0.45s ease both;
}

.global-notification:not([hidden]) {
  animation: notificationEnter 0.35s ease both;
}

.global-notification.notification-leaving {
  animation: notificationLeave 0.3s ease both;
}

/* =========================================================
   FAQ
   ========================================================= */

.faq-item.open {
  animation: scaleIn 0.25s ease both;
}

/* =========================================================
   COUNTERS
   ========================================================= */

.stat-number.counter-active {
  animation: fadeUp 0.55s ease both;
}

/* =========================================================
   HOVER MICRO-INTERACTIONS
   ========================================================= */

.btn:hover .btn-icon {
  transform: rotate(-4deg) scale(1.05);
}

.btn-icon {
  transition:
    transform var(--transition-fast),
    background var(--transition-fast);
}

.hero-price-button:hover i,
.round-link:hover i {
  animation: buttonArrowMove 0.8s ease-in-out infinite;
}

.mobile-menu-button:hover span:nth-child(1) {
  transform: translateX(3px);
}

.mobile-menu-button:hover span:nth-child(3) {
  transform: translateX(-3px);
}

/* =========================================================
   MOBILE MENU ANIMATION
   ========================================================= */

.mobile-navigation.open .mobile-nav-links a {
  animation: fadeRight 0.45s ease both;
}

.mobile-navigation.open .mobile-nav-links a:nth-child(1) {
  animation-delay: 0.05s;
}

.mobile-navigation.open .mobile-nav-links a:nth-child(2) {
  animation-delay: 0.09s;
}

.mobile-navigation.open .mobile-nav-links a:nth-child(3) {
  animation-delay: 0.13s;
}

.mobile-navigation.open .mobile-nav-links a:nth-child(4) {
  animation-delay: 0.17s;
}

.mobile-navigation.open .mobile-nav-links a:nth-child(5) {
  animation-delay: 0.21s;
}

.mobile-navigation.open .mobile-nav-links a:nth-child(6) {
  animation-delay: 0.25s;
}

.mobile-navigation.open .mobile-nav-links a:nth-child(7) {
  animation-delay: 0.29s;
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .loader-truck,
  .loader-road-line,
  .loader-progress span,
  .loader-logo-mark,
  .hero-glow-orange,
  .hero-glow-blue,
  .hero-orbit-one,
  .hero-orbit-two,
  .hero-road-line,
  .hero-road-light,
  .hero-truck-placeholder,
  .hero-speed-line,
  .route-progress-truck,
  .hero-scroll-indicator i,
  .floating-card,
  .status-dot,
  .hero-visual-status-dot,
  .brand-logo-glow,
  .map-location-pin,
  .map-truck-marker,
  .map-route,
  .floating-phone-button,
  .floating-whatsapp-button {
    animation: none !important;
  }
}