/* Custom styles for Ohana Ice */

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

/* Selection color */
::selection {
  background: rgba(94, 234, 212, 0.3);
  color: #fff;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #040a14;
}
::-webkit-scrollbar-thumb {
  background: #1b3a5c;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #5eead4;
}

/* Navbar glass effect */
.navbar-scrolled {
  background: rgba(4, 10, 20, 0.85) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Hero text gradient fix for bg-clip-text */
.text-transparent.bg-clip-text.bg-clip-text {
  background-clip: text;
  -webkit-background-clip: text;
}

/* Service card tilt effect */
.service-card {
  transform: translateY(0);
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Gallery hover */
.gallery-item {
  cursor: pointer;
}

/* Mobile menu transitions */
.mobile-link {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}
.mobile-menu-open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}
.mobile-menu-open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu-open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu-open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu-open .mobile-link:nth-child(4) { transition-delay: 0.2s; }

/* Scroll reveal base state (visible by default for progressive enhancement) */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1), transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal,
  .service-card,
  .gallery-item img,
  .mobile-link {
    transition: none;
  }
  .service-card:hover {
    transform: none;
  }
  .gallery-item:hover img {
    transform: none;
  }
}

/* Focus visible */
:focus-visible {
  outline: 2px solid #5eead4;
  outline-offset: 2px;
}

/* Form focus styles */
input:focus,
textarea:focus {
  background: rgba(10, 22, 40, 0.8);
}

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