/* ============================================================
    PÁGINA DE BOAS-VINDAS - TARDISTUDY
    Design moderno com animações e gradientes
============================================================ */

:root {
  --primary: #2e7d32;
  --primary-light: #66bb6a;
  --primary-dark: #1b5e20;
  --accent: #81c784;
  --bg-gradient: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  --text-primary: #2e3440;
  --text-secondary: #5e6c7e;
  --shadow-soft: 0 4px 20px rgba(46, 125, 50, 0.1);
  --shadow-medium: 0 8px 30px rgba(46, 125, 50, 0.15);
  --shadow-strong: 0 12px 40px rgba(46, 125, 50, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Acessibilidade: foco visível */
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2000;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 700;
  box-shadow: var(--shadow-medium);
  transform: translateY(-140%);
  transition: transform 0.2s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
}

body {
  font-family: "Inter", "Segoe UI", Roboto, sans-serif;
  color: var(--text-primary);
  overflow: hidden;
  height: 100vh;
}

/* Preferência do usuário: reduzir movimento */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.welcome-container {
  position: relative;
  width: 100%;
  height: 100vh;
  background: linear-gradient(
    135deg,
    rgba(232, 245, 233, 0.95) 0%,
    rgba(200, 230, 201, 0.9) 50%,
    rgba(165, 214, 167, 0.85) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Partículas de fundo */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.particle {
  position: absolute;
  background: rgba(46, 125, 50, 0.3);
  border-radius: 50%;
  animation: float 15s infinite ease-in-out;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0.3;
  }
  25% {
    transform: translateY(-100px) translateX(50px) scale(1.2);
    opacity: 0.5;
  }
  50% {
    transform: translateY(-200px) translateX(-50px) scale(0.8);
    opacity: 0.3;
  }
  75% {
    transform: translateY(-100px) translateX(-100px) scale(1.1);
    opacity: 0.4;
  }
}

/* Conteúdo principal */
.welcome-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 900px;
  width: 90%;
  max-height: 95vh;
  padding: 20px 40px;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(20px);
  border-radius: 32px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-strong);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Logo */
.logo-container {
  margin-bottom: 15px;
}

.logo-circle {
  width: 90px;
  height: 90px;
  margin: 0 auto;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-light) 100%
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-medium);
  animation: pulse 2s infinite;
}

.logo-circle i {
  font-size: 45px;
  color: white;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 8px 30px rgba(46, 125, 50, 0.15);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(46, 125, 50, 0.25);
  }
}

/* Título */
.welcome-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text-primary);
  line-height: 1.2;
}

.gradient-text {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-light) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.welcome-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  font-weight: 500;
}

.welcome-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.5;
  padding: 0 20px;
}

/* Features Preview */
.features-preview {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transition: transform 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
}

.feature-item i {
  font-size: 30px;
  color: var(--primary);
  background: rgba(46, 125, 50, 0.1);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  transition: all 0.3s ease;
}

.feature-item:hover i {
  background: var(--primary);
  color: white;
}

.feature-item span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Botão de Entrada */
.enter-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 40px;
  font-size: 1rem;
  font-weight: 700;
  color: white;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-light) 100%
  );
  border: none;
  border-radius: 50px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-medium);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  margin-bottom: 15px;
}

.enter-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.5s ease;
}

.enter-button:hover::before {
  left: 100%;
}

.enter-button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow-strong);
}

.enter-button i {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.enter-button:hover i {
  transform: translateX(5px);
}

/* Créditos */
.credits {
  margin-top: 15px;
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.credits p {
  margin: 4px 0;
}

.credits-sub {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* Tardigrade Flutuante */
.floating-tardigrade {
  position: absolute;
  bottom: 40px;
  right: 40px;
  z-index: 5;
}

.tardigrade-icon {
  font-size: 80px;
  animation: float-tardigrade 3s infinite ease-in-out;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

@keyframes float-tardigrade {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

/* Animações de Entrada */
.animate-fade-in {
  animation: fadeIn 1s ease forwards;
  opacity: 0;
}

.animate-slide-up {
  animation: slideUp 0.8s ease forwards;
  opacity: 0;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Delays para animações sequenciais */
.delay-1 {
  animation-delay: 0.2s;
}
.delay-2 {
  animation-delay: 0.4s;
}
.delay-3 {
  animation-delay: 0.6s;
}
.delay-4 {
  animation-delay: 0.8s;
}
.delay-5 {
  animation-delay: 1s;
}

/* Responsividade */
@media (max-width: 768px) {
  .welcome-content {
    padding: 20px 20px;
    border-radius: 24px;
    width: 95%;
  }

  .welcome-title {
    font-size: 1.8rem;
  }

  .welcome-subtitle {
    font-size: 1rem;
  }

  .welcome-description {
    font-size: 0.9rem;
    padding: 0 10px;
  }

  .logo-circle {
    width: 80px;
    height: 80px;
  }

  .logo-circle i {
    font-size: 40px;
  }

  .features-preview {
    gap: 20px;
  }

  .feature-item i {
    width: 55px;
    height: 55px;
    font-size: 26px;
  }

  .feature-item span {
    font-size: 0.85rem;
  }

  .enter-button {
    padding: 14px 32px;
    font-size: 0.95rem;
  }

  .floating-tardigrade {
    bottom: 15px;
    right: 15px;
  }

  .tardigrade-icon {
    font-size: 50px;
  }
}

@media (max-width: 480px) {
  .welcome-content {
    padding: 15px 15px;
    width: 96%;
  }

  .welcome-title {
    font-size: 1.5rem;
  }

  .welcome-subtitle {
    font-size: 0.9rem;
  }

  .welcome-description {
    font-size: 0.85rem;
  }

  .logo-circle {
    width: 70px;
    height: 70px;
  }

  .logo-circle i {
    font-size: 35px;
  }

  .features-preview {
    gap: 15px;
  }

  .feature-item i {
    width: 50px;
    height: 50px;
    font-size: 22px;
  }

  .feature-item span {
    font-size: 0.8rem;
  }

  .enter-button {
    padding: 12px 28px;
    font-size: 0.9rem;
  }

  .credits {
    font-size: 0.75rem;
  }

  .floating-tardigrade {
    bottom: 10px;
    right: 10px;
  }

  .tardigrade-icon {
    font-size: 40px;
  }
}

/* Tablets em modo paisagem */
@media (min-width: 769px) and (max-width: 1024px) {
  .welcome-content {
    max-width: 750px;
    padding: 25px 35px;
  }

  .welcome-title {
    font-size: 2rem;
  }
}

/* Telas grandes */
@media (min-width: 1440px) {
  .welcome-content {
    max-width: 1000px;
  }
}
