/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: #fdf8f5;
    color: #4a3729;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

/* ========== BANNER SLIDER ========== */
.banner {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.banner-slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
}

.banner-slide.active {
    opacity: 1;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 2rem;
}

.banner-content h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4rem;
    margin: 1rem 0;
}

@media (max-width: 768px) {
    .banner-content h1 {
        font-size: 2.5rem;
    }
}

/* ========== COUNTDOWN SECTION ========== */
.countdown-section {
    padding: 5rem 2rem;
    background: #ffffff;
    text-align: center;
}

.countdown-badge {
    display: inline-block;
    background: linear-gradient(135deg, #c8a27a, #8b5e3c);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.8rem;
    letter-spacing: 3px;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.countdown-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.8rem;
    color: #4a3729;
    margin-bottom: 1rem;
    font-weight: 500;
}

.countdown-separator {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #c8a27a, transparent);
    margin: 1rem auto;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 3rem 0;
}

.countdown-item {
    background: linear-gradient(135deg, #fdf8f5, #fff);
    padding: 1.5rem;
    border-radius: 24px;
    min-width: 110px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    border: 1px solid rgba(200,162,122,0.15);
    transition: all 0.3s ease;
}

.countdown-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(200,162,122,0.15);
}

.countdown-number {
    font-size: 3rem;
    font-weight: 700;
    color: #c8a27a;
    font-family: 'Cormorant Garamond', serif;
    display: block;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.countdown-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #8b5e3c;
    font-weight: 500;
}

.countdown-note {
    margin-top: 2rem;
    font-size: 0.85rem;
    color: #a07a5c;
}

.countdown-note i {
    margin: 0 0.5rem;
    color: #c8a27a;
}

.wedding-day-message {
    background: linear-gradient(135deg, #c8a27a, #8b5e3c);
    color: white;
    padding: 3rem;
    border-radius: 30px;
    animation: gentlePulse 2s infinite;
}

@keyframes gentlePulse {
    0%, 100% { transform: scale(1); box-shadow: 0 10px 30px rgba(200,162,122,0.3); }
    50% { transform: scale(1.01); box-shadow: 0 20px 50px rgba(200,162,122,0.5); }
}

/* ========== INVITATION SECTION ========== */
.invite-section-modern {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #fef9f4 0%, #f5e6d3 100%);
}

.invite-container {
    max-width: 800px;
    margin: 0 auto;
}

.invite-card-modern {
    background: white;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    position: relative;
    animation: slideUpFade 0.6s ease-out;
}

@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.invite-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #c8a27a, #8b5e3c);
    color: white;
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    z-index: 10;
}

.invite-header-modern {
    text-align: center;
    padding: 3rem 2rem 2rem;
    position: relative;
}

.invite-border-top {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #c8a27a, #8b5e3c, #c8a27a, transparent);
}

.heartbeat-icon {
    font-size: 2.5rem;
    color: #c8a27a;
    animation: heartbeat 1.5s ease infinite;
    margin-bottom: 1rem;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.invite-header-modern h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    color: #8b5e3c;
}

.invite-divider {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.invite-divider span {
    font-size: 0.8rem;
    color: #c8a27a;
}

.guest-section {
    text-align: center;
    padding: 0 2rem;
}

.greeting {
    font-size: 1rem;
    color: #a07a5c;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.guest-name-modern {
    font-size: 2rem;
    font-weight: 600;
    color: #c8a27a;
    margin: 0.5rem 0;
    font-family: 'Cormorant Garamond', serif;
}

.name-underline {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #c8a27a, transparent);
    margin: 1rem auto;
}

.wedding-details-modern {
    background: linear-gradient(135deg, #fdf8f5, #fff);
    padding: 2rem;
    margin: 1rem 2rem;
    border-radius: 30px;
}

.invite-text {
    text-align: center;
    color: #8b5e3c;
    font-size: 0.9rem;
}

.couple-name-modern {
    text-align: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    margin: 1rem 0;
}

.ampersand-modern {
    color: #c8a27a;
    margin: 0 0.5rem;
}

/* RSVP Section */
.rsvp-section-modern {
    padding: 2rem;
    background: #fdf8f5;
    border-top: 1px solid rgba(200,162,122,0.2);
}

.rsvp-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.rsvp-header i {
    font-size: 1.8rem;
    color: #c8a27a;
    margin-bottom: 0.5rem;
}

.rsvp-header h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: #8b5e3c;
}

.rsvp-buttons-modern {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-wrap: nowrap;
}

.rsvp-btn-modern {
    padding: 0.8rem 1.8rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-size: 0.95rem;
    flex: 1;
}

.btn-yes-modern {
    background: #28a745;
    color: white;
}

.btn-yes-modern:hover {
    transform: translateY(-2px);
    background: #34ce57;
}

.btn-no-modern {
    background: #dc3545;
    color: white;
}

.btn-no-modern:hover {
    transform: translateY(-2px);
    background: #e04656;
}

.success-message-modern {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #d4edda;
    padding: 1rem 1.5rem;
    margin: 1.5rem;
    border-radius: 20px;
    border-left: 4px solid #28a745;
}

.success-icon {
    font-size: 2rem;
    color: #28a745;
}

.success-content h4 {
    color: #155724;
    margin-bottom: 0.25rem;
}

.dietary-section {
    margin: 1.5rem 0;
}

.dietary-section label {
    display: block;
    margin-bottom: 0.5rem;
    color: #8b5e3c;
    font-size: 0.9rem;
    font-weight: 500;
}

.dietary-section textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #f5e6d3;
    border-radius: 20px;
    font-family: 'Montserrat', sans-serif;
    resize: vertical;
}

.dietary-section textarea:focus {
    outline: none;
    border-color: #c8a27a;
}

.submit-btn-modern {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #c8a27a, #8b5e3c);
    color: white;
    border: none;
    border-radius: 60px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-btn-modern:hover {
    transform: translateY(-2px);
}

.rsvp-confirmed-modern {
    text-align: center;
    padding: 2rem;
}

.confirmation-icon {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 1rem;
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.dietary-note-modern {
    background: #fdf8f5;
    padding: 1rem;
    border-radius: 15px;
    margin: 1.5rem 0;
    text-align: left;
}

.home-link-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    color: #c8a27a;
    text-decoration: none;
    transition: all 0.3s ease;
}

.home-link-modern:hover {
    gap: 0.8rem;
}

/* Error & Find Invite Sections */
.error-section-modern, .find-invite-section-modern {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #fef9f4, #f5e6d3);
}

.error-card-modern, .find-invite-card {
    background: white;
    padding: 3rem;
    border-radius: 40px;
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15);
}

.error-icon {
    font-size: 4rem;
    color: #dc3545;
    margin-bottom: 1rem;
}

.error-code {
    background: #fdf8f5;
    padding: 1rem;
    border-radius: 15px;
    margin: 1.5rem 0;
}

.find-invite-decoration {
    text-align: center;
    margin-bottom: 2rem;
}

.find-invite-decoration i {
    font-size: 1.5rem;
    color: #c8a27a;
    margin: 0 0.5rem;
}

.card-header {
    background: linear-gradient(135deg, #c8a27a, #8b5e3c);
    color: white;
    text-align: center;
    padding: 2rem;
    border-radius: 40px 40px 0 0;
}

.card-header i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.card-header h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
}

.card-body {
    padding: 2rem;
}

.invite-code-input-group {
    display: flex;
    gap: 1rem;
    position: relative;
    flex-wrap: wrap;
}

.invite-code-input-group i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #c8a27a;
}

