/* Sea Waves Marine — shared motion & media polish */

@media (prefers-reduced-motion: reduce) {
  .hero-anim,
  .hero-bg-pulse,
  .hero-deco,
  .reveal-section,
  .reveal-item,
  .hero-fade-in > * {
    animation: none !important;
    transition-duration: 0.01ms !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Hero */
.hero-shell {
  isolation: isolate;
}

.hero-bg-pulse {
  background: linear-gradient(125deg, #020c1b 0%, #0a192f 40%, #0d2137 70%, #0a192f 100%);
  background-size: 200% 200%;
  animation: heroGradient 18s ease infinite alternate;
}

@keyframes heroGradient {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* Testimonial Slider System */
.testimonial-container {
  position: relative;
  overflow: hidden;
  min-height: 380px;
}

.testimonial-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transform: translateX(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-slide.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
  cursor: pointer;
  transition: all 0.3s ease;
}

.testimonial-dot.active {
  background: #007bff;
  transform: scale(1.3);
}

.hero-grid-overlay {
  background-image:
    linear-gradient(rgba(0, 123, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 123, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

.hero-deco {
  animation: heroDecoFloat 14s ease-in-out infinite;
  filter: drop-shadow(0 20px 40px rgba(0, 123, 255, 0.15));
}

@keyframes heroDecoFloat {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-14px) translateX(-10px); }
}

.hero-fade-in > * {
  opacity: 0;
  animation: heroFadeUp 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-fade-in > *:nth-child(1) { animation-delay: 0.08s; }
.hero-fade-in > *:nth-child(2) { animation-delay: 0.18s; }
.hero-fade-in > *:nth-child(3) { animation-delay: 0.28s; }
.hero-fade-in > *:nth-child(4) { animation-delay: 0.38s; }
.hero-fade-in > *:nth-child(5) { animation-delay: 0.48s; }

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll reveals */
.reveal-section {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-grid .reveal-item:nth-child(1) { transition-delay: 0.05s; }
.stagger-grid .reveal-item:nth-child(2) { transition-delay: 0.12s; }
.stagger-grid .reveal-item:nth-child(3) { transition-delay: 0.19s; }
.stagger-grid .reveal-item:nth-child(4) { transition-delay: 0.26s; }
.stagger-grid .reveal-item:nth-child(5) { transition-delay: 0.33s; }
.stagger-grid .reveal-item:nth-child(6) { transition-delay: 0.4s; }

/* Image / SVG frames */
.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background: linear-gradient(145deg, #f1f5f9 0%, #e2e8f0 100%);
  box-shadow: 0 20px 50px -12px rgba(10, 25, 47, 0.18);
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  pointer-events: none;
}

.media-frame img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  padding: 1.25rem;
  transition: transform 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.media-frame:hover img {
  transform: scale(1.06);
}

.card-visual {
  overflow: hidden;
  border-radius: 0.75rem 0.75rem 0 0;
  margin: -1.75rem -1.75rem 1rem -1.75rem;
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-visual img {
  width: 72%;
  max-height: 85%;
  object-fit: contain;
  transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.group:hover .card-visual img {
  transform: scale(1.08) translateY(-4px);
}

.stat-tile {
  transition: transform 0.35s ease, border-color 0.35s ease, background-color 0.35s ease;
}
.stat-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.35);
}

/* UI Integration & Polish - Sea Waves Marine */
.bg-logistics-grid {
  background-image: radial-gradient(rgba(0, 123, 255, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
}

.img-blend-pro {
  position: relative;
  overflow: hidden;
}
.img-blend-pro::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 60px 10px rgba(255, 255, 255, 0.6);
  pointer-events: none;
}

.map-dashboard {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 123, 255, 0.1);
  box-shadow: 
    0 10px 40px -10px rgba(10, 25, 47, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  border-radius: 2rem;
  padding: 3rem;
  position: relative;
}

.map-dashboard::before {
  content: "LIVE NETWORK STATUS";
  position: absolute;
  top: 1.5rem;
  left: 3rem;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.3em;
  color: #007bff;
  opacity: 0.6;
}
.text-seawaves-500 { color: #007bff; }
.text-seawaves-900 { color: #001f3f; }
.bg-seawaves-500 { background-color: #007bff; }
.bg-seawaves-600 { background-color: #0056b3; }
.bg-seawaves-900 { background-color: #001f3f; }
.border-seawaves-500 { border-color: #007bff; }

.card-integrated {
  background: white;
  border-radius: 1.5rem;
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 4px 12px -2px rgba(10, 25, 47, 0.04);
}
.card-integrated:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 123, 255, 0.3);
  box-shadow: 0 20px 40px -15px rgba(10, 25, 47, 0.12);
}

.brand-text-outline {
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2);
  color: transparent;
}

/* Hero Full-Page Slider Animations */
.hero-slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.hero-slide {
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
  transition: transform 10s linear;
}

.hero-slide.active img {
  transform: scale(1);
}

.hero-grid-overlay {
  background-image: 
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}
