/* ==========================================================================
   Custom styles — only what Tailwind can't handle
   ========================================================================== */

html {
  scroll-behavior: smooth;
}

/* --- CSS-only hamburger toggle --- */

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  background: none;
  border: none;
  padding: 0;
}

.hamburger span {
  width: 25px;
  height: 2px;
  background-color: #fff;
  border-radius: 1px;
  transition: 0.3s;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background-color: rgba(11, 14, 23, 0.98);
    backdrop-filter: blur(8px);
    flex-direction: column;
    padding: 1.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  }

  #nav-toggle:checked ~ .nav-links {
    display: flex;
  }
}

/* --- Hero --- */

.hero {
  min-height: 85vh;
  background: #0B0E17;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(11, 14, 23, 0.5) 0%,
    rgba(11, 14, 23, 0.25) 50%,
    rgba(11, 14, 23, 0.6) 100%
  );
  z-index: 2;
  pointer-events: none;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

.hero-text-shadow {
  text-shadow:
    0 2px 40px rgba(0, 0, 0, 0.7),
    0 0 80px rgba(201, 168, 76, 0.1);
}

/* --- Scroll indicator --- */

.scroll-indicator {
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  position: relative;
}

.scroll-indicator::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 8px;
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: 2px;
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50% { transform: translateX(-50%) translateY(12px); opacity: 0.3; }
}

/* --- Section heading underline --- */

.section-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.6rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 3rem;
  color: #1A1A24;
}

.section-heading::after {
  content: '';
  display: block;
  width: 80px;
  height: 2px;
  background: linear-gradient(to right, transparent, #C9A84C, transparent);
  margin: 1rem auto 0;
  opacity: 0.6;
}

/* --- Feature cards --- */

.feature-card {
  text-align: center;
  padding: 1.5rem 1rem;
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
}

/* --- Gallery items --- */

.gallery-item {
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  position: relative;
}

.gallery-item img {
  transition: transform 0.6s ease, filter 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
  filter: brightness(1.05);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.15) 0%, transparent 40%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.gallery-item:hover::after {
  opacity: 1;
}

/* --- Scroll reveal --- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* --- Selection color --- */

::selection {
  background-color: rgba(201, 168, 76, 0.25);
  color: #1A1A24;
}
