/* Font Face Declarations */
@font-face {
    font-family: 'P22 Underground';
    src: url('fonts/P22 Underground Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Colour Palette and Typography */
:root {
    --warm-coral: #c85a5c;
    --deep-rose: #9a4a49;
    --off-white: #F5F2F1;
    --dark-text: #5d4037;
    --medium-coral: #d47670;
    --light-coral: #e8a8a4;
    --border-color: #f5d6d3;
    --mint-turquoise: var(--warm-coral);
    --medium-mint: var(--medium-coral);
    --light-mint: var(--light-coral);
    --pale-yellow: #f5e6d0;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'P22 Underground', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: var(--off-white);
    color: var(--dark-text);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Border Graphics - Scrolling with content */
.border-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    pointer-events: auto;
    z-index: 1;
}

.border-top,
.border-bottom,
.border-left,
.border-right {
    position: absolute;
    z-index: 1;
}

.border-top {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw; /* Use viewport width for consistency */
    height: auto;
    max-height: 180px; /* Consistent height */
    object-fit: contain;
    z-index: 1002; /* Above navbar */
}

.border-bottom {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw; /* Use viewport width for consistency */
    height: auto;
    max-height: 180px; /* Consistent height */
    object-fit: contain;
}

.border-left {
    position: absolute;
    top: 0;
    left: 0;
    width: 59px; /* Increased by 50% from 39px */
    height: 100%;
    background-image: url('Graphics/LeftBar.svg');
    background-repeat: repeat-y;
    background-size: contain;
    background-position: left center;
}

.border-right {
    position: absolute;
    top: 0;
    right: 0;
    width: 59px; /* Increased by 50% from 39px */
    height: 100%;
    background-image: url('Graphics/RightBar.svg');
    background-repeat: repeat-y;
    background-size: contain;
    background-position: right center;
}

/* Main content wrapper to scroll with borders */
.main-wrapper {
    position: relative;
    z-index: 2;
    max-width: calc(100% - 118px); /* Account for both side borders (59px each) */
    margin: 0 auto;
    padding: 100px 10px; /* Space for top/bottom borders */
}

h1, h2, h3, h4 {
    font-family: 'P22 Folk Art Cross', cursive;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--mint-turquoise);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 8px;
    left: 50%;
    transform: translateX(-51%);
    z-index: 1002;
    padding: 0;
    background: none;
    backdrop-filter: none;
    border: none;
    pointer-events: auto;
}

.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 0;
    pointer-events: auto;
}

.nav-link {
    text-decoration: none;
    color: white;
    font-family: 'P22 Folk Art Cross', cursive;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    padding: 4px 10px;
    border: 2px solid var(--warm-coral);
    background: var(--warm-coral);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    pointer-events: auto;
    cursor: pointer;
    display: block;
    position: relative;
    z-index: 1003;
}

.nav-link:hover,
.nav-link.active {
    color: white;
    background: var(--medium-coral);
    border-color: var(--medium-coral);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

/* Password Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

/* Image Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 3000;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 3001;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--warm-coral);
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.lightbox-prev,
.lightbox-next {
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 30px;
    font-weight: bold;
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    pointer-events: all;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.lightbox-prev:active,
.lightbox-next:active {
    background-color: rgba(255, 255, 255, 0.6);
}

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

.modal-content {
    background: var(--off-white);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--border-color);
}

.modal-content h2 {
    color: var(--mint-turquoise);
    margin-bottom: 20px;
    font-size: 28px;
}

.modal-content p {
    margin-bottom: 25px;
    color: var(--dark-text);
}

.modal-content input {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 16px;
}

.modal-content input:focus {
    outline: none;
    border-color: var(--mint-turquoise);
}

.modal-content button {
    background-color: var(--mint-turquoise);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-family: 'P22 Folk Art Cross', cursive;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.modal-content button:hover {
    background-color: var(--medium-mint);
}

/* Hero Section */
.hero-section {
    min-height: 40vh;
    padding: 60px 0;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-top: 0;
    z-index: 0;
}


.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--mint-turquoise);
}

.people-img {
    width: 500px;
    height: auto;
    max-width: 90%;
    margin-bottom: 30px;
    object-fit: cover;
}

