/* 
==============================================
TABLE OF CONTENTS
==============================================
1. Variables
2. Base Styles
3. Typography
4. Layout & Common Components
5. Navigation
6. Hero Section
7. Introduction Section
8. Details Section
9. Entourage Section
10. FAQ Section
11. RSVP Section
12. Gallery Section
13. Footer
14. Animations
15. Media Queries
==============================================
*/

/* 
==============================================
1. Variables
==============================================
*/
:root {
    --primary: #99a984;
    --secondary: #99a984;
    --light: #f5f5f5;
    --dark: #333333;
    --white: #ffffff;
    --beige: #efe9d3;
    --font-primary: 'Great Vibes', cursive;
    --font-secondary: 'Montserrat', sans-serif;
    --font-entourage: 'Crimson Pro', serif;
    --font-script: 'Dancing Script', cursive;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
  }
  
  /* 
  ==============================================
  2. Base Styles
  ==============================================
  */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    font-family: var(--font-secondary);
    color: var(--dark);
    line-height: 1.6;
    background-color: var(--beige);
    overflow-x: hidden;
  }
  
  img {
    max-width: 100%;
    height: auto;
  }
  
  a {
    text-decoration: none;
    color: inherit;
  }
  
  ul, ol {
    list-style: none;
  }
  
  /* 
  ==============================================
  3. Typography
  ==============================================
  */
  h1, h2 {
    font-family: var(--font-script);
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-align: center;
  }
  h3, h4 {
    font-family: var(--font-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-align: center;
  }
  
  h1 {
    font-size: 4rem;
  }
  
  h2 {
    font-size: 2.5rem;
  }
  
  h3 {
    font-size: 2.1rem;
  }
  
  h4 {
    font-size: 1.2rem;
  }
  
  .script {
    font-family: var(--font-script);
    font-weight: 500;
    text-align: center;
  }
  
  p {
    margin-bottom: 1rem;
    text-align: center;
  }
  
  /* 
  ==============================================
  4. Layout & Common Components
  ==============================================
  */
  .container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
  }
  
  .btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-family: var(--font-secondary);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 1rem;
  }
  
  .btn:hover {
    background-color: #a37c4b;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
  }
  
  .section-title {
    position: relative;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    margin-left: auto;
    margin-right: auto;
    display: block;
    color: var(--primary);
    text-align: center;
    width: 100%;
  }
  
  .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary);
  }
  
  /* 
  ==============================================
  5. Navigation
  ==============================================
  */
  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 1rem 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
  }
  
  .navbar.scrolled {
    padding: 0.7rem 0;
  }
  
  .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .logo {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    color: var(--primary);
    text-decoration: none;
  }
  
  .nav-menu {
    display: flex;
    list-style: none;
  }
  
  .nav-menu li {
    margin-left: 2rem;
  }
  
  .nav-menu a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
  }
  
  .nav-menu a:hover {
    color: var(--primary);
  }
  
  .nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
  }
  
  .nav-menu a:hover::after {
    width: 100%;
  }
  
  .hamburger {
    display: none;
    cursor: pointer;
  }
  
  .hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--dark);
    transition: var(--transition);
  }
  
  /* 
  ==============================================
  6. Hero Section
  ==============================================
  */
  .hero {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: flex-end;
    position: relative;
    overflow: hidden;
  }
  
  .hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/img/landscape.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1;
    z-index: 1;
  }
  
  .hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    text-align: center;
    padding: 2.5rem 1.5rem 2rem;
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.75) 0%,
      rgba(0, 0, 0, 0.5) 50%,
      rgba(0, 0, 0, 0) 100%
    );
  }
  
  .hero-title {
    font-family: var(--font-primary);
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 0.5rem;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  }
  
  .hero-date {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 3px;
    margin: 0 0 1.5rem;
    color: var(--white);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  }
  
  /* Countdown */
  .countdown {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 1.25rem;
    margin: 1.5rem auto;
    max-width: 500px;
  }
  
  .countdown-item {
    flex: 0 1 auto;
    min-width: auto;
    text-align: center;
  }
  
  .countdown-number {
    font-family: var(--font-secondary);
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 0.25rem;
  }
  
  .countdown-label {
    font-family: var(--font-secondary);
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--white);
    opacity: 0.9;
  }
  
  .hero .btn {
    display: inline-block;
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 10px 28px;
    margin-top: 1rem;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    border-radius: 4px;
  }
  
  .hero .btn:hover {
    background-color: var(--white);
    color: var(--dark);
  }
  
  /* 
==============================================
7. Introduction Section - Updated with Background Image
==============================================
*/
.intro {
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  /* Remove the solid background color */
  /* background-color: var(--white); */
}

