/* 
MARK: Main styles
*/
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  overflow-x: hidden;
}

/* 
MARK: Intro section
*/
.home-page-intro {
  z-index: 20;
  position: relative;
  min-height: 100vh;
  background: url("../assets/images/concert-main.jpg") no-repeat center center /
    cover;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  color: white;
  overflow: hidden;
  padding: 0 5vw;
}

.intro-content {
  max-width: 90%;
  padding-left: 1.75rem;
  padding-bottom: 4vw;
}

#first-tagline {
  font-size: clamp(1.2rem, 2vw, 2.5rem);
  font-weight: 400;
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.65);
}

#primary-content {
  font-size: clamp(4rem, 10vw, 9rem);
  font-weight: 300;
  margin: 0.5rem 0;
  color: rgba(255, 255, 255, 0.85);
}

#primary-content span {
  font-weight: 700;
  color: var(--primary-foreground);
}

#second-tagline {
  font-size: clamp(1.5rem, 3vw, 3rem);
  font-weight: 300;
  margin-top: 0.5rem;
  color: rgba(255, 255, 255, 0.65);
}

@media (max-width: 750px) {
  #primary-content {
    font-size: 7rem;
  }
}

@media (max-width: 520px) {
  #primary-content {
    font-size: 6rem;
  }

  .intro-content {
    max-width: 90%;
    padding-left: 0;
    padding-bottom: 4vw;
  }
}

@media (max-width: 420px) {
  #primary-content {
    font-size: 5.6rem;
  }
}

/* 
MARK: Categories section
*/
.categories-section {
  padding-bottom: 40px;
  padding-top: 40px;
  background-color: #f5f5f5;
}

.categories-section h1 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 28px;
  font-weight: 600;
}

.categories-wrapper {
  padding: 0px 0px 0px 0px;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 50px;
}

.category-container {
  width: 150px;
  height: 150px;
  background-color: #d7dbdd; 
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  flex-shrink: 0; /* Prevent shrinking in flex layout */
}

.category-container:hover {
  background-color: #cacfd2;
  transition: background-color 0.2s ease;
}

.category-container a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  text-decoration: none;
  color: #000;
}

.category-container img {
  width: 32px;
  height: 32px;
  margin-bottom: 12px;
}

.category-container h3 {
  font-size: 14px;
  font-weight: 400;
  margin: 0;
}

/* Large tablets and below - horizontal slider */
@media (max-width: 1024px) {
  .categories-section {
    position: relative;
  }
  
  .categories-wrapper {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    scroll-behavior: smooth;
    gap: 30px;
    padding: 0 30px;
    max-width: 100%;
    margin: 0;
  }
  
  /* Hide scrollbar for Chrome, Safari and Opera */
  .categories-wrapper::-webkit-scrollbar {
    display: none;
  }
  
  .category-container {
    width: 130px;
    height: 130px;
    min-width: 130px; /* Ensure consistent width */
    border: 1px solid #e0e0e0;
  }
  
  /* Add scroll indicators */
  .categories-wrapper::before,
  .categories-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 20px;
    pointer-events: none;
    z-index: 1;
  }
  
  .categories-wrapper::before {
    left: 0;
    background: linear-gradient(to right, rgba(245,245,245,0.8), transparent);
  }
  
  .categories-wrapper::after {
    right: 0;
    background: linear-gradient(to left, rgba(245,245,245,0.8), transparent);
  }
}

/* Medium tablets */
@media (max-width: 768px) {
  .categories-wrapper {
    gap: 25px;
    padding: 0 25px;
  }
  
  .category-container {
    width: 120px;
    height: 120px;
    min-width: 120px;
  }
  
  .category-container img {
    width: 28px;
    height: 28px;
  }
}

/* Mobile horizontal slider */
@media (max-width: 600px) {
  .categories-wrapper {
    gap: 20px;
    padding: 0 20px;
  }
  
  .category-container {
    width: 110px;
    height: 110px;
    min-width: 110px;
  }
  
  .category-container img {
    width: 26px;
    height: 26px;
  }
  
  .category-container h3 {
    font-size: 13px;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  .categories-section {
    padding: 30px 0;
  }
  
  .categories-section h1 {
    font-size: 24px;
    margin-bottom: 25px;
    padding: 0 10px;
  }
  
  .categories-wrapper {
    gap: 15px;
    padding: 0 15px;
  }
  
  .category-container {
    width: 100px;
    height: 100px;
    min-width: 100px;
  }
  
  .category-container img {
    width: 24px;
    height: 24px;
    margin-bottom: 8px;
  }
  
  .category-container h3 {
    font-size: 12px;
  }
}

/* Very small mobile devices */
@media (max-width: 380px) {
  .categories-wrapper {
    gap: 12px;
    padding: 0 12px;
  }
  
  .category-container {
    width: 90px;
    height: 90px;
    min-width: 90px;
  }
  
  .category-container img {
    width: 22px;
    height: 22px;
  }
  
  .category-container h3 {
    font-size: 11px;
  }
}

/* 
MARK: Outro section
*/
.categories-outro {
  max-width: 100vw;
  overflow-x: hidden;
  padding: 0px;
}

.outo-wrapper {
  display: flex;
  flex-wrap: nowrap;
  gap: 0px;
  overflow-x: auto;
  list-style: none;
  padding-bottom: 0px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; 
}
.categories-outro {
  max-width: 100vw;
  overflow-x: hidden;
  padding: 0;
  margin: 0;
}

.outo-wrapper {
  display: flex;
  flex-wrap: nowrap;
  gap: 0; 
  overflow-x: auto;
  list-style: none;
  padding: 0;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; 
}

.outo-wrapper::-webkit-scrollbar {
  display: none; 
}

.outro-container {
  flex: 0 0 100vw;
  max-width: 100vw;
  scroll-snap-align: start;
  background: #f9f9f9;
  overflow: hidden;
  height: 480px; 
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.outro-container a {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.outro-container img {
  width: 100%;
  height: 240px;
  max-height: 240px; 
  object-fit: cover;
}

.outro-label {
  font-size: 1.5rem;
  font-weight: bold;
  padding: 0.75rem 2rem 0.5rem; 
  margin: 2rem 0 0.5rem; 
}

.outro-description {
  font-size: 1rem;
  padding: 0 2rem 1rem; 
  line-height: 1.4;
  flex-grow: 1;
}

.outro-btn-container {
  margin: 0 1rem 1rem;
  text-align: center;
}

.outro-btn {
  width: 50%;
  padding: 0.75rem 1rem;
  font-weight: bold;
  border: 1px solid black;
  background: white;
  cursor: pointer;
  border-radius: 4px;
}

.outro-btn:hover {
  background: black;
  color: white;
}

@media screen and (min-width: 1024px) {
  .outo-wrapper {
    flex-wrap: wrap;
    overflow-x: hidden;
    gap: 0;
  }

  .outro-container {
    flex: 0 0 25%;
    max-width: 25%;
  }
}