/* General Body & Typography */
body {
  font-family: "Poppins", sans-serif;
  color: #4a4a4a; /* Soft charcoal */
  line-height: 1.7;
  overflow-x: hidden;
  background-color: #f8fcfb; /* Very light minty background */
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Poppins", sans-serif; /* Consistent modern font */
  color: #5d5d81; /* Soft royal blue */
  margin-bottom: 1.5rem;
  font-weight: 700;
}

h1.baby-name {
  font-family: "Pacifico", cursive; /* Playful script for baby's name */
  font-size: 5.5rem;
  color: #ffb3ba; /* Soft coral pink */
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.15);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.hero-intro {
  font-size: 1.8rem;
  color: #e0bbe4; /* Soft lavender */
  font-weight: 500;
  margin-bottom: 1rem;
}

.tagline {
  font-size: 1.5rem;
  color: #d8cde9; /* Lighter lavender */
  margin-bottom: 2rem;
  font-weight: 300;
}

h2.section-title {
  font-size: 3.5rem;
  margin-bottom: 2.5rem;
  position: relative;
  padding-bottom: 15px;
  color: #5d5d81;
}

h2.section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 90px;
  height: 4px;
  background-color: #ffb3ba; /* Soft coral pink accent */
  border-radius: 5px;
}

.lead {
  color: #666;
  font-size: 1.15rem;
  max-width: 800px;
  margin: 0 auto 3rem auto;
  text-align: center;
}

/* Hero Section */
.hero-section {
  height: 100vh;
  background: url("../images/hero-bg-modern.jpg") no-repeat center center/cover;
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.4); /* Slightly darker overlay */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 30px;
}

.baby-photo-frame {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  margin: 1.5rem auto;
  background-color: #ffd700; /* Gold background for pop */
  padding: 5px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  border: 3px solid #fff; /* White border */
}

.baby-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%; /* Ensure image itself is round within frame */
  transition: transform 0.3s ease;
}

.baby-photo:hover {
  transform: scale(1.05);
}

.parents-names {
  font-size: 1.6rem;
  font-weight: 500;
  color: #fff;
  margin-top: 1rem;
  letter-spacing: 1px;
}

.welcome-message {
  font-size: 1.15rem;
  color: #f0f8ff;
  max-width: 700px;
  margin: 0.5rem auto 2.5rem auto;
  font-style: italic;
  font-weight: 300;
}

.btn-primary-custom {
  background-color: #ffb3ba; /* Soft coral pink */
  border-color: #ffb3ba;
  color: #fff;
  padding: 14px 35px;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background-color 0.3s ease, transform 0.3s ease,
    box-shadow 0.3s ease;
}

.btn-primary-custom:hover {
  background-color: #f799a4; /* Darker pink on hover */
  border-color: #f799a4;
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Navigation Bar */
.navbar {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: background-color 0.3s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar-brand {
  font-family: "Pacifico", cursive;
  font-size: 2.5rem;
  color: #ffb3ba !important; /* Soft coral pink for brand */
  font-weight: 700;
}

.nav-link {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  color: #5d5d81 !important; /* Soft royal blue */
  margin: 0 15px;
  transition: color 0.3s ease, transform 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-link:hover {
  color: #ffb3ba !important; /* Soft coral pink on hover */
  transform: translateY(-2px);
}

/* Sections General */
section {
  padding: 100px 0;
  overflow: hidden;
}

/* Image Placeholder Styling */
.placeholder {
  background-color: #e0e6eb;
  display: block;
  animation: pulse-bg 1.5s infinite;
}

@keyframes pulse-bg {
  0% {
    background-color: #e0e6eb;
  }
  50% {
    background-color: #d3dbe0;
  }
  100% {
    background-color: #e0e6eb;
  }
}

/* Our Journey Section - Asymmetrical Layout */
#our-journey {
  background-color: #f8fcfb; /* Very light minty background */
}

.section-block {
  margin-bottom: 6rem;
}

.section-block.reverse-order .image-block {
  order: 2; /* Move image to right for reverse */
}
.section-block.reverse-order .content-block {
  order: 1; /* Move content to left for reverse */
  text-align: end; /* Align text right for reverse order */
}

.content-block {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start; /* Default align left */
}

.section-block.reverse-order .content-block {
  align-items: flex-end; /* Align right for reverse */
}

.image-block {
  position: relative;
  padding: 20px;
  background-color: #e6f7ff; /* Light blue accent background */
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transform: rotate(3deg); /* Slight rotation for playful effect */
  transition: transform 0.3s ease;
}

.section-block.reverse-order .image-block {
  transform: rotate(-3deg); /* Opposite rotation for reverse */
}

.image-block:hover {
  transform: rotate(0deg) scale(1.02); /* Straighten and slightly enlarge on hover */
}

.section-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  min-height: 250px; /* Placeholder minimum height */
  object-fit: cover;
}

.story-heading {
  font-family: "Poppins", sans-serif;
  font-size: 2.5rem;
  color: #ffb3ba; /* Soft coral pink */
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.story-caption {
  font-size: 1.05rem;
  color: #555;
  line-height: 1.6;
}

/* Baby Gallery Section */
#gallery {
  background-color: #e0f7fa; /* Lighter blue/turquoise background */
}

.gallery-thumbnail-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #fff; /* Ensure a white background behind */
  padding: 10px; /* Internal padding for a border-like effect */
}

