/* ================================================
   Qr-I — Invitation Mariage Premium
   Design System: Glassmorphism + Dark Luxury
   ================================================ */

/* Auto-hide flash notifications after ~5 seconds */
@keyframes autoHideAlert {
    0% { opacity: 1; max-height: 500px; padding: 1rem; margin-bottom: 1rem; overflow: hidden; }
    80% { opacity: 1; max-height: 500px; padding: 1rem; margin-bottom: 1rem; overflow: hidden; }
    99% { opacity: 0; max-height: 500px; padding: 1rem; margin-bottom: 1rem; overflow: hidden; }
    100% { opacity: 0; max-height: 0; padding: 0; margin-bottom: 0; border: none; overflow: hidden; display: none; }
}

.alert-dismissible {
    animation: autoHideAlert 5s forwards;
}

/* ---------- GOOGLE FONTS ---------- */
/* Loaded via index.php:
   Playfair Display (titles) | Outfit (body) | Great Vibes (script) */

/* ---------- CSS VARIABLES ---------- */
:root {
    --primary-color: #c49a6c;
    --secondary-color: #5a3e2b;
    --primary-glow: rgba(196, 154, 108, 0.35);
    --glass-bg: rgba(255, 255, 255, 0.06);
    --glass-bg-strong: rgba(255, 255, 255, 0.12);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-border-gold: rgba(196, 154, 108, 0.4);
    --blur-amount: blur(18px);
    --text-white: #ffffff;
    --text-light: rgba(255, 255, 255, 0.85);
    --text-muted-light: rgba(255, 255, 255, 0.55);
    --bg-dark: rgba(10, 8, 5, 0.78);
    --shadow-luxury: 0 25px 60px rgba(0, 0, 0, 0.4);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
    --radius-card: 24px;
    --radius-btn: 50px;
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    color: var(--text-white);
    background-color: #0a0805;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.hero-title, .section-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

/* ---------- BACKGROUND OVERLAY ---------- */
.site-background-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(10, 8, 5, 0.72) 0%,
        rgba(20, 14, 8, 0.60) 40%,
        rgba(10, 8, 5, 0.80) 100%
    );
    z-index: -1;
    pointer-events: none;
}

/* ---------- GLASS CARD MIXIN ---------- */
.glass-card {
    background: var(--glass-bg-strong);
    backdrop-filter: var(--blur-amount);
    -webkit-backdrop-filter: var(--blur-amount);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.glass-card:hover {
    border-color: var(--glass-border-gold);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--glass-border-gold);
    transform: translateY(-4px);
}

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); }
::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

/* =========================================
   NAVIGATION
   ========================================= */
.navbar {
    background: transparent;
    padding: 1.4rem 0;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(10, 8, 5, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--glass-border-gold);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--text-white) !important;
    letter-spacing: 1px;
}

.nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    padding: 0.5rem 1.1rem !important;
    position: relative;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1.5px;
    bottom: 4px;
    left: 50%;
    background: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
    box-shadow: 0 0 8px var(--primary-glow);
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

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

/* =========================================
   HERO SECTION
   ========================================= */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    color: var(--text-white);
    padding: 6rem 1.5rem 4rem;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 60%, rgba(196, 154, 108, 0.08) 0%, transparent 65%);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
    width: 100%;
    animation: fadeInUp 1.2s ease-out;
}

/* Portrait frame */
.hero-frame {
    width: 280px;
    height: 350px;
    margin: 1.5rem auto;
    padding: 3px;
    background: linear-gradient(145deg, #f5d97a, #c49a6c, #8b6534);
    border-radius: 140px 140px 20px 20px;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.1),
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(196, 154, 108, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-frame-inner {
    width: 100%;
    height: 100%;
    border-radius: 137px 137px 17px 17px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.15);
    background: #1a1210;
}

.hero-frame-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

.hero-subtitle {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    animation: fadeInDown 1.2s ease-out;
}

.hero-title {
    font-size: clamp(2rem, 9vw, 4.8rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1rem;
    padding: 0 0.5rem;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    background: linear-gradient(135deg, #fff 0%, #f0d878 50%, #c49a6c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1.2s ease-out 0.3s both;
}

.hero-date {
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--text-light);
    letter-spacing: 3px;
    margin-bottom: 2rem;
    animation: fadeInUp 1.2s ease-out 0.6s both;
}

/* Hero gold separator */
.hero-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 0.5rem 0 1.5rem;
}

.hero-separator span {
    display: block;
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color));
}

