@font-face {
    font-family: 'Balgend';
    src: url('font/Balgend-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    /* Color Palette - Bali Traditional Luxury */
    --primary-color: #CBA153;
    /* Balinese Gold */
    --primary-dark: #A57C36;
    --accent-color: #7B2C2C;
    /* Balinese Maroon / Burgundy */
    --accent-dark: #581d1d;
    --bg-color: #FAFAFA;
    /* Cream / White */
    --bg-dark: #1A1A1A;
    /* Black Gold Accent */
    --wood-color: #5C4033;
    /* Wood Brown */
    --leaf-color: #4A5D23;
    /* Tropical Leaf Green */
    --text-color: #333333;
    --text-light: #666666;
    --white: #FFFFFF;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;

    --transition: all 0.3s ease;
}

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

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

html {
    scroll-behavior: smooth;
}

/* Typography */
h1,
h2,
h3,
.cover-names,
.hero-names,
.ampersand,
.cover-title {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--wood-color);
}

.text-center {
    text-align: center;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
    position: relative;
}

.bg-light {
    background-color: var(--white);
}

/* Utilities */
.hidden {
    display: none !important;
}

.btn-primary {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 12px 35px;
    border: none;
    border-radius: 30px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(123, 44, 44, 0.3);
    border: 1px solid rgba(203, 161, 83, 0.5);
    /* Gold border touch */
}

.btn-primary:hover {
    background-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(123, 44, 44, 0.4);
}

.btn-outline {
    display: inline-block;
    border: 2px solid var(--primary-color);
    color: var(--wood-color);
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    margin-top: 15px;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Cover Screen */
.cover-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/cover-bg.webp') center/cover no-repeat;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: opacity 1s ease-in-out, visibility 1s;
}

.cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(26, 26, 26, 0.5), rgba(26, 26, 26, 0.8));
}

.cover-content {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(15px);
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    max-width: 90%;
    width: 450px;
    border: 2px solid var(--primary-color);
    /* Gold Border */
}

