/* ============================================
   UNDANGAN DIGITAL ULTRA MEWAH — MIDNIGHT CHAMPAGNE
   Tema: Dark Luxury · Rose Gold · Champagne · Glassmorphism
   Fonts: Cormorant Garamond, Cinzel, Raleway, Great Vibes
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400;1,600&family=Cinzel:wght@400;600;700&family=Cinzel+Decorative:wght@400;700&family=Raleway:wght@200;300;400;500;600&family=Great+Vibes&display=swap');

:root {
    /* Rose Gold & Champagne */
    --champagne: #f0ddb8;
    --champagne-light: #fdf3e0;
    --champagne-dark: #c9a55a;
    --rose-gold: #b5823a;
    --rose-gold-light: #daa55f;
    --rose-gold-glow: rgba(181, 130, 58, 0.45);

    /* Deep Midnight Backgrounds */
    --midnight:   #060810;
    --midnight-2: #0b1018;
    --midnight-3: #0f1620;
    --midnight-4: #141d28;
    --midnight-5: #192330;
    --midnight-blue: #080d18;

    /* Text */
    --ivory: #fdf8f0;
    --ivory-dim: rgba(253, 248, 240, 0.65);
    --ivory-faint: rgba(253, 248, 240, 0.30);

    /* Glass Effects */
    --glass:        rgba(255, 255, 255, 0.035);
    --glass-mid:    rgba(255, 255, 255, 0.055);
    --glass-hover:  rgba(255, 255, 255, 0.08);
    --glass-border: rgba(201, 165, 90, 0.18);
    --glass-border-hover: rgba(201, 165, 90, 0.5);

    /* Shadows */
    --shadow-xl:   0 30px 80px rgba(0, 0, 0, 0.7);
    --shadow-lg:   0 20px 60px rgba(0, 0, 0, 0.55);
    --shadow-gold: 0 12px 50px rgba(181, 130, 58, 0.30);
    --shadow-gold-sm: 0 6px 24px rgba(181, 130, 58, 0.22);
    --shadow-glow: 0 0 60px rgba(201, 165, 90, 0.12);

    /* Gradients */
    --grad-gold:   linear-gradient(135deg, #fdf3e0 0%, #e8c87a 35%, #c9a55a 65%, #a87430 100%);
    --grad-gold-h: linear-gradient(90deg, transparent, var(--champagne-dark), transparent);
    --grad-gold-v: linear-gradient(180deg, var(--champagne-dark), transparent);
    --grad-bg-1:   linear-gradient(180deg, var(--midnight) 0%, var(--midnight-3) 100%);
    --grad-bg-2:   linear-gradient(180deg, var(--midnight-3) 0%, var(--midnight-2) 100%);
    --grad-bg-3:   linear-gradient(180deg, var(--midnight-2) 0%, var(--midnight-4) 100%);
    --grad-section:linear-gradient(180deg, var(--midnight-2) 0%, var(--midnight-5) 100%);
}

*, *::before, *::after {
    margin: 0; padding: 0; box-sizing: border-box;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: 'Raleway', sans-serif;
    background: var(--midnight);
    color: var(--ivory);
    overflow-x: hidden;
    line-height: 1.75;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--midnight); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--champagne-dark), var(--rose-gold));
    border-radius: 4px;
}

/* ============================================
   ENVELOPE / COVER PAGE
   ============================================ */
#envelope-cover {
    position: fixed; inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--midnight);
    overflow: hidden;
    transition: opacity 1.4s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 1.4s ease;
}

/* Rich radial glow background */
#envelope-cover::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 50% -10%, rgba(201,165,90,0.09) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 85% 90%, rgba(181,130,58,0.06) 0%, transparent 65%),
        radial-gradient(ellipse 40% 35% at 10% 80%, rgba(201,165,90,0.05) 0%, transparent 60%);
    pointer-events: none;
}

#envelope-cover.opened {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Outer frame — animated gradient border */
.cover-frame {
    position: absolute;
    inset: 18px;
    pointer-events: none;
    border: 1px solid rgba(201,165,90,0.10);
}
.cover-frame::before, .cover-frame::after {
    content: '';
    position: absolute;
    width: 70px; height: 70px;
    border-color: var(--champagne-dark);
    border-style: solid;
    transition: all 0.5s ease;
}
.cover-frame::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.cover-frame::after  { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

/* Inner frame */
.cover-frame-inner {
    position: absolute;
    inset: 32px;
    pointer-events: none;
    border: 1px solid rgba(201,165,90,0.06);
}
.cover-frame-inner::before, .cover-frame-inner::after {
    content: '';
    position: absolute;
    width: 40px; height: 40px;
    border-color: rgba(201,165,90,0.3);
    border-style: solid;
}
.cover-frame-inner::before { bottom: -1px; left: -1px; border-width: 0 0 1px 1px; }
.cover-frame-inner::after  { top: -1px; right: -1px; border-width: 1px 1px 0 0; }

.envelope-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 36px;
    z-index: 1;
    padding: 20px;
}

