/* ============================================
   TransEuro Cargo – Custom Styles
   Premium Landing Page for International Transport
   ============================================ */

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: #1E2A5E;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #151E45;
}
html {
  scrollbar-width: thin;
  scrollbar-color: #1E2A5E #f1f1f1;
  scroll-behavior: smooth;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

/* Lock horizontal scroll and prevent mobile rubber-banding sideways */
body {
  overflow-x: hidden;
  max-width: 100vw;
  position: relative;
  overscroll-behavior-x: none;
}

/* Hero overlay gradient */
.hero-overlay {
  background: linear-gradient(135deg, rgba(10,10,10,0.82) 0%, rgba(30,42,94,0.75) 100%);
}

/* Section gradient backgrounds */
.gradient-light {
  background: linear-gradient(180deg, #F8F9FA 0%, #FFFFFF 100%);
}
.gradient-navy {
  background: linear-gradient(135deg, #1E2A5E 0%, #2A3A7E 50%, #1E2A5E 100%);
}
.gradient-dark {
  background: linear-gradient(135deg, #0A0A0A 0%, #1a1a2e 100%);
}

/* Scroll animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* Card hover micro-interactions */
.card-hover {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(30, 42, 94, 0.15);
}

/* Button hover shift */
.btn-shift {
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}
.btn-shift:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 176, 66, 0.35);
}
.btn-shift:active {
  transform: translateY(0);
}

.btn-navy {
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}
.btn-navy:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(30, 42, 94, 0.35);
}

/* Sticky header transition */
.header-glass {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.header-scrolled {
  background-color: rgba(255, 255, 255, 0.97) !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* Logo ticker animation */
@keyframes scroll-logos {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.logos-scroll {
  animation: scroll-logos 30s linear infinite;
}
.logos-scroll:hover {
  animation-play-state: paused;
}

/* Process connector line */
.process-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #1E2A5E, #F5B042, #1E2A5E);
  z-index: 0;
}

/* FAQ accordion */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1), padding 0.4s ease;
}
.faq-answer.open {
  max-height: 500px;
}
.faq-icon {
  transition: transform 0.3s ease;
}
.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

/* Review slider */
.reviews-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.review-card {
  flex: 0 0 100%;
  min-width: 0;
}
@media (min-width: 768px) {
  .review-card {
    flex: 0 0 50%;
  }
}
@media (min-width: 1024px) {
  .review-card {
    flex: 0 0 33.333%;
  }
}

/* Review dots */
.review-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Lightbox */
.lightbox {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.lightbox.active {
  opacity: 1;
  visibility: visible;
}
.lightbox img {
  transform: scale(0.9);
  transition: transform 0.3s ease;
}
.lightbox.active img {
  transform: scale(1);
}

/* Toast notification */
.toast {
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Pulse animation for badge */
@keyframes pulse-soft {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}
.pulse-badge {
  animation: pulse-soft 2s ease-in-out infinite;
}

/* Mobile menu */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.mobile-menu.open {
  transform: translateX(0);
}

/* Stat counter */
@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Floating phone button (mobile) */
.floating-phone {
  animation: pulse-soft 2s ease-in-out infinite;
}

/* Gallery image hover */
.gallery-img {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.gallery-img:hover {
  transform: scale(1.05);
}

/* Form focus ring */
.form-input:focus {
  outline: none;
  border-color: #1E2A5E;
  box-shadow: 0 0 0 3px rgba(30, 42, 94, 0.15);
}

/* Stars rating color */
.star-filled {
  color: #F5B042;
}

/* Language switcher */
.lang-btn {
  transition: background-color 0.2s ease, color 0.2s ease;
}
.lang-btn.active {
  background-color: #1E2A5E;
  color: #FFFFFF;
}

/* Gradient text */
.text-gradient {
  background: linear-gradient(135deg, #1E2A5E, #F5B042);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Service card icon container */
.service-icon {
  background: linear-gradient(135deg, #1E2A5E 0%, #2A3A7E 100%);
  transition: transform 0.3s ease;
}
.card-hover:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
}

/* Process step number */
.step-number {
  background: linear-gradient(135deg, #F5B042, #E09A2B);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.step-number:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(245, 176, 66, 0.4);
}

/* Separator line */
.separator {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #1E2A5E, #F5B042);
  border-radius: 2px;
}

/* Map container */
.map-container iframe {
  filter: grayscale(0.3) contrast(1.05);
  transition: filter 0.3s ease;
}
.map-container:hover iframe {
  filter: grayscale(0) contrast(1);
}

/* Selection color */
::selection {
  background: rgba(30, 42, 94, 0.2);
  color: #0A0A0A;
}

/* Hide elements for language toggle */
[data-lang-content] {
  transition: opacity 0.2s ease;
}

/* Print styles */
@media print {
  .no-print { display: none !important; }
  body { color: #000; }
}
