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

@font-face {
    font-family: 'Parfumerie Script';
    src: url('fonts/parfumerie-script-regular.otf') format('woff2');
}

:root {
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Montserrat', sans-serif;
    --color-dark: #1a1a1a;
    --color-light: #f5f5f5;
    --color-gray: #565545;
    --color-white: #ffffff;
    --burgundy: #881030;
    --cream: #f5f5f5;
    --cream-brown: #A79889;
    --spacing-lg: 120px;
    --spacing-md: 60px;
    --spacing-sm: 30px;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    scroll-behavior: smooth;
    font-family: var(--font-sans);
    color: var(--color-dark);
    line-height: 1.6;
}

main {
    flex: 1;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

/* ===========================
   NAVIGATION
   =========================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-left, .nav-right {
    display: flex;
    gap: 20px;
    align-items: center;
    flex: 1;
}

.nav-right {
    justify-content: flex-end;
}

.nav-center {
    flex: 1;
    text-align: center;
}

.nav-title {
    font-family: 'Great Vibes';
    font-size: 28px;
    font-weight: 500;
    letter-spacing: 2px;
}

.navbar a {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 1px;
}

.btn-rsvp {
    padding: 8px 20px;
    border: 1px solid var(--color-dark);
    background: var(--color-white);
    font-weight: 500;
}

.btn-rsvp:hover {
    background: var(--color-dark);
    color: var(--color-white);
    opacity: 1;
}

/* ===========================
   HERO SECTION
   =========================== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.3)),
                url('photos/EXP_DSC04300.jpg') center/cover no-repeat;
    position: relative;
    color: var(--color-white);
    text-align: center;
}

.hero-content {
    z-index: 2;
    padding: 0 20px;
}

.hero-subtitle {
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-title {
    font-family: 'Parfumerie Script';
    text-align: center;
    font-size: 60px;
    font-weight: 400;
    letter-spacing: 2px;
    margin-bottom: 20px;
    line-height: 1.3;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.first-names {
    font-size: 1.5em;
}

.last-name {
    font-size: 1.5em;
    padding-left: 0;
}

.hero-date {
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 4px;
}

/* ===========================
   STORY SECTION
   =========================== */
.story-section {
    padding: 60px 30px;
    background: var(--color-white);
    text-align: center;
}

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

.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.section-header h2 {
    font-family: var(--font-serif);
    font-size: 36px;
    font-weight: 400;
    white-space: nowrap;
}

.divider {
    width: 150px;
    height: 1px;
    background: var(--color-dark);
}

.btn-dark {
    padding: 12px 40px;
    background: var(--color-dark);
    color: var(--color-white);
    border: none;
    font-size: 14px;
    letter-spacing: 2px;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: all 0.3s ease;
}

.btn-dark:hover {
    background: var(--color-gray);
}
/* ===========================
   JOIN US / RSVP SECTION FIXES
   =========================== */
.story-section {
    padding: 60px 20px;
    background: var(--color-white);
    text-align: center;
}

.join-overlay {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.join-subtitle {
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-transform: uppercase;
    color: var(--color-dark);
    line-height: 1.6;
}

.join-title {
    color: #881030;
    font-family: var(--font-serif);
    font-size: 36px;
    font-weight: 300;
    margin: 30px auto 20px;
    line-height: 1.3;
}

.rsvp-message {
    font-size: 15px;
    margin-bottom: 20px;
}

.rsvp-deadline {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.5px;
    margin-bottom: 30px;
    line-height: 1.8;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-transform: none;
}

.deadline-date {
    color: #881030;
    font-weight: 600;
}

.rsvp-button {
    display: inline-block;
    padding: 14px 50px;
    background: var(--color-dark);
    color: var(--color-white);
    border: none;
    font-size: 14px;
    letter-spacing: 2px;
    cursor: pointer;
    font-family: var(--font-sans);
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 20px auto;
    text-decoration: none;
    border-radius: 4px;
}

.rsvp-button:hover {
    background: var(--color-gray);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 1;
}

.rsvp-instruction {
    font-size: 12px;
    margin-top: 15px;
    color: var(--color-gray);
    font-style: italic;
}

/* Countdown styling for this section */
.story-section .countdown {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px auto;
    flex-wrap: wrap;
    max-width: 480px;
}

.story-section .countdown-item {
    background: var(--color-white);
    border-radius: 8px;
    padding: 15px 10px;
    width: 80px;
    height: 80px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.story-section .countdown-number {
    font-size: 2rem;
    font-weight: 600;
    color: #881030;
    margin-bottom: 5px;
}

.story-section .countdown-label {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: var(--color-dark);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ===========================
   CEREMONY SECTION
   =========================== */
.ceremony-section {
    padding: 60px 20px;
    background: var(--color-white);
}

.ceremony-grid {
    display: grid;
    grid-template-columns: 1fr;
    min-height: auto;
    align-items: center;
    gap: 40px;
}

.ceremony-image {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.ceremony-image::before {
    content: '';
    width: 100%;
    max-width: 350px;
    height: 450px;
    background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)),
                url('photos/MS_DSC04053.jpg') center/cover no-repeat;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: block;
}

.ceremony-details {
    background: var(--color-white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    text-align: center;
}

.ceremony-details h2 {
    font-family: var(--font-serif);
    font-size: 48px;
    font-weight: 400;
    margin-bottom: 20px;
}

.time {
    font-size: 24px;
    font-weight: 300;
    margin-bottom: 30px;
}

.location-details {
    line-height: 1.8;
}

.venue-name {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 10px;
}

.address {
    font-size: 16px;
    font-weight: 300;
}

.map-link {
    display: inline-block;
    margin-top: 20px;
    font-size: 16px;
    text-decoration: underline;
    font-weight: 500;
}

/* ===========================
   RECEPTION SECTION
   =========================== */
.reception-section {
    padding: 60px 20px;
    background: var(--color-light);
}

.reception-grid {
    display: grid;
    grid-template-columns: 1fr;
    min-height: auto;
    align-items: center;
    gap: 40px;
}

.reception-details {
    background: var(--color-light);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    text-align: center;
}

.reception-details h2 {
    font-family: var(--font-serif);
    font-size: 48px;
    font-weight: 400;
    margin-bottom: 20px;
}

.reception-image {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.reception-image::before {
    content: '';
    width: 100%;
    max-width: 350px;
    height: 450px;
    background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)),
                url('photos/MS_DSC04126.jpg') center/cover no-repeat;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: block;
}

/* ===========================
   CAROUSEL SECTION
   =========================== */
.carousel-section {
    padding: 60px 20px;
    background: var(--cream);
}

.carousel-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.carousel-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    min-height: 400px;
    max-height: 600px;
    object-fit: cover;
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(77, 0, 17, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--burgundy);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: 2px solid white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: white;
    transform: scale(1.3);
}

/* ===========================
   DRESS CODE SECTION
   =========================== */
.dresscode-section {
    padding: 60px 20px;
    color: #881030;
    background: var(--color-white);
}

.dresscode-grid {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 30px;
    max-width: 1100px;
    margin: auto;
}

.dresscode-details {
    background: #fff;
    border-radius: 18px;
    padding: 20px 30px;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-height: auto;
    position: relative;
}

.dresscode-details h2 {
    font-family: var(--font-serif, 'Georgia', serif);
    font-size: 48px;
    margin-bottom: 10px;
    font-weight: 800;
}

.dresscode-details h3 {
    font-family: var(--font-serif, 'Georgia', serif);
    font-size: 40px;
    margin-bottom: 40px;
    font-weight: 800;
}
.dresscode-palettes {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.swatch {
    display: inline-block;
    width: 26px;
    height: 26px;
    border-radius: 7px;
    border: 1.5px solid #e5e5e5;
    box-shadow: 0 1px 2px #e1e1e1;
}

.swatch.black { background: #101010; }
.swatch.silver { background: #C0C0C0; }
.swatch.burgundy { background: #7B2330; }
.swatch.champagne { background: #F7E7CE; }

.guest-prin {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: black;
}
.guest-guest {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    margin-top: 10px;
    color: black;
}

.dress-desc {
    color: #101010;
    font-size: 18px;
    margin-bottom: 6px;
}

.dresscode-link {
    color: #881030;
    font-size: 15px;
    font-weight: 400;
    text-decoration: underline;
}

.dress-hint {
    font-size: 15px;
    color: #881030;
    margin-top: 15px;
    font-weight: 400;
    letter-spacing: 0.05em;
}

.dresscode-video-card {
    background: linear-gradient(330deg, rgba(123,35,48,0.07), #fff 60%);
    border-radius: 22px;
    padding: 30px 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: auto;
}

.dresscode-video-card video {
    width: 100%;
    max-width: 280px;           /* Portrait width for mobile */
    height: 500px;              /* Fixed portrait height */
    object-fit: cover;          /* Crops to fill container */
    object-position: center;    /* Centers the crop */
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}
/* ===========================
   COUNTDOWN TIMER
   =========================== */
.countdown {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 40px auto 0 auto;
    flex-wrap: wrap;
    max-width: 450px;
}

.countdown-item {
    background: var(--color-white);
    border-radius: 8px;
    padding: 15px 8px;
    width: 75px;
    height: 75px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.countdown-number {
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--color-dark);
    text-shadow: none;
    margin-bottom: 4px;
}

.countdown-label {
    font-family: var(--font-serif);
    font-size: 0.8rem;
    color: var(--cream-brown);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: capitalize;
}

/* ===========================
   MODAL
   =========================== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(30, 30, 30, 0.65);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.modal-overlay.show {
    display: flex;
}

.modal-content {
    background: var(--color-white);
    border-radius: 12px;
    padding: 40px 30px 30px;
    max-width: 400px;
    width: 90vw;
    box-shadow: 0 10px 40px rgba(0,0,0,0.22), 0 2px 4px rgba(0,0,0,0.08);
    text-align: left;
    position: relative;
    font-family: var(--font-sans);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--color-dark);
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s;
}

.modal-close-btn:hover {
    color: var(--color-gray);
}

.rsvp-form .form-group {
    margin-bottom: 18px;
}

.rsvp-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.95rem;
    color: var(--color-dark);
    font-family: var(--font-sans);
}

.rsvp-form input[type="text"], .rsvp-form select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--color-gray);
    border-radius: 6px;
    font-size: 1rem;
    background: #f9f9f6;
    color: var(--color-dark);
    font-family: var(--font-sans);
}

.rsvp-btn {
    display: block;
    width: 100%;
    padding: 12px 0;
    background: var(--color-dark);
    color: var(--color-white);
    border: none;
    border-radius: 8px;
    font-size: 1.05rem;
    font-family: var(--font-sans);
    cursor: pointer;
    margin-top: 12px;
    letter-spacing: 1px;
    transition: background 0.2s;
}

.rsvp-btn:hover {
    background: var(--color-gray);
}

.alert-message {
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 0.95rem;
    margin-bottom: 12px;
    background: #f5e8e3;
    color: #a0392d;
    display: none;
}

.alert-message.show {
    display: block;
}

.search-results {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    max-height: 180px;
    overflow-y: auto;
    margin-top: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.07);
    position: absolute;
    z-index: 20;
    width: 100%;
    left: 0;
}

.search-result-item {
    padding: 10px;
    cursor: pointer;
    font-size: 0.95em;
    color: var(--color-dark);
    transition: background 0.2s;
}

.search-result-item:hover,
.no-results,
.error-message {
    background: var(--color-light);
    color: var(--color-gray);
}

.guest-info-card {
    background: var(--color-light);
    border-radius: 8px;
    padding: 15px 10px;
    margin-bottom: 15px;
    font-family: var(--font-sans);
}

.already-responded {
    text-align: center;
    font-size: 1em;
}

.celebration-icon {
    font-size: 2.5em;
    margin-bottom: 8px;
}

/* ===========================
   FLOATING ELEMENTS
   =========================== */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.floating-element {
    position: absolute;
    opacity: 0.08;
    animation: elegantFloat 20s infinite linear;
}

.floating-element.heart {
    color: var(--burgundy);
    font-size: 20px;
}

.floating-element.star {
    color: var(--cream-brown);
    font-size: 16px;
}

.photo-section {
    background: var(--color-light);
    padding: 60px 20px 40px;
}

.fullwidth-photo {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.floating-hearts-taipei {
    position: relative;
    overflow: hidden;
    height: 180px;
}

.floating-hearts-taipei .heart {
    position: absolute;
    bottom: -10px;
    font-size: 1.3rem;
    color: rgba(138, 23, 42, 0.8);
    opacity: 0;
    animation: floating-heart 10s infinite ease-in-out;
}

@keyframes floating-heart {
    0%   { opacity: 0; transform: translateY(0); }
    10%  { opacity: 1; transform: translateY(-50px) scale(1.05); }
    50%  { opacity: 1; transform: translateY(-150px) scale(1.2); }
    100% { opacity: 0; transform: translateY(-240px) scale(1); }
}

.floating-hearts-taipei .heart:nth-child(1) { left: 25%; animation-delay: 0s; }
.floating-hearts-taipei .heart:nth-child(2) { left: 55%; animation-delay: 3s; }
.floating-hearts-taipei .heart:nth-child(3) { left: 75%; animation-delay: 6s; }

/* ===========================
   FOOTER
   =========================== */
footer {
    margin-top: auto;
    background: var(--color-light);
    padding: 40px 30px 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1400px;
    margin: 0 auto 30px;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-left, .footer-center, .footer-right {
    flex: 1;
    min-width: 200px;
}

.footer-left {
    text-align: left;
}

.footer-center {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    text-align: center;
}

.footer-right {
    text-align: right;
}

.footer-left p, .footer-right p {
    margin-bottom: 10px;
    font-weight: 500;
}

.footer-left a, .footer-center a, .footer-right p:last-child {
    font-size: 14px;
    text-decoration: underline;
}

.footer-center a {
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.footer-center a:hover {
    border-bottom-color: var(--color-dark);
}

.footer-credits {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 13px;
    color: #881030;
}

.footer-credits a {
    text-decoration: underline;
}

.footer-message {
    font-family: 'Great Vibes', cursive;
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--color-dark);
}

.footer-hearts {
    color: var(--burgundy);
    font-size: 1.8rem;
    letter-spacing: 10px;
}

/* ===========================
   RESPONSIVE DESIGN - MOBILE FIRST
   =========================== */
@media (min-width: 481px) and (max-width: 768px) {
    .join-title {
        font-size: 32px;
    }
    
    .rsvp-button {
        padding: 13px 45px;
    }
    
    .story-section .countdown-item {
        width: 75px;
        height: 75px;
    }
}


/* Tablets and Small Desktops (min-width: 768px) */
@media (min-width: 768px) {
    .navbar {
        padding: 25px 40px;
    }
    
    .nav-title {
        font-size: 32px;
    }
    
    .navbar a {
        font-size: 14px;
    }
    
    .btn-rsvp {
        padding: 10px 25px;
    }
    
    .hero-title {
        font-size: 80px;
        text-align: right;
    }
    
    .first-names {
        font-size: 2em;
    }
    
    .last-name {
        font-size: 2em;
        padding-left: 200px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-date {
        font-size: 22px;
        letter-spacing: 6px;
    }
    
    .story-section {
        padding: 80px 40px;
    }
    
    .section-header h2 {
        font-size: 42px;
    }
    
    .divider {
        width: 120px;
    }
    
    .story-section {
        padding: 80px 40px;
    }
    
    .join-title {
        font-size: 48px;
        margin: 35px auto 25px;
    }
    
    .join-subtitle {
        font-size: 15px;
        letter-spacing: 2.5px;
    }
    
    .rsvp-message {
        font-size: 16px;
    }
    
    .rsvp-deadline {
        font-size: 15px;
    }
    
    .rsvp-button {
        padding: 15px 55px;
        font-size: 15px;
    }
    
    .story-section .countdown {
        gap: 20px;
        margin: 35px auto;
    }
    
    .story-section .countdown-item {
        width: 90px;
        height: 90px;
        padding: 18px 12px;
    }
    
    .story-section .countdown-number {
        font-size: 2.3rem;
    }
    
    .story-section .countdown-label {
        font-size: 0.85rem;
    }
    
    .ceremony-grid, .reception-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .ceremony-image::before, .reception-image::before {
        width: 350px;
        height: 500px;
    }
    
    .ceremony-details h2, .reception-details h2 {
        font-size: 56px;
    }
    
    .time {
        font-size: 28px;
    }
    
    .venue-name {
        font-size: 22px;
    }
    
    .address {
        font-size: 18px;
    }
    
    .dresscode-grid {
        grid-template-columns: 1.4fr 1fr;
        gap: 40px;
    }
    
    .dresscode-details {
        padding: 30px 40px;
        min-height: 550px;
    }
    
    .dresscode-details h2 {
        font-size: 42px;
    }
    
    .dresscode-video-card {
        padding: 36px 10px;
        min-height: 540px;
    }
    
    .dresscode-video-card video {
        max-width: 320px;       /* Slightly wider on tablets */
        height: 550px;          /* Taller on tablets */
    }
    
    .carousel-container {
        border-radius: 30px;
    }
    
    .carousel-slide img {
        height: 550px;
    }
    
    .carousel-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .carousel-btn.prev {
        left: 20px;
    }
    
    .carousel-btn.next {
        right: 20px;
    }
    
    .carousel-indicators {
        bottom: 20px;
        gap: 10px;
    }
    
    .carousel-dot {
        width: 12px;
        height: 12px;
    }
    
    .countdown {
        gap: 25px;
    }
    
    .countdown-item {
        width: 85px;
        height: 85px;
        padding: 18px 10px;
    }
    
    .countdown-number {
        font-size: 2.2rem;
    }
    
    .countdown-label {
        font-size: 0.85rem;
    }
    
    .footer-content {
        flex-wrap: nowrap;
    }
    
    .footer-left, .footer-right {
        text-align: left;
    }
    
    .footer-right {
        text-align: right;
    }
}

/* Desktops and Large Screens (min-width: 1024px) */
@media (min-width: 1024px) {
    .navbar {
        padding: 25px 50px;
    }
    
    .nav-title {
        font-size: 36px;
    }
    
    .btn-rsvp {
        padding: 10px 30px;
    }
    
    .hero-title {
        font-size: 100px;
    }
    
    .last-name {
        padding-left: 400px;
    }
    
    .hero-date {
        font-size: 24px;
        letter-spacing: 8px;
    }
    
    .story-section {
        padding: var(--spacing-lg) var(--spacing-md);
    }
    
    .section-header {
        gap: 40px;
    }
    
    .section-header h2 {
        font-size: 48px;
    }
    
    .divider {
        width: 150px;
    }
    
    .btn-dark, .btn-light {
        padding: 15px 50px;
    }
    
    .join-title {
        font-size: 56px;
    }
    
    .rsvp-button {
        padding: 16px 60px;
        font-size: 16px;
    }
    
    .ceremony-image::before, .reception-image::before {
        width: 400px;
        height: 550px;
    }
    
    .ceremony-details h2, .reception-details h2 {
        font-size: 64px;
    }
    
    .reception-details h2 {
        font-size: 72px;
    }
    
    .time {
        font-size: 32px;
    }
    
    .dresscode-details h2 {
        font-size: 46px;
    }
    
    .dresscode-video-card video {
        max-width: 350px;       /* Desktop portrait width */
        height: 600px;          /* Desktop portrait height */
    }
    .carousel-slide img {
        height: 600px;
    }
    
    .countdown-item {
        width: 90px;
        height: 90px;
        padding: 20px 10px;
    }
    
    .countdown-number {
        font-size: 2.3rem;
        margin-bottom: 6px;
    }
    
    .countdown-label {
        font-size: 0.9rem;
    }
    
    .floating-element.heart {
        font-size: 24px;
    }
    
    .floating-element.star {
        font-size: 18px;
    }
    
    .floating-hearts-taipei .heart {
        font-size: 1.5rem;
    }
    
    .footer-message {
        font-size: 2rem;
    }
    
    .footer-hearts {
        font-size: 2rem;
    }
}

/* Extra Large Screens (min-width: 1440px) */
@media (min-width: 1440px) {
    .last-name {
        padding-left: 900px;
    }
    
    .ceremony-section, .reception-section {
        padding: 60px 0;
    }
     .dresscode-video-card video {
        max-width: 400px;       /* Maximum portrait width */
        height: 600px;          /* Maximum portrait height */
    }
}

/* Small Mobile Devices (max-width: 480px) */
@media (max-width: 480px) {
    .nav-left a, .nav-right a {
        display: none;
    }
    
    .nav-left .btn-rsvp, .nav-right .btn-rsvp {
        display: inline-block;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .divider {
        width: 60px;
    }
    
    .join-title {
        font-size: 28px;
        margin: 20px auto 15px;
    }
    
    .join-subtitle {
        font-size: 13px;
        letter-spacing: 1px;
        margin-bottom: 12px;
    }
    
    .rsvp-message {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .rsvp-deadline {
        font-size: 13px;
        margin-bottom: 25px;
        padding: 0 10px;
    }
    
    .rsvp-button {
        padding: 12px 40px;
        font-size: 13px;
        width: auto;
        margin: 15px auto;
    }
    
    .rsvp-instruction {
        font-size: 11px;
        margin-top: 12px;
    }
    
    .story-section .countdown {
        gap: 10px;
        margin: 20px auto;
    }
    
    .story-section .countdown-item {
        width: 65px;
        height: 65px;
        padding: 10px 5px;
    }
    
    .story-section .countdown-number {
        font-size: 1.5rem;
    }
    
    .story-section .countdown-label {
        font-size: 0.7rem;
    }
    
    .ceremony-details h2, .reception-details h2 {
        font-size: 36px;
    }
    
    .time {
        font-size: 20px;
    }
    
    .venue-name, .guest-prin, .guest-guest {
        font-size: 18px;
    }
    
    .address {
        font-size: 15px;
    }
    
    .dresscode-details h2 {
        font-size: 32px;
    }
    
    .countdown {
        gap: 12px;
    }
    
    .countdown-item {
        width: 65px;
        height: 65px;
        padding: 10px 5px;
    }
    
    .countdown-number {
        font-size: 1.6rem;
    }
    
    .countdown-label {
        font-size: 0.75rem;
    }
    
    .footer-message {
        font-size: 1.5rem;
    }

    .dresscode-video-card {
        padding: 20px 10px;
        min-height: auto;
    }
    
    .dresscode-video-card video {
        max-width: 260px;       /* Compact mobile width */
        height: 450px;          /* Compact mobile height */
    }
}