.hero-separator span:last-child {
    background: linear-gradient(90deg, var(--primary-color), transparent);
}

.hero-separator i { color: var(--primary-color); font-size: 0.9rem; }

/* CTA Button */
.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), #a87f52);
    color: #fff;
    border: none;
    padding: 1rem 2.8rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-btn);
    letter-spacing: 0.5px;
    transition: var(--transition);
    animation: fadeInUp 1.2s ease-out 1s both;
    box-shadow: 0 8px 30px rgba(196, 154, 108, 0.4);
    text-decoration: none;
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(196, 154, 108, 0.55);
    color: #fff;
}

/* Countdown */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    animation: fadeInUp 1.2s ease-out 0.8s both;
}

.countdown-item {
    background: var(--glass-bg-strong);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border-gold);
    border-radius: 18px;
    padding: 1.2rem 1.4rem;
    min-width: 90px;
    text-align: center;
}

.countdown-number {
    display: block;
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(135deg, #fff, #f0d878);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.countdown-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-color);
    font-weight: 500;
    margin-top: 4px;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2.5s infinite;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}
.scroll-indicator:hover { opacity: 1; }
.scroll-indicator i { color: var(--primary-color); font-size: 1.8rem; }

/* =========================================
   SECTION FRAMEWORK
   ========================================= */
.section-padding { padding: 6rem 1.5rem; }

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.75rem, 6.5vw, 3.2rem);
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: 2px;
    margin-bottom: 1rem;
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    text-align: center;
    line-height: 1.15;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    text-transform: uppercase;
    background: linear-gradient(135deg, #fff 0%, #f0d878 50%, #c49a6c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    border-radius: 2px;
    margin: 0.8rem auto 0;
}

/* Override Bootstrap bg utilities */
.bg-light, .bg-white { background-color: transparent !important; }

/* =========================================
   INVITATION CARD (hero intro)
   ========================================= */
.invitation-section { background-color: transparent !important; }

.invitation-card {
    background: var(--glass-bg-strong);
    backdrop-filter: var(--blur-amount);
    -webkit-backdrop-filter: var(--blur-amount);
    border: 1px solid var(--glass-border-gold);
    border-radius: 32px;
    padding: 3rem;
    max-width: 720px;
    margin: 0 auto;
    box-shadow: 0 0 60px rgba(196, 154, 108, 0.1), var(--shadow-card);
    text-align: center;
}

.invitation-card p,
.invitation-title-text,
.invitation-lead-text {
    color: var(--text-white) !important;
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.8;
    text-shadow: none;
}

/* =========================================
   PROGRAMME (Ceremony & Reception cards)
   ========================================= */
.program-card {
    background: var(--glass-bg-strong);
    backdrop-filter: var(--blur-amount);
    -webkit-backdrop-filter: var(--blur-amount);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-card);
    padding: 2.8rem 2rem;
    text-align: center;
    height: 100%;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.program-card:hover {
    border-color: var(--glass-border-gold);
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(196, 154, 108, 0.1);
}

.program-icon {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    display: block;
    filter: drop-shadow(0 0 12px var(--primary-glow));
}

.program-card h3 {
    font-size: 1.5rem;
    color: var(--text-white);
    margin-bottom: 1.2rem;
}

.program-location, .program-time {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.program-time {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
}

/* =========================================
   DRESS CODE
   ========================================= */
.dresscode-card {
    background: var(--glass-bg-strong);
    backdrop-filter: var(--blur-amount);
    -webkit-backdrop-filter: var(--blur-amount);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-card);
    padding: 2rem;
    text-align: center;
    height: 100%;
    transition: var(--transition);
}

.dresscode-card:hover {
    border-color: var(--glass-border-gold);
    transform: translateY(-4px);
    box-shadow: var(--shadow-luxury);
}

.dresscode-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px var(--primary-glow));
}

.dresscode-card h3 {
    color: var(--text-white);
    font-size: 1.3rem;
}