.cover-title {
    font-size: 1.3rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: var(--primary-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.cover-names {
    font-size: 3rem;
    margin-bottom: 5px;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.cover-date {
    font-size: 1rem;
    color: #FFFFFF;
    margin-bottom: 30px;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.guest-info {
    margin-bottom: 30px;
}

.guest-info p {
    font-size: 0.9rem;
    color: #FFFFFF;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

#guest-name {
    font-size: 1.5rem;
    margin: 10px 0;
    color: var(--primary-color);
    font-family: var(--font-heading);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

.guest-apology {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.95);
    margin-top: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

/* Hero Section */
.hero {
    height: 100vh;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 0;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    /* Parallax fix for iOS Safari */
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    padding: 40px;
    border: 1px solid rgba(203, 161, 83, 0.4);
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(0px);
    border-radius: 15px;
}

/* Simple Bali CSS frames */
.bali-frame-top,
.bali-frame-bottom {
    width: 100px;
    height: 20px;
    margin: 0 auto 20px auto;
    border-top: 3px double var(--primary-color);
    border-bottom: 1px solid var(--primary-color);
}

.bali-frame-bottom {
    margin: 30px auto 0 auto;
}

.hero-subtitle {
    font-size: 1.2rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: 500;
}

.hero-names {
    font-size: 4.5rem;
    color: var(--white);
    margin-bottom: 10px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-date {
    font-size: 1.2rem;
    letter-spacing: 3px;
    margin-bottom: 40px;
    color: #f0f0f0;
}

/* Countdown */
.countdown-wrapper {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.countdown-item {
    background: rgba(92, 64, 51, 0.6);
    /* Wood brown with transparency */
    backdrop-filter: blur(5px);
    padding: 15px;
    border-radius: 10px;
    min-width: 80px;
    border: 1px solid var(--primary-color);
}

.countdown-item span {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    display: block;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.countdown-item p {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0;
    color: var(--white);
}

/* Floating Flowers Animation */
.floating-flowers {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.flower {
    position: absolute;
    width: 30px;
    height: 30px;
    background: url('images/flower.png') center/contain no-repeat;
    opacity: 0.7;
    animation: falling linear infinite;
}

@keyframes falling {
    0% {
        transform: translateY(-50px) translateX(0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.8;
    }

    50% {
        transform: translateY(50vh) translateX(25px) rotate(180deg);
    }

    90% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(105vh) translateX(-15px) rotate(360deg);
        opacity: 0;
    }
}

/* Section Title */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    color: var(--wood-color);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background-color: var(--primary-color);
    margin: 15px auto 0;
}

.section-subtitle {
    max-width: 700px;
    margin: 0 auto 40px;
    color: var(--text-light);
    font-size: 0.7rem;
}

/* Quote Section */
.quote {
    background: url('images/pattern-bali.png') repeat;
    background-color: rgba(250, 250, 250, 0.9);
    background-blend-mode: overlay;
}

.omkara {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1;
}

.quote p {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 10px;
    line-height: 1.8;
    color: var(--wood-color);
}

.quote span {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 500;
}

.quote-translation {
    font-size: 0.9rem !important;
    margin-top: 20px !important;
    font-family: var(--font-body) !important;
    font-style: normal !important;
    color: var(--text-light) !important;
}

/* Mempelai */
#mempelai {
    background-color: #EBE5DF;
    padding: 100px 0;
}

#mempelai .container {
    max-width: 900px;
}

.couple-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 80px;
    gap: 50px;
}

.couple-row:last-child {
    margin-bottom: 0;
}

.groom-row {
    flex-direction: row;
}

.bride-row {
    flex-direction: row;
}

.couple-photo {
    width: 320px;
    height: 420px;
    position: relative;
    flex-shrink: 0;
    background: linear-gradient(90deg, #f0ede6 25%, #e6e0d2 50%, #f0ede6 75%);
    background-size: 200% 100%;
    animation: galleryShimmer 1.5s infinite;
}

.groom-photo {
    border-radius: 0 0 150px 0;
}

.bride-photo {
    border-radius: 0 0 0 150px;
}

.couple-photo.loaded {
    animation: none;
    background: #f0ede6;
}

.couple-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.couple-photo img.loaded {
    opacity: 1;
}

.groom-photo img {
    border-radius: 0 0 150px 0;
}

.groom-photo::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--white);
    border-radius: 0 0 150px 0;
    z-index: 2;
    pointer-events: none;
}

.bride-photo img {
    border-radius: 0 0 0 150px;
}

.bride-photo::before {
    content: '';
    position: absolute;
    top: -15px;
    right: -15px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--white);
    border-radius: 0 0 0 150px;
    z-index: 2;
    pointer-events: none;
}

.couple-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.groom-info {
    align-items: flex-start;
    text-align: left;
}

.bride-info {
    align-items: flex-end;
    text-align: right;
}

.name-wrapper {
    position: relative;
    margin-bottom: 30px;
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
}

.groom-info .name-wrapper {
    justify-content: flex-start;
}

.bride-info .name-wrapper {
    justify-content: flex-end;
}

.bg-text {
    font-family: var(--font-heading);
    font-size: 5.5rem;
    color: rgba(92, 64, 51, 0.08);
    /* Faint wood color */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    z-index: 1;
}

.groom-info .bg-text {
    left: 0;
}

.bride-info .bg-text {
    right: 0;
}

.front-text {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--wood-color);
    position: relative;
    z-index: 2;
    margin: 0;
    font-style: italic;
    font-weight: 400;
}

.details {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.8;
}

.details p {
    margin-bottom: 5px;
}

.parents-label {
    margin-bottom: 5px;
}

.parents-names {
    margin-bottom: 10px;
}

.address {
    color: var(--text-light);
}

.ampersand-divider {
    margin-top: -60px;
    margin-bottom: 50px;
    position: relative;
    z-index: 10;
}

.ampersand {
    font-family: var(--font-heading);
    font-size: 5rem;
    color: var(--primary-color);
    opacity: 0.6;
    font-weight: 400;
    margin: 0;
}

@media (max-width: 768px) {
    .ampersand-divider {
        margin-top: -80px;
        margin-bottom: 50px;
    }

    .couple-row {
        flex-direction: column !important;
        gap: 15px;
        margin-bottom: 100px;
    }

    .bride-row {
        flex-direction: column-reverse !important;
    }

    .couple-info {
        align-items: center;
        text-align: center;
    }

    .groom-info,
    .bride-info {
        align-items: center;
        text-align: center;
    }

    .name-wrapper {
        justify-content: center !important;
        height: auto;
        padding: 15px 0 5px 0;
        margin-bottom: 10px;
    }

    .bg-text {
        font-size: 3.5rem;
        left: 50% !important;
        right: auto !important;
        transform: translate(-50%, -50%);
    }

    .front-text {
        font-size: 1.4rem;
    }

    .couple-photo {
        width: 280px;
        height: 360px;
    }
}

/* Acara */
.bg-pattern {
    background-color: var(--bg-color);
    background-image: radial-gradient(var(--primary-color) 0.7px, transparent 0.7px);
    background-size: 24px 24px;
    background-position: 0 0;
}

.event-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.event-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    flex: 1;
    min-width: 300px;
    border-top: 6px solid var(--primary-color);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.event-card hr {
    margin-top: auto !important;
}

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

.event-card h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--wood-color);
}

