/* Fullscreen background image */
html, body {
  height: 100%;
  margin: 0;
  font-family: 'Playfair Display', serif;
}

body {
  background: url('../images/us_bg.jpeg') no-repeat center bottom fixed;
  background-size: cover;
  height: 100vh;
  width: 100vw;
  margin: 0;
  padding: 0;
  position: relative;
}

/* ----------------------------------------------------------------------- Navbar styling */
.navbar {
  background: transparent;
  transition: all 0.3s ease;
  z-index: 9999;
  padding: 0.7rem 1rem;
}

.navbar.shrink {
  background: black !important;
  padding: 0.5rem 1rem;
}

@media (max-width: 992px) {
  .navbar {
    background: black !important;
  }
}

.navbar-brand {
  font-size: 3rem;
  font-family: 'Bonheur Royale', cursive;
  color: #fff;
  text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.9);
  white-space: nowrap;
}

@media (max-width: 768px) {
  .navbar-brand {
    font-size: 2.5rem;
  }
}

.navbar-brand:hover {
  color: #FFD700 !important;
  transition: color 0.3s ease-in-out;
}

.navbar-nav .nav-item .nav-link {
  color: white;
  font-size: 1.1rem;
  margin-right: 15px;
  font-family: 'Raleway', sans-serif;
  font-weight: bold;
  text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.9);
}

.navbar-nav .nav-item .nav-link:hover {
  transition: all 0.3s ease-in-out;
  color: #FFD700;
}

.navbar-toggler {
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  padding: 0;
}

.heart-icon {
  width: 30px;
  height: 30px;
  background-color: #fff;
  position: relative;
  transform: rotate(-45deg);
  transition: all 0.3s ease-in-out;
}

.heart-icon::before,
.heart-icon::after {
  content: "";
  position: absolute;
  width: 30px;
  height: 30px;
  background-color: #fff;
  border-radius: 50%;
  transition: all 0.3s ease-in-out;
}

.heart-icon::before {
  top: -15px;
  left: 0;
}

.heart-icon::after {
  left: 15px;
  top: 0;
}

.navbar-toggler[aria-expanded="true"] .heart-icon {
  background: transparent;
  transform: rotate(0deg);
}

.navbar-toggler[aria-expanded="true"] .heart-icon::before,
.navbar-toggler[aria-expanded="true"] .heart-icon::after {
  width: 35px;
  height: 5px;
  background: #fff;
  border-radius: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .heart-icon::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.navbar-collapse {
  background-color: black;
  text-align: center;
  padding: 10px;
}

@media (min-width: 992px) {
  .navbar-collapse {
    background: transparent;
  }
}

/* ------------------------------------------------------------------------- Page Loader */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #ccc;
  border-top: 5px solid #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.content {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  background: rgba(0, 0, 0, 0.2);
}

.content h1 {
  font-size: 3.5rem;
  font-family: 'Charm', cursive;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 1);
}

@media (max-width: 768px) {
  .content h1 { font-size: 2.5rem; }
}

.countdown-timer {
  font-size: 2.5rem;
  font-family: 'Charm', cursive;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 1);
}

/* ------------------------------------------------------------------ Section Padding & Titles */
.section-padding { padding-top: 100px; }
section { padding: 100px 0; }

.section-title {
  font-family: 'Lucy Said Ok', cursive;
  font-size: 5rem;
  color: #fff;
  text-align: center;
  margin-bottom: 40px;
}

#homeInfo {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ------------------------------------------------------------------------------- Footer */
footer {
  background-color: #343a40;
  color: white;
  text-align: center;
  padding: 1rem 0;
}

/* ------------------------------------------------------------------------------ Our Story - Expanding Gallery */
.expanding-gallery {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80vh;
  overflow: hidden;
}

.gallery-item {
  flex: 1;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: flex 0.3s ease-in-out;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  position: relative;
  cursor: pointer;
  margin: 0 5px;
}