/* Guest Name */
.envelope-guest {
    text-align: center;
    animation: fadeSlideDown 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.envelope-guest .label {
    font-family: 'Cinzel', serif;
    font-size: 0.6rem;
    letter-spacing: 7px;
    text-transform: uppercase;
    color: var(--champagne-dark);
    margin-bottom: 10px;
    opacity: 0.75;
}
.envelope-guest .name {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(2rem, 7vw, 4.2rem);
    color: var(--champagne-light);
    text-shadow:
        0 0 30px rgba(201, 165, 90, 0.5),
        0 0 80px rgba(201, 165, 90, 0.2);
    line-height: 1.2;
}

/* Thin ornament line below guest name */
.envelope-guest-line {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    margin-top: 10px;
    opacity: 0.5;
}
.envelope-guest-line span {
    width: 60px; height: 1px;
    background: var(--grad-gold-h);
}
.envelope-guest-line i {
    font-style: normal;
    color: var(--champagne-dark);
    font-size: 0.55rem;
}

/* Center Emblem */
.cover-emblem {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    animation: fadeSlideUp 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}
.emblem-ring {
    width: 170px; height: 170px;
    border-radius: 50%;
    border: 1px solid rgba(201,165,90,0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow:
        0 0 0 10px rgba(201,165,90,0.03),
        0 0 60px rgba(201,165,90,0.08);
    animation: slowRotate 50s linear infinite;
}
.emblem-ring::before {
    content: '';
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    border: 1px solid rgba(201,165,90,0.12);
}
.emblem-ring::after {
    content: '';
    position: absolute;
    inset: 18px;
    border-radius: 50%;
    border: 1px dashed rgba(201,165,90,0.07);
}
.emblem-inner {
    text-align: center;
    animation: slowRotate 50s linear infinite reverse; /* counter-rotate to stay still */
}
.emblem-monogram {
    font-family: 'Cinzel Decorative', serif;
    font-size: 2.4rem;
    font-weight: 700;
    background: var(--grad-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    filter: drop-shadow(0 2px 12px rgba(201,165,90,0.4));
}
.emblem-amp {
    font-family: 'Great Vibes', cursive;
    font-size: 1.5rem;
    color: var(--champagne-dark);
    opacity: 0.65;
    display: block;
    margin: 2px 0;
}
.cover-subtitle {
    font-family: 'Cinzel', serif;
    font-size: 0.55rem;
    letter-spacing: 9px;
    text-transform: uppercase;
    color: var(--champagne-dark);
    opacity: 0.55;
}

/* Open Button */
.open-btn {
    position: relative;
    padding: 18px 56px;
    background: transparent;
    border: 1px solid var(--champagne-dark);
    color: var(--champagne);
    font-family: 'Cinzel', serif;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 6px;
    text-transform: uppercase;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.45s ease;
    animation: fadeSlideUp 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}
.open-btn::before {
    content: '';
    position: absolute; inset: 0;
    background: var(--grad-gold);
    opacity: 0;
    transition: opacity 0.45s ease;
}
/* shimmer sweep */
.open-btn::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
    transform: skewX(-20deg);
    animation: shimmerSweep 3s ease 2s infinite;
}
.open-btn:hover::before { opacity: 1; }
.open-btn:hover { color: var(--midnight); border-color: transparent; box-shadow: var(--shadow-gold); }
.open-btn span { position: relative; z-index: 1; }

/* Particles */
.particles {
    position: absolute; inset: 0;
    pointer-events: none; overflow: hidden;
}
.particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    animation: floatUp 8s infinite;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
#invitation-content {
    display: none;
    opacity: 0;
    transition: opacity 1.6s ease;
}
#invitation-content.visible {
    display: block;
    opacity: 1;
}

/* Section Base */
.section {
    padding: 110px 28px;
    max-width: 880px;
    margin: 0 auto;
    position: relative;
}

/* Section Separator */
.section-sep {
    width: 100%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201,165,90,0.18), transparent);
    margin: 0;
}

.section-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: clamp(1.4rem, 4.5vw, 2.1rem);
    font-weight: 400;
    color: var(--champagne-light);
    text-align: center;
    margin-bottom: 10px;
    letter-spacing: 2px;
    text-shadow: 0 2px 20px rgba(201,165,90,0.2);
}

.section-subtitle {
    font-family: 'Cinzel', serif;
    font-size: 0.6rem;
    letter-spacing: 7px;
    text-transform: uppercase;
    color: var(--champagne-dark);
    text-align: center;
    opacity: 0.85;
    margin-bottom: 48px;
}

