* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  overflow-x: hidden;
}

.nextlap {
  width: 100%;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background:
    linear-gradient(
      rgba(10, 0, 20, 0.75),
      rgba(10, 0, 20, 0.75)
    ),
    url("/2BIM/imagens/sanrio.jfif");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  color: white;
}

.nextlap h1 {
  font-size: clamp(40px, 7vw, 70px);
  margin-bottom: 10px;
  letter-spacing: 3px;
  text-shadow:
    0 0 10px rgba(255, 79, 179, 0.4);
}

.nextlap-intro {
  opacity: 0.7;
  margin-bottom: 50px;
  font-size: 18px;
}

.nextlap-cards {
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.lap-card {
  background: rgba(255,255,255,0.05);
  border-left: 3px solid #ff4fb3;
  padding: 20px;
  border-radius: 12px;
  backdrop-filter: blur(8px);
  transition: 0.3s;
  margin-bottom: 30px;
  margin-top: 10px;
}

.lap-card:hover {
  transform: translateX(8px);

  box-shadow:
    0 0 15px rgba(255, 79, 179, 0.25);
}

.lap-card h3 {
  margin-bottom: 8px;
  color: #ffd1ea;
  letter-spacing: 1px;
}

.lap-card p {
  opacity: 0.8;
  line-height: 1.5;
  font-family: 'Quicksand', sans-serif;
}

.navbar {
  width: 100%;
  padding: 15px 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px;
  margin-top: 10px;
  background: #ec73b562;
  backdrop-filter: blur(10px);
  border-radius: 12px;
  animation: breatheGlow 3s ease-in-out infinite;
}

.navbar nav {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

.navbar nav a {
  color: white;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  padding: 8px 16px;
  border-radius: 999px;
  background: #821faa;
  transition: 0.3s;
  font-family: 'Quicksand', sans-serif;
}

.navbar nav a:hover {
  background: rgba(74, 15, 111, 0.7);
  transform: translateY(-3px);
  box-shadow:
    0 0 10px rgba(185, 79, 227, 0.5);
}

.navbar nav a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(185, 79, 227, 0.5),
    transparent
  );

  transition: 0.5s;
}

.navbar nav a:hover::before {
  left: 100%;
}

@keyframes breatheGlow {

  0% {
    box-shadow:
      0 0 10px rgba(185, 79, 227, 0.15);
  }

  50% {
    box-shadow:
      0 0 25px rgba(185, 79, 227, 0.35);
  }

  100% {
    box-shadow:
      0 0 10px rgba(185, 79, 227, 0.15);
  }
}

footer {
  width: 90%;
  max-width: 800px;
  margin: 40px auto 20px auto;
  padding: 15px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-radius: 12px;
  background: #df8ae51c;
  color: white;
  font-family: 'Quicksand', sans-serif;
  box-shadow:
    0 0 5px rgba(185, 79, 227, 0.4),
    0 0 15px rgba(185, 79, 227, 0.3),
    0 0 30px rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {

  .nextlap {
    padding: 30px 15px;
  }

  .nextlap h1 {
    font-size: 38px;
  }

  .nextlap-intro {
    font-size: 15px;
  }

  .navbar {
    padding: 15px;
  }

  .navbar nav {
    gap: 10px;
  }

  .navbar nav a {
    padding: 7px 14px;
    font-size: 14px;
  }

  .lap-card {
    padding: 15px;
  }

  footer {
    width: 95%;
  }
}