.projetos-hero {
    background: linear-gradient(120deg, #0C76D6 60%, #07A8DA 100%);
    color: #fff;
    text-align: center;
    padding: 3rem 1rem 2rem 1rem;
  }
  .projetos-hero h1 {
    font-size: 2.2rem;
    margin-bottom: 0.7rem;
  }
  .projetos-hero p {
    font-size: 1.15rem;
  }
  .projetos-lista {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(12,118,214,0.04);
    padding-bottom: 2rem;
  }
  .projetos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
  }
  .projeto-item {
    background: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(12,118,214,0.06);
    padding: 1.5rem 1rem;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
  }
  .projeto-item:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 6px 24px rgba(7,168,218,0.10);
  }
  .projeto-item h2 {
    color: #07A8DA;
    margin-bottom: 0.7rem;
    font-size: 1.3rem;
  }
  .projeto-item p {
    font-size: 1.05rem;
    color: #222;
  }
  @media (max-width: 720px) {
    .projetos-hero h1 {
      font-size: 1.3rem;
    }
    .projetos-hero p {
      font-size: 1rem;
    }
    .projetos-grid {
      grid-template-columns: 1fr;
      gap: 0.7rem;
    }
    .projeto-item {
      padding: 1rem 0.5rem;
      font-size: 1rem;
    }
  }
  @media (max-width: 480px) {
    .projetos-hero {
      padding: 1.5rem 0.2rem 1rem 0.2rem;
    }
    .projetos-hero h1 {
      font-size: 1.1rem;
    }
    .projetos-hero p {
      font-size: 0.95rem;
    }
    .projetos-lista {
      margin-top: 1rem;
      padding-bottom: 1rem;
    }
    .projetos-grid {
      grid-template-columns: 1fr;
      gap: 0.5rem;
      margin-top: 1rem;
    }
    .projeto-item {
      padding: 0.7rem 0.3rem;
      font-size: 0.95rem;
    }
    .projeto-item h2 {
      font-size: 1.1rem;
    }
    .projeto-item p {
      font-size: 0.95rem;
    }
  }
  @media (max-width: 360px) {
    .projetos-hero h1 {
      font-size: 0.9rem;
    }
    .projeto-item h2 {
      font-size: 0.95rem;
    }
    .projeto-item p {
      font-size: 0.85rem;
    }
  }

/* --- PORTFOLIO MODERNO --- */
.portfolio-servicos, .portfolio-projetos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin: 2.5rem 0 2rem 0;
  padding: 0;
  list-style: none;
}

.portfolio-servicos li, .portfolio-projetos li {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(12,118,214,0.10), 0 1.5px 6px rgba(7,168,218,0.08);
  padding: 2.2rem 1.5rem 1.5rem 1.5rem;
  position: relative;
  transition: transform 0.18s, box-shadow 0.18s;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  border-left: 6px solid #07A8DA;
}

.portfolio-servicos li:hover, .portfolio-projetos li:hover {
  transform: translateY(-7px) scale(1.025);
  box-shadow: 0 8px 32px rgba(12,118,214,0.16), 0 2px 8px rgba(7,168,218,0.12);
  border-left: 6px solid #0C76D6;
}

.portfolio-servicos li::before {
  content: '\f085'; /* wrench icon */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: #07A8DA;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  align-self: flex-start;
}

.portfolio-projetos li::before {
  content: '\f0ae'; /* tasks icon */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: #0C76D6;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  align-self: flex-start;
}

.portfolio-servicos strong, .portfolio-projetos strong {
  color: #0C76D6;
  font-weight: 700;
}