.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 26px auto 44px;
}
.divider::before, .divider::after {
    content: '';
    flex: 1; max-width: 140px; height: 1px;
    background: var(--grad-gold-h);
}
.divider-diamond {
    width: 7px; height: 7px;
    background: var(--champagne-dark);
    transform: rotate(45deg);
    flex-shrink: 0;
    box-shadow: 0 0 8px rgba(201,165,90,0.5);
}

/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(48px);
    transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active { opacity: 1; transform: translateY(0); }

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: clip;
    background: #040608;
    padding: 90px 28px 110px;
    max-width: 100%;
    box-sizing: border-box;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-bg img {
    /* tampil penuh tanpa terpotong, centered */
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block !important;
    filter: grayscale(10%) brightness(0.72) contrast(1.08);
}

.hero-overlay {
    position: absolute; inset: 0; z-index: 1;
    background:
        linear-gradient(0deg,
            rgba(4,6,8,0.92) 0%,
            rgba(4,6,8,0.45) 25%,
            rgba(4,6,8,0.15) 55%,
            rgba(4,6,8,0.15) 75%,
            rgba(4,6,8,0.55) 100%
        );
}

/* Vignette edges */
.hero::before {
    content: '';
    position: absolute; inset: 0; z-index: 2;
    background:
        radial-gradient(ellipse at center, transparent 35%, rgba(6,8,16,0.75) 100%);
}

/* Rotating ornament rings */
.hero-ornament {
    position: absolute;
    border-radius: 50%;
    z-index: 2;
    pointer-events: none;
}
.hero-ornament:nth-child(3) {
    width: min(560px, 90vw); height: min(560px, 90vw);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(201,165,90,0.10);
    animation: slowRotate 50s linear infinite;
}
.hero-ornament:nth-child(4) {
    width: min(380px, 65vw); height: min(380px, 65vw);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(201,165,90,0.07);
    animation: slowRotate 35s linear infinite reverse;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    padding: 0 8px;
}

.bismillah-arabic {
    font-size: clamp(1.8rem, 5vw, 2.6rem);
    color: var(--champagne-light);
    margin-bottom: 8px;
    text-shadow:
        0 2px 10px rgba(0,0,0,0.9),
        0 0 40px rgba(201,165,90,0.4);
    font-family: 'Cormorant Garamond', serif;
}

.bismillah {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 0.9rem;
    color: var(--champagne-light);
    letter-spacing: 2px;
    opacity: 0.9;
    margin-bottom: 38px;
    text-shadow: 0 1px 8px rgba(0,0,0,0.8);
}

.hero-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    margin: 28px auto;
}
.hero-divider span {
    flex: 1; max-width: 90px; height: 1px;
    background: var(--grad-gold-h);
}
.hero-divider i {
    font-style: normal;
    color: var(--champagne-dark);
    font-size: 0.85rem;
    text-shadow: 0 0 10px rgba(201,165,90,0.6);
}

.couple-names {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(3rem, 10vw, 7.5rem);
    background: var(--grad-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.15;
    margin: 0;
    filter: drop-shadow(0 4px 40px rgba(201,165,90,0.35));
    max-width: 100%;             /* never wider than container */
    word-break: break-word;
}
.couple-names .ampersand {
    display: block;
    font-size: 0.4em;
    background: var(--grad-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: -8px 0;
    opacity: 0.75;
}

.wedding-date {
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    letter-spacing: 9px;
    text-transform: uppercase;
    color: var(--champagne-light);
    margin-top: 28px;
    opacity: 1;
    text-shadow: 0 1px 10px rgba(0,0,0,0.8);
}

/* Scroll hint */
.scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.35;
    animation: bounceDown 2.5s ease infinite;
}
.scroll-hint span {
    width: 1px; height: 55px;
    background: linear-gradient(180deg, var(--champagne-dark), transparent);
}
.scroll-hint p {
    font-family: 'Cinzel', serif;
    font-size: 0.45rem;
    letter-spacing: 5px;
    color: var(--champagne-dark);
}

/* ============================================
   COUPLE SECTION
   ============================================ */
.couple-section { background: var(--grad-bg-1); overflow: visible; }

.couple-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    align-items: center;
    overflow: visible;
}

.couple-card {
    flex: 1;
    min-width: 240px;
    max-width: 300px;
    text-align: center;
}

.photo-frame {
    position: relative;
    width: 210px; height: 210px;
    margin: 0 auto 30px;
}
.photo-frame::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 1px solid rgba(201,165,90,0.28);
    animation: slowRotate 22s linear infinite;
}
.photo-frame::after {
    content: '';
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    border: 1px dashed rgba(201,165,90,0.10);
    animation: slowRotate 35s linear infinite reverse;
}

