.home {
    width: 100%;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile */
    text-align: center;
    background-color: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: relative;
    transition: all 2s ease;
    transform: translateY(-100%);
    background-image: url('../assets/images/bg.jpeg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    color: rgb(255, 255, 255);
    /* Mobile optimizations */
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    overflow-x: hidden;
}

.home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.home > * {
    position: relative;
    z-index: 2;
}

.home.active {
    transform: translateY(0);
}

.home h2 {
    font-size: 2.4rem;
    font-family: var(--sacramento);
    font-weight: 400;
    margin: 0 0 1rem 0;
    color: white;
}

.home figure {
    margin: -10rem auto 0;
}

.home figure img {
    width: 10rem;
    height: 10rem;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow-md);
}

.home figure figcaption {
    margin: 0 0 0.5rem;
    font-weight: 400;
    font-family: var(--sacramento);
    font-size: 2rem;
}

.home h3 {
    font-size: 1rem;
    font-weight: 500;
        color:white
}

.home .home-time {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.home .home-time div {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #000;
    background-color: #000;
    border-radius: 8px;
}

.home .home-time div p {
    font-size: 0.8rem;
    line-height: normal;
}

.home .home-time div p span {
    font-size: 0.6rem;
    margin-top: 0.2rem;
}

.home a {
    padding: 0.5rem 1rem;
    color: #fff;
    font-size: 1rem;
    background-color: #000;
    margin: 1rem auto;
    border-radius: 20px;
    width: fit-content;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    /* Mobile optimizations */
    min-height: 44px;
    min-width: 44px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: all 0.3s ease;
    text-decoration: none;
}

.home a:active {
    transform: scale(0.95);
    background-color: #333;
}

.home a i {
    font-size: 1.2rem;
}

.home .scroll_down {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
}

.home svg {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -20rem;
    z-index: -10;
}

/* Style for the timeline section */
.timeline {
    /* Centers the content inside the section */
    display: flex;
    flex-direction: column;
    align-items: center; /* Center items horizontally */
    text-align: center;
    padding: 20px 0; /* Add some vertical space */
}

.timeline h2 {
    font-family: var(--sacramento);
    font-size: var(--fontSize-heading-base);
    font-weight: 400;
}

/* Style for the image within the timeline section */
#timeline-image {
    display: block; /* Important for margin: auto to work */
    width: 90%; /* Take up 90% of the screen width */
    max-width: 800px; /* Prevent it from getting too big on large screens */
    height: auto; /* Maintain the aspect ratio */
    margin: 20px auto; /* Center it horizontally with automatic margins */
    border: none; /* Remove the border if it's not needed */
}

/* Optional: Add a style for small screens to ensure good fit */
@media (max-width: 600px) {
    #timeline-image {
        width: 95%; /* Use a bit more width on smaller screens */
    }
}

/* Style for the timeline section */
.guestattire {
    /* Centers the content inside the section */
    width: 100%;
    padding: 0rem 2rem;
    text-align: center;
    background-color: var(--bg-color);
    position: relative;
}


.guestattire h2 {
    font-family: var(--sacramento);
    font-size: var(--fontSize-heading-base);
    font-weight: 400;
}

.guestattire-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    line-height: 1.8;
}

.guestattire-paragraph {
    font-size: 1rem;
    margin-bottom: 1.2rem;
    color: #444;
    text-align: justify;
}

.guestattire-conclusion {
    font-size: 1.1rem;
    font-weight: 500;
    margin-top: 1.5rem;
    text-align: center;
    font-style: italic;
    color: #333;
}


#entourageattire-image {
    display: block; /* Important for margin: auto to work */
    width: 100%; /* Take up 90% of the screen width */
    max-width: 800px; /* Prevent it from getting too big on large screens */
    height: auto; /* Maintain the aspect ratio */
    margin: 20px auto; /* Center it horizontally with automatic margins */
    border: none; /* Remove the border if it's not needed */
}


/* Style for the image within the timeline section */
#guestattire-image {
    display: block; /* Important for margin: auto to work */
    width: 100%; /* Take up 90% of the screen width */
    max-width: 800px; /* Prevent it from getting too big on large screens */
    height: auto; /* Maintain the aspect ratio */
    margin: 20px auto; /* Center it horizontally with automatic margins */
    border: none; /* Remove the border if it's not needed */
}

/* Optional: Add a style for small screens to ensure good fit */
@media (max-width: 600px) {
    #guestattire-image {
        width: 95%; /* Use a bit more width on smaller screens */
    }
}

/* Global Mobile Tweaks for Full Site Layout (Optimized around iPhone 14 Pro Max ~430px) */

/* -----------------------------
   GENERIC RESET / BASE TWEAKS
----------------------------- */
@media (max-width: 480px) {
  html, body {
    width: 100%;
    overflow-x: hidden;
    font-size: 15px;
    -webkit-text-size-adjust: 100%;
  }

  section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  h1, h2, h3 {
    line-height: 1.2;
    word-break: break-word;
  }

  p {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  img {
    max-width: 100%;
    height: auto;
  }

  /* Tap Target Accessibility */
  a, button {
    min-height: 44px;
    min-width: 44px;
  }
}

/* -----------------------------
   HOME SECTION
----------------------------- */
@media (max-width: 480px) {
  .home {
    padding: 0 1rem;
    background-attachment: scroll;
    text-align: center;
  }

  .home h2 {
    font-size: var(--fontSize-heading-base);
    margin-bottom: 0.5rem;
  }

  .home figure {
    margin: -8rem auto 0;
  }

  .home figure img {
    width: 8rem;
    height: 8rem;
  }

  .home figure figcaption {
    font-size: 1.7rem;
  }

  .home h3 {
    font-size: 0.9rem;
  }

  .home .home-time {
    gap: 0.6rem;
  }

  .home .home-time div {
    width: 2.6rem;
    height: 2.6rem;
  }

  .home .home-time div p {
    font-size: 0.7rem;
  }

  .home svg {
    bottom: -12rem;
  }
}

/* -----------------------------
   TIMELINE SECTION
----------------------------- */
@media (max-width: 480px) {
  .timeline {
    padding: 1rem 0;
  }

  .timeline h2 {
    font-size: var(--fontSize-heading-base);
  }

  #timeline-image {
    width: 95%;
  }
}

/* -----------------------------
   GUEST ATTIRE SECTION
----------------------------- */
@media (max-width: 480px) {
  .guestattire {
    padding: 0 1rem;
  }

  .guestattire h2 {
    margin-top: -8rem;
    font-size: var(--fontSize-heading-base);
  }

  .guestattire-content {
    line-height: 1.6;
    font-size: 0.95rem;
  }

  .guestattire-paragraph {
    font-size: 0.95rem;
  }

  .guestattire-conclusion {
    font-size: 1rem;
  }

  #entourageattire-image,
  #guestattire-image {
    width: 100%;
    margin: 1rem auto;
  }
}

/* -----------------------------
   SPACING / UTILITY
----------------------------- */
@media (max-width: 480px) {
  .mt-lg {
    margin-top: 2rem;
  }

  .mb-lg {
    margin-bottom: 2rem;
  }
}