.invite-code-input-group input {
    flex: 1;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #f5e6d3;
    border-radius: 60px;
    font-size: 1rem;
}

.invite-code-input-group input:focus {
    outline: none;
    border-color: #c8a27a;
}

.invite-code-input-group button {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #c8a27a, #8b5e3c);
    color: white;
    border: none;
    border-radius: 60px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-footer {
    background: #fdf8f5;
    padding: 1rem;
    text-align: center;
    border-top: 1px solid rgba(200,162,122,0.1);
    font-size: 0.8rem;
    color: #a07a5c;
}

/* ========== LOVE STORY SECTION ========== */
.love-story-modern {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #fef9f4 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.love-story-modern::before {
    content: '❤️';
    position: absolute;
    font-size: 15rem;
    opacity: 0.03;
    bottom: -5rem;
    right: -5rem;
    pointer-events: none;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-subtitle {
    display: inline-block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #c8a27a;
    background: rgba(200,162,122,0.1);
    padding: 0.3rem 1rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.section-title-modern {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.8rem;
    color: #4a3729;
    margin-bottom: 1rem;
    font-weight: 500;
}

.section-divider {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.section-divider span, .section-divider i {
    font-size: 0.8rem;
    color: #c8a27a;
}

.section-divider i {
    animation: heartbeat 1.5s ease infinite;
}

.story-timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent, #c8a27a, #8b5e3c, #c8a27a, transparent);
    opacity: 0.3;
}

.story-grid-modern {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.story-card-modern {
    position: relative;
    width: 100%;
}

.card-timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: white;
    border: 3px solid #c8a27a;
    border-radius: 50%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.dot-inner {
    width: 8px;
    height: 8px;
    background: #c8a27a;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.story-card-modern:hover .card-timeline-dot {
    transform: translateX(-50%) scale(1.2);
    background: #c8a27a;
}

.story-card-modern:hover .dot-inner {
    background: white;
}

.story-card-modern:nth-child(odd) .card-content-wrapper {
    margin-right: auto;
    margin-left: 0;
    text-align: right;
}

.story-card-modern:nth-child(even) .card-content-wrapper {
    margin-left: auto;
    margin-right: 0;
    text-align: left;
}

.card-content-wrapper {
    width: calc(50% - 40px);
    background: white;
    border-radius: 24px;
    padding: 2rem;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(200,162,122,0.1);
}

.story-card-modern:nth-child(odd) .card-content-wrapper::before {
    content: '';
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 2px;
    background: #c8a27a;
}

.story-card-modern:nth-child(even) .card-content-wrapper::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 2px;
    background: #c8a27a;
}

.card-content-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(200,162,122,0.15);
}

.card-year {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #c8a27a;
    font-weight: 600;
    margin-bottom: 1rem;
    padding: 0.3rem 1rem;
    background: rgba(200,162,122,0.1);
    border-radius: 50px;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #fdf8f5, #f5e6d3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.story-card-modern:nth-child(odd) .card-icon {
    margin-left: auto;
}

.story-card-modern:nth-child(even) .card-icon {
    margin-right: auto;
}

.card-content-wrapper:hover .card-icon {
    background: linear-gradient(135deg, #c8a27a, #8b5e3c);
    transform: scale(1.1);
}

.card-icon i {
    font-size: 1.8rem;
    color: #c8a27a;
    transition: all 0.3s ease;
}

.card-content-wrapper:hover .card-icon i {
    color: white;
}

.card-content-wrapper h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: #8b5e3c;
    margin-bottom: 0.8rem;
}

.card-content-wrapper p {
    color: #7a634f;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.card-footer-icon {
    font-size: 1rem;
    color: #c8a27a;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.story-card-modern:nth-child(odd) .card-footer-icon {
    text-align: right;
}

.story-card-modern:nth-child(even) .card-footer-icon {
    text-align: left;
}

.card-content-wrapper:hover .card-footer-icon {
    opacity: 1;
    color: #8b5e3c;
}

/* ========== EVENT DETAILS SECTION ========== */
.event-details-modern {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #fef9f4 100%);
}

.details-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.detail-card-modern {
    background: white;
    border-radius: 28px;
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(200,162,122,0.1);
}

.detail-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(200,162,122,0.15);
}

.card-icon-bg {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #fdf8f5, #f5e6d3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.detail-card-modern:hover .card-icon-bg {
    transform: scale(1.1);
    background: linear-gradient(135deg, #c8a27a, #8b5e3c);
}

.card-icon-bg i {
    font-size: 2rem;
    color: #c8a27a;
    transition: all 0.3s ease;
}

.detail-card-modern:hover .card-icon-bg i {
    color: white;
}

.detail-card-modern h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: #8b5e3c;
    margin-bottom: 1rem;
    display: inline-block;
}

.detail-card-modern h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #c8a27a, transparent);
    margin: 0.5rem auto 0;
}

