/* ========== 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 {
  font-family: 'Outfit', sans-serif;
  background-color: #090e17;
  color: #ffffff;
  overflow-x: hidden;
}

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

#navbar.scrolled {
  background: rgba(9, 14, 23, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-link {
  position: relative;
}

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

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

.nav-link:hover {
  color: #efcf68 !important;
}

/* Mobile menu */
#mobileMenu.open {
  opacity: 1 !important;
  pointer-events: all !important;
}

#mobileMenu.closed {
  opacity: 0 !important;
  pointer-events: none !important;
}

.mobile-link {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.2s ease;
}

/* ========== HERO GEOMETRY ========== */
.hero-geo {
  animation: float 8s ease-in-out infinite;
}

.hero-geo:nth-child(2) { animation-delay: -1s; animation-duration: 10s; }
.hero-geo:nth-child(3) { animation-delay: -2s; animation-duration: 7s; }
.hero-geo:nth-child(4) { animation-delay: -3s; animation-duration: 9s; }
.hero-geo:nth-child(5) { animation-delay: -4s; animation-duration: 11s; }
.hero-geo:nth-child(6) { animation-delay: -5s; animation-duration: 6s; }

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(var(--rotation, 12deg)); }
  50% { transform: translateY(-20px) rotate(var(--rotation, 12deg)); }
}

/* ========== SERVICE CARDS ========== */
.service-card {
  position: relative;
  transform: translateY(0);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.service-card:hover {
  box-shadow: 0 20px 60px rgba(201, 168, 76, 0.1);
}

/* ========== GALLERY ========== */
.gallery-item {
  cursor: pointer;
  transform: translateY(0);
  transition: transform 0.4s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
}

/* ========== REVEAL ANIMATIONS ========== */
/* Default state: fully visible (progressive enhancement) */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Only apply hidden state when JS is available and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
  }

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

  /* Stagger children */
  .reveal:nth-child(2) { transition-delay: 0.1s; }
  .reveal:nth-child(3) { transition-delay: 0.2s; }
  .reveal:nth-child(4) { transition-delay: 0.3s; }
  .reveal:nth-child(5) { transition-delay: 0.4s; }
  .reveal:nth-child(6) { transition-delay: 0.5s; }
}

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

::-webkit-scrollbar-track {
  background: #090e17;
}

::-webkit-scrollbar-thumb {
  background: #1b2a4a;
  border-radius: 4px;
}

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

/* ========== SELECTION ========== */
::selection {
  background: rgba(201, 168, 76, 0.3);
  color: #ffffff;
}

/* ========== FORM STYLES ========== */
select option {
  background: #152138;
  color: #ffffff;
}

input:focus, textarea:focus, select:focus {
  border-color: #C9A84C !important;
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
  outline: none;
}

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