@tailwind base;
@tailwind components;
@tailwind utilities;

/* Definition of the design system. All colors, gradients, fonts, etc should be defined here. 
All colors MUST be HSL.
*/

@layer base {
  :root {
    --background: 0 0% 100%;
    --foreground: 208 100% 15%;

    --card: 0 0% 100%;
    --card-foreground: 208 100% 15%;

    --popover: 0 0% 100%;
    --popover-foreground: 208 100% 15%;

    --primary: 208 100% 29.4%;
    --primary-foreground: 210 40% 98%;

    --secondary: 22.3 89.6% 54.1%;
    --secondary-foreground: 210 40% 98%;

    --muted: 210 40% 96.1%;
    --muted-foreground: 215.4 16.3% 46.9%;

    --accent: 204.3 73% 75.9%;
    --accent-foreground: 208 100% 29.4%;

    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 210 40% 98%;

    --border: 214.3 31.8% 91.4%;
    --input: 214.3 31.8% 91.4%;
    --ring: 208 100% 29.4%;

    --radius: 0.5rem;

    --sidebar-background: 0 0% 98%;

    --sidebar-foreground: 240 5.3% 26.1%;

    --sidebar-primary: 240 5.9% 10%;

    --sidebar-primary-foreground: 0 0% 98%;

    --sidebar-accent: 240 4.8% 95.9%;

    --sidebar-accent-foreground: 240 5.9% 10%;

    --sidebar-border: 220 13% 91%;

    --sidebar-ring: 217.2 91.2% 59.8%;
  }

  .dark {
    --background: 208 100% 12%;
    --foreground: 210 40% 98%;

    --card: 208 100% 15%;
    --card-foreground: 210 40% 98%;

    --popover: 208 100% 15%;
    --popover-foreground: 210 40% 98%;

    --primary: 208 100% 45%;
    --primary-foreground: 210 40% 98%;

    --secondary: 22.3 89.6% 54.1%;
    --secondary-foreground: 210 40% 98%;

    --muted: 208 50% 20%;
    --muted-foreground: 215 20.2% 65.1%;

    --accent: 204.3 73% 75.9%;
    --accent-foreground: 208 100% 15%;

    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 210 40% 98%;

    --border: 208 50% 25%;
    --input: 208 50% 25%;
    --ring: 208 100% 45%;
    --sidebar-background: 208 100% 10%;
    --sidebar-foreground: 240 4.8% 95.9%;
    --sidebar-primary: 208 100% 45%;
    --sidebar-primary-foreground: 0 0% 100%;
    --sidebar-accent: 208 50% 20%;
    --sidebar-accent-foreground: 240 4.8% 95.9%;
    --sidebar-border: 208 50% 25%;
    --sidebar-ring: 217.2 91.2% 59.8%;
  }
}

@layer base {
  * {
    @apply border-border;
  }

  body {
    @apply bg-background text-foreground antialiased;
  }
}

/* Mobile Spacing Optimizations to reduce negative space */
@media (max-width: 767px) {
  .py-32 {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
  }
  .py-24 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  .py-20 {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }
  .py-16 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

  .pt-32 {
    padding-top: 4rem !important;
  }
  .pt-28 {
    padding-top: 3.5rem !important;
  }
  .pt-24 {
    padding-top: 3rem !important;
  }

  .pb-32 {
    padding-bottom: 4rem !important;
  }
  .pb-24 {
    padding-bottom: 3rem !important;
  }
  .pb-20 {
    padding-bottom: 2.5rem !important;
  }
  .pb-16 {
    padding-bottom: 2rem !important;
  }

  .my-24 {
    margin-top: 3rem !important;
    margin-bottom: 3rem !important;
  }
  .my-20 {
    margin-top: 2.5rem !important;
    margin-bottom: 2.5rem !important;
  }
  .my-16 {
    margin-top: 2rem !important;
    margin-bottom: 2rem !important;
  }

  .mt-24 {
    margin-top: 3rem !important;
  }
  .mt-20 {
    margin-top: 2.5rem !important;
  }
  .mt-16 {
    margin-top: 2rem !important;
  }

  .mb-24 {
    margin-bottom: 3rem !important;
  }
  .mb-20 {
    margin-bottom: 2.5rem !important;
  }
  .mb-16 {
    margin-bottom: 2rem !important;
  }
  .mb-12 {
    margin-bottom: 1.5rem !important;
  }

  .gap-16 {
    gap: 2rem !important;
  }
  .gap-12 {
    gap: 1.5rem !important;
  }

  .p-16 {
    padding: 2rem !important;
  }
  .p-12 {
    padding: 1.5rem !important;
  }
  .p-10 {
    padding: 1.5rem !important;
  }
}

/* Client logo marquee */
.marquee-fade {
  width: 120px;
}
.client-logo-marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  margin-left: 140px;
  will-change: transform;
  backface-visibility: hidden;
  animation: clientLogoScroll 66s linear infinite;
}
.client-logo-marquee-track:hover {
  animation-play-state: paused;
}
@keyframes clientLogoScroll {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .client-logo-marquee-track {
    animation: none;
  }
}
@media (max-width: 767px) {
  .client-logo-marquee-track {
    margin-left: 24px;
  }
  .marquee-fade {
    width: 24px !important;
    opacity: 0.7;
  }
  .marquee-logo-img {
    height: 56px !important;
    margin-right: 40px !important;
  }
}