.card-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #c8a27a, #8b5e3c, #c8a27a, transparent);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.detail-card-modern:hover .card-decoration {
    transform: scaleX(1);
}

.main-date, .venue-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #4a3729;
    margin-bottom: 0.5rem;
}

.time-info, .venue-location {
    font-size: 0.9rem;
    color: #7a634f;
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.time-info i, .venue-location i {
    color: #c8a27a;
}

.color-swatch {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.color-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.color-name {
    font-weight: 600;
    color: #4a3729;
}

.color-hex {
    font-size: 0.8rem;
    color: #c8a27a;
    font-family: monospace;
    background: #fdf8f5;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.dress-note {
    font-size: 0.85rem;
    color: #7a634f;
    margin-top: 1rem;
    padding: 0.8rem;
    background: #fdf8f5;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.dress-note i {
    color: #c8a27a;
}

/* ========== GALLERY SECTION ========== */
.gallery-modern {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #fef9f4 100%);
}

.section-description {
    text-align: center;
    color: #a07a5c;
    font-size: 0.95rem;
    margin-top: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    max-width: 1400px;
    margin: 3rem auto 0;
}

.gallery-item-modern {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
}

.gallery-item-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(200,162,122,0.2);
}

.gallery-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.gallery-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
}

.gallery-item-modern:hover .gallery-image-wrapper img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(200,162,122,0.9), rgba(139,94,60,0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
}

.gallery-item-modern:hover .gallery-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: white;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.gallery-item-modern:hover .overlay-content {
    transform: translateY(0);
}

