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

:root {
    --primary-color: #c41e3a;
    --secondary-color: #8b0000;
    --accent-color: #ff6b6b;
    --gold-color: #d4af37;
    --text-dark: #2c2c2c;
    --text-light: #ffffff;
    --bg-light: #fdfcfb;
    --bg-dark: #1a1a1a;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    --transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #fdfbf7 0%, #f5f1e8 100%);
    color: var(--text-dark);
    overflow-x: hidden;
    min-height: 100vh;
}

h1, h2, h3 {
    font-family: 'Cormorant Garamond', serif;
}

/* ======================
   Section Transitions
   ====================== */
.section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1;
}

.section.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* ======================
   Landing Page
   ====================== */
#landing {
    background: 
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.5) 0%, transparent 70%),
        linear-gradient(135deg, #fff5f0 0%, #ffe8e8 100%);
    position: relative;
    overflow: hidden;
}

.background-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(196, 30, 58, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 107, 107, 0.05) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
    z-index: 0;
}

/* Decorative Patterns */
.decorative-pattern {
    position: absolute;
    width: 200px;
    height: 200px;
    background-image: 
        radial-gradient(circle, var(--primary-color) 1px, transparent 1px),
        radial-gradient(circle, var(--gold-color) 1px, transparent 1px);
    background-size: 20px 20px, 30px 30px;
    background-position: 0 0, 10px 10px;
    opacity: 0.15;
    z-index: 1;
}

.pattern-top-left {
    top: 0;
    left: 0;
    background-image: 
        linear-gradient(45deg, transparent 30%, var(--primary-color) 30%, var(--primary-color) 32%, transparent 32%),
        linear-gradient(-45deg, transparent 30%, var(--gold-color) 30%, var(--gold-color) 32%, transparent 32%);
    background-size: 40px 40px;
}

.pattern-top-right {
    top: 0;
    right: 0;
    background-image: 
        linear-gradient(-45deg, transparent 30%, var(--primary-color) 30%, var(--primary-color) 32%, transparent 32%),
        linear-gradient(45deg, transparent 30%, var(--gold-color) 30%, var(--gold-color) 32%, transparent 32%);
    background-size: 40px 40px;
}

.pattern-bottom-left {
    bottom: 0;
    left: 0;
    background-image: 
        linear-gradient(-45deg, transparent 30%, var(--primary-color) 30%, var(--primary-color) 32%, transparent 32%),
        linear-gradient(45deg, transparent 30%, var(--gold-color) 30%, var(--gold-color) 32%, transparent 32%);
    background-size: 40px 40px;
}

.pattern-bottom-right {
    bottom: 0;
    right: 0;
    background-image: 
        linear-gradient(45deg, transparent 30%, var(--primary-color) 30%, var(--primary-color) 32%, transparent 32%),
        linear-gradient(-45deg, transparent 30%, var(--gold-color) 30%, var(--gold-color) 32%, transparent 32%);
    background-size: 40px 40px;
}

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

.floating-element {
    position: absolute;
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 0.2;
    animation: floatAround 20s ease-in-out infinite;
}

.floating-element:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    top: 20%;
    right: 15%;
    animation-delay: 4s;
}

.floating-element:nth-child(3) {
    bottom: 25%;
    left: 15%;
    animation-delay: 8s;
}

.floating-element:nth-child(4) {
    bottom: 15%;
    right: 10%;
    animation-delay: 12s;
}

.floating-element:nth-child(5) {
    top: 50%;
    left: 5%;
    animation-delay: 16s;
}

@keyframes floatAround {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(30px, -30px) rotate(90deg);
    }
    50% {
        transform: translate(0, -60px) rotate(180deg);
    }
    75% {
        transform: translate(-30px, -30px) rotate(270deg);
    }
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ======================
   Falling Petals
   ====================== */
#petal-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 3; /* Above background but below interactive card */
}

