/* Custom styles for Setting Sun Tattoo */

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

/* Base font smoothing */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Selection color */
::selection {
  background-color: rgba(74, 222, 128, 0.2);
  color: #86efac;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #0c0f24;
}
::-webkit-scrollbar-thumb {
  background: rgba(74, 222, 128, 0.3);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(74, 222, 128, 0.5);
}

/* Navbar scroll state */
.navbar-scrolled {
  background: rgba(12, 15, 36, 0.95) !important;
  backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* Mobile menu open state */
.mobile-menu-open {
  opacity: 1 !important;
  pointer-events: all !important;
}

/* Hamburger animation */
.hamburger-active #line1 {
  transform: rotate(45deg) translate(4px, 4px);
}
.hamburger-active #line2 {
  opacity: 0;
}
.hamburger-active #line3 {
  transform: rotate(-45deg) translate(4px, -4px);
  width: 1.5rem;
}

/* Reveal animations (progressive enhancement) */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Form select arrow */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: 2rem !important;
}

/* Focus visible styles */
:focus-visible {
  outline: 2px solid rgba(74, 222, 128, 0.5);
  outline-offset: 2px;
}

/* Input autofill override */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 30px #141838 inset !important;
  -webkit-text-fill-color: #f8fafc !important;
  caret-color: #f8fafc;
}

/* Thin line decorations */
.line-accent {
  position: relative;
}
.line-accent::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 1px;
  background: linear-gradient(to right, rgba(74, 222, 128, 0.6), transparent);
}

/* Gallery hover overlay */
.gallery-item:hover img {
  transform: scale(1.05);
}

/* Subtle glow effect for cards */
.card-glow {
  position: relative;
}
.card-glow::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.1), transparent, rgba(74, 222, 128, 0.05));
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.card-glow:hover::before {
  opacity: 1;
}
