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

/* ===== RESET E TRAVA MOBILE ===== */
html,
body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

/* ===== VARIÁVEIS ===== */
:root {
  --black: #000000;
  --white: #ffffff;
  --white-fine: #e0e0e0;
  --white-subtle: #a0a0a0;
  --border: #333333;
}

/* ===== BASE ===== */
@layer base {
  html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
  }

  body {
    background-color: var(--black);
    color: var(--white-fine);
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont,
      "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;
  }

  a {
    color: var(--white-fine);
    text-decoration: none;
    transition: color 0.2s;
  }

  a:hover {
    color: var(--white);
  }

  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }
}

/* ✅ ADICIONE AS ANIMAÇÕES PERSONALIZADAS AQUI DENTRO */
@layer components {
  /* --- Animações para o Hero Slider --- */
  @keyframes slideOutLeft {
    0% { transform: translateX(0); opacity: 1; }
    100% { transform: translateX(-100%); opacity: 0; }
  }

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

  @keyframes fadeInPop {
    0% { opacity: 0; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
  }

  @keyframes floatIn {
    0% { opacity: 0; transform: translateY(20px) scale(0.98); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
  }

  .slide-out {
    animation: slideOutLeft 0.6s ease forwards;
  }

  .slide-in {
    animation: slideInRight 0.6s ease 0.1s forwards;
  }
}

/* ===== SCROLL HORIZONTAL APENAS ONDE PERMITIDO ===== */
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

@media (prefers-reduced-motion: reduce) {
  .group-hover\:bg-\[\#FF5E00\]\/20,
  .animate-float,
  .transition-all {
    animation: none !important;
    transition: none !important;
  }
}

/* Animação de flutuação suave */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0px); }
}
.animate-float {
  animation: float 6s ease-in-out infinite;
}