
.ww-section-invite {
  position: relative;
  padding: 100px 20px;
  background-color: #2b2b2b; /* Dark background for section */
  background-image: url('../images/save.jpg'); /* Adjusted dark-themed background image */
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5); /* Darker shadow */
  overflow: hidden;
  transform-origin: top center;
  transform: rotateX(-90deg); /* Initial rotate effect */
  animation: rollIn 1.5s forwards ease-out;
}

/* Adding a dark overlay */
.ww-section-invite::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7); /* Dark overlay */
  z-index: 1;
}

/* Ensuring the content is displayed above the overlay */
.invite-container {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

/* Heading Styles */
.ww-invitation-heading {
  font-family: 'Lora', cursive;
  font-size: 2.8rem;
  color: #ffb163; /* Bright highlight color */
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  transform: translateY(100px);
  opacity: 0;
  animation: fadeUp 1s forwards 1.5s ease-out;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Stronger shadow */
}

.ww-invitation-text,
.ww-reception-details,
.ww-invitation-details {
  font-size: 1.3rem;
  color: #e0e0e0;
  margin-bottom: 20px;
  transform: translateY(100px);
  opacity: 0;
  animation: fadeUp 1s forwards 1.7s ease-out;
}

.ww-couple-bride,
.ww-couple-groom {
  font-family: 'Parisienne', cursive;
  font-size: 2rem;
  color: #ffb163; /* Bright couple names */
  margin-bottom: 0;
  line-height: 1.2;
  font-weight: 600;
  transform: translateY(100px);
  opacity: 0;
  animation: fadeUp 1s forwards 1.9s ease-out;
}

.ww-couple-brideparent,
.ww-couple-groomparent {
  font-size: 1rem;
  color: #cccccc; /* Soft grey for parent names */
  margin-bottom: 20px;
  transform: translateY(100px);
  opacity: 0;
  animation: fadeUp 1s forwards 2.1s ease-out;
}

.ww-reception-details strong,
.ww-invitation-details strong {
  color: #ffb163; /* Accent color for strong text */
}

.ww-compliments-heading {
  font-size: 1.2rem;
  color: #ffb163;
  margin-bottom: 20px;
  transform: translateY(100px);
  opacity: 0;
  animation: fadeUp 1s forwards 2.3s ease-out;
}

.ww-compliments {
  font-size: 1.1rem;
  color: #e0e0e0;
  margin-bottom: 20px;
  transform: translateY(100px);
  opacity: 0;
  animation: fadeUp 1s forwards 2.3s ease-out;
}

/* Keyframes for rolling effect */
@keyframes rollIn {
  0% {
      transform: rotateX(-90deg) scale(0.8);
      opacity: 0;
  }
  100% {
      transform: rotateX(0) scale(1);
      opacity: 1;
  }
}

/* Fade-up animation */
@keyframes fadeUp {
  0% {
      transform: translateY(100px);
      opacity: 0;
  }
  100% {
      transform: translateY(0);
      opacity: 1;
  }
}

/* AOS Animations */
[data-aos] {
  opacity: 0;
  transition-property: opacity, transform;
}

[data-aos].aos-animate {
  opacity: 1;
  transform: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .ww-section-invite {
    background-image: url('../images/save-mobile.jpg'); /* Dark-themed mobile image */
    background-position: center;
    background-attachment: scroll;
  }

  .ww-invitation-heading {
    font-size: 2.4rem;
  }

  .ww-couple-bride,
  .ww-couple-groom {
    font-size: 1.6rem;
  }

  .ww-couple-brideparent,
  .ww-couple-groomparent {
    font-size: 0.9rem;
  }

  .ww-invitation-text,
  .ww-reception-details,
  .ww-invitation-details,
  .ww-compliments {
    font-size: 1rem;
  }

  .invite-container {
    padding: 20px;
  }
}

/* Additional media query for very small screens */
@media (max-width: 480px) {
  .ww-invitation-heading {
    font-size: 2rem;
  }

  .ww-couple-bride,
  .ww-couple-groom {
    font-size: 1.4rem;
  }

  .ww-invitation-text,
  .ww-reception-details,
  .ww-invitation-details,
  .ww-compliments {
    font-size: 0.9rem;
  }
}
