/* ═══════════════ 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: #fff;
}

/* ═══════════════ SCROLLBAR ═══════════════ */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0a1628;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #c9a84c, #b8922e);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #f0d078, #c9a84c);
}

/* ═══════════════ SERVICE CARDS ═══════════════ */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #c9a84c, transparent);
  transition: left 0.6s ease;
}

.service-card:hover::before {
  left: 100%;
}

/* ═══════════════ MOBILE MENU ANIMATIONS ═══════════════ */
.menu-line {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobileMenu.open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════ SCROLL REVEAL (progressive enhancement) ═══════════════ */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  }

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

  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
  .reveal-delay-4 { transition-delay: 0.4s; }
  .reveal-delay-5 { transition-delay: 0.5s; }
}

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

/* ═══════════════ FORM STYLES ═══════════════ */
select option {
  background: #0f1f38;
  color: #fff;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(201, 168, 76, 0.5) !important;
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1) !important;
}

/* ═══════════════ NAVBAR SCROLL STATE ═══════════════ */
header.scrolled {
  background: rgba(6, 14, 26, 0.95) !important;
  backdrop-blur: 20px !important;
}

header.scrolled .logo-text {
  color: #fff;
}

/* ═══════════════ GALLERY HOVER ═══════════════ */
.gallery-item {
  overflow: hidden;
  border-radius: 16px;
  position: relative;
}

.gallery-item img {
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* ═══════════════ GOLD SHIMMER ANIMATION ═══════════════ */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.gold-shimmer {
  background: linear-gradient(90deg, #c9a84c 0%, #f0d078 25%, #c9a84c 50%, #f0d078 75%, #c9a84c 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s linear infinite;
}

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

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

/* ═══════════════ PULSE GLOW ═══════════════ */
@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 20px rgba(201, 168, 76, 0.2); }
  50% { box-shadow: 0 0 40px rgba(201, 168, 76, 0.4); }
}

.pulse-gold {
  animation: pulse-gold 3s ease-in-out infinite;
}
