* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Cormorant', 'Georgia', serif;
    background: #f9f7f4;
    color: #3a3a3a;
    overflow-x: hidden;
    overflow-y: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.envelope-opened {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Invitation Hero Section */
.invitation-hero {
    height: 100vh;
    height: 100dvh;
    width: 100vw;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #faf8f5 0%, #f4f1ec 100%);
}

.invitation-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/background-invitation.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 1;
}

.sealed-envelope {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    width: 70%;
    max-width: 800px;
    opacity: 1;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.envelope-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.invitation-opened {
    position: absolute;
    top: 46%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1000px;
    height: 70vh;
    opacity: 0;
    z-index: 2;
    transition: opacity 0.8s ease;
}

.unsealed-envelope {
    position: absolute;
    right: 0;
    top: 55%;
    transform: translateY(-50%) rotate(-5deg);
    width: 45%;
    max-width: 450px;
    z-index: 2;
}

.envelope-unsealed-image {
    width: 100%;
    height: auto;
    display: block;
}

.invitation-card {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 60%;
    max-width: 550px;
    z-index: 3;
}

.invitation-card-image {
    width: 100%;
    height: auto;
    display: block;
}

.invitation-hero.opened .sealed-envelope {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.95);
    pointer-events: none;
}

.invitation-hero.opened .invitation-opened {
    opacity: 1;
}

.clickable {
    cursor: pointer;
}

.seal-instruction {
    position: absolute;
    bottom: 4%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.seal-instruction p {
    color: #5a4a3a;
    font-size: 28px;
    font-style: italic;
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px rgba(200, 170, 120, 0.8), 0 0 30px rgba(200, 170, 120, 0.5), 0 0 60px rgba(200, 170, 120, 0.3);
    white-space: nowrap;
    text-align: center;
    animation: textGlow 1.5s ease-in-out infinite alternate;
}

@keyframes textGlow {
    from { text-shadow: 0 0 10px rgba(200, 170, 120, 0.8), 0 0 30px rgba(200, 170, 120, 0.5), 0 0 60px rgba(200, 170, 120, 0.3); }
    to { text-shadow: 0 0 20px rgba(200, 170, 120, 1), 0 0 50px rgba(200, 170, 120, 0.7), 0 0 80px rgba(200, 170, 120, 0.5); }
}

.invitation-hero.opened .seal-instruction {
    opacity: 0;
    pointer-events: none;
    transition: none;
}

/* Scroll Indicator */
.scroll-indicator {
    position: fixed;
    bottom: 10vh;
    left: 50%;
    transform: translateX(-50%);
    z-index: 6;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.invitation-hero.opened .scroll-indicator {
    opacity: 1;
    animation: bounceArrow 2s ease-in-out infinite;
    pointer-events: auto;
    cursor: pointer;
}

.scroll-indicator svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

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

/* RSVP Section */
.rsvp-section {
    padding: 4vh 20px;
    background: #ffffff;
    position: relative;
    display: none;
}

.rsvp-section.visible {
    display: block;
    margin-top: -8vh;
    position: relative;
    z-index: 5;
}

.program-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(139, 119, 89, 0.02) 2px, rgba(139, 119, 89, 0.02) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(139, 119, 89, 0.02) 2px, rgba(139, 119, 89, 0.02) 4px),
        radial-gradient(circle at 20% 30%, rgba(180, 150, 110, 0.03) 0%, transparent 3%),
        radial-gradient(circle at 70% 60%, rgba(180, 150, 110, 0.025) 0%, transparent 2%),
        radial-gradient(circle at 40% 80%, rgba(180, 150, 110, 0.03) 0%, transparent 3%);
    pointer-events: none;
    z-index: 0;
}

.program-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(139, 127, 193, 0.2) 50%,
        transparent 100%);
    z-index: 1;
}

.section-content {
    text-align: center;
}