.hero-couple {
    font-size: 48px;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.hero-names {
    font-size: 48px;
    margin-bottom: 15px;
    color: #EB1A44;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.hero-date {
    font-size: 36px;
    margin-bottom: 8px;
    color: #EB1A44;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.hero-location {
    font-size: 28px;
    margin-bottom: 25px;
    color: #EB1A44;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.rsvp-btn {
    background: linear-gradient(135deg, var(--warm-coral), var(--deep-rose));
    border: 3px solid var(--pale-yellow);
    color: white;
    padding: 15px 35px;
    font-size: 18px;
    font-family: 'P22 Folk Art Cross', cursive;
    font-weight: 600;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 15px rgba(200, 90, 92, 0.3);
}

.rsvp-btn:hover {
    background: linear-gradient(135deg, var(--medium-coral), var(--warm-coral));
    border-color: white;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
    box-shadow: 0 6px 20px rgba(200, 90, 92, 0.4);
    transform: translateY(-2px);
}

/* Welcome Section */
.welcome-section {
    padding: 60px 0;
    background-color: transparent;
    position: relative;
    z-index: 2;
}

.welcome-text {
    text-align: center;
    font-size: 18px;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    color: var(--mint-turquoise);
}

/* General Section Styles */
.section {
    padding: 80px 0;
    background-color: transparent;
}

.section:nth-child(even) {
    background-color: transparent;
}

.section:nth-child(odd) {
    background-color: transparent;
}

.section-title {
    text-align: center;
    font-size: 42px;
    margin-bottom: 30px;
    color: #EB1A44;
}

.section-intro {
    text-align: center;
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 50px;
    color: var(--medium-mint);
    line-height: 1.8;
}

/* RSVP Section */
.rsvp-form-container {
    max-width: 800px;
    margin: 0 auto;
}

.rsvp-form {
    background-color: transparent;
    border-radius: 20px;
    padding: 40px;
    box-shadow: none;
    border: none;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-family: 'P22 Folk Art Cross', cursive;
    font-weight: 600;
    color: var(--mint-turquoise);
    font-size: 16px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-family: 'P22 Folk Art Cross', cursive;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: var(--off-white);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--mint-turquoise);
    box-shadow: none;
    background-color: transparent;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #999;
    font-style: italic;
}

.form-select {
    cursor: pointer;
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.rsvp-submit-btn {
    background: linear-gradient(135deg, var(--mint-turquoise), var(--medium-mint));
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-family: 'P22 Folk Art Cross', cursive;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 20px rgba(92, 158, 142, 0.3);
    display: block;
    margin: 40px auto 0;
}

.rsvp-submit-btn:hover {
    transform: none;
    box-shadow: none;
    background: linear-gradient(135deg, var(--medium-mint), var(--light-mint));
}

.rsvp-submit-btn:active {
    transform: none;
}

/* RSVP Success Message */
.rsvp-success {
    text-align: center;
    animation: fadeIn 0.8s ease-out;
}

.success-content {
    background: transparent;
    border-radius: 20px;
    padding: 60px 40px;
    box-shadow: none;
    border: none;
}

.success-content h3 {
    color: var(--mint-turquoise);
    font-size: 32px;
    margin-bottom: 20px;
}

.success-content p {
    font-size: 18px;
    color: var(--dark-text);
    margin-bottom: 30px;
    line-height: 1.6;
}

.hearts {
    font-size: 24px;
    animation: pulse 2s ease-in-out infinite;
}

.hidden {
    display: none;
}

/* Form Validation States */
.form-input.error,
.form-select.error,
.form-textarea.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.form-input.success,
.form-select.success,
.form-textarea.success {
    border-color: #27ae60;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: transparent;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: none;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 400px;
    transform: translateX(450px);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    border-left: 4px solid #27ae60;
}

.notification.error {
    border-left: 4px solid #e74c3c;
}

.notification-icon {
    font-size: 20px;
}

.notification-message {
    flex: 1;
    font-family: 'P22 Folk Art Cross', cursive;
    font-size: 16px;
    color: var(--dark-text);
}

/* Loading State */
.loading .rsvp-submit-btn {
    background: linear-gradient(135deg, #bdc3c7, #95a5a6);
    cursor: not-allowed;
    position: relative;
}

.loading .rsvp-submit-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid white;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* FAQ Section */
.photo-collage {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 50px 0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.collage-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    cursor: pointer;
}

.collage-img:hover {
    transform: none;
    opacity: 0.85;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 30px;
    padding: 25px;
    background-color: transparent;
    border-radius: 12px;
    box-shadow: none;
}

.faq-question {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--mint-turquoise);
}

.faq-answer {
    font-size: 16px;
    line-height: 1.7;
    color: var(--dark-text);
}

/* Travel Section */
.travel-section {
    margin-bottom: 50px;
    padding: 0;
    background-color: transparent;
    border-radius: 12px;
    box-shadow: none;
}

.map-container {
    position: relative;
    margin-top: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: none;
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 400px;
    border: none;
}

.map-caption {
    margin-top: 12px;
    text-align: center;
    font-size: 14px;
}

.map-caption a {
    color: var(--warm-coral);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.map-caption a:hover {
    color: var(--medium-coral);
    text-decoration: underline;
}

.travel-subtitle {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--mint-turquoise);
    text-align: center;
}

.travel-info {
    margin: 20px auto;
    padding: 0;
    background-color: transparent;
    border-radius: 8px;
    text-align: left;
    max-width: 800px;
}

.travel-info h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--medium-mint);
}