.gallery-item:hover { flex: 3; }
.gallery-item:not(:hover) { flex: 1; }

.gallery-item h3 {
  font-size: 1.5rem;
  color: white;
  text-shadow: 0px 4px 6px rgba(0, 0, 0, 0.7);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s;
}

.gallery-item:hover h3 {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .expanding-gallery { flex-direction: column; height: auto; }
  .gallery-item {
    flex: none;
    width: 100%;
    height: 200px;
    margin-bottom: 10px;
  }
  .gallery-item:hover { flex: none; }
}

/* ------------------------------------------------------------------------------ Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 80%;
  background-color: #ffffff9c;
  border-radius: 8px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 10000;
}

@media (max-width: 768px) {
  .modal {
    width: 90%;
    top: 5%;
    height: 90%;
  }
}

.modal-content {
  position: relative;
  padding: 20px;
  height: 100%;
  overflow-y: auto;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}

/* Custom Font */
@font-face {
  font-family: 'Lucy Said Ok';
  src: url('../fonts/LucySaidOk.ttf') format('truetype');
}

/* Our Story Section */
#our-story {
  background: url('../images/ourStoryBG.jpg') no-repeat center center;
  background-size: cover;
  padding: 100px 20px;
  color: white;
}

#our-story .section-title {
  font-family: 'Lucy Said Ok', cursive;
  font-size: 5rem;
  color: #fff;
  text-align: center;
  margin-bottom: 40px;
}

#our-story p { font-size: 1.2rem; line-height: 1.8; }
.story-description { padding: 20px; }

/* Details Section */
#details {
  background: url('../images/detailsBG.jpeg') no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  height: auto;
  padding: 100px 0;
}

.details-wrapper {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
}

.ceremony,
.reception {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.3);
  border: 2px solid white;
  border-radius: 8px;
  padding: 20px;
  width: 100%;
  max-width: 600px;
  text-align: center;
  color: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.ceremony-icon,
.reception-icon {
  font-size: 2.5rem;
  color: white;
  margin: 10px auto;
  display: block;
}

button {
  background-color: white;
  color: black;
  border: none;
  padding: 10px 20px;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 20px;
  display: inline-block;
}

button:hover {
  background-color: black;
  color: white;
}

.modal.full-image-modal .modal-content {
  position: relative;
  padding: 0;
  background: none;
  border: none;
  border-radius: 8px;
  overflow: hidden;
}

/* Position the close button relative to the image */
.modal.full-image-modal .close-btn {
  position: absolute;
  top: 2%;
  right: 2%;
  z-index: 10;
  color: white;
  font-size: 2rem;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  padding: 5px 10px;
  cursor: pointer;
}

/* Make the image fill the modal’s container responsively */
.modal-full-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* --- Responsive Map Button Styling --- */
.modal-btn {
  background-color: #343a40;
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: bold;
  transition: all 0.3s ease;
  text-decoration: none;
}

.modal-btn:hover {
  background-color: #495057;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .modal-btn {
    font-size: 1rem;
    padding: 10px 20px;
  }
}

/* --- Button Container Positioning (relative to the image) --- */
#ceremonyModalBtn {
  position: absolute;
  top: 75%;      /* 90% from the top of the image */
  right: 25%;     /* 75% from the left for the ceremony modal */
}

#receptionModalBtn {
  position: absolute;
  top: 75%;      /* 90% from the top of the image */
  left: 25%;     /* 25% from the left for the reception modal */
}

@media (max-width: 768px) {
  #ceremonyModalBtn {
    top: 65%;      /* 90% from the top of the image */
    right: 20%;     /* 75% from the left for the ceremony modal */
  }

  #receptionModalBtn {
    position: absolute;
    top: 65%;      /* 90% from the top of the image */
    left: 20%;     /* 25% from the left for the reception modal */
  }
}

