*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  overflow-x: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #1a0918;
}
::-webkit-scrollbar-thumb {
  background: #4A1942;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #e8a020;
}

/* Navigation */
#nav.scrolled {
  background: rgba(26, 9, 24, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Mobile menu */
#mobileMenu.open {
  transform: translateX(0);
}

/* Service cards */
.service-card {
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #e8a020, transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.service-card:hover::before {
  opacity: 1;
}

/* Mobile links */
.mobile-link {
  position: relative;
}
.mobile-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #e8a020;
  transition: width 0.3s ease;
}
.mobile-link:hover::after {
  width: 100%;
}

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.service-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero text animation */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Pulse ring on CTA */
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(232, 160, 32, 0.5); }
  70% { box-shadow: 0 0 0 12px rgba(232, 160, 32, 0); }
  100% { box-shadow: 0 0 0 0 rgba(232, 160, 32, 0); }
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, #e8a020, #fbbf24, #e8a020);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Selection */
::selection {
  background: rgba(232, 160, 32, 0.3);
  color: white;
}
