/* CONFIGURAÇÃO DE CORES E BASE*/
:root {
  --primary-blue: #003399;
  --accent-blue: #0088cc;
  --bg-dark: #1b1b1b;
  --bg-medium: #262626;
  --bg-card: #333333;
  --text-main: #e0e0e0;
  --text-muted: #a0a0a0;
  --input-bg: #404040;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Roboto", sans-serif;
  color: var(--text-main);
  line-height: 1.6;
  background-color: var(--bg-dark);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* HEADER E NAVEGAÇÃO */
header {
  background: var(--bg-medium);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid var(--primary-blue);
  transition: top 0.4s ease;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo img {
  height: 50px;
  width: auto;
  border-radius: 15px;
  padding: 5px;
}

.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
}

.nav-links li {
  margin-left: 30px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  transition: 0.3s;
}

.nav-links a:hover {
  color: var(--accent-blue);
}

.btn-nav {
  background-color: var(--primary-blue) !important;
  color: #fff !important;
  padding: 10px 20px !important;
  border-radius: 5px !important;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.btn-nav:hover {
  background-color: var(--accent-blue) !important;
}

/* Burger Menu */
.burger {
  display: none;
  cursor: pointer;
}

.burger div {
  width: 25px;
  height: 3px;
  background-color: var(--text-main);
  margin: 5px;
  transition: all 0.3s ease;
}

/*HERO*/
.hero {
  height: 100vh;
  background: linear-gradient(rgba(0, 51, 153, 0.8), rgba(27, 27, 27, 0.9)),
    url("https://images.unsplash.com/photo-1504917595217-d4dc5ebe6122?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  margin-top: 80px;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--text-main);
  max-width: 800px;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 20px;
  text-transform: uppercase;
  color: #fff;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--text-main);
}

.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
  margin-right: 15px;
}

.btn-primary {
  background-color: var(--accent-blue);
  color: #fff;
  border: 2px solid var(--accent-blue);
}

.btn-primary:hover {
  background-color: transparent;
  border-color: #fff;
}

.btn-secondary {
  background-color: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.btn-secondary:hover {
  background-color: #fff;
  color: var(--primary-blue);
}

/*SEÇÕES GERAIS */
section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: var(--accent-blue);
  margin-bottom: 10px;
}

.subtitle {
  text-align: center;
  margin-bottom: 50px;
  color: var(--text-muted);
}

/* DIFERENCIAIS */
.diferenciais {
  background-color: var(--bg-medium);
  text-align: center;
}

.card-dif {
  background: var(--bg-card);
  padding: 40px 20px;
  border-radius: 8px;
  border: 1px solid #444;
  transition: transform 0.3s;
}

.card-dif:hover {
  transform: translateY(-10px);
  border-color: var(--accent-blue);
}

.card-dif i {
  font-size: 3rem;
  color: var(--accent-blue);
  margin-bottom: 20px;
}

.card-dif h3 {
  margin-bottom: 10px;
  color: var(--text-main);
}

.card-dif p {
  color: var(--text-muted);
}

/* SOBRE*/
.sobre {
  background-color: var(--bg-dark);
}

.sobre-img img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 10px 10px 0px var(--primary-blue);
}

.sobre-text h2 {
  color: var(--accent-blue);
  font-size: 2rem;
  margin-bottom: 20px;
}

.highlight {
  font-size: 1.1rem;
  color: var(--accent-blue);
  font-weight: bold;
  margin-bottom: 15px;
}

.bio-box {
  margin-top: 30px;
  padding: 20px;
  background: var(--bg-card);
  border-left: 5px solid var(--accent-blue);
  border-radius: 4px;
}

.bio-box h4 {
  color: var(--text-main);
}

/* SERVIÇOS E RAMOS*/
.servicos,
.ramos {
  background-color: var(--bg-medium);
}

.service-card {
  background: var(--bg-card);
  padding: 30px;
  border: 1px solid #444;
  border-radius: 8px;
  text-align: center;
  transition: 0.3s;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.service-card:hover {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  transform: translateY(-10px);
}

.service-card h3 {
  margin: 15px 0;
  color: var(--text-main);
}

.service-card p {
  color: var(--text-muted);
}

.service-card:hover p {
  color: #e0e0e0;
}

.service-card i {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--accent-blue);
}

.service-card:hover i {
  color: #fff;
}

.service-card:hover h3 {
  color: #fff;
}

/*PORTFÓLIO */
.portfolio {
  background: var(--bg-dark);
  padding: 80px 0;
}

.portfolio .section-title {
  text-align: center;
  font-size: 2.5rem;
  color: var(--accent-blue);
  margin-bottom: 60px;
}

.portfolio h3 {
  text-align: center;
  color: var(--accent-blue) !important;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 60px 0 40px;
  text-transform: none;
  letter-spacing: normal;
  border: none !important;
  display: block;
  padding: 0;
}

.portfolio h3:first-of-type {
  margin-top: 0;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}

.project-item {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #444;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.project-item:hover {
  transform: translateY(-8px);
  border-color: var(--accent-blue);
  box-shadow: 0 8px 20px rgba(0, 136, 204, 0.3);
}

.video-container {
  width: 100%;
  min-height: 280px;
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
  padding: 0;
}

.video-container img {
  width: 100%;
  height: auto;
  object-fit: contain !important;
  display: block;
  transition: transform 0.4s ease;
}

.project-item:hover .video-container img {
  transform: scale(1.05);
}

/* Projetos Especiais */
.portfolio h3:first-of-type + .gallery .video-container {
  min-height: 280px;
  height: 280px;
  padding: 0;
  background: transparent;
}

.portfolio h3:first-of-type + .gallery .video-container img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

.project-info {
  padding: 25px;
  background: var(--bg-card);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-info h4 {
  color: var(--accent-blue);
  font-size: 1.2rem;
  margin-bottom: 12px;
  font-weight: 700;
}

.project-info p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/*CONTATO E FORMULÁRIO */
.contato {
  background-color: var(--bg-medium);
}

.info-list {
  list-style: none;
  margin-top: 30px;
}

.info-list li {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  font-size: 1.1rem;
  color: var(--text-main);
}

.info-list i {
  color: var(--accent-blue);
  font-size: 1.5rem;
  margin-right: 15px;
  width: 25px;
}

.form-box {
  background: var(--bg-card);
  padding: 40px;
  border-radius: 8px;
  border: 1px solid #444;
}

.form-box input,
.form-box textarea {
  width: 100%;
  padding: 15px;
  margin-bottom: 15px;
  background-color: var(--input-bg);
  border: 1px solid #555;
  color: var(--text-main);
  border-radius: 5px;
  font-family: inherit;
}

.form-box input:focus,
.form-box textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
  background-color: #505050;
}

.form-box input::placeholder,
.form-box textarea::placeholder {
  color: #888;
}

.input-group {
  margin-bottom: 20px;
}

.input-group.double {
  display: flex;
  gap: 15px;
}

.input-group input,
.input-group textarea {
  width: 100%;
  padding: 15px;
  background-color: var(--input-bg);
  border: 1px solid #555;
  color: var(--text-main);
  border-radius: 5px;
  font-family: inherit;
}

.input-group input:focus,
.input-group textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
  background-color: #505050;
}