.photo-placeholder {
    width: 100%; height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(201,165,90,0.35);
    background: rgba(201,165,90,0.04);
    position: relative;
    box-shadow:
        0 0 0 6px rgba(201,165,90,0.04),
        inset 0 0 30px rgba(201,165,90,0.04);
}
.photo-placeholder .placeholder-icon {
    position: absolute; inset: 0;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    opacity: 0.4;
    font-size: 0.65rem;
    gap: 5px;
    color: var(--champagne-dark);
}
.photo-placeholder .placeholder-icon span { font-size: 2rem; }
.photo-placeholder img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
/* overlay to minimize any watermark on photos */
.photo-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        radial-gradient(ellipse at 50% 100%, rgba(6,8,16,0.35) 0%, transparent 60%),
        radial-gradient(ellipse at 0% 100%, rgba(6,8,16,0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 100% 100%, rgba(6,8,16,0.3) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.couple-card h3 {
    font-family: 'Great Vibes', cursive;
    font-size: 2.6rem;
    background: var(--grad-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
    filter: drop-shadow(0 2px 8px rgba(201,165,90,0.3));
}
.couple-card .full-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    color: var(--ivory);
    opacity: 1;
    margin-bottom: 10px;
    letter-spacing: 1px;
}
.couple-card .parents {
    font-size: 0.82rem;
    color: var(--champagne-dark);
    opacity: 0.85;
    line-height: 1.9;
    font-family: 'Raleway', sans-serif;
}

.couple-and {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(3rem, 8vw, 4.5rem);
    background: var(--grad-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    align-self: center;
    filter: drop-shadow(0 2px 16px rgba(201,165,90,0.4));
    flex-shrink: 0;
    padding: 0 10px;
    min-width: 80px;
    text-align: center;
}

/* ============================================
   EVENT SECTION
   ============================================ */
.event-section { background: var(--grad-bg-3); }

.event-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: center;
}

.event-card {
    flex: 1;
    min-width: 270px;
    max-width: 370px;
    padding: 52px 40px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 2px;
    text-align: center;
    position: relative;
    transition: transform 0.45s cubic-bezier(0.16,1,0.3,1),
                border-color 0.4s ease,
                box-shadow 0.4s ease;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    overflow: hidden;
}

/* Top shimmer line */
.event-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: var(--grad-gold-h);
    opacity: 0.5;
    transition: opacity 0.4s ease;
}
/* Bottom-right corner accent */
.event-card::after {
    content: '';
    position: absolute;
    bottom: -1px; right: -1px;
    width: 22px; height: 22px;
    border-bottom: 2px solid var(--champagne-dark);
    border-right: 2px solid var(--champagne-dark);
    opacity: 0.45;
    transition: width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
}

/* Top-left corner accent via inner pseudo */
.event-card-tl {
    position: absolute;
    top: -1px; left: -1px;
    width: 22px; height: 22px;
    border-top: 2px solid var(--champagne-dark);
    border-left: 2px solid var(--champagne-dark);
    opacity: 0.45;
    pointer-events: none;
    transition: width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
}

.event-card:hover {
    transform: translateY(-10px);
    border-color: rgba(201,165,90,0.4);
    box-shadow: var(--shadow-gold), var(--shadow-glow);
}
.event-card:hover::before { opacity: 1; }
.event-card:hover::after,
.event-card:hover .event-card-tl {
    width: 32px; height: 32px; opacity: 1;
}

.event-card-icon {
    font-size: 2.2rem;
    margin-bottom: 22px;
    display: block;
    filter: drop-shadow(0 2px 10px rgba(201,165,90,0.3));
}
.event-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    color: var(--champagne);
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 22px;
}
.event-card h3::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 44px; height: 1px;
    background: var(--champagne-dark);
    opacity: 0.4;
}

.event-detail {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
    text-align: left;
    font-size: 0.84rem;
    color: var(--ivory-dim);
}
.event-detail .icon {
    color: var(--champagne-dark);
    font-size: 1rem;
    min-width: 20px;
    margin-top: 1px;
}

.map-btn {
    display: inline-block;
    margin-top: 26px;
    padding: 13px 36px;
    background: transparent;
    border: 1px solid rgba(201,165,90,0.45);
    color: var(--champagne);
    font-family: 'Cinzel', serif;
    font-size: 0.58rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}
