/* ========== BASE & RESET ========== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

/* ========== NAV LINKS ========== */
.nav-link {
  position: relative;
}

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

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

/* ========== HEADER SCROLL STATE ========== */
#header.scrolled {
  background: rgba(7, 3, 10, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(138, 79, 125, 0.2);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

#header.scrolled .nav-link {
  color: rgba(220, 200, 230, 0.8);
}

/* ========== MOBILE MENU ========== */
.mobile-link {
  position: relative;
}

/* ========== REVEAL ANIMATIONS ========== */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-up {
  transform: translateY(0);
}

.reveal-left {
  transform: translateX(0);
}

.reveal-right {
  transform: translateX(0);
}

@media (prefers-reduced-motion: no-preference) {
  .reveal-up {
    opacity: 0;
    transform: translateY(30px);
  }

  .reveal-left {
    opacity: 0;
    transform: translateX(-30px);
  }

  .reveal-right {
    opacity: 0;
    transform: translateX(30px);
  }
}

/* ========== INPUT FOCUS STATES ========== */
input:focus,
textarea:focus {
  outline: none;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
  width: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
  background: #5c3050;
}

/* ========== SELECTION ========== */
::selection {
  background: rgba(212, 160, 23, 0.3);
  color: #f5f0f7;
}

/* ========== MAP INVERT FIX ========== */
iframe[title*="map"] {
  border-radius: 0.75rem;
}

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

  .reveal-up,
  .reveal-left,
  .reveal-right {
    opacity: 1;
    transform: none;
  }
}
