/* Reset básico */
html, body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Variáveis globais */
:root {
  --primary-color: #0077cc;
  --secondary-color: #d9efff;
  --text-color: #333;
  --background-light: #f9f9fc;
  --background-dark: #e8f4ff;
  --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --transition-duration: 0.3s;
}

/* Configurações gerais do corpo */
body {
  font-family: var(--font-family);
  background-color: var(--background-light);
  color: var(--text-color);
  line-height: 1.6;
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px 10%;
  background: linear-gradient(to right, #e0f0ff, #f5faff);
}

.hero-content {
  flex: 1;
}

.hero-title {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  animation: fadeInDown 1s ease-in-out;
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 30px;
  color: var(--text-color);
}

.cta-button {
  background-color: var(--primary-color);
  color: #fff;
  padding: 12px 28px;
  font-size: 1rem;
  border: none;
  border-radius: 25px;
  text-decoration: none;
  transition: background-color var(--transition-duration) ease-in-out, transform var(--transition-duration) ease-in-out;
  margin: 20px;
}

.cta-button:hover {
  background-color: #005f9e;
  transform: scale(1.05);
}

.hero-image img {
  width: 100%;
  max-width: 500px;
  margin: 15px;
}

/* Seções alternadas */
.section {
  padding: 80px 10%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.section-light {
  background-color: #ffffff;
}

.section-dark {
  background-color: var(--background-dark);
}

.section-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}

.section-image {
  flex: 1;
}

.section-image img {
  width: 100%;
  max-width: 450px;
  border-radius: 16px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.section-text {
  flex: 1;
}

.section-text h2 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.section-text p {
  font-size: 1.1rem;
  color: #444;
}

/* Posicionamento alternado de conteúdo nas seções */
.left {
  order: 1;
}

.right {
  order: 2;
}

.section:nth-child(even) .left {
  order: 2;
}

.section:nth-child(even) .right {
  order: 1;
}

/* Call to Action */
.cta-section {
  text-align: center;
  background-color: var(--secondary-color);
  padding: 80px 10%;
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #004b8d;
}

.cta-section p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.cta-section .cta-button {
  padding: 14px 34px;
  font-size: 1.1rem;
}

/* Footer */
.footer {
  background-color: #f0f8ff;
  text-align: center;
  padding: 30px 10%;
  font-size: 0.9rem;
  color: #666;
}

.footer-links {
  margin-top: 10px;
}

.footer-links a {
  color: var(--primary-color);
  margin: 0 10px;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Animações */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(var(--translate-distance, 20px));
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-start {
  opacity: 0;
  transform: translateY(20px);
  transition: all 1s ease;
}

.fade-in-start.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Configurações */
.config-container {
  border: var(--primary-color) solid 2px;
  width: 50%;
  border-radius: 20px;
  padding: 20px;
  background-color: #b0d8f5;
  margin: auto;
}

.config-container form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.config-h3 {
  color: var(--primary-color);
  margin: 0 0 15px 0;
  text-align: center;
}

.config-container form input {
  margin: 10px 0;
  width: 100%;
  height: 40px;
  border: solid #005f9e 1.5px;
  border-radius: 5px;
  padding: 10px;
}

/* Responsividade */
@media (max-width: 900px) {
  .hero,
  .section-content {
    flex-direction: column;
    text-align: center;
  }

  .left,
  .right {
    order: unset !important;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .section-text h2 {
    font-size: 1.7rem;
  }
}

@media (max-width: 768px) {
  .hero,
  .section,
  .cta-section,
  .footer {
    padding: 60px 5%;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .cta-button {
    padding: 10px 20px;
    font-size: 0.95rem;
  }

  .section-content {
    flex-direction: column;
    text-align: center;
  }

  .section-text h2 {
    font-size: 1.5rem;
  }

  .section-text p {
    font-size: 1rem;
  }

  .section-image img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
  }

  .config-container {
    width: 90%;
    padding: 20px 10px;
  }

  .config-container form input {
    width: 90%;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.6rem;
  }

  .hero-subtitle,
  .section-text p,
  .cta-section p {
    font-size: 1rem;
  }

  .cta-button {
    padding: 10px 18px;
    font-size: 0.9rem;
  }

  .cta-section h2 {
    font-size: 1.8rem;
  }

  .config-container {
    padding: 15px;
  }
}
