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

/* === BASE GERAL === */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #0f2027;
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
}

canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -2;
}

.overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6)
    url('https://images.unsplash.com/photo-1581093458791-9f3c5c8b77c9?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80')
    no-repeat center/cover;
  z-index: -1;
  filter: brightness(0.3);
}

/* ===================== INDEX ===================== */
body.index {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

body.index .content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

body.index h1 {
  font-size: clamp(1.8rem, 6vw, 3.5rem);
  color: #00d4ff;
  text-shadow: 0px 0px 25px rgba(0, 212, 255, 0.9),
               0px 0px 50px rgba(0, 212, 255, 0.6);
  font-weight: bold;
  letter-spacing: 2px;
  animation: glow 2.5s infinite alternate;
}
@keyframes glow {
  from { text-shadow: 0 0 10px #00d4ff, 0 0 20px #00d4ff; }
  to   { text-shadow: 0 0 25px #00eaff, 0 0 50px #00eaff; }
}

body.index .typing {
  border-right: 3px solid #00d4ff;
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
}

body.index p {
  font-size: clamp(1rem, 3vw, 1.3rem);
  margin-top: 15px;
  color: #ddd;
}

body.index footer {
  position: absolute;
  bottom: 10px;
  width: 100%;
  text-align: center;
  font-size: clamp(0.7rem, 2vw, 0.9rem);
  color: #aaa;
}

/* ===================== SOLUÇÕES ===================== */
body.solucoes { display: block; }

header {
  background: rgba(0,0,0,0.85);
  padding: 15px 30px;
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid #00d4ff;
  position: sticky; top: 0; z-index: 10;
}
header h1 { font-size: 1.5rem; color: #00d4ff; margin: 0; }
header a {
  text-decoration: none; background: #00d4ff; color: #000;
  padding: 8px 16px; border-radius: 5px; transition: 0.3s;
}
header a:hover { background: #fff; color: #000; }

.container { max-width: 1100px; margin: 50px auto; padding: 0 20px; }
.container h2 {
  text-align: center; font-size: 2.2rem; margin-bottom: 40px;
  color: #00d4ff; text-shadow: 0 0 15px rgba(0,212,255,0.6);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.card {
  background: rgba(255,255,255,0.05);
  padding: 25px;
  border-radius: 12px;
  border: 1px solid rgba(0,212,255,0.2);
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 25px rgba(0,212,255,0.4);
}
.card h3 { margin-top: 0; color: #00d4ff; font-size: 1.3rem; }
.card p { color: #ccc; font-size: 1rem; line-height: 1.5; }

.video-wrapper, .image-wrapper { margin-top: 10px; }
.video-wrapper { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 8px; }
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.image-wrapper img {
  width: 100%;
  max-width: 400px;
  height: 200px;
  object-fit: contain;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

/* ===================== BOTÕES ===================== */
.btn {
  margin-top: 20px;
  padding: 12px 25px;
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  border: none; border-radius: 30px;
  background: #00d4ff;
  color: #000; cursor: pointer;
  transition: 0.4s;
  text-decoration: none;
  display: inline-block;
  min-width: 150px;
  box-shadow: 0 0 15px rgba(0,212,255,0.4);
}
.btn:hover {
  background: #fff; 
  color: #000;
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(0,212,255,0.9);
}

.btn-outline {
  margin-left: 10px;
  background: transparent;
  color: #00d4ff;
  border: 1px solid #00d4ff;
  transition: 0.4s;
}
.btn-outline:hover {
  background: #00d4ff;
  color: #000;
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(0,212,255,0.9);
}

/* ===================== PAGINAÇÃO ===================== */
.pagination {
  display: flex; justify-content: center; align-items: center;
  margin-top: 30px; gap: 15px; font-size: 1.1rem;
}
.pagination button {
  background: #00d4ff; border: none; color: #000;
  padding: 8px 16px; border-radius: 5px; cursor: pointer;
  transition: 0.3s;
}
.pagination button:hover { background: #fff; }
.pagination span { color: #ccc; }

/* ===================== FOOTER ===================== */
footer {
  text-align: center;
  padding: 20px;
  margin-top: 50px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem; color: #aaa;
  position: relative;
}

/* ===================== BOTÃO DE SOM ===================== */
#muteBtn {
  position: fixed;
  top: 15px; right: 15px;
  background: rgba(0, 212, 255, 0.2);
  border: 1px solid #00d4ff;
  color: #00d4ff;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: clamp(14px, 4vw, 18px);
  z-index: 10;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}
#muteBtn.active { animation: none; }

/* ===================== RESPONSIVO ===================== */
@media (max-width: 600px) {
  .btn {
    display: block;
    margin: 10px auto;
    width: 80%;
  }
}
