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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: #040804;
  color: #dce8d8;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #080d07;
}
::-webkit-scrollbar-thumb {
  background: #2d4f27;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #4a7a3e;
}

/* ========== SELECTION ========== */
::selection {
  background: rgba(184, 134, 11, 0.3);
  color: #f0f5ee;
}

/* ========== REVEAL ANIMATIONS ========== */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.fade-up {
  transform: translateY(30px);
}

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

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

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

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

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

#navbar.scrolled {
  background: rgba(4, 8, 4, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(74, 122, 62, 0.15);
}

/* Mobile menu lines animation */
#menu-btn.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}
#menu-btn.active .menu-line:nth-child(2) {
  opacity: 0;
}
#menu-btn.active .menu-line:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
  width: 1.25rem;
  margin-left: 0;
}

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

/* ========== HERO ========== */
#hero {
  position: relative;
}

#hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, #040804, transparent);
  pointer-events: none;
}

/* ========== SECTION DIVIDER ========== */
.section-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(184, 134, 11, 0.2), transparent);
}

/* ========== CARD HOVER ========== */
.group:hover .group-hover\:bg-gold-500\/20 {
  background: rgba(184, 134, 11, 0.2);
}

/* ========== FORM STYLES ========== */
select option {
  background: #080d07;
  color: #dce8d8;
}

/* ========== BUTTON RIPPLE EFFECT ========== */
button, .group-hover\:bg-gold-300 {
  position: relative;
  overflow: hidden;
}

/* ========== SMOOTH TRANSITIONS ========== */
.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
}

/* ========== GOLD GLOW ========== */
.shadow-gold {
  box-shadow: 0 0 40px rgba(184, 134, 11, 0.15);
}

/* ========== FOCUS VISIBLE ========== */
:focus-visible {
  outline: 2px solid #d4a84b;
  outline-offset: 2px;
  border-radius: 4px;
}

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

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

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

/* ========== IMAGE PLACEHOLDER ========== */
img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}
