* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", "sans-serif";
}

.header-container {
  position: fixed;
  width: 100%;
  /* background-color: rgba(0, 0, 0, 0.7);  */
  background-color: black;
  z-index: 100;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
  top: 0;
}

nav {
  display: flex;
  justify-content: center;
  padding: 2rem 0;
  align-items: center;
  position: relative;
}

.nav-links {
  list-style-type: none;
  display: flex;
  gap: 2rem;
  margin-left: 6rem;
  transition: right 0.3s ease, opacity 0.3s ease;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #ffcc00;
}

/* Hamburger menu styles */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  cursor: pointer;
  z-index: 101;
}
.hamburger span {
  display: block;
  width: 28px;
  height: 4px;
  margin: 4px 0;
  background: #fff;
  border-radius: 2px;
  transition: 0.4s;
}
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

@media (max-width: 992px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 70vw;
    max-width: 350px;
    background: rgba(0, 0, 0, 0.95);
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
    padding: 5rem 2rem 2rem 2rem;
    margin-left: 0;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.2);
    z-index: 100;
    opacity: 0;
    pointer-events: none;
  }
  .nav-links.active {
    right: 0;
    opacity: 1;
    pointer-events: auto;
  }
  .hamburger {
    display: flex;
    position: absolute;
    right: 2rem;
    top: 1rem;
  }
}

@media (max-width: 576px) {
  .nav-links {
    width: 90vw;
    max-width: 100vw;
    padding: 5rem 1rem 2rem 1rem;
  }
  .hamburger {
    right: 1rem;
    top: 1rem;
  }
}

footer {
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  text-align: center;
  padding: 1rem 0;
  position: relative;
  bottom: 0;
  width: 100%;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  display: inline;
  margin: 0 1.5rem;
}

.footer-links a {
  color: white;
  text-decoration: none;
}

.footer-links a:hover {
  color: #ff6347;
}

#wrapper {
  height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  perspective: 10px;
}

.container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  transform-style: preserve-3d;
  z-index: -1;
}

.background,
.foreground {
  position: absolute;
  height: 100%;
  width: 100%;
  background-size: cover;
  object-fit: cover;
  z-index: -1;
}

.background {
  transform: translateZ(-40px) scale(5);
}

.foreground {
  transform: translateZ(-20px) scale(4);
}

h1 {
  position: absolute;
  top: 5rem;
  left: 50%;
  transform: translateX(-50%);
  text-transform: uppercase;
  font-size: 10rem;
  letter-spacing: 4px;
  color: white;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

section {
  color: white;
  padding: 5rem 0;
  background-color: rgb(45, 45, 45);
}

.heading-text {
  font-size: 5rem;
  padding: 0 10rem;
}

.para {
  font-size: 1.5rem;
  padding: 0 10rem;
  margin: 5rem 0;
}

.bg {
  position: relative;
  width: 100%;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  height: 500px;
}

.description {
  position: absolute;
  background-color: white;
  color: black;
  font-size: 3.5rem;
  font-weight: 600;
  padding: 0.5rem 2.5rem;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  border-radius: 4px;
}

.bg1 {
  background-image: url(./assets/sport-1.jpg);
}

.bg2 {
  background-image: url(./assets/sport-2.jpg);
}

.bg3 {
  background-image: url(./assets/sport-3.jpg);
}

.bg4 {
  background-image: url(./assets/sport-4.jpg);
}

.bg5 {
  background-image: url(./assets/sport-5.jpg);
}

.bg6 {
  background-image: url(./assets/sport-6.jpg);
}

/* Media Queries for Responsiveness */
@media (max-width: 1200px) {
  h1 {
    font-size: 8rem;
  }

  .heading-text {
    font-size: 4rem;
    padding: 0 5rem;
  }

  .para {
    font-size: 1.3rem;
    padding: 0 5rem;
  }

  .bg {
    height: 400px;
  }

  .description {
    font-size: 3rem;
  }
}

@media (max-width: 992px) {
  h1 {
    font-size: 6rem;
  }

  .heading-text {
    font-size: 3rem;
    padding: 0 3rem;
  }

  .para {
    font-size: 1.2rem;
    padding: 0 3rem;
  }

  .bg {
    height: 350px;
  }

  .description {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 5rem;
    top: 3rem;
  }

  .heading-text {
    font-size: 2.5rem;
    padding: 0 2rem;
  }

  .para {
    font-size: 1rem;
    padding: 0 2rem;
    margin: 3rem 0;
  }

  .bg {
    height: 300px;
  }

  .description {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 2rem;
    top: 15rem;
  }

  .heading-text {
    font-size: 2rem;
    padding: 0 1rem;
  }

  .para {
    font-size: 0.9rem;
    padding: 0 1rem;
    margin: 2rem 0;
  }

  .bg {
    height: 250px;
  }

  .description {
    font-size: 1.5rem;
    padding: 0.5rem 1rem;
    white-space: nowrap;
  }
}