.intro::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('assets/img/intro-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* Creates parallax effect on desktop */
  opacity: 0.4; /* Increased opacity for better visibility */
  z-index: 1;
}

/* Ensure content appears above background */
.intro .container {
  position: relative;
  z-index: 2;
}

.intro .section-title {
  position: relative;
  z-index: 2;
  /* Add text shadow for better readability if needed */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.intro-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
  position: relative;
  z-index: 2;
}

.intro-text {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  padding: 2rem;
  background-color: rgba(255, 255, 255, 0.95); /* Semi-transparent white background */
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px); /* Creates a frosted glass effect */
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.intro-text p {
  text-align: left;
  color: var(--dark);
  line-height: 1.8;
  font-size: 1.1rem;
}

/* Updated Intro Image CSS - Fixed Mobile Gap Issue */
.intro-image {
  flex: 1;
  min-width: 300px;
  max-width: 400px;
  height: 450px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  border: 4px solid rgba(255, 255, 255, 0.9);
  position: relative; /* Add this for better control */
}

.intro-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center; /* Changed from center top to center center */
  transition: transform 0.5s ease;
  display: block; /* Removes any inline spacing */
}

.intro-image:hover img {
  transform: scale(1.05);
}

/* Mobile Responsive Adjustments - Updated */
@media (max-width: 768px) {
  .intro::before {
    background-attachment: scroll;
    background-size: cover;
  }
  
  .intro-text {
    padding: 1.5rem;
    margin: 0 1rem;
  }
  
  .intro-image {
    margin: 0 1rem;
    height: 400px; /* Reduced height for better mobile experience */
    min-height: 350px; /* Add minimum height */
    aspect-ratio: 3/4; /* Maintain consistent aspect ratio */
  }
  
  .intro-image img {
    object-position: center 20%; /* Adjust positioning for mobile */
  }
}

@media (max-width: 480px) {
  .intro {
    padding: 3rem 0;
  }
  
  .intro-content {
    gap: 2rem;
    margin-top: 2rem;
  }
  
  .intro-text {
    padding: 1.2rem;
    min-width: 280px;
  }
  
  .intro-text p {
    font-size: 1rem;
    line-height: 1.6;
  }
  
  .intro-image {
    height: 350px; /* Further reduced for very small screens */
    min-height: 300px;
    min-width: 280px;
    aspect-ratio: 4/5; /* Slightly different ratio for small screens */
  }
  
  .intro-image img {
    object-position: center 15%; /* Fine-tune positioning */
  }
}

/* For very small screens */
@media (max-width: 360px) {
  .intro-image {
    height: 300px;
    min-height: 280px;
    min-width: 260px;
  }
}

/* Alternative: If you want a more subtle background effect */
.intro.subtle-bg::before {
  opacity: 0.05;
  background-blend-mode: multiply;
}

/* Alternative: If you want the background to cover the entire viewport */
.intro.fullscreen-bg::before {
  background-attachment: fixed;
  background-size: cover;
  background-position: center center;
}
  
  /* 
  ==============================================
  8. Details Section
  ==============================================
  */
  .details {
    padding: 5rem 0;
    background-color: var(--beige);
  }
  
  .details-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
  }
  
  .detail-card {
    flex: 1;
    min-width: 300px;
    max-width: 350px;
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
  }
  
  .detail-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
  }
  
  .detail-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
  }
  
  .detail-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .color-swatches {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
  }
  
  .color-swatch {
    width: 30px;
    height: 30px;
    border-radius: 50%;
  }
  
  .qr-img{
    width: 150px;
    height: 150px;
  }
  /* 
  ==============================================
  9. Entourage Section
  ==============================================
  */
  .entourage {
    padding: 5rem 0;
    background-color: var(--white);
  }
  
  .entourage-container {
    margin-top: 3rem;
  }
  
  .entourage-category {
    margin-top: 4rem;
    margin-bottom: 2rem;
  }
  
  .entourage-category:first-child {
    margin-top: 0;
  }
  
  .category-title {
    font-size: 1.8rem;
    color: var(--primary);
    text-align: center;
    position: relative;
    margin-bottom: 2rem;
  }
  
