/* ========================================
   Digital Wedding Invitation - Premium Design
   Floral SVG Ornaments + AOS Animations
   ======================================== */

/* === CSS Variables / Design Tokens === */
:root {
    --color-primary: #8B7355;
    --color-primary-light: #B89F7F;
    --color-primary-dark: #6B5640;
    --color-accent: #C9A96E;
    --color-accent-light: #E8D5B0;
    --color-gold: #D4AF37;
    --color-gold-light: #F0E0B0;
    --color-rose: #C08B8B;
    --color-rose-light: #F0D5D5;
    --color-bg: #FDF8F0;
    --color-bg-alt: #F5EDE0;
    --color-bg-dark: #2C2418;
    --color-bg-darker: #1A150E;
    --color-text: #3D3028;
    --color-text-light: #7A6957;
    --color-text-muted: #A8957F;
    --color-white: #FFFDF8;
    --color-cream: #FFF8EB;
    --color-overlay: rgba(44, 36, 24, 0.6);

    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Montserrat', 'Segoe UI', sans-serif;

    --shadow-sm: 0 2px 8px rgba(139, 115, 85, 0.08);
    --shadow-md: 0 4px 20px rgba(139, 115, 85, 0.12);
    --shadow-lg: 0 8px 40px rgba(139, 115, 85, 0.16);
    --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.2);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Reset & Base === */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    cursor: pointer;
    font-family: inherit;
    background: none;
}

.hidden {
    display: none !important;
}

/* === Scrollbar === */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--color-primary-light);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* ========================================
   SVG FLORAL ORNAMENTS — Global Styles
   ======================================== */

/* Floral corner ornaments for envelope */
.envelope-corner {
    position: absolute;
    width: 100px;
    height: 100px;
    color: var(--color-gold);
    pointer-events: none;
}

.envelope-corner.top-left {
    top: 8px;
    left: 8px;
}

.envelope-corner.top-right {
    top: 8px;
    right: 8px;
    transform: scaleX(-1);
}

.envelope-corner.bottom-left {
    bottom: 8px;
    left: 8px;
    transform: scaleY(-1);
}

.envelope-corner.bottom-right {
    bottom: 8px;
    right: 8px;
    transform: scale(-1, -1);
}

/* Section top border ornament */
.section-border-top {
    display: block;
    width: 100%;
    max-width: 600px;
    height: 40px;
    margin: 0 auto 40px;
    color: var(--color-accent);
}

/* Section leaf accent (above title) */
.section-leaf {
    display: block;
    width: 60px;
    height: 30px;
    margin: 0 auto 10px;
    color: var(--color-gold);
}

.section-leaf.light {
    color: var(--color-gold-light);
}

/* Section divider SVG (below title) */
.section-divider-svg {
    display: block;
    width: min(360px, 80%);
    height: 40px;
    margin: 8px auto 0;
    color: var(--color-accent);
}

.section-divider-svg.light {
    color: var(--color-gold-light);
}

/* Photo floral frame */
.photo-floral-frame {
    position: absolute;
    inset: -18px;
    width: calc(100% + 36px);
    height: calc(100% + 36px);
    color: var(--color-gold);
    pointer-events: none;
    animation: spinSlow 40s linear infinite;
}

/* Hero floral ornaments */
.hero-floral {
    position: absolute;
    width: clamp(120px, 20vw, 200px);
    height: clamp(120px, 20vw, 200px);
    color: var(--color-gold);
    opacity: 0.25;
    pointer-events: none;
}

.hero-floral-left {
    bottom: 20px;
    left: 20px;
    transform: scaleY(-1);
}

.hero-floral-right {
    top: 20px;
    right: 20px;
    transform: scaleX(-1);
}

/* Section bottom floral */
.section-floral-bottom {
    display: block;
    width: min(300px, 70%);
    height: 40px;
    margin: 50px auto 0;
    color: var(--color-gold-light);
}

