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

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

body {
  overflow-x: hidden;
}

::selection {
  background: rgba(201, 168, 76, 0.3);
  color: #f1f5f9;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #070e16;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* ========== REVEAL ANIMATIONS ========== */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal[data-revealed="false"] {
  opacity: 0;
  transform: translateY(30px);
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
  }
  .reveal[data-revealed="true"] {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== NAVBAR ========== */
#navbar {
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
}

#navbar.scrolled {
  background: rgba(7, 14, 22, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ========== MOBILE MENU ========== */
.mobile-link {
  position: relative;
  padding-left: 0;
  transition: padding-left 0.3s ease;
}

.mobile-link:hover {
  padding-left: 8px;
}

#mobileMenu {
  animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== HERO GLOW PULSE ========== */
@keyframes glowPulse {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

/* ========== CARD HOVER EFFECTS ========== */
.group:hover .group-hover\:from-gold-500\/20 {
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.2), rgba(184, 148, 63, 0.1));
}

/* ========== BUTTON RIPPLE ========== */
button, a {
  position: relative;
  overflow: visible;
}

/* ========== FORM FOCUS STATES ========== */
input:focus, textarea:focus, select:focus {
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

/* ========== SELECTION HIGHLIGHT ========== */
input::placeholder, textarea::placeholder {
  color: #475569;
}

/* ========== MAP INVERSION FIX ========== */
iframe[title*="Map"] {
  border-radius: 0 0 0.5rem 0.5rem;
}

/* ========== RESPONSIVE TWEAKS ========== */
@media (max-width: 640px) {
  .font-serif {
    line-height: 1.15;
  }
}

@media (min-width: 1024px) {
  /* Subtle parallax-like effect for hero on scroll */
  #hero {
    will-change: transform;
  }
}

/* ========== PRINT STYLES ========== */
@media print {
  #navbar, #contact, .reveal {
    display: none !important;
  }
  body {
    background: white !important;
    color: black !important;
  }
}
