/* ==========================================
   NIKAHYUK! DIGITAL WEDDING INVITATION CSS
   Theme: Premium Champagne & Rose Gold Glass
   ========================================== */

:root {
    --primary-gold: #c5a059;
    --primary-gold-hover: #b48e47;
    --gold-glow: rgba(197, 160, 89, 0.4);
    --gold-text: #8e6d2b;
    --bg-champagne: #faf6f0;
    --bg-card: rgba(255, 255, 255, 0.65);
    --border-glass: rgba(197, 160, 89, 0.25);
    --text-dark: #2c2923;
    --text-muted: #6e675c;
    --text-rose: #d6807d;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
    --font-script: 'Sacramento', cursive;
}

/* Reset & Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-champagne);
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Canvas */
#petals-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 10;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Grid helper */
.text-center { text-align: center; }

/* Typography */
h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
}

.sacramento-title {
    font-family: var(--font-script);
    color: var(--primary-gold);
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 400;
}

/* Cover Overlay */
.cover-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, #fcfaf7 0%, #ecdcb960 50%, #d8caa770 100%), 
                url('https://images.unsplash.com/photo-1522673607200-164d1b6ce486?q=80&w=1200') no-repeat center center;
    background-size: cover;
    background-blend-mode: overlay;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.8s ease;
}

.cover-overlay.slide-up {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.cover-content {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    padding: 3rem 2rem;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1), 0 5px 15px rgba(197, 160, 89, 0.15);
    animation: zoomIn 1s ease-out;
}

.cover-sub {
    font-size: 0.9rem;
    letter-spacing: 4px;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.couple-title {
    font-family: var(--font-script);
    font-size: 4.5rem;
    color: var(--primary-gold);
    font-weight: 400;
    margin-bottom: 1rem;
    line-height: 1;
}

.cover-date {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.recipient-box {
    background: rgba(197, 160, 89, 0.08);
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
    padding: 1.5rem 1rem;
    margin-bottom: 2rem;
}

.to-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

#guest-name {
    font-size: 1.4rem;
    color: var(--gold-text);
    font-weight: 700;
}

.note-tamu {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 0.5rem;
}

/* Glassmorphism Cards */
.card-glass {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04), 0 1px 5px rgba(197, 160, 89, 0.08);
}

/* Main Content (blur before opening) */
.main-content {
    transition: filter 1s ease;
}

.main-content.blurred {
    filter: blur(10px);
}

/* Floating Music Player */
.music-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    transition: opacity 0.5s ease;
}

.music-container.hidden {
    opacity: 0;
    pointer-events: none;
}

.btn-music {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-gold);
    color: white;
    border: none;
    outline: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 5px 15px var(--gold-glow);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, background 0.3s ease;
}

.btn-music:hover {
    background: var(--primary-gold-hover);
}

.btn-music.rotate {
    animation: rotateDisc 5s linear infinite;
}

.btn-music.paused {
    animation-play-state: paused;
}

/* General Buttons */
.btn-primary {
    background: var(--primary-gold);
    color: white;
    padding: 0.8rem 2rem;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 6px 20px var(--gold-glow);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    background: var(--primary-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--gold-glow);
}

.btn-primary-wide {
    width: 100%;
    background: var(--primary-gold);
    color: white;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 5px 15px var(--gold-glow);
    transition: all 0.3s ease;
}

.btn-primary-wide:hover {
    background: var(--primary-gold-hover);
    box-shadow: 0 8px 20px var(--gold-glow);
}

