:root {
  --primary-color: #000000;
  --secondary-color: #333333;
  --accent-color: #4A90E2;
  --accent-color1: #8AB8E6;
  --highlight-color: #FFD700;
  --text-color: #222222;
  --background-light: #F5F5F5;
  --card-background: #FFFFFF;
  --quote-color: #28A745;
  --quote-color-dark: #218838;
  --instagram-color: #E1306C;
  --instagram-color-dark: #C13584;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-hover: 0 6px 16px rgba(0, 0, 0, 0.2);
  --transition: all 0.3s ease;
  --transition-fast: all 0.2s ease;
  --transition-slide: opacity 0.7s ease-in-out;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-light);
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 20px auto 0 auto;
  padding: 0 15px;
}

header {
  background-color: #88bde6; /* mesma cor de fundo que já está */
  padding: 1rem 0; /* aumenta o espaço interno em cima e embaixo */
}

header .container {
  display: flex;
  align-items: center; /* centraliza verticalmente logo e menu */
  justify-content: space-between; /* espaço entre logo e menu */
  max-width: 1200px; /* ou o que você usa no seu layout */
  margin: 0 auto;
  padding: 0 1rem; /* espaçamento lateral */
}

nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav ul li {
  margin: 0;
}

.custom-logo {
  height: 150px; /* aumenta tamanho do logo */
}


nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav ul li {
  margin: 0; /* no margin */
}


nav ul li a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition-fast);
}

nav ul li a:hover,
nav ul li a:focus-visible {
  color: var(--highlight-color);
  outline: none;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
  transition: var(--transition-fast);
}

.menu-toggle:focus-visible {
  outline: 2px solid var(--highlight-color);
  outline-offset: 2px;
}

.hero {
  position: relative;
  color: white;
  text-align: center;
  padding: 12rem 0 5rem;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: none; /* Removes the dark overlay for all devices */
  z-index: -1;
}

#hero h1 {
  font-size: 4rem;
  font-weight: 700;
  color: #FFFFFF; /* White text as requested */
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Stronger shadow for readability */
}

.slogan {
  font-size: 2.2rem;
  font-style: italic;
  color: #FFFFFF; /* White text as requested */
  margin-bottom: 2rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Stronger shadow for readability */
  background: rgba(0, 0, 0, 0.7); /* Darker background for contrast */
  padding: 0.5rem 1rem;
  border-radius: 8px;
  animation: fadeIn 1.5s ease-in-out;
}

@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.hero-text {
  font-size: 1.3rem;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
  color: #FFFFFF; /* White text as requested */
  background: rgba(0, 0, 0, 0.7); /* Darker background for contrast */
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

.btn-hero {
  background: var(--primary-color);
  padding: 1.2rem 2.5rem;
  font-size: 1.3rem;
  font-weight: 600;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  transition: var(--transition);
  will-change: transform, background;
}

.btn-hero:hover,
.btn-hero:focus-visible {
  background: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  outline: none;
}

.social-links {
  margin-top: 2rem;
}

.social-links a {
  font-size: 2rem;
  color: var(--accent-color); /* Blue icons as requested */
  margin: 0 0.75rem;
  transition: var(--transition-fast);
}

.social-links a:hover,
.social-links a:focus-visible {
  color: var(--highlight-color);
  outline: none;
}

#sobre {
  padding: 5rem 0;
  background-color: var(--card-background);
}

.sobre-content {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: space-between;
}

.sobre-text {
  flex: 1;
  min-width: 300px;
}

.sobre-text p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.sobre-stats {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  min-width: 120px;
}

.stat-item i {
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.stat-item h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
}

.stat-item p {
  font-size: 1rem;
  color: var(--text-color);
}

.sobre-why {
  flex: 1;
  min-width: 300px;
}

