body {
    font-family: 'Inter', sans-serif;
    background-color: #f3f4f6;
}

:root {
  --cor-fundo: #2b2b2b;
  --cor-texto: #f0f0f0;
  --treina-green: #83d197;
  --treina-blue: #59a5ce;
  --cor-gradiente: linear-gradient(90deg, var(--treina-blue), var(--treina-green));
  --cor-card: #3a3a3a;
  --cor-borda: #4f4f4f;
}

/* Estilos básicos e reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--cor-fundo);
  color: var(--cor-texto);
  line-height: 1.6;
}

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

/* Menu de Navegação */
.navbar {
  background-color: #1a1a1a;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-logo img {
  height: 70px;
}

.nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
}

.nav-menu li {
  margin-left: 25px;
}

.nav-menu a {
  color: var(--cor-texto);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.nav-menu a:hover {
  color: var(--treina-blue);
}

.nav-social-icons a {
  font-size: 1.25rem;
  margin-left: 15px;
}

.nav-social-icons a i {
  color: var(--cor-texto);
}

.nav-btn {
  background: var(--cor-gradiente);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.nav-btn:hover {
  transform: scale(1.05);
}

/* Seções da Landing Page */
section {
  padding: 30px 0;
  text-align: center;
}

/* Tipografia */
h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
  background: var(--cor-gradiente);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--cor-texto);
}

p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 30px;
  color: var(--cor-texto);
}

/* Botão de Chamada para Ação (CTA) */
.btn {
  display: inline-block;
  padding: 15px 30px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  color: #ffffff;
  border-radius: 50px;
  background: var(--cor-gradiente);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Seção Principal (Hero) */
#hero {
  padding-top: 100px;
  padding-bottom: 100px;
}

#hero .logo {
  width: 200px;
  margin-bottom: 30px;
  filter: drop-shadow(0 0 10px rgba(131, 209, 151, 0.3));
}

/* Seção de Funcionalidades */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.feature-card {
  background-color: var(--cor-card);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.feature-card .icon {
  width: 60px;
  height: 60px;
  margin: 30px auto 60px;
  background: var(--cor-gradiente);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-card .icon svg {
  fill: #ffffff;
}

.feature-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--cor-texto);
}

.feature-card p {
  color: #ccc;
}

/* Seção de Demonstração (Mockups) */
.demo-layout {
  display: flex;
  flex-direction: column;
  gap: 60px;
  margin-top: 50px;
}

.demo-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

@media (min-width: 768px) {
  .demo-content {
    flex-direction: row;
    text-align: left;
  }
  .demo-content.reverse {
    flex-direction: row-reverse;
  }
  .demo-text, .demo-image {
    flex: 1;
  }
}

.demo-text {
  padding: 0 20px;
}

.demo-text h2 {
  color: #f0f0f0;
}

.demo-text p {
  color: #ccc;
}

.demo-image img {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Seção de Contato */
#contato {
  background-color: #1a1a1a;
  color: var(--cor-texto);
}

#contato .form-card {
  background-color: var(--cor-card);
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
  color: var(--cor-texto);
}

#contato .form-group {
  margin-bottom: 20px;
}

#contato h2, #contato p {
  color: var(--cor-texto);
}

#contato label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--cor-texto);
}

#contato input, #contato textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--cor-borda);
  border-radius: 8px;
  background-color: #444444;
  color: #f0f0f0;
  font-family: inherit;
  transition: border-color 0.3s;
}

#contato input:focus, #contato textarea:focus {
  outline: none;
  border-color: var(--treina-blue);
}

#contato textarea {
  resize: vertical;
  min-height: 120px;
}

#contato .submit-btn {
  display: block;
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  background: var(--cor-gradiente);
  color: #ffffff;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

#contato .submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Estilo da mensagem de sucesso */
.form-message {
  margin-top: 20px;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  display: none;
}
.form-message.success {
  background-color: #28a745;
  color: white;
  display: block;
}
.form-message.error {
  background-color: #F7A692;
  color: black;
  display: block;
}

/* Rodapé */
footer {
  padding: 40px 0;
  background-color: #1a1a1a;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  text-align: center;
}

.footer-logo img {
  height: 100px;
  filter: drop-shadow(0 0 5px rgba(131, 209, 151, 0.3));
}

.footer-social-icons {
  margin-top: 15px;
}

.footer-social-icons a {
  font-size: 1.5rem;
  margin: 0 10px;
}

.footer-social-icons a i {
  color: var(--cor-texto);
}

.footer-copyright {
  width: 100%;
  margin-top: 20px;
  color: #f5f5f5;
}

@media (min-width: 768px) {
  .footer-copyright {
    width: auto;
  }
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 10px;
}
.footer-links a {
  color: var(--cor-texto);
  margin: 0 15px;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.3s;
}
.footer-links a:hover {
  color: var(--treina-blue);
}

/* Botão de Voltar ao Topo */
#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--cor-gradiente);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  z-index: 999;
}

#scrollTopBtn.show {
  opacity: 1;
  visibility: visible;
}

#scrollTopBtn svg {
  fill: #ffffff;
  width: 24px;
  height: 24px;
}

/* Estilos do Botão Hambúrguer */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 40px;
  height: 45px;
  cursor: pointer;
  z-index: 1001;
  padding: 0.5rem;
  border-radius: 8px;
  background-color: #eee;
}

.hamburger-btn .bar {
  width: 100%;
  height: 5px;
  background-color: #fff;
  border-radius: 5px;
  transition: all 0.3s ease-in-out;
}

/* Animação do botão para 'X' */
.hamburger-btn.active .bar:nth-child(1) {
  transform: translateY(11px) rotate(45deg);
}

.hamburger-btn.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active .bar:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
}

/* Media Query para layout móvel */
@media (max-width: 768px) {
  .hamburger-btn {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    background-color: #1a1a1a;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* Animação de entrada/saída */
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .nav-menu li {
    width: 100%;
    text-align: center;
    margin: 0;
    padding: 1rem 0;
  }

  .nav-menu li:last-child {
    padding-bottom: 2rem;
  }

  .nav-menu a {
    display: block;
    font-size: 1.25rem;
    padding: 0.5rem;
  }
}