.section-title {
    font-size: 48px;
    font-weight: 400;
    color: #2b2b2b;
    margin-bottom: 25px;
    letter-spacing: 2px;
    font-family: 'Cormorant', serif;
}

.divider {
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(146, 155, 136, 0.5) 50%,
        transparent 100%);
    margin: 0 auto 60px auto;
}

/* Timeline */
.timeline {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(146, 155, 136, 0.3) 20%,
        rgba(146, 155, 136, 0.3) 80%,
        transparent 100%);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-bottom: 60px;
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #929b88;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 0 0 4px #ffffff, 0 0 0 6px rgba(146, 155, 136, 0.2);
}

.time {
    flex: 1;
    text-align: right;
    padding-right: 40px;
    font-size: 18px;
    color: #929b88;
    font-weight: 500;
    letter-spacing: 1px;
    font-family: 'Cormorant', serif;
}

.event-details {
    flex: 1;
    text-align: left;
    padding-left: 40px;
}

.event-name {
    font-size: 26px;
    font-weight: 500;
    color: #2b2b2b;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.event-description {
    font-size: 18px;
    color: #6a6a6a;
    line-height: 1.6;
    margin-bottom: 5px;
    font-weight: 300;
}

.event-location {
    font-size: 16px;
    color: #929b88;
    font-style: italic;
    font-weight: 400;
}

/* Countdown Section */
.countdown-section {
    padding: 100px 20px;
    background: #f8f9f7;
    position: relative;
    display: none;
}

.countdown-section.visible {
    display: block;
}

.countdown-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(139, 119, 89, 0.02) 2px, rgba(139, 119, 89, 0.02) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(139, 119, 89, 0.02) 2px, rgba(139, 119, 89, 0.02) 4px),
        radial-gradient(circle at 25% 35%, rgba(180, 150, 110, 0.025) 0%, transparent 2%),
        radial-gradient(circle at 65% 55%, rgba(180, 150, 110, 0.03) 0%, transparent 3%),
        radial-gradient(circle at 45% 75%, rgba(180, 150, 110, 0.025) 0%, transparent 2%);
    pointer-events: none;
    z-index: 0;
}

.countdown-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.countdown-title {
    font-size: 38px;
    font-weight: 400;
    color: #2b2b2b;
    margin-bottom: 50px;
    letter-spacing: 1.5px;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
}

.countdown-value {
    font-size: 64px;
    font-weight: 400;
    color: #929b88;
    line-height: 1;
    margin-bottom: 12px;
}

.countdown-label {
    font-size: 18px;
    font-weight: 400;
    color: #6a6a6a;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Reception Wrapper */
.reception-wrapper {
    position: relative;
    display: none;
}

.reception-wrapper.visible {
    display: block;
}

/* Reception Section */
.reception-section {
    padding: 100px 20px;
    background: #f8f9f7;
    position: relative;
}

.reception-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(139, 119, 89, 0.02) 2px, rgba(139, 119, 89, 0.02) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(139, 119, 89, 0.02) 2px, rgba(139, 119, 89, 0.02) 4px),
        radial-gradient(circle at 25% 35%, rgba(180, 150, 110, 0.025) 0%, transparent 2%),
        radial-gradient(circle at 65% 55%, rgba(180, 150, 110, 0.03) 0%, transparent 3%),
        radial-gradient(circle at 45% 75%, rgba(180, 150, 110, 0.025) 0%, transparent 2%);
    pointer-events: none;
    z-index: 0;
}

.reception-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin: 60px 0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.detail-card {
    text-align: center;
    padding: 30px 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.detail-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.detail-icon-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.detail-title {
    font-size: 22px;
    font-weight: 500;
    color: #2b2b2b;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.detail-text {
    font-size: 20px;
    color: #4a4a4a;
    margin-bottom: 6px;
    line-height: 1.5;
}

.detail-subtext {
    font-size: 17px;
    color: #8a8a8a;
    font-style: italic;
    line-height: 1.4;
}

.map-btn {
    margin-top: 15px;
    padding: 12px 30px;
    background: #929b88;
    color: #ffffff;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Cormorant', serif;
}

.map-btn:hover {
    background: #7a8571;
    transform: translateY(-2px);
}

/* Map Modal */
.map-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    padding: 20px;
}

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