.petal {
    position: absolute;
    width: 18px;
    height: 22px;
    background: radial-gradient(circle at 40% 30%, #fff 0 10%, transparent 11%), linear-gradient(135deg, rgba(255,182,193,0.98), rgba(255,85,170,0.98));
    border-radius: 50% 50% 40% 40% / 60% 60% 40% 40%;
    transform-origin: center;
    will-change: transform, opacity; 
    filter: drop-shadow(0 4px 6px rgba(196,30,58,0.12));
    opacity: 0.95;
    border: 1px solid rgba(255,255,255,0.25);
    box-shadow: 0 6px 18px rgba(196,30,58,0.12);
}

/* ======================
   Album Modal Styles
   ====================== */
.album-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}
.album-modal.active { display: flex; }
.album-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10,10,10,0.6);
    backdrop-filter: blur(4px);
}
.album-panel {
    position: relative;
    width: 90%;
    max-width: 920px;
    background: linear-gradient(180deg, #fff 0%, #fff8f5 100%);
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.35);
    z-index: 10001;
}
.album-close {
    position: absolute;
    right: 12px;
    top: 10px;
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
}
.album-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}
.album-stage img {
    max-width: 78%;
    max-height: 60vh;
    border-radius: 8px;
    object-fit: contain;
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}
.album-nav {
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(0,0,0,0.08);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.album-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 6px;
}
.album-thumbs img {
    width: 84px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.9;
    border: 2px solid transparent;
}
.album-thumbs img.active {
    border-color: var(--primary-color);
    opacity: 1;
}

.album-preview-block {
    margin: 18px 0 24px;
}

.album-preview-title {
    color: #7a322f;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 14px;
}

.album-preview-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.album-preview-item {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(143, 41, 36, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 12px 24px rgba(122, 50, 47, 0.08);
    cursor: pointer;
    aspect-ratio: 4 / 5;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.album-preview-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 30px rgba(122, 50, 47, 0.14);
}

.album-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.album-preview-item::after {
    content: attr(data-label);
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px 8px 8px;
    color: #fff;
    font-size: 0.72rem;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    background: linear-gradient(180deg, transparent 0%, rgba(90, 20, 20, 0.82) 100%);
}

.album-cta { margin-top: 14px; }
.album-btn {
    padding: 10px 18px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .album-preview-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .album-preview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .album-stage img {
        max-width: 68%;
        max-height: 52vh;
    }
}

@keyframes petalFall {
    0% {
        transform: translateY(-10vh) rotate(0deg) translateX(0);
        opacity: 1;
    }
    30% {
        transform: translateY(30vh) rotate(90deg) translateX(20px);
    }
    60% {
        transform: translateY(65vh) rotate(180deg) translateX(-25px);
    }
    100% {
        transform: translateY(110vh) rotate(270deg) translateX(10px) scale(0.9);
        opacity: 0.0;
    }
}

@keyframes petalSway {
    0% { transform: translateX(0); }
    50% { transform: translateX(18px); }
    100% { transform: translateX(0); }
}

.petal.spin-slow { animation: petalFall 8s linear forwards, petalSway 3s ease-in-out infinite; }
.petal.spin-medium { animation: petalFall 10s linear forwards, petalSway 4s ease-in-out infinite; }
.petal.spin-fast { animation: petalFall 7s linear forwards, petalSway 2.6s ease-in-out infinite; }


.container {
    position: relative;
    z-index: 1;
    width: 90%;
    max-width: 600px;
}

.invitation-card {
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 252, 248, 0.95) 100%);
    padding: 60px 40px;
    border-radius: 20px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 0 0 2px var(--gold-color),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    text-align: center;
    position: relative;
    animation: fadeInUp 1s ease-out;
    max-width: 500px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
}

/* Card Border Decoration */
.card-border {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px solid var(--primary-color);
    border-radius: 15px;
    opacity: 0.3;
    pointer-events: none;
}

