* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Roboto", sans-serif;
  line-height: 1.6;
  color: #fff;
  background-color: #2b276c;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
}

.section-padding {
  padding: 60px 0;
}

.bg-light {
  background-color: #1e1c42;
}

/* Header */
header {
  background-color: #2b276c;
  color: #fff;
  padding: 15px 0;
  border-bottom: 1px solid #ddd;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 60px;
}

nav ul {
  list-style: none;
}

nav ul li {
  display: inline;
  margin-left: 20px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #007bff;
}

/* Hero Section */
#hero {
  background: url("images/hero_image.jpg") no-repeat center center/cover;
  color: #fff;
  text-align: center;
  height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-top: 0px; /* Prevenir sobreposição do header */
}

#hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

#hero h1 {
  font-size: 3em;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

#hero p {
  font-size: 1.2em;
  margin-bottom: 30px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.btn {
  display: inline-block;
  background-color: #1e1c42;
  color: #fff;
  padding: 17px 30px;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #0056b3;
}

h2 {
  text-align: center;
  font-size: 2.5em;
  margin-bottom: 40px;
  color: #fff;
}

/* About Section */
.about-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 1.1em;
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  text-align: center;
}

.service-item {
  background-color: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.service-item:hover {
  transform: translateY(-5px);
}

.service-item h3 {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #007bff;
}

.service-item p {
  color: black;
}

/* Work Section */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.work-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.work-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.work-item:hover img {
  transform: scale(1.05);
}

.work-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 15px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.work-item:hover .work-overlay {
  transform: translateY(0);
}

.work-overlay h3 {
  margin-bottom: 5px;
}

/* Clients Section */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 30px;
  align-items: center;
  justify-items: center;
}

.client-logo img {
  max-width: 150px;
  height: auto;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.client-logo img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* Contact Section */
.contact-info {
  text-align: center;
  font-size: 1.1em;
}

.contact-info p {
  margin-bottom: 10px;
}

.map-container {
  margin-top: 30px;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
  border: 0;
}

/* Footer */
footer {
  background-color: #151335;
  color: #fff;
  text-align: center;
  padding: 20px 0;
  font-size: 0.9em;
}

/* Idioma */
.language-switcher {
  margin-left: 20px;
  display: flex;
  gap: 5px;
}

.language-switcher button {
  background-color: #007bff;
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.language-switcher button:hover {
  background-color: #0056b3;
}

.language-switcher button.active {
  background-color: #0056b3;
  border: 1px solid #003e80;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
}

/* RESPONSIVO */
@media (max-width: 768px) {
  header {
    padding: 10px 0;
  }

  .logo img {
    height: 50px;
  }

  header .container {
    flex-direction: column;
    align-items: center;
  }

  nav {
    display: none;
  }

  .language-switcher {
    margin-top: 10px;
    margin-left: 0;
  }


  h1 {
    font-size: 2em;
  }

  h2 {
    font-size: 2em;
  }

  .services-grid,
  .work-grid,
  .clients-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  header {
    padding: 8px 0;
  }

  .logo img {
    height: 45px;
  }

}

@media (max-width: 400px) {
  header {
    padding: 6px 0;
  }

  .logo img {
    height: 40px;
  }

}
/* Remove o margin-top do hero em telas maiores (desktop) */
@media (min-width: 769px) {
  #hero {
    margin-top: 0;
  }
}
