:root {
  --yellow: #ecc435;
  --yellow-muted: #e0c67c;
  --orange: #f6b24d;
  --red: #ce5d45;
  --pink: #d9a8a6;
  --blue: #a1bbc4;
  --light-blue: #cce2e9;
  --green: #c2c484;
  --dark-green: #69622c;
  --light-green: #dedca2;
}

@font-face {
  font-family: "PP Neue Machina";
  src:
    local("PP Neue Machina"),
    url("font/PPNeueMachina-Light.otf") format("opentype"),
    url("font/PPNeueMachina-Regular.otf") format("opentype"),
    url("font/PPNeueMachina-Ultrabold.otf") format("opentype");
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  transition: all 0.3s ease;
}

body {
  /* Prevent horizontal scrolling from background shapes */
  overflow-x: hidden; 
  background-color: #fafafa;
  position: relative;
  font-family: 'PP Neue Machina', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
}

h1 {
  font-size: 4rem;
  font-weight: bolder;
  color: var(--red);
}
h2 {
  font-size: 2.6rem;
  text-transform: uppercase;
  color: #222;
}
h3 {
  font-size: 1.4rem;
  line-height: 1.5rem;
}

a:link, a:visited {
  color: var(--red);
  text-decoration: none;
}
a:hover {
  color: var(--blue);
}
a:active {
  font-weight: bolder;
}

p {
  font-size: 1rem;
  line-height: 1.2rem;
}

/* --- PARALLAX --- */
.parallax-wrapper {
  perspective: 1px;
  height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
}
.parallax-layer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}
.background {
  transform: translateZ(-1px) scale(2);
  z-index: -1;
}
.foreground {
  z-index: 1;
  bottom: auto;
}

/* --- BACKGROUND SHAPES --- */
.bg-shape {
  position: absolute;
  z-index: -1;
  opacity: 0.6;
  width: 94vw;
  min-width: 22rem;
  min-height: 22rem;
  max-width: 54rem;
  max-height: 54rem;
}
.shape-1 {
  top: 15vh;
  left: -15vw;
  color: var(--blue);
  rotate: 30deg;
}
.shape-2 {
  top: 100vh;
  right: -10vw;
  color: var(--yellow);
  rotate: 79deg;
}
.shape-3 {
  top: 180vh;
  left: -10vw;
  color: var(--green);
  rotate: 79deg;
}
.shape-4 {
  top: 270vh;
  right: -10vw;
  color: var(--pink);
  rotate: 79deg;
}
.shape-5 {
  top: 360vh;
  left: -10vw;
  color: var(--orange);
  rotate: 79deg;
}

/* --- HEADER --- */
header {
  text-align: center;
  padding: 8rem 2rem 6rem;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(7px);
}
header h3 {
  padding-top: 0.3rem;
  color: var(--orange);
}

/* --- STICKY NAVIGATION --- */
.tab-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  overflow-x: auto;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 6px rgba(0,0,0,0.05);
}
.tab-bar::before, .tab-bar::after {
  content:'';
  flex:1;
}
.tab-bar button, .tab-bar a:link, .tab-bar a:visited {
  display: inline-block;
  background: none;
  padding: 0.3rem 1rem;
  border: none;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  color: var(--red);
}
.tab-bar button:hover, .tab-bar a:hover {
  color: var(--blue);
}

/* --- SECTIONS --- */
.section {
  min-height: 100vh;
  padding: 6rem 2rem 2rem;
  max-width: 56rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
  margin: 0 auto;
}

#bam h3 {
  padding: 0.5em 0.5rem 0.3rem;
  background-color: #fafafaBB;
  width: fit-content;
  margin: 0.5rem auto;
}
#countdown {
  font-size: larger;
  padding: 0 0.3rem
}

#venue .container {
  display: flex;
  flex-direction: row;
  align-content: center;
  @media (max-width: 576px) {
    flex-direction: column;
  }
}
#venue .container > * {
  flex: 1;
  padding: 1rem 0;
}
address {
  font-size: 1.2rem;
  line-height: 1.6rem;
  font-style: normal;
  text-align: left;
}
.map {
  min-height: 26rem;
  height:35vh;
  object-fit: cover;
}
.getting-here {
  max-width: 32rem;
  margin: 0.5rem auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}

#schedule {
  margin-top: 12rem;
}

#faq {
  gap: 0.4rem;
}
#faq q {
  font-style: italic;
  align-self: flex-start;
  margin-top: 0.8rem;
  margin-right: 3rem;
  line-height: 1.2rem;
  text-align: left;
  color: var(--dark-green);
}
#faq p {
  margin-left: 3rem;
  align-self: flex-end;
  text-align: left;
}

#end {
  padding-top: 24rem;
}

/* --- HORIZONTAL GALLERY --- */
#gallery {
  max-width: 100vw;
  overflow: auto;
  padding-left: 0;
  padding-right: 0;
}

.gallery-wrapper {
  display: flex;
  overflow-x: auto;
  gap: 0.5rem;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory; 
}

/* Custom Scrollbar for the gallery */
.gallery-wrapper::-webkit-scrollbar {
  height: 0.4rem;
}
.gallery-wrapper::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 0.2rem;
}

.gallery-item {
  flex: 0 0 auto; /* Prevents items from shrinking */
  max-width: 100vw;
  max-height: 480px;
  scroll-snap-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  object-fit: contain;
  font-size: 1.5rem;
}

.gallery-item:first-child {
  margin-left: 4vw;
}

.gallery-item:last-child {
  margin-right: 4vw;
}

.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  animation: popIn 0.2s ease-out;
}

@keyframes popIn {
  0% { transform: scale(0.95); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.gallery-item, .map {
  cursor: pointer;
}