/* Corner Decorations */
.corner-decoration {
    position: absolute;
    width: 40px;
    height: 40px;
    border-color: var(--gold-color);
    border-style: solid;
}

.corner-decoration.top-left {
    top: 0;
    left: 0;
    border-width: 3px 0 0 3px;
    border-top-left-radius: 20px;
}

.corner-decoration.top-right {
    top: 0;
    right: 0;
    border-width: 3px 3px 0 0;
    border-top-right-radius: 20px;
}

.corner-decoration.bottom-left {
    bottom: 0;
    left: 0;
    border-width: 0 0 3px 3px;
    border-bottom-left-radius: 20px;
}

.corner-decoration.bottom-right {
    bottom: 0;
    right: 0;
    border-width: 0 3px 3px 0;
    border-bottom-right-radius: 20px;
}

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

.double-happiness {
    font-size: 6rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 15px;
    animation: fadeInScale 1s ease-out;
    text-shadow: 
        2px 2px 0 var(--gold-color),
        -1px -1px 0 var(--gold-color),
        1px -1px 0 var(--gold-color),
        -1px 1px 0 var(--gold-color),
        0 3px 10px rgba(196, 30, 58, 0.3);
    line-height: 1;
    filter: drop-shadow(0 4px 8px rgba(196, 30, 58, 0.2));
}

.happiness-ornament {
    font-size: 1.2rem;
    color: var(--gold-color);
    margin-bottom: 25px;
    letter-spacing: 10px;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8) rotate(-5deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* Divider Ornaments */
.divider-ornament {
    font-size: 1.5rem;
    color: var(--gold-color);
    margin: 10px 0;
    opacity: 0.7;
}

.button-ornament {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    opacity: 0.6;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.formal-title {
    font-size: 2rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 20px;
    letter-spacing: 3px;
    position: relative;
    display: inline-block;
}

.formal-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--gold-color);
}

.guest-name {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 25px 0 20px 0;
    text-transform: capitalize;
    font-family: 'Cormorant Garamond', serif;
    text-shadow: 
        0 2px 4px rgba(196, 30, 58, 0.2),
        0 0 20px rgba(196, 30, 58, 0.1);
    letter-spacing: 1px;
}



.subtitle {
    font-size: 1rem;
    color: #666;
    margin-bottom: 40px;
    font-weight: 300;
    line-height: 1.6;
}

.couple-avatars {
    margin: 0 0 25px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: nowrap;
    padding: 20px 0;
    position: relative;
}

.couple-avatars::before,
.couple-avatars::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold-color), transparent);
}

.couple-avatars::before {
    top: 0;
}

.couple-avatars::after {
    bottom: 0;
}

.avatar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 132px;
    flex: 0 0 auto;
}