.btn-secondary {
    background: white;
    color: var(--gold-text);
    border: 1px solid var(--primary-gold);
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.btn-secondary:hover {
    background: var(--primary-gold);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px var(--gold-glow);
}

/* Sections Styling */
section {
    padding: 6rem 0;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    color: var(--gold-text);
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.section-title-left {
    font-size: 1.8rem;
    color: var(--gold-text);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* HERO SECTION */
.hero-section {
    background: linear-gradient(180deg, rgba(250, 246, 240, 0.8) 0%, rgba(250, 246, 240, 0.4) 100%),
                url('https://images.unsplash.com/photo-1519741497674-611481863552?q=80&w=1200') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-sub {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.hero-intro {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.hero-names {
    font-family: var(--font-heading);
    font-size: 4rem;
    color: var(--gold-text);
    font-weight: 800;
    margin-bottom: 3rem;
    letter-spacing: 2px;
}

/* Countdown */
.countdown-container {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 2rem;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 10px 25px rgba(0,0,0,0.02);
}

.countdown-title {
    font-size: 1.2rem;
    letter-spacing: 2px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.countdown-item {
    background: var(--primary-gold);
    color: white;
    padding: 1rem 0.5rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 10px var(--gold-glow);
}

.countdown-item span {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
}

.countdown-item label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.2rem;
    opacity: 0.9;
}

/* COUPLE SECTION */
.couple-section {
    background: radial-gradient(circle at 10% 20%, #fbf9f4 0%, #faf6f0 100%);
}

.quran-quote {
    padding: 3rem;
    max-width: 800px;
    margin: 0 auto 5rem;
    text-align: center;
}

.quran-arabic {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--gold-text);
    margin-bottom: 1.5rem;
    line-height: 2;
}

.quran-translate {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 1rem;
}

.quran-surah {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-gold);
    letter-spacing: 1px;
}

.couple-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
}

.couple-card {
    padding: 4rem 2rem 3rem;
    flex: 1 1 350px;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.avatar-wrap {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary-gold);
    box-shadow: 0 8px 20px var(--gold-glow);
    margin-bottom: 2rem;
}

.avatar-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.couple-card:hover .avatar-wrap img {
    transform: scale(1.1);
}

.mempelai-name {
    font-size: 1.8rem;
    color: var(--gold-text);
    margin-bottom: 0.8rem;
    font-weight: 800;
}

.parents-info {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.instagram-link {
    color: var(--text-rose);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.instagram-link:hover {
    color: var(--primary-gold);
}

.couple-divider {
    font-size: 3rem;
    color: var(--primary-gold);
}

/* EVENT SECTION */
.event-section {
    background: linear-gradient(180deg, #faf6f0 0%, #f7f1e7 100%);
}

.event-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 4rem;
}

.event-card {
    padding: 4rem 2rem;
    flex: 1 1 350px;
    max-width: 450px;
}

.event-icon {
    font-size: 3rem;
    color: var(--primary-gold);
    margin-bottom: 1.5rem;
}

.event-card h3 {
    font-size: 1.6rem;
    color: var(--gold-text);
    margin-bottom: 2rem;
    letter-spacing: 2px;
}

.event-detail p {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--text-dark);
}

.event-time i, .event-date i, .event-loc i {
    color: var(--primary-gold);
    margin-right: 0.5rem;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* GALLERY SECTION */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 1/1;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-glass);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(197, 160, 89, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-overlay span {
    color: white;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    border-bottom: 2px solid white;
    padding-bottom: 5px;
}

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

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

/* JOURNEY TIMELINE */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 4rem auto 0;
}

/* Line center */
.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--primary-gold);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

/* Dots */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    right: -8px;
    background-color: white;
    border: 4px solid var(--primary-gold);
    top: 25px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item.right::after {
    left: -8px;
}

.timeline-item.left {
    left: 0;
}

.timeline-item.right {
    left: 50%;
}

.timeline-content {
    padding: 2rem;
    position: relative;
}

.timeline-date {
    display: inline-block;
    background: var(--primary-gold);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.timeline-content h3 {
    font-size: 1.3rem;
    color: var(--gold-text);
    margin-bottom: 0.8rem;
}

.timeline-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* RSVP & WISHES SECTION */
.rsvp-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    margin-top: 2rem;
}

.rsvp-form-container, .wishes-display-container {
    padding: 3rem 2.5rem;
}

.form-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-glass);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    outline: none;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--primary-gold);
    box-shadow: 0 0 10px var(--gold-glow);
}

/* Wishes Feed */
.wishes-list {
    max-height: 480px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

/* Scrollbar styling */
.wishes-list::-webkit-scrollbar {
    width: 5px;
}
.wishes-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.02);
}
.wishes-list::-webkit-scrollbar-thumb {
    background: var(--primary-gold);
    border-radius: 10px;
}