/* Footer floral */
.footer-floral {
    display: block;
    width: min(300px, 70%);
    height: 40px;
    margin: 0 auto 30px;
    color: var(--color-gold);
}

/* ========================================
   ENVELOPE / OPENING SCREEN
   ======================================== */
.envelope {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-bg-dark) 0%, #3A2F20 50%, var(--color-bg-darker) 100%);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.envelope.closing {
    opacity: 0;
    transform: scale(1.1);
    pointer-events: none;
}

.envelope-content {
    position: relative;
    text-align: center;
    padding: 60px 40px;
    max-width: 480px;
    width: 90%;
    background: linear-gradient(145deg, rgba(255, 248, 235, 0.06), rgba(255, 248, 235, 0.02));
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(10px);
    animation: envelopeFadeIn 1.2s ease-out;
}

.envelope-label {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 16px;
}

.envelope-names {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 400;
    color: var(--color-cream);
    line-height: 1.2;
    margin-bottom: 30px;
}

.envelope-names .amp {
    display: block;
    font-style: italic;
    font-size: 1.8rem;
    color: var(--color-gold);
    margin: 8px 0;
}

.envelope-to {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-bottom: 36px;
    line-height: 1.8;
}

.envelope-to span {
    display: block;
    font-size: 1.15rem;
    color: var(--color-cream);
    margin-top: 4px;
    font-weight: 500;
}

.btn-open {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--color-gold), var(--color-accent));
    color: var(--color-bg-dark);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 50px;
    box-shadow: var(--shadow-gold), 0 0 40px rgba(212, 175, 55, 0.15);
    transition: all var(--transition-smooth);
    animation: pulse 2s ease-in-out infinite;
}

.btn-open:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: var(--shadow-gold), 0 0 60px rgba(212, 175, 55, 0.3);
}

.btn-open-icon {
    animation: float 2s ease-in-out infinite;
}

/* Floating Petals */
.floating-petals {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.petal {
    position: absolute;
    width: 12px;
    height: 12px;
    background: radial-gradient(ellipse, var(--color-gold-light), var(--color-accent-light));
    border-radius: 50% 0 50% 0;
    opacity: 0.3;
    animation: petalFall linear infinite;
}

.p1 {
    left: 10%;
    animation-duration: 8s;
    animation-delay: 0s;
    width: 10px;
    height: 10px;
}

.p2 {
    left: 30%;
    animation-duration: 10s;
    animation-delay: 2s;
    width: 14px;
    height: 14px;
}

.p3 {
    left: 50%;
    animation-duration: 7s;
    animation-delay: 4s;
}

.p4 {
    left: 70%;
    animation-duration: 11s;
    animation-delay: 1s;
    width: 8px;
    height: 8px;
}

.p5 {
    left: 85%;
    animation-duration: 9s;
    animation-delay: 3s;
    width: 16px;
    height: 16px;
}

.p6 {
    left: 20%;
    animation-duration: 12s;
    animation-delay: 5s;
    width: 11px;
    height: 11px;
}

/* ========================================
   MUSIC PLAYER
   ======================================== */
.music-player {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 900;
    animation: fadeInUp 0.6s ease;
}

.music-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-smooth);
}

.music-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.music-bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 18px;
}

.music-bars .bar {
    width: 3px;
    background: var(--color-gold-light);
    border-radius: 2px;
    transition: height 0.3s ease;
}

.music-bars.playing .bar:nth-child(1) {
    animation: musicBar 0.6s ease-in-out infinite alternate;
}

.music-bars.playing .bar:nth-child(2) {
    animation: musicBar 0.6s ease-in-out infinite alternate 0.15s;
}

.music-bars.playing .bar:nth-child(3) {
    animation: musicBar 0.6s ease-in-out infinite alternate 0.3s;
}

.music-bars.playing .bar:nth-child(4) {
    animation: musicBar 0.6s ease-in-out infinite alternate 0.45s;
}