.sobre-why h3 {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.why-list {
  list-style: none;
}

.why-list li {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.why-list i {
  color: var(--accent-color);
  margin-right: 1rem;
}

.why-list div {
  flex: 1;
}

.why-list strong {
  font-size: 1.1rem;
  color: var(--primary-color);
}

.why-list p {
  font-size: 1rem;
  color: var(--text-color);
}

#servicos {
  padding: 5rem 0;
  background-color: var(--background-light);
}

.services-intro {
  text-align: center;
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 2rem;
  color: var(--text-color);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.service-item {
  text-align: center;
  padding: 1.5rem;
  background-color: var(--card-background);
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.service-item:hover,
.service-item:focus-within {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.service-item i {
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.service-item h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
}

.service-item p {
  font-size: 1rem;
  color: var(--text-color);
}

.services-cta {
  text-align: center;
  margin-top: 2.5rem;
}

#portfolio {
  padding: 5rem 0;
  background-color: var(--card-background);
}

#portfolio-title {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 2rem;
}

.portfolio-carousel {
  position: relative;
  overflow: hidden;
}

.carousel-slides {
  position: relative;
  display: flex;
}

.portfolio-item {
  flex: 0 0 100%;
  text-align: center;
  padding: 1.5rem;
  background-color: var(--background-light);
  border-radius: 12px;
  display: none;
}

.portfolio-item.active {
  display: block;
}

.portfolio-images {
  position: relative;
  width: 100%;
  max-height: 450px;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}

.portfolio-images img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-slide);
  will-change: opacity, visibility;
}

.portfolio-images img.active {
  opacity: 1;
  visibility: visible;
}

.portfolio-item h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
}

.portfolio-item p {
  font-size: 1rem;
  color: var(--text-color);
  max-width: 600px;
  margin: 0 auto 1rem;
}

.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-color), var(--accent-color1));
  padding: 0.8rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  text-align: center;
  transition: var(--transition);
  min-width: 120px;
  will-change: transform, background;
}

.btn:hover,
.btn:focus-visible {
  background: linear-gradient(135deg, var(--accent-color1), var(--accent-color));
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  outline: none;
}

#contato {
  padding: 5rem 0;
  background-color: var(--background-light);
}

.contact-intro {
  text-align: center;
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 2rem;
  color: var(--text-color);
}

.contact-content {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: space-between;
}

.contact-form {
  flex: 1;
  min-width: 300px;
  background-color: var(--card-background);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  border: 2px solid var(--accent-color1);
  border-radius: 8px;
  transition: var(--transition-fast);
  background-color: var(--background-light);
  color: var(--text-color);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-color);
  outline: none;
  box-shadow: 0 0 8px rgba(74, 144, 226, 0.3);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group input:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown) {
  border-color: #e74c3c;
}

.btn-quote {
  background: linear-gradient(135deg, var(--quote-color), var(--quote-color-dark));
  padding: 0.8rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  will-change: transform, background;
}

.btn-quote:hover,
.btn-quote:focus-visible {
  background: linear-gradient(135deg, var(--quote-color-dark), var(--quote-color));
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  outline: none;
}

.form-message {
  margin-top: 1rem;
  font-size: 1rem;
  color: var(--text-color);
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.form-message.success {
  color: var(--quote-color);
  opacity: 1;
}

.form-message.error {
  color: #e74c3c;
  opacity: 1;
}

.contact-info {
  flex: 1;
  min-width: 300px;
  padding: 2rem;
  background-color: var(--card-background);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.contact-info h3 {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.contact-info ul {
  list-style: none;
}

.contact-info li {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.contact-info i {
  font-size: 1.5rem;
  color: var(--accent-color);
  margin-right: 1rem;
}

.contact-info a {
  font-size: 1rem;
  color: var(--text-color);
  text-decoration: none;
  transition: var(--transition-fast);
}

.contact-info a:hover,
.contact-info a:focus-visible {
  color: var(--highlight-color);
  outline: none;
}

footer {
  background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 3rem 0;
}

.footer-content {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.footer-logo .logo-img {
  max-height: 60px;
  transition: var(--transition);
}

.footer-logo .logo-img:hover {
  transform: scale(1.05);
}

.footer-links h3,
.footer-social h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin: 0.5rem 0;
}

.footer-links a {
  color: white;
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--highlight-color);
  outline: none;
}

.footer-social .social-links a {
  font-size: 1.8rem;
  margin: 0 0.75rem;
  color: white;
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-social .social-links a:hover,
.footer-social .social-links a:focus-visible {
  color: var(--highlight-color);
  outline: none;
}

.footer-copy {
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Media Queries para Responsividade */
@media (max-width: 1024px) {
  .container {
    max-width: 900px;
    padding: 0 12px;
  }

  .custom-logo {
    max-height: 120px;
    top: -20px;
    left: 12px;
  }

  header::before {
    height: 100px;
  }

  nav ul {
    max-width: 100%;
    overflow-x: hidden;
  }

  .hero {
    padding: 10rem 0 4rem;
    min-height: 70vh;
  }

  #hero h1 {
    font-size: 3.2rem;
  }

  .slogan {
    font-size: 1.8rem;
    padding: 0.4rem 0.8rem;
  }

  .hero-text {
    font-size: 1.2rem;
    max-width: 600px;
  }

  #sobre,
  #servicos,
  #portfolio,
  #contato {
    padding: 4rem 0;
  }

  #portfolio-title {
    font-size: 2.2rem;
  }

  .portfolio-images {
    max-height: 400px;
  }

  .contact-content {
    flex-direction: column;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  header {
    padding: 0.8rem 0;
  }

  nav {
    display: none;
  }

  nav.active {
    display: block;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    max-width: 100vw;
    background-color: var(--accent-color);
    padding: 0.5rem 0;
    box-shadow: var(--shadow);
    overflow-y: auto;
    max-height: calc(100vh - 80px);
    z-index: 999;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 1rem;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
    gap: 0.4rem; /* Adjusted for mobile column */
  }

  nav ul li {
    margin: 0.4rem 0;
    width: 100%;
    text-align: center;
  }

  nav ul li a {
    font-size: 0.95rem;
    padding: 0.5rem 0;
    display: block;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.4;
  }

  .menu-toggle {
    display: block;
    margin-right: 10px;
  }

  .custom-logo {
    max-height: 100px;
    top: -15px;
    left: 10px;
  }

  header::before {
    height: 80px;
  }

  .hero {
    padding: 8rem 0 3rem;
    min-height: 65vh;
  }

  #hero h1 {
    font-size: 2.5rem;
  }

  .slogan {
    font-size: 1.6rem;
    padding: 0.3rem 0.6rem;
  }

  .hero-text {
    font-size: 1rem;
    max-width: 90%;
  }

  .sobre-content,
  .contact-content {
    flex-direction: column;
  }

  .sobre-text,
  .sobre-why,
  .contact-form,
  .contact-info {
    min-width: 100%;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  #portfolio {
    padding: 3rem 0;
  }

  #portfolio-title {
    font-size: 2rem;
  }

  .portfolio-item {
    padding: 1rem;
  }

  .portfolio-images {
    max-height: 300px;
    aspect-ratio: 4/3;
  }

  .portfolio-item h3 {
    font-size: 1.4rem;
  }

  .portfolio-item p {
    font-size: 0.95rem;
    max-width: 90%;
  }

  .btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.95rem;
    min-width: 100px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }

  .custom-logo {
    max-height: 90px;
    top: -15px;
    left: 10px;
  }

  header::before {
    height: 80px;
  }

  nav.active {
    top: 80px;
    padding: 0.4rem 0;
    max-height: calc(100vh - 80px);
  }

  nav ul {
    padding: 0.4rem 0.8rem;
    gap: 0.3rem;
  }

  nav ul li {
    margin: 0.3rem 0;
  }

  nav ul li a {
    font-size: 0.9rem;
    padding: 0.4rem 0;
  }

  .menu-toggle {
    font-size: 1.4rem;
    margin-right: 10px;
  }

  .hero {
    padding: 7rem 0 1.5rem;
    min-height: 60vh;
  }

  #hero h1 {
    font-size: 2rem;
  }

  .slogan {
    font-size: 1.4rem;
    padding: 0.3rem 0.5rem;
  }

  .hero-text {
    font-size: 0.9rem;
    max-width: 95%;
  }

  #sobre,
  #servicos,
  #portfolio,
  #contato {
    padding: 2rem 0;
  }

  #portfolio-title {
    font-size: 1.8rem;
  }

  .portfolio-item {
    padding: 0.8rem;
  }

  .portfolio-images {
    max-height: 250px;
  }

  .portfolio-item h3 {
    font-size: 1.3rem;
  }

  .portfolio-item p {
    font-size: 0.9rem;
  }

  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    min-width: 90px;
  }

  .sobre-stats {
    gap: 1rem;
  }

  .stat-item {
    min-width: 100px;
  }

  .contact-form,
  .contact-info {
    padding: 1.5rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 0.6rem;
    font-size: 0.9rem;
  }

  .btn-quote {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 360px) {
  .container {
    padding: 0 10px;
  }

  .custom-logo {
    max-height: 80px;
    top: -10px;
    left: 8px;
  }

  header::before {
    height: 60px;
  }

  nav.active {
    top: 60px;
    padding: 0.3rem 0;
    max-height: calc(100vh - 60px);
  }

  nav ul {
    padding: 0.3rem 0.6rem;
    gap: 0.2rem;
  }

  nav ul li {
    margin: 0.2rem 0;
  }

  nav ul li a {
    font-size: 0.85rem;
    padding: 0.3rem 0;
  }

  .menu-toggle {
    font-size: 1.3rem;
    margin-right: 8px;
  }

  .hero {
    padding: 6rem 0 1.5rem;
    min-height: 55vh;
  }

  #hero h1 {
    font-size: 1.8rem;
  }

  .slogan {
    font-size: 1.2rem;
    padding: 0.2rem 0.4rem;
  }

  .hero-text {
    font-size: 0.85rem;
    max-width: 100%;
  }

  #portfolio {
    padding: 1.5rem 0;
  }

  #portfolio-title {
    font-size: 1.6rem;
  }

  .portfolio-item {
    padding: 0.6rem;
  }

  .portfolio-images {
    max-height: 200px;
  }

  .portfolio-item h3 {
    font-size: 1.2rem;
  }

  .portfolio-item p {
    font-size: 0.85rem;
  }

  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    min-width: 80px;
  }

  .form-group label {
    font-size: 0.9rem;
  }

  .form-group input,
  .form-group textarea {
    font-size: 0.85rem;
  }

  .btn-quote {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 320px) {
  .container {
    padding: 0 8px;
  }

  .custom-logo {
    max-height: 70px;
    top: -10px;
    left: 6px;
  }

  header::before {
    height: 60px;
  }

  nav.active {
    top: 60px;
    padding: 0.2rem 0;
    max-height: calc(100vh - 60px);
  }

  nav ul {
    padding: 0.2rem 0.5rem;
    gap: 0.2rem;
  }

  nav ul li {
    margin: 0.2rem 0;
  }

  nav ul li a {
    font-size: 0.8rem;
    padding: 0.2rem 0;
  }

  .menu-toggle {
    font-size: 1.2rem;
    margin-right: 6px;
  }

  .hero {
    padding: 5.5rem 0 1rem;
    min-height: 50vh;
  }

  #hero h1 {
    font-size: 1.6rem;
  }

  .slogan {
    font-size: 1.1rem;
    padding: 0.2rem 0.4rem;
  }

  .hero-text {
    font-size: 0.8rem;
    max-width: 100%;
  }

  #portfolio {
    padding: 1rem 0;
  }

  #portfolio-title {
    font-size: 1.5rem;
  }

  .portfolio-item {
    padding: 0.5rem;
  }

  .portfolio-images {
    max-height: 180px;
  }

  .portfolio-item h3 {
    font-size: 1.1rem;
  }

  .portfolio-item p {
    font-size: 0.8rem;
  }

  .btn {
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
    min-width: 80px;
  }

  .form-group label {
    font-size: 0.85rem;
  }

  .form-group input,
  .form-group textarea {
    font-size: 0.8rem;
  }

  .btn-quote {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
}
