/*
   Font Definitions for Didot OTF Files
   Moved from HTML <style type="text/tailwindcss"> block to a standalone CSS file.

   IMPORTANT:
   1. Please rename your font files to remove spaces (e.g., Didot-Bold.otf)
      for better web compatibility. The `url()` paths below reflect this.
      If you keep spaces, paths like `url('../fonts/Didot Bold.otf')` might work,
      but can be error-prone.
   2. For production, strongly consider converting these .otf files to .woff2 and .woff
      for better performance and browser compatibility. List .woff2 first in src.
      Example: src: url('../fonts/Didot-Regular.woff2') format('woff2'),
                   url('../fonts/Didot-Regular.woff') format('woff'),
                   url('../fonts/Didot-Regular.otf') format('opentype');
   3. The font paths assume a structure like:
      my-project/
      ├── index.html
      ├── css/
      │   └── style.css
      └── fonts/
          └── [your font files]
      If your structure is different, adjust `url('../fonts/...')` accordingly.
*/

/* Define custom CSS variables (colors) */
@layer base {
  :root {
    --color-dusty-pink: #d58a94;
    --color-old-rose: #f3b6b6;
    --color-rosegold: #feb1b7;
    --color-sage-green: #06402b;
    --color-muted-dark-green: #a4b792;
    --color-cadmium-green: #2e6417;
    --color-light-beige: #f8f6f1;
    --color-dark-text: #333333;
    --color-light-text: #ffffff;
  }

  /* --- Didot Font Definitions (OTF) --- */
  /* Didot Regular */
  @font-face {
    font-family: 'Didot Display'; /* Consistent family name */
    src: url('../fonts/Didot-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap; /* Improves loading performance */
  }

  /* Didot Bold */
  @font-face {
    font-family: 'Didot Display';
    src: url('../fonts/Didot-Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
  }

  /* Didot Italic */
  @font-face {
    font-family: 'Didot Display';
    src: url('../fonts/Didot-Italic.otf') format('opentype');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
  }

  /* Didot Title (Assuming it's a heavier/display variant) */
  @font-face {
    font-family: 'Didot Display';
    src: url('../fonts/Didot-Title.otf') format('opentype');
    font-weight: 700; /* Set a specific weight, e.g., 700 (often corresponds to bold) */
    font-style: normal;
    font-display: swap;
  }

}

/* Apply global styles and font fallbacks */
body {
  font-family: "Montserrat", sans-serif;
  color: var(--color-dark-text);
  background-color: var(--color-light-beige);
}

/* Custom Font Classes using @layer utilities for Tailwind utility generation */
@layer utilities {
  .font-garamond {
    font-family: "Didot Display", serif; /* CHANGED FROM "Cormorant Garamond" */
  }
}

/* Custom utility for subtle text shadow on hero section */
.text-shadow-light {
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}
.text-shadow-md {
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.4);
}

/* --- Hero Section Parallax --- */
.hero-background {
  background-image: url("../10.jpg"); /* Adjusted path */
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

@media (max-width: 767px) {
  .hero-background {
    background-position: 80% center;
  }
}
/* --- Marquee Animation --- */
.marquee-container {
  overflow: hidden;
  width: 100%;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(var(--scroll-width));
  }
}

.marquee-track {
  display: flex;
  flex-wrap: nowrap;
  animation: scroll 120s linear infinite;
}

.marquee-image {
  flex: none;
  height: clamp(200px, 35vw, 450px);
  object-fit: cover;
}

/* --- Schedule Timeline CSS --- */
.timeline-schedule {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

/* Vertical connecting line */
.timeline-schedule::before {
  content: "";
  position: absolute;
  width: 2px;
  background-color: var(--color-light-beige);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1px;
}

.timeline-event-item {
  position: relative;
  margin-bottom: 4rem;
  min-height: 80px;
}

/* Circle points on the line */
.timeline-event-item::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  background-color: var(--color-light-beige);
  border: 2px solid var(--color-dusty-pink);
  top: 1.25rem;
  border-radius: 50%;
  z-index: 10;
  left: 50%;
  transform: translateX(-50%);
}

/* Desktop layout for event items */
.timeline-event-item .event-content-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
}
.timeline-event-item.right .event-content-wrapper {
  flex-direction: row-reverse;
}

