/* Fonte moderna */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body */
body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #e0e7ff 0%, #cbd5e1 100%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: #222;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}

/* Efeito de bolhas abstratas (pode ser opcional) */
body::before {
  content: '';
  position: fixed;
  top: -200px;
  left: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle at center, rgba(126, 140, 255, 0.15), transparent 70%);
  filter: blur(120px);
  z-index: 0;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  bottom: -150px;
  right: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle at center, rgba(118, 75, 162, 0.12), transparent 70%);
  filter: blur(100px);
  z-index: 0;
  pointer-events: none;
}

/* Header */
.header {
  background-color: #1a202c;
  padding: 24px 40px;
  box-shadow:
    0 1px 3px rgba(0,0,0,0.1),
    0 8px 15px rgba(26, 32, 44, 0.6);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 100;
  border-bottom: 2px solid #4c51bf;
}

.header-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.logo {
  font-weight: 700;
  font-size: 32px;
  color: #e0e7ff;
  letter-spacing: 0.1em;
  user-select: none;
  text-transform: uppercase;
  text-shadow: 0 0 6px rgba(126, 140, 255, 0.6);
}

/* Navegação */
.nav-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.nav-menu a {
  color: #a0aec0;
  font-weight: 600;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-menu a:hover {
  color: #7f9cf5;
  text-shadow: 0 0 4px #7f9cf5;
}

/* Conteúdo principal */
.main-content {
  flex: 1;
  max-width: 960px;
  width: 90%;
  margin: 60px auto 80px;
}

/* Container dos cards */
.cards-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  margin-top: 80px;
}

/* Card individual */
.card {
  background: linear-gradient(145deg, #ffffff, #f0f4ff);
  border-radius: 20px;
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.08),
    0 12px 28px rgba(103, 114, 235, 0.18);
  padding: 0 0 28px;
  width: 100%;
  max-width: 800px;
  transition: box-shadow 0.35s ease, transform 0.35s ease;
  cursor: default;
  text-align: left;
  user-select: none;
  overflow: hidden;
  position: relative;
}

.card:hover {
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.12),
    0 18px 42px rgba(103, 114, 235, 0.45);
  transform: translateY(-10px);
  z-index: 10;
}

.card h3 {
  font-size: 28px;
  font-weight: 700;
  color: #2d3748;
  margin: 24px 28px 12px;
  letter-spacing: 0.04em;
  user-select: text;
}

.card p {
  font-size: 17px;
  color: #4a5568;
  font-weight: 500;
  line-height: 1.6;
  margin: 0 28px 20px;
  user-select: text;
}

/* Slideshow dentro do card */
.slideshow {
  position: relative;
  width: 100%;
  height: 320px;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  overflow: hidden;
  user-select: none;
  box-shadow:
    inset 0 8px 20px rgba(255,255,255,0.25),
    inset 0 -8px 20px rgba(0,0,0,0.15);
}

.slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out, transform 0.5s ease;
  pointer-events: none;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.12));
  border-radius: 20px 20px 0 0;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
}

.card:hover .slide.active {
  transform: scale(1.07);
}

/* Seção CTA */
.cta-section {
  margin-top: 80px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  padding: 48px 36px;
  border-radius: 24px;
  color: #eef2ff;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  box-shadow:
    0 12px 28px rgba(102, 126, 234, 0.5);
  user-select: none;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.cta-section h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 16px;
  text-shadow: 0 2px 6px rgba(58, 68, 160, 0.8);
}

.cta-section p {
  font-size: 20px;
  margin-bottom: 32px;
  font-weight: 500;
  color: #d6dbff;
  text-shadow: 0 1px 3px rgba(54, 61, 135, 0.8);
}

/* Container flexível para os botões do CTA */
.cta-buttons-container {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, #9f7aea, #6b46c1);
  color: #fff;
  font-weight: 700;
  padding: 16px 40px;
  border-radius: 16px;
  font-size: 20px;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(107, 70, 193, 0.6);
  transition: background 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
  user-select: none;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  filter: drop-shadow(0 2px 4px rgba(100, 54, 170, 0.7));
}

.cta-button:hover,
.cta-button:focus {
  background: linear-gradient(135deg, #7c3aed, #553c9a);
  box-shadow: 0 12px 36px rgba(85, 60, 154, 0.8);
  transform: translateY(-4px);
  color: #fff;
  outline: none;
}

/* Rodapé */
.footer {
  background-color: #1a202c;
  padding: 36px 40px;
  box-shadow: inset 0 1px 6px rgba(0,0,0,0.25);
  width: 100%;
  border-top: 3px solid #4c51bf;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #a0aec0;
  font-weight: 600;
  letter-spacing: 0.06em;
  user-select: none;
  gap: 10px;
}

.footer-link {
  color: #7f9cf5;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  filter: drop-shadow(0 0 2px #7f9cf5);
}

.footer-link:hover {
  color: #a3bffa;
  text-shadow: 0 0 6px #a3bffa;
}

.examples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 36px;
  padding: 40px 20px;
  justify-content: center;
}

.card {
  max-width: none;
  width: 100%;
  height: 100%;
}

.card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  max-height: 250px;
}

.examples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 36px;
  padding: 40px 20px;
  justify-content: center;
  max-width: 1400px;
  margin: 0 auto;
}

/* Responsividade */
@media (max-width: 700px) {
  .header-container,
  .footer-container {
    flex-direction: column;
    gap: 16px;
  }

  .main-content {
    width: 95%;
    margin: 40px auto 80px;
  }

  .cards-container {
    gap: 28px;
  }

  .cta-section {
    padding: 36px 24px;
    font-size: 18px;
  }

  .cta-section h2 {
    font-size: 26px;
  }

  .cta-section p {
    font-size: 16px;
  }

  .nav-menu {
    flex-direction: column;
  }

  .cta-buttons-container {
    flex-direction: column;
    gap: 16px;
  }
}