.avatar-circle {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    border: 2px solid var(--gold-color);
    box-shadow: 0 8px 18px rgba(196, 30, 58, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    font-family: 'Cormorant Garamond', serif;
    letter-spacing: 1px;
}

.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.groom-avatar {
    background: linear-gradient(135deg, #8b0000 0%, #c41e3a 100%);
}

.bride-avatar {
    background: linear-gradient(135deg, #d46a6a 0%, #ff8e8e 100%);
}

.avatar-label {
    margin-top: 10px;
    font-size: 0.98rem;
    color: var(--text-dark);
    letter-spacing: 0.5px;
}

.avatar-separator {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 500;
    flex: 0 0 auto;
}

.wedding-date {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    font-weight: 500;
    letter-spacing: 1px;
    text-shadow: 0 1px 3px rgba(196, 30, 58, 0.2);
}

.open-btn {
    margin-top: 24px;
    padding: 18px 66px;
    font-size: 1.26rem;
    font-weight: 500;
    color: var(--text-light);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: 2px solid var(--gold-color);
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 
        0 8px 25px rgba(196, 30, 58, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    letter-spacing: 2px;
}

/* Slide 3: Family information */
.family-slide .slide-title {
    margin-bottom: 26px;
}

.family-grid {
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    gap: 22px;
    align-items: stretch;
    margin-top: 12px;
}

.family-divider {
    background: linear-gradient(to bottom, transparent, rgba(143, 41, 36, 0.4), transparent);
    width: 1px;
}

.family-card {
    padding: 24px 20px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(143, 41, 36, 0.12);
}

.family-side {
    color: #6c5c53;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.family-title {
    color: #8f2924;
    font-size: 1.45rem;
    margin-bottom: 14px;
}

.family-parents {
    color: #5b4d45;
    font-size: 1.12rem;
    font-weight: 600;
    line-height: 1.6;
}

.family-address {
    margin-top: 14px;
    color: #6d6259;
    font-size: 0.98rem;
    line-height: 1.7;
}

.family-note {
    margin-top: 24px;
    color: #7a322f;
    font-size: 1.08rem;
    font-style: italic;
}

.open-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(196, 30, 58, 0.4);
}

.open-btn:active {
    transform: translateY(-1px);
}

.open-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.open-btn:hover::before {
    width: 300px;
    height: 300px;
}

.open-btn span {
    position: relative;
    z-index: 1;
}

/* ======================
   Slideshow Section
   ====================== */
#slideshow {
    background:
        linear-gradient(180deg, #8f2924 0%, #8f2924 14%, #efe2d6 14%, #efe2d6 100%);
    cursor: pointer;
}

.slides-container {
    position: relative;
    width: 90%;
    max-width: 820px;
    height: 80vh;
    margin: 0 auto;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    transform: scale(0.95);
}

.slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.slide-content {
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.35) 0%, transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.25) 0%, transparent 35%),
        linear-gradient(180deg, #f4e8de 0%, #efe2d6 100%);
    padding: 48px 42px 54px;
    border-radius: 26px;
    box-shadow: 
        0 30px 80px rgba(83, 26, 20, 0.28),
        0 0 0 1px rgba(143, 41, 36, 0.18),
        inset 0 0 0 14px rgba(255, 255, 255, 0.18);
    max-width: 760px;
    width: 100%;
    text-align: center;
    animation: slideIn 0.8s ease-out;
    position: relative;
    overflow: hidden;
}

.slide-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.18) 0 2px, transparent 2px),
        radial-gradient(circle at 70% 60%, rgba(143, 41, 36, 0.08) 0 1px, transparent 1px),
        linear-gradient(135deg, transparent 0 47%, rgba(255, 255, 255, 0.12) 47% 53%, transparent 53% 100%);
    background-size: 80px 80px, 120px 120px, 180px 180px;
    opacity: 0.65;
    pointer-events: none;
}

.slide-content > * {
    position: relative;
    z-index: 1;
}

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

.slide-ornament {
    height: 30px;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 0 L45 10 L40 20 L35 10 Z M20 10 L25 15 L20 20 L15 15 Z M60 10 L65 15 L60 20 L55 15 Z' fill='%23d4af37' opacity='0.4'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-position: center;
    margin: 0 auto 30px;
}

.slide-ornament.bottom {
    margin: 30px auto 0;
}

.slide-title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 320px;
    padding: 16px 32px;
    font-size: 2.35rem;
    font-weight: 700;
    color: #fff7f1;
    margin: 0 auto 34px;
    letter-spacing: 1px;
    background: linear-gradient(180deg, #9d302b 0%, #8f2924 100%);
    box-shadow: 0 12px 24px rgba(143, 41, 36, 0.22);
    text-transform: uppercase;
    position: relative;
}

.slide-title::before,
.slide-title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 26px;
    height: 26px;
    background: #7a1f1b;
    transform: translateY(-50%) rotate(45deg);
    z-index: -1;
}

.slide-title::before {
    left: -12px;
}