.map-btn::before {
    content: '';
    position: absolute; inset: 0;
    background: var(--grad-gold);
    transform: translateX(-101%);
    transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.map-btn:hover { color: var(--midnight); border-color: transparent; box-shadow: var(--shadow-gold-sm); }
.map-btn:hover::before { transform: translateX(0); }
.map-btn span { position: relative; z-index: 1; }

/* ============================================
   COUNTDOWN
   ============================================ */
.countdown-section {
    background: var(--grad-bg-1);
    text-align: center;
}

.countdown-grid {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.countdown-item {
    width: 118px;
    padding: 34px 12px 28px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
    transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.countdown-item:hover {
    border-color: rgba(201,165,90,0.4);
    box-shadow: var(--shadow-gold-sm);
    transform: translateY(-4px);
}

/* Shimmer top bar */
.countdown-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: var(--grad-gold-h);
    opacity: 0.8;
}
/* Bottom glow */
.countdown-item::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0; height: 1px;
    background: rgba(201,165,90,0.1);
}

.countdown-item .number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.2rem;
    font-weight: 300;
    background: var(--grad-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    letter-spacing: -2px;
    filter: drop-shadow(0 2px 8px rgba(201,165,90,0.3));
}
.countdown-item .label {
    font-family: 'Cinzel', serif;
    font-size: 0.52rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--champagne-dark);
    opacity: 0.9;
    margin-top: 12px;
}

/* ============================================
   GALLERY
   ============================================ */
.gallery-section { background: var(--grad-bg-2); }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    max-width: 680px;
    margin: 0 auto;
}

/* Semua item sama besar, 2×2 portrait */
.gallery-item {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    cursor: pointer;
    background: var(--midnight-4);
    border: 1px solid rgba(201,165,90,0.15);
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

/* Sudut emas kiri atas */
.gallery-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 22px; height: 22px;
    border-top: 1px solid rgba(201,165,90,0.55);
    border-left: 1px solid rgba(201,165,90,0.55);
    z-index: 3;
    transition: width 0.35s ease, height 0.35s ease, opacity 0.35s ease;
    opacity: 0.65;
    pointer-events: none;
}
/* Sudut emas kanan bawah */
.gallery-item-br {
    position: absolute;
    bottom: 0; right: 0;
    width: 22px; height: 22px;
    border-bottom: 1px solid rgba(201,165,90,0.35);
    border-right: 1px solid rgba(201,165,90,0.35);
    z-index: 3;
    pointer-events: none;
    transition: width 0.35s ease, height 0.35s ease, opacity 0.35s ease;
    opacity: 0.45;
}

/* Overlay gelap bawah + ikon zoom */
.gallery-item::after {
    content: '⊕';
    position: absolute; inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(6,8,16,0)    0%,
        rgba(6,8,16,0.5)  100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: rgba(201,165,90,0);
    transition: color 0.4s ease, background 0.4s ease;
    z-index: 2;
}

.gallery-item:hover {
    border-color: rgba(201,165,90,0.5);
    box-shadow: 0 8px 40px rgba(201,165,90,0.2), 0 0 0 1px rgba(201,165,90,0.1);
}
.gallery-item:hover::before { width: 34px; height: 34px; opacity: 1; }
.gallery-item:hover .gallery-item-br { width: 34px; height: 34px; opacity: 1; }
.gallery-item:hover::after {
    color: rgba(201,165,90,0.9);
    background: linear-gradient(
        to bottom,
        rgba(6,8,16,0)    0%,
        rgba(6,8,16,0.68) 100%
    );
}

/* Gambar — tampil penuh tanpa terpotong */
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
    transition: transform 0.9s cubic-bezier(0.16,1,0.3,1), filter 0.5s ease;
    filter: brightness(0.92) saturate(0.9);
    background: transparent;
}
.gallery-item:hover img {
    transform: scale(1.04);
    filter: brightness(1.0) saturate(1.08);
}

.gallery-placeholder {
    position: absolute; inset: 0;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    opacity: 1;
    z-index: 1;
}
.gallery-placeholder span { display: block; width: 100%; height: 100%; }
.gallery-placeholder span img {
    width: 100%; height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
}
.gallery-placeholder p { display: none; }

/* ============================================
   LOVE STORY TIMELINE
   ============================================ */
.story-section { background: var(--grad-bg-1); }

.timeline {
    position: relative;
    max-width: 660px;
    margin: 0 auto;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0; bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent, var(--champagne-dark) 20%, var(--champagne-dark) 80%, transparent);
    opacity: 0.18;
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    margin-bottom: 64px;
    position: relative;
}
.timeline-item:nth-child(odd)  { flex-direction: row; }
.timeline-item:nth-child(even) { flex-direction: row-reverse; }

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 18px;
    transform: translateX(-50%);
    width: 13px; height: 13px;
    background: var(--champagne-dark);
    border-radius: 50%;
    z-index: 1;
    box-shadow:
        0 0 0 5px rgba(201,165,90,0.12),
        0 0 20px rgba(201,165,90,0.4);
}

.timeline-content {
    flex: 1;
    padding: 0 56px 0 0;
    text-align: right;
}
.timeline-item:nth-child(even) .timeline-content {
    padding: 0 0 0 56px;
    text-align: left;
}