.event-detail p {
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.event-detail i {
    color: var(--accent-color);
    width: 25px;
}

/* Maps */
.maps-container {
    background: var(--white);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(203, 161, 83, 0.2);
}

.maps-container h3 {
    margin-bottom: 15px;
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: var(--wood-color);
}

.maps-container iframe {
    border-radius: 10px;
    margin-bottom: 15px;
}

.maps-spacer {
    height: 40px;
}

/* Mependes */
.mependes {
    background-color: #F8F5F0;
}

.mependes-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(203, 161, 83, 0.2);
    border-top: 4px solid var(--primary-color);
}

.mependes-icon {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.mependes-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.mependes-list li {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--wood-color);
    font-weight: 500;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.mependes-list li::before {
    content: '❖';
    color: var(--primary-color);
    font-size: 0.8rem;
    flex-shrink: 0;
    margin-top: 5px;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 3px solid var(--white);
    background: linear-gradient(90deg, #f0ede6 25%, #e6e0d2 50%, #f0ede6 75%);
    background-size: 200% 100%;
    animation: galleryShimmer 1.5s infinite;
    position: relative;
}

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

.gallery-item.loaded {
    animation: none;
    background: #f0ede6;
}

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

.gallery-item img.loaded {
    opacity: 1;
}

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

/* Love Story Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 40px auto 0;
}

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

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    left: 0;
}

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

.timeline-dot {
    position: absolute;
    width: 24px;
    height: 24px;
    right: -12px;
    background-color: var(--white);
    border: 5px solid var(--primary-color);
    top: 30px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item.right .timeline-dot {
    left: -12px;
}

.timeline-content {
    padding: 25px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: right;
    border-left: 4px solid var(--accent-color);
}

.timeline-item.right .timeline-content {
    text-align: left;
    border-left: none;
    border-right: 4px solid var(--accent-color);
}

.timeline-img-wrapper {
    width: 100%;
    height: 150px;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    background: linear-gradient(90deg, #f0ede6 25%, #e6e0d2 50%, #f0ede6 75%);
    background-size: 200% 100%;
    animation: galleryShimmer 1.5s infinite;
    position: relative;
}

.timeline-img-wrapper.loaded {
    animation: none;
    background: #f0ede6;
}

.timeline-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.timeline-img.loaded {
    opacity: 1;
}

.timeline-content h3 {
    margin-bottom: 5px;
    font-size: 1.4rem;
    color: var(--wood-color);
}

.timeline-content .date {
    display: inline-block;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.timeline-content p {
    font-size: 0.7rem;
}

/* Kado Digital */
.kado-digital {
    background: url('images/gift-bg.webp') center/cover no-repeat fixed;
    position: relative;
}

.kado-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    /* Lightened overlay so background photo is clearly visible */
}

.relative-z {
    position: relative;
    z-index: 2;
}

.text-white {
    color: var(--white) !important;
}

.kado-digital .section-title::after {
    background-color: var(--primary-color);
}

.gift-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
}

.gift-card {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    color: var(--white);
    padding: 30px;
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(203, 161, 83, 0.6);
}

.gift-info {
    flex: 1;
    min-width: 0;
}

.gift-info h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-family: var(--font-heading);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
}

.account-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.account-name-highlight {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.account-number {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 2px;
    font-family: var(--font-body);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
}

.btn-copy {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 10px;
    font-size: 1.3rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    margin-left: 15px;
    box-shadow: 0 4px 10px rgba(203, 161, 83, 0.3);
}

.btn-copy:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: var(--wood-color);
    color: var(--white);
    padding: 60px 0;
    position: relative;
    border-top: 5px solid var(--primary-color);
}

.footer h2 {
    color: var(--white);
    font-family: 'Balgend', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.footer p {
    font-size: 0.95rem;
    max-width: 600px;
    margin: 0 auto;
}

.footer-shanti {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-top: 20px !important;
    font-style: italic;
}

.footer-website {
    margin-top: 25px !important;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    opacity: 0.85;
}

.footer-website a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-website a:hover {
    color: var(--white);
    opacity: 1;
    text-decoration: underline;
}

/* Music Button */
.music-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 99;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.music-btn:hover {
    transform: scale(1.1);
    background-color: var(--accent-color);
}

.music-btn.muted i {
    position: relative;
}

.music-btn.muted i::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -20%;
    width: 140%;
    height: 3px;
    background-color: var(--white);
    transform: translateY(-50%) rotate(-45deg);
    border-radius: 2px;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1), transform 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: flex !important;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    user-select: none;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 10001;
}