.dresscode-card p { color: var(--text-light); }

.dresscode-image {
    max-height: 350px;
    border-radius: 16px;
    box-shadow: var(--shadow-card);
}

/* =========================================
   MEGA FORM (RSVP + Drinks + Gift + Guestbook)
   ========================================= */
.rsvp-card {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: var(--blur-amount);
    -webkit-backdrop-filter: var(--blur-amount);
    border: 1px solid var(--glass-border-gold);
    border-radius: 28px;
    padding: 3rem 3.5rem;
    box-shadow: var(--shadow-luxury);
    transition: var(--transition);
}

.rsvp-card .section-title,
.rsvp-card h2,
.rsvp-card h3,
.rsvp-card h4,
.rsvp-card .form-label,
.rsvp-card .form-check-label,
.rsvp-card p,
.rsvp-card label {
    color: var(--text-white) !important;
    text-shadow: none;
}

/* Section dividers inside form */
.rsvp-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--primary-color) !important;
    border-color: rgba(196, 154, 108, 0.3) !important;
    padding-bottom: 0.75rem;
}

/* Form inputs */
.form-control, .form-select {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    color: var(--text-white);
    padding: 0.85rem 1.2rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control::placeholder { color: rgba(255, 255, 255, 0.38); }

.form-control:focus, .form-select:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--primary-color);
    color: var(--text-white);
    box-shadow: 0 0 0 3px rgba(196, 154, 108, 0.2);
    outline: none;
}

.form-select option { background: #1a120a; color: #fff; }

/* Radio + Checkbox */
.form-check-input {
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.35);
    width: 1.2em;
    height: 1.2em;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 8px var(--primary-glow);
}

.form-check-input:focus { box-shadow: 0 0 0 3px rgba(196, 154, 108, 0.25); }

/* Drinks section inside form */
.drinks-category-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 1.5rem;
    transition: var(--transition);
}

.drinks-category-card:hover {
    border-color: var(--glass-border-gold);
    background: rgba(255, 255, 255, 0.08);
}

.drinks-category-title {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color) !important;
    font-size: 1.05rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.drinks-list .form-check {
    padding: 0.4rem 0 0.4rem 1.8rem;
    border-radius: 8px;
    transition: background 0.2s;
}

.drinks-list .form-check:hover { background: rgba(255, 255, 255, 0.05); }
.drinks-list .form-check-label { cursor: pointer; font-size: 0.92rem; }

/* =========================================
   QR SUCCESS SCREEN
   ========================================= */
#qr-success-container {
    background: rgba(15, 12, 8, 0.92) !important;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border-gold) !important;
    border-radius: 28px !important;
    padding: 3rem !important;
    box-shadow: 0 0 80px rgba(196, 154, 108, 0.15), var(--shadow-luxury) !important;
}

#qr-success-container h2 { color: #5cb85c !important; font-size: 2rem; }
#qr-success-container p { color: var(--text-light) !important; }
#qr-success-container h4 { color: var(--text-white) !important; }
#qr-success-container strong { color: var(--primary-color) !important; }

#qr-image {
    border-radius: 16px;
    box-shadow: 0 0 30px rgba(196, 154, 108, 0.3);
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    border-radius: var(--radius-btn);
    letter-spacing: 0.3px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #a87f52 100%);
    border: none;
    color: #fff;
    box-shadow: 0 6px 20px rgba(196, 154, 108, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #d4ab7c 0%, #b88f62 100%);
    box-shadow: 0 10px 30px rgba(196, 154, 108, 0.5);
    color: #fff;
}

.btn-success {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    border: none;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
}

.btn-success:hover {
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.45);
}

.btn-outline-primary {
    color: var(--primary-color);
    border: 1.5px solid var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-lg { padding: 1rem 2.8rem; font-size: 1.05rem; }
.btn-sm { padding: 0.4rem 1rem; font-size: 0.85rem; }

/* =========================================
   GUESTBOOK MESSAGES (public list)
   ========================================= */
.guestbook-list { max-height: 600px; overflow-y: auto; }

.guestbook-item {
    background: rgba(255, 255, 255, 0.06) !important;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 18px !important;
    padding: 1.5rem !important;
    margin-bottom: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
    transition: var(--transition);
}

.guestbook-item:hover {
    border-color: var(--glass-border-gold) !important;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3) !important;
}

