body {
  overflow-x: hidden;
  transition:
    background-color 0.5s ease,
    color 0.5s ease;
}

/* Lenis Smooth Scroll CSS Required Classes */
html.lenis {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

/* Preloader */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.clip-text {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}

/* Nav Glassmorphism */
.nav-transparent {
  background: transparent;
  border-bottom: 1px solid transparent;
}
.nav-scrolled {
  background: rgba(250, 249, 246, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.dark .nav-scrolled {
  background: rgba(9, 9, 11, 0.85);
  border-bottom: 1px solid rgba(181, 142, 62, 0.15);
}

/* Hardware Acceleration & Animations */
.reveal-up {
  opacity: 0;
  transform: translateY(50px);
  will-change: transform, opacity;
}

/* Hero Slider */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: 0;
  overflow: hidden;
}
.hero-slide.active {
  opacity: 1;
  z-index: 10;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 6s linear;
  will-change: transform;
}
.hero-slide.active img {
  transform: scale(1);
}

/* Premium Card Hover Mechanics */
.service-card {
  transition:
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.6s ease;
  will-change: transform, box-shadow;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.08);
  border-color: theme("colors.accent");
}
.dark .service-card:hover {
  box-shadow: 0 30px 60px -20px rgba(181, 142, 62, 0.15);
  border-color: theme("colors.accent");
}

.icon-box {
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-card:hover .icon-box {
  background-color: theme("colors.onyx");
  color: theme("colors.ivory");
  transform: scale(1.1) rotate(-5deg);
}
.dark .service-card:hover .icon-box {
  background-color: theme("colors.accent");
  color: theme("colors.white");
}

/* Gallery System */
.gallery-item {
  overflow: hidden;
  transform: translateZ(0);
  cursor: pointer;
  position: relative;
}
.gallery-item img {
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.gallery-item:hover img {
  transform: scale(1.08);
}

/* Lightbox */
#lightbox iframe {
  width: 100%;
  height: 100%;
  aspect-ratio: 16/9;
}