/* Time indicator on timeline */
.time-indicator {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: bold;
  color: var(--color-dusty-pink);
  margin-bottom: 0.5rem;
  width: 50%;
  display: flex;
  justify-content: flex-end;
  padding-right: 3rem;
}
.timeline-event-item.right .time-indicator {
  justify-content: flex-start;
  padding-left: 3rem;
  padding-right: 0;
}

/* Event Content Box styling */
.content-box {
  padding: clamp(1rem, 3vw, 1.5rem);
  border-radius: 0.5rem;
  position: relative;
  width: 100%;
  max-width: 20rem;
  text-align: left;
  background-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: var(--color-light-text);
}
.content-box h3 {
  color: var(--color-light-text);
  font-size: clamp(1.25rem, 3vw, 1.5rem);
}
.content-box p {
  color: var(--color-light-text);
  font-size: clamp(0.875rem, 2vw, 1rem);
}

/* Color swatch overlaps */
.color-swatch {
  width: clamp(60px, 15vw, 80px);
  height: clamp(60px, 15vw, 80px);
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  position: relative;
}
.color-swatch:not(:first-child) {
}
.color-swatch:nth-child(2) {
  z-index: 20;
}
.color-swatch:nth-child(3) {
  z-index: 30;
}
.color-swatch:nth-child(4) {
  z-index: 40;
}
.color-swatch:nth-child(5) {
  z-index: 50;
}

/* Custom Styles for Navbar on Mobile (Hamburger) */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 99;
  display: none;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 75%;
  height: 100%;
  background-color: var(--color-sage-green);
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  z-index: 100;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu .close-btn {
  color: white;
  font-size: 2rem;
  margin-bottom: 2rem;
  align-self: flex-end;
  cursor: pointer;
}

.mobile-menu a {
  color: white;
  font-size: clamp(1rem, 4vw, 1.25rem);
  text-transform: uppercase;
  font-weight: bold;
  padding: 1rem 0;
  display: block;
  width: 100%;
  text-align: left;
}

/* --- Comprehensive Responsive Design --- */

/* Large screens (1200px+) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  .hero-section h1 {
    font-size: 6rem;
  }
  .marquee-track {
    animation-duration: 150s;
  }
}

/* Medium-Large screens (992px - 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
  .hero-section h1 {
    font-size: clamp(4rem, 8vw, 5rem);
  }
  .hero-countdown-value {
    font-size: clamp(2.5rem, 5vw, 3rem);
  }
}

/* Tablets (768px - 991px) */
@media (max-width: 991px) and (min-width: 768px) {
  .hero-section {
    padding-top: 6rem;
  }
  .hero-section h1 {
    font-size: clamp(3rem, 7vw, 4rem);
    margin-bottom: 2rem;
  }
  .hero-countdown-value {
    font-size: clamp(2rem, 4vw, 2.5rem);
  }
  .hero-details-card {
    flex-direction: row;
    gap: 1rem;
    padding: 1.5rem;
    max-width: 400px;
  }
  .marquee-track {
    animation-duration: 80s;
  }
  .timeline-schedule::before,
  .timeline-event-item::after {
    display: none;
  }
  .event-content-wrapper {
    flex-direction: column !important;
    align-items: center;
  }
  .time-indicator {
    text-align: center;
    width: auto;
    padding: 0;
    margin-bottom: 1rem;
  }
  .content-box {
    max-width: 100%;
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-dark-text);
  }
  .content-box h3,
  .content-box p {
    color: var(--color-dark-text);
  }
}

/* Mobile Large (576px - 767px) */
@media (max-width: 767px) and (min-width: 576px) {
  .hero-section {
    padding-top: 5rem;
    min-height: 90vh;
  }
  .hero-section h1 {
    font-size: clamp(2.5rem, 8vw, 3.5rem);
    margin-bottom: 1.5rem;
  }
  .hero-countdown-value {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }
  .hero-countdown-label {
    font-size: clamp(0.7rem, 2vw, 0.875rem);
  }
  .marquee-track {
    animation-duration: 120s;
  }
  .marquee-image {
    height: clamp(180px, 40vw, 280px);
  }
  .timeline-schedule::before,
  .timeline-event-item::after {
    display: none;
  }
  .timeline-event-item {
    margin-bottom: 2rem;
  }
  .event-content-wrapper {
    flex-direction: column !important;
    align-items: center;
  }
  .time-indicator {
    text-align: center;
    width: auto;
    padding: 0;
    margin-bottom: 0.75rem;
  }
  .content-box {
    max-width: 100%;
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-dark-text);
    margin: 0 1rem;
  }
  .content-box h3,
  .content-box p {
    color: var(--color-dark-text);
  }
  .location-grid {
    flex-direction: column;
    gap: 1.5rem;
  }
  .location-card {
    max-width: 100%;
    margin: 0 1rem;
  }
  .color-palette {
    justify-content: center;
    margin-bottom: 1rem;
  }
  .color-palette + .border-l-2 {
    display: none;
  }
}

