/* Custom styles for Pescadores */

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

/* Navbar scroll state */
#navbar.scrolled {
  background-color: rgba(253, 252, 248, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(42, 74, 28, 0.08);
}

#navbar.scrolled .nav-text {
  color: #1e3113;
}

#navbar.scrolled .nav-link {
  color: #2d4a1c;
}

/* Scroll reveal animations */
.scroll-reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile menu */
.mobile-link {
  transition: color 0.2s ease;
}

.mobile-link:hover {
  color: #4a7a2e;
}

/* Mobile menu line animation */
.menu-line {
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

#mobile-menu.open .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

#mobile-menu.open .menu-line:nth-child(2) {
  opacity: 0;
}

#mobile-menu.open .menu-line:nth-child(3) {
  width: 24px;
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Geometric decorative elements */
.geo-shape {
  position: absolute;
  pointer-events: none;
}

/* Image hover zoom */
img {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Custom selection color */
::selection {
  background-color: #c7dab3;
  color: #1e3113;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  img {
    transition: none;
  }

  .scroll-reveal:hover {
    transform: none;
  }
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #4a7a2e;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Button hover lift */
a:hover,
button:hover {
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Navbar link underline on hover */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #4a7a2e;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

#navbar.scrolled .nav-link::after {
  background-color: #385e22;
}

/* Active section highlight */
.nav-link.active {
  color: #4a7a2e;
}

.nav-link.active::after {
  width: 100%;
}

#navbar.scrolled .nav-link.active {
  color: #385e22;
}
