/* ========== BASE ========== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  overflow-x: hidden;
}

::selection {
  background: #d8bfd8;
  color: #2d1737;
}

/* ========== NAVBAR ========== */
#navbar {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
  background: rgba(253, 248, 244, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(91, 44, 111, 0.08);
}

.nav-logo {
  transition: color 0.3s ease;
}

#navbar:not(.scrolled) .nav-logo {
  color: #2d1737;
}

#navbar.scrolled .nav-logo {
  color: #5B2C6F;
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #F59E0B;
  transition: width 0.3s ease;
  border-radius: 1px;
}

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

/* ========== MOBILE MENU ========== */
.menu-line {
  display: block;
}

#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

#mobile-menu.open .mobile-link {
  animation: slideIn 0.3s ease forwards;
  opacity: 0;
}

#mobile-menu.open .mobile-link:nth-child(1) { animation-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { animation-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { animation-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { animation-delay: 0.2s; }

@keyframes slideIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.menu-btn.active .line-1 {
  transform: translateY(5px) rotate(45deg);
}

.menu-btn.active .line-2 {
  opacity: 0;
  transform: scaleX(0);
}

.menu-btn.active .line-3 {
  transform: translateY(-5px) rotate(-45deg);
  width: 5rem;
}

/* ========== SCROLL INDICATOR ========== */
.scroll-line {
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; height: 2rem; }
  50% { opacity: 1; height: 2.5rem; }
}

/* ========== FLOATING ANIMATION ========== */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.animate-float {
  animation: float 3.5s ease-in-out infinite;
}

/* ========== MENU TABS ========== */
.menu-tab {
  background: transparent;
  color: #7c3aed;
  border: 1.5px solid #d8bfd8;
  cursor: pointer;
  font-family: 'Inter', system-ui, sans-serif;
}

.menu-tab:hover {
  background: #f5f0f7;
  border-color: #c49ec4;
}

.menu-tab.active {
  background: #5B2C6F;
  color: #fff;
  border-color: #5B2C6F;
  box-shadow: 0 4px 12px rgba(91, 44, 111, 0.3);
}

.menu-tab.active:hover {
  background: #4a2359;
  border-color: #4a2359;
}

/* ========== SCROLL REVEAL ========== */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html { scroll-behavior: auto; }
  .animate-float { animation: none; }
  .scroll-line { animation: none; }
  .gallery-img img { transition: none; }
}

/* ========== GALLERY HOVER ========== */
.gallery-img img {
  will-change: transform;
}

/* ========== FORM STYLES ========== */
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='%237c3aed' stroke-width='2.5' 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;
}

/* ========== SECTION HEADERS ========== */
.menu-header, .gallery-header, .testimonials-header {
  opacity: 1;
}

/* ========== FOCUS STYLES ========== */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid #5B2C6F;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ========== MOBILE MENU LINKS ========== */
.mobile-link {
  opacity: 1;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 767px) {
  html { scroll-padding-top: 72px; }
}
