html {
  overflow-x: hidden;
  overflow-y: scroll;
}

a {
  text-decoration: none;
  color: var(--Text-Color);
  border: none;
}

h1 {
  font-family: "Dublin-Bold";
}

i {
  color: var(--Text-Color);
}

body {
  font-family: "Roboto Condensed", sans-serif;
  color: white;
  overflow-x: hidden; /* prevents horizontal scroll when menu slides in */
}

.words {
  position: fixed;
  bottom: 50%;
  left: 40px;
  z-index: -1;
  font-size: 1.4rem;
  letter-spacing: 2px;
  font-weight: 400;
  color: var(--Text-Color);
}

/* ========================= */
/* HERO                      */
/* ========================= */
.hero-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 1;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  background-image: url("../images/background-img.jpg");
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
}

.hero-section .words {
  position: absolute;
  bottom: 20vh;
  left: 40px;
  z-index: 2;
  font-size: 1.4rem;
  letter-spacing: 2px;
  font-weight: 400;
  color: var(--Text-Color);
}

/* ========================= */
/* MAIN – DESKTOP HORIZONTAL */
/* ========================= */
main {
  height: 100vh;
  overflow: hidden; /* we scroll with JS */
  padding: 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2; /* above hero */
}

/* horizontal track */
.horizontal-wrapper {
  height: 100vh;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  transform: translateX(75vw); /* JS overwrites */
  will-change: transform;
}

/* each panel (About / Music etc) */
.panel {
  flex: 0 0 50vw;
  height: 100vh;
  display: flex;
  background-color: #1e1e26;
}

.section-left,
.section-right {
  flex: 0 0 50%;
  height: 100vh;
}