.travel-list {
    list-style: none;
    margin: 20px 0;
    text-align: left;
}

.travel-intro {
    text-align: center;
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 30px;
    color: var(--medium-mint);
    line-height: 1.8;
}

.travel-list li {
    margin: 10px 0;
    padding-left: 25px;
    position: relative;
}

.travel-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--mint-turquoise);
    font-weight: bold;
}

.travel-link {
    color: var(--mint-turquoise);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.travel-link:hover {
    color: var(--medium-mint);
}

/* Schedule Section */
.schedule-day {
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.schedule-date {
    font-size: 28px;
    margin-bottom: 25px;
    text-align: center;
    color: var(--mint-turquoise);
}

.schedule-event {
    padding: 25px;
    margin-bottom: 20px;
    background-color: transparent;
    border-radius: 12px;
    box-shadow: none;
}

.event-title {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--mint-turquoise);
}

.event-time {
    font-size: 16px;
    font-weight: 600;
    color: var(--medium-mint);
    margin-bottom: 10px;
}

.event-description {
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-text);
}

.schedule-divider {
    height: 2px;
    background: linear-gradient(to right, transparent, var(--border-color), transparent);
    margin: 40px 0;
}

/* Q&A Section */
.qa-list {
    max-width: 800px;
    margin: 0 auto;
}

.qa-item {
    margin-bottom: 30px;
    padding: 25px;
    background-color: transparent;
    border-radius: 12px;
    box-shadow: none;
}

.qa-question {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--mint-turquoise);
}

.qa-answer {
    font-size: 16px;
    line-height: 1.7;
    color: var(--dark-text);
}

/* Sticky RSVP Bar */
.rsvp-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: transparent;
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: none;
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 999;
}

.wedding-date {
    font-family: 'P22 Folk Art Cross', cursive;
    font-weight: 600;
    color: var(--mint-turquoise);
    font-size: 14px;
}

.rsvp-bar-btn {
    background-color: var(--dark-text);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-family: 'P22 Folk Art Cross', cursive;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.rsvp-bar-btn:hover {
    background-color: var(--mint-turquoise);
}

/* Footer */
footer {
    background-color: transparent;
    padding: 40px 0;
    border-top: none;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-family: 'P22 Folk Art Cross', cursive;
    font-size: 20px;
    font-weight: 700;
    color: var(--mint-turquoise);
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    text-decoration: none;
    color: var(--medium-mint);
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--mint-turquoise);
}

