/* Custom styles for Froth On Franklin */

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

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Staggered reveal delays */
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }

/* Navbar scroll state */
#navbar.scrolled {
  background: rgba(42, 27, 40, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.15);
}

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

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

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

/* Mobile link styles */
.mobile-link {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-link.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Hero reveal animations */
#hero .reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

#hero .reveal:nth-child(1) { transition-delay: 0.15s; }
#hero .reveal:nth-child(2) { transition-delay: 0.35s; }
#hero .reveal:nth-child(3) { transition-delay: 0.55s; }
#hero .reveal:nth-child(4) { transition-delay: 0.75s; }

/* Image hover overlay */
.group:hover .group-hover\:scale-105 {
  transform: scale(1.05);
}

/* Custom selection color */
::selection {
  background: #E8A84C;
  color: #2A1B28;
}

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

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

/* Subtle grain texture overlay on hero */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #A36BA3;
}