.projetos-lista h2 {
  color: #07A8DA;
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 0.7rem;
  letter-spacing: 0.5px;
  font-weight: 700;
  border-left: 5px solid #0C76D6;
  padding-left: 0.7rem;
  background: linear-gradient(90deg, #e6f7ff 60%, #fff 100%);
  border-radius: 6px;
}

.btn-download {
  margin-top: 2rem;
  font-size: 1.13rem;
  font-weight: 700;
  padding: 1rem 2.5rem;
  border-radius: 32px;
  background: linear-gradient(90deg, #07A8DA 60%, #0C76D6 100%);
  color: #fff;
  box-shadow: 0 4px 18px rgba(12,118,214,0.13);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  border: none;
  transition: background 0.18s, box-shadow 0.18s, transform 0.15s;
  text-decoration: none;
}

.btn-download:hover, .btn-download:focus {
  background: linear-gradient(90deg, #0C76D6 60%, #07A8DA 100%);
  box-shadow: 0 8px 32px rgba(12,118,214,0.18);
  transform: translateY(-2px) scale(1.04);
  color: #fff;
  text-decoration: none;
}

.btn-download i {
  font-size: 1.3em;
}

@media (max-width: 720px) {
  .portfolio-servicos, .portfolio-projetos {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }
  .portfolio-servicos li, .portfolio-projetos li {
    padding: 1.2rem 0.7rem 1rem 0.7rem;
    font-size: 0.98rem;
  }
  .projetos-lista h2 {
    font-size: 1.1rem;
    padding-left: 0.4rem;
  }
}

/* --- GALERIA DE PROJETOS --- */
.galeria-projetos {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  padding: 4rem 0;
}

.galeria-projetos h2 {
  text-align: center;
  color: #0C76D6;
  margin-bottom: 1rem;
  font-size: 2.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.galeria-descricao {
  text-align: center;
  color: #0C76D6;
  font-size: 1.1rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 500;
}

/* Container dos Trabalhos */
.trabalhos-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

/* Item de Trabalho */
.trabalho-item {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(12,118,214,0.08);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  border: 1px solid #f0f0f0;
}

.trabalho-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 30px rgba(12,118,214,0.15);
}

/* Header do Trabalho */
.trabalho-header {
  background: linear-gradient(135deg, #0C76D6 0%, #07A8DA 100%);
  color: #fff;
  padding: 1rem;
  text-align: center;
  margin-bottom: 0;
}

.trabalho-header h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
}

/* Quadro da Galeria */
.galeria-quadro {
  position: relative;
  padding: 0;
  min-height: 250px;
}

/* Slider da Galeria */
.galeria-slider {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #f8f9fa;
}

.galeria-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.galeria-slide.active {
  opacity: 1;
}

.galeria-slide:not(.active) {
  pointer-events: none;
}

.galeria-imagem, .galeria-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform 0.3s ease;
}

.galeria-imagem:hover, .galeria-video:hover {
  transform: scale(1.02);
}

.galeria-video {
  background: #000;
  cursor: pointer;
}

/* Loading state para imagens */
.galeria-slide::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #07A8DA;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 1;
}

.galeria-slide.active::before {
  display: none;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Overlay da Galeria */
.galeria-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 1.5rem 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
}

.galeria-slider:hover .galeria-overlay {
  opacity: 1;
}

/* Esconder descrição no hover quando houver título acima */
.trabalho-item.tem-titulo .galeria-overlay span {
  display: none;
}

.galeria-overlay span {
  font-size: 0.9rem;
  text-align: center;
  font-weight: 500;
  line-height: 1.3;
}

.btn-ampliar {
  background: #0C76D6;
  color: #fff;
  border: none;
  padding: 0.7rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 2px 8px rgba(12,118,214,0.3);
}

.btn-ampliar:hover {
  background: #07A8DA;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(12,118,214,0.4);
}

.btn-ampliar i {
  font-size: 1rem;
}

/* Controles de Navegação */
.galeria-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
}

.galeria-nav {
  background: #0C76D6;
  color: #fff;
  border: none;
  padding: 0.6rem;
  cursor: pointer;
  border-radius: 50%;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(12,118,214,0.2);
}

.galeria-nav:hover {
  background: #07A8DA;
  transform: scale(1.1);
  box-shadow: 0 4px 10px rgba(12,118,214,0.3);
}

.galeria-nav:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Indicadores de Página */
.galeria-indicators {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.galeria-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(12,118,214,0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.galeria-indicators button.active {
  background: #0C76D6;
  transform: scale(1.2);
}

.galeria-indicators button:hover {
  background: rgba(12,118,214,0.6);
}



/* Modal de Visualização */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 2rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0,0,0,0.7);
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  z-index: 1001;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: rgba(0,0,0,0.9);
  transform: scale(1.1);
}

.modal-image {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
}

/* Responsividade */
@media (max-width: 1024px) {
  .trabalhos-container {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .trabalhos-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }
  
  .trabalho-header h3 {
    font-size: 1rem;
  }
  
  .galeria-quadro {
    padding: 1rem;
    min-height: 250px;
  }
  
  .galeria-slider {
    height: 200px;
  }
  
  .galeria-controls {
    margin-top: 0.8rem;
  }
  
  .galeria-nav {
    width: 35px;
    height: 35px;
    padding: 0.6rem;
  }
  
  .galeria-overlay span {
    font-size: 0.85rem;
    line-height: 1.2;
  }
}

@media (max-width: 480px) {
  .galeria-projetos {
    padding: 2rem 0;
  }
  
  .trabalhos-container {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
  
  .trabalho-header h3 {
    font-size: 0.95rem;
  }
  
  .galeria-slider {
    height: 180px;
  }
  
  .galeria-overlay {
    padding: 0.8rem 0.6rem 0.6rem 0.6rem;
  }
  
  .galeria-overlay span {
    font-size: 0.75rem;
  }
  
  .btn-ampliar {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
  }
  
  .galeria-controls {
    margin-top: 0.5rem;
  }
  
  .galeria-nav {
    width: 28px;
    height: 28px;
    padding: 0.4rem;
  }
  
  .galeria-indicators button {
    width: 8px;
    height: 8px;
  }
}

@media (max-width: 360px) {
  .galeria-slider {
    height: 160px;
  }
  
  .trabalho-header h3 {
    font-size: 0.8rem;
  }
}
  