.guestbook-item h5 { color: var(--primary-color) !important; font-size: 1rem; font-weight: 600; }
.guestbook-item p { color: var(--text-light) !important; line-height: 1.7; }
.guestbook-item small { color: var(--text-muted-light) !important; }

/* =========================================
   FOOTER
   ========================================= */
.footer-section {
    background: rgba(10, 8, 5, 0.85);
    backdrop-filter: blur(20px);
    color: var(--text-white);
    padding: 4rem 1.5rem;
    text-align: center;
    border-top: 1px solid var(--glass-border-gold);
}

.footer-names {
    font-family: 'Great Vibes', cursive;
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
    line-height: 1.2;
}

.footer-date {
    font-size: 1rem;
    color: var(--text-light);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    font-weight: 300;
}

.footer-credit {
    font-size: 0.82rem;
    color: var(--text-muted-light);
}

.footer-signature {
    font-size: 0.85rem;
    color: var(--text-muted-light);
    letter-spacing: 1px;
    font-weight: 300;
}

.footer-signature .text-primary {
    color: var(--primary-color) !important;
    font-weight: 600;
}

/* =========================================
   LIVE STREAM BUTTON
   ========================================= */
.btn-live {
    background: linear-gradient(135deg, #dc3545, #a71d2a);
    border: none;
    color: #fff;
    border-radius: var(--radius-btn);
    padding: 0.85rem 2.2rem;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.35);
}

.btn-live:hover {
    box-shadow: 0 10px 30px rgba(220, 53, 69, 0.5);
    color: #fff;
}

/* =========================================
   GALLERY
   ========================================= */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.5rem;
}

.gallery-item {
    position: relative;
    width: 100%;
    background: var(--glass-bg-strong);
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

/* Force le format carré de manière robuste */
.gallery-item::before {
    content: "";
    display: block;
    padding-top: 100%;
}

.gallery-item .gallery-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.gallery-item img, 
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
}

.gallery-item:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
    z-index: 10;
}

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

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

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

.gallery-overlay i {
    font-size: 1.2rem;
    color: #fff;
}

.gallery-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.gallery-section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, #f0d878 50%, #c49a6c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.gallery-section-header p {
    font-family: 'Great Vibes', cursive;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin: 0;
}

/* =========================================
   THANK YOU CARD
   ========================================= */
.thankyou-wrapper {
    max-width: 520px;
    margin: 0 auto 2rem;
}

.thankyou-card {
    background: rgba(255,255,255,0.06);
    backdrop-filter: var(--blur-amount);
    -webkit-backdrop-filter: var(--blur-amount);
    border-radius: 24px;
    border: 1px solid var(--glass-border-gold);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-card);
}

.thankyou-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.4rem 1.3rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    margin-bottom: 1.5rem;
}

.thankyou-heart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(196,154,108,0.18);
    color: var(--primary-color);
}

.thankyou-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.thankyou-text {
    color: var(--text-light);
    font-size: 0.98rem;
    line-height: 1.8;
}

.thankyou-signature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    margin-top: 1.2rem;
    font-size: 0.9rem;
    color: var(--text-muted-light);
}

.thankyou-names {
    font-family: 'Great Vibes', cursive;
    font-size: 1.8rem;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
}

/* =========================================
   CORNER LOGO
   ========================================= */
