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

body {
    font-family: 'Courier Prime', monospace;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    font-family: inherit;
    font-size: 24px;
    font-weight: 400;
    color: #333;
}

.nav-logo .hashtag {
    color: #333;
    font-weight: 400;
}

.nav-logo .married-text {
    color: #333;
    font-weight: 400;
}

.nav-logo .af-text {
    color: #d4a574;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #d4a574;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #d4a574;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh; /* Full viewport height */
    background: url('hero1.jpg') 50% 30%/cover no-repeat;
    display: grid;
    grid-template-rows: 70px 1fr; /* Navbar space + remaining space */
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4); /* darker overlay for better text contrast */
    z-index: 1;
}

.hero-content {
    z-index: 2;
    animation: fadeInUp 1s ease-out;
    position: relative;
    grid-row: 2; /* Place in the second row (below navbar space) */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-title {
    font-family: inherit;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

.name {
    display: inline-block;
    margin: 0 10px;
    position: relative;
}

.and {
    font-size: 2rem;
    color: #d4a574;
    margin: 0 20px;
    font-weight: 400;
}

.hero-date {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 10px;
    font-weight: 300;
}

.hero-location {
    font-size: 1.2rem;
    color: #888;
    margin-bottom: 40px;
    font-weight: 400;
}

.hero-caption {
    position: absolute;
    bottom: 10px;
    right: 10px;
    color: white;
    font-size: 0.75rem;
    font-weight: 400;
    font-style: italic;
    text-shadow: 0 0px 0px rgba(0, 0, 0, 0.7);
    z-index: 3;

    padding: 0px 0px;
    border-radius: 0px;
    backdrop-filter: blur(5px);
}

/* Countdown */
.countdown {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.countdown-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    min-width: 100px;
}

.countdown-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #d4a574;
    font-family: inherit;
}

.countdown-label {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Floating Hearts */
.floating-hearts {
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
}

.floating-hearts i {
    color: #d4a574;
    font-size: 2rem;
    margin: 10px;
    animation: float 3s ease-in-out infinite;
}

.floating-hearts i:nth-child(2) {
    animation-delay: 1s;
}

.floating-hearts i:nth-child(3) {
    animation-delay: 2s;
}

/* Section Styles */
.section-title {
    font-family: inherit;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 60px;
    color: #333;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #d4a574;
}

/* Story Section */
.story {
    padding: 100px 0;
    background: #fff;
}

.story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.story-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #666;
    line-height: 1.8;
}

.story-timeline {
    position: relative;
}

.story-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #d4a574;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 80px;
}