.map-modal-content {
    background: #ffffff;
    border-radius: 12px;
    max-width: 900px;
    width: 100%;
    height: 80vh;
    max-height: 600px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    z-index: 1;
}

.map-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    font-size: 28px;
    line-height: 0;
    color: #6a6a6a;
    cursor: pointer;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: opacity 0.3s ease;
    z-index: 100;
    padding: 0;
    font-family: Arial, sans-serif;
}

.map-modal-close:hover {
    opacity: 0.7;
}

.map-container {
    width: 100%;
    height: 100%;
}

/* RSVP Box */
.rsvp-box {
    max-width: 500px;
    margin: 0 auto;
    padding: 50px 40px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(146, 155, 136, 0.15);
    text-align: center;
}

.rsvp-box.bounce {
    animation: rsvpFloat 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1;
}

@keyframes rsvpFloat {
    0%   { transform: translateY(0); }
    45%  { transform: translateY(-100px); }
    100% { transform: translateY(0); }
}

.rsvp-title {
    font-size: 32px;
    font-weight: 500;
    color: #2b2b2b;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.rsvp-text {
    font-size: 18px;
    color: #6a6a6a;
    margin-bottom: 30px;
    line-height: 1.6;
}

.rsvp-button {
    display: inline-block;
    padding: 16px 50px;
    background: #929b88;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 1px;
    font-family: 'Cormorant', serif;
    transition: background 0.3s ease, transform 0.2s ease;
}

.rsvp-button:hover {
    background: #7a8571;
    transform: translateY(-2px);
    color: #ffffff;
}

/* Footer */
.site-footer {
    padding: 30px 20px;
    text-align: center;
    background: #ffffff;
    display: none;
}

.site-footer.visible {
    display: block;
}

.site-footer p {
    font-size: 13px;
    color: #9a9a9a;
    letter-spacing: 1px;
    font-style: italic;
}

/* Gallery Section */
.gallery-section {
    padding: 100px 20px;
    background: #ffffff;
    display: none;
}

.gallery-section.visible {
    display: block;
}

.gallery-content {
    text-align: center;
}

.gallery-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery-icon-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.gallery-title {
    font-size: 32px;
    font-weight: 400;
    color: #2b2b2b;
    margin-bottom: 60px;
    letter-spacing: 1.5px;
    font-family: 'Cormorant', serif;
}

.gallery-carousel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.gallery-images-wrapper {
    flex: 1;
    max-width: 900px;
    overflow: hidden;
}

.gallery-frame {
    border: 2px solid #2b2b2b;
    padding: 20px;
    background: #ffffff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.gallery-images {
    position: relative;
    width: 100%;
    min-height: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item.active {
    opacity: 1;
    pointer-events: auto;
}

.gallery-item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.carousel-arrow {
    background: #ffffff;
    border: 2px solid #e0e0e0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.carousel-arrow:hover {
    background: #f5f5f5;
    border-color: #8B7FC1;
    transform: scale(1.1);
}

.carousel-arrow:active {
    transform: scale(0.95);
}

.gallery-counter {
    font-size: 20px;
    color: #6a6a6a;
    font-family: 'Cormorant', serif;
    letter-spacing: 1px;
}

/* RSVP Modal */
.rsvp-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    overflow-y: auto;
    padding: 20px;
}

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

.rsvp-modal-content {
    background: #ffffff;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.4s ease;
    z-index: 1;
}

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

.rsvp-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 28px;
    line-height: 0;
    color: #6a6a6a;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: opacity 0.3s ease;
    padding: 0;
    font-family: Arial, sans-serif;
    z-index: 100;
}

