:root {
  --white: #fff;
  --sky: #48c8f2;
  --hero-stage-max: 1450px;
  --hero-stage-width: min(100vw, var(--hero-stage-max));
  --hero-stage-height: max(200px, min(100vh, calc(var(--hero-stage-width) * 10 / 16)));
  --hero-logo-width: clamp(90%, calc(var(--hero-stage-width) * 0.34), 420px);
  --hero-info-width: clamp(170px, calc(var(--hero-stage-width) * 0.22), 420px);
  --hero-ticket-width: clamp(120px, calc(var(--hero-stage-width) * 0.15), 300px);
  --hero-footer-height: calc(var(--hero-stage-height) * 0.43);
  --hero-scroll-distance: 240vh;
}

* {
  box-sizing: border-box;
}

@supports (height: 100dvh) {
  :root {
    --hero-stage-height: max(300px, min(100dvh, calc(var(--hero-stage-width) * 10 / 16)));
  }
}

html,
body {
  width: 100%;
  min-height: 100%;
  overscroll-behavior: none;
}

body {
  margin: 0;
  background: var(--sky);
  color: var(--white);
  font-family: Impact, fantasy;
  overflow-x: hidden;
  overscroll-behavior-y: none;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 1s;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.landing-page {
  width: 100%;
}

.hero-scroll-section {
  position: relative;
  height: var(--hero-scroll-distance);
  view-timeline-name: --hero-scroll;
  view-timeline-axis: block;
}

.hero-section {
  position: sticky;
  isolation: isolate;
  display: grid;
  grid-template-rows: calc(var(--hero-stage-height) * 0.16) minmax(0, 1fr) var(--hero-footer-height);
  width: 100%;
  height: var(--hero-stage-height);
  height: 100vh;
  overflow: hidden;
  top: 0;
  background: url("images/Rectangle.webp") center / cover no-repeat var(--sky);
}

.hero-section::before,
.hero-section::after {
  position: absolute;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  content: "";
}

.hero-section::before {
  background: url("images/Paper - Screen 1.webp") center / cover no-repeat;
  mix-blend-mode: screen;
  opacity: 0.78;
}

.hero-section::after {
  background: url("images/Grunge - Overlay 1.webp") center / cover no-repeat;
  mix-blend-mode: multiply;
  opacity: 0.2;
}

.header-hero {
  position: relative;
  z-index: 120;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  justify-self: center;
  width: var(--hero-stage-width);
  max-width: 100%;
  padding: clamp(18px, calc(var(--hero-stage-height) * 0.035), 42px) clamp(24px, calc(var(--hero-stage-width) * 0.04), 76px) 0;
}

.festival-logo {
  width: clamp(82px, calc(var(--hero-stage-width) * 0.075), 136px);
  height: auto;
}

.hero-nav {
  display: none;
}

.body-hero {
  position: relative;
  z-index: 70;
  display: grid;
  margin-top: 30px;
  justify-items: center;
  align-content: center;
  justify-self: center;
  width: var(--hero-stage-width);
  max-width: 100%;
  padding-bottom: calc(var(--hero-stage-height) * 0.06);
  text-align: center;
}

.sky-hero {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.sky-item {
  position: absolute;
  display: block;
  height: auto;
  max-width: none;
  pointer-events: none;
  user-select: none;
}

.bird-one {
  top: 25%;
  left: 9%;
  width: clamp(34px, calc(var(--hero-stage-width) * 0.033), 64px);
}

.bird-two {
  top: 47%;
  left: 19%;
  width: clamp(26px, calc(var(--hero-stage-width) * 0.026), 50px);
}

.bird-three {
  top: 16%;
  right: 19%;
  width: clamp(26px, calc(var(--hero-stage-width) * 0.026), 50px);
}

.bird-four {
  top: 58%;
  left: 36%;
  width: clamp(38px, calc(var(--hero-stage-width) * 0.038), 74px);
}

.airplane {
  top: 33%;
  right: 10%;
  width: clamp(120px, calc(var(--hero-stage-width) * 0.15), 288px);
  transform: translate3d(0, 0, 0) rotate(-2deg);
  transform-origin: 50% 50%;
  will-change: transform;
}

.city-logo {
  position: relative;
  z-index: 2;
  width: var(--hero-logo-width);
  max-width: 420px;
  margin: 0;
}

.city-logo img,
.info,
.cta img {
  display: block;
  width: 100%;
  height: auto;
}

.info {
  position: relative;
  z-index: 2;
  width: var(--hero-info-width);
  max-width: 420px;
  min-width: 200px;
}

.cta {
  position: relative;
  z-index: 80;
  display: block;
  width: var(--hero-ticket-width);
  max-width: 300px;
  margin-top: clamp(14px, calc(var(--hero-stage-height) * 0.028), 34px);
  transform: rotate(-1deg);
  transform-origin: 50% 60%;
  animation: ticket-idle 2.8s ease-in-out infinite;
  transition:
    filter 180ms ease,
    transform 180ms ease;
  min-width: 200px;
}

.cta::after {
  position: absolute;
  inset: 10% 8%;
  z-index: -1;
  background: rgba(63, 40, 30, 0.28);
  border-radius: 18px;
  content: "";
  filter: blur(12px);
  opacity: 0;
  transform: translate(-4px, 9px) scale(0.92);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.cta:hover,
.cta:focus-visible {
  animation-name: ticket-wiggle;
  animation-duration: 620ms;
  animation-timing-function: cubic-bezier(0.2, 0.9, 0.2, 1);
  animation-iteration-count: 1;
  animation-fill-mode: both;
  filter: saturate(1.08);
}

.cta:hover::after,
.cta:focus-visible::after {
  opacity: 1;
  transform: translate(-6px, 14px) scale(1);
}

.cta:focus-visible {
  outline: 4px solid rgba(255, 255, 255, 0.9);
  outline-offset: 8px;
}

.footer-hero {
  position: relative;
  z-index: 50;
  justify-self: center;
  width: var(--hero-stage-width);
  max-width: 100%;
  overflow: visible;
  pointer-events: none;
}

.parallax-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.parallax-layer--back {
  z-index: 10;
  --parallax-y: -42px;
  --parallax-scale: 1.04;
}

.parallax-layer--base {
  z-index: 20;
  --parallax-y: 0px;
  --parallax-scale: 1;
}

.parallax-layer--front {
  z-index: 30;
  --parallax-y: 0px;
  --parallax-scale: 1;
}

@supports (animation-timeline: view()) {
  .sky-hero {
    animation: sky-layer-parallax both linear;
    animation-timeline: --hero-scroll;
    animation-range: entry 0% exit 82%;
  }

  .airplane {
    animation: airplane-flight both linear;
    animation-timeline: --hero-scroll;
    animation-range: entry 0% exit 82%;
  }

  .body-hero {
    animation: hero-copy-parallax both linear;
    animation-timeline: --hero-scroll;
    animation-range: entry 0% exit 82%;
  }

  .body-hero  .cta {
    animation: none;
  }

  .parallax-layer {
    animation: footer-layer-parallax both linear;
    animation-timeline: --hero-scroll;
    animation-range: entry 0% exit 82%;
  }
}

.cityscape .layer {
  position: absolute;
  display: block;
  height: auto;
  max-width: none;
  pointer-events: none;
  user-select: none;
}

.cityscape .gate {
  left: 50.5%;
  bottom: 0px;
  transform: translateX(-50%);
  /* width: 100vw; */
  /* max-width: 1920px; */
  object-fit: 191%;
  width: 1300px;
  z-index: 1;
}

.cityscape .building-left {
  left: 0px;
  bottom: 100px;
  z-index: 10;
  width: 250px;
}

.cityscape .houses-left {
  left: -550px;
  bottom: -120px;
  z-index: 12;
  width: 900px;
}

.cityscape .building-mid {
  left: calc(50.5% + 250px);
  /* --hero-logo-width: clamp(90%, calc(var(--hero-stage-width) * 0.34), 420px); */

  transform: translateX(-50%);
  bottom: 140px;
  z-index: 0;
  width: clamp(100px, calc(var(--hero-stage-width) * 0.115), 220px);
}

.cityscape .building-right {
  right: -550px;
  bottom: -90px;
  z-index: 12;
  width: 900px;
}

.cityscape .palm {
  right: 0;
  bottom: 300px;
  z-index: 10;
  width: clamp(70px, calc(var(--hero-stage-width) * 0.08), 150px);
}

.flower-one-left {
  bottom: -30px;
  left: -20px;
  width: 120px;
  z-index: 2;
}

.flower-one-right {
  bottom: -30px;
  right: -20px;
  width: 120px;
  z-index: 2;
}

.cityscape .saxophone {
  left: 10%;
  bottom: calc(var(--hero-footer-height) * 0.8);
  z-index: 33;
  width: clamp(80px, calc(var(--hero-stage-width) * 0.085), 165px);
}

.cityscape .face-left {
  left: calc(50.5% - 250px);
  transform: translateX(-50%);
  bottom: 180px;
  z-index: 0;
  width: clamp(72px, calc(var(--hero-stage-width) * 0.065), 120px);
}

.cityscape .couple {
  left: 15%;
  bottom: 0;
  z-index: 34;
  width: clamp(130px, calc(var(--hero-stage-width) * 0.138), 265px);
}

.cityscape .motorcycle {
  left: 50%;
  bottom: 0;
  z-index: 35;
  width: clamp(150px, calc(var(--hero-stage-width) * 0.16), 310px);
  transform: translateX(-50%);
}

.cityscape .guitar {
  left: 700px;
  transform: translateX(50%);
  bottom: 0px;
  z-index: 11;
  width: 550px;
}

.cityscape .man-guitar {
  right: clamp(42px, calc(var(--hero-stage-width) * 0.06), 116px);
  bottom: 0;
  z-index: 36;
  width: clamp(150px, calc(var(--hero-stage-width) * 0.16), 310px);
}

.cityscape .face-right {
  right: 100px;
  bottom: 300px;
  z-index: 6;
  width: 90px;
}

.cityscape .flower-left {
  left: 0;
  bottom: 0;
  z-index: 38;
  width: clamp(120px, 13vw, 180px);
  display: none;
}

.cityscape .flower-right {
  right: 0;
  bottom: 0;
  z-index: 38;
  width: clamp(120px, 13vw, 180px);
  display: none;

}

@keyframes ticket-idle {

  0%,
  62%,
  100% {
    transform: rotate(-1deg) scale(1);
  }

  68% {
    transform: translateY(-3px) rotate(-5deg) scale(1.025);
  }

  74% {
    transform: translateY(-4px) rotate(3deg) scale(1.03);
  }

  81% {
    transform: translateY(-2px) rotate(-3deg) scale(1.018);
  }
}

@keyframes ticket-wiggle {
  0% {
    transform: rotate(-1deg) scale(1);
  }

  34% {
    transform: translateY(-9px) rotate(5deg) scale(1.045);
  }

  70% {
    transform: translateY(-8px) rotate(2deg) scale(1.045);
  }

  100% {
    transform: translateY(-8px) rotate(1deg) scale(1.045);
  }
}

@keyframes footer-layer-parallax {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(0, var(--parallax-y), 0) scale(var(--parallax-scale));
  }
}

@keyframes hero-copy-parallax {
  from {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
  }

  to {
    transform: translate3d(0, -34px, 0) scale(0.96);
    opacity: 0.92;
  }
}

@keyframes sky-layer-parallax {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(0, -52px, 0) scale(1.025);
  }
}

@keyframes airplane-flight {
  from {
    transform: translate3d(0, 0, 0) rotate(-2deg) scale(1);
  }

  to {
    transform: translate3d(-62vw, -26vh, 0) rotate(-13deg) scale(0.78);
  }
}

@keyframes airplane-flight-mobile {
  from {
    transform: translate3d(0, 0, 0) rotate(-2deg) scale(1);
  }

  to {
    transform: translate3d(-30vw, -40vh, 0) rotate(-13deg) scale(0.78);
  }
}

@media screen and (max-width: 860px) {
  @supports (animation-timeline: view()) {
    .airplane {
      animation-name: airplane-flight-mobile;
    }
  }

  .airplane {
    top: 75%;
    right: 5%;
  }

  .header-hero {
    justify-content: center;
  }

  .body-hero {
    width: 100%;
    margin-top: -20px;
  }

  .footer-hero {
    transform: scale(0.75) translateY(10vh);
    transform-origin: bottom center;
  }

  .cityscape .gate {
    margin-bottom: 0px;
  }

  .cityscape .face-left {
    left: 40px;
    bottom: 200px;
  }

  .cityscape .face-right {
    right: 70px;
  }

  .cityscape .saxophone {
    bottom: 320px;
    left: 0px;
  }

  .cityscape .building-mid {
    bottom: 150px;
    width: 200px;
  }

  .sign {
    left: -60px;
    bottom: 250px;
  }
}

@media screen and (max-width: 860px) {
  .body-hero {
    gap: 2vh;
    margin-top: 15px;
  }

  .info {
    transform: scale(1.2);
  }

  .festival-logo {
    margin-top: 0px;
    margin-left: auto;
    margin-right: auto;
    transform: scale(2);
    transform-origin: top center;
  }

  .city-logo {
    left: -1%;
  }

  .airplane {
    width: 140px;
    top: 90%;
    right: 5%;
    left: auto;
  }
}

@media screen and (max-width: 860px) and (min-height: 750px) {
  .body-hero {
    gap: 4vh;
    margin-top: 40px;
  }

  .info {
    transform: scale(1.6);
  }

  .festival-logo {
    margin-top: 15px;
    margin-left: auto;
    margin-right: auto;
    transform: scale(1.8);
    transform-origin: top center;
  }

  .airplane {
    width: 180px;
    top: 90%;
    right: 5%;
    left: auto;
  }
}

/* CONTACT PAGE STYLES */
.contact-nav {
  display: flex !important;
  align-items: center;
  gap: 20px;
  font-family: 'Happy Season', Arial, sans-serif;
  font-size: 24px;
}
.nav-contact {
  color: var(--white);
  text-decoration: none;
}
.nav-ticket-btn {
  display: inline-block;
  text-decoration: none;
  transition: transform 0.2s;
}
.nav-ticket-btn:hover {
  transform: scale(1.05) rotate(-2deg);
}
.contact-body {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 5vh;
}
.contact-title {
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
  margin-top: -30px;
}
@font-face {
  font-family: 'Happy Season';
  src: url('happy-season-regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}


.contact-container {
  display: flex;
  width: clamp(300px, 80%, 1000px);
  max-width: 100%;
  gap: 10px;
  z-index: 2;
  font-family: 'Happy Season', Arial, sans-serif;
}
.contact-left {
  flex: 1;
  background-color: #3e8eed;
  padding: 40px;
  border-radius: 2px;
  text-align: left;
}
.contact-left h2 {
  font-weight: normal;
  font-size: 24px;
  margin-top: 0;
  margin-bottom: 30px;
  line-height: 1.4;
}
.contact-email, .contact-phone {
  display: block;
  text-decoration: none;
  color: #f7d264;
  margin: 10px 0;
  font-size: 18px;
  transition: transform 0.2s, opacity 0.2s;
}
.contact-email:hover, .contact-phone:hover {
  transform: translateX(5px);
  opacity: 0.8;
}
.contact-email i, .contact-phone i {
  margin-right: 8px;
  width: 20px;
  text-align: center;
}
.contact-address {
  margin-top: 20px;
  font-size: 16px;
}
.contact-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  height: 100%;
}
.contact-form input, .contact-form textarea {
  width: 100%;
  background-color: #2b4964;
  border: none;
  padding: 15px 20px;
  color: #fff;
  font-family: 'Happy Season', Arial, sans-serif;
  font-size: 16px;
  border-radius: 2px;
}
.contact-form input::placeholder, .contact-form textarea::placeholder {
  color: #a0b6c6;
}
.contact-form textarea {
  flex-grow: 1;
  resize: none;
  min-height: 120px;
}
.get-in-touch-btn {
  background-color: #ffc954;
  color: #000;
  border: 2px solid #000;
  border-radius: 8px;
  padding: 12px 40px;
  font-size: 22px;
  font-family: 'Happy Season', Arial, sans-serif;
  cursor: pointer;
  margin-top: 20px;
  z-index: 2;
  transition: transform 0.2s;
  box-shadow: 2px 4px 0 rgba(0,0,0,0.2);
}
.get-in-touch-btn:hover {
  transform: translateY(-2px);
}
.site-footer {
  background-color: #1a1a1a;
  color: #fff;
  padding: 40px 10%;
  display: flex;
  flex-direction: column;
  font-family: Arial, sans-serif;
  position: relative;
  z-index: 200;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.footer-divider {
  width: 100%;
  border: 0;
  border-top: 1px solid #333;
  margin: 40px 0 20px 0;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  font-size: 12px;
  color: #666;
}
.footer-policy a {
  color: #666;
  text-decoration: none;
  margin-left: 20px;
}
.footer-policy a:hover {
  color: #aaa;
}
.footer-left {
  display: flex;
  align-items: center;
  gap: 20px;
}
.footer-left img {
  width: 100px;
}
.footer-left p {
  color: #888;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}
.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.footer-right span {
  font-size: 12px;
  letter-spacing: 1px;
  color: #aaa;
}
.footer-contact-btn {
  background-color: #ffc954;
  color: #000;
  text-decoration: none;
  padding: 10px 24px;
  border-radius: 6px;
  font-family: 'Happy Season', Arial, sans-serif;
  font-size: 18px;
  display: inline-block;
}
@media (max-width: 860px) {
  .festival-logo {
    transform: none !important;
    width: 80px !important;
    margin: 0 !important;
  }
  .header-hero {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    padding-top: 30px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  .body-hero {
    margin-top: 10px !important;
  }
  .contact-nav {
    flex-direction: row;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 0px;
    width: auto;
  }
  .nav-contact {
    display: none; /* Hide 'Contact Us' text on mobile to save space */
  }
  .nav-ticket-btn img {
    height: 35px !important;
  }
  .contact-title {
    margin-top: 10px;
    margin-bottom: 10px;
  }
  .contact-title img {
    max-width: 200px !important;
  }
  .contact-container {
    flex-direction: column;
    padding: 20px;
    width: 95%;
    background-color: rgba(0,0,0,0.1); /* Optional: to make it a distinct frame */
    border-radius: 8px;
    gap: 10px;
  }
  .contact-left {
    padding: 15px;
  }
  .contact-left h2 {
    font-size: 18px;
    margin-bottom: 15px;
  }
  .contact-email, .contact-phone {
    font-size: 14px;
    margin: 2px 0;
  }
  .contact-address {
    font-size: 14px;
    margin-top: 10px;
  }
  .contact-form input, .contact-form textarea {
    padding: 10px;
    font-size: 14px;
  }
  .contact-form textarea {
    min-height: 80px;
  }
  .get-in-touch-btn {
    margin-top: 10px;
    padding: 10px 30px;
    font-size: 18px;
  }
  .site-footer {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }
  .footer-top {
    flex-direction: column;
    gap: 20px;
  }
  .footer-left {
    flex-direction: column;
  }
  .footer-right {
    align-items: center;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
  }
  .footer-policy a {
    margin: 0 10px;
  }
}