/* 
==============================================
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: #ca4f23;
    --secondary: #8b9e76;
    --light: #f5f5f5;
    --dark: #333333;
    --white: #ffffff;
    --beige: #f0e6d9;
    --font-primary: 'Playfair Display', serif;
    --font-secondary: 'Montserrat', sans-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: 1.8rem;
  }
  
  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: #aa3e18;
    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-script);
    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/hero.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
  ==============================================
  */
  .intro {
    padding: 5rem 0;
    text-align: center;
    background-color: var(--white);
  }
  
  .intro-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
  }
  
  .intro-text {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    padding: 0 1rem;
  }
  
  .intro-text p {
    text-align: left;
  }
  
  .intro-image {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
  }
  
  .intro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
  }
  
  .intro-image:hover img {
    transform: scale(1.05);
  }
  
  /* 
  ==============================================
  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: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--primary);
  }
  
  /* Updated entourage section with smaller names */
.entourage-name {
    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-color: var(--white);
    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
  ==============================================
  */
  .faq {
    padding: 5rem 0;
    background-color: var(--beige);
  }
  
  .faq-container {
    margin-top: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .accordion {
    margin-bottom: 1rem;
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
  }
  
  .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(202, 79, 35, 0.05);
  }
  
  .accordion-title {
    font-size: 1.1rem;
    font-weight: 500;
    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;
  }
  
  .accordion.active .accordion-content {
    max-height: 400px;
    padding: 0 1.5rem 1.5rem;
  }
  
  .accordion-content p {
    text-align: left;
  }
  
  /* 
  ==============================================
  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(--white);
  }
  
  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 3rem;
  }
  
  .gallery-item {
    height: 400px;
    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: 300px;
    }
    
    .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%;
    }
  }