.rsvp-modal-close:hover {
    opacity: 0.6;
}

.rsvp-form-container {
    padding: 70px 40px 50px 40px;
    position: relative;
    z-index: 1;
}

.guest-list-section {
    margin-bottom: 40px;
}

.counter-label {
    margin-bottom: 20px;
    text-align: center;
}

.counter-label strong {
    display: block;
    font-size: 18px;
    color: #2b2b2b;
    margin-bottom: 5px;
}

.counter-label small {
    color: #8a8a8a;
    font-size: 14px;
}

.guest-inputs {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.guest-input-row {
    position: relative;
}

.guest-name-input {
    width: 100%;
    padding: 15px;
    padding-right: 50px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 17px;
    font-family: 'Cormorant', serif;
    transition: border-color 0.3s ease;
}

.guest-name-input:focus {
    outline: none;
    border-color: #929b88;
}

.remove-guest-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid #e0e0e0;
    background: #ffffff;
    font-size: 20px;
    line-height: 0;
    color: #6a6a6a;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-family: Arial, sans-serif;
}

.remove-guest-btn:hover {
    border-color: #d32f2f;
    background: #ffebee;
    color: #d32f2f;
}

.add-guest-btn {
    width: 100%;
    padding: 12px;
    background: #f5f5f5;
    border: 2px dashed #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    color: #6a6a6a;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Cormorant', serif;
}

.add-guest-btn:hover {
    border-color: #929b88;
    background: #f9f9f9;
    color: #929b88;
}

.message-section {
    margin-bottom: 30px;
}

.message-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
    color: #4a4a4a;
    font-weight: 500;
}

.optional {
    color: #8a8a8a;
    font-weight: 400;
}

.char-count {
    color: #8a8a8a;
    font-size: 13px;
}

