html, body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #111;
  color: #f8f8f8;
}

/* Hero background */
.hero {
  background: url(../images/reaper_bell.png) no-repeat center center fixed;
  background-size: cover;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 20px;
}
.hero::after {
  content: "";
  display: block;
  height: 20px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent);
}

/* Burning title effect */
.site-title {
  padding: 0;
  margin: 0;
  font-size: 5rem;
  text-align: center;
  color: #ffddaa;
  text-shadow:
    0 0 5px #ff6600,
    0 0 10px #ff3300,
    0 0 20px #ff0000,
    0 0 40px #ff0000;
  animation: burnFlicker 1.5s infinite alternate;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: font-size 0.3s ease;
}

@keyframes burnFlicker {
  0% {
    text-shadow: 0 0 5px #ff6600, 0 0 10px #ff3300, 0 0 20px #ff0000, 0 0 40px #ff0000;
  }
  50% {
    text-shadow: 0 0 7px #ffaa00, 0 0 14px #ff5500, 0 0 28px #ff2200, 0 0 60px #ff1100;
  }
  100% {
    text-shadow: 0 0 5px #ff6600, 0 0 10px #ff3300, 0 0 20px #ff0000, 0 0 40px #ff0000;
  }
}

.site-subtitle {
  margin-top: 10px;
  padding: 0;
  font-size: 1rem;
  transition: font-size 0.3s ease;
}

/* Countdown timer styling */
.countdown-timer {
  font-size: 1.5rem;
  color: #e60000;
  text-shadow: 0 0 10px #000;
  margin-bottom: 15px;
}
.title-group {
  text-align: center;
}

/* Sticky header (hidden off-screen initially) */
.sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0,0,0,0.85);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 40px;
  box-sizing: border-box;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  z-index: 600;
}

.sticky-header .countdown-timer {
  display: block;
  flex-shrink: 0;
}

.sticky-header.visible {
  transform: translateY(0);
}

/* Nav bar */
nav.nav-bar {
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  padding: 10px;
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
  position: sticky;
  top: 0;
  z-index: 500;
}

nav.nav-bar a {
  color: #f8f8f8;
  text-decoration: none;
  margin: 0 15px;
  font-size: 1.5rem;
  font-weight: bold;
  transition: color 0.3s;
  padding-right: 2.5rem;
  padding-left: 2.5rem;
  border-right: 1px solid #e60000;
  border-left: 1px solid #e60000;
}

nav.nav-bar a:hover {
  color: #ffaa00;#ffaa00
}

nav a.active {
  color: #e60000;
}

/* Main content */
.main-content {
  transition: margin-top 0.3s ease;
}

/* Section titles */
.section-title {
  font-size: 2rem;
  text-align: center;
  margin: 80px 0 20px;
  position: relative;
  z-index: 1;
}

/* Media container */
.media-container {
  display: flex;
  flex-direction: column;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}
.media-container .video,
.media-container .calendar {
  flex: 1;
  padding: 10px;
}
.media-container iframe {
  width: 100%;
  height: 315px;
  border: none;
}
@media (min-width: 768px) {
  .media-container {
    flex-direction: row;
  }
}
.responsive-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
  }

/* Description, calendar, map */
.haunt-description {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 20px auto;
  padding: 0 20px;
  line-height: 1.6;
  text-align: center;
  position: relative;
  z-index: 1;
}

.calendar {
  background-color: white;
}

.map {
  padding: 40px 20px;
  position: relative;
  z-index: 1;
}

/* Site footer */
.site-footer {
  width: 100%;
  text-align: center;
  padding-bottom: 100px;
  position: absolute;
  font-size: 1.25rem;
}

/* Sticky mobile call button */
.call-button {
  position: fixed;
  bottom: 16px;
  right: 16px;
  background: #e60000;
  color: white;
  padding: 12px 20px;
  border-radius: 30px;
  font-weight: bold;
  z-index: 1000;
  box-shadow: 0 0 10px black;
}
@media(min-width: 768px) {
  .call-button {
    display: none;
  }
}

/* Prevent horizontal scrollbar */
.media-container,
.haunt-description,
.map {
  overflow-x: hidden;
}

/* Clip AOS overflow */
[data-aos="fade-left"],
[data-aos="fade-right"] {
  will-change: transform;
  overflow-x: hidden;
}

@keyframes flicker {
  0% { opacity: 1; }
  50% { opacity: 0.75; }
  100% { opacity: 1; }
}

.countdown-timer {
  animation: flicker 1.2s infinite;
}