/* Reset e base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* Body com gradiente */
body {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  position: relative;
  overflow-x: hidden;
  flex-direction: column;
}

/* Partículas animadas */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  animation: float 15s infinite ease-in-out;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Particle delays e duração */
.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 12s; }
.particle:nth-child(2) { left: 20%; animation-delay: 2s; animation-duration: 15s; }
.particle:nth-child(3) { left: 30%; animation-delay: 4s; animation-duration: 18s; }
.particle:nth-child(4) { left: 40%; animation-delay: 1s; animation-duration: 14s; }
.particle:nth-child(5) { left: 50%; animation-delay: 3s; animation-duration: 16s; }
.particle:nth-child(6) { left: 60%; animation-delay: 5s; animation-duration: 13s; }
.particle:nth-child(7) { left: 70%; animation-delay: 2.5s; animation-duration: 17s; }
.particle:nth-child(8) { left: 80%; animation-delay: 4.5s; animation-duration: 15s; }
.particle:nth-child(9) { left: 90%; animation-delay: 1.5s; animation-duration: 19s; }
.particle:nth-child(10) { left: 95%; animation-delay: 3.5s; animation-duration: 14s; }

@keyframes float {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100vh) scale(1); opacity: 0; }
}

/* Sidebar */
.sidebar {
  position: fixed;
  left: -280px;
  top: 0;
  width: 280px;
  height: 100vh;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 4px 0 30px rgba(0, 0, 0, 0.3);
  transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.sidebar.active { left: 0; }

.sidebar-header {
  padding: 30px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: slideDown 0.6s ease;
}

.sidebar-header h2 {
  font-size: 24px;
  font-weight: 700;
  background: linear-gradient(135deg, #fff, #e0c3fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.close-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 5px;
  display: none;
}

.close-btn:hover {
  transform: rotate(90deg);
  color: #f093fb;
}

.sidebar-nav {
  flex: 1;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 25px;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  animation: slideRight 0.6s ease backwards;
}

.nav-item:nth-child(1) { animation-delay: 0.1s; }
.nav-item:nth-child(2) { animation-delay: 0.2s; }
.nav-item:nth-child(3) { animation-delay: 0.3s; }
.nav-item:nth-child(4) { animation-delay: 0.4s; }
.nav-item:nth-child(5) { animation-delay: 0.5s; }
.nav-item:nth-child(6) { animation-delay: 0.6s; }

.nav-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.nav-item:hover::before,
.nav-item.active::before { transform: scaleY(1); }

.nav-item:hover { background: rgba(255, 255, 255, 0.1); padding-left: 30px; }
.nav-item.active { background: rgba(255, 255, 255, 0.15); color: #f093fb; }
.nav-item i { font-size: 20px; width: 24px; text-align: center; }

/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  z-index: 999;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Hamburger */
.menu-toggle {
  position: fixed;
  top: 20px;
  left: 20px;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 998;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.6s ease;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Tela inicial */
.tela-inicial {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  padding: 50px 60px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  text-align: center;
  animation: fadeInUp 0.8s ease;
  margin: 20px;
  position: relative;
  z-index: 1;
}

/* Logo */
.logo-container {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  animation: pulse 2s infinite;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.logo-container i { font-size: 40px; color: #fff; }

@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4); }
  50% { transform: scale(1.05); box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6); }
}

.titulo {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #fff, #e0c3fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeIn 1s ease 0.2s backwards;
}

.subtitulo {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 10px;
  animation: fadeIn 1s ease 0.4s backwards;
}

/* Botões/cards */
.botoes-opcoes {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 500px;
}

.option-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 24px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.8s ease backwards;
  display: flex;
  align-items: center;
  gap: 20px;
  text-align: left;
}

.option-card:nth-child(1) { animation-delay: 0.6s; }
.option-card:nth-child(2) { animation-delay: 0.7s; }
.option-card:nth-child(3) { animation-delay: 0.8s; }

.option-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.option-card:hover::before { left: 100%; }

.option-card:hover {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3));
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 45px rgba(102, 126, 234, 0.5);
}

.option-card:active { transform: translateY(-2px) scale(1.01); }

.card-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.4s ease;
}

.option-card:hover .card-icon {
  transform: rotate(10deg) scale(1.1);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.6);
}

.card-icon i { font-size: 28px; color: #fff; }

.card-content { flex: 1; }
.card-content h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #fff;
}
.card-content p { font-size: 14px; color: rgba(255, 255, 255, 0.8); line-height: 1.4; }

.card-arrow {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.4s ease;
}

.option-card:hover .card-arrow {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(5px);
}

.card-arrow i { font-size: 18px; color: #fff; }

/* Features corrigidas */
.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 10px;
  animation: fadeIn 1s ease 0.9s backwards;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  min-width: 120px;
  transition: all 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-3px);
  color: #fff;
}

.feature-item i {
  font-size: 24px;
  color: #f093fb;
  display: block;
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  animation: fadeIn 1s ease 1.2s backwards;
}

.footer p { margin-bottom: 8px; }

.footer-links {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-links span { color: rgba(255, 255, 255, 0.5); }

/* Responsivo */
@media (max-width: 768px) {
  .sidebar { width: 280px; }
  .close-btn { display: block; }
  .tela-inicial { padding: 40px 30px; margin: 15px; }
  .logo-container { width: 60px; height: 60px; }
  .logo-container i { font-size: 30px; }
  .option-card { padding: 20px; gap: 15px; }
  .card-icon { width: 50px; height: 50px; }
  .card-icon i { font-size: 24px; }
  .card-content h3 { font-size: 18px; }
  .card-content p { font-size: 13px; }
  .card-arrow { width: 35px; height: 35px; }
  .features { gap: 20px; }
  .feature-item { font-size: 13px; min-width: 100px; }
  .feature-item i { font-size: 22px; }
  .footer { font-size: 12px; }
}

@media (max-width: 480px) {
  .menu-toggle { width: 45px; height: 45px; font-size: 18px; }
  .tela-inicial { padding: 30px 20px; }
  .logo-container { width: 60px; height: 60px; }
  .logo-container i { font-size: 30px; }
  .option-card { flex-direction: column; text-align: center; padding: 20px 15px; }
  .card-content { text-align: center; }
  .card-arrow { display: none; }
  .features { flex-direction: column; gap: 15px; align-items: center; }
  .feature-item { font-size: 12px; min-width: unset; }
  .feature-item i { font-size: 20px; }
  .footer-links { flex-wrap: wrap; }
}
