/* ----------------- Fonte Moderna ----------------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

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

/* ----------------- Preloader ----------------- */
#preloader {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #0f172a;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loader {
  width: 60px;
  height: 60px;
  border: 5px solid #2563eb;
  border-top: 5px solid transparent;
  border-radius: 50%;
  animation: spin 1.5s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ----------------- Fundo Global ----------------- */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: url('Infraestrutura-de-rede.webp') no-repeat center/cover;
  position: relative;
  overflow-x: hidden;
  color: #fff;
}

body::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(15,23,42,0.9), rgba(124,58,237,0.6));
  z-index: 1;
}

.navbar, .hero, section, footer {
  position: relative;
  z-index: 2;
}

/* ----------------- Navbar ----------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 16px 60px;
  background: rgba(15,23,42,0.5);
  backdrop-filter: blur(12px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  z-index: 1000;
}

.navbar .logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}

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

.navbar .nav-links li a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 14px;
  transition: 0.3s;
  border-radius: 6px;
}

.navbar .nav-links li a:hover,
.navbar .nav-links li a.active {
  background: #2563eb;
  color: #fff;
}

/* ----------------- Menu Mobile ----------------- */
.menu-toggle {
  display: none;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  z-index: 1001;
}

/* ----------------- Hero ----------------- */
.hero {
  min-height: 100vh;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #fff;
}

.hero-content p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 30px;
  opacity: 0.9;
  color: #e2e8f0;
}

.cta-btn {
  display: inline-block;
  padding: 14px 36px;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  color: #fff;
  border-radius: 40px;
  font-weight: 700;
  transition: all 0.3s ease;
}

.cta-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 0 20px rgba(37,99,235,0.6);
}


/* ----------------- Seções ----------------- */
section {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px;
  text-align: center;
}

section h2 {
  font-size: 2.2rem;
  color: #ffffff;
  margin-bottom: 40px;
  text-transform: uppercase;
}

/* ----------------- Carrossel ----------------- */
.carousel-container {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 24px;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
}

.carousel-container::-webkit-scrollbar {
  display: none;
}

.carousel-item {
  flex: 1 1 300px;
  max-width: 300px;
  background: #ffffff;
  color: #1e293b;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 28px 22px;
  text-align: center;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
}

.carousel-item h3 {
  color: #1E40AF;
  font-size: 1.25rem;
  margin-bottom: 12px;
  font-weight: 700;
}

.carousel-item p {
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.5;
}

.carousel-item:hover {
  transform: translateY(-6px);
  border: 1px solid #3B82F6;
  box-shadow: 0 8px 24px rgba(59,130,246,0.25);
}

/* ----------------- Diferenciais ----------------- */
.diferenciais-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.diferencial-item {
  flex: 1 1 260px;
  max-width: 300px;
  background: rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  transition: 0.3s;
}

.diferencial-item:hover {
  background: rgba(255,255,255,0.15);
}

/* ----------------- Depoimentos ----------------- */
.depoimentos-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.depoimento-item {
  flex: 1 1 300px;
  max-width: 320px;
  background: #fff;
  color: #1e293b;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* ----------------- Rodapé ----------------- */
footer {
  background: #0f172a;
  padding: 60px 20px;
  margin-top: auto;
  text-align: center;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 40px;
  justify-items: center;
  align-items: start;
}

.footer-column {
  text-align: center;
}

.footer-column h4 {
  color: #2563eb;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li a {
  color: #cbd5e1;
  text-decoration: none;
  transition: 0.3s;
}

.footer-links ul li a:hover {
  color: #7c3aed;
}

.footer-social a {
  font-size: 1.4rem;
  margin-right: 12px;
  color: #cbd5e1;
  transition: 0.3s;
}

.footer-social a:hover {
  color: #2563eb;
}

.footer-bottom {
  margin-top: 30px;
  text-align: center;
  color: #64748b;
  font-size: 0.9rem;
}

/* ----------------- Responsividade ----------------- */
@media (max-width: 1024px) {
  .hero-content h1 { font-size: 3rem; }
  .hero-content p { font-size: 1.1rem; max-width: 600px; }
  .carousel-item { flex: 1 1 45%; max-width: 45%; }
  .diferencial-item { flex: 1 1 45%; max-width: 45%; }
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .navbar .nav-links {
    display: none;
    position: absolute;
    top: 65px;
    right: 30px;
    background: rgba(15,23,42,0.95);
    flex-direction: column;
    width: 220px;
    padding: 20px;
    border-radius: 12px;
  }
  .navbar .nav-links.active { display: flex; }
  .hero-content h1 { font-size: 2.2rem; }
  .hero-content p { font-size: 1rem; max-width: 90%; }
  .carousel-item, .diferencial-item, .depoimento-item { flex: 1 1 100%; max-width: 100%; }
  .footer-container { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 1.7rem; }
  .hero-content p { font-size: 0.95rem; }
  .cta-btn { padding: 10px 20px; font-size: 1rem; }
}