.timeline-item .year {
    font-family: 'Cinzel', serif;
    font-size: 0.62rem;
    letter-spacing: 6px;
    color: var(--champagne-dark);
    margin-bottom: 8px;
    opacity: 1;
}
.timeline-item h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--champagne-light);
    margin-bottom: 12px;
}
.timeline-item p {
    font-size: 0.85rem;
    color: var(--ivory);
    opacity: 0.8;
    line-height: 1.9;
    font-family: 'Raleway', sans-serif;
    font-weight: 300;
}

/* ============================================
   GIFT / AMPLOP DIGITAL
   ============================================ */
.gift-section { background: var(--grad-bg-3); }

.gift-intro {
    text-align: center;
    color: var(--ivory);
    opacity: 0.85;
    max-width: 500px;
    margin: 0 auto 52px;
    line-height: 2;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.15rem;
}

.gift-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    justify-content: center;
}

.gift-card {
    width: min(370px, 90vw);
    padding: 44px 40px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    text-align: center;
    position: relative;
    transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    overflow: hidden;
}
.gift-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: var(--grad-gold-h);
    opacity: 0.45;
}
.gift-card-tl {
    position: absolute;
    top: -1px; left: -1px;
    width: 18px; height: 18px;
    border-top: 2px solid var(--champagne-dark);
    border-left: 2px solid var(--champagne-dark);
    opacity: 0.4;
    transition: width 0.3s, height 0.3s, opacity 0.3s;
}
.gift-card-br {
    position: absolute;
    bottom: -1px; right: -1px;
    width: 18px; height: 18px;
    border-bottom: 2px solid var(--champagne-dark);
    border-right: 2px solid var(--champagne-dark);
    opacity: 0.4;
    transition: width 0.3s, height 0.3s, opacity 0.3s;
}
.gift-card:hover {
    border-color: rgba(201,165,90,0.42);
    box-shadow: var(--shadow-gold-sm), var(--shadow-glow);
    transform: translateY(-5px);
}
.gift-card:hover .gift-card-tl,
.gift-card:hover .gift-card-br { width: 28px; height: 28px; opacity: 1; }

.bank-logo {
    width: 90px; height: 60px;
    margin: 0 auto 20px;
    border-radius: 10px;
    overflow: hidden;
    background: #0b1018;           /* BCA blue */
    border: none;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(164, 139, 33, 0.35);
}
.bank-logo-img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.bank-logo-placeholder {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    color: #ffffff;
    font-weight: 700;
}

.bank-name {
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    letter-spacing: 4px;
    color: var(--champagne-light);
    margin-bottom: 6px;
    text-transform: uppercase;
}
.account-name {
    font-size: 0.82rem;
    color: var(--ivory);
    opacity: 0.85;
    margin-bottom: 22px;
    font-family: 'Raleway', sans-serif;
}
.account-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.7rem;
    font-weight: 600;
    letter-spacing: 4px;
    background: var(--grad-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding: 18px 22px;
    border: 1px solid rgba(201,165,90,0.18);
    margin-bottom: 22px;
    position: relative;
    display: block;
}

.copy-btn {
    padding: 13px 38px;
    background: transparent;
    border: 1px solid rgba(201,165,90,0.42);
    color: var(--champagne);
    font-family: 'Cinzel', serif;
    font-size: 0.58rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}
.copy-btn::before {
    content: '';
    position: absolute; inset: 0;
    background: var(--grad-gold);
    transform: translateY(101%);
    transition: transform 0.35s cubic-bezier(0.16,1,0.3,1);
}
.copy-btn:hover { color: var(--midnight); border-color: transparent; box-shadow: var(--shadow-gold-sm); }
.copy-btn:hover::before { transform: translateY(0); }
.copy-btn span { position: relative; z-index: 1; }
.copy-btn.copied { background: rgba(201,165,90,0.12); color: var(--champagne-dark); }

/* ============================================
   GUESTBOOK / UCAPAN
   ============================================ */
.guestbook-section { background: var(--grad-bg-1); }