.overlay-content i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.overlay-content span {
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
}

/* ========== LIGHTBOX MODAL ========== */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    margin: 2rem auto;
    height: calc(100vh - 4rem);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.lightbox-close:hover {
    color: #c8a27a;
    transform: rotate(90deg);
}

.lightbox-caption {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    font-size: 0.9rem;
    padding: 0.5rem;
}

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    padding: 1rem;
    cursor: pointer;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.lightbox-prev:hover, .lightbox-next:hover {
    background: #c8a27a;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev { left: -70px; }
.lightbox-next { right: -70px; }

/* ========== FOOTER ========== */
.footer {
    background: #4a3729;
    color: white;
    text-align: center;
    padding: 2rem;
}

/* ========== ENVELOPE OVERLAY - FULL SCREEN COVERAGE ========== */
.envelope-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #fef9f4 0%, #f5e6d3 100%);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.6s ease-in-out;
    overflow: hidden;
}

.envelope-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.envelope-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.envelope-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: all 0.4s ease;
    animation: gentlePulse 2s ease-in-out infinite;
}

@keyframes gentlePulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.1));
    }
    50% {
        transform: scale(1.02);
        filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.15));
    }
}

.envelope-image:hover {
    transform: scale(1.03);
    filter: drop-shadow(0 25px 60px rgba(0, 0, 0, 0.2));
}

/* Envelope Opening Animation */
.envelope-image.opening {
    animation: envelopeOpen 0.6s ease forwards;
}

@keyframes envelopeOpen {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    30% {
        transform: scale(1.1) rotate(3deg);
        opacity: 0.9;
    }
    100% {
        transform: scale(0) rotate(360deg);
        opacity: 0;
    }
}

/* Main Content Wrapper */
.main-content-wrapper {
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.main-content-wrapper.visible {
    opacity: 1;
}

/* ========== SIMPLE AUDIO PLAYER ========== */
.simple-player {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.music-btn {
    background: white;
    border: 2px solid #c8a27a;
    border-radius: 50px;
    padding: 10px 20px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: #8b5e3c;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 1001;
    position: relative;
}

.music-btn:hover {
    background: #c8a27a;
    color: white;
    transform: scale(1.05);
}

.music-btn i {
    font-size: 1rem;
    pointer-events: none;
}

.music-text {
    font-size: 0.85rem;
    pointer-events: none;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .banner-content h1 { font-size: 2.5rem; }
    .countdown-title, .section-title-modern { font-size: 2rem; }
    .countdown-item { padding: 1rem; min-width: 75px; }
    .countdown-number { font-size: 2rem; }
    .guest-name-modern { font-size: 1.5rem; }
    .couple-name-modern { font-size: 1.8rem; }
    .rsvp-buttons-modern { gap: 0.8rem; flex-wrap: nowrap; }
    .rsvp-btn-modern { padding: 0.6rem 1rem; font-size: 0.8rem; }
    .timeline-line { left: 30px; }
    .card-timeline-dot { left: 30px; transform: translateX(0); }
    .card-content-wrapper { width: calc(100% - 70px); margin-left: 70px !important; text-align: left !important; }
    .story-card-modern:nth-child(odd) .card-content-wrapper::before,
    .story-card-modern:nth-child(even) .card-content-wrapper::before { left: -15px; right: auto; }
    .card-icon { margin-left: 0 !important; margin-right: 0 !important; }
    .card-footer-icon { text-align: left !important; }
    .details-grid-modern { grid-template-columns: 1fr; gap: 1.5rem; }
    .gallery-grid-modern { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
    .lightbox-prev { left: -40px; width: 40px; height: 40px; font-size: 1rem; }
    .lightbox-next { right: -40px; width: 40px; height: 40px; font-size: 1rem; }
    section, .invite-section-modern, .love-story-modern, .event-details-modern, .gallery-modern { padding: 3rem 1rem; }
    .invite-code-input-group { flex-direction: column; }
    .invite-code-input-group i { top: 1rem; transform: none; }
    .invite-code-input-group input { padding-left: 3rem; }
    .simple-player { right: 10px; left: auto; }
    .music-text { display: none; }
    .music-btn { padding: 10px 12px; }
}

@media (max-width: 480px) {
    .rsvp-btn-modern span { font-size: 0.7rem; }
    .rsvp-btn-modern i { font-size: 0.8rem; }
    .lightbox-prev, .lightbox-next { top: auto; bottom: 20px; transform: translateY(0); }
    .lightbox-prev { left: 20px; }
    .lightbox-next { right: 20px; }
    .lightbox-close { top: 10px; right: 10px; font-size: 2rem; }
    .music-btn { padding: 8px 10px; }
}