:root {
  --theme-color-background: #ffffff;
  --theme-color-foreground: #0f172a;
  --theme-color-primary: #1c3d73;
  --theme-color-primary-foreground: #ffffff;
  --theme-color-secondary: #f5b642;
  --theme-color-secondary-foreground: #1c3d73;
  --theme-color-muted: #f1f5f9;
  --theme-color-muted-foreground: #64748b;
  --theme-color-border: #e2e8f0;
  --theme-color-input: #e2e8f0;
  --theme-color-ring: #1c3d73;
  --theme-radius-lg: 0.75rem;
  --theme-radius-md: 0.625rem;
  --theme-radius-sm: 0.5rem;
  --theme-font-sans: "Inter", sans-serif;
  --theme-font-heading: "Poppins", sans-serif;
  --background: 0 0% 100%;
  --foreground: 210 29% 15%;
  --card: 0 0% 100%;
  --card-foreground: 210 29% 15%;
  --popover: 0 0% 100%;
  --popover-foreground: 210 29% 15%;
  --primary: 210 72% 20%;
  --primary-foreground: 0 0% 100%;
  --secondary: 38 92% 50%;
  --secondary-foreground: 210 29% 15%;
  --muted: 210 20% 96%;
  --muted-foreground: 210 10% 45%;
  --accent: 142 55% 40%;
  --accent-foreground: 0 0% 100%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 0 0% 98%;
  --border: 210 15% 90%;
  --input: 210 15% 90%;
  --ring: 210 72% 20%;
  --chart-1: 38 92% 50%;
  --chart-2: 142 55% 40%;
  --chart-3: 210 72% 20%;
  --chart-4: 38 70% 60%;
  --chart-5: 142 40% 55%;
  --radius: 0.5rem;
  --sidebar-background: 0 0% 98%;
  --sidebar-foreground: 210 29% 15%;
  --sidebar-primary: 210 72% 20%;
  --sidebar-primary-foreground: 0 0% 98%;
  --sidebar-accent: 210 20% 96%;
  --sidebar-accent-foreground: 210 29% 15%;
  --sidebar-border: 210 15% 90%;
  --sidebar-ring: 210 72% 20%;
}

body {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
}

.admin-bar header.sticky {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar header.sticky {
    top: 46px;
  }
}

.text-balance {
  text-wrap: balance;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease forwards;
}

.animate-fade-in-up-delay {
  animation: fadeInUp 0.8s ease 0.2s forwards;
  opacity: 0;
}

.js .scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .scroll-animate.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes brandScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

.brand-marquee {
  display: flex;
  overflow: hidden;
  gap: 2rem;
}

.brand-marquee-mask {
  mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
}

.brand-track {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-width: max-content;
  animation: brandScroll 22s linear infinite;
}

.slider-arrows {
  display: none;
}

.slider-arrows button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.mobile-slider {
  gap: 1.5rem;
}

.mobile-slider::-webkit-scrollbar,
.video-slider::-webkit-scrollbar {
  display: none;
}

.video-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 1.5rem;
  padding-bottom: 0.5rem;
  justify-content: flex-start;
}

.video-slider > * {
  flex: 0 0 min(88%, 420px);
  scroll-snap-align: start;
}

@media (max-width: 1024px) {
  .slider-arrows {
    display: flex;
  }

  .mobile-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
  }

  .mobile-slider > * {
    flex: 0 0 85%;
    scroll-snap-align: start;
  }

  .mobile-slider--services > * {
    flex-basis: 85%;
  }

  .mobile-slider--projects > * {
    flex-basis: 85%;
  }

  .mobile-slider--certs > * {
    flex-basis: 75%;
  }
}

@media (min-width: 1024px) {
  .video-slider {
    justify-content: center;
  }

  .video-slider > * {
    flex-basis: 360px;
  }
}

.brand-marquee:hover .brand-track {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .animate-fade-in-up,
  .animate-fade-in-up-delay {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .js .scroll-animate {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .brand-track {
    animation: none;
  }
}
