/* 
==============================================
REFINED WEDDING INVITATION CSS
==============================================
*/

/* Variables */
:root {
    --primary: #57360f;
    --white: #ffffff;
    --beige: #f9f0ea;
    --filipiniana: #f5e0b8;
    --dark: #57360f;
    --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;
}

/* 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;
}

/* 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;
}

/* 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: #a37c4b;
    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);
}

/* 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);
}

/* 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/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 */
.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);
}

/* Introduction Section */
.intro {
    padding: 5rem 0;
    background-image: url('assets/img/OLD_PAPER_TEXTURE.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-family: var(--font-entourage);
    color: #55310e;
    position: relative;
    overflow: hidden;
}

.intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(87, 54, 15, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(87, 54, 15, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(87, 54, 15, 0.02) 0%, transparent 50%);
    z-index: 1;
}

.intro .container {
    position: relative;
    z-index: 2;
    max-width: 1400px;
}

/* Hero Section */
.intro-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
    min-height: 70vh;
}

.intro-hero-content {
    padding: 2rem 0;
}

.intro-hero-title {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: var(--primary);
    line-height: 1.2;
    text-align: left;
}

.intro-hero-subtitle {
    font-size: 1.5rem;
    font-style: italic;
    color: #8b4513;
    line-height: 1.6;
    text-align: left;
    margin: 0;
}

.intro-hero-image {
    position: relative;
    height: 600px;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #f5f0e8, #ffffff);
}

.intro-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.intro-hero-image:hover img {
    transform: scale(1.05);
}

/* Story Blocks */
.story-blocks {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.story-block {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.story-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.story-block:hover::before {
    left: 100%;
}

.story-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.story-block-reverse .story-content {
    grid-template-columns: 1fr 1fr;
    direction: rtl;
}

.story-block-reverse .story-text,
.story-block-reverse .story-images {
    direction: ltr;
}

/* Story Text */
.story-text {
    position: relative;
}

.story-title {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    position: relative;
    font-family: var(--font-script);
    text-align: left;
}

.story-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), transparent);
}

.story-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #55310e;
}

.story-description p {
    margin-bottom: 1rem;
    text-align: left;
    transition: color 0.3s ease;
}

.story-block:hover .story-description p {
    color: #3d230a;
}

/* Story Images */
.story-images {
    position: relative;
}

.image-grid {
    position: relative;
    height: 400px;
    width: 100%;
}


.image-single {
    position: relative;
    height: 400px;
    width: 100%;
}

.story-img {
    position: absolute;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 4px solid white;
}

.story-img:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

/* Primary image - larger, positioned at the back */
.story-img.primary {
    width: 70%;
    height: 85%;
    top: 0;
    left: 0;
    z-index: 2;
}

/* Secondary image - smaller, overlapping the primary */
.story-img.secondary {
    width: 45%;
    height: 60%;
    top: 25%;
    right: 0;
    z-index: 3;
}

/* Featured image for single image layouts */
.story-img.featured {
    width: 80%;
    height: 90%;
    top: 5%;
    left: 10%;
    z-index: 2;
}

/* Highlight and Finale Sections */
.story-highlight,
.story-finale {
    background: linear-gradient(135deg, var(--primary) 0%, #8b4513 100%);
    color: white;
    padding: 4rem 3rem;
    border-radius: 20px;
    text-align: center;
    margin: 2rem 0;
    box-shadow: 0 15px 35px rgba(87, 54, 15, 0.3);
    position: relative;
    overflow: hidden;
}

.story-highlight::before,
.story-finale::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    50% { transform: translateX(0) translateY(0) rotate(45deg); }
}

.highlight-content,
.finale-content {
    position: relative;
    z-index: 2;
}

