/* ============================================
   SeaScape Ferrol — Custom Styles
   ============================================ */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #F5F5F4;
}
::-webkit-scrollbar-thumb {
  background: #D4BFD6;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #A076A8;
}

/* Selection color */
::selection {
  background: #D4BFD6;
  color: #391B47;
}

/* Header scroll state */
header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-blur: 20px;
  box-shadow: 0 1px 0 rgba(91, 44, 111, 0.08), 0 4px 20px rgba(0, 0, 0, 0.06);
}

header.scrolled .nav-link {
  color: #57534E;
}

header.scrolled .nav-link:hover {
  color: #5B2C6F;
  background: #F5F0F7;
}

/* Stat cards animation */
.stat-card {
  animation: floatCard 3s ease-in-out infinite;
}

.stat-card:nth-child(2) {
  animation-delay: 0.5s;
}

.stat-card:nth-child(3) {
  animation-delay: 1s;
}

.stat-card:nth-child(4) {
  animation-delay: 1.5s;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

/* Service cards */
.service-card {
  transition: transform 0.4s ease, background 0.4s ease, border-color 0.4s ease;
}

.service-card:hover {
  transform: translateY(-4px);
}

/* Mobile menu */
#mobileMenu.open {
  opacity: 1;
  pointer-events: all;
}

#mobileMenu:not(.open) {
  opacity: 0;
  pointer-events: none;
}

.mobile-link {
  transition: background 0.3s ease, transform 0.3s ease;
}

.mobile-link:hover {
  transform: scale(1.02);
}

/* Fade-in animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Nav link underline animation */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #F5B041;
  transition: width 0.3s ease, left 0.3s ease;
}

.nav-link:hover::after {
  width: 60%;
  left: 20%;
}

/* Focus styles */
input:focus,
textarea:focus,
button:focus {
  outline: none;
}

/* Button ripple effect */
button, a {
  -webkit-tap-highlight-color: transparent;
}
