.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  padding: 5px;
  position: relative;
  width: 40px;
  height: 40px;
}

/* ícones */
.mobile-nav-toggle svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.4s ease-in-out;
}

.icon-hamburger {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(0deg) scale(1);
}

.icon-close {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(-90deg) scale(0);
}

.mobile-nav-toggle.active .icon-hamburger {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg) scale(0);
}

.mobile-nav-toggle.active .icon-close {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(0deg) scale(1.3);
}

@media (max-width: 768px) {
  .header {
    background-color: #000;
  }
  .header .logo img {
    margin-left: 0;
    height: 30px;
  }
  .mobile-nav-toggle {
    display: block;
  }
  
  .navmenu {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 280px;
    height: auto;
    background: rgb(0, 0, 0);
    backdrop-filter: blur(10px);
    transition: right 0.3s ease;
    padding: 20px;
    overflow-y: auto;
    z-index: 999;
    margin-right: 0;
    border-radius: 0;
    
  }
  
  .navmenu.active {
    right: 0;
  }
  
  .navmenu ul {
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
  }
  
  .navmenu li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .navmenu a {
    display: block;
    padding: 15px 0;
    width: 100%;
  }

  @keyframes fadeInItem {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .navmenu.active ul li a {
    animation: fadeInItem 0.5s ease forwards;
    opacity: 0;
  }

  .navmenu.active ul li:nth-child(1) a { animation-delay: 0.1s; }
  .navmenu.active ul li:nth-child(2) a { animation-delay: 0.2s; }
  .navmenu.active ul li:nth-child(3) a { animation-delay: 0.3s; }
  .navmenu.active ul li:nth-child(4) a { animation-delay: 0.4s; }
  .navmenu.active ul li:nth-child(5) a { animation-delay: 0.5s; }
  .navmenu.active ul li:nth-child(6) a { animation-delay: 0.6s; }
  .navmenu.active ul li:nth-child(7) a { animation-delay: 0.7s; }
}

.no-scroll { overflow: hidden; }

/* ===== CARROSSEL AJUSTES MOBILE ===== */
@media (max-width: 768px) {

  /* Indicadores (dots) */
  .carousel .dot {
    width: 8px;
    height: 8px;
    border-width: 1.5px;
    background-color: #fff;
    border-radius: 50%;
    opacity: 0.5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
  }

  .carousel .dot.active {
    opacity: 1;
    box-shadow: 0 0 6px #0d6efd;
  }

  .carousel .dot .loader {
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: conic-gradient(blue 0%, transparent 0%);
    mask-image: radial-gradient(circle at center, transparent 48%, black 49%);
    -webkit-mask-image: radial-gradient(circle at center, transparent 48%, black 49%);
    z-index: -1;
    opacity: 1;
    transition: background 0.3s;
  }

  /* Botões de controle */
  .carousel .controls button {
    font-size: 16px;
    padding: 6px 12px;
  }

  .carousel .controls {
    gap: 5px;
    bottom: 15px;
  }

  /* Imagens de fundo mobile */
  .carousel .slide:nth-of-type(1) {
    background-image: url('../imagens/imagemPrincipalDoInicioMobile.jpg') !important;
  }
  .carousel .slide:nth-of-type(2) {
    background-image: url('../imagens/imagemInicioFerramentasMobile.jpg') !important;
  }
  .carousel .slide:nth-of-type(3) {
    background-image: url('../imagens/imagemInicioLojaMobile.jpg') !important;
  }
  .carousel .slide:nth-of-type(4) {
    background-image: url('../imagens/imagemInicioConexãoDevMobile.jpg') !important;
  }

  .carousel .slide .content {
    position: absolute;
    top: 40%; 
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    max-width: 90%;
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
    z-index: 2;
    padding: 10px;
    box-sizing: border-box;
  }

  .slide.active .content {
    opacity: 1;
    transform: translate(-50%, -50%);
  }

  .carousel .slide h1 {
    font-size: 1.8em;
    color: blue;
    white-space: normal; 
  }

  .carousel .slide p {
    font-size: 1rem;
  }

  .carousel .slide h6 {
    font-size: 0.9rem;
  }

  /* Botão saiba mais */
  .carousel .btn-saiba-mais {
    display: inline-block;
    margin-top: 15px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
  }

  @keyframes slideInBtnMobile {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .slide.active .btn-saiba-mais {
    animation: slideInBtnMobile 1s ease forwards;
    animation-delay: 4s;
  }

  .slide:first-of-type .digitando-h1{
    white-space: normal; 
    font-size: 2em;
  }
  .slide:first-of-type h6 {
    font-size: 0.6rem;
    white-space: normal;
  }
  .slide:nth-of-type(2) .digitando-h1 {
    font-size: 1.5em;
    margin-left: 0;
  }
  .slide:nth-of-type(2){
     top: 2%;
  }
  .slide:nth-of-type(3) .digitando-h1 {
    font-size: 1.5em;
  }
  .slide:nth-of-type(3) .content {
    top: 40%;
  }
}

/* ===== VIDEO MOBILE ===== */
.video-desktop,
.video-mobile {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-mobile {
  display: none;
}

@media (max-width: 768px) {
  .video-desktop {
    display: none;
  }
  .video-mobile {
    display: block;
  }
}
