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

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

body {
  overflow-x: hidden;
}

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

.animate-fade-up {
  animation-name: fadeUp;
  animation-duration: 0.8s;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  animation-fill-mode: both;
}

/* Scroll Reveal */
.reveal {
  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);
}

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

/* Service Card Hover */
.service-card {
  position: relative;
  background: #fff;
  border: 1px solid rgba(10, 31, 63, 0.08);
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #C9A22B;
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover::after {
  width: 100%;
}

/* Navbar */
#navbar {
  backdrop-filter: blur(0px);
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(10, 31, 63, 0.08);
}

#navbar.scrolled .nav-link {
  color: rgba(10, 31, 63, 0.8) !important;
}

#navbar.scrolled .w-9 {
  background-color: #C9A22B !important;
}

/* Mobile Menu */
#mobile-menu {
  box-shadow: none;
}

#mobile-menu.open {
  box-shadow: 0 0 60px rgba(10, 31, 63, 0.1);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #f5f5f5;
}

::-webkit-scrollbar-thumb {
  background: #C9A22B;
  border-radius: 3px;
}

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

/* Selection */
::selection {
  background: rgba(201, 162, 43, 0.2);
  color: #0A1F3F;
}

/* Focus */
:focus-visible {
  outline: 2px solid #C9A22B;
  outline-offset: 2px;
}

/* Image placeholder */
img {
  max-width: 100%;
  height: auto;
}

/* Smooth image loading */
img {
  opacity: 1;
  transition: opacity 0.3s ease;
}

img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.5s ease;
}

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