/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #020617;
  color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  padding-top: 40px; /* espaço para header fixo */
}

canvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -2;
}

/* HEADER */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 16px;
  letter-spacing: 2px;
  opacity: 0.9;
  z-index: 100;
}

/* BOTÃO DE LINGUAGEM */
.lang-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 8px 14px;
  border-radius: 12px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: 0.3s;
  font-weight: 500;
  z-index: 101;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

/* HERO SECTION */
.hero {
  text-align: center;
  padding: 20px 20px 80px;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: zoomIn 1.2s ease forwards;
  transform: scale(0.7);
  opacity: 0;
  margin-top: -50;
}

@keyframes zoomIn {
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* LOGO */
.logo {
  opacity: 0;
  animation: logoZoom 1.2s ease forwards;
  filter: drop-shadow(0 0 10px #38bdf8) drop-shadow(0 0 25px #6366f1);
  display: block;
  margin-bottom: 0.4em; /* distância logo -> texto */
}

@keyframes logoZoom {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* TÍTULO */
.hero h2 {
  font-size: clamp(28px, 6vw, 64px);
  line-height: 1.2;
  text-align: center;
  max-width: 900px;
  margin: 0 0 0.4em;
  word-break: break-word;
  text-shadow: 0 0 10px #38bdf8, 0 0 20px #6366f1; /* glow */
}

/* TYPING */
.typing {
  display: inline;
  position: relative;
  animation: textGlow 2.5s infinite ease-in-out;
}

.typing::after {
  content: "|";
  display: inline;
  margin-left: 2px;
  animation: blink 1s infinite;
  vertical-align: bottom;
}

/* CURSOR */
@keyframes blink {
  0%, 50%, 100% { opacity: 1; border-color: #38bdf8; }
  25%, 75% { opacity: 0; border-color: transparent; }
}

/* TEXT GLOW */
@keyframes textGlow {
  0% {
    text-shadow: 0 0 10px #38bdf8, 0 0 20px #38bdf8;
  }
  50% {
    text-shadow: 0 0 30px #6366f1, 0 0 60px #6366f1;
  }
  100% {
    text-shadow: 0 0 10px #38bdf8, 0 0 20px #38bdf8;
  }
}

/* BOTÃO PRINCIPAL */
.btn {
  display: inline-block;
  margin-top: 30px;
  padding: 30px 55px;
  border-radius: 50px;
  background: linear-gradient(90deg, #38bdf8, #6366f1);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  transition: 0.3s;
  box-shadow: 0 0 15px #38bdf8, 0 0 40px #6366f1;
  animation: pulse 2s infinite;
}

.btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 40px #6366f1, 0 0 100px #6366f1;
}

@keyframes pulse {
  0% { box-shadow: 0 0 15px #38bdf8; }
  50% { box-shadow: 0 0 50px #6366f1; }
  100% { box-shadow: 0 0 15px #38bdf8; }
}

/* SERVICES */
.services {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  margin-top: 60px;
}

.card {
  padding: 25px;
  border-radius: 20px;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255,255,255,0.1);
  width: 260px;
  text-align: center;
  transition: 0.3s;
  box-shadow: 0 0 20px rgba(56,189,248,0.2);
}

.card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 0 30px rgba(99,102,241,0.6);
}

.card h3 { margin-bottom: 10px; }
.card p { font-size: 14px; opacity: 0.8; }

/* FOOTER */
footer {
  width: 100%;
  text-align: center;
  font-size: 12px;
  opacity: 0.6;
  margin-top: auto;
  padding: 20px 0;
}

/* RESPONSIVO */
@media (max-width: 768px) {
  .services { flex-direction: column; align-items: center; }
  .card { width: 90%; max-width: 320px; }
  .hero h2 { font-size: 28px; }
  .btn { margin-top: 10px; }
}

@media (max-width: 414px) {
  body { padding-top: 100px; }
  header { font-size: 14px; }
  .hero { padding-top: 120px; padding-bottom: 60px; }
  .btn { padding: 16px 40px; font-size: 16px; }
  footer { font-size: 10px; padding: 15px 0; }
}