/* 
==============================================
WEDDING INVITATION CSS - CLEANED & ORGANIZED
==============================================
*/

/* ============================================
   1. CSS VARIABLES
   ============================================ */
:root {
    --primary: #6b92b5;
    --white: #ffffff;
    --beige: #ddefff;
    --dark: #6b92b5;
    --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. RESET & 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; }

p {
    margin-bottom: 1rem;
    text-align: center;
}

/* ============================================
   4. LAYOUT 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;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 1rem;
}

.btn:hover {
    background-color: #9ed2ff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.section-title {
    position: relative;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary);
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary);
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   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);
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 2rem;
}

.nav-menu a {
    color: var(--dark);
    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('../img/bg-1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    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: 0.8;
    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 0.3rem;
    color: var(--white);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin: 0.1rem auto;
    max-width: 500px;
}

.countdown-item {
    text-align: center;
}

.countdown-number {
    font-family: var(--font-secondary);
    font-size: 1.8rem;
    font-weight: 600;
    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 {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 10px 28px;
    margin-top: 1rem;
}

.hero .btn:hover {
    background-color: var(--white);
    color: var(--dark);
}

/* ============================================
   7. DETAILS SECTION
   ============================================ */
.details {
    padding: 1rem 0;
    background-image: url('../img/OLD_PAPER_TEXTURE.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.details-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.detail-card {
    flex: 1;
    min-width: 300px;
    max-width: 350px;
    background-image: url('../img/OLD_PAPER_TEXTURE-3.jpg');
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    background-attachment: fixed;
    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;
}

/* ============================================
   8. ENTOURAGE SECTION
   ============================================ */
.entourage {
    padding: 5rem 0;
    background-image: url('../img/OLD_PAPER_TEXTURE.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.entourage-container {
    margin-top: 3rem;
}

.entourage-category {
    margin: 4rem 0 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%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%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;
}

.entourage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.entourage-card {
    text-align: center;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    background-image: url('../img/OLD_PAPER_TEXTURE-3.jpg');
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: 1.8rem 1.2rem;
}

.entourage-name {
    font-family: var(--font-entourage);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.entourage-role {
    color: var(--primary);
    font-family: var(--font-script);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* ============================================
   9. FAQ SECTION
   ============================================ */
.faq {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.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);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    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: #ddefff;
}

.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);
}

.accordion.active .accordion-content {
    max-height: 600px;
    padding: 0 1.5rem 1.5rem;
}

.accordion-content p {
    text-align: left;
    color: var(--dark);
    line-height: 1.7;
}

/* ============================================
   10. RSVP SECTION
   ============================================ */
.rsvp {
    padding: 5rem 0;
    background-image: url('../img/OLD_PAPER_TEXTURE.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.rsvp-form {
    max-width: 600px;
    margin: 3rem auto 0;
    padding: 2.5rem;
    background-color: var(--white);
    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%;
}

/* ============================================
   11. GALLERY SECTION
   ============================================ */
.gallery {
    padding: 5rem 0;
    background-image: url('../img/OLD_PAPER_TEXTURE.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* ============================================
   12. 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;
}

/* ============================================
   13. WELCOME POPUP
   ============================================ */
.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-image: url('../img/OLD_PAPER_TEXTURE-1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    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%, #6b92b5 50%, #ddefff 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-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;
}

.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-continue-btn {
    background: linear-gradient(135deg, var(--primary), #6b92b5);
    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, #ddefff, 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);
}

/* ============================================
   14. RESPONSIVE DESIGN
   ============================================ */

/* Tablet & Below */
@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;
    }
    
    .detail-card {
        max-width: 100%;
    }
    
    .accordion-header {
        padding: 1.2rem;
    }
    
    .accordion-title {
        font-size: 1.2rem;
    }
    
    .entourage-name {
        font-size: 1rem;
    }
    
    .entourage-role {
        font-size: 1.5rem;
    }
    
    .entourage-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

/* Mobile */
@media (max-width: 480px) {
    .container {
        width: 95%;
        padding: 1.5rem 0;
    }
    
    .hero-content {
        padding: 2rem 1rem 1.5rem;
    }
    
    .hero::before {
        background-image: url('../img/bg-2.jpg');
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .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;
    }
    
    .faq {
        padding: 3rem 0;
    }
    
    .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;
    }
    
    .rsvp-form {
        padding: 1.5rem;
    }
    
    .entourage-grid {
        grid-template-columns: 1fr;
    }
    
    .details-container {
        grid-template-columns: 1fr;
    }
    
    .detail-card {
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
    }
    
    .popup-content {
        width: 95%;
        margin: 1rem;
    }
    
    .popup-header {
        padding: 2rem 1.5rem 1.5rem;
    }
    
    .popup-title {
        font-size: 1.6rem;
    }
    
    .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;
    }
    
    .logo {
        font-size: 1.5rem;
    }
}

/* Extra Small Mobile */
@media (max-width: 360px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-date {
        font-size: 1rem;
    }
    
    .countdown-item {
        min-width: 55px;
    }
    
    .countdown-number {
        font-size: 1.1rem;
    }
}
/* ============================================
   OUR STORY SECTION
   ============================================ */
.our-story {
    padding: 1rem 0;
    background-image: url('../img/OLD_PAPER_TEXTURE.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.story-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.story-subtitle {
    font-family: var(--font-script);
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 2rem;
    font-weight: 600;
}

.story-content p {
    font-family: var(--font-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--dark);
    margin-bottom: 1.5rem;
    text-align: center;
}

.story-content p em {
    font-style: italic;
    color: var(--primary);
}

.story-content p strong {
    font-weight: 600;
    color: var(--primary);
}

.story-closing {
    font-style: italic;
    font-size: 1.1rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    color: var(--primary);
}

.story-signature {
    font-family: var(--font-script);
    font-size: 1.8rem;
    color: var(--primary);
    margin-top: 2.5rem;
    margin-bottom: 0;
    line-height: 1.4;
}

/* Tablet & Mobile Responsive */
@media (max-width: 768px) {
    .story-content {
        padding: 2rem;
    }
    
    .story-subtitle {
        font-size: 1.5rem;
    }
    
    .story-content p {
        font-size: 1rem;
    }
    
    .story-signature {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .our-story {
        padding: 3rem 0;
    }
    
    .story-content {
        padding: 1.5rem;
    }
    
    .story-subtitle {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }
    
    .story-content p {
        font-size: 0.95rem;
        line-height: 1.7;
        margin-bottom: 1.2rem;
    }
    
    .story-closing {
        font-size: 1rem;
    }
    
    .story-signature {
        font-size: 1.3rem;
        margin-top: 2rem;
    }
}

.autocomplete-list {
    position: absolute;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    max-height: 200px;
    overflow-y: auto;
    width: calc(100% - 24px);
    z-index: 1000;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: none;
}

.autocomplete-list.active {
    display: block;
}

.autocomplete-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.autocomplete-item:hover,
.autocomplete-item.selected {
    background-color: #ddefff;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item strong {
    color: var(--primary);
}

.form-group {
    position: relative;
}

.error-message {
    display: block;
    font-size: 0.875rem;
    margin-top: 5px;
}