/* Custom styles for Devium Wine */

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

/* Navbar transition */
.nav-text {
  transition: color 0.4s ease;
}

.nav-icon {
  transition: fill 0.4s ease;
}

/* Navbar scrolled state */
nav.scrolled .nav-text {
  color: #0d1f46;
}

nav.scrolled .nav-link {
  color: #1c3f82;
}

nav.scrolled .nav-link:hover {
  color: #2d63ba;
}

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

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

.mobile-link:hover {
  color: #2d63ba;
}

/* Button hover effects */
a[href="#selection"],
a[href="#visit"],
a[href="#contact"] {
  will-change: transform;
}

/* Image hover */
.rounded-2xl.overflow-hidden img {
  will-change: transform;
}

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

::-webkit-scrollbar-track {
  background: #fdf8f0;
}

::-webkit-scrollbar-thumb {
  background: #c5d4ec;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #9fb8df;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #4ade80;
  outline-offset: 2px;
}

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

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

  .rounded-2xl.overflow-hidden img {
    transition: none;
  }

  .group:hover img {
    transform: none;
  }
}

/* Selection highlight */
::selection {
  background: #bbf7d0;
  color: #0d1f46;
}
