.mobile-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  position: relative;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
  padding: 0;
}

.mobile-nav-toggle span {
  display: block;
  position: absolute;
  height: 2px;
  width: 24px;
  background: #fff;
  border-radius: 3px;
  opacity: 1;
  left: 3px;
  transform: rotate(0deg);
  transition: .25s ease-in-out;
}

.mobile-nav-toggle span:nth-child(1) {
  top: 8px;
}

.mobile-nav-toggle span:nth-child(2) {
  top: 15px;
}

.mobile-nav-toggle span:nth-child(3) {
  top: 22px;
}

.mobile-nav-toggle.active span:nth-child(1) {
  top: 15px;
  transform: rotate(135deg);
}

.mobile-nav-toggle.active span:nth-child(2) {
  opacity: 0;
  left: -60px;
}

.mobile-nav-toggle.active span:nth-child(3) {
  top: 15px;
  transform: rotate(-135deg);
}

@media (max-width: 768px) {
  .header {
    background-color: #000;
  }

  .header .logo img {
    margin-left: 0;
    height: 30px;
  }

  .mobile-nav-toggle {
    display: flex;
    margin-left: auto;
    margin-top: -10px;
  }

  .navmenu ul {
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: rgba(0, 0, 0, 0.95);
    position: fixed;
    top: 60px;
    right: 0;
    width: 80%;
    max-width: 250px;
    border-radius: 0 0 0 10px;
    padding: 15px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.7);
    margin: 0;
  }

  @keyframes slideInMenu {
    from {
      transform: translateX(100%);
      opacity: 0;
    }

    to {
      transform: translateX(0);
      opacity: 1;
    }
  }

  .navmenu.active ul {
    display: flex;
    animation: slideInMenu 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
  }

  .navmenu ul li {
    padding: 10px 20px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .navmenu ul li:last-child {
    border-bottom: none;
  }

  .navmenu a {
    display: block;
    text-align: left;
    font-size: 1.1rem;
    padding-left: 14px !important;
  }

  .navmenu a:hover,
  .navmenu a.active {
    color: #fff;
  }
}

.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;
  }
}