@import "tailwindcss";

:root {
  --background: #ffffff;
  --foreground: #171717;
}

@theme inline {
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --font-sans: var(--font-tt-hoves);
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0a0a0a;
    --foreground: #ededed;
  }
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-tt-hoves), sans-serif;
}

.home-slider {
  --swiper-pagination-bottom: 230px;
}

.home-slider.swiper-fade .swiper-slide {
  pointer-events: none;
}

.home-slider.swiper-fade .swiper-slide-active {
  pointer-events: auto;
}

.home-slider .swiper-pagination {
  z-index: 20;
}

.home-slider .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: rgba(0, 0, 0, 0.25);
  opacity: 1;
}

.home-slider .swiper-pagination-bullet-active {
  background: #ffffff;
}

.swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: rgba(0, 0, 0, 0.25);
  opacity: 1;
}

.swiper-pagination-bullet-active {
  background: #f97316;
}

.home-news-slider .swiper-slide {
  height: auto;
}

/* Reusable scroll-reveal animations (pure CSS) */
@keyframes slide-in-left {
  from {
    opacity: 0;
    transform: translateX(-3rem);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slide-in-right {
  from {
    opacity: 0;
    transform: translateX(3rem);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fade-up-shade {
  from {
    opacity: 0;
    transform: translateY(2rem);
    filter: brightness(0.55);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: brightness(1);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(2rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.anim-slide-left:not(.is-visible),
.anim-fade-up-shade:not(.is-visible),
.anim-fade-up:not(.is-visible) {
  opacity: 0;
}

.anim-slide-left.is-visible {
  animation: slide-in-left 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.anim-fade-up-shade.is-visible {
  animation: fade-up-shade 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.anim-fade-up.is-visible {
  animation: fade-up 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.is-visible.anim-delay-150 { animation-delay: 150ms; }
.is-visible.anim-delay-300 { animation-delay: 300ms; }
.is-visible.anim-delay-450 { animation-delay: 450ms; }
.is-visible.anim-delay-600 { animation-delay: 600ms; }

@media (prefers-reduced-motion: reduce) {
  .anim-slide-left,
  .anim-fade-up-shade,
  .anim-fade-up {
    opacity: 1 !important;
    animation: none !important;
  }
}

.product-tab-icon {
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.product-tab-icon--inactive {
  opacity: 0.4;
}

.product-tab-icon--active-native {
  opacity: 1;
}

.product-tab-icon--active-orange {
  opacity: 1;
  filter: brightness(0) saturate(100%) invert(54%) sepia(98%) saturate(2476%) hue-rotate(346deg)
    brightness(101%) contrast(96%);
}

.product-anim-image {
  animation: slide-in-left 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.product-anim-image-right {
  animation: slide-in-right 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.product-anim-text {
  animation: fade-up-shade 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  .product-anim-image,
  .product-anim-image-right,
  .product-anim-text {
    animation: none !important;
  }
}

.about-values-scroll {
  scrollbar-width: thin;
  scrollbar-color: #d4d4d8 transparent;
}

.about-values-scroll::-webkit-scrollbar {
  width: 4px;
}

.about-values-scroll::-webkit-scrollbar-thumb {
  border-radius: 9999px;
  background: #d4d4d8;
}