.guestbook-form {
    max-width: 560px;
    margin: 0 auto 56px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.guestbook-form input,
.guestbook-form textarea {
    width: 100%;
    padding: 17px 24px;
    background: rgba(255,255,255,0.028);
    border: 1px solid rgba(201,165,90,0.18);
    color: var(--ivory);
    font-family: 'Raleway', sans-serif;
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
    border-radius: 0;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
}
.guestbook-form input::placeholder,
.guestbook-form textarea::placeholder {
    color: var(--ivory-faint);
    font-style: italic;
}
.guestbook-form input:focus,
.guestbook-form textarea:focus {
    border-color: rgba(201,165,90,0.48);
    box-shadow: 0 0 24px rgba(201,165,90,0.08);
    background: rgba(255,255,255,0.048);
}
.guestbook-form textarea {
    resize: vertical;
    min-height: 130px;
}

.attendance-group { display: flex; gap: 12px; flex-wrap: wrap; }
.attendance-option { flex: 1; min-width: 130px; }
.attendance-option input[type="radio"] { display: none; }
.attendance-option label {
    display: block;
    padding: 15px;
    text-align: center;
    background: rgba(255,255,255,0.028);
    border: 1px solid rgba(201,165,90,0.18);
    color: var(--ivory-dim);
    font-size: 0.78rem;
    font-family: 'Cinzel', serif;
    letter-spacing: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.attendance-option input[type="radio"]:checked + label {
    background: rgba(201,165,90,0.10);
    border-color: rgba(201,165,90,0.48);
    color: var(--champagne);
    box-shadow: inset 0 0 30px rgba(201,165,90,0.05);
}

.submit-btn {
    padding: 17px 54px;
    background: transparent;
    border: 1px solid rgba(201,165,90,0.48);
    color: var(--champagne);
    font-family: 'Cinzel', serif;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 6px;
    text-transform: uppercase;
    cursor: pointer;
    align-self: center;
    position: relative;
    overflow: hidden;
    transition: color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.submit-btn::before {
    content: '';
    position: absolute; inset: 0;
    background: var(--grad-gold);
    transform: translateX(-101%);
    transition: transform 0.45s cubic-bezier(0.16,1,0.3,1);
}
.submit-btn:hover { color: var(--midnight); border-color: transparent; box-shadow: var(--shadow-gold-sm); }
.submit-btn:hover::before { transform: translateX(0); }
.submit-btn span { position: relative; z-index: 1; }

/* Messages */
.messages-count {
    text-align: center;
    font-family: 'Cinzel', serif;
    font-size: 0.6rem;
    letter-spacing: 5px;
    color: var(--champagne-dark);
    opacity: 0.8;
    margin-bottom: 22px;
    text-transform: uppercase;
}

.guest-messages {
    max-width: 560px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-height: 560px;
    overflow-y: auto;
    padding-right: 8px;
}
.guest-messages::-webkit-scrollbar { width: 3px; }
.guest-messages::-webkit-scrollbar-thumb { background: rgba(201,165,90,0.3); border-radius: 3px; }

.message-card {
    padding: 26px 28px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    position: relative;
    transition: border-color 0.3s ease;
    animation: fadeSlideUp 0.55s ease forwards;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.message-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: var(--grad-gold-h);
    opacity: 0.4;
}
.message-card:hover { border-color: rgba(201,165,90,0.32); }

.msg-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    gap: 12px;
}
.msg-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--champagne-light);
    letter-spacing: 0.5px;
}
.msg-time {
    font-family: 'Raleway', sans-serif;
    font-size: 0.62rem;
    color: var(--champagne-dark);
    opacity: 0.7;
    letter-spacing: 1px;
    white-space: nowrap;
}
.msg-attendance {
    display: inline-block;
    padding: 3px 14px;
    font-family: 'Cinzel', serif;
    font-size: 0.55rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
    border: 1px solid rgba(201,165,90,0.25);
    color: var(--champagne-dark);
    background: rgba(201,165,90,0.08);
}
.msg-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem;
    color: var(--ivory);
    opacity: 0.85;
    line-height: 1.85;
    font-style: italic;
}
.no-messages {
    text-align: center;
    padding: 44px;
    color: var(--champagne-dark);
    opacity: 0.28;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.15rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    text-align: center;
    padding: 90px 28px 130px;
    background: var(--midnight);
    position: relative;
    overflow: hidden;
}
.footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: var(--grad-gold-h);
}
.footer::after {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 70% 55% at 50% 0%, rgba(201,165,90,0.055) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 50% 100%, rgba(201,165,90,0.03) 0%, transparent 60%);
}

.footer > div { position: relative; z-index: 1; }