.music-bars:not(.playing) .bar {
    height: 4px !important;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(170deg, var(--color-bg-dark) 0%, #3D3028 40%, var(--color-bg-darker) 100%);
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 30%, rgba(192, 139, 139, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 90%, rgba(200, 169, 110, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--color-gold);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 6s ease-in-out infinite;
}

.hero-content {
    position: relative;
    text-align: center;
    padding: 40px 20px;
    z-index: 2;
}

.hero-bismillah {
    font-size: 1.6rem;
    color: var(--color-gold);
    margin-bottom: 40px;
}

.hero-subtitle {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--color-accent-light);
    margin-bottom: 16px;
}

.hero-names {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 400;
    color: var(--color-cream);
    line-height: 1.1;
    margin-bottom: 30px;
}

.hero-names .name-groom,
.hero-names .name-bride {
    display: inline-block;
}

.hero-amp {
    display: block;
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--color-gold);
    margin: 8px 0;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}

.hero-date {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
}

.hero-date p {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    letter-spacing: 3px;
    color: var(--color-accent-light);
    text-transform: uppercase;
    white-space: nowrap;
}

.date-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--color-accent-light);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-dot {
    width: 4px;
    height: 8px;
    background: var(--color-gold);
    border-radius: 2px;
    animation: scrollDot 1.5s ease-in-out infinite;
}

.scroll-indicator p {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

/* ========================================
   SECTION COMMON STYLES
   ======================================== */
.section {
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 400;
    color: var(--color-primary-dark);
    margin-bottom: 8px;
}

/* ========================================
   COUPLE SECTION
   ======================================== */
.couple {
    background: var(--color-bg);
}

.couple-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.couple-card {
    flex: 1;
    min-width: 260px;
    max-width: 340px;
    text-align: center;
    padding: 30px;
}

.couple-photo-frame {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 24px;
}

.couple-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--color-gold);
    box-shadow: var(--shadow-gold);
    position: relative;
    z-index: 1;
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-bg-alt), var(--color-accent-light));
    color: var(--color-primary-light);
}

.couple-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-primary-dark);
    margin-bottom: 8px;
}

.couple-child {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 4px;
}

.couple-parents {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 16px;
}

.couple-social {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-bg-alt);
    color: var(--color-primary);
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--color-gold);
    color: var(--color-white);
    transform: translateY(-2px);
}

.couple-divider {
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.heart-badge {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-gold), var(--color-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-gold);
}

.heart-badge span {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--color-white);
    font-style: italic;
}

/* ========================================
   COUNTDOWN SECTION
   ======================================== */
.countdown-section {
    background: linear-gradient(170deg, var(--color-bg-dark) 0%, #3D3028 100%);
    overflow: hidden;
    position: relative;
}

.countdown-section .section-header h2 {
    color: var(--color-cream);
}

.countdown-quote {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 20px auto 0;
    line-height: 1.8;
    font-style: italic;
}

.countdown-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(10px, 4vw, 30px);
    max-width: 700px;
    margin: 0 auto;
}

.countdown-item {
    text-align: center;
    min-width: 80px;
}

.countdown-number {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 600;
    line-height: 1;
    background: linear-gradient(180deg, var(--color-gold-light), var(--color-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.countdown-label {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-accent-light);
    margin-top: 8px;
}

.countdown-separator {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--color-gold);
    opacity: 0.5;
    margin-top: -20px;
    animation: blink 1s ease-in-out infinite;
}

/* ========================================
   EVENT SECTION
   ======================================== */
.event {
    background: var(--color-bg);
}

.event-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto 60px;
    flex-wrap: wrap;
}

.event-card {
    flex: 1;
    min-width: 280px;
    max-width: 380px;
    padding: 40px 30px;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-accent-light);
    text-align: center;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-gold), var(--color-accent), var(--color-gold));
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.event-icon-wrap {
    color: var(--color-gold);
    margin-bottom: 16px;
}

.event-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-primary-dark);
    margin-bottom: 24px;
}

