/* --- Hamburger Animation --- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  margin-left: 1.5rem;
}

.bar {
  width: 100%;
  height: 3px;
  background-color: var(--text-color);
  transition: all 0.3s ease;
  border-radius: 5px;
}

nav.open .hamburger .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

nav.open .hamburger .bar:nth-child(2) {
  opacity: 0;
}

nav.open .hamburger .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* --- County Name Animation Styles --- */
.county-wrapper {
  display: inline-block;
  margin-top: 0.5rem;
  text-align: center;
  perspective: 1000px;
}

#county-animation-front,
#county-animation-back {
  display: block;
  color: var(--secondary-color);
  font-size: 2.5rem;
  font-family: var(--font-family-heading);
  backface-visibility: hidden;
  transition: transform 0.6s ease-in-out;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#county-animation-front {
  transform: rotateY(0deg);
}

#county-animation-back {
  transform: rotateY(-180deg);
}

.county-wrapper.flip #county-animation-front {
  transform: rotateY(180deg);
}

.county-wrapper.flip #county-animation-back {
  transform: rotateY(0deg);
}




/* --- Button Pulse / Glow --- */
.button.primary {
  animation: pulseGlow 2.5s infinite;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 rgba(0,0,0,0.2); }
  50% { box-shadow: 0 0 20px var(--secondary-color); }
  100% { box-shadow: 0 0 0 rgba(0,0,0,0.2); }
}

/* --- Background Parallax --- */
.hero {
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  position: relative;
  overflow: hidden;
}

/* --- Basic fade/slide in for section content --- */
[data-aos] {
  opacity: 0; /* Start hidden */
  visibility: hidden; /* Ensure it's not visible initially */
  transition: opacity 1s ease, transform 1s ease; /* Smooth fade and slide */
  transform: translateY(20px); /* Start slightly below */
}

[data-aos].aos-animate {
  opacity: 1; /* Fully visible */
  visibility: visible; /* Ensure it's visible */
  transform: translateY(0); /* Reset position */
}



