/* Elegant Light Custom Styles */

/* Split Screen Layout */
@media (min-width: 768px) {
    .col-md-6.bg-primary {
        position: fixed;
        height: 100vh;
        left: 0;
        top: 0;
    }
}

/* Firefly Animation */
.firefly {
    position: fixed;
    left: 50%;
    top: 50%;
    width: 0.4vw;
    height: 0.4vw;
    margin: -0.2vw 0 0 9.8vw;
    animation: ease 200s alternate infinite;
    pointer-events: none;
}

.firefly::before, .firefly::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    transform-origin: -10vw;
}

.firefly::before {
    background: black;
    opacity: 0.4;
    animation: drift ease alternate infinite;
}

.firefly::after {
    background: white;
    opacity: 0;
    box-shadow: 0 0 0vw 0vw yellow;
    animation: drift ease alternate infinite, flash ease infinite;
}

/* Unique delays for each firefly */
.firefly:nth-child(1) { animation-name: move1; }
.firefly:nth-child(1)::before { animation-duration: 10s; }
.firefly:nth-child(1)::after { animation-duration: 10s, 7692ms; animation-delay: 0ms, 3846ms; }

.firefly:nth-child(2) { animation-name: move2; }
.firefly:nth-child(2)::before { animation-duration: 12s; }
.firefly:nth-child(2)::after { animation-duration: 12s, 7692ms; animation-delay: 0ms, 3846ms; }

.firefly:nth-child(3) { animation-name: move3; }
.firefly:nth-child(3)::before { animation-duration: 14s; }
.firefly:nth-child(3)::after { animation-duration: 14s, 7692ms; animation-delay: 0ms, 3846ms; }

/* Continue for remaining fireflies... */

/* Parallelogram Schedule Card */
.parallelogram {
    background: var(--bs-primary);
    transform: skewY(-2deg);
    border-radius: 10px;
}

.parallelogram > div {
    transform: skewY(2deg);
}

/* Cover Blur Effect */
.cover-blur-effect {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.9);
}

.cover-invitation-heading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    padding: .55rem 1.1rem;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 999px;
    background: rgba(255, 255, 255, .78);
    color: #272727;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: .95rem;
    font-weight: 700;
    letter-spacing: .18em;
    line-height: 1.2;
    text-transform: uppercase;
    text-shadow: 0 1px 1px rgba(255, 255, 255, .35);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
}

#modalInvitation .cover-invitation-heading {
    background: rgba(255, 255, 255, .9);
}

.modern-timeline-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
}

.modern-icon {
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    vertical-align: middle;
    flex: 0 0 auto;
}

.modern-icon-lg {
    width: 1.8rem;
    height: 1.8rem;
}

/* Protocol */
.modern-protocol-section {
    color: var(--text-primary);
}

.modern-protocol-heading {
    font-family: 'Arizonia', cursive;
    font-size: clamp(2.25rem, 7vw, 3rem);
    line-height: 1;
}

.modern-protocol-subtitle {
    max-width: 28rem;
    margin: .65rem auto 2rem;
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.6;
}

.modern-protocol-list {
    display: grid;
    gap: 1rem;
}

.modern-protocol-card {
    border-radius: 1.25rem;
    padding: 1.5rem 1.25rem;
    text-align: center;
    box-shadow: 0 10px 24px rgba(65, 66, 48, .10);
}

.modern-protocol-card-primary {
    background: var(--bs-primary);
    color: #fff;
}

.modern-protocol-card-light {
    background: #fff;
    border: 1px solid rgba(124, 125, 96, .18);
    color: var(--text-primary);
}

.modern-protocol-card-label {
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .13em;
    line-height: 1.3;
    text-transform: uppercase;
}

.modern-protocol-card-primary .modern-protocol-card-label {
    color: rgba(255, 255, 255, .82);
}

.modern-protocol-card-light .modern-protocol-card-label {
    color: var(--bs-primary);
}

.modern-protocol-card-title {
    margin-top: .7rem;
    font-family: 'Arizonia', cursive;
    font-size: clamp(1.7rem, 5vw, 2.15rem);
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.modern-protocol-card-body {
    margin-top: .7rem;
    font-size: 1rem;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

@media (max-width: 380px) {
    .modern-protocol-card {
        padding: 1.25rem 1rem;
    }

    .modern-protocol-card-title {
        font-size: 1.65rem;
    }

    .modern-protocol-card-body {
        font-size: .95rem;
    }
}

/* Image Frame Border */
.image-frame-border {
    border: 5px solid var(--bs-primary);
    border-radius: 50%;
    padding: 10px;
    display: inline-block;
}

/* Grayscale Gallery Effect */
.square-image {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    background-size: cover;
    background-position: center;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.square-image:hover {
    filter: grayscale(0%);
}

/* Card Gift */
.card-gift {
    margin-bottom: 15px;
    border-radius: 10px;
    padding: 20px;
}

.modern-gift-description {
    max-width: 34rem;
    margin: 0 auto;
    color: var(--bs-primary);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.6;
}

.modern-gift-card {
    padding: 0 !important;
}

.modern-gift-card .card-body {
    padding: 1.65rem 1rem !important;
}

.modern-gift-provider {
    color: #111;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.3;
}

.modern-gift-label {
    margin-top: .35rem;
    color: #555;
    font-size: .9rem;
    line-height: 1.35;
}

.modern-gift-label-spaced {
    margin-top: 1.15rem;
}

.modern-gift-holder {
    margin-top: .15rem;
    color: #111;
    font-size: 1.12rem;
    line-height: 1.4;
}

.modern-gift-account {
    color: #111;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: .035em;
    line-height: 1.4;
}

.modern-gift-copy .modern-icon {
    width: 1.1rem;
    height: 1.1rem;
}

#schedule .schedule-date {
    color: var(--bs-light);
    font-size: 1rem !important;
    font-weight: 600;
    letter-spacing: .02em;
    line-height: 1.55;
}

#schedule .schedule-location {
    font-size: 1.05rem !important;
    line-height: 1.45;
}

#schedule .schedule-address {
    font-size: .92rem !important;
    line-height: 1.45;
}

@media (max-width: 380px) {
    .modern-gift-provider {
        font-size: 1.25rem;
    }

    .modern-gift-account {
        font-size: 1.18rem;
    }

    #schedule .schedule-date {
        font-size: .95rem !important;
    }
}

/* Scroll Area */
.scroll {
    overflow-y: auto;
}

.mh-500px {
    max-height: 500px;
}

/* Shake Animation */
.shake-vertical {
    animation: shake-vertical 2s ease-in-out infinite;
}

@keyframes shake-vertical {
    0%, 100% { transform: translateY(0); }
    10%, 30%, 50%, 70% { transform: translateY(-8px); }
    20%, 40%, 60% { transform: translateY(8px); }
    80% { transform: translateY(6.4px); }
    90% { transform: translateY(-6.4px); }
}

/* Animate Zoom In Out */
.animate-zoom-in-out {
    animation: zoom-in-out 2s ease-in-out infinite;
}

@keyframes zoom-in-out {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Navigation */
.bg-navigation {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px 20px 0 0;
}

.nav-link {
    color: var(--bs-primary);
}

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

/* Border Radius Override */
.border-radius-0 {
    border-radius: 0 !important;
}

/* Countdown Frame */
.countdown-frame {
    background: transparent;
}

.label-countdown {
    background: var(--bs-primary) !important;
    color: white !important;
}
