/* style.css - Pecheur.ma Marine Aesthetic & Wave Animations */

@keyframes move-forever {
  0% {
    transform: translate3d(-90px, 0, 0);
  }
  100% {
    transform: translate3d(85px, 0, 0);
  }
}

/* Multi-layered Wave Animation */
.waves-container {
  position: relative;
  width: 100%;
  height: 90px;
  overflow: hidden;
  margin-bottom: -1px;
}

.waves {
  position: relative;
  width: 100%;
  height: 90px;
  margin-bottom: -7px;
  min-height: 80px;
  max-height: 120px;
}

.parallax > use {
  animation: move-forever 25s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;
}

.parallax > use:nth-child(1) {
  animation-delay: -2s;
  animation-duration: 7s;
}

.parallax > use:nth-child(2) {
  animation-delay: -3s;
  animation-duration: 10s;
}

.parallax > use:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 13s;
}

.parallax > use:nth-child(4) {
  animation-delay: -5s;
  animation-duration: 20s;
}

/* Floating Seagulls Animation */
.floating-elements-layer {
  position: absolute;
  top: 15%;
  left: 0;
  width: 100%;
  height: 60%;
  overflow: hidden;
  z-index: 5;
}

.seagull {
  position: absolute;
  font-size: 1.4rem;
  opacity: 0.55;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
  user-select: none;
}

.seagull-1 {
  animation: flyAcross 28s linear infinite;
  top: 20%;
}

.seagull-2 {
  animation: flyAcross 34s linear infinite 14s;
  top: 45%;
  transform: scale(0.75);
}

@keyframes flyAcross {
  0% {
    left: -10%;
    transform: translateY(0px) rotate(2deg);
  }
  25% {
    transform: translateY(-20px) rotate(-3deg);
  }
  50% {
    transform: translateY(15px) rotate(4deg);
  }
  75% {
    transform: translateY(-10px) rotate(-1deg);
  }
  100% {
    left: 110%;
    transform: translateY(0px) rotate(2deg);
  }
}

/* Pulse animation slow */
@keyframes pulse-slow {
  0%, 100% {
    opacity: 0.2;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(1.08);
  }
}

.animate-pulse-slow {
  animation: pulse-slow 8s ease-in-out infinite;
}

/* Subtle Moon glow */
.moon-shadow {
  box-shadow: 0 0 25px rgba(165, 180, 252, 0.35);
  animation: moonPulse 6s ease-in-out infinite;
}

@keyframes moonPulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(165, 180, 252, 0.25);
  }
  50% {
    box-shadow: 0 0 35px rgba(56, 189, 248, 0.45);
  }
}

/* Port Tab Button Active State */
.port-tab-btn.active {
  background: linear-gradient(135deg, #0284c7 0%, #0d9488 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(20, 184, 166, 0.3);
}

.fish-filter-btn.active {
  background: #0284c7;
  color: #ffffff;
}

/* Spot cards images gradient placeholders (aesthetic marine photos generated with CSS gradients) */
.spot-bg {
  background-size: cover;
  background-position: center;
}

.spot-dakhla {
  background-image: radial-gradient(circle at 70% 30%, #38bdf8 0%, #0f2f54 70%), 
                    linear-gradient(to bottom, #0284c7, #06162a);
}

.spot-essaouira {
  background-image: radial-gradient(circle at 30% 20%, #2dd4bf 0%, #0a213e 65%),
                    linear-gradient(to bottom, #0d9488, #030b17);
}

.spot-tanger {
  background-image: radial-gradient(circle at 60% 40%, #6366f1 0%, #06162a 75%),
                    linear-gradient(to bottom, #4338ca, #06162a);
}

.spot-agadir {
  background-image: radial-gradient(circle at 50% 20%, #f59e0b 0%, #0f2f54 60%),
                    linear-gradient(to bottom, #b45309, #030b17);
}

.spot-alhoceima {
  background-image: radial-gradient(circle at 40% 30%, #10b981 0%, #0f2f54 70%),
                    linear-gradient(to bottom, #047857, #06162a);
}

.spot-mehdia {
  background-image: radial-gradient(circle at 50% 50%, #06b6d4 0%, #0a213e 70%),
                    linear-gradient(to bottom, #0891b2, #030b17);
}

/* Glassmorphism Marine Cards */
.marine-card {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.marine-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px -10px rgba(2, 132, 199, 0.25);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
}

::-webkit-scrollbar-track {
  background: #030b17;
}

::-webkit-scrollbar-thumb {
  background: #17477d;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #00A8CC;
}