/* Responsive Design */
@media (max-width: 768px) {
    .lightbox-close {
        top: 10px;
        right: 15px;
        font-size: 35px;
    }

    .lightbox-prev,
    .lightbox-next {
        font-size: 24px;
        padding: 12px 16px;
    }

    .lightbox-nav {
        padding: 0 10px;
    }

    .lightbox-content {
        max-width: 95%;
        max-height: 85vh;
    }

    .navbar {
        top: 10px;
        left: 0;
        right: 0;
        transform: none;
        width: 100%;
        display: flex;
        justify-content: center;
        padding: 6px 16px;
    }

    .nav-container {
        flex-wrap: wrap;
        gap: 6px;
        max-width: 90vw;
    }

    .nav-link {
        font-size: 11px;
        padding: 4px 6px;
    }

    .people-img {
        width: 400px;
        max-width: 85%;
    }

    .hero-names {
        font-size: 36px;
        white-space: nowrap;
    }

    .hero-date {
        font-size: 32px;
    }

    .hero-location {
        font-size: 24px;
    }

    .section-title {
        font-size: 32px;
    }

    .photo-collage {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }

    .collage-img {
        aspect-ratio: 1 / 1;
        object-position: center center;
    }

    /* Individual image positioning for mobile */
    .collage-img-1 {
        object-position: top center; /* TomandToby - keep top */
    }
    
    .collage-img-2 {
        object-position: center center; /* Hubble in Tree - center */
    }
    
    .collage-img-3 {
        object-position: center center; /* Chicken - center */
    }
    
    .collage-img-4 {
        object-position: center center; /* SidmouthBeach - center */
    }
    
    .collage-img-5 {
        object-position: top center; /* Eggs - keep top */
    }
    
    .collage-img-6 {
        object-position: top center; /* Peaches - keep top */
    }
    
    .collage-img-7 {
        object-position: center 35%; /* IMG_0536 - slightly lower, less sky */
    }
    
    .collage-img-8 {
        object-position: center center; /* IMG_2356 - center */
    }
    
    .collage-img-9 {
        object-position: center center; /* IMG_2350 - center */
    }
    
    .collage-img-10 {
        object-position: top center; /* IMG_2480 - keep top */
    }
    
    .collage-img-11 {
        object-position: center center; /* IMG_7578 - center */
    }
    
    .collage-img-12 {
        object-position: top center; /* IMG_7497 - keep top */
    }

    .modal-content {
        padding: 30px 20px;
    }

    .rsvp-bar {
        flex-direction: column;
        gap: 10px;
        padding: 10px 20px;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    /* RSVP Form Responsive */
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .rsvp-form {
        padding: 30px 20px;
    }

    .rsvp-submit-btn {
        width: 100%;
        margin: 30px 0 0;
    }

    .success-content {
        padding: 40px 20px;
    }

    .success-content h3 {
        font-size: 28px;
    }

    .notification {
        left: 20px;
        right: 20px;
        max-width: none;
        transform: translateY(-100px);
    }

    .notification.show {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .navbar {
        top: 5px;
    }

    .nav-container {
        justify-content: center;
        gap: 4px;
        max-width: 95vw;
    }

    .nav-link {
        font-size: 10px;
        padding: 3px 5px;
    }

    .people-img {
        width: 320px;
        max-width: 80%;
    }

    .hero-names {
        font-size: 28px;
        white-space: nowrap;
    }

    .hero-date {
        font-size: 24px;
    }

    .hero-location {
        font-size: 18px;
    }

    .section {
        padding: 60px 0;
    }

    .faq-item,
    .qa-item,
    .schedule-event {
        padding: 20px 15px;
    }

    .travel-section {
        padding: 20px;
    }
}

/* Mobile Menu Styles - Override inline styles */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        color: white !important;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5) !important;
        position: fixed;
        left: 50%;
        transform: translateX(-50%);
        top: 12px;
        padding: 8px 14px;
        border-radius: 6px;
        background: var(--warm-coral) !important;
        border: 2px solid var(--warm-coral) !important;
        z-index: 1003;
    }

    .nav-container:not(.mobile-active) {
        display: none;
    }

    .nav-container.mobile-active {
        display: flex !important;
        position: fixed;
        top: 60px;
        left: 50% !important;
        transform: translateX(-50%) !important;
        background: var(--off-white) !important;
        flex-direction: column;
        padding: 12px;
        box-shadow: none !important;
        z-index: 1001;
        width: min(360px, calc(100% - 32px));
        align-items: center;
        border-radius: 8px;
        margin-left: 0 !important;
        margin-right: 0 !important;
        gap: 6px;
    }

    .nav-container.mobile-active .nav-link {
        text-align: center !important;
        width: 100%;
        margin: 2px 0;
        display: block;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
    overflow-y: auto;
}