.event-detail {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.event-detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.detail-svg {
    flex-shrink: 0;
    color: var(--color-accent);
}

.event-detail-item p {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text-light);
    line-height: 1.5;
}

/* Map */
.map-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.map-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--color-primary-dark);
    margin-bottom: 20px;
}

.map-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.map-tab {
    padding: 10px 24px;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: var(--color-text-light);
    background: var(--color-bg-alt);
    border-radius: 50px;
    border: 1px solid transparent;
    transition: all var(--transition-fast);
}

.map-tab.active {
    background: var(--color-primary-dark);
    color: var(--color-cream);
    border-color: var(--color-gold);
}

.map-tab:hover:not(.active) {
    border-color: var(--color-accent);
}

.map-wrapper {
    position: relative;
    width: 100%;
    height: 350px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-accent-light);
    box-shadow: var(--shadow-md);
    margin-bottom: 20px;
}

.map-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    opacity: 0;
    transition: opacity var(--transition-smooth);
    pointer-events: none;
}

.map-frame.active {
    opacity: 1;
    pointer-events: auto;
}

.btn-direction {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-cream);
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: all var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

.btn-direction:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ========================================
   GALLERY SECTION
   ======================================== */
.gallery {
    background: var(--color-bg-alt);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-smooth);
}

.gallery-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(44, 36, 24, 0.3);
    opacity: 0;
    transition: opacity var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Video */
.video-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.video-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--color-primary-dark);
    margin-bottom: 20px;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-accent-light);
}

.video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ========================================
   RSVP SECTION
   ======================================== */
.rsvp {
    background: linear-gradient(170deg, var(--color-bg-dark) 0%, #3D3028 100%);
}

.rsvp .section-header h2 {
    color: var(--color-cream);
}

.rsvp-desc {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--color-text-muted);
    max-width: 550px;
    margin: 20px auto 0;
    line-height: 1.8;
    text-align: center;
}

.rsvp-form {
    max-width: 500px;
    margin: 0 auto 60px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: var(--color-accent-light);
    text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 18px;
    background: rgba(255, 248, 235, 0.07);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--radius-sm);
    color: var(--color-cream);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all var(--transition-fast);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-muted);
    opacity: 0.6;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
    background: rgba(255, 248, 235, 0.1);
}

.form-group select option {
    background: var(--color-bg-dark);
    color: var(--color-cream);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 36px;
    background: linear-gradient(135deg, var(--color-gold), var(--color-accent));
    color: var(--color-bg-dark);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 50px;
    transition: all var(--transition-smooth);
    box-shadow: var(--shadow-gold);
    cursor: pointer;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold), 0 0 40px rgba(212, 175, 55, 0.2);
}

.btn-submit .btn-arrow {
    transition: transform var(--transition-fast);
}

.btn-submit:hover .btn-arrow {
    transform: translateX(4px);
}

/* Wishes */
.wishes-container {
    max-width: 500px;
    margin: 0 auto;
}

.wishes-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--color-cream);
    text-align: center;
    margin-bottom: 24px;
}

.wishes-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 8px;
}

.wishes-list::-webkit-scrollbar {
    width: 4px;
}

.wishes-list::-webkit-scrollbar-thumb {
    background: var(--color-gold);
    border-radius: 2px;
}

.wish-item {
    padding: 20px;
    background: rgba(255, 248, 235, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: var(--radius-md);
    animation: fadeInUp 0.5s ease;
}

.wish-name {
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--color-gold);
    margin-bottom: 4px;
}

.wish-status {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.wish-message {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-accent-light);
    line-height: 1.6;
    font-style: italic;
}

/* ========================================
   GIFT SECTION
   ======================================== */
.gift {
    background: var(--color-bg);
}

.gift-desc {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--color-text-light);
    max-width: 550px;
    margin: 20px auto 0;
    line-height: 1.8;
    text-align: center;
}

.gift-cards {
    display: flex;
    justify-content: center;
    gap: 24px;
    max-width: 600px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.gift-card {
    flex: 1;
    min-width: 240px;
    padding: 30px;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-accent-light);
    text-align: center;
    transition: all var(--transition-smooth);
}

