/* General Styles */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #1F2A44; /* gray-900 */
  color: #D1D5DB; /* gray-300 */
}

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

/* Fixed Navbar with Glassmorphism */
.fixed-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(209, 213, 219, 0.2);
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}

.logo {
  height: 80px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

nav a {
  text-decoration: none;
  color: #FFFFFF;
  font-weight: bold;
  transition: color 0.3s;
}

nav a:hover {
  color: #6e686a; /* custom hover color */
}

/* Hamburger Menu */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: #FFFFFF;
  margin: 5px 0;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
#hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #FFFFFF;
  overflow: hidden;
  padding-top: 80px; /* Offset for fixed header */
}

#hero .container {
  position: relative;
  z-index: 2;
}

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

#hero p {
  font-size: 1.5rem;
  margin-bottom: 30px;
  color: #D1D5DB;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  background: #1E3A8A;
  color: #FFFFFF;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s;
  font-weight: 600;
}

.btn:hover {
  background: #1E40AF;
}

#particles-js {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #15181d, #374151);
  z-index: 1;
}

/* Sections: Sobre, Serviços, Contato */
#sobre, #servicos, #contato {
  padding: 60px 0;
  text-align: center;
  background: #262d34; /* gray-800 */
}

#sobre h2, #servicos h2, #contato h2 {
  color: #FFFFFF;
}

.cards {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.card {
  background: #323233;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  width: 30%;
  min-width: 280px;
  transition: transform 0.3s;
}

.card h3 {
  color: #FFFFFF;
}

.card p {
  color: #D1D5DB;
}

.card:hover {
  transform: translateY(-5px);
}

/* Carousel Section */
#carousel {
  padding: 60px 0;
  text-align: center;
  background: #262d34;
}

#carousel h2 {
  color: #FFFFFF;
  margin-bottom: 20px;
}

.carousel {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
}

.carousel-inner {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 400px; /* ajuste conforme altura desejada */
}

.carousel-item {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.carousel-item.active {
  opacity: 1;
  z-index: 1;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5); /* fundo preto translúcido */
  color: white; /* cor da seta */
  border: none;
  font-size: 2rem;
  padding: 10px 20px;
  cursor: pointer;
  z-index: 2;
  border-radius: 50%;
  transition: background-color 0.3s;
}

.carousel-control:hover {
  background-color: rgba(0, 0, 0, 0.8); /* escurece no hover */
}

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

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

.carousel-dots {
  text-align: center;
  margin-top: 10px;
}

.carousel-dots .dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  background: #D1D5DB;
  border-radius: 50%;
  margin: 0 5px;
  cursor: pointer;
  transition: background 0.3s;
}

.carousel-dots .dot.active {
  background: #1E3A8A;
}

/* Footer */
footer {
  background: #171d2b;
  color: #D1D5DB;
  padding: 20px 0;
  text-align: center;
}

/* Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.5s ease;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .cards {
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 90%;
  }

  #hero h1 {
    font-size: 2rem;
  }

  #hero p {
    font-size: 1.2rem;
  }

  /* Hamburger for small screens */
  .hamburger {
    display: block;
  }

  nav {
    display: none;
    width: 100%;
  }

  nav.active {
    display: block;
    background: rgba(55, 55, 55, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(209, 213, 219, 0.2);
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
    padding: 20px;
  }

  nav a {
    display: block;
    padding: 10px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  #hero h1 {
    font-size: 1.5rem;
  }

  #hero p {
    font-size: 1rem;
  }

  .btn {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
}
