/* === HERO BACKGROUND RESTORE === */
#hero {
  background: url('unnamed.png') center center/cover no-repeat;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  color: var(--text-color);
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

#hero .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 0;
}

.hero-text {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px;
  border-radius: 12px;
  opacity: 0;
  animation: fadeIn 1.5s ease-in forwards;
}

.hero-text h1 {
  font-size: 3.6rem;
  margin: 15px 0 10px;
  letter-spacing: 2px;
  color: var(--text-color);
}

.hero-text p {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: #f0f0f0;
}

.hero-logo {
  max-width: 220px;
  height: auto;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeIn 1.8s ease-in forwards;
  animation-delay: 0.5s;
}

.social-nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
  position: absolute;
  top: 25px;
  right: 40px;
  z-index: 2;
}

.social-nav a {
  color: var(--text-color);
  font-size: 1.5rem;
  transition: color 0.3s;
}

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

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1.2s ease, transform 1.2s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.image-block {
  height: 100vh;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

.image-block h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.image-block p {
  font-size: 1.3rem;
  max-width: 900px;
  line-height: 1.8;
  margin: 0 auto;
  text-align: center;
}

.page-links {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 25px;
  z-index: 1000;
}

.page-links a {
  color: white;
  font-family: 'Public Sans', sans-serif;
  font-weight: 600;
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 1px;
}

.page-links a:hover {
  opacity: 0.7;
}

body {
  background-color: #000 !important;
  color: #fff;
}

html {
  scroll-behavior: smooth;
}

@media (max-width: 900px) {
  .image-block,
  #hero {
    width: 100%;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll;
    min-height: calc(100vh - 70px);
    padding: 40px 12px;
    box-sizing: border-box;
  }

  .hero-logo {
    max-width: 120px;
    height: auto;
    display: block;
    margin: 0 auto 14px;
  }

  .hero-text h1 {
    font-size: 1.9rem;
    margin: 6px 0 6px;
    line-height: 1.05;
  }

  .hero-text p {
    font-size: 0.9rem;
    letter-spacing: 2px;
  }

  .video-wrapper {
    width: 100%;
    max-width: 100%;
  }

  .video-wrapper iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    display: block;
  }

  .merch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    justify-items: center;
    padding: 12px;
  }

  .merch-grid img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 10px;
    max-width: 180px;
  }

  footer {
    padding: 20px 10px;
  }
}

@media (max-width: 900px) and (orientation: portrait) {
  .image-block { min-height: calc(100vh - 60px); }
  .merch-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .merch-grid img {
    max-height: 220px;
  }
}

@media (max-width: 900px) and (orientation: landscape) {
  .image-block { min-height: 60vh; padding: 18px 10px; }
  .hero-logo { max-width: 100px; }
  .hero-text h1 { font-size: 1.6rem; }
  .merch-grid {
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 8px;
  }
  .merch-grid img {
    max-width: 80px;
    max-height: 80px;
    object-fit: contain;
  }
  .page-links {
    position: fixed;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    gap: 12px;
    padding: 6px 8px;
    background: rgba(0,0,0,0.45);
    border-radius: 8px;
  }
}

@media (max-width: 600px) and (orientation: portrait) {
  #about,
  #shows {
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center top !important;
    min-height: 100vh;
  }

  #about h2, #about p,
  #shows h2, #shows p {
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 8px;
  }

  /* Tighten vertical spacing between image sections on portrait phones */
  #about,
  #shows {
    min-height: 100vh !important;
    margin-bottom: 0 !important;
  }

  #watch,
  #merch {
    margin-top: 0 !important;
  }
}

/* Final mobile portrait fix for spacing between image sections */
@media (max-width: 600px) and (orientation: portrait) {

  #about,
  #shows {
    background-size: cover !important;        /* Fill area naturally */
    background-position: center center !important;
    background-repeat: no-repeat !important;
    min-height: 100vh !important;             /* Full screen height */
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
  }

  /* Add a subtle gradient overlay for text readability */
  #about::before,
  #shows::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.25), rgba(0,0,0,0.6));
    z-index: 0;
  }

  #about h2, #about p,
  #shows h2, #shows p {
    position: relative;
    z-index: 1;
    text-align: center;
    background: rgba(0, 0, 0, 0.4);
    padding: 12px;
    border-radius: 8px;
    margin: 0 8px;
  }

  /* Remove any forced gap between sections */
  #watch, #merch {
    margin-top: 0 !important;
  }
}
