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

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

body {
  margin: 0;
  overflow-x: hidden;
}

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

/* Scroll reveal (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
  .service-reveal,
  .about-reveal,
  .about-image-reveal,
  .gallery-reveal,
  .contact-reveal,
  .contact-form-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }
}

/* Navbar scroll state */
#navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(13, 27, 42, 0.06);
}

#navbar.scrolled .nav-link {
  color: #0d1b2a;
}

#navbar.scrolled .font-display {
  color: #0d1b2a;
}

#navbar.scrolled .menu-line {
  background: #0d1b2a;
}

#navbar.scrolled .mobile-link {
  color: #0d1b2a;
}

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

#mobile-menu.close {
  opacity: 0;
  pointer-events: none;
}

/* Menu icon animation */
.menu-open #menu-icon .menu-line:nth-child(1) {
  transform: rotate(45deg);
  top: 7px;
}
.menu-open #menu-icon .menu-line:nth-child(2) {
  opacity: 0;
}
.menu-open #menu-icon .menu-line:nth-child(3) {
  transform: rotate(-45deg);
  top: 7px;
}

/* Service cards */
.service-card {
  transition: background-color 0.5s ease;
}

/* Testimonial strip */
.testimonial-strip {
  animation: scroll-testimonials 30s linear infinite;
}

@keyframes scroll-testimonials {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.testimonial-strip:hover {
  animation-play-state: paused;
}

/* Selection color */
::selection {
  background: #c9a84c;
  color: #0a1628;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #c9a84c;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #b8943f;
}

/* Smooth focus */
:focus-visible {
  outline: 2px solid #c9a84c;
  outline-offset: 2px;
}

/* Subtle line decorations */
.divider-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(13, 27, 42, 0.1), transparent);
}
