section#home {
  background: url("../images/gallery/img-26.jpeg") center center / cover
    no-repeat;
}

main > .container {
  padding: 60px 15px 0;
}

/* Estilos principais para o botão voltar ao topo */
#backToTopBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1050;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(45deg, #dc3545, #fd7e14);
  border: none;
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
  display: none;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
}

#backToTopBtn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
  background: linear-gradient(45deg, #fd7e14, #dc3545);
}

#backToTopBtn i {
  color: white;
  font-size: 20px;
  transition: transform 0.3s ease;
}

#backToTopBtn:hover i {
  transform: translateY(-2px);
}

/* Animações de entrada e saída */
#backToTopBtn.show {
  display: flex !important;
  align-items: center;
  justify-content: center;
  animation: slideInUp 0.3s ease-out;
}

#backToTopBtn.hide {
  animation: slideOutDown 0.3s ease-in;
}

@keyframes slideInUp {
  from {
    transform: translateY(100px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideOutDown {
  from {
    transform: translateY(0);
    opacity: 1;
  }

  to {
    transform: translateY(100px);
    opacity: 0;
  }
}

/* Efeito Ripple */
.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple-animation 0.6s linear;
  background-color: rgba(255, 255, 255, 0.3);
  left: 50%;
  top: 50%;
  margin-left: -25px;
  margin-top: -25px;
  width: 50px;
  height: 50px;
  pointer-events: none;
  /* Não interfere nos cliques */
}

@keyframes ripple-animation {
  to {
    transform: scale(2);
    opacity: 0;
  }
}

/* Responsivo */
@media (max-width: 768px) {
  #backToTopBtn {
    width: 45px;
    height: 45px;
    bottom: 15px;
    right: 15px;
  }

  #backToTopBtn i {
    font-size: 18px;
  }

  /* Ajuste do ripple para mobile */
  .ripple {
    width: 45px;
    height: 45px;
    margin-left: -22.5px;
    margin-top: -22.5px;
  }
}

/* Estilos para as seções */
section {
  min-height: 100vh;
  padding: 80px 0;
}

#home {
  min-height: 100vh;
  padding: 0;
}

/* Efeito visual para seções */
#produtos-servicos {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

#portfolio {
  background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
}

#contato {
  background: linear-gradient(135deg, #dee2e6 0%, #ced4da 100%);
}

#solicitar-orcamento {
  background: linear-gradient(135deg, #ced4da 0%, #adb5bd 100%);
}

/* Menu ativo */
.navbar-nav .nav-link.active {
  color: #dc3545 !important;
  font-weight: bold;
}

/* Scroll suave para toda a página */
html {
  scroll-behavior: smooth;
}

/* Estilos específicos para a seção Nossos Serviços */

/* Estado inicial dos cards */
.service-card {
  transition: all 0.3s ease;
  cursor: pointer;
}

/* Efeitos de hover no card */
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--bs-box-shadow-lg) !important;
}

/* Zoom suave na imagem */
.service-img {
  transition: transform 0.4s ease;
}

.service-card:hover .service-img {
  transform: scale(1.05);
}

/* Responsividade - efeito mais sutil no mobile */
@media (max-width: 767px) {
  .service-card:hover {
    transform: translateY(-4px);
  }

  .service-card:hover .service-img {
    transform: scale(1.03);
  }
}

/* Efeito smooth no botão CTA */
.btn.smooth-scroll {
  transition: all 0.3s ease;
}

.btn.smooth-scroll:hover {
  transform: translateY(-2px);
  box-shadow: var(--bs-box-shadow-lg) !important;
}

/* Estilos para Seção Portfolio */
.portfolio-item {
  transition: all 0.4s ease;
  cursor: pointer;
  opacity: 1;
  transform: translateY(0);
}

.portfolio-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

.portfolio-img {
  transition: transform 0.5s ease;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-item:hover .portfolio-img {
  transform: scale(1.08);
}

.portfolio-overlay {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
  transform: translateY(0);
}

.badge {
  font-size: 0.75rem;
  font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .portfolio-image {
    height: 280px !important;
  }

  .display-4 {
    font-size: 2rem;
  }

  .portfolio-item:hover {
    transform: translateY(-4px);
  }
}

/* Animações de entrada para portfolio items */
.portfolio-item.fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: portfolioReveal 0.6s ease forwards;
}

.portfolio-item.fade-in:nth-child(1) {
  animation-delay: 0.1s;
}

.portfolio-item.fade-in:nth-child(2) {
  animation-delay: 0.2s;
}

.portfolio-item.fade-in:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes portfolioReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Contador highlight effect */
.stats-number.counting {
  color: var(--bs-primary);
  text-shadow: 0 0 10px rgba(13, 110, 253, 0.3);
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* Estilos para Seção Solicite Orçamento */

/* Glass morphism effect */
.glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  transition: all 0.3s ease;
}

/* .glass-card:hover {
                    background: rgba(255, 255, 255, 0.15);
                    transform: translateY(-2px);
                    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
                } */

/* Contact icon styles */
.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

/* Glass input styles */
.glass-input {
  /* background: rgba(255, 255, 255, 0.2) !important; */
  background-color: rgba(255, 255, 255, 0.2) !important;
  background-image: var(--bs-form-select-bg-img),
    var(--bs-form-select-bg-icon, none) !important;
  background-repeat: no-repeat !important;
  background-position: right 0.75rem center !important;
  background-size: 16px 12px !important;

  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 0.5rem !important;
  color: white !important;
  /* transition: all 0.3s ease; */
  transition: background-color 0.3s ease, border-color 0.3s ease,
    box-shadow 0.3s ease, color 0.3s ease;
}

.glass-input::placeholder {
  color: rgba(255, 255, 255, 0.7) !important;
}

.glass-input:focus {
  /* background: rgba(255, 255, 255, 0.25) !important; */

  background-color: rgba(255, 255, 255, 0.25) !important;
  background-image: var(--bs-form-select-bg-img),
    var(--bs-form-select-bg-icon, none) !important;
  background-repeat: no-repeat !important;
  background-position: right 0.75rem center !important;
  background-size: 16px 12px !important;

  border-color: var(--bs-success) !important;
  box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25) !important;
  color: white !important;
}

/* Select specific styles */
.glass-input.form-select {
  --bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}

.glass-input option {
  background: var(--bs-dark);
  color: white;
}

/* Glass button */
.glass-btn {
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(25, 135, 84, 0.3);
}

.glass-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(25, 135, 84, 0.4);
}

/* Hover effects */
.hover-white:hover {
  color: white !important;
  transition: color 0.3s ease;
}

/* Contact methods animations */
.contact-methods .d-flex {
  transition: all 0.3s ease;
}

.contact-methods .d-flex:hover {
  transform: translateX(5px);
}

.contact-methods .d-flex:hover .contact-icon {
  transform: scale(1.1);
}

/* Business hours styling */
/* .business-hours div {
                transition: all 0.3s ease;
            }

            .business-hours div:hover {
                background: rgba(255, 255, 255, 0.1);
                padding: 0.25rem 0.5rem;
                border-radius: 0.25rem;
            } */

/* Form validation styles */
.glass-input:invalid:focus {
  border-color: var(--bs-danger) !important;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.glass-input:valid:focus {
  border-color: var(--bs-success) !important;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .glass-card {
    padding: 1.5rem !important;
  }

  .contact-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .display-4 {
    font-size: 2rem;
  }
}

/* Loading state for form submission */
.glass-btn.loading {
  opacity: 0.7;
  pointer-events: none;
}

.glass-btn.loading::after {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-left: 10px;
  border: 2px solid transparent;
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}