.message-textarea {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 17px;
    font-family: 'Cormorant', serif;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.message-textarea:focus {
    outline: none;
    border-color: #929b88;
}

.quick-messages {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.quick-msg-btn {
    padding: 8px 16px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Cormorant', serif;
}

.quick-msg-btn:hover {
    background: #929b88;
    color: #ffffff;
    border-color: #929b88;
}

.confirm-btn {
    width: 100%;
    padding: 20px;
    background: #929b88;
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Cormorant', serif;
}

.confirm-btn:hover {
    background: #7a8571;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(146, 155, 136, 0.3);
}

/* Confirmation Modal */
.confirmation-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10001;
    padding: 20px;
}

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

.confirmation-modal-content {
    background: #ffffff;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    padding: 50px 40px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: confirmationSlideIn 0.5s ease;
}

@keyframes confirmationSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.confirmation-icon {
    margin: 0 auto 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: checkmarkPop 0.6s ease 0.2s both;
}

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

.confirmation-icon svg {
    filter: drop-shadow(0 4px 10px rgba(146, 155, 136, 0.2));
}

.confirmation-title {
    font-size: 28px;
    font-weight: 600;
    color: #2b2b2b;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
    font-family: 'Cormorant', serif;
}

.confirmation-message {
    font-size: 18px;
    color: #6a6a6a;
    line-height: 1.6;
    margin-bottom: 35px;
}

.calendar-section {
    margin-bottom: 30px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.calendar-label {
    font-size: 17px;
    color: #4a4a4a;
    margin-bottom: 20px;
    font-weight: 500;
}

.calendar-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.calendar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 24px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #ffffff;
    color: #4a4a4a;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Cormorant', serif;
}

.calendar-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.calendar-btn.google-calendar:hover {
    border-color: #4285f4;
    color: #4285f4;
    background: #f7f9ff;
}

.calendar-btn.ios-calendar:hover {
    border-color: #929b88;
    color: #929b88;
    background: #f8f9f7;
}

.calendar-btn.android-calendar:hover {
    border-color: #3ddc84;
    color: #3ddc84;
    background: #f0fdf4;
}

.calendar-btn.mac-calendar:hover {
    border-color: #929b88;
    color: #929b88;
    background: #f8f9f7;
}

.calendar-btn.outlook-calendar:hover {
    border-color: #0078d4;
    color: #0078d4;
    background: #f3f9ff;
}

.confirmation-close-btn {
    width: 100%;
    padding: 16px;
    background: #929b88;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Cormorant', serif;
}

.confirmation-close-btn:hover {
    background: #7a8571;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(146, 155, 136, 0.3);
}

/* Responsive Design */
@media (max-width: 992px) {
    .section-title {
        font-size: 40px;
    }

    .program-section,
    .reception-section {
        padding: 80px 20px;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        flex-direction: column;
        padding-left: 50px;
    }

    .timeline-item::before {
        left: 20px;
        transform: translateX(0);
    }

    .time {
        text-align: left;
        padding-right: 0;
        padding-bottom: 10px;
        font-size: 16px;
    }

    .event-details {
        padding-left: 0;
    }

    .event-name {
        font-size: 22px;
    }

    .reception-details {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .gallery-title {
        font-size: 28px;
    }

    .gallery-carousel {
        gap: 15px;
    }

    .carousel-arrow {
        width: 45px;
        height: 45px;
    }

    .countdown-section {
        padding: 80px 20px;
    }

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

    .countdown-timer {
        gap: 30px;
    }

    .countdown-value {
        font-size: 56px;
    }

    .countdown-label {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .sealed-envelope {
        width: 85%;
        max-width: none;
        top: 45%;
    }

    .invitation-opened {
        width: 95%;
        max-width: none;
        height: 60vh;
        top: 45%;
    }

    .invitation-card {
        width: 85%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .unsealed-envelope {
        width: 65%;
        right: -5%;
        transform: translateY(-50%) rotate(-8deg);
    }

    .seal-instruction {
        bottom: 15%;
    }

    .seal-instruction p {
        font-size: 20px;
    }

    .scroll-indicator {
        bottom: 12vh;
    }

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

    .rsvp-section,
    .reception-section {
        padding: 60px 15px;
    }

    .rsvp-box {
        padding: 40px 25px;
    }

    .rsvp-form-container {
        padding: 60px 25px 40px 25px;
    }

    .rsvp-form-title {
        font-size: 24px;
    }

    .counter-row {
        gap: 15px;
    }

    .rsvp-title {
        font-size: 28px;
    }

    .gallery-section {
        padding: 80px 15px;
    }

    .gallery-title {
        font-size: 24px;
        margin-bottom: 40px;
    }

    .detail-title {
        font-size: 18px;
    }

    .detail-text {
        font-size: 17px;
    }

    .detail-subtext {
        font-size: 15px;
    }

    .gallery-frame {
        padding: 15px;
    }

    .gallery-images {
        min-height: 600px;
    }

    .carousel-arrow {
        width: 40px;
        height: 40px;
    }

    .carousel-arrow svg {
        width: 24px;
        height: 24px;
    }

    .countdown-section {
        padding: 60px 15px;
    }

    .countdown-title {
        font-size: 28px;
        margin-bottom: 40px;
    }

    .countdown-timer {
        gap: 20px;
    }

    .countdown-item {
        min-width: 100px;
    }

    .countdown-value {
        font-size: 48px;
    }

    .countdown-label {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .sealed-envelope {
        width: 95%;
    }

    .invitation-opened {
        width: 100%;
        height: 65vh;
    }

    .invitation-card {
        width: 90%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .unsealed-envelope {
        width: 70%;
        right: -10%;
        transform: translateY(-50%) rotate(-10deg);
    }

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

    .program-section,
    .reception-section {
        padding: 50px 10px;
    }

    .rsvp-title {
        font-size: 24px;
    }

    .rsvp-button {
        padding: 12px 30px;
        font-size: 14px;
    }

    .gallery-section {
        padding: 60px 10px;
    }

    .gallery-title {
        font-size: 20px;
    }

    .detail-title {
        font-size: 16px;
    }

    .detail-text {
        font-size: 15px;
    }

    .detail-subtext {
        font-size: 14px;
    }

    .countdown-title {
        font-size: 22px;
    }

    .gallery-carousel {
        gap: 10px;
    }

    .carousel-arrow {
        width: 35px;
        height: 35px;
    }

    .carousel-arrow svg {
        width: 20px;
        height: 20px;
    }

    .gallery-frame {
        padding: 10px;
        border-width: 1px;
    }

    .gallery-images {
        min-height: 400px;
    }

    .gallery-counter {
        font-size: 16px;
    }

    .confirmation-modal-content {
        padding: 40px 25px;
    }

    .confirmation-title {
        font-size: 24px;
    }

    .confirmation-message {
        font-size: 15px;
    }

    .calendar-btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .countdown-section {
        padding: 50px 10px;
    }

    .countdown-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .countdown-timer {
        gap: 15px;
    }

    .countdown-item {
        min-width: 80px;
    }

    .countdown-value {
        font-size: 40px;
    }

    .countdown-label {
        font-size: 12px;
        letter-spacing: 1px;
    }
}

/* Landscape Orientation Fixes */
@media (max-width: 992px) and (orientation: landscape) {
    .invitation-hero {
        height: 100vh;
        padding: 0;
    }

    .sealed-envelope {
        width: 35%;
        max-width: 400px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .sealed-envelope .envelope-image {
        max-height: 80vh;
        object-fit: contain;
    }

    .invitation-opened {
        width: 80%;
        height: 80vh;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .invitation-card {
        width: 50%;
        left: 5%;
        top: 50%;
        transform: translateY(-50%);
        z-index: 3;
    }

    .invitation-card-image {
        max-height: 75vh;
        object-fit: contain;
    }

    .unsealed-envelope {
        width: 40%;
        right: 5%;
        top: 55%;
        transform: translateY(-50%) rotate(-5deg);
    }

    .envelope-unsealed-image {
        max-height: 65vh;
        object-fit: contain;
    }

    .seal-instruction {
        bottom: 3%;
    }

    .scroll-indicator {
        bottom: 5vh;
    }

    .gallery-images {
        min-height: 400px;
    }

    .rsvp-modal,
    .map-modal,
    .confirmation-modal {
        padding: 10px;
    }

    .rsvp-modal-content,
    .confirmation-modal-content {
        max-height: 90vh;
        overflow-y: auto;
    }

    .map-modal-content {
        max-height: 85vh;
        height: 85vh;
    }

    .rsvp-form-container {
        padding: 55px 25px 30px 25px;
    }

    .countdown-section,
    .reception-section,
    .gallery-section {
        padding: 60px 20px;
    }
}

/* Portrait Orientation Adjustments */
@media (max-width: 768px) and (orientation: portrait) {
    .invitation-hero {
        height: 100vh;
    }

    .sealed-envelope {
        width: 85%;
    }

    .invitation-opened {
        width: 95%;
        height: 80vh;
    }

    .invitation-card {
        width: 85%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .unsealed-envelope {
        width: 65%;
        right: -5%;
    }
}

/* Small devices in landscape */
@media (max-height: 500px) and (orientation: landscape) {
    .gallery-images {
        min-height: 300px;
    }

    .gallery-frame {
        padding: 10px;
    }

    .countdown-section,
    .reception-section,
    .gallery-section,
    .rsvp-section {
        padding: 40px 15px;
    }

    .seal-instruction {
        bottom: 4%;
    }

    .seal-instruction p {
        font-size: 12px;
    }

    .scroll-indicator {
        bottom: 6vh;
    }

    .scroll-indicator svg {
        width: 30px;
        height: 30px;
    }
}
