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

@layer base {
  :root {
    --custom-bg: rgb(236, 244, 252);
    --custom-bg-secondary: rgb(226, 234, 242);
    --custom-dark: rgb(14, 26, 75);
    --custom-orange: rgb(248, 127, 82);
    --custom-orange-dark: rgb(232, 90, 42);
    --custom-text: rgb(26, 26, 26);
    --custom-text-muted: rgb(13, 70, 175);
    --grid-color: rgb(229, 231, 235);
    --grid-pattern: linear-gradient(to right, var(--grid-color) 1px, transparent 1px),
                   linear-gradient(to bottom, var(--grid-color) 1px, transparent 1px);
    --grid-size: 24px 24px;
  }
}

@layer utilities {
      /* Hide scrollbar for Chrome, Safari and Opera */
      .no-scrollbar::-webkit-scrollbar {
          display: none;
      }
     /* Hide scrollbar for IE, Edge and Firefox */
      .no-scrollbar {
          -ms-overflow-style: none;  /* IE and Edge */
          scrollbar-width: none;  /* Firefox */
    }
  }

@layer components {
  .btn-primary {
    @apply px-6 py-2.5 text-white text-lg font-medium rounded-xl shadow-sm transition-all duration-200;
    background-color: var(--custom-orange);
  }
  .btn-primary:hover {
    background-color: var(--custom-orange-dark);
  }

  .input-primary {
    @apply w-full rounded-xl bg-white shadow-sm transition-all duration-200;
    border: 1px solid rgba(26, 26, 26, 0.2);
    color: var(--custom-text);
  }
  .input-primary:focus {
    outline: none;
    border-color: transparent;
    box-shadow: 0 0 0 2px var(--custom-orange);
  }

  .label-primary {
    @apply block text-sm font-medium mb-2;
    color: rgba(26, 26, 26, 0.6);
  }

  .bg-custom-bg {
    background-color: var(--custom-bg);
  }

  .bg-custom-bg-secondary {
    background-color: var(--custom-bg-secondary);
  }

  .bg-custom-dark {
    background-color: var(--custom-dark);
  }

  .bg-custom-orange {
    background-color: var(--custom-orange);
  }

  .text-custom-dark {
    color: var(--custom-dark);
  }

  .text-custom-text {
    color: var(--custom-text);
  }

  .text-custom-text-muted {
    color: var(--custom-text-muted);
  }

  .border-custom-dark {
    border-color: var(--custom-dark);
  }

  .ring-custom-orange {
    --tw-ring-color: var(--custom-orange);
  }

  .bg-grid-pattern {
    background-image: var(--grid-pattern);
    background-size: var(--grid-size);
  }
}

/*

@layer components {
  .btn-primary {
    @apply py-2 px-4 bg-blue-200;
  }
}

*/

@keyframes fadeOutOpacity {
  0% {
    opacity: 1;
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.animate-fade-out {
  animation: fadeOutOpacity 8s ease-in-out 1 forwards;
}

.animate-fade-out:hover {
  animation: none;
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

/* Client logo animation */
.client-logo {
  transition: transform 0.5s ease;
}

.client-logo:hover {
  transform: rotate(10deg) scale(1.1);
}

.client-logo-carousel {
  width: 100%;
  overflow: hidden;
  position: relative;
  margin-bottom: 1rem;
}

.logo-slider {
  display: flex;
  animation: scroll 25s linear infinite;
  width: max-content;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

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

@keyframes logoSpin {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}