.highlight-title,
.finale-title {
    font-size: 3rem;
    margin-bottom: 2rem;
    font-family: var(--font-script);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.highlight-text,
.finale-text {
    font-size: 1.3rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

.highlight-text p,
.finale-text p {
    margin-bottom: 1rem;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .intro-hero {
        gap: 3rem;
    }
    
    .intro-hero-title {
        font-size: 3.5rem;
    }
    
    .story-content {
        gap: 2rem;
    }
    
    .story-block {
        padding: 2rem;
    }
}

@media (max-width: 992px) {
    .intro-hero {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .intro-hero-title,
    .intro-hero-subtitle {
        text-align: center;
    }
    
    .intro-hero-title {
        font-size: 3rem;
    }
    
    .intro-hero-image {
        height: 500px;
        order: -1;
    }
    
    .story-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .story-block-reverse .story-content {
        grid-template-columns: 1fr;
        direction: ltr;
    }
    
    .story-title {
        text-align: center;
    }
    
    .story-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .image-grid {
        height: 300px;
        grid-template-columns: 1fr 1fr;
    }
    
    .image-single {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .intro {
        padding: 3rem 0;
    }
    
    .intro-hero {
        margin-bottom: 4rem;
    }
    
    .intro-hero-title {
        font-size: 2.5rem;
    }
    
    .intro-hero-subtitle {
        font-size: 1.3rem;
    }
    
    .intro-hero-image {
        height: 400px;
    }
    
    .story-blocks {
        gap: 3rem;
    }
    
    .story-block {
        padding: 2rem 1.5rem;
    }
    
    .story-title {
        font-size: 2rem;
    }
    
    .story-description {
        font-size: 1rem;
    }
    
    .image-grid {
        height: 250px;
    }
    
    .image-single {
        height: 250px;
    }
    
    .highlight-title,
    .finale-title {
        font-size: 2.5rem;
    }
    
    .highlight-text,
    .finale-text {
        font-size: 1.1rem;
    }
    
    .story-highlight,
    .story-finale {
        padding: 3rem 2rem;
    }
}

@media (max-width: 480px) {
    .intro-hero-title {
        font-size: 2rem;
    }
    
    .intro-hero-subtitle {
        font-size: 1.1rem;
    }
    
    .intro-hero-image {
        height: 300px;
    }
    
    .story-block {
        padding: 1.5rem 1rem;
    }
    
    .story-title {
        font-size: 1.8rem;
    }
    
    .story-description {
        font-size: 0.95rem;
    }

    
    .story-img {
        height: 200px;
    }
    
    .image-single {
        height: 250px;
    }
    
    .highlight-title,
    .finale-title {
        font-size: 2rem;
    }
    
    .highlight-text,
    .finale-text {
        font-size: 1rem;
    }
    
    .story-highlight,
    .story-finale {
        padding: 2rem 1.5rem;
    }
}

/* Details Section */
.details {
    padding: 5rem 0;
    background-image: url('assets/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-color: var(--filipiniana);
    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;
}

/* Entourage Section */
.entourage {
    padding: 5rem 0;
    background-image: url('assets/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-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;
}

.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.jpg');
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: 1.8rem 1.2rem;
}

.entourage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

/* FAQ Section */
.faq {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.faq::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/img/bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    opacity: 0.4;
    z-index: 1;
}

.faq .container {
    position: relative;
    z-index: 2;
}

.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: rgba(239, 233, 211, 0.7);
}

.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: 400px;
    padding: 0 1.5rem 1.5rem;
}

.accordion-content p {
    text-align: left;
    color: var(--dark);
    line-height: 1.7;
}

/* RSVP Section */
.rsvp {
    padding: 5rem 0;
    background-image: url('assets/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(--filipiniana);
    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%;
}

/* Gallery Section */
.gallery {
    padding: 5rem 0;
    background-image: url('assets/img/OLD_PAPER_TEXTURE.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.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 {
    position: relative;
    width: 100%;
    height: 700px;
    max-width: 500px;
    margin: 0 auto;
    overflow: hidden;
}

.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); }
}

.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;
}

.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-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 {
    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;
}

/* 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;
}

/* 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;
}

.logo-name{
  width: 150px;
}
.popup-content {
    background-image: url('assets/img/OLD_PAPER_TEXTURE.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%, #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: 2rem;
    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-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);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(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);
}

/* Media Queries */
@media (min-width: 1200px) {
    .container {
        width: 85%;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-date {
        font-size: 1.8rem;
    }
}

@media (max-width: 992px) {
    .section-title {
        font-size: 2.2rem;
    }
    
    .entourage-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

@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%;
    }
    
    .intro::before,
    .faq::before {
        background-attachment: scroll;
    }
    
    .intro .story-block {
        flex-direction: column !important;
        padding: 30px 20px;
    }
    
    .intro .story-text h2 {
        font-size: 1.8em;
    }
    
    .intro .photo-placeholder {
        width: 150px;
        height: 200px;
    }
    
    .intro .photo-placeholder.large {
        width: 200px;
        height: 150px;
    }
    
    .accordion-header {
        padding: 1.2rem;
    }
    
    .accordion-title {
        font-size: 1.2rem;
    }
    
    .faq {
        margin: 0 1rem 1rem 1rem;
    }
    
    .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;
    }
    
    .image-counter {
        top: 10px;
        right: 10px;
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .entourage-name {
        font-size: 1rem;
    }
    
    .entourage-role {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .container {
        width: 95%;
        padding: 1.5rem 0;
    }
    
    .hero-content {
        padding: 2rem 1rem 1.5rem;
    }
        .hero::before {
    background-image: url('assets/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;
    }
    
    .intro {
        padding: 3rem 0;
    }
    
    .intro .hero-title {
        font-size: 2em;
    }
    
    .intro .hero-subtitle {
        font-size: 1.3em;
    }
    
    .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;
    }
    
    .rsvp-form {
        padding: 1.5rem;
    }
    
    .slides-container {
        height: 400px;
        max-width: 280px;
    }
    
    .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-couple {
        font-size: 1.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;
    }
}

@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;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .slides-container {
        height: 350px;
        max-width: 260px;
    }
}

/* New Gallery */
        /* Gallery Section */

        /* Gallery Grid */
        .gallery-grid {
            display: grid;
            gap: 2rem;
            max-width: 1000px;
            margin: 0 auto;
            padding: 2rem 0;
        }

        /* Photo Frame Base */
        .photo-frame {
            position: relative;
            background: #ffffff;
            border-radius: 8px;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
            transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            cursor: pointer;
            padding: 12px;
            overflow: hidden;
        }

        .photo-frame:hover {
            transform: scale(1.03) translateY(-5px);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
        }

        .photo-frame img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 4px;
            transition: all 0.3s ease;
        }

        /* Portrait images */
        .photo-frame.portrait {
            height: 400px;
        }

        /* Landscape images */
        .photo-frame.landscape {
            height: 250px;
        }

        /* Desktop Layout */
        @media (min-width: 769px) {
            .gallery-grid {
                grid-template-columns: repeat(3, 1fr);
            }
            
            /* First row - 2 portraits */
            .photo-frame:nth-child(1),
            .photo-frame:nth-child(2) {
                grid-column: span 1;
            }
            
            /* First landscape spans 1 column */
            .photo-frame:nth-child(3) {
                grid-column: span 1;
            }
            
            /* Second row - 2 portraits */
            .photo-frame:nth-child(4),
            .photo-frame:nth-child(5) {
                grid-column: span 1;
            }
            
            /* Second landscape spans 1 column */
            .photo-frame:nth-child(6) {
                grid-column: span 1;
            }
            
            /* Third row - 2 portraits */
            .photo-frame:nth-child(7),
            .photo-frame:nth-child(8) {
                grid-column: span 1;
            }
            
            /* Third landscape spans 1 column */
            .photo-frame:nth-child(9) {
                grid-column: span 1;
            }
            
            /* Fourth row - 1 portrait, 1 landscape */
            .photo-frame:nth-child(10),
            .photo-frame:nth-child(11) {
                grid-column: span 1;
            }
            
            /* Fifth landscape spans remaining column */
            .photo-frame:nth-child(12) {
                grid-column: span 1;
            }
        }

        /* Tablet Layout */
        @media (max-width: 768px) and (min-width: 481px) {
            .gallery {
                padding: 3rem 0;
            }

            .gallery .container {
                padding: 0 1rem;
            }

            .section-title {
                font-size: 2.8rem;
                margin-bottom: 3rem;
            }

            .gallery-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 1.5rem;
                padding: 1rem;
            }

            /* Portrait images */
            .photo-frame.portrait {
                height: 280px;
            }

            /* Landscape images span full width */
            .photo-frame.landscape {
                grid-column: 1 / -1;
                height: 250px;
            }
        }

        /* Mobile Layout */
        @media (max-width: 480px) {
            .gallery {
                padding: 3rem 0;
            }

            .gallery .container {
                padding: 0 1rem;
            }

            .section-title {
                font-size: 2.2rem;
                margin-bottom: 3rem;
            }

            .gallery-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 1rem;
                padding: 0.5rem;
            }

            /* Portrait images */
            .photo-frame.portrait {
                height: 200px;
            }

            /* Landscape images span full width */
            .photo-frame.landscape {
                grid-column: 1 / -1;
                height: 200px;
            }
        }