body {
    overflow-y: auto;
    min-height: 100vh;
}

/* Hide scrollbar for modal */
.modal.active {
    overflow: hidden;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.section {
    animation: fadeIn 0.8s ease-out;
}

.modal.shake {
    animation: shake 0.5s ease-in-out;
}

/* Floating animation for hero content - DISABLED */
.hero-content {
    animation: none;
}

/* Pulse animation for buttons */
.rsvp-btn,
.rsvp-bar-btn {
    transition: all 0.3s ease;
}

.rsvp-btn:hover,
.rsvp-bar-btn:hover {
    animation: none;
}

/* Enhanced hover effects */
.collage-img:hover {
    transform: none;
    box-shadow: none;
    z-index: auto;
}

.faq-item:hover,
.qa-item:hover,
.schedule-event:hover {
    transform: none;
    box-shadow: none;
    transition: all 0.3s ease;
}

/* Loading animation */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Main Content z-index fix */
main {
    position: relative;
    z-index: 10;
}

#mainContent {
    position: relative;
    z-index: 10;
}

/* Responsive Border Graphics */
@media (max-width: 1200px) {
    .border-top,
    .border-bottom {
        width: 100vw; /* Full viewport width */
        max-height: 140px; /* Proportionally smaller height */
    }

    .border-left,
    .border-right {
        width: 45px; /* Consistent scaling */
        background-size: contain;
    }

    .main-wrapper {
        max-width: calc(100% - 90px); /* Account for both side borders */
    }
}

@media (max-width: 768px) {
    .border-top,
    .border-bottom {
        display: none; /* Hide top and bottom borders on mobile */
    }

    .border-left,
    .border-right {
        width: 38px; /* Consistent scaling */
        background-size: contain;
    }

    .main-wrapper {
        max-width: calc(100% - 76px);
        padding: 60px 7.5px;
    }
}

@media (max-width: 480px) {
    .border-top,
    .border-bottom {
        display: none; /* Hide top and bottom borders on mobile */
    }

    .border-left,
    .border-right {
        width: 30px; /* Consistent scaling */
        background-size: contain;
    }

    .main-wrapper {
        max-width: calc(100% - 60px);
        padding: 40px 5px;
    }
}

/* Additional Guest Management Styles */
#additional-guests-container {
    margin-top: 15px;
}

.guest-entry {
    background: var(--off-white);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    position: relative;
    transition: all 0.3s ease;
}

.guest-entry:hover {
    border-color: var(--mint-turquoise);
    box-shadow: 0 5px 15px rgba(92, 158, 142, 0.1);
}

.guest-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.guest-number {
    font-weight: 600;
    color: var(--mint-turquoise);
    font-size: 14px;
}

.remove-guest-btn {
    background: var(--error-red);
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.remove-guest-btn:hover {
    background: #c0392b;
    transform: scale(1.1);
}

.guest-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

.guest-field {
    display: flex;
    flex-direction: column;
}

.guest-field label {
    font-size: 14px;
    margin-bottom: 5px;
    color: var(--dark-text);
    font-weight: 500;
}

.guest-field input,
.guest-field select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.guest-field input:focus,
.guest-field select:focus {
    outline: none;
    border-color: var(--mint-turquoise);
    box-shadow: 0 0 0 3px rgba(92, 158, 142, 0.1);
}

.add-guest-btn {
    background: linear-gradient(135deg, var(--mint-turquoise), var(--medium-mint));
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.add-guest-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(92, 158, 142, 0.2);
}

.guest-help {
    color: var(--medium-mint);
    font-size: 12px;
    margin-top: 8px;
    line-height: 1.4;
    font-style: italic;
}

@media (max-width: 768px) {
    .guest-fields {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .guest-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .add-guest-btn {
        width: 100%;
        justify-content: center;
    }

    .guest-help {
        margin-bottom: 15px;
    }
}
