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

.noscroll {
    overflow: hidden !important;
}

/* Save Date Section Customization */
.save-date-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    padding: 20px;
    z-index: 10;
    transform: translateY(-30%);
}

.sd-text {
    font-family: 'qJae', sans-serif !important;
    /* Use qJae font */
    color: var(--text-tertiary);
    margin: 5px 0;
    font-size: calc(var(--body-text-size) * 0.9) !important;
    opacity: 0;
    /* Start hidden for animation */
    animation: fadeIn 1s forwards;
    white-space: normal;
    word-wrap: break-word;
    /* Prevent truncation */
}

.sd-date {
    color: #beca64 !important;
    font-size: calc(var(--heading-size) * 0.6) !important;
    /* Larger size */
    font-weight: bold;
    margin: 10px 0;
}

/* Staggered animation for sd-text */
.save-date-content p.sd-text:nth-child(1) {
    animation-delay: 0s;
}

.save-date-content p.sd-text:nth-child(2) {
    animation-delay: 1.2s;
}

.save-date-content p.sd-text:nth-child(3) {
    animation-delay: 2.4s;
}

.save-date-content p.sd-text:nth-child(4) {
    animation-delay: 3.6s;
}

.save-date-content p.sd-text:nth-child(5) {
    animation-delay: 4.8s;
}

.save-date-content p.sd-text:nth-child(6) {
    animation-delay: 6.5s;
}

.save-date-content p.sd-text:nth-child(7) {
    animation-delay: 7.7s;
}

/* Typewriter Animation */
.anim-typewriter {
    overflow: hidden;
    /* Ensures the content is not revealed until the animation */
    white-space: nowrap;
    /* Keeps the content on a single line */
    margin: 0 auto;
    /* Gives that scrolling effect as the typing happens */
    letter-spacing: .15em;
    /* Adjust as needed */
    animation:
        typing 1.5s steps(40, end) forwards,
        blink-caret .75s step-end infinite;
    opacity: 1;
    width: 0;
    max-width: fit-content;
}

/* The typing effect */
@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 100%
    }
}