.gallery-thumbnail-wrapper:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.gallery-thumbnail {
  width: 100%;
  height: 250px; /* Consistent height for grid */
  object-fit: cover;
  border-radius: 8px; /* Slightly smaller radius inside */
  display: block;
  background-color: #e0e6eb; /* Placeholder background */
}

/* Lightbox specific styling */
#lightboxOverlay {
  background-color: rgba(0, 0, 0, 0.85) !important;
}
#lightboxOuter {
  background-color: #fff !important;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}
#lightbox-nav a {
  color: #ffb3ba !important;
}
#lightboxCaption {
  color: #4a4a4a !important;
  font-family: "Poppins", sans-serif;
}

/* Ceremony Details Section */
#details {
  background-color: #f8fcfb; /* Very light minty background */
}

.detail-card {
  border: none;
  border-radius: 20px;
  padding: 50px 40px;
  background-color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 3px dashed #e0bbe4; /* Playful dashed border */
}

.detail-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.detail-icon {
  font-size: 4.5rem;
  color: #ffb3ba; /* Soft coral pink */
  margin-bottom: 25px;
  display: inline-block;
  background-color: #fff0f5; /* Very light pink background */
  border-radius: 50%;
  padding: 20px;
  animation: bounce 2s infinite ease-in-out; /* Subtle animation */
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.card-text {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 0.8rem;
  font-weight: 400;
}

.card-text i {
  color: #e0bbe4; /* Soft lavender icon color */
  margin-right: 10px;
}

.btn-outline-custom {
  color: #5d5d81;
  border-color: #5d5d81;
  background-color: transparent;
  padding: 10px 25px;
  border-radius: 50px;
  transition: all 0.3s ease;
  font-weight: 500;
  text-transform: uppercase;
}

.btn-outline-custom:hover {
  background-color: #5d5d81;
  color: #fff;
}

.gift-message {
  font-family: "Poppins", sans-serif;
  font-size: 1.2rem;
  font-style: normal; /* No italics for general lead */
  color: #555;
  background-color: #e8f9f9; /* Light aqua background */
  padding: 30px;
  border-radius: 15px;
  border-left: 6px solid #82d8d8; /* Aqua border */
  margin-top: 4rem;
  font-weight: 400;
}

/* RSVP Section */
#rsvp {
  background-color: #e0f7fa; /* Lighter blue/turquoise background */
  padding: 100px 0;
}

/* Contact Section */
#contact {
  background-color: #f8fcfb; /* Very light minty background */
}

