* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

.container {
  width: 100%;
  min-height: 100vh; /* Ensures it covers at least the viewport height */
  background: linear-gradient(rgba(0, 0, 0, 0.3), transparent), url('bg.webp') center center / cover no-repeat;
  padding: 0 10%;
  position: relative;
  overflow: hidden; /* Prevents scrolling issues */
}

nav {
  display: flex;
  width: 100%;
  align-items: center;
  flex-wrap: wrap;
  padding: 5px 0;
}

.logo {
  width: 225px;
  cursor: pointer;
}

nav ul {
  flex: 1;
  text-align: right;
  padding-right: 30px;
}

nav ul li {
  display: inline-block;
  list-style: none;
  margin: 10px 30px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  position: relative;
}

nav ul li a::after {
  content: '';
  width: 0;
  height: 3px;
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  transition: width 0.3s;
}

nav ul li a:hover::after {
  width: 50%;
}

.text-box {
  color: #fff;
  position: absolute;
  top: 50%; /* Center the text box vertically */
  left: 50%; /* Center the text box horizontally */
  transform: translate(-50%, -50%);
  text-align: center; /* Center-align text inside the box */
}

.text-box p {
  font-size: 30px;
  font-weight: 600;
  margin-bottom: 20px; /* Add space between elements */
}

.text-box h1 {
  font-size: 100px;
  line-height: 90px;
  margin-bottom: 20px;
  color: transparent;
  -webkit-text-stroke: 1px #fff;
  background: url(back.webp);
  -webkit-background-clip: text;
  background-position: 0 0;
  animation: back 20s linear infinite;
}

@keyframes back {
  100% {
    background-position: 2000px 0;
  }
}

.text-box h2,
.text-box h3 {
  font-size: 30px; /* Reduced size for H2 and H3 */
  font-weight: 500;
  margin-bottom: 20px; /* Add space below H2 and H3 */
}

.text-box .row {
  display: flex;
  justify-content: center; /* Center the buttons */
  align-items: center;
  flex-wrap: wrap;
  gap: 15px; /* Add spacing between buttons */
}

.text-box a {
  color: #fff;
  text-decoration: none;
  padding: 15px 30px; /* Increase touch target size */
  margin: 10px;
  border: 2px solid #fff;
  font-size: 18px; /* Ensure text inside buttons is large enough */
  border-radius: 5px; /* Slight rounding for better touch interaction */
  transition: background 0.3s, color 0.3s;
}

.text-box a:hover {
  background: #fff;
  color: #000;
}

button {
  display: inline-block;
  padding: 15px 30px; /* Ensure sufficient touch target */
  margin: 10px;
  border-radius: 5px;
  border: none;
  outline: none;
  background: #000;
  color: #fff;
  font-size: 18px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease-out, color 0.3s ease-out;
}

button:hover {
  background: #fff;
  color: #000;
}

@media screen and (max-width: 600px) {
  .container {
    padding: 0 5%;
  }

  .text-box h1 {
    font-size: 50px;
    line-height: 50px;
    margin-bottom: 15px;
    -webkit-text-stroke: 0.8px #fff;
  }

  .text-box p {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .text-box h2,
  .text-box h3 {
    font-size: 20px;
    margin-bottom: 15px;
  }

  .text-box a {
    padding: 10px 20px; /* Adjust button size for mobile */
    font-size: 16px;
  }

  .logo {
    width: 120px;
  }

  nav ul li {
    margin: 5px 15px;
  }
}

@media screen and (max-width: 1400px) and (min-width: 600px) {
  .text-box h1 {
    font-size: 80px;
    line-height: 70px;
    margin-bottom: 20px;
    -webkit-text-stroke: 1px #fff;
  }

  .text-box p {
    font-size: 30px;
  }

  .text-box h2,
  .text-box h3 {
    font-size: 25px;
    margin-bottom: 20px;
  }

  .text-box a {
    padding: 12px 25px;
    font-size: 16px;
  }
}
