/* ============================================
   Velador Associates — Site-wide Styles
   ============================================ */

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: #9b825e; border-radius: 3px; }

/* ===== Scroll Reveal Base ===== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Nav link visibility (shadow over hero images) ===== */
.nav-link {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 0, 0, 0.5);
}

/* ===== Scrolled navbar styles ===== */
#navbar.scrolled {
  background-color: rgba(0, 0, 0, 0.9) !important;
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border-bottom-color: rgba(255, 255, 255, 0.1) !important;
  padding-top: 0.75rem !important;
  padding-bottom: 0.75rem !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* Logo shrinks on scroll to h-16 (4rem) */
#navbar.scrolled #nav-logo {
  height: 4rem !important;
}

/* ===== Hero Carousel Crossfade (used on index.html) ===== */
.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: 0;
}
.carousel-slide.active {
  opacity: 1;
  z-index: 1;
}

/* ===== Contact form success animation (used on contact.html) ===== */
#form-success {
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(15px); }
  to   { opacity: 1; transform: translateY(0); }
}
#form-success .check-circle {
  animation: scaleIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.5); }
  to   { opacity: 1; transform: scale(1); }
}