.category-title::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 20'%3E%3C!-- Simple heart outline --%3E%3Cpath d='M40,15 C40,15 32,8 26,9 C20,10 20,6 26,7 C32,8 40,15 40,15 C40,15 48,8 54,7 C60,6 60,10 54,9 C48,8 40,15 40,15' stroke='%23808080' stroke-width='1.5' fill='none' opacity='0.8'/%3E%3C!-- Side lines --%3E%3Cline x1='10' y1='10' x2='20' y2='10' stroke='%23808080' stroke-width='1' opacity='0.6'/%3E%3Cline x1='60' y1='10' x2='70' y2='10' stroke='%23808080' stroke-width='1' opacity='0.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}
  
  /* Updated entourage section with smaller names */
.entourage-name {
    font-family: var(--font-entourage);
    font-size: 1.1rem; /* Reduced from default h3 size */
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--dark);
  }
  
  .entourage-role {
    color: var(--primary);
    font-family: var(--font-script);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }
  
  .entourage-card {
    text-align: center;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
      background-image: url('assets/img/entourage-bg.png');
  background-size: cover;
  background-position: top;
  background-repeat: no-repeat;
  background-attachment: fixed; /* Creates parallax effect on desktop */
    padding: 1.8rem 1.2rem; /* Slightly reduced padding */
  }
  
  .entourage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
  }
  
  /* Responsive adjustments */
  @media (max-width: 768px) {
    .entourage-name {
      font-size: 1rem;
    }
    
    .entourage-role {
      font-size: 1.1rem;
    }
  }
  
  .parent-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    margin: 2rem 0;
  }
  
  .parent-column {
    text-align: center;
  }
  
  .parent-column h4 {
    color: var(--white);
    margin-bottom: 0.75rem;
    opacity: 0.9;
  }
  
  /* 
==============================================
10. FAQ Section - Updated with Background Image
==============================================
*/
.faq {
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
  /* Remove the solid background color */
  /* background-color: var(--beige); */
}

.faq::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('assets/img/intro-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* Creates parallax effect on desktop */
  opacity: 0.4; /* Same visibility as intro section */
  z-index: 1;
}

/* Ensure content appears above background */
.faq .container {
  position: relative;
  z-index: 2;
}