.gift-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.gift-bank-icon {
    color: var(--color-gold);
    margin-bottom: 10px;
}

.gift-bank-name {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary-dark);
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.gift-account {
    font-family: var(--font-sans);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: 3px;
    margin-bottom: 4px;
}

.gift-holder {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

.btn-copy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    background: var(--color-bg-alt);
    border-radius: 50px;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: var(--color-primary);
    transition: all var(--transition-fast);
}

.btn-copy:hover {
    background: var(--color-gold);
    color: var(--color-white);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: linear-gradient(170deg, var(--color-bg-dark), var(--color-bg-darker));
    padding: 80px 20px 40px;
    text-align: center;
}

.footer-thanks {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--color-accent-light);
    margin-bottom: 12px;
}

.footer-names {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--color-cream);
    margin-bottom: 20px;
}

.footer-quote {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-text-muted);
    font-style: italic;
    max-width: 400px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.footer-copyright {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    color: rgba(168, 149, 127, 0.5);
    letter-spacing: 1px;
}

/* ========================================
   LIGHTBOX
   ======================================== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-smooth);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--color-cream);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all var(--transition-fast);
    z-index: 10;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-cream);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all var(--transition-fast);
    z-index: 10;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    animation: lightboxZoom 0.3s ease;
}

/* ========================================
   TOAST
   ======================================== */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    padding: 14px 28px;
    background: var(--color-primary-dark);
    color: var(--color-cream);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    z-index: 3000;
    opacity: 0;
    transition: all var(--transition-smooth);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ========================================
   KEYFRAMES
   ======================================== */
@keyframes envelopeFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: var(--shadow-gold), 0 0 40px rgba(212, 175, 55, 0.15);
    }

    50% {
        box-shadow: var(--shadow-gold), 0 0 60px rgba(212, 175, 55, 0.3);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

@keyframes petalFall {
    0% {
        top: -10%;
        opacity: 0;
        transform: rotate(0deg) translateX(0);
    }

    10% {
        opacity: 0.3;
    }

    90% {
        opacity: 0.3;
    }

    100% {
        top: 110%;
        opacity: 0;
        transform: rotate(360deg) translateX(60px);
    }
}

@keyframes musicBar {
    0% {
        height: 4px;
    }

    100% {
        height: 18px;
    }
}

@keyframes particleFloat {

    0%,
    100% {
        opacity: 0;
        transform: translateY(0) scale(0);
    }

    30% {
        opacity: 0.8;
        transform: translateY(-50px) scale(1);
    }

    70% {
        opacity: 0.4;
        transform: translateY(-120px) scale(0.8);
    }
}

@keyframes scrollDot {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(16px);
        opacity: 0;
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 0.1;
    }
}

@keyframes spinSlow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes lightboxZoom {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .section {
        padding: 70px 16px;
    }

    .envelope-names {
        font-size: 2.2rem;
    }

    .envelope-content {
        padding: 40px 24px;
    }

    .envelope-corner {
        width: 70px;
        height: 70px;
    }

    .couple-container {
        gap: 20px;
    }

    .couple-divider {
        padding-top: 0;
    }

    .event-container {
        gap: 20px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 10px;
    }

    .gallery-item:nth-child(1) {
        grid-column: span 2;
        grid-row: span 1;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 44px;
        height: 44px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .map-wrapper {
        height: 280px;
    }

    .countdown-item {
        min-width: 60px;
    }

    .music-player {
        bottom: 20px;
        right: 20px;
    }

    .music-toggle {
        width: 44px;
        height: 44px;
    }

    .hero-floral {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item:nth-child(1) {
        grid-column: span 1;
    }

    .hero-date {
        flex-direction: column;
        gap: 10px;
    }

    .date-line {
        width: 40px;
    }

    .envelope-corner {
        width: 50px;
        height: 50px;
    }

    .section-border-top {
        max-width: 90%;
    }
}