.slide-title::after {
    right: -12px;
}

.slide-title.elegant {
    font-style: normal;
}

.slide-ribbon {
    display: inline-block;
    margin-bottom: 28px;
    padding: 10px 24px;
    background: rgba(143, 41, 36, 0.12);
    color: #8f2924;
    border: 1px solid rgba(143, 41, 36, 0.18);
    border-radius: 999px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 0.88rem;
    font-weight: 700;
}

/* Slide 1: Date Display */
.date-display {
    margin: 26px 0 32px;
    padding: 26px 34px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 22px;
    color: white;
    display: inline-block;
    box-shadow: 0 15px 40px rgba(196, 30, 58, 0.3);
    border: 3px solid rgba(255, 227, 188, 0.45);
}

.date-number {
    font-size: 5rem;
    font-weight: 700;
    line-height: 1;
    font-family: 'Cormorant Garamond', serif;
}

.date-month {
    font-size: 1.5rem;
    margin: 10px 0;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.date-year {
    font-size: 2rem;
    font-weight: 300;
}

.couple-intro {
    margin: 40px 0;
}

.enhanced-intro {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
}

.intro-name-block {
    min-width: 180px;
}

.intro-role {
    display: block;
    margin-bottom: 10px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #6f625a;
}

.couple-name {
    font-size: 2.2rem;
    font-weight: 700;
    color: #8f2924;
    font-family: 'Cormorant Garamond', serif;
}

.divider {
    margin: 20px 0;
    font-size: 2rem;
}

.double-happiness-divider {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(143, 41, 36, 0.08);
    border: 2px solid rgba(143, 41, 36, 0.18);
    color: #8f2924;
    font-size: 2.5rem;
}

.slide-subtitle {
    max-width: 540px;
    margin: 0 auto;
    font-size: 1.12rem;
    color: #6c5c53;
    line-height: 1.8;
}

/* Slide 2: Story */
.story-text {
    padding: 8px 8px 0;
}

.quote {
    font-size: 1.45rem;
    font-style: italic;
    color: #7a322f;
    line-height: 1.8;
    margin-bottom: 36px;
    font-family: 'Cormorant Garamond', serif;
}

.couple-photos {
    display: flex;
    justify-content: center;
    gap: 34px;
    flex-wrap: nowrap;
}

.photo-frame {
    width: 220px;
    padding: 18px 18px 20px;
    background: rgba(255, 255, 255, 0.45);
    border: 2px solid rgba(143, 41, 36, 0.16);
    border-radius: 120px 120px 24px 24px;
    overflow: hidden;
    box-shadow: 0 16px 32px rgba(106, 48, 43, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-frame:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 36px rgba(106, 48, 43, 0.16);
}

.story-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid rgba(143, 41, 36, 0.88);
    display: block;
}

.story-photo-label {
    margin-top: 16px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #8f2924;
    font-family: 'Cormorant Garamond', serif;
}

.story-note {
    margin-top: 28px;
    color: #6d6259;
    font-size: 1rem;
    letter-spacing: 0.6px;
}

/* Slide 3: Wedding Details */
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 22px;
    margin: 28px 0 6px;
}

.detail-item {
    padding: 30px 24px;
    background: rgba(255, 255, 255, 0.44);
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(80, 34, 29, 0.08);
    border: 1px solid rgba(143, 41, 36, 0.1);
    transition: transform 0.3s ease;
}

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

.detail-item .icon {
    font-size: 2rem;
    margin-bottom: 12px;
    color: #8f2924;
}