.faq .section-title {
  position: relative;
  z-index: 2;
  /* Add text shadow for better readability if needed */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.faq-container {
  margin-top: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 2;
}

.accordion {
  margin-bottom: 1rem;
  background-color: rgba(255, 255, 255, 0.95); /* Semi-transparent white background */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px); /* Creates a frosted glass effect */
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.accordion-header {
  padding: 1.5rem;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color 0.3s ease;
}

.accordion-header:hover {
  background-color: rgba(239, 233, 211, 0.7); /* Semi-transparent beige hover */
}

.accordion-title {
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: 500;
  font-family: var(--font-secondary) !important;
  text-align: left;
}

.accordion-icon {
  width: 20px;
  height: 20px;
  position: relative;
}

.accordion-icon::before,
.accordion-icon::after {
  content: '';
  position: absolute;
  background-color: var(--primary);
  transition: transform 0.3s ease;
}

.accordion-icon::before {
  width: 100%;
  height: 2px;
  top: 50%;
  transform: translateY(-50%);
}

.accordion-icon::after {
  width: 2px;
  height: 100%;
  left: 50%;
  transform: translateX(-50%);
}

.accordion.active .accordion-icon::after {
  transform: translateX(-50%) rotate(90deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.5rem;
  transition: max-height 0.5s ease, padding 0.5s ease;
  background-color: rgba(255, 255, 255, 0.98); /* Slightly more opaque for content */
}

.accordion.active .accordion-content {
  max-height: 400px;
  padding: 0 1.5rem 1.5rem;
}

.accordion-content p {
  text-align: left;
  color: var(--dark);
  line-height: 1.7;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
  .faq::before {
    background-attachment: scroll; /* Fixed attachment can cause issues on mobile */
    background-size: cover;
  }
  
  .accordion {
    margin: 0 1rem 1rem 1rem;
  }
  
  .accordion-header {
    padding: 1.2rem;
  }
  
  .accordion-title {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .faq {
    padding: 3rem 0;
  }
  
  .faq-container {
    margin-top: 2rem;
  }
  
  .accordion {
    margin: 0 0.5rem 1rem 0.5rem;
  }
  
  .accordion-header {
    padding: 1rem;
  }
  
  .accordion-title {
    font-size: 1rem;
  }
  
  .accordion-content {
    padding: 0 1rem;
  }
  
  .accordion.active .accordion-content {
    padding: 0 1rem 1rem;
  }
}
  
  /* 
  ==============================================
  11. RSVP Section
  ==============================================
  */
  .rsvp {
    padding: 5rem 0;
    background-color: var(--white);
  }
  
  .rsvp-form {
    max-width: 600px;
    margin: 3rem auto 0;
    padding: 2.5rem;
    background-color: var(--beige);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
  }
  
  .form-group {
    margin-bottom: 1.5rem;
  }
  
  .form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    text-align: left;
  }
  
  .form-input,
  .form-select,
  .form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: border-color 0.3s ease;
  }
  
  .form-input:focus,
  .form-select:focus,
  .form-textarea:focus {
    outline: none;
    border-color: var(--primary);
  }
  
  .form-textarea {
    resize: vertical;
    min-height: 100px;
  }
  
  .form-submit {
    width: 100%;
  }
  
  .thank-you-message {
    text-align: center;
    padding: 2rem;
  }
  /* 
==============================================
12. Video Section
==============================================
*/
.video {
  padding: 5rem 0;
  background-color: var(--beige);
}

/* Video container to maintain aspect ratio */
.video .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.savethedatevideo {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 80vh; /* Prevents video from becoming too large on big screens */
  object-fit: contain;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
}

/* Responsive adjustments for video on small screens */
@media (max-width: 768px) {
  .savethedatevideo {
    width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .video {
    padding: 3rem 0;
  }
  
  .savethedatevideo {
    width: 100%;
    border-radius: 4px;
  }
}
  /* 
  ==============================================
  12. Gallery Section
  ==============================================
  */
  .gallery {
    padding: 5rem 0;
    background-color: var(--beige);
  }
  
  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 3rem;
  }
  
  .gallery-item {
    height: 500px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
  }
  .gallery-item-1 {
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
  }
  
  .gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
  }
  
  .gallery-item:hover .gallery-image {
    transform: scale(1.1);
  }
  .gallery-item-1:hover .gallery-image {
    transform: scale(1.1);
  }
  .gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
  }
  
  .gallery-item:hover .gallery-overlay {
    opacity: 1;
  }
  .gallery-item-1:hover .gallery-overlay {
    opacity: 1;
  }
  
  /* 
  ==============================================
  13. Footer
  ==============================================
  */
  .footer {
    padding: 3rem 0;
    background-color: var(--dark);
    color: var(--white);
    text-align: center;
  }
  
  .footer-logo {
    font-family: var(--font-script);
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 1.5rem;
  }
  
  .social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
  }
  
  .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    transition: var(--transition);
  }
  
  .social-link:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
  }
  
  .hashtag {
    margin: 1.5rem 0;
    font-size: 1.2rem;
    letter-spacing: 1px;
  }
  
  .copyright {
    margin-top: 2rem;
    font-size: 0.9rem;
    opacity: 0.8;
  }
  
  /* 
  ==============================================
  14. Animations
  ==============================================
  */
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  @keyframes slideInLeft {
    from {
      opacity: 0;
      transform: translateX(-50px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  @keyframes slideInRight {
    from {
      opacity: 0;
      transform: translateX(50px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  .fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  
  .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  .slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  
  .slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
  }
  
  .slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  
  .slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
  }
  
  /* 
  ==============================================
  15. Media Queries
  ==============================================
  */
  
  /* Large screens */
  @media (min-width: 1200px) {
    .container {
      width: 85%;
    }
    
    .hero-title {
      font-size: 5rem;
    }
    
    .hero-date {
      font-size: 1.8rem;
    }
  }
  
  /* Medium screens (tablets) */
  @media (max-width: 992px) {
    .section-title {
      font-size: 2.2rem;
    }
    
    .entourage-grid {
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
  }
  
  /* Small screens (tablets, phones) */
  @media (max-width: 768px) {
    .nav-menu {
      position: fixed;
      left: -100%;
      top: 70px;
      flex-direction: column;
      background-color: var(--white);
      width: 100%;
      text-align: center;
      transition: 0.3s;
      box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
      padding: 2rem 0;
    }
    
    .nav-menu.active {
      left: 0;
    }
    
    .nav-menu li {
      margin: 1.5rem 0;
    }
    
    .hamburger {
      display: block;
    }
    
    .hamburger.active .bar:nth-child(2) {
      opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
      transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
      transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero-title {
      font-size: 3.2rem;
    }
    
    .hero-date {
      font-size: 1.3rem;
      letter-spacing: 2px;
    }
    
    .countdown {
      gap: 1rem;
    }
    
    .countdown-number {
      font-size: 1.6rem;
    }
    
    .section-title {
      font-size: 2rem;
    }
    
    .intro-content, 
    .details-container {
      flex-direction: column;
      align-items: center;
    }
    
    .intro-text, 
    .intro-image {
      max-width: 100%;
    }
    
    .detail-card {
      max-width: 100%;
    }
    
    .gallery-grid {
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
  }
  
  /* Extra small screens (phones) */
  @media (max-width: 480px) {
    .container {
      width: 95%;
      padding: 1.5rem 0;
    }
    
    .hero-content {
      padding: 2rem 1rem 1.5rem;
    }
    
    .hero-title {
      font-size: 2.5rem;
    }
    
    .hero-date {
      font-size: 1.1rem;
      letter-spacing: 1px;
      margin-bottom: 1rem;
    }
    
    .countdown {
      flex-wrap: wrap;
      justify-content: center;
      gap: 0.8rem;
      margin: 1rem 0;
    }
    
    .countdown-item {
      min-width: 65px;
    }
    
    .countdown-number {
      font-size: 1.3rem;
    }
    
    .countdown-label {
      font-size: 0.6rem;
    }
    
    .section-title {
      font-size: 1.7rem;
      margin-bottom: 2rem;
    }
    
    .section-title::after {
      width: 60px;
    }
    
    .btn {
      padding: 10px 20px;
      font-size: 0.9rem;
    }
    
    .hero .btn {
      padding: 8px 20px;
      font-size: 0.8rem;
    }
    
    .accordion-header {
      padding: 1.2rem;
    }
    
    .accordion-title {
      font-size: 1rem;
    }
    
    .rsvp-form {
      padding: 1.5rem;
    }
    
    .gallery-item {
      height: 600px;
    }
    .gallery-item-1 {
      height: 250px;
    }
    
    .entourage-grid {
      grid-template-columns: 1fr;
    }
  }
  
  /* Very small screens */
  @media (max-width: 360px) {
    .hero-title {
      font-size: 2.2rem;
    }
    
    .hero-date {
      font-size: 1rem;
    }
    
    .countdown-item {
      min-width: 55px;
    }
    
    .countdown-number {
      font-size: 1.1rem;
    }
    
    .logo {
      font-size: 1.5rem;
    }
  } 
  /* Responsive adjustments for details section */
@media (min-width: 1400px) {
    .details-container {
      grid-template-columns: repeat(4, 1fr);
    }
  }
  
  @media (max-width: 1200px) {
    .details-container {
      grid-template-columns: repeat(3, 1fr);
    }
  }
  
  @media (max-width: 992px) {
    .details-container {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media (max-width: 576px) {
    .details-container {
      grid-template-columns: 1fr;
    }
    
    .detail-card {
      max-width: 400px;
      margin-left: auto;
      margin-right: auto;
      width: 100%;
    }
  }

  .copyright {
    margin-top: 2rem;
    font-size: 0.9rem;
    opacity: 0.8;
  }

  /* 
  ==============================================
  Welcome Popup - With Cinematic Animations
  ==============================================
  */
  .popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(0px);
  }

  .popup-overlay.show {
    opacity: 1;
    visibility: visible;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
  }

  .popup-overlay.closing {
    opacity: 0;
    visibility: visible;
    background-color: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    transition: all 0.8s ease-in;
  }

  .popup-content {
    background-color: var(--white);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3), 
                0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    text-align: center;
    transform: scale(0.3) translateY(-100px) rotateX(15deg);
    transition: all 1s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0;
    filter: blur(10px);
  }

  .popup-overlay.show .popup-content {
    transform: scale(1) translateY(0) rotateX(0deg);
    opacity: 1;
    filter: blur(0px);
  }

  .popup-overlay.closing .popup-content {
    transform: scale(0.7) translateY(-80px) rotateX(-15deg);
    opacity: 0;
    filter: blur(8px);
    transition: all 0.8s ease-in;
  }

  .popup-header {
    background: linear-gradient(135deg, var(--primary) 0%, #a37c4b 50%, #efe9d3 100%);
    color: var(--white);
    padding: 2.5rem 2rem 2rem;
    border-radius: 20px 20px 0 0;
    position: relative;
    overflow: hidden;
  }

  .popup-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s ease-in-out infinite;
  }

  @keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    50% { transform: translateX(100%) translateY(100%) rotate(45deg); }
    100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  }

  .popup-title {
    font-family: var(--font-script);
    font-size: 2rem;
    margin: 0;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(30px);
    animation: titleSlideIn 1s ease-out 0.8s forwards;
  }

  @keyframes titleSlideIn {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .popup-divider {
    width: 0;
    height: 2px;
    background-color: var(--white);
    margin: 1rem auto;
    opacity: 0.8;
    animation: dividerExpand 0.8s ease-out 1.2s forwards;
  }

  @keyframes dividerExpand {
    to {
      width: 80px;
    }
  }

  .popup-body {
    padding: 2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: bodyFadeIn 0.8s ease-out 1.4s forwards;
  }

  @keyframes bodyFadeIn {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .popup-couple {
    font-family: var(--font-primary);
    font-size: 3rem;
    color: var(--primary);
    margin: 0 0 1rem 0;
    text-shadow: 0 3px 6px rgba(90, 134, 173, 0.3);
    opacity: 0;
    transform: scale(0.5);
    animation: coupleNameZoom 1s cubic-bezier(0.34, 1.56, 0.64, 1) 1.6s forwards;
  }

  @keyframes coupleNameZoom {
    0% {
      opacity: 0;
      transform: scale(0.5) rotateY(-180deg);
    }
    50% {
      opacity: 0.8;
      transform: scale(1.1) rotateY(-90deg);
    }
    100% {
      opacity: 1;
      transform: scale(1) rotateY(0deg);
    }
  }

  .popup-text {
    font-family: var(--font-secondary);
    font-size: 1rem;
    color: var(--dark);
    margin: 0.5rem 0;
    line-height: 1.4;
    opacity: 0;
    transform: translateX(-30px);
    animation: textSlideIn 0.6s ease-out forwards;
  }

  .popup-text:nth-of-type(1) { animation-delay: 1.8s; }
  .popup-text:nth-of-type(2) { animation-delay: 2s; }
  .popup-text:nth-of-type(3) { animation-delay: 2.2s; }

  @keyframes textSlideIn {
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  .popup-details {
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: var(--beige);
    border-radius: 12px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: scale(0.9);
    animation: detailsPopIn 0.8s ease-out 2.4s forwards;
  }

  @keyframes detailsPopIn {
    to {
      opacity: 1;
      transform: scale(1);
    }
  }

  .popup-detail-item {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.8rem 0;
    font-family: var(--font-secondary);
    font-size: 0.95rem;
    color: var(--dark);
    opacity: 0;
    transform: translateY(15px);
    animation: itemFadeUp 0.5s ease-out forwards;
  }

  .popup-detail-item:nth-child(1) { animation-delay: 2.6s; }
  .popup-detail-item:nth-child(2) { animation-delay: 2.8s; }
  .popup-detail-item:nth-child(3) { animation-delay: 3s; }
  .popup-detail-item:nth-child(4) { animation-delay: 3.2s; }

  @keyframes itemFadeUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .popup-detail-item i {
    color: var(--primary);
    margin-right: 0.8rem;
    width: 18px;
    text-align: center;
    animation: iconBounce 0.6s ease-out forwards;
  }

  @keyframes iconBounce {
    0%, 20%, 50%, 80%, 100% {
      transform: translateY(0);
    }
    40% {
      transform: translateY(-5px);
    }
    60% {
      transform: translateY(-3px);
    }
  }

  .popup-reception {
    font-style: italic;
    color: var(--primary);
    margin: 1.5rem 0 1rem 0;
    font-size: 1rem;
    opacity: 0;
    transform: translateY(20px);
    animation: receptionFade 0.6s ease-out 3.4s forwards;
  }

  @keyframes receptionFade {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .popup-hashtag {
    font-family: var(--font-script);
    font-size: 1.3rem;
    color: var(--primary);
    margin: 1rem 0 2rem 0;
    letter-spacing: 1px;
    opacity: 0;
    transform: scale(0.8) rotateZ(-5deg);
    animation: hashtagSpin 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) 3.6s forwards;
  }

  @keyframes hashtagSpin {
    to {
      opacity: 1;
      transform: scale(1) rotateZ(0deg);
    }
  }

  .popup-continue-btn {
    background: linear-gradient(135deg, var(--primary), #a37c4b);
    color: var(--white);
    border: none;
    padding: 15px 30px;
    font-family: var(--font-secondary);
    font-size: 1rem;
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(90, 134, 173, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 1rem;
    width: 100%;
    max-width: 280px;
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    animation: buttonAppear 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 3.8s forwards;
  }

  @keyframes buttonAppear {
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  .popup-continue-btn:hover {
    background: linear-gradient(135deg, #efe9d3, var(--primary));
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(90, 134, 173, 0.4);
  }

  .popup-continue-btn:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 10px rgba(90, 134, 173, 0.3);
  }

  /* Cinematic particle effect */
  .popup-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
      radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.3), transparent),
      radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.2), transparent),
      radial-gradient(1px 1px at 90px 40px, rgba(255, 255, 255, 0.4), transparent),
      radial-gradient(1px 1px at 130px 80px, rgba(255, 255, 255, 0.3), transparent);
    background-repeat: repeat;
    background-size: 150px 150px;
    animation: sparkle 4s linear infinite;
    pointer-events: none;
  }

  @keyframes sparkle {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
  }

  /* Mobile responsive for popup */
  @media (max-width: 480px) {
    .popup-content {
      width: 95%;
      margin: 1rem;
    }

    .popup-header {
      padding: 2rem 1.5rem 1.5rem;
    }

    .popup-title {
      font-size: 1.6rem;
    }

    .popup-couple {
      font-size: 2.5rem;
    }

    .popup-body {
      padding: 1.5rem;
    }

    .popup-details {
      padding: 1rem;
    }

    .popup-detail-item {
      font-size: 0.9rem;
      flex-direction: column;
      text-align: center;
    }

    .popup-detail-item i {
      margin-right: 0;
      margin-bottom: 0.3rem;
    }

    .popup-close {
      top: 10px;
      right: 15px;
      font-size: 1.8rem;
    }
  }
  
  /* 
  ==============================================
  14. Animations
  ==============================================
  */
    /* Gallery Section Styles */
        .gallery {
            padding: 5rem 0;
            background-color: var(--beige);
        }

        .container {
            width: 90%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 2rem 0;
        }

        .section-title {
            font-family: 'Dancing Script', cursive;
            font-size: 2.5rem;
            color: #a37c4b;
            text-align: center;
            margin-bottom: 3rem;
            position: relative;
        }

        .section-title::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 3px;
            background-color: #a37c4b;
        }

        /* Slideshow Container */
        .gallery-slideshow {
            position: relative;
            max-width: 100%;
            margin: 0 auto;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
            background: #fff;
        }

        /* Slides Container */
        .slides-container {
            position: relative;
            width: 100%;
            height: 700px;
            max-width: 500px;
            margin: 0 auto;
            overflow: hidden;
        }

        .slide {
            position: absolute;
            width: 100%;
            height: 100%;
            opacity: 0;
            transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
            transform: translateX(100%);
        }

        .slide.active {
            opacity: 1;
            transform: translateX(0);
        }

        .slide.prev {
            transform: translateX(-100%);
        }

        .slide.next {
            transform: translateX(100%);
        }

        .slide img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 15px;
            object-position: center top;
        }

        /* Navigation Arrows */
        .nav-arrow {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(0, 0, 0, 0.7);
            color: white;
            border: none;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            z-index: 10;
            user-select: none;
        }

        .nav-arrow:hover {
            background: rgba(0, 0, 0, 0.9);
            transform: translateY(-50%) scale(1.1);
        }

        .nav-arrow.prev {
            left: 20px;
        }

        .nav-arrow.next {
            right: 20px;
        }

        /* Dots Navigation */
        .dots-container {
            text-align: center;
            padding: 20px 0;
            background: #fff;
            border-radius: 0 0 15px 15px;
        }

        .dot {
            height: 12px;
            width: 12px;
            margin: 0 5px;
            background-color: #bbb;
            border-radius: 50%;
            display: inline-block;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .dot:hover {
            background-color: #717171;
            transform: scale(1.2);
        }

        .dot.active {
            background-color: #a37c4b;
            transform: scale(1.3);
        }

        /* Image Counter */
        .image-counter {
            position: absolute;
            top: 20px;
            right: 20px;
            background: rgba(0, 0, 0, 0.7);
            color: white;
            padding: 8px 15px;
            border-radius: 20px;
            font-size: 14px;
            font-weight: 500;
            z-index: 10;
        }

        /* Touch indicators for mobile */
        .touch-indicator {
            position: absolute;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(0, 0, 0, 0.7);
            color: white;
            padding: 8px 15px;
            border-radius: 20px;
            font-size: 12px;
            display: none;
            animation: fadeInOut 3s ease-in-out infinite;
        }

        @keyframes fadeInOut {
            0%, 100% { opacity: 0.7; }
            50% { opacity: 1; }
        }

        /* Grid View Toggle */
        .view-toggle {
            text-align: center;
            margin-bottom: 2rem;
        }

        .toggle-btn {
            background: #a37c4b;
            color: white;
            border: none;
            padding: 10px 20px;
            margin: 0 10px;
            border-radius: 25px;
            cursor: pointer;
            font-weight: 500;
            transition: all 0.3s ease;
        }

        .toggle-btn:hover {
            background: var(--beige);
            transform: translateY(-2px);
            color: #333;
        }

        .toggle-btn.active {
            background: #333;
        }

        /* Grid View */
        .gallery-grid {
            display: none;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1rem;
            margin-top: 2rem;
        }

        .gallery-grid.active {
            display: grid;
        }

        .gallery-item {
            height: 320px;
            border-radius: 8px;
            overflow: hidden;
            position: relative;
            cursor: pointer;
            transition: transform 0.3s ease;
        }

        .gallery-item:hover {
            transform: scale(1.05);
        }

        .gallery-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center top;
        }

        /* Loading animation */
        .loading {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 40px;
            height: 40px;
            border: 4px solid #f3f3f3;
            border-top: 4px solid #a37c4b;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% { transform: translate(-50%, -50%) rotate(0deg); }
            100% { transform: translate(-50%, -50%) rotate(360deg); }
        }

        /* Mobile Responsive */
        @media (max-width: 768px) {
            .slides-container {
                height: 500px;
                max-width: 350px;
            }

            .nav-arrow {
                width: 40px;
                height: 40px;
                font-size: 16px;
            }

            .nav-arrow.prev {
                left: 10px;
            }

            .nav-arrow.next {
                right: 10px;
            }

            .touch-indicator {
                display: block;
            }

            .image-counter {
                top: 10px;
                right: 10px;
                font-size: 12px;
                padding: 6px 12px;
            }

            .gallery-grid {
                grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            }

            .gallery-item {
                height: 240px;
            }
        }

        @media (max-width: 480px) {
            .slides-container {
                height: 400px;
                max-width: 280px;
            }

            .section-title {
                font-size: 2rem;
            }

            .gallery-item {
                height: 200px;
            }

            .gallery-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }
  