/* Reset e fontes base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #fafafa;
  color: #333;
  line-height: 1.6;
}

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

/* Cabeçalho */
header {
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  padding: 30px 0 10px;
}

.header-content {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.header-text h1 {
  font-size: 2rem;
  font-weight: 600;
  color: #000000;
  margin-bottom: 5px;
}

.header-text p {
  font-size: 1rem;
  color: #666;
}

.tagline {
  font-size: 0.9rem;
  color: #999;
  text-align: right;
  margin-left: auto;
  margin-top: 10px;
  max-width: 400px;
}

/* Centralizar todos os títulos de seção */
.section-title {
  text-align: center;
  margin-bottom: 24px;
}

/* Navegação */
nav {
  background-color: #fff;
  margin-top: -10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
  overflow-x: auto;
}

.nav-menu {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 10px 0;
}

.nav-menu a {
  text-decoration: none;
  color: #666;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.3s, color 0.3s;
  white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a.active {
  background-color: #f0e5e4;
  color: #000000;
}

/* Seções */
main section {
  margin-top: 40px;
}

h2 {
  font-size: 1.5rem;
  color: #000000;
  margin-bottom: 20px;
}

p, li {
  font-size: 1rem;
  margin-bottom: 16px;
}

/* Container com imagem e os dois primeiros parágrafos lado a lado */
.about-container {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 20px;
}

/* Foto de perfil */
.profile-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%; /* torna a foto redonda */
  object-fit: cover;
  border: 3px solid #575252;
  flex-shrink: 0;
}

/* Texto ao lado da foto (primeira parte) */
.about-text {
  flex: 1;
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
}

/* Texto adicional que fica abaixo da foto */
.about-additional-text {
  margin-left: 204px; /* largura da foto (180px) + gap (24px) para alinhar */
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
}

/* Projetos */
.projects-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.project-card {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.project-card h3 {
  margin-bottom: 10px;
  color: #000000;
}

.project-card .btn {
  display: inline-block;
  padding: 8px 16px;
  background-color: #000000;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  margin-top: 10px;
  transition: background-color 0.3s;
}

.project-card .btn:hover {
  background-color: #000000;
}

/* Carrossel */
.carousel {
  position: relative;
  overflow: hidden;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  padding: 30px 20px;
}

.carousel-track-container {
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  gap: 20px;
  will-change: transform;
}

.carousel-slide {
  min-width: 100%;
  flex: 0 0 100%;
  padding: 10px;
}

.testimonial-text {
  font-size: 1rem;
  font-style: italic;
  color: #555;
  margin-bottom: 10px;
  list-style: none;
}

.testimonial-author {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #f5f5f5;
  border: none;
  padding: 10px;
  cursor: pointer;
  border-radius: 50%;
  font-size: 1.2rem;
  transition: background 0.3s;
  color: #666;
  z-index: 2;
  user-select: none;
}

.carousel-button:hover {
  background-color: #e0d7d6;
}

.carousel-button.prev {
  left: 10px;
}

.carousel-button.next {
  right: 10px;
}

/* Remove bolinhas de qualquer lista no carrossel */
.carousel ul,
.carousel ol,
.carousel li {
  list-style: none !important;
  margin-left: 0 !important;
  padding-left: 0 !important;
}

/* Formulário de contato */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}

.contact-form button {
  padding: 12px 24px;
  background-color: #000000;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

.contact-form button:hover {
  background-color: #000000;
}

/* Ícones sociais */
.social-icons {
  display: flex;
  justify-content: left;
  gap: 24px;
  margin: 20px 0;
}

.social-icons a {
  color: #000000;
  transition: color 0.3s;
}

.social-icons a:hover {
  color: #000000;
}

/* Rodapé */
footer {
  text-align: center;
  padding: 20px 0;
  font-size: 0.9rem;
  color: #999;
  margin-top: 40px;
}

/* Responsivo */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .header-text {
    text-align: center;
  }

  .tagline {
    text-align: center;
    margin-left: 0;
    margin-top: 10px;
  }

  .nav-menu {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    gap: 15px !important;
    margin-top: 10px !important;
    overflow-x: auto;
    padding: 10px;
  }

  .nav-menu a {
    white-space: nowrap;
    padding: 6px 10px;
    font-size: 0.9rem;
  }

  .carousel-button {
    display: block !important;
    padding: 6px;
    font-size: 1rem;
  }

  /* Ajuste do About para telas pequenas */
  .about-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-photo {
    width: 140px;
    height: 140px;
    margin-bottom: 20px;
  }

  .about-text {
    width: 100%;
  }

  .about-additional-text {
    margin-left: 0;
    text-align: center;
  }

  .section-title {
    margin-bottom: 16px;
  }
}

/* Menu Lateral */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 60px;
  height: 100vh;
  background-color: rgba(255, 255, 255, 0.8); /* semi-transparente */
  border-right: 1px solid #eee;
  box-shadow: 2px 0 5px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* centraliza os itens verticalmente */
  padding: 20px 0;
  transition: width 0.3s ease;
  z-index: 1000;
  overflow: hidden;
  backdrop-filter: blur(4px);
}

.sidebar.expanded {
  width: 200px;
}

.sidebar-menu {
  list-style: none;
  width: 100%;
  padding: 0;
  margin: 0;
}

.sidebar-menu li {
  width: 100%;
}

.sidebar-menu a {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: #666;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
  background-color: #f0e5e4;
  color: #000000;
}

.sidebar-menu i {
  font-size: 1.2rem;
  min-width: 24px;
}

.menu-text {
  margin-left: 16px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.sidebar.expanded .menu-text {
  opacity: 1;
  pointer-events: auto;
}

/* Botão de menu hambúrguer */
.menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

/* Mobile */
@media (max-width: 768px) {
  .sidebar {
    width: 60px;
    position: fixed;
    left: 0;
    top: 0;
    height: auto;
    flex-direction: column;
    padding: 10px;
  }

  .menu-toggle {
    display: block;
  }

  .sidebar-menu {
    display: none;
    flex-direction: column;
    width: 100%;
  }

  .sidebar.active .sidebar-menu {
    display: flex;
  }

  .sidebar.expanded {
    width: 60px !important;
  }

  .sidebar.expanded .menu-text {
    display: none !important;
  }
}

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white; /* mude para a cor de fundo do seu site */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

#preloader img {
  width: 100px; /* ajuste o tamanho conforme preferir */
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}

.hero {
  background: url('assets/background1.png') center center/cover no-repeat;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #000; /* Mude para branco se preferir, dependendo da imagem */
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.6); /* leve sobreposição branca para contraste dos elementos */
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero .tagline {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}
.about-additional-text {
  flex-basis: 100%; /* força nova linha */
  margin-left: 0;   /* remove indentação */
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
}