.detail-item h3 {
    font-size: 1.15rem;
    color: #8f2924;
    margin-bottom: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.detail-item p {
    font-size: 1rem;
    color: #5b4d45;
    line-height: 1.7;
}

/* Slide 4: Location */
.location-info {
    margin: 26px 0 0;
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.location-detail,
.location-detail h3 {
    font-size: 2rem;
    color: #8f2924;
    margin-bottom: 15px;
}

.location-detail {
    padding: 28px 22px;
    background: rgba(255, 255, 255, 0.38);
    border-radius: 18px;
    border: 1px solid rgba(143, 41, 36, 0.1);
}

.venue-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #5e342f;
}

.address {
    font-size: 1.2rem;
    color: #6c5c53;
    line-height: 1.8;
}

.map-placeholder {
    padding: 34px;
    background: linear-gradient(135deg, rgba(143, 41, 36, 0.06) 0%, rgba(255, 255, 255, 0.42) 100%);
    border-radius: 18px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(143, 41, 36, 0.1);
}

.map-icon {
    font-size: 2.4rem;
    margin-bottom: 12px;
    color: #8f2924;
}

.map-placeholder p {
    color: #6d6259;
    line-height: 1.8;
}

.map-btn {
    margin-top: 20px;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--gold-color) 0%, var(--accent-color) 100%);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

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

/* Slide 5: RSVP */
.rsvp-content {
    padding: 10px 0 0;
}

.rsvp-text {
    font-size: 1.15rem;
    color: #6f6058;
    margin-bottom: 28px;
    line-height: 1.8;
    font-style: italic;
}

.rsvp-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 34px;
}

.rsvp-btn {
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rsvp-btn.confirm {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3);
}

.rsvp-btn.confirm:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(39, 174, 96, 0.4);
}

.rsvp-btn.decline {
    background: linear-gradient(135deg, #7f8c8d 0%, #95a5a6 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(127, 140, 141, 0.3);
}

.rsvp-btn.decline:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(127, 140, 141, 0.4);
}

.contact-info {
    margin: 0;
    padding: 28px;
    background: rgba(255, 255, 255, 0.42);
    border-radius: 18px;
    border: 1px solid rgba(143, 41, 36, 0.1);
}

.contact-info p {
    font-size: 1.05rem;
    margin: 10px 0;
    color: #5e5049;
}

.thank-you {
    font-size: 2rem;
    font-weight: 600;
    color: #8f2924;
    margin-top: 28px;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
}

/* ======================
   Slide Controls
   ====================== */
.slide-controls {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 30px;
    z-index: 10;
}

.control-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(196, 30, 58, 0.9);
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.control-btn:hover {
    background: rgba(196, 30, 58, 1);
    transform: scale(1.1);
}

.control-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.slide-indicators {
    display: flex;
    gap: 15px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--gold-color);
    transform: scale(1.3);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.7);
}