.timeline-date {
    position: absolute;
    left: 0;
    top: 0;
    background: #d4a574;
    color: white;
    padding: 10px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.timeline-content {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.timeline-content h3 {
    color: #333;
    margin-bottom: 10px;
    font-family: inherit;
}

.timeline-content p {
    color: #666;
    font-size: 0.9rem;
}

/* Invitation Section */
.invitation {
    padding: 100px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
}

.invitation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23d4a574" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23d4a574" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%23d4a574" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="%23d4a574" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="%23d4a574" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

.invitation-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.invitation-card {
    background-color: #ebebe6 !important;
    background: #ebebe6 !important;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    padding: 0;
    text-align: center;
    position: relative;
    border: 1px solid rgba(212, 165, 116, 0.2);
    transform: perspective(1000px) rotateX(2deg);
    transition: transform 0.3s ease;
    cursor: pointer;
    height: 800px;
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.invitation-card.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.card-back {
    transform: rotateY(180deg);
    background-color: #ebebe6 !important;
    background: #ebebe6 !important;
}

.invitation-card:hover {
    transform: perspective(1000px) rotateX(0deg);
}


.front-top-spacer {
    flex: 1;
    min-height: 100px;
}

.front-bottom-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: -50px;
}

.wine-graphic-container {
    text-align: center;
    margin: 0;
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.wine-graphic {
    max-width: 250px;
    height: auto;
    display: block;
    margin: 0 auto;
    opacity: 1;
    filter: none;
}

.invitation-date {
    font-family: inherit;
    font-size: 2.5rem;
    font-weight: 400;
    color: inherit;
    margin: 0 0 0px 0;
    text-align: center;
}

.invitation-celebration {
    font-family: inherit;
    font-size: 1.2rem;
    font-weight: 400;
    color: inherit;
    text-align: center;
    letter-spacing: 2px;
    margin: 0px 0 0px 0;
}

/* Back side styling */
.back-names-container {
    text-align: center;
    margin-bottom: 30px;
}

.back-names-image {
    max-width: 600px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.back-text {
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    text-align: justify;
    max-width: 400px;
    margin-top: 30px;
}

.invitation-header {
    margin-bottom: 40px;
}

.invitation-ornament {
    font-size: 2rem;
    color: #d4a574;
    margin: 20px 0;
    font-family: inherit;
    opacity: 0.8;
}

.invitation-title {
    font-family: inherit;
    font-size: 1.4rem;
    color: #666;
    font-weight: 400;
    margin: 30px 0;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.invitation-names {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.invitation-name {
    font-family: inherit;
    font-size: 3.5rem;
    font-weight: 700;
    color: #333;
    letter-spacing: 1px;
}

.invitation-ampersand {
    font-family: inherit;
    font-size: 2.5rem;
    color: #d4a574;
    font-weight: 400;
    margin: 0 10px;
}

.invitation-body {
    margin-top: 40px;
}

.invitation-text {
    font-family: inherit;
    font-size: 1.2rem;
    color: #666;
    margin: 15px 0;
    font-weight: 400;
    line-height: 1.6;
}

.invitation-details {
    margin: 40px 0;
    padding: 30px 0;
    border-top: 1px solid rgba(212, 165, 116, 0.3);
    border-bottom: 1px solid rgba(212, 165, 116, 0.3);
}

.invitation-date,
.invitation-time,
.invitation-location {
    margin: 20px 0;
}

.detail-label {
    display: block;
    font-family: inherit;
    font-size: 1.1rem;
    color: #888;
    font-weight: 400;
    margin-bottom: 5px;
}

.detail-value {
    display: block;
    font-family: inherit;
    font-size: 1.4rem;
    color: #333;
    font-weight: 600;
    letter-spacing: 1px;
}

.invitation-rsvp {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(212, 165, 116, 0.3);
}

.rsvp-text {
    font-family: inherit;
    font-size: 1.1rem;
    color: #d4a574;
    font-weight: 500;
    font-style: italic;
}


/* Details Section */
.details {
    padding: 100px 0;
    background: #f8f9fa;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.detail-card {
    background: white;
    padding: 40px 30px;
    text-align: center;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.detail-card:hover {
    transform: translateY(-5px);
}

.detail-icon {
    font-size: 2.5rem;
    color: #d4a574;
    margin-bottom: 20px;
}

.detail-card h3 {
    font-family: inherit;
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

.detail-card p {
    color: #666;
    margin-bottom: 5px;
    font-size: 0.95rem;
}



/* RSVP Section */
.rsvp {
    padding: 100px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.rsvp-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.rsvp-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #d4a574;
}

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

.rsvp-button {
    width: 100%;
    padding: 15px;
    background: #d4a574;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    font-family: inherit;
}

.rsvp-button:hover {
    background: #c19a6b;
}

/* Registry Section */
.registry {
    padding: 100px 0;
    background: white;
}

.registry-text {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.registry-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.registry-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 15px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    min-width: 150px;
}

.registry-link:hover {
    transform: translateY(-5px);
    background: #d4a574;
    color: white;
}

.registry-link i {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #d4a574;
    transition: color 0.3s ease;
}

.registry-link:hover i {
    color: white;
}

.registry-link span {
    font-weight: 600;
    text-align: center;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 30px 0;
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero {
        height: 100vh; /* Keep full viewport height */
        grid-template-rows: 70px 1fr; /* Maintain grid structure */
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-title-stacked {
        gap: 0.2rem;
    }

    .hero-title-stacked .and {
        font-size: 2rem;
        margin: 0;
    }

    .countdown {
        gap: 15px;
    }

    .countdown-item {
        min-width: 70px;
        padding: 15px;
    }

    .countdown-number {
        font-size: 1.8rem;
    }

    .story-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }



    .registry-links {
        flex-direction: column;
        align-items: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .invitation-card {
        padding: 40px 30px;
        transform: none;
    }

    .invitation-name {
        font-size: 2.5rem;
    }

    .invitation-ampersand {
        font-size: 2rem;
    }

    .invitation-names {
        gap: 15px;
    }

    .invitation-text {
        font-size: 1.1rem;
    }

    .detail-value {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 100vh; /* Keep full viewport height */
        grid-template-rows: 70px 1fr; /* Maintain grid structure */
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-title-stacked {
        gap: 0.15rem;
    }

    .hero-title-stacked .and {
        font-size: 1.5rem;
    }

    .countdown {
        flex-wrap: wrap;
        gap: 10px;
    }

    .countdown-item {
        min-width: 60px;
        padding: 10px;
    }

    .countdown-number {
        font-size: 1.5rem;
    }

    .rsvp-form {
        padding: 20px;
    }

    .invitation-card {
        padding: 30px 20px;
        margin: 0 10px;
    }

    .invitation-name {
        font-size: 2rem;
    }

    .invitation-ampersand {
        font-size: 1.5rem;
    }

    .invitation-names {
        flex-direction: column;
        gap: 10px;
    }

    .invitation-text {
        font-size: 1rem;
    }

    .invitation-title {
        font-size: 1.2rem;
    }

    .detail-value {
        font-size: 1.1rem;
    }

    .travel-text {
        padding: 40px 30px;
    }

    .gallery-item {
        flex: 0 0 250px;
        height: 250px;
    }

    .travel-text {
        padding: 30px 20px;
    }

    .travel-text h3 {
        font-size: 1.4rem;
    }

    .travel-text p {
        font-size: 1rem;
    }

    .gallery-item {
        flex: 0 0 200px;
        height: 200px;
    }

    .modal-content {
        width: 95%;
    }

    .modal-prev,
    .modal-next {
        font-size: 20px;
        padding: 12px 16px;
    }
} 

.hero-title-stacked {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    gap: 0.3rem;
}

.hero-title-stacked .name {
    display: block;
    margin: 0;
}

.hero-title-stacked .and {
    font-size: 3rem;
    margin: 0;
    display: block;
}

.countdown-stacked {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 2.5rem 0 1.5rem 0;
}

.countdown-stacked .countdown-item {
    background: none;
    box-shadow: none;
    min-width: 0;
    padding: 0;
}

.countdown-colon {
    font-size: 2.2rem;
    font-weight: 700;
    color: #888;
    margin: 0 0.2rem;
    display: flex;
    align-items: flex-end;
}

.hero-rsvp-btn {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.9rem 2.5rem;
    background: #d4a574;
    color: #fff;
    font-family: inherit;
    font-size: 1.5rem;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    letter-spacing: 1px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transition: background 0.2s;
}
.hero-rsvp-btn:hover {
    background: #c19a6b;
} 

.hero-location-stacked {
    text-align: center;
    font-size: 1.3rem;
    color: #e0e0e0;
    font-family: inherit;
    font-weight: 500;
    margin-bottom: 1.2rem;
    letter-spacing: 0.5px;
} 

.details-cards {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
    margin: 2.5rem 0 1.5rem 0;
}

.selectable-card {
    cursor: pointer;
    transition: box-shadow 0.2s, border 0.2s, background 0.2s;
    border: 2px solid transparent;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border-radius: 16px;
    padding: 2 2.5rem;
    text-align: center;
    min-width: 220px;
    max-width: 220px;
    min-height: 250px;
    max-height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 0 0 220px;
}

.selectable-card.active {
    border: 2px solid #d4a574;
    background: #fffbe9;
    box-shadow: 0 4px 24px rgba(212,165,116,0.10);
    z-index: 2;
}

/* Center the middle card visually */
.details-cards .selectable-card:nth-child(2) {
    margin-left: 0;
    margin-right: 0;
    position: relative;
    left: 0;
}

@media (max-width: 900px) {
    .details-cards {
        flex-direction: column;
        align-items: center;
    }
    .selectable-card {
        min-width: 80vw;
        max-width: 90vw;
        margin-bottom: 1.5rem;
    }
    .details-cards .selectable-card:nth-child(2) {
        left: 0;
    }
}

.selectable-card .detail-icon {
    font-size: 2.5rem;
    color: #d4a574;
    margin-bottom: 1rem;
}

.detail-info {
    margin-top: 2rem;
    text-align: center;
}

.detail-content {
    display: none;
    animation: fadeIn 0.5s;
}

.detail-content[style*="display:block"] {
    display: block;
}

.detail-graphic {
    margin-bottom: 1rem;
    color: #d4a574;
}

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

.detail-date {
    font-size: 1.1rem;
    color: #888;
    font-family: inherit;
    font-weight: 500;
    letter-spacing: 0.2px;
    line-height: 1.1;
} 

.detail-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 70px;
    margin-bottom: 0.5rem;
}

.detail-header h3 {
    margin-top: 2rem;
    margin-bottom: 1.75rem;
    line-height: 1.1;
    font-size: 1.35rem;
    font-weight: 700;
    word-break: break-word;
    text-align: center;
    min-height: 1.2em;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 2.2em;
}

.detail-date {
    margin-top: 0.2rem;
} 

.hero-rsvp-form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin-top: 1.5rem;
}

.hero-rsvp-input {
    padding: 0.9rem 1.2rem;
    font-size: 1.2rem;
    border: 1.5px solid #d4a574;
    border-right: none;
    border-radius: 8px 0 0 8px;
    font-family: inherit;
    outline: none;
    min-width: 260px;
    transition: border 0.2s;
}
.hero-rsvp-input:focus {
    border-color: #c19a6b;
    border-right: none;
}

.hero-rsvp-btn {
    padding: 0.9rem 2.2rem;
    background: #d4a574;
    color: #fff;
    font-family: inherit;
    font-size: 1.2rem;
    font-weight: 700;
    border: 1.5px solid #d4a574;
    border-left: none;
    border-radius: 0 8px 8px 0;
    letter-spacing: 1px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transition: background 0.2s;
    cursor: pointer;
}
.hero-rsvp-btn:hover {
    background: #c19a6b;
}

.hero-rsvp-message {
    margin-top: 1rem;
    text-align: center;
    font-size: 1.1rem;
    font-family: inherit;
    color: #d9534f;
    min-height: 1.5em;
}

.hero-rsvp-message.error {
    color: #d9534f;
    font-weight: 500;
} 

.hero-rsvp-input, .hero-rsvp-btn {
    box-sizing: border-box;
    height: 48px;
    font-size: 1.2rem;
    line-height: 48px;
    padding-top: 0;
    padding-bottom: 0;
    vertical-align: middle;
}

.hero-rsvp-input {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
    border: 1.5px solid #d4a574;
    border-right: none;
    border-radius: 8px 0 0 8px;
}

.hero-rsvp-btn {
    padding-left: 2.2rem;
    padding-right: 2.2rem;
    border: 1.5px solid #d4a574;
    border-left: none;
    border-radius: 0 8px 8px 0;
    font-weight: 700;
    box-shadow: none;
    margin: 0;
    display: inline-block;
} 

.wedding-detail-flex {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 3.5rem;
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
    width: 100%;
}

.wedding-detail-left {
    flex: 0 0 340px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 220px;
    max-width: 340px;
}

.wedding-detail-img {
    width: 100%;
    max-width: 340px;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    margin-bottom: 1.1rem;
}

.wedding-detail-location {
    font-size: 1.1rem;
    color: #222;
    font-family: inherit;
    font-weight: 500;
    text-align: center;
    margin-top: 0.5rem;
    line-height: 1.3;
}

.wedding-detail-location-bold {
    display: block;
    font-weight: 700;
    font-size: 1.15rem;
    margin-top: 0.2rem;
}

.wedding-detail-right {
    flex: 1 1 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 220px;
    max-width: 500px;
    text-align: center;
}

.wedding-schedule {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 1.15rem;
    font-family: inherit;
    color: #444;
    width: 100%;
}

.wedding-schedule li {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wedding-event-main {
    font-weight: 700;
    color: #d4a574;
    font-size: 1.13rem;
    margin-bottom: 0.2rem;
    text-align: center;
}

.wedding-event-desc {
    font-size: 1rem;
    color: #888;
    font-weight: 400;
    margin-left: 0;
    margin-bottom: 0.1rem;
    text-align: center;
}

@media (max-width: 900px) {
    .wedding-detail-flex {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        max-width: 98vw;
    }
    .wedding-detail-left, .wedding-detail-right {
        max-width: 100%;
        min-width: 0;
        flex: unset;
    }
    .wedding-detail-img {
        max-width: 90vw;
    }
    .wedding-schedule {
        font-size: 1rem;
    }
} 

.wedding-detail-dress {
    display: block;
    font-size: 1.05rem;
    color: #888;
    font-family: inherit;
    font-weight: 500;
    margin-top: 0.3rem;
} 

/* Travel Guide Section */
.travel {
    padding: 100px 0;
    background: white;
}

.travel-content {
    max-width: 800px;
    margin: 0 auto;
}

.travel-text {
    background: #f8f9fa;
    padding: 50px 40px;
    border-radius: 15px;
    border: 1px solid rgba(212, 165, 116, 0.2);
    margin-top: 40px;
    line-height: 1.8;
}

.travel-text h3 {
    font-family: inherit;
    font-size: 1.6rem;
    margin-bottom: 15px;
    margin-top: 30px;
    color: #333;
}

.travel-text h3:first-child {
    margin-top: 0;
}

.travel-text p {
    color: #666;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.travel-text strong {
    color: #d4a574;
    font-weight: 600;
}

/* Gallery Section */
.gallery {
    padding: 100px 0;
    background: #f8f9fa;
}

.gallery-container {
    margin-top: 40px;
}

.gallery-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 0;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #d4a574 #f1f1f1;
    cursor: grab;
    user-select: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}

.gallery-scroll:active {
    cursor: grabbing;
}

.gallery-scroll::-webkit-scrollbar {
    height: 8px;
}

.gallery-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.gallery-scroll::-webkit-scrollbar-thumb {
    background: #d4a574;
    border-radius: 4px;
}

.gallery-scroll::-webkit-scrollbar-thumb:hover {
    background: #c19a6b;
}

.gallery-item {
    position: relative;
    flex: 0 0 300px;
    height: 280px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.gallery-overlay i {
    color: white;
    font-size: 2rem;
}

/* Gallery Modal */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 0;
    width: 90%;
    max-width: 800px;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #d4a574;
}

#modal-image {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
}

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

.modal-prev,
.modal-next {
    background: rgba(212, 165, 116, 0.8);
    border: none;
    color: white;
    font-size: 24px;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s ease;
    pointer-events: all;
}

/* Hide arrow buttons on mobile */
@media (max-width: 768px) {
    .modal-prev,
    .modal-next {
        display: none;
    }
}

.modal-prev:hover,
.modal-next:hover {
    background: #d4a574;
}

.modal-prev {
    margin-left: 20px;
}

.modal-next {
    margin-right: 20px;
}

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

.faq {
    background: #f8f8f8;
    padding: 4rem 0 3rem 0;
}

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

.faq-item {
    border-bottom: 1px solid #e0e0e0;
    padding: 1.2rem 0;
}

.faq-question {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 1.2rem;
    font-family: inherit;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    outline: none;
    padding: 0;
    transition: color 0.2s;
    position: relative;
}
.faq-question::after {
    content: '\25BC';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    transition: transform 0.3s;
    font-size: 1rem;
    color: #d4a574;
}
.faq-item.active .faq-question {
    color: #d4a574;
}
.faq-item.active .faq-question::after {
    transform: translateY(-50%) rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    font-size: 1.08rem;
    color: #666;
    font-family: inherit;
    transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1), padding 0.3s;
    padding: 0 0;
}
.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 1rem 0 0.5rem 0;
} 

.hero-title,
.hero-content,
.countdown-number,
.countdown-label {
    color: #fff !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.35);
} 

.countdown-item {
    background: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

/* Mobile responsive styling for invitation card */
@media (max-width: 768px) {
    .invitation-card {
        height: 600px;
        max-width: 90%;
        margin: 0 auto;
    }
    
    .card-front, .card-back {
        padding: 40px 30px;
    }
    
    .wine-graphic {
        max-width: 150px;
    }
    
    .back-names-image {
        max-width: 300px;
    }
    
    .back-text {
        max-width: 300px;
        font-size: 0.8rem;
        line-height: 1.3;
        margin-top: 30px;
    }
    
    .invitation-date {
        font-size: 2rem;
    }
    
    .invitation-celebration {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .invitation-card {
        height: 500px;
        max-width: 95%;
        margin: 0 10px;
    }
    
    .card-front, .card-back {
        padding: 30px 20px;
    }
    
    .wine-graphic {
        max-width: 120px;
    }
    
    .back-names-image {
        max-width: 300px;
    }
    
    .back-text {
        max-width: 250px;
        font-size: 0.7rem;
        line-height: 1.2;
        margin-top: 20px;
    }
    
    .invitation-date {
        font-size: 1.8rem;
    }
    
    .invitation-celebration {
        font-size: 0.9rem;
    }
    
    .front-bottom-content {
        margin-top: -30px;
    }
} 