/* The typewriter cursor effect */
@keyframes blink-caret {

    from,
    to {
        border-right-color: transparent
    }

    50% {
        border-right-color: orange;
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Maps Button Styling */
.maps-btn-wrap {
    position: absolute;
    top: 22%;
    /* Adjust position from bottom */
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;

    /* Sequence Animation Initial State */
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease;
}

.maps-btn-wrap.show-maps {
    opacity: 1;
    pointer-events: auto;
}

.maps-btn-wrap img {
    width: 150px;
    /* Adjust size as needed */
    height: auto;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.maps-btn-wrap img:hover {
    transform: scale(1.1);
}

/* Responsive adjustments for button */
@media only screen and (max-width: 600px) {
    .maps-btn-wrap {
        bottom: 10%;
    }

    .maps-btn-wrap img {
        width: 180px;
    }
}

/* Agenda Wrap Spacing & Background */
/* Agenda Wrap Spacing & Background */
.agenda-wrap {
    padding-bottom: 50px;
    padding-top: 0px;
    /* Increased spacing */
    position: relative;
    overflow: hidden;
    z-index: 1;
    /* Establish stacking context */
    background-image: var(--bg-ev);
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

/* Blur & Overlay via separate layer */
.agenda-wrap::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    /* Black overlay */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: -1;
    /* Behind content, above background */
}

/* Wedding Gift Section Background */
.wedding-gift-wrap {
    background-image: var(--bg-gift);
    background-size: cover;
    background-position: center;
    position: relative;
    z-index: 1;
}

.wedding-gift-wrap::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

/* Love Story Section */
.love-story-container {
    padding: 120px 20px;
    text-align: center;
    color: var(--text-tertiary);
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.ls-title {
    font-family: 'qJae', sans-serif !important;
    font-size: calc(var(--heading-size) * 0.8);
    color: #98A250;
    margin-bottom: 20px;
}

.ls-subtitle {
    font-family: 'qJae', sans-serif !important;
    font-size: calc(var(--heading-size) * 0.6);
    color: #98A250;
    margin-top: 20px;
    margin-bottom: 10px;
}

.ls-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ls-year {
    font-family: 'qJae', sans-serif !important;
    font-size: calc(var(--body-text-size) * 1.5);
    color: var(--text-primary);
    margin: 0;
}

.ls-desc {
    font-family: var(--body-text-family);
    font-size: var(--body-text-size);
    line-height: 1.6;
    margin: 0;
}

.ls-hashtag {
    font-family: 'qJae', sans-serif !important;
    font-size: calc(var(--heading-size) * 0.5);
    color: #98A250;
    margin-top: 40px;
    letter-spacing: 2px;
}

/* Explicit text colors as requested */
.ls-title,
.ls-subtitle,
.ls-hashtag {
    color: #98A250 !important;
}

.ls-year {
    color: #98A250 !important;
    /* Changing year to yellow as it stands out better or based on 'use white and #fee735'. Usually year is highlighted. I'll make it yellow too? Or white? User said "gunakan warna putih dan #fee735". I'll make Title/Year yellow, text white. */
}

.ls-desc {
    color: #ffffff !important;
}

/* Dynamic Link on Cover (Guest Name) */
.cover .guest-name-display {
    color: #beca64 !important;
}

/* Mobile Typography & Spacing Optimization for Love Story */
@media only screen and (max-width: 600px) {
    .ls-title {
        font-size: calc(var(--heading-size) * 0.6) !important;
        /* Smaller title */
        margin-bottom: 15px !important;
    }

    .ls-subtitle {
        font-size: calc(var(--heading-size) * 0.5) !important;
        /* Smaller subtitle */
        margin-top: 20px !important;
        margin-bottom: -20px !important;
        /* Match 10px gap of ls-item (30 container - 20 margin = 10) */
    }

    .ls-year {
        font-size: calc(var(--body-text-size) * 1.2) !important;
        /* Smaller year */
    }

    .ls-desc {
        font-size: calc(var(--body-text-size) * 0.9) !important;
        /* Slightly smaller desc */
        line-height: 1.5;
    }

    .ls-hashtag {
        font-size: calc(var(--heading-size) * 0.4) !important;
        margin-top: 25px !important;
    }
}

/* TOP COVER STYLING */
.top-cover {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 99999;
    background-image: url('../images/bg-tc-3.jpg');
    /* New custom background */
    background-size: cover;
    background-position: center;
    background-color: #2c2c2c;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;

    /* Animation Hardening */
    transform: translateY(0);
    opacity: 1;
    will-change: transform, opacity;
    transition: all 1.5s cubic-bezier(0.645, 0.045, 0.355, 1.000) !important;
    /* Smooth slide */
}

.top-cover.hide {
    transform: translateY(-100%) !important;
    opacity: 0 !important;
    pointer-events: none;
    display: flex !important;
    /* Override potential display: none */
}

.top-cover .center-content {
    background: transparent;
    padding: 0;
    border-radius: 0;
    backdrop-filter: none;
    width: 100%;
    max-width: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    border: none;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);

    /* Position at Top */
    position: absolute;
    top: 150px;
    left: 0;
    z-index: 20;
}

.tc-title {
    font-family: var(--body-text-family);
    color: #fff;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}

.tc-name {
    font-family: 'qJae', sans-serif !important;
    font-size: 48px;
    color: #beca64;
    margin: 0;
    line-height: 1.2;
}

.tc-date {
    color: #fff;
    margin-top: -10px;
    font-size: 16px;
    border-bottom: 1px solid #beca64;
    padding-bottom: 10px;
    display: inline-block;
    width: fit-content;
}

.guest-info {
    margin: 20px 0;
    color: #fff;
}

.guest-info p {
    margin: 2px 0;
    font-size: 14px;
}

.guest-info .guest-name-display {
    font-family: 'qJae', sans-serif !important;
    color: #beca64 !important;
    font-size: 24px;
    margin-top: 10px;
    text-transform: capitalize;
    text-shadow: none !important;
}

.btn-open-invitation {
    background-color: #abb65a;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(190, 202, 100, 0.4);
    animation: pulseBtn 2s infinite;
}

.btn-open-invitation:hover {
    background-color: #aeb953;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(190, 202, 100, 0.6);
}

@keyframes pulseBtn {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* Bottom Area Positioning */
/* Bottom Area Positioning */
.tc-bottom-area {
    position: absolute;
    bottom: 110px;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 10;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

/* Inner Cover GIF Sequence */
.cv-1 .image-wrap {
    opacity: 0;
    transition: opacity 1.5s ease 1s;
    /* 1s delay to wait for cover slide */
}

.cv-1 .image-wrap.show-inner-gif {
    opacity: 1;
}

.guest-info {
    margin: 0;
    /* Reset margin since flex gap handles it */
}