:root {
  --footer-height: 5rem;
  --bottom-graphic-height: 200px;
}

body {
  font-family: Lora, serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #000000, #858585);
  color: white;
  overflow-x: hidden;
}

header {
  position: sticky;
  top: 0;
  background: #14162e;
  z-index: 100;
  transition: opacity 0.4s ease-in-out;
}

.header-logo {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  width: 300px;    /* Desktop size */
  height: auto;
  transition: opacity 0.4s ease-in-out;
}

@media (max-width: 768px) {
  .header-logo {
    width: 100px;   /* Scales down on smaller devices */
    min-height: 200px;
  }
}

nav ul {
  list-style: none;
  padding: 0;
}

nav ul li {
  display: inline-block;
  margin: 0 1rem;
}

/* Top Quote Section – now scrollable */
.top-quote-section {
  text-align: center;
  padding: 1rem 1rem 1rem;
  background: #14162e;
  transition: opacity 0.4s ease-in-out;
  max-height: 400px; /* Matches the JS logic */
  transition: opacity 0.4s ease, max-height 0.4s ease;
  overflow: hidden;
}

#top-quote {
  font-size: 3rem;
  font-weight: bold;
  color: white;
  line-height: 1.3;
  margin: 0;
}

@media (max-width: 768px) {
  .top-quote-section {
    padding: 2.5rem 1rem 1rem;
  }

  #top-quote {
    font-size: 1.6rem;
    max-width: 90%;
    margin: 0 auto;
    word-wrap: break-word;
  }
}

main {
  padding-bottom: var(--footer-height);
}

.centered-section {
  max-width: 800px;
  margin: 4rem auto;
  padding: 2rem;
  background: linear-gradient(to bottom right, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.3));
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: 1rem;
  position: relative;
  z-index: 1;
  margin-bottom: 4rem;
  will-change: background-position;
}

/* Footer */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3rem; /* 💡 Reduced from 5rem or more */
  padding: 0.5rem 1rem;
  background: #14162e;
  text-align: center;
  z-index: 1000;
  color: white;
  opacity: 0;
  transition: opacity 0.1s ease-in-out;
  font-size: 0.85rem;
  line-height: 1.2;
  height:auto
}

@media (max-width: 768px) {
  footer {
    font-size: 0.75rem;
    padding: 0.5rem;
  }
}

/* Moving SVG */
#moving-svg {
  position: fixed;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
}

.main-event-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 0.75rem;
  margin: 1rem auto;
  object-fit: contain;
}

/* Utility Responsive */
@media (max-width: 768px) {
  .mobile-hide {
    display: none;
  }

  .mobile-stack {
    display: block;
    width: 100%;
  }

  .mobile-font-sm {
    font-size: 1.2rem;
  }

  .mobile-center {
    text-align: center;
    margin: 0 auto;
  }

  .centered-section {
    padding: 1.5rem 1rem;
    margin: 2rem auto;
  }

  h3 {
    font-size: 1.25rem;
  }

  p {
    font-size: 1rem;
  }

  #bottom-graphic {
    max-height: 120px;
  }
}

#fixed-bottom-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  z-index: -1;
  pointer-events: none;
  transition: opacity 0.2s ease-in-out;
}

#fixed-bottom-banner img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

@media (max-width: 768px) {
  #fixed-bottom-banner img {
    max-height: 100px; /* you can tweak this */
  }
}

@keyframes riseUpFade {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-up {
  opacity: 0;
  animation: riseUpFade 0.9s ease-out forwards;
  animation-delay: 0.3s; /* Optional delay for smoother effect */
}