.empty-wishes {
    padding: 4rem 1rem;
    color: var(--text-muted);
}

.empty-wishes i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-gold);
    opacity: 0.5;
}

.wish-card {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(197, 160, 89, 0.15);
    animation: slideInUp 0.5s ease-out;
}

.wish-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
}

.wish-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--gold-text);
}

.wish-status {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-weight: 700;
}

.wish-status.hadir {
    background: rgba(46, 204, 113, 0.12);
    color: #27ae60;
}

.wish-status.absen {
    background: rgba(231, 76, 60, 0.12);
    color: #c0392b;
}

.wish-text {
    font-size: 0.92rem;
    color: var(--text-dark);
    white-space: pre-wrap;
}

.wish-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    display: block;
}

/* WEDDING GIFT SECTION */
.gift-section {
    background: linear-gradient(180deg, #f7f1e7 0%, #faf6f0 100%);
}

.gift-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.gift-card {
    padding: 3rem 2rem;
    flex: 1 1 300px;
    max-width: 380px;
    text-align: center;
}

.bank-logo {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 900;
    color: #0066ae;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
}

.bank-logo.dana {
    color: #118ee9;
}

.acc-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.acc-number {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.acc-name {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.btn-copy {
    background: rgba(197, 160, 89, 0.1);
    border: 1px solid var(--primary-gold);
    color: var(--gold-text);
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-copy:hover {
    background: var(--primary-gold);
    color: white;
}

/* Physical Address Card */
.gift-address {
    max-width: 700px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.address-icon {
    font-size: 2.5rem;
    color: var(--primary-gold);
    margin-bottom: 1rem;
}

.gift-address h3 {
    font-size: 1.3rem;
    color: var(--gold-text);
    margin-bottom: 1rem;
}

.gift-address p {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

/* FOOTER */
.footer {
    background: radial-gradient(circle at 50% 120%, #ecdcb960 0%, #161925 90%, #0d0f17 100%);
    color: #e5dfd5;
    padding: 6rem 0;
}

.footer-thanks {
    font-size: 1.1rem;
    font-style: italic;
    color: #bfae96;
    margin-bottom: 2rem;
}

.footer h2.sacramento-title {
    font-size: 4rem;
    color: var(--primary-gold);
    margin-bottom: 1rem;
}

.copyright {
    font-size: 0.85rem;
    color: #8c8273;
    margin-top: 3rem;
}

.copyright i {
    color: #d6807d;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(44, 41, 35, 0.9);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    z-index: 10000;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.hidden {
    opacity: 0;
    transform: translate(-50%, 10px);
    pointer-events: none;
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes rotateDisc {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

.animate-bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

.animate-beat {
    animation: beat 1.2s infinite;
}

@keyframes beat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* Scroll trigger animations */
.scroll-trigger {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.scroll-trigger.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   RESPONSIVE LAYOUTS
   ========================================== */
@media (max-width: 900px) {
    .rsvp-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 20px;
    }
    
    .timeline-item::after {
        left: 23px;
        right: auto;
    }
    
    .timeline-item.right::after {
        left: 23px;
    }
    
    .timeline-item.right {
        left: 0%;
    }
}

@media (max-width: 480px) {
    .couple-title {
        font-size: 3.5rem;
    }
    .hero-names {
        font-size: 3rem;
    }
    .sacramento-title {
        font-size: 2.8rem;
    }
    .countdown-grid {
        gap: 0.5rem;
    }
    .countdown-item span {
        font-size: 1.5rem;
    }
    section {
        padding: 4rem 0;
    }
}