.lightbox-close:hover {
    color: var(--primary-color);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    font-size: 2rem;
    width: 60px;
    height: 60px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s, color 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
    color: var(--primary-color);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* Toast Notification */
.toast {
    visibility: hidden;
    min-width: 250px;
    margin-left: -125px;
    background-color: var(--wood-color);
    color: #fff;
    text-align: center;
    border-radius: 30px;
    padding: 16px;
    position: fixed;
    z-index: 99999;
    left: 50%;
    bottom: 30px;
    font-size: 0.9rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--primary-color);
    opacity: 0;
    transition: opacity 0.5s, bottom 0.5s;
}

.toast.show {
    visibility: visible;
    opacity: 1;
    bottom: 50px;
}

/* Responsive */
@media (max-width: 768px) {
    .cover-content {
        padding: 40px 20px;
        max-width: 80%;
    }

    .hero-content {
        padding: 25px 15px;
        max-width: 85%;
    }

    .hero-names {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .countdown-wrapper {
        gap: 10px;
    }

    .countdown-item {
        min-width: 60px;
        padding: 8px;
    }

    .countdown-item span {
        font-size: 1.5rem;
    }

    .couple-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .couple-card {
        width: 100%;
        min-width: 0;
    }

    .couple-img {
        width: 180px;
        height: 180px;
    }

    .event-cards {
        flex-direction: column;
        gap: 20px;
    }

    .event-card {
        width: 100%;
        min-width: 0;
        padding: 30px 20px;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 0;
    }

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

    .timeline-dot {
        left: 8px !important;
        right: auto;
    }

    .timeline-content {
        text-align: left;
        border-left: 4px solid var(--accent-color);
        border-right: none !important;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-top: 25px;
    }

    .mependes-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .gift-card {
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .btn-copy {
        align-self: flex-end;
        margin-left: 0;
        width: 100%;
        height: 45px;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }

    .music-btn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}

/* ==========================================
   Admin Helper: WhatsApp Link Generator Modal
   ========================================== */
.admin-float-btn.hidden {
    display: none !important;
}

.admin-float-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 18px;
    border-radius: 30px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.admin-float-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.admin-float-btn i {
    font-size: 1.2rem;
}

/* Modal Overlay */
.generator-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.generator-modal.hidden {
    display: none;
    opacity: 0;
    pointer-events: none;
}

.generator-modal-content {
    background-color: #fffefb;
    width: 100%;
    max-width: 520px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    border: 1px solid var(--accent-color);
    animation: modalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPop {
    from {
        transform: scale(0.85);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.generator-header {
    background: linear-gradient(135deg, var(--primary-color), var(--dark-red));
    color: #ffffff;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.generator-header h3 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-color);
}

.generator-close {
    font-size: 1.6rem;
    color: var(--accent-color);
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.generator-close:hover {
    color: #ffffff;
}

.generator-body {
    padding: 20px;
}

.generator-desc {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 16px;
    line-height: 1.4;
}

.form-group {
    margin-bottom: 16px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 6px;
}

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid rgba(203, 161, 83, 0.4);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    background-color: #fff;
    color: #333;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.form-group input[type="text"]:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(203, 161, 83, 0.2);
}

.form-group input.input-error {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.3) !important;
    animation: inputShake 0.3s ease-in-out;
}

@keyframes inputShake {

    0%,
    100% {
        transform: translateX(0);
    }

    20%,
    60% {
        transform: translateX(-4px);
    }

    40%,
    80% {
        transform: translateX(4px);
    }
}

.form-group textarea {
    resize: none;
    line-height: 1.5;
    background-color: #fcfbfa;
}

.generator-footer {
    padding: 14px 20px;
    background-color: #f7f4ed;
    border-top: 1px solid rgba(203, 161, 83, 0.2);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.btn-secondary-wa,
.btn-primary-wa {
    padding: 10px 16px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    border: none;
}

.btn-secondary-wa {
    background-color: #e2d9c7;
    color: var(--text-color);
}

.btn-secondary-wa:hover {
    background-color: #d4c8b2;
}

.btn-primary-wa {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

.btn-primary-wa:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.5);
}

@media (max-width: 576px) {
    .admin-float-btn span {
        display: none;
    }

    .admin-float-btn {
        padding: 12px;
        border-radius: 50%;
    }

    .generator-footer {
        flex-direction: column;
    }

    .btn-secondary-wa,
    .btn-primary-wa {
        width: 100%;
        justify-content: center;
    }
}