/* ===== CUSTOM STYLES ===== */

/* Scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Selection color */
::selection {
  background-color: rgba(212, 168, 67, 0.3);
  color: #f5f0fa;
}

/* ===== ANIMATIONS ===== */

/* Hero badge fade in */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-badge {
  animation: fadeUp 0.8s ease-out 0.2s both;
}

/* Hero content staggered animations */
#hero h1 {
  animation: fadeUp 0.8s ease-out 0.4s both;
}

#hero p {
  animation: fadeUp 0.8s ease-out 0.6s both;
}

#hero .flex-col {
  animation: fadeUp 0.8s ease-out 0.8s both;
}

/* Scroll indicator */
.scroll-dot {
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% {
    top: 0;
    opacity: 1;
  }
  50% {
    top: 24px;
    opacity: 0.3;
  }
}

/* ===== INTERSECTION OBSERVER ANIMATIONS ===== */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===== NAVIGATION ===== */

nav.scrolled {
  background: rgba(15, 6, 28, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212, 168, 67, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

nav.scrolled .menu-line {
  background: #fbbf24;
}

/* Mobile menu transitions */
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

#mobile-menu.closed {
  opacity: 0;
  pointer-events: none;
}

/* Hamburger animation */
.menu-btn.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-btn.active .menu-line:nth-child(2) {
  opacity: 0;
}

.menu-btn.active .menu-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
  width: 1.25rem;
}

/* Mobile link 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.1s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* ===== MENU CARDS ===== */

.menu-card {
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.menu-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px rgba(212, 168, 67, 0.05);
}

/* ===== GALLERY ===== */

.gallery-item {
  position: relative;
  overflow: hidden;
}

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

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

/* ===== SELECTION & FOCUS ===== */

input:focus,
select:focus,
textarea:focus {
  outline: none;
}

/* Custom 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' stroke='%23d4a843' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* ===== DATE INPUT ===== */

input[type="date"] {
  color-scheme: dark;
}

/* ===== SCROLLBAR ===== */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0f061c;
}

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

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

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
  #hero h1 {
    font-size: 2.75rem;
  }

  .menu-card {
    padding: 1.5rem;
  }
}

@media (max-width: 640px) {
  #hero h1 {
    font-size: 2.25rem;
  }

  .font-display.text-4xl {
    font-size: 2rem;
  }
}
