*, *::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(212, 168, 75, 0.3);
  color: #f4f6fb;
}

/* Hero gradient orbs */
.hero-gradient-orb {
  background: radial-gradient(circle, rgba(212, 168, 75, 0.5) 0%, transparent 70%);
}

.hero-gradient-orb2 {
  background: radial-gradient(circle, rgba(74, 111, 168, 0.5) 0%, transparent 70%);
}

.hero-gradient-orb3 {
  background: radial-gradient(circle, rgba(212, 168, 75, 0.3) 0%, transparent 70%);
}

/* Hero entrance animations */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-elem {
  opacity: 0;
  animation: heroFadeUp 0.8s ease forwards;
}

.hero-elem:nth-child(1) { animation-delay: 0.2s; }
.hero-elem:nth-child(2) { animation-delay: 0.4s; }
.hero-elem:nth-child(3) { animation-delay: 0.6s; }
.hero-elem:nth-child(4) { animation-delay: 0.8s; }

.hero-scroll {
  opacity: 0;
  animation: heroFadeUp 0.8s ease forwards;
  animation-delay: 1.2s;
}

/* Scroll reveal - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

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

/* Service card hover */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 1px solid transparent;
  transition: border-color 0.5s ease;
  pointer-events: none;
}

.service-card:hover::before {
  border-color: rgba(212, 168, 75, 0.15);
}

/* Navbar scroll state */
.navbar-scrolled {
  background: rgba(10, 22, 40, 0.95) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 168, 75, 0.08);
}

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

.mobile-link {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

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

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* Form select arrow */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23D4A84B' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
}

/* Smooth focus for inputs */
input:focus, textarea:focus, select:focus {
  outline: none;
}

/* Image lazy load fade */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.5s ease;
}

img[loading="lazy"].loaded {
  opacity: 1;
}