.panel-link {
  display: flex;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

/* Images */
.about-img,
.music-img,
.calender-img,
.contact-img,
.watch-img {
  width: 100%;
  height: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transition: transform 0.6s ease-in-out;
}

.about-img:hover,
.music-img:hover,
.calender-img:hover,
.contact-img:hover,
.watch-img:hover {
  transform: scale(1.05);
  cursor: pointer;
}

/* panels hover */
.panel {
  background-color: #1e1e26;
}

.about-section:hover,
.music-section:hover,
.watch-section:hover,
.calender-section:hover,
.contact-section:hover {
  background-color: var(--color-9);
  transition: all 0.4s ease-in-out;
  cursor: pointer;
}

/* background images */
.about-img {
  background-image: url("../images/about-img.webp");
}

.music-img {
  background-image: url("../images/music-img.webp");
}

.watch-img {
  background-image: url("../images/video-img.webp");
}

.calender-img {
  background-image: url("../images/calender-img.webp");
}

.contact-img {
  background-image: url("../images/contact-img.webp");
}

/* headings in right half */
.about-content,
.music-content,
.watch-content,
.calender-content,
.contact-content {
  position: relative;
}

.about-content h1,
.music-content h1,
.watch-content h1,
.calender-content h1,
.contact-content h1 {
  text-align: right;
  letter-spacing: 9px;
  font-size: 70px;
  text-decoration: none;
  transform: rotate(90deg);
  padding: 0;
}

.calender-content h1 {
  margin-top: 390px;
}
.contact-content h1 {
  margin-top: 360px;
}

.about-content h1 {
  margin-top: 360px;
}
.music-content h1 {
  margin-top: 340px;
}
.watch-content h1 {
  margin-top: 303px;
}

/* view transitions */
@view-transition {
  navigation: auto;
}

::view-transition-group(*) {
  animation-duration: 1s;
}

/* =========================================================
   TABLETS (iPads etc) – BOTH ORIENTATIONS
   769px–1024px width
   Vertical stacked layout, big typography
========================================================= */
@media (max-width: 1024px) and (min-width: 769px) {
  body {
    overflow-x: hidden;
  }

  /* hero becomes a normal block on top */
  .hero-section {
    position: static;
    height: 90vh;
    overflow: hidden;
  }

  .hero-section .words {
    position: static;
    margin: 2rem;
    font-size: 1.8rem;
  }

  main {
    position: static;
    height: auto;
    margin-top: 0;
  }

  .horizontal-wrapper {
    display: flex;
    flex-direction: column;
    height: auto;
    transform: none !important;
  }

  .panel {
    width: 100%;
    height: auto;
    flex: none;
    flex-direction: column;
    min-height: 80vh;
  }

  .panel:last-child {
    border-bottom: none;
  }

  .section-left,
  .section-right {
    width: 100%;
    flex: none;
  }

  /* image block ~60% viewport height */
  .section-left {
    height: 60vh;
    min-height: 60vh;
  }

  /* text block below image */
  .section-right {
    min-height: 20vh;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .panel-link {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
  }

  .section-right h1 {
    transform: rotate(0deg) !important;
    text-align: center;
    font-size: 3.4rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
  }

  .about-img,
  .music-img,
  .watch-img,
  .calender-img,
  .contact-img {
    background-size: cover;
    background-position: center 30%;
  }

  /* disable hover scale on touch-ish devices */
  .about-img:hover,
  .music-img:hover,
  .calender-img:hover,
  .contact-img:hover,
  .watch-img:hover {
    transform: none;
  }

  .panel:hover {
    background-color: #1e1e26;
  }
  .about-section:hover {
    background-color: #1e1e26;
  }

  .panel:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .words {
    font-size: 1.8rem;
    padding: 2rem;
    text-align: center;
    position: static;
    margin-top: 2rem;
  }

  .words h2 {
    font-size: 2rem;
  }
}

/* =========================================================
   PHONES – PORTRAIT (iPhone / Samsung S & A series)
   up to 768px width
========================================================= */
@media (max-width: 768px) and (orientation: portrait) {
  body {
    overflow-x: hidden;
  }

  .hero-section {
    position: static;
    height: 85vh;
    overflow: hidden;
  }

  .hero-section .words {
    position: static;
    margin: 1.5rem;
    font-size: 1.5rem;
  }

  main {
    position: static;
    height: auto;
    margin-top: 0;
  }

  .horizontal-wrapper {
    display: flex;
    flex-direction: column;
    height: auto;
    transform: none !important;
  }

  .panel {
    width: 100%;
    height: auto;
    flex: none;
    flex-direction: column;
    min-height: 50vh;
  }

  .section-left,
  .section-right {
    width: 100%;
    flex: none;
  }

  .section-left {
    min-height: 45vh;
  }

  .section-right {
    min-height: 10vh;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .panel-link {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
  }

  .section-right h1 {
    transform: rotate(0deg) !important;
    text-align: center;
    font-size: 2.4rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
  }

  .about-img {
    background-position: center 30%;
  }

  .music-img {
    background-position: center 40%;
  }

  .about-img,
  .music-img,
  .watch-img,
  .calender-img,
  .contact-img {
    background-size: cover;
  }

  .about-img:hover,
  .music-img:hover,
  .calender-img:hover,
  .contact-img:hover,
  .watch-img:hover {
    transform: none;
  }

  .panel:hover {
    background-color: #1e1e26;
  }

  .words {
    font-size: 1.5rem;
    padding: 1.5rem;
    margin-top: 1.5rem;
  }

  .words h2 {
    font-size: 1.8rem;
  }
}

/* =========================================================
   PHONES – LANDSCAPE (iPhone / Samsung S & A series)
   up to 768px width
========================================================= */
@media (max-width: 768px) and (orientation: landscape) {
  body {
    overflow-x: hidden;
  }

  /* Hero as first block, full screen */
  .hero-section {
    position: static;
    height: 100vh;
    overflow: hidden;
  }

  .hero-section .words {
    position: static;
    margin: 1.5rem 2rem;
    font-size: 1.4rem;
  }

  /* Main content scrolls normally */
  main {
    position: static;
    height: auto;
    margin-top: 0;
  }

  .horizontal-wrapper {
    display: flex;
    flex-direction: column; /* panels stacked vertically */
    height: auto;
    transform: none !important;
  }

  /* Each panel = row: [image | text] */
  .panel {
    width: 100%;
    min-height: 100vh;
    flex: none;
    display: flex;
    flex-direction: row;
  }

  .section-left,
  .section-right {
    flex: 0 0 auto;
    height: 100vh;
  }

  /* image ~ 60% width */
  .section-left {
    width: 60%;
  }

  /* text ~ 40% width */
  .section-right {
    width: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
  }

  .section-right h1 {
    transform: rotate(0deg) !important;
    font-size: 2rem;
    margin: 0.5rem 0 1rem;
    letter-spacing: 2px;
    text-align: center;
  }

  .about-img,
  .music-img,
  .watch-img,
  .calender-img,
  .contact-img {
    background-size: cover;
    background-position: center;
  }

  .about-img:hover,
  .music-img:hover,
  .calender-img:hover,
  .contact-img:hover,
  .watch-img:hover {
    transform: none;
  }

  .panel:hover {
    background-color: #1e1e26;
  }
}

/* =========================================================
   LARGE TABLETS / SMALL DESKTOPS – LANDSCAPE
   (e.g. iPad Pro 12.9 in landscape, 1025–1366px wide)
   Keep horizontal desktop behavior but fix heading alignment
========================================================= */
@media (min-width: 1025px) and (max-width: 1366px) and (orientation: landscape) {
  /* keep the horizontal desktop layout – no changes to hero/main */

  /* make the right side a flex container so we can center the text */
  .section-right {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .about-content,
  .music-content,
  .watch-content,
  .calender-content,
  .contact-content {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  /* center the headings instead of using big margin-top offsets */
  .about-content h1,
  .music-content h1,
  .watch-content h1,
  .calender-content h1,
  .contact-content h1 {
    transform: rotate(90deg); /* keep vertical text */
    margin: 0; /* remove top offset */
    font-size: 3.2rem; /* a bit smaller than 70px for 1366px screens */
    letter-spacing: 7px;
    text-align: center;
  }
}

/* =========================================================
   SMALL PHONES – PORTRAIT (older iPhones, small Androids)
   up to 480px width
========================================================= */
@media (max-width: 480px) and (orientation: portrait) {
  .section-right h1 {
    font-size: 2rem;
  }

  .section-left {
    min-height: 55vh;
  }

  /* use alternate music image for tiny screens */
  .music-img {
    background-image: url("../images/music-img-mobile.webp");
    background-position: center;
  }
}

/* =========================================================
   SMALL PHONES – LANDSCAPE
   up to 480px width
========================================================= */

@media (max-width: 480px) and (orientation: landscape) {
  .section-left {
    height: 100vh;
  }

  .section-right {
    height: auto;
    min-height: auto;
  }

  .section-right h1 {
    font-size: 1.8rem;
  }

  .about-img,
  .music-img,
  .watch-img,
  .calender-img,
  .contact-img {
    background-size: cover;
    background-position: center;
  }

  .music-img {
    background-image: url("../images/music-img-mobile.webp");
  }
}
