body,
html {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  height: 100%;
}
header {
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

#logo {
  flex-shrink: 0;
  padding-left: 10px;
}

#logo img {
  height: auto;
  width: 150px;
  max-width: 150%;
  margin-left: 20px;
}

nav {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin: 0 15px;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  margin-left: auto;
}

.close {
  display: none;
}

.nav-links.active + .close {
  display: block;
}

.hamburger span {
  height: 3px;
  width: 25px;
  background: #fff;
  margin: 4px;
  border-radius: 5px;
}

nav ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

nav ul li {
  padding: 0 10px;
}

nav ul li a {
  text-decoration: none;
  color: rgb(255, 255, 255);
  padding: 5px 10px;
  transition: background-color 0.3s;
}

nav ul li a:hover {
  color: rgba(255, 255, 255, 0.2);
  transition: 0.3s ease-in-out;
}

.hero-section {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  color: white;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

footer {
  position: absolute;
  bottom: 30px;
  left: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: calc(100% - 20px);
}

.hero-image {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-size: cover;
  background-position: cover;
}

.music-releases {
  position: relative;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  top: -20px;
  width: 60%;
}

.streaming-service-icons {
  display: flex;
  align-items: center;
  gap: 20px;

  img {
    height: 30px;
    background: #ffffff46;
    padding: 10px;
    cursor: pointer;
    border-radius: 10px;

    &:hover {
      transform: scale(1.05);
      transition: ease-in-out 300ms;
      background: rgba(255, 255, 255, 0.84);
    }
  }
}

.wrapper {
  overflow-x: hidden;
  display: flex;
  align-items: center;
  position: relative;
}

.release-container {
  display: flex;
  /* grid-template-columns: repeat(2, 1fr); */
  width: 100%;
  gap: 80px;
  
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width:thin;

  -webkit-overflow-scrolling: touch; 
}

.release-container::-webkit-scrollbar {
  display: none;
}

.release-container {
  scrollbar-width: none;
}

.release {
  max-width: 200px;
  flex-shrink: 0;
  text-align: center;

  &:hover {
    transform: scale(1.07);
    transition: ease-in-out 400ms;
  }

  a {
    text-decoration: none;
    color: white;
    display: flex;
    flex-direction: column;
    width: fit-content;

    img {
      width: 100%;
    }

    p {
      width: 100%;
      font-weight: 500;
      font-size: 18px;
      background: #000000b2;
      margin: 0;
      padding: 15px 0;
      text-align: center;
      border-radius: 5px;
    }
  }
}

.release.show {
  display: block;
  opacity: 1;
  transform: translateX(0);
}

.buttonContainer {
  display: flex;
  justify-content: space-between;
  width: calc(100% + 15%);
  align-items: center;
  padding: 0;
  position: absolute;
  top: 60%;
  gap: 20px;
}

button {
  padding: 5px 10px;
  border-radius: 50%;
  border: none;
  font-size: 1rem;
  background: #505050dc;
  color: white;
  font-weight: 700;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  display: flex;

  &:hover {
    transform: scale(1.06);
    transition: all;
  }
}

.social-media-icons img {
  width: 32px;
  height: 32px;
}

.social-media-icons a {
  margin: 0 10px;
}

@media (max-width: 768px) {
  header {
    flex-direction: row;
    align-items: center;
  }

  #logo {
    margin-bottom: 10px;
  }

  #logo img {
    margin-left: 0;
    width: 140px;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
  }

  nav ul li {
    padding: 5px 0;
  }

  .hero-section {
    height: 100vh;
    padding: 20px;
  }

  .hero-section::before {
    background: rgba(0, 0, 0, 0.3);
  }

  .hero-content {
    padding: 20px 0;
  }

  .release img {
    width: 120px;
    height: 120px;
  }

  .social-media-icons {
    position: static;
    display: flex;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background: #333;
    justify-content: center;
    align-items: center;
    z-index: 999;
  }

  .close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    cursor: pointer;
    color: white;
    font-size: 2rem;
  }

  .nav-links li {
    margin: 15px 0;
    text-align: center;
  }

  .nav-links.active {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  footer {
    display: block;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
  .social-media-icons {
    margin-top: 10px;
  }

  .release-container {
    display: flex;
    gap: 1.2rem;
    height: fit-content;
  }

 .music-releases {
    width: 90%;
    top: 0;
    padding-top: 60px; /* Add space for the fixed header */
  }

  .release-container {
    display: flex;
    gap: 1.2rem;
    height: fit-content;
    padding: 0 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .release {
    width: 150px; /* Fixed width for consistency */
    height: auto; /* Let height adjust based on content */
    flex-shrink: 0; /* Prevent shrinking */
  }

  .release a {
    width: 100%;
    height: auto;
  }

  .release a img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1; /* Maintain square aspect ratio */
    object-fit: cover;
  }

  .release a p {
    font-size: 0.8rem;
    width: 100%;
    padding: 10px 0;
  }
}


@media (max-width: 480px) {
  header {
    padding: 10px;
  }

  #logo img {
    width: 120px;
  }

  nav ul li {
    padding: 5px 0;
  }

  .hero-section {
    height: 100vh;
  }

  .hero-content h1 {
    font-size: 1.5em;
  }

  .release img {
    width: 100px;
    height: 100px;
  }

 .music-releases {
    width: 100%;
    top: 0;
    padding-top: 60px; /* Add space for the fixed header */
  }

  .release {
    width: 120px; /* Slightly smaller for very small screens */
  }

  .release a p {
    font-size: 0.7rem;
    padding: 8px 0;
  }

  .release-container {
    gap: 20px;
  }

  .buttonContainer {
    display: none; /* Hide navigation buttons on mobile */
  }

  .wrapper {
    width: 100%;
    overflow-x: auto;
  }
}
