/* Cores e fontes globais */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #0f172a;
  --accent: #d97706; /* Tom de amarelo mais suave */
  --light: #f8fafc;
  --dark: #1e293b;
  --gray: #64748b;
  --background-dark: #0d1117;
  --text-light: #c9d1d9;
  --text-white: #fff;
  --border-color: #30363d;
  --card-bg: #161b22;
  --card-hover-bg: #1e293b;
}

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

body {
  color: var(--text-light);
  background-color: var(--background-dark);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

/* Layout */
.container-modern {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* --- Cabeçalho --- */
.header-modern {
  background-color: var(--secondary);
  padding: 15px 50px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.header-modern::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, var(--primary), var(--accent));
  z-index: 99;
}

.header-modern h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  background: none;
  -webkit-background-clip: none;
  background-clip: none;
  animation: none;
}

.nav-modern {
  flex-grow: 1;
  text-align: center;
  margin: 0 20px;
}

.nav-modern ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-flex;
  gap: 30px;
}

.nav-modern a {
  text-decoration: none;
  color: var(--text-light);
  font-weight: 500;
  font-size: 16px;
  position: relative;
  transition: color 0.3s ease;
}

.nav-modern a:hover {
  color: var(--primary);
  transform: none;
}

.nav-modern a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.nav-modern a:hover::after {
  width: 100%;
}

.btn-primary {
  background: var(--primary);
  color: var(--text-white);
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  white-space: nowrap;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

/* --- Seções --- */
section {
  margin-bottom: 60px;
  background-color: var(--card-bg);
  padding: 40px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

section:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
}

section::after {
  content: '';
  position: absolute;
  left: 8px;
  bottom: -1px; /* Ajuste para sobrepor a borda */
  width: 15px; 
  height: 16px; 
  background-color: var(--card-bg); /* Use a cor da seção para criar a ilusão de corte */
  clip-path: polygon(0 0, 100% 100%, 0 100%);
  z-index: 2; /* Para garantir que o triângulo fique por cima da borda */
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: left;
  margin-bottom: 15px;
  padding-left: 20px;
  position: relative;
  color: var(--text-white);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 20px;
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

.hero-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin: 2rem 0;
    height: 400px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
    transition: transform 0.5s ease;
}

.hero-container:hover .hero-image {
  transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 2rem;
    color: white;
}

.hero-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.hero-overlay p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
}

/* Cards de ferramentas */
.card-grid {
  display: flex;
  gap: 20px;
  margin-top: 40px;
  overflow-x: auto;
  white-space: nowrap;
  padding-bottom: 10px;
  padding-top: 5px; 
}

.card {
  flex-shrink: 0;
  width: 150px;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  white-space: normal;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  background-color: var(--card-hover-bg);
}

.card .icon {
  font-size: 40px;
  color: var(--primary);
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.card:hover .icon {
    color: var(--accent);
}

.card h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  color: var(--text-white);
}

.card p {
  display: none;
}

/* Listas de serviços */
.list-modern {
  list-style: none;
  padding: 0;
  margin: 30px 0;
  font-size: 16px;
}

.list-modern li {
  background-color: var(--card-bg);
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 15px;
  border: 1px solid var(--border-color);
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.list-modern li strong {
  margin-right: -10px;
}

.list-modern li:hover {
  background-color: var(--card-hover-bg);
  transform: translateX(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.list-modern i {
  color: var(--primary);
  transition: color 0.3s ease;
}

/* --- Contato --- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 30px;
}

.contact-card {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  background-color: var(--card-hover-bg);
}

.contact-card .icon {
    font-size: 30px;
    color: var(--primary);
    background-color: rgba(37, 99, 235, 0.1);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.contact-card:hover .icon {
    color: var(--accent);
    background-color: rgba(245, 158, 11, 0.2);
}

.contact-details h3 {
    font-size: 18px;
    margin: 0 0 5px;
    color: var(--text-white);
}

.contact-details p {
    margin: 0;
    color: var(--text-light);
}

#contato .btn-primary {
    margin-top: 20px;
}

/* FAQ */
.faq-list {
  margin-top: 40px;
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
  padding: 20px 0;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 18px;
  cursor: pointer;
  color: var(--text-white);
  transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question i {
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  transition: max-height 0.5s ease, opacity 0.5s ease, margin-top 0.5s ease;
  padding-left: 20px;
  color: var(--text-light);
}

.faq-answer.active {
  max-height: 200px;
  opacity: 1;
  margin-top: 15px;
}

/* Footer */
.footer-modern {
    background-color: var(--secondary);
    color: var(--text-light);
    text-align: center;
    padding: 40px 20px;
    border-top: 2px solid var(--primary);
}

.footer-modern .social-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 20px;
}

.footer-modern .social-links a {
    color: var(--text-light);
    font-size: 24px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-modern .social-links a:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

.footer-modern p {
    font-size: 14px;
    margin: 5px 0;
}

/* Animações e Efeitos */
@keyframes floating-text {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* Media Queries para Responsividade */
@media (max-width: 768px) {
  .header-modern {
    flex-direction: column;
    gap: 10px; /* Reduzi o espaçamento entre os itens */
    padding: 15px; /* Reduzi o padding do cabeçalho */
  }

  .nav-modern ul {
    flex-direction: row; /* Mantém os itens de navegação em linha */
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px; /* Reduzi o espaço entre os links */
  }

  .nav-modern a {
    font-size: 14px; /* Reduzi o tamanho da fonte para caber mais links */
  }

  .btn-primary {
    width: auto;
    font-size: 14px; /* Reduzi o tamanho da fonte do botão */
  }

  .section-title {
    font-size: 24px;
    text-align: center;
  }
  
  .section-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .header-modern {
    padding: 15px;
  }
  .nav-modern {
    margin: 0;
    width: 100%;
  }
  .nav-modern ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  .btn-primary {
    width: 100%;
    text-align: center;
  }
  .section-title {
    font-size: 24px;
    text-align: center;
  }
  .section-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
  .list-modern li {
    flex-direction: column;
    align-items: flex-start;
  }
}