.closing-quote {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.15rem;
    color: var(--ivory-dim);
    max-width: 540px;
    margin: 0 auto 18px;
    line-height: 2.1;
    font-weight: 300;
}
.quran-ref {
    font-family: 'Cinzel', serif;
    font-size: 0.58rem;
    letter-spacing: 5px;
    color: var(--champagne-dark);
    opacity: 0.45;
}
.couple-names-footer {
    font-family: 'Great Vibes', cursive;
    font-size: 3.4rem;
    background: var(--grad-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 44px;
    filter: drop-shadow(0 2px 16px rgba(201,165,90,0.3));
}
.thank-you {
    font-family: 'Raleway', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 4px;
    color: var(--ivory-faint);
    margin-top: 14px;
    text-transform: uppercase;
}

/* ============================================
   MUSIC BUTTON
   ============================================ */
.music-btn {
    position: fixed;
    bottom: 30px; right: 30px;
    width: 54px; height: 54px;
    border-radius: 50%;
    background: rgba(11,16,24,0.9);
    border: 1px solid rgba(201,165,90,0.38);
    color: var(--champagne-dark);
    font-size: 1.25rem;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.35s ease;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.music-btn:hover {
    border-color: var(--champagne-dark);
    color: var(--champagne);
    box-shadow: var(--shadow-gold-sm), 0 4px 20px rgba(0,0,0,0.5);
    transform: scale(1.05);
}
.music-btn.playing {
    animation: musicRing 2.2s ease infinite;
    border-color: rgba(201,165,90,0.55);
}

/* Lightbox */
.lightbox {
    position: fixed; inset: 0;
    background: rgba(4, 6, 12, 0.97);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.lightbox.active { display: flex; }
.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    border: 1px solid rgba(201,165,90,0.28);
    box-shadow: 0 0 100px rgba(201,165,90,0.12);
    animation: fadeSlideUp 0.4s ease;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeSlideDown {
    from { opacity: 0; transform: translateY(-28px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes slowRotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
@keyframes floatUp {
    0%   { opacity: 0; transform: translateY(0) scale(0.5); }
    20%  { opacity: 0.7; }
    80%  { opacity: 0.25; }
    100% { opacity: 0; transform: translateY(-180px) scale(1.2); }
}
@keyframes bounceDown {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(10px); }
}
@keyframes musicRing {
    0%, 100% { box-shadow: 0 0 0 0 rgba(201,165,90,0), 0 4px 20px rgba(0,0,0,0.5); }
    50%       { box-shadow: 0 0 0 10px rgba(201,165,90,0.12), 0 4px 20px rgba(0,0,0,0.5); }
}
@keyframes shimmerSweep {
    0%   { left: -80%; }
    100% { left: 140%; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 680px) {
    .section { padding: 70px 20px; }

    /* Hero — content tidak terpotong */
    .hero {
        padding: 60px 20px 90px;
        min-height: 100svh;
    }

    /* Mobile: ubah hero-bg ke cover agar tidak ada ruang kosong */
    .hero-bg {
        align-items: stretch;
    }
    .hero-bg img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
        filter: grayscale(10%) brightness(0.68) contrast(1.08);
    }

    .hero-content { width: 100%; padding: 0 4px; }
    .bismillah-arabic { font-size: clamp(1.4rem, 7vw, 2rem); margin-bottom: 4px; }
    .bismillah { font-size: 0.78rem; letter-spacing: 1px; margin-bottom: 22px; }
    .hero-divider { margin: 14px auto; }
    .couple-names { font-size: clamp(2.6rem, 15vw, 4rem); line-height: 1.2; }
    .couple-names .ampersand { margin: -4px 0; }
    .wedding-date { letter-spacing: 4px; font-size: 0.66rem; margin-top: 16px; }

    /* Couple — prevent & from being cut */
    .couple-cards {
        flex-direction: column;
        gap: 10px;
        overflow: visible;
    }
    .couple-card {
        min-width: unset;
        max-width: 100%;
        width: 100%;
    }
    .couple-and {
        font-size: 3.5rem;
        padding: 4px 0;
        min-width: unset;
        align-self: center;
    }
    .photo-frame { width: 180px; height: 180px; }

    /* Events */
    .event-card { min-width: 100%; }

    /* Countdown */
    .countdown-item { width: 78px; padding: 20px 8px 16px; }
    .countdown-item .number { font-size: 2.2rem; }
    .countdown-item .label { font-size: 0.48rem; letter-spacing: 3px; }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        max-width: 100%;
    }
    .gallery-item {
        aspect-ratio: 3 / 4;
    }

    /* Timeline — single column */
    .timeline::before { left: 14px; }
    .timeline-item,
    .timeline-item:nth-child(even) { flex-direction: column; }
    .timeline-dot { left: 14px; top: 8px; transform: none; }
    .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        padding: 0 0 0 44px;
        text-align: left;
    }

    /* Music & buttons */
    .music-btn { bottom: 18px; right: 18px; width: 46px; height: 46px; font-size: 1.05rem; }
    .open-btn { padding: 15px 36px; letter-spacing: 4px; }

    /* Gift */
    .gift-card { padding: 32px 24px; }

    /* Guestbook */
    .guestbook-form input,
    .guestbook-form textarea { padding: 14px 16px; font-size: 0.85rem; }

    /* Section titles bigger on mobile for readability */
    .section-title { font-size: clamp(1.4rem, 6vw, 2rem); }
    .section-subtitle { font-size: 0.58rem; letter-spacing: 5px; }
}

@media (max-width: 400px) {
    .countdown-item { width: 68px; }
    .countdown-item .number { font-size: 1.85rem; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .couple-names { font-size: clamp(2.2rem, 15vw, 3.5rem); }
    .bismillah-arabic { font-size: clamp(1.3rem, 7vw, 1.8rem); }
    .bismillah { font-size: 0.72rem; }
    .wedding-date { font-size: 0.62rem; letter-spacing: 3px; }
    .envelope-guest .name { font-size: clamp(1.6rem, 9vw, 2.8rem); }
}