.input-group input::placeholder,
.input-group textarea::placeholder {
  color: #888;
}

.full-width {
  width: 100%;
  cursor: pointer;
}

/*FOOTER */
footer {
  background: #111;
  color: #a0a0a0;
  text-align: center;
  padding: 30px 0;
  border-top: 1px solid #333;
}

.footer-content p {
  margin-bottom: 8px;
  font-size: 1.0rem;
}

.cnpj,
.crea {
  font-size: 1rem !important;
  color: var(--accent-blue);
  font-weight: bold;
}

.crea {
  margin-top: 5px;
  letter-spacing: 1px;
}

.cnpj {
  margin-top: 5px;
  font-size: 1rem !important;
}

/* WHATSAPP */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

.whatsapp-float:hover {
  background-color: #128c7e;
  transform: scale(1.1);
}

/*GRID SYSTEMS */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* RESPONSIVIDADE */
@media screen and (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .portfolio .video-container {
    min-height: 240px;
    padding: 0;
  }

  .portfolio h3:first-of-type + .gallery .video-container {
    height: 240px;
  }
}

@media screen and (max-width: 768px) {
  .nav-links {
    position: absolute;
    right: 0px;
    height: 92vh;
    top: 80px;
    background-color: var(--bg-card);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 70%;
    transform: translateX(100%);
    transition: transform 0.5s ease-in;
    box-shadow: -2px 5px 10px rgba(0, 0, 0, 0.5);
    padding-top: 50px;
  }

  .nav-links li {
    margin: 25px 0;
  }

  .burger {
    display: block;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .input-group.double {
    flex-direction: column;
  }

  .portfolio .video-container {
    min-height: 220px;
    padding: 0;
  }

  .portfolio h3:first-of-type + .gallery .video-container {
    height: 220px;
  }

  .portfolio h3 {
    font-size: 1.5rem;
    margin: 40px 0 30px;
  }

  .portfolio .project-info {
    padding: 20px;
  }

  .portfolio .project-info h4 {
    font-size: 1.1rem;
  }
}

@media screen and (max-width: 480px) {
  .portfolio .video-container {
    min-height: 200px;
    padding: 0;
  }

  .portfolio .section-title {
    font-size: 2rem;
  }
}

.nav-active {
  transform: translateX(0%);
}

/*INSTAGRAM FLOAT */
.instagram-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 110px;
  right: 40px;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

.instagram-float:hover {
  transform: scale(1.1);
  box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.7);
}

/* Ajuste para mobile */
@media screen and (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
  }

  .instagram-float {
    bottom: 90px;
    right: 20px;
  }
}

/*  EFEITO LIGHTBOX PERSONALIZADO  */

#custom-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Fundo preto com 85% de opacidade (transparente) */
    background-color: rgba(0, 0, 0, 0.85); 
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

#custom-lightbox img {
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    cursor: default;
    border-radius: 4px;
    /* Animação suave ao abrir */
    transition: transform 0.3s ease-in-out;
}

#lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    line-height: 1;
}

#lightbox-close:hover {
    color: #007bff; /* Muda para o azul do seu site ao passar o mouse */
}

/* Cursor de lupa nas imagens do portfólio */
.video-container img {
    cursor: zoom-in;
    transition: opacity 0.3s, transform 0.3s;
}

.video-container img:hover {
    opacity: 0.9;
    transform: scale(1.02);
}