.site-logo-corner {
    position: fixed;
    top: 18px;
    left: 18px;
    z-index: 1000;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.site-logo-corner:hover { opacity: 1; }

.site-logo-corner img {
    height: 38px;
    width: auto;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

/* =========================================
   SCROLL REVEAL ANIMATIONS
   ========================================= */
.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-36px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-left.active { opacity: 1; transform: translateX(0); }

.reveal-right {
    opacity: 0;
    transform: translateX(36px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-right.active { opacity: 1; transform: translateX(0); }

.reveal-scale {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-scale.active { opacity: 1; transform: scale(1); }

/* =========================================
   KEYFRAME ANIMATIONS
   ========================================= */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes bounce {
    0%, 100%  { transform: translateX(-50%) translateY(0); }
    40%        { transform: translateX(-50%) translateY(-10px); }
    60%        { transform: translateX(-50%) translateY(-5px); }
}

@keyframes shimmer {
    0%   { background-position: -200% center; }
    100% { background-position:  200% center; }
}

@keyframes pulse-gold {
    0%   { box-shadow: 0 0 0 0 rgba(196, 154, 108, 0.4); }
    70%  { box-shadow: 0 0 0 14px rgba(196, 154, 108, 0); }
    100% { box-shadow: 0 0 0 0 rgba(196, 154, 108, 0); }
}

/* =========================================
   INVITATION PAGE (invitation.php)
   ========================================= */
.invitation-body {
    background: linear-gradient(135deg, #b8b2a7 0%, #d6cfc2 100%);
    min-height: 100vh;
    font-family: 'Outfit', sans-serif;
}

.invitation-page {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 1.5rem 1rem 2rem;
}

.invitation-wrapper {
    width: 100%;
    max-width: 420px;
    text-align: center;
}

.invitation-header { margin-bottom: 1rem; }

.invitation-title {
    font-family: 'Great Vibes', cursive;
    font-size: 3rem;
    color: #fff;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
    margin: 0;
    line-height: 1;
}

.invitation-divider, .guest-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: 0.5rem 0;
}

.invitation-divider span, .guest-divider span {
    width: 60px;
    height: 1px;
    background: rgba(255, 255, 255, 0.6);
}

.invitation-divider i, .guest-divider i {
    color: #fff;
    font-size: 0.8rem;
}

.invitation-photo {
    width: 100%;
    max-width: 320px;
    margin: 0 auto 1rem;
    aspect-ratio: 3/4;
    border-radius: 50% 50% 20px 20px;
    overflow: hidden;
    border: 6px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.invitation-photo-inner {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.invitation-names { color: #fff; margin-bottom: 1.5rem; }

.invitation-groom, .invitation-bride {
    font-family: 'Great Vibes', cursive;
    font-size: 2.4rem;
    line-height: 1.1;
    margin: 0;
}

.invitation-ampersand {
    font-family: 'Great Vibes', cursive;
    font-size: 1.8rem;
    margin: 0.2rem 0;
}

.invitation-date {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-style: italic;
    margin-top: 0.5rem;
    opacity: 0.95;
}

.invitation-card-guest {
    background: rgba(245, 241, 234, 0.97);
    border-radius: 25px;
    padding: 2rem 1.5rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    text-align: center;
}

.guest-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.guest-name {
    font-family: 'Great Vibes', cursive;
    font-size: 2.2rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.guest-divider span { background: var(--primary-color); opacity: 0.5; }
.guest-divider i { color: var(--primary-color); }

.guest-message { font-size: 0.95rem; color: #2c2c2c; margin-bottom: 1rem; line-height: 1.6; }

.invitation-card-guest .qr-section {
    background: #fff;
    border-radius: 15px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.qr-code-img { max-width: 160px; border-radius: 10px; }
.guest-code { font-size: 0.85rem; color: #2c2c2c; margin-bottom: 0.25rem; }
.guest-hint { font-size: 0.75rem; color: #6c757d; margin: 0; }

.invitation-actions { display: flex; flex-direction: column; gap: 0.75rem; }

.invitation-actions .btn {
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
    body {
        background-attachment: scroll !important;
    }

    .hero-section {
        padding: 5rem 1rem 3rem;
        min-height: auto;
    }

    .hero-subtitle {
        font-size: 0.82rem;
        letter-spacing: 3px;
        padding: 0 0.5rem;
    }

    .hero-frame {
        width: 180px;
        height: 220px;
        border-radius: 90px 90px 14px 14px;
        padding: 3px;
    }

    .hero-frame-inner {
        border-radius: 86px 86px 11px 11px;
    }

    .hero-date {
        font-size: 0.95rem;
        letter-spacing: 1.5px;
        padding: 0 0.5rem;
        line-height: 1.5;
    }

    .countdown-number { font-size: 1.8rem; }
    .countdown-item { min-width: 72px; padding: 0.85rem 0.75rem; }

    .section-title {
        letter-spacing: 1px;
        padding: 0 0.25rem;
    }

    .section-title::after {
        width: 60px;
    }

    .rsvp-card { padding: 1.75rem 1.25rem; }
    .invitation-card { padding: 1.5rem; }
    .program-card { padding: 2rem 1.2rem; }

    .rsvp-card .d-flex.gap-4 {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.85rem !important;
    }

    .rsvp-card .btn-lg.fs-4 {
        font-size: 1.1rem !important;
        padding: 0.85rem 2rem !important;
        width: 100%;
    }

    .scroll-indicator { display: none; }

    .navbar {
        background: rgba(10, 8, 5, 0.88);
        backdrop-filter: blur(20px);
    }

    .navbar-brand {
        font-size: 1.25rem;
        max-width: 65vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .gallery-section-header h2 {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
    }

    .thankyou-wrapper {
        padding: 0 0.25rem;
    }

    .thankyou-names {
        font-size: 1.5rem;
        text-align: center;
        line-height: 1.3;
    }

    .invitation-title { font-size: 2.6rem; }
    .invitation-groom, .invitation-bride { font-size: 2rem; }
    .invitation-ampersand { font-size: 1.5rem; }
    .invitation-photo { max-width: 260px; }
    .invitation-card-guest { padding: 1.5rem 1rem; }
    .guest-name { font-size: 1.8rem; }
}

@media (max-width: 576px) {
    .section-padding { padding: 3.5rem 0.85rem; }

    .countdown-container { gap: 0.5rem; }
    .countdown-item { min-width: 68px; padding: 0.75rem 0.5rem; }
    .countdown-number { font-size: 1.5rem; }
    .countdown-label { font-size: 0.62rem; letter-spacing: 1px; }

    .hero-date { font-size: 0.88rem; letter-spacing: 1px; }

    .btn-hero {
        width: 100%;
        max-width: 320px;
        justify-content: center;
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.4rem;
    }

    .thankyou-card {
        padding: 1.75rem 1.1rem;
        border-radius: 18px;
    }

    .thankyou-title {
        font-size: 1.15rem;
        letter-spacing: 2px;
    }

    .thankyou-text {
        font-size: 0.92rem;
        line-height: 1.65;
    }

    .footer-names {
        font-size: clamp(1.6rem, 8vw, 2.4rem);
        padding: 0 0.5rem;
        line-height: 1.2;
    }

    .footer-signature {
        font-size: 0.75rem;
        padding: 0 0.5rem;
        line-height: 1.5;
    }
}

.footer-signature {
    font-size: 0.85rem;
    color: var(--text-muted-light);
    letter-spacing: 1px;
    font-weight: 300;
}

.footer-signature .text-primary {
    color: var(--primary-color) !important;
    font-weight: 600;
}

/* =========================================
   CUSTOM NOTIFICATIONS / ALERTS
   ========================================= */
.alert {
    border: none !important;
    border-radius: 16px !important;
    font-size: 0.95rem;
    font-weight: 500;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 1rem 1.5rem !important;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInFadeAlert 0.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    position: relative;
    overflow: hidden;
    color: var(--text-white, #fff);
}

/* Accent side line */
.alert::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: currentColor;
    border-radius: 16px 0 0 16px;
}

.alert-success {
    background: rgba(46, 204, 113, 0.15) !important;
    border: 1px solid rgba(46, 204, 113, 0.3) !important;
    color: #2ecc71 !important;
}

.alert-danger {
    background: rgba(231, 76, 60, 0.15) !important;
    border: 1px solid rgba(231, 76, 60, 0.3) !important;
    color: #e74c3c !important;
}

.alert-warning {
    background: rgba(243, 156, 18, 0.15) !important;
    border: 1px solid rgba(243, 156, 18, 0.3) !important;
    color: #f39c12 !important;
}

.alert-info {
    background: rgba(52, 152, 219, 0.15) !important;
    border: 1px solid rgba(52, 152, 219, 0.3) !important;
    color: #3498db !important;
}

.alert .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.7;
    margin-left: auto;
    position: relative;
    z-index: 2;
}

.alert .btn-close:hover {
    opacity: 1;
}

@keyframes slideInFadeAlert {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