/* Mobile Small (up to 575px) */
@media (max-width: 575px) {
  .hero-section {
    padding-top: 4rem;
    min-height: 85vh;
  }
  .hero-section h1 {
    font-size: clamp(2rem, 10vw, 3rem);
    margin-bottom: 1rem;
  }
  .hero-countdown-value {
    font-size: clamp(1.25rem, 8vw, 1.75rem);
  }
  .hero-countdown-label {
    font-size: clamp(0.6rem, 3vw, 0.75rem);
  }
  .marquee-track {
    animation-duration: 40s;
  }
  .marquee-image {
    height: clamp(150px, 45vw, 220px);
  }
  .timeline-schedule::before,
  .timeline-event-item::after {
    display: none;
  }
  .timeline-event-item {
    margin-bottom: 1.5rem;
  }
  .event-content-wrapper {
    flex-direction: column !important;
    align-items: center;
  }
  .time-indicator {
    text-align: center;
    width: auto;
    padding: 0;
    margin-bottom: 0.5rem;
    font-size: 1rem;
  }
  .content-box {
    max-width: 100%;
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-dark-text);
    margin: 0 0.5rem;
    padding: 1rem;
  }
  .content-box h3 {
    color: var(--color-dark-text);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
  }
  .content-box p {
    color: var(--color-dark-text);
    font-size: 0.875rem;
  }
  .location-grid {
    flex-direction: column;
    gap: 1rem;
  }
  .location-card,
  .attire-card {
    max-width: 100%;
    margin: 0 0.5rem;
    padding: 1.5rem;
  }
  .color-palette {
    justify-content: center;
    margin-bottom: 1rem;
  }
  .color-palette + .border-l-2 {
    display: none;
  }
  form {
    margin: 0 0.5rem;
  }
  form input,
  form textarea {
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
  }
  form button {
    font-size: 0.875rem;
    padding: 0.875rem;
  }
  /* Navigation adjustments */
  .navbar {
    padding: 0.75rem 0;
  }
  .navbar .font-garamond {
    font-size: 2rem;
  }
  /* Section padding adjustments */
  section {
    padding: 3rem 0;
  }
  .container {
    padding: 0 1rem;
  }
  /* Typography adjustments */
  h2 {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
    margin-bottom: 1.5rem;
  }
  p {
    font-size: clamp(0.875rem, 3vw, 1rem);
    line-height: 1.6;
  }
}

/* Extra small screens (up to 375px) */
@media (max-width: 375px) {
  .hero-section {
    padding-top: 3rem;
  }
  .hero-section .flex.space-x-4 {
    gap: 0.5rem;
  }
  .hero-countdown-value {
    font-size: 1rem;
  }
  .hero-countdown-label {
    font-size: 0.5rem;
  }
  .hero-details-card {
    padding: 0.75rem;
    margin: 0 0.25rem;
  }
  .marquee-image {
    height: 120px;
  }
  .content-box {
    margin: 0 0.25rem;
    padding: 0.75rem;
  }
  .location-card,
  .attire-card {
    margin: 0 0.25rem;
    padding: 1rem;
  }
  form {
    margin: 0 0.25rem;
  }
}
/* Force slides to shrink to image width */
.splide__slide {
  width: auto !important;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
}

.splide__list {
  display: flex;
}

.splide__slide img {
  display: block;
  height: clamp(200px, 35vw, 450px);
  object-fit: cover;
  cursor: pointer;
}

.glightbox-container .gslide {
  border-radius: 12px;
  overflow: hidden;
}

.glightbox-container .gslide img {
  border-radius: 12px;
  object-fit: contain;
}

.underline-active {
  text-decoration: underline;
  text-underline-offset: 4px; /* Optional: for better spacing */
}