/* Progress Bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 100;
}

.progress-fill {
    height: 100%;
    background: var(--gold-color);
    transition: width 0.3s ease;
    width: 0%;
}

/* Music Toggle */
.music-toggle {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(196, 30, 58, 0.9);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.music-toggle:hover {
    transform: scale(1.1);
    background: rgba(196, 30, 58, 1);
}

/* ======================
   Responsive Design
   ====================== */
@media (max-width: 768px) {
    .formal-title {
        font-size: 1.7rem;
        letter-spacing: 2px;
    }

    .guest-name {
        font-size: 2.3rem;
    }

    .couple-avatars {
        gap: 12px;
    }

    .avatar-item {
        width: 110px;
    }

    .avatar-circle {
        width: 94px;
        height: 94px;
        font-size: 1.35rem;
    }

    .avatar-label {
        font-size: 0.9rem;
    }

    .invitation-card {
        padding: 40px 30px;
    }
    
    .double-happiness {
        font-size: 4.5rem;
    }
    
    .decorative-pattern {
        width: 150px;
        height: 150px;
        opacity: 0.1;
    }
    
    .corner-decoration {
        width: 30px;
        height: 30px;
    }

    .slide-content {
        padding: 40px 30px;
    }

    .family-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .family-divider {
        display: none;
    }

    .family-card {
        padding: 20px 16px;
    }

    .slide-title {
        min-width: 0;
        width: calc(100% - 28px);
        font-size: 1.95rem;
        padding: 14px 24px;
    }

    .slide-ribbon {
        letter-spacing: 2px;
    }

    .date-number {
        font-size: 3.5rem;
    }

    .enhanced-intro {
        gap: 18px;
    }

    .intro-name-block {
        min-width: 150px;
    }

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

    .couple-photos {
        gap: 18px;
    }

    .photo-frame {
        width: 180px;
        padding: 14px 14px 18px;
    }

    .rsvp-buttons {
        flex-direction: column;
        width: 100%;
    }

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

    .slide-controls {
        bottom: 60px;
        gap: 20px;
    }

    .control-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .music-toggle {
        top: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .invitation-card {
        padding: 30px 20px;
    }

    .formal-title {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }

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

    .open-btn {
        padding: 16px 46px;
        font-size: 1.08rem;
        letter-spacing: 1px;
    }
    
    .double-happiness {
        font-size: 3.5rem;
    }
    
    .couple-avatars {
        gap: 10px;
    }

    .avatar-item {
        width: 98px;
    }

    .avatar-circle {
        width: 82px;
        height: 82px;
        font-size: 1.15rem;
    }

    .avatar-label {
        font-size: 0.82rem;
    }
    
    .wedding-date {
        font-size: 1.1rem;
    }
    
    .decorative-pattern {
        width: 100px;
        height: 100px;
    }

    .slide-content {
        padding: 30px 20px;
        border-radius: 20px;
        box-shadow:
            0 20px 40px rgba(83, 26, 20, 0.22),
            0 0 0 1px rgba(143, 41, 36, 0.14),
            inset 0 0 0 8px rgba(255, 255, 255, 0.16);
    }

    .slide-title {
        width: calc(100% - 18px);
        font-size: 1.45rem;
        padding: 12px 14px;
        margin-bottom: 24px;
    }

    .slide-title::before,
    .slide-title::after {
        width: 18px;
        height: 18px;
    }

    .slide-ribbon {
        font-size: 0.78rem;
        padding: 9px 16px;
        letter-spacing: 1.5px;
    }

    .date-display {
        padding: 20px 26px;
        margin: 20px 0 24px;
    }

    .enhanced-intro {
        gap: 12px;
    }

    .intro-name-block {
        min-width: 120px;
    }

    .couple-name {
        font-size: 1.6rem;
    }

    .intro-role {
        font-size: 0.72rem;
        letter-spacing: 1.4px;
    }

    .double-happiness-divider {
        width: 60px;
        height: 60px;
        font-size: 1.9rem;
    }

    .quote {
        font-size: 1.2rem;
    }

    .couple-photos {
        gap: 12px;
    }

    .photo-frame {
        width: 132px;
        padding: 10px 10px 14px;
        border-radius: 80px 80px 20px 20px;
    }

    .story-photo-label {
        font-size: 1rem;
        margin-top: 12px;
    }

    .story-note,
    .slide-subtitle,
    .address,
    .map-placeholder p,
    .contact-info p {
        font-size: 0.95rem;
    }

    .family-title {
        font-size: 1.24rem;
    }

    .family-parents {
        font-size: 1rem;
    }

    .family-address,
    .family-note {
        font-size: 0.92rem;
    }

    .location-detail,
    .map-placeholder,
    .contact-info,
    .detail-item {
        padding: 22px 16px;
    }

    .slides-container {
        height: 85vh;
    }
}

/* ======================
   Animations & Effects
   ====================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background: var(--gold-color);
    color: white;
}

/* Tap indicator */
.tap-indicator {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    z-index: 5;
    animation: fadeInOut 3s ease-in-out infinite;
    pointer-events: none;
}

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

#slideshow .tap-indicator {
    display: block;
}

#landing .tap-indicator {
    display: none;
}
