/* ==========================================================================
   DESIGN SYSTEM - OITTO HUB
   Cores:
   - Azul Petróleo (Principal): #013441
   - Coral (Acento/Glow): #EC5F52
   - Marfim (Texto/Secundária): #F6F2E6
   ========================================================================== */

:root {
  --color-petroleo: #013441;
  --color-petroleo-light: #02485a;
  --color-coral: #EC5F52;
  --color-marfim: #F6F2E6;
  --font-brand: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* Reset básico e Moderno */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--color-petroleo);
  color: var(--color-marfim);
  font-family: var(--font-body);
  overflow: hidden; /* Evita scrolls indesejados durante o preloader e na index estática */
  height: 100vh;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ==========================================================================
   ESTILOS DO PRELOADER
   ========================================================================== */

.preloader-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-petroleo);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.8s;
  padding: 20px;
}

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 400px;
  text-align: center;
}

/* Container do Logo com efeito Glow */
.logo-wrapper {
  width: 150px;
  height: 150px;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.logo-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.logo-wrapper svg {
  width: 100%;
  height: 100%;
}

/* Animação Glow Pulsante Lenta */
.pulse-glow {
  animation: slowGlow 2.5s ease-in-out infinite;
  will-change: transform, filter, opacity;
}

@keyframes slowGlow {
  0% {
    transform: scale(0.96);
    filter: drop-shadow(0 0 12px rgba(236, 95, 82, 0.35)) opacity(0.8);
  }
  50% {
    transform: scale(1.04);
    filter: drop-shadow(0 0 28px rgba(236, 95, 82, 0.75)) opacity(1);
  }
  100% {
    transform: scale(0.96);
    filter: drop-shadow(0 0 12px rgba(236, 95, 82, 0.35)) opacity(0.8);
  }
}

/* Barra de Progresso */
.loader-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.progress-bar-container {
  width: 85%;
  max-width: 320px;
  height: 6px;
  background-color: rgba(246, 242, 230, 0.12);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(246, 242, 230, 0.05);
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background-color: var(--color-coral);
  border-radius: 20px;
  box-shadow: 0 0 12px var(--color-coral);
  transition: width 0.1s linear;
}

/* Frases Divertidas */
.loading-text-container {
  margin-top: 18px;
  height: 24px; /* Evita que o layout pule quando o texto muda */
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-phrase-text {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--color-marfim);
  opacity: 0.75;
  letter-spacing: 0.05em;
  transition: opacity 0.25s ease-in-out;
}

.loading-phrase-text.fade-out {
  opacity: 0;
}

/* ==========================================================================
   ESTILOS DA PÁGINA INDEX (EM BREVE)
   ========================================================================== */

.main-layout {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 40px 20px;
  opacity: 1;
  visibility: visible;
  transition: opacity 1s ease-in-out;
}

.index-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: 600px;
}

/* Imagem/Ilustração Central */
.illustration-wrapper {
  width: 280px;
  height: 280px;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s ease;
}

.illustration-wrapper:hover {
  transform: translateY(-5px);
}

.illustration-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.illustration-wrapper svg {
  width: 100%;
  height: 100%;
}

/* Tipografia Principal */
.main-title {
  font-family: var(--font-brand);
  font-size: 3rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: lowercase;
  color: var(--color-marfim);
  margin-bottom: 8px;
}

.main-title span {
  font-weight: 700;
  color: var(--color-coral);
}

.coming-soon-text {
  font-family: var(--font-brand);
  font-size: 1.15rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  color: var(--color-marfim);
  opacity: 0.85;
  text-transform: lowercase;
  position: relative;
  padding-bottom: 12px;
}

/* Linha sutil decorativa abaixo do texto */
.coming-soon-text::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background-color: var(--color-coral);
  border-radius: 2px;
  box-shadow: 0 0 6px var(--color-coral);
}

/* Rodapé */
.footer {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--color-marfim);
  opacity: 0.4;
  text-align: center;
  margin-top: 20px;
}

/* Classes Auxiliares */
.hidden {
  display: none !important;
  opacity: 0;
  visibility: hidden;
}

/* ==========================================================================
   RESPONSIVIDADE (MEDIA QUERIES)
   ========================================================================== */

@media (max-width: 480px) {
  .logo-wrapper {
    width: 120px;
    height: 120px;
    margin-bottom: 30px;
  }

  .illustration-wrapper {
    width: 220px;
    height: 220px;
    margin-bottom: 20px;
  }

  .main-title {
    font-size: 2.2rem;
  }

  .coming-soon-text {
    font-size: 0.95rem;
    letter-spacing: 0.2em;
  }

  .progress-bar-container {
    width: 90%;
  }

  .footer {
    font-size: 0.7rem;
  }
}

@media (min-width: 1200px) {
  .illustration-wrapper {
    width: 320px;
    height: 320px;
  }

  .main-title {
    font-size: 3.5rem;
  }

  .coming-soon-text {
    font-size: 1.25rem;
  }
}