#lodgingModalBtn1 {
  position: absolute;
  top: 85%;      /* 90% from the top of the image */
  left: 10%;     /* 25% from the left for the reception modal */
}

#lodgingModalBtn2 {
  position: absolute;
  top: 85%;      /* 90% from the top of the image */
  right: 10%;     /* 25% from the left for the reception modal */
}

.modal-btn i { font-size: 1.2rem; }

#ceremonyModal .modal-content {
  background: url('../images/ceremony_details.jpg') no-repeat center center;
  background-size: contain;
}

#receptionModal .modal-content {
  background: url('../images/reception_details.png') no-repeat center center;
  background-size: contain;
}

#lodgingModal .modal-content {
  background: url('../images/accommodation.png') no-repeat center center;
  background-size: contain;
}

/*------------------------------------------------------------------------------ Wedding Party Section */
#wedding-party {
  padding: 100px 20px;
  text-align: center;
  background: url('../images/blackWoodBG.jpg') no-repeat center center;
  color: white;
}

#wedding-party .section-title {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  color: #fff;
  margin-bottom: 20px;
}

.subtitle {
  font-size: 1.2rem;
  font-family: 'Raleway', sans-serif;
  margin-bottom: 50px;
  color: #ddd;
}

.wedding-party-wrapper {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}

/* Group Layout */
.group {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  text-align: center;
}

.circle {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 4px solid #fff;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.circle:hover {
  transform: scale(1.05);
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.arrow {
  position: absolute;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
}

.arrow:hover {
  transform: translateY(-50%) scale(1.2);
  color: #ffd700;
}

.left-arrow {
  left: -40px;
}

.right-arrow {
  right: -40px;
}

/* Description Box Styling */
.description-box {
  margin-top: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  padding: 20px;
  width: 250px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: background 0.3s ease, transform 0.3s ease;
}

.description-box:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.description-box h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: #ffd700;
  margin-bottom: 10px;
}

.description-box p {
  margin: 5px 0;
  font-family: 'Raleway', sans-serif;
  color: #ddd;
}

/* ------------------------------------------------------------------------------ Travel Guide Section */
#custom-travel-guide {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: url('../images/travelGuideBG.jpeg') no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  text-align: center;
  padding: 50px 20px;
  margin: 0;
  width: 100vw;
  height: 100vh;
  box-sizing: border-box;
}

.custom-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  color: white;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.custom-description {
  color: white;
  font-size: 1.2rem;
  max-width: 800px;
  margin-bottom: 40px;
  line-height: 1.6;
}

.custom-box-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.custom-box {
  background: rgba(255, 255, 255, 0.3);
  padding: 30px 20px;
  width: 250px;
  text-align: center;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.custom-box:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.custom-icon {
  font-size: 3rem;
  margin-bottom: 15px;
  color: white;
}

.custom-btn {
  background-color: white;
  color: black;
  border: none;
  padding: 12px 25px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: bold;
  transition: all 0.3s ease;
}

.custom-btn:hover {
  background-color: black;
  color: white;
  transform: translateY(-3px);
}

/* Custom Modal Styling */
.custom-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 20px;
  overflow-y: auto;
}

.custom-modal-content {
  background-color: white;
  color: black;
  padding: 30px;
  border-radius: 10px;
  width: 50%;
  max-width: 700px;
  text-align: center;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: black;
  transition: color 0.3s ease;
}

.close-btn:hover { color: red; }

@media (max-width: 768px) {
  #custom-travel-guide {
    padding: 30px 10px;
    height: auto;
  }
  .custom-section-title { font-size: 2.5rem; }
  .custom-description { font-size: 1rem; }
  .custom-box { width: 100%; max-width: 300px; }
  .custom-modal-content { width: 90%; }
  /* Wedding Party: Stack groups vertically */
  .wedding-party-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }
}

/* Prevent horizontal scrolling */
body { overflow-x: hidden; }
