:root {
  --bg-dark: #0f172a;
  --bg-card: #1e293b;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-color: #334155;
  --accent-blue: #38bdf8;
  --accent-primary: #0284c7;
  --accent-green: #34d399;
  --accent-amber: #fbbf24;
  --whatsapp-color: #25d366;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* HEADER & NAVBAR */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  padding: 12px 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10%;
}

.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 22px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--accent-blue);
}

.btn-header {
  background: var(--accent-primary);
  color: #ffffff;
  padding: 6px 14px;
  font-size: 0.85rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.btn-header:hover {
  background: #0369a1;
}

/* ESPAÇOS DE PROPAGANDA PAGA */
.ad-banner {
  background: rgba(30, 41, 59, 0.6);
  border: 1px dashed #475569;
  border-radius: 8px;
  text-align: center;
  padding: 15px;
  margin: 25px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ad-banner-top {
  margin-top: 100px;
  margin-bottom: -120px;
}

.ad-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #64748b;
  margin-bottom: 5px;
  font-weight: 700;
}

.ad-content-placeholder {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ad-content-placeholder i {
  color: var(--accent-amber);
}

.ad-card {
  background: rgba(30, 41, 59, 0.4);
  border: 1px dashed #475569;
  border-radius: 12px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 250px;
}

/* HERO SECTION */
.hero {
  padding: 160px 0 90px;
  text-align: center;
  background: radial-gradient(circle at center, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 1) 70%);
  border-bottom: 1px solid var(--border-color);
}

.hero-badge {
  display: inline-block;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--accent-blue);
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 25px;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero h1 span {
  color: var(--accent-blue);
}

.hero p {
  max-width: 750px;
  margin: 0 auto 35px;
  font-size: 1.15rem;
  color: var(--text-muted);
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--accent-primary);
  color: #ffffff;
  padding: 11px 25px;
  font-size: 0.9rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: background-color 0.2s, transform 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-primary:hover {
  background: #0369a1;
  transform: translateY(-2px);
}

.btn-whatsapp-hero {
  background: var(--whatsapp-color);
  color: #ffffff;
  padding: 11px 25px;
  font-size: 0.9rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-whatsapp-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(37, 211, 102, 0.3);
}

/* SEÇÕES E GRIDS */
.category-section {
  padding: 80px 0;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.category-title {
  font-size: 1.8rem;
  font-weight: 700;
}

.badge {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-info { background-color: rgba(56, 189, 248, 0.15); color: var(--accent-blue); }
.badge-eletro { background-color: rgba(251, 191, 36, 0.15); color: var(--accent-amber); }
.badge-iot { background-color: rgba(52, 211, 153, 0.15); color: var(--accent-green); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
}

/* CARTÕES DE SERVIÇO & CURSOS */
.card-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
  border-color: var(--accent-blue);
}

.card-icon {
  font-size: 1.8rem;
  color: var(--accent-blue);
  margin-bottom: 15px;
  width: 45px;
  height: 45px;
  background: rgba(56, 189, 248, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-box h3, .card-box h4 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--text-main);
}

.card-box p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 15px;
  flex-grow: 1;
}

.service-list {
  list-style: none;
  padding: 0;
  margin-bottom: 15px;
}

.service-list li {
  font-size: 0.9rem;
  color: var(--text-main);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-list li i {
  color: var(--accent-blue);
  font-size: 0.8rem;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: 0.75rem;
  margin-top: auto;
}

/* FORMULÁRIO DE CONTATO & CANAIS */
.contact-section {
  padding: 80px 0;
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  margin-top: 1.5rem;
}

.contact-info-block {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item-box {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  padding: 15px 20px;
  border-radius: 10px;
  color: var(--text-main);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}

.contact-item-box:hover {
  border-color: var(--accent-blue);
  transform: translateX(5px);
}

.contact-item-box i {
  font-size: 1.5rem;
  color: var(--accent-blue);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.form-input, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-main);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--accent-blue);
}

.form-textarea {
  resize: vertical;
  min-height: 110px;
}

.btn-submit {
  padding: 0.68rem;
  font-size: 0.9rem;
  background-color: var(--accent-primary);
  color: #ffffff;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-submit:hover {
  background-color: #0369a1;
}

/* BOTÃO FLUTUANTE WHATSAPP */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 45px;
  height: 45px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  font-size: 22px;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.5);
}

/* FOOTER */
footer {
  padding: 50px 0 30px;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* MODAL */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.85);
  align-items: center;
  justify-content: center;
}

.modal.active { display: flex; }

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  max-width: 450px;
  width: 90%;
}

.modal-header {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent-blue);
  margin-bottom: 12px;
}

.modal-body {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.modal-btn {
  background: var(--accent-blue);
  color: #0f172a;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  float: right;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero h1 { font-size: 2rem; }
  .hero-buttons { flex-direction: column; }
  .btn-primary, .btn-whatsapp-hero { width: 100%; justify-content: center; }
  .ad-banner-top { margin-top: 80px; margin-bottom: -130px; }
}


/* Estilos adicionais para aviso "Em Breve" nos Cursos */
.course-header-tags {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.badge-coming-soon {
  background-color: rgba(251, 191, 36, 0.2);
  color: var(--accent-amber);
  border: 1px solid rgba(251, 191, 36, 0.4);
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-weight: 700;
}

.coming-soon-banner {
  margin-top: 15px;
  padding: 8px;
  background-color: rgba(2, 132, 199, 0.15);
  border: 1px dashed var(--accent-blue);
  border-radius: 6px;
  color: var(--accent-blue);
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
}


/* Grid de Canais de Contato Direto */
.contact-grid-direct {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}


/* Estilos adicionais para o Curso Gratuito e Página Dedicada */
.badge-free {
  background-color: rgba(52, 211, 153, 0.2);
  color: var(--accent-green);
  border: 1px solid rgba(52, 211, 153, 0.4);
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-weight: 700;
}

.highlight-course {
  border-color: var(--accent-green) !important;
  box-shadow: 0 0 15px rgba(52, 211, 153, 0.15);
}

.btn-course-access {
  margin-top: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  background-color: var(--accent-green);
  color: #0f172a;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 6px;
  transition: transform 0.2s, background-color 0.2s;
}

.btn-course-access:hover {
  background-color: #22c55e;
  transform: translateY(-2px);
}

.modules-accordion {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.module-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
}

.module-card h3 {
  font-size: 1.15rem;
  color: var(--accent-blue);
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}