.contact-item {
  background-color: #fff;
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.contact-item h3 {
  font-size: 2rem;
  color: #ffb3ba; /* Soft coral pink */
  margin-bottom: 1rem;
}

.contact-icon {
  font-size: 3.8rem;
  color: #e0bbe4; /* Soft lavender */
  margin-bottom: 25px;
  background-color: #f8f0fc; /* Lighter lavender background */
  border-radius: 50%;
  padding: 15px;
  display: inline-block;
}

.contact-item p {
  font-size: 1.05rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.contact-item a {
  color: #82d8d8; /* Aqua blue for links */
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: #5bbaba;
  text-decoration: underline;
}

/* Social Media Category Styling */
.social-media-container {
  background-color: #fff;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  padding: 40px;
  margin-top: 5rem;
}

.social-category-heading {
  font-family: "Poppins", sans-serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: #5d5d81;
  margin-top: 15px;
  margin-bottom: 25px;
  text-align: center;
}

.social-media-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  justify-content: center; /* Align left within column */
}

.social-media-item .social-icon-link {
  font-size: 1.8rem;
  color: #ffb3ba; /* Soft coral pink */
  margin-right: 15px;
  transition: color 0.3s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.social-media-item .social-icon-link:hover {
  color: #f799a4;
  transform: scale(1.15);
}

.social-media-item .social-label {
  font-size: 1.1rem;
  color: #555;
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
}

.social-media-item .social-label:hover {
  color: #82d8d8; /* Aqua blue on hover */
}

/* Footer */
.footer {
  background-color: #e0bbe4; /* Soft lavender */
  color: #fff;
  padding: 50px 0;
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
}

.footer::before {
  content: "";
  position: absolute;
  top: -20px; /* Creates a slight overlap with section above */
  left: 0;
  width: 100%;
  height: 40px; /* Controls the wave size */
  background-color: #e0bbe4; /* Match footer background */
  clip-path: ellipse(50% 100% at 50% 0%); /* Creates a wave effect */
  z-index: -1;
}

.footer a {
  color: #f8f0fc; /* Very light lavender */
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: #ffb3ba; /* Soft coral pink on hover */
  text-decoration: underline;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
  h1.baby-name {
    font-size: 4.5rem;
  }
  .hero-intro {
    font-size: 1.5rem;
  }
  .tagline {
    font-size: 1.3rem;
  }
  h2.section-title {
    font-size: 3rem;
  }
  .navbar-brand {
    font-size: 2rem;
  }
  .baby-photo-frame {
    width: 180px;
    height: 180px;
  }
  .content-block,
  .image-block {
    padding: 15px;
  }
  .story-heading {
    font-size: 2rem;
  }
  .section-block.reverse-order .content-block,
  .content-block {
    align-items: center; /* Center text on smaller screens */
    text-align: center;
  }
  .section-block .image-block {
    transform: rotate(0deg); /* Remove rotation on smaller screens */
  }
  .section-block.reverse-order .image-block {
    transform: rotate(0deg); /* Remove rotation on smaller screens */
  }
  .gallery-thumbnail {
    height: 200px;
  }
}

@media (max-width: 767.98px) {
  h1.baby-name {
    font-size: 3.5rem;
  }
  .hero-intro {
    font-size: 1.2rem;
  }
  .tagline {
    font-size: 1.1rem;
  }
  h2.section-title {
    font-size: 2.5rem;
  }
  .btn-primary-custom,
  .btn-outline-custom {
    padding: 10px 25px;
    font-size: 1rem;
  }
  .baby-photo-frame {
    width: 150px;
    height: 150px;
  }
  .section-block {
    flex-direction: column; /* Stack image and content vertically */
  }
  .section-block.reverse-order {
    flex-direction: column; /* Keep stacked even if reverse is set */
  }
  .content-block,
  .image-block {
    order: unset !important; /* Reset order to default */
  }
  .story-heading {
    font-size: 1.8rem;
  }
  .gallery-thumbnail {
    height: 180px;
  }
  .contact-item {
    margin-bottom: 30px;
  }
  .social-media-item {
    justify-content: center; /* Center social items on mobile */
  }
}

@media (max-width: 575.98px) {
  h1.baby-name {
    font-size: 2.8rem;
  }
  .hero-intro {
    font-size: 1.1rem;
  }
  .tagline {
    font-size: 1rem;
  }
  h2.section-title {
    font-size: 2rem;
  }
  .baby-photo-frame {
    width: 120px;
    height: 120px;
  }
  .gallery-thumbnail {
    height: 150px;
  }
  .detail-card {
    padding: 30px 20px;
  }
}
