/* --- Existing Styles --- */
:root {
  --bg: #ffffff;
  --bg-alt: #fafafa;
  --fg: #0a0a0a;
  --fg-muted: #525252;
  --accent: #ffd200;
  --accent-hover: #e6bc00;
  --accent-soft: #fff5cc;
  --card: #ffffff;
  --border: #e5e5e5;
  --black: #0a0a0a;
  --error: #ff0000;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 17px;
}

body {
  font-family: "DM Sans", sans-serif;
  background: var(--bg);
  color: var(--fg);
  overflow-x: hidden;
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.2;
}

/* --- Preloader Styles --- */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--accent);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition:
    opacity 0.5s ease-out,
    visibility 0.5s ease-out;
}

#preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-logo {
  max-width: 400px;
  width: 80%;
  height: auto;
  transform: translateX(100vw);
  animation: slideInFromRight 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes slideInFromRight {
  0% {
    transform: translateX(100vw);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0) 100%
  );
  z-index: -1;
}

/* --- Navbar Styles --- */
.navbar-scrolled {
  background: var(--accent) !important;
  backdrop-filter: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.navbar-scrolled .nav-logo {
  filter: none;
}

.nav-link {
  color: var(--bg);
}

.navbar-scrolled .nav-link {
  color: var(--black) !important;
}

.navbar-scrolled .nav-link:hover {
  color: var(--bg) !important;
}

.nav-cta {
  background: var(--accent);
  color: var(--black);
}

.navbar-scrolled .nav-cta {
  background: var(--black);
  color: var(--bg);
}

.navbar-scrolled .nav-cta:hover {
  background: #333;
}

/* --- Buttons --- */
.btn-primary {
  background: var(--accent);
  color: var(--black);
  font-weight: 600;
  padding: 1.1rem 2.2rem;
  font-size: 1.05rem;
  border-radius: 4px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 210, 0, 0.4);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-outline-hero {
  background: transparent;
  color: var(--bg);
  font-weight: 600;
  padding: 1.1rem 2.2rem;
  font-size: 1.05rem;
  border-radius: 4px;
  border: 2px solid var(--bg);
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.btn-outline-hero:hover {
  background: var(--bg);
  color: var(--black);
}

/* --- Components --- */
.service-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-card:hover .service-icon {
  background: var(--accent);
}

/* --- Gallery Styles --- */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  min-height: 280px;
}

.gallery-item.row-span-2 {
  height: 100%;
  min-height: 500px;
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  z-index: 10;
  pointer-events: none;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* --- Video Play Overlay --- */
.video-play-overlay {
  opacity: 1;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.gallery-item.playing .video-play-overlay,
.aspect-\[9\/16\].playing .video-play-overlay {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 768px) {
  .gallery-item {
    min-height: 200px;
  }

  .gallery-item.row-span-2 {
    height: auto;
    min-height: 300px !important;
    aspect-ratio: 1/1;
  }

  .gallery-item.col-span-2.row-span-2 {
    min-height: 350px !important;
    aspect-ratio: auto;
  }
}

/* --- Marquee Animation --- */
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.marquee-content {
  display: flex;
  width: max-content;
  animation: marquee 15s linear infinite;
}

.marquee-content > div {
  flex-shrink: 0;
}

/* --- brand Logo Carousel Styles  --- */
.logo-marquee-content {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .marquee-content {
    animation-duration: 15s;
  }
  .logo-marquee-content {
    animation-duration: 25s;
  }
}

/* --- Mobile Menu --- */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-menu.open {
  transform: translateX(0);
}

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--accent);
  color: var(--black);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: 0 4px 15px rgba(255, 210, 0, 0.4);
  border: none;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(255, 210, 0, 0.5);
}

/* --- Hero Slider Dot Active State --- */
.slider-dot.active {
  background-color: var(--accent) !important;
  transform: scale(1.2);
}

/* --- Accessibility --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* Custom Alert Modal */
.custom-alert {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.custom-alert.active {
  opacity: 1;
  visibility: visible;
}
.alert-content {
  background-color: var(--bg);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  /* box-shadow: var(--shadow-hover); */
  transform: translateY(-20px);
  transition: var(--transition);
  position: relative;
}
.custom-alert.active .alert-content {
  transform: translateY(0);
}
.alert-icon {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 15px;
}
.alert-content h3 {
  color: var(--accent);
  margin-bottom: 15px;
}
.alert-content p {
  margin-bottom: 20px;
  font-size: 1.1rem;
}
.alert-btn {
  padding: 10px 25px;
  background-color: var(--accent);
  color: var(--light);
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.alert-btn:hover {
  background-color: var(--accent-hover);
}
