/*============================================
==> Hari Jadi-002 Theme
==> Light Blue Sky / Rainbow Balloons
============================================*/

/*============================================
==> Palette Tokens
==> Kad berlatar biru muda yang cerah, jadi
==> semua teks menggunakan tinta biru tua
==> (--hj2-ink) untuk kontras 4.5:1+ pada
==> permukaan putih/biru lembut. Aksen biru
==> langit (#2F89C5) untuk butang & bingkai.
===========================================*/
:root {
    --hj2-sky-pale: #D9F0FC;
    --hj2-sky-light: #BFE7FA;
    --hj2-sky: #8FD0F2;
    --hj2-sky-mid: #5FB4E4;
    --hj2-accent: #2F89C5;
    --hj2-ink: #0B4A6F;
    --hj2-ink-strong: #0A3A57;

    --hj2-paper: #FFFFFF;
    --hj2-paper-2: #F4FBFF;

    --hj2-cloud: #FFFFFF;
}

/* Warna belon warna-warni */
:root {
    --belon-red: #FF6F79;
    --belon-yellow: #FFD34D;
    --belon-green: #57C785;
    --belon-pink: #FF9EC0;
    --belon-purple: #9E86E0;
    --belon-orange: #FFA45C;
    --belon-sky: #7BC8F0;
}

/*============================================
==> Animation CSS
===========================================*/
@keyframes balloonRise {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-1280px);
    }
}

@-webkit-keyframes balloonRise {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-1280px);
    }
}

@keyframes balloonSway {
    0% {
        transform: rotate(-3.5deg) translateY(0);
    }

    50% {
        transform: rotate(0deg) translateY(-6px);
    }

    100% {
        transform: rotate(3.5deg) translateY(0);
    }
}

@-webkit-keyframes balloonSway {
    0% {
        transform: rotate(-3.5deg) translateY(0);
    }

    50% {
        transform: rotate(0deg) translateY(-6px);
    }

    100% {
        transform: rotate(3.5deg) translateY(0);
    }
}

@keyframes balloonFloat {
    0% {
        transform: translateY(0) rotate(-4deg);
    }

    50% {
        transform: translateY(-24px) rotate(3deg);
    }

    100% {
        transform: translateY(0) rotate(-4deg);
    }
}

@-webkit-keyframes balloonFloat {
    0% {
        transform: translateY(0) rotate(-4deg);
    }

    50% {
        transform: translateY(-24px) rotate(3deg);
    }

    100% {
        transform: translateY(0) rotate(-4deg);
    }
}

@keyframes cloudDrift {
    0% {
        transform: translateX(-2%);
    }

    100% {
        transform: translateX(2%);
    }
}

@-webkit-keyframes cloudDrift {
    0% {
        transform: translateX(-2%);
    }

    100% {
        transform: translateX(2%);
    }
}

@keyframes glowPulse {
    0% {
        opacity: 0.45;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.15);
    }

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

@-webkit-keyframes glowPulse {
    0% {
        opacity: 0.45;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.15);
    }

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

@keyframes floatUp {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-18px) rotate(4deg);
    }

    100% {
        transform: translateY(0) rotate(0deg);
    }
}

@-webkit-keyframes floatUp {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-18px) rotate(4deg);
    }

    100% {
        transform: translateY(0) rotate(0deg);
    }
}

@keyframes pulseMusic {
    0% {
        transform: scale(1);
        opacity: 0.85;
    }

    50% {
        transform: scale(1.15);
        opacity: 1;
    }

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

@-webkit-keyframes pulseMusic {
    0% {
        transform: scale(1);
        opacity: 0.85;
    }

    50% {
        transform: scale(1.15);
        opacity: 1;
    }

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

/*============================================
==> Preloader CSS
===========================================*/
.js-preloader {
    z-index: 9999999;
}

.js-preloader .preloader-inner .dot {
    background: var(--hj2-accent);
}

.js-preloader .preloader-inner .dots span {
    background: var(--hj2-ink);
}

/*============================================
==> Flipdown CSS
==> Kit vendor sudah menetapkan saiz widget
==> (510px desktop / 312px mobile); kita hanya
==> memastikan rotor putih dengan digit tinta
==> biru supaya countdown sepadan dengan palet
==> biru muda dan terbaca jelas.
===========================================*/
@media (min-width: 551px) {
    .flipdown {
        zoom: 0.6;
    }
}

.flipdown[class*="flipdown__theme"] .rotor,
.flipdown[class*="flipdown__theme"] .rotor-top,
.flipdown[class*="flipdown__theme"] .rotor-leaf-front {
    color: var(--hj2-ink);
    background-color: var(--hj2-paper-2);
    font-family: Comfortaa;
}

.flipdown[class*="flipdown__theme"] .rotor-bottom,
.flipdown[class*="flipdown__theme"] .rotor-leaf-rear {
    color: var(--hj2-ink-strong);
    background-color: var(--hj2-sky-pale);
    font-family: Comfortaa;
}

.flipdown[class*="flipdown__theme"] .rotor:after {
    border-top: solid 1px rgba(47, 137, 197, 0.45);
}

.flipdown[class*="flipdown__theme"] .rotor-group:nth-child(n+2):nth-child(-n+3):before,
.flipdown[class*="flipdown__theme"] .rotor-group:nth-child(n+2):nth-child(-n+3):after {
    background-color: var(--hj2-accent);
}

.flipdown[class*="flipdown__theme"] .rotor-group-heading {
    color: var(--hj2-ink-strong);
}

.flipdown[class*="flipdown__theme"] .rotor-group-heading:before {
    color: var(--hj2-ink-strong);
    font-family: Comfortaa;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
}

/*============================================
==> Font CSS
===========================================*/
@font-face {
    font-family: Comfortaa;
    src: url("../../../assets/fonts/Comfortaa/Comfortaa-VariableFont.ttf");
}

@font-face {
    font-family: Caveat;
    src: url("../../../assets/fonts/Caveat/Caveat-Bold.ttf");
}

@font-face {
    font-family: SpaceMono;
    src: url("../../../assets/fonts/SpaceMono/SpaceMono-Regular.ttf");
}

@font-face {
    font-family: Allura;
    src: url("../../../assets/fonts/Allura/Allura-Regular.ttf");
}

/*============================================
==> General CSS
===========================================*/
html {
    overflow-x: hidden;
    overflow-y: overlay;
    scroll-behavior: unset !important;
    background-color: var(--hj2-sky) !important;
    background-image:
        radial-gradient(ellipse 80% 42% at 50% 12%, rgba(255, 255, 255, 0.55) 0%, transparent 65%),
        linear-gradient(180deg, var(--hj2-sky-light) 0%, var(--hj2-sky-mid) 60%, var(--hj2-accent) 100%) !important;
    background-attachment: fixed !important;
    min-height: 100vh !important;
}

body {
    position: relative;
    overflow-x: hidden;
    overflow-y: overlay;
    max-width: 480px;
    width: 100%;
    margin: auto;
    font-family: Comfortaa;
    color: var(--hj2-ink);
    letter-spacing: 0.5px;
    background-color: transparent;

    box-shadow: rgba(11, 74, 111, 0.28) 0px 5px 15px;
}

p {
    color: var(--hj2-ink);
    line-height: 1.6;
    font-weight: 400;
}

label {
    color: var(--hj2-ink-strong);
    margin-bottom: 0.1em;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 12px;
}

hr {
    height: 1.5px;
    background: var(--hj2-accent);
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
    position: absolute;
}

::-webkit-scrollbar-thumb {
    background: var(--hj2-accent);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--hj2-ink);
}

.btn-main {
    background-color: var(--hj2-accent);
    border: 1px solid var(--hj2-accent);
    color: #FFFFFF;
    font-weight: 700;
    letter-spacing: 1px;
}

.btn-main:hover {
    background-color: var(--hj2-ink);
    border: 1px solid var(--hj2-ink);
    color: #FFFFFF !important;
}

.btn-open {
    width: 240px;
    max-width: 100%;
    font-size: 14px;
    margin: 0em 1em;
    padding: 1em;
    box-shadow: rgba(11, 74, 111, 0.35) 0px 0px 20px 5px;
}

.text-sm {
    font-size: 12px;
}

.text-parent {
    font-size: 22px;
    font-weight: 600;
    color: var(--hj2-ink);
}

.text-bride {
    font-family: Allura;
    font-size: 40px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: 1px;
    color: var(--hj2-ink);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9), 0 4px 10px rgba(47, 137, 197, 0.22);
}

.text-amp {
    font-family: ui-monospace !important;
}

.form-group {
    margin-bottom: 1em;
}

.form-control {
    border: 1px solid var(--hj2-accent);
    border-radius: 4px;
}

/* Placeholder kelabu pucat stylesheet kongsi (1.6:1)
   sukar dibaca pada kad putih — tukar kepada biru
   kelabu yang lebih gelap. */
.form-control::placeholder {
    color: #5B7A8C;
    opacity: 1;
}

.form-control:focus {
    border-color: var(--hj2-ink);
    box-shadow: 0 0 0 0.2rem rgba(47, 137, 197, 0.25);
}

.img-logo {
    max-width: 180px;
}

.table-program {
    width: 100%;
    margin-bottom: 1em;
}

.table-program tr td:nth-child(1) {
    font-family: SpaceMono;
    color: var(--hj2-accent);
    white-space: nowrap;
    font-weight: 700;
}

.table-program tr td:nth-child(2) {
    text-align: left;
    color: var(--hj2-ink);
    padding: 0.25em 0em 0.25em 1em;
}

.card-qr {
    background: linear-gradient(180deg, var(--hj2-paper) 0%, var(--hj2-paper-2) 100%);
    border: 1px solid var(--hj2-accent);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: rgba(11, 74, 111, 0.15) 0px 6px 18px;
}

.card-qr .title {
    background: linear-gradient(180deg, var(--hj2-ink) 0%, var(--hj2-ink-strong) 100%);
    color: var(--hj2-sky-pale);
    padding: 1em;
    border-bottom: 2px solid var(--hj2-accent);
}

.card-qr .title h4 {
    color: #FFFFFF !important;
    letter-spacing: 2px;
}

.card-qr .content {
    padding: 1em;
}

.card-qr .image-qr {
    margin-right: 1.5em;
    border: 1px solid rgba(47, 137, 197, 0.4);
    border-radius: 4px;
}

.card-qr .btn-download {
    font-size: 26px;
    padding: 0.5em 0.75em;
}

.card-qr .btn-copy {
    font-size: 22px;
    padding: 0.5em 0.75em;
}

.card-qr label {
    color: var(--hj2-ink-strong);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-qr p {
    color: var(--hj2-ink);
    margin-bottom: 0px;
}

.card-prayer {
    padding: 1em;
    font-family: Caveat;
    font-size: 21px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--hj2-ink-strong);
    text-align: center;
}

/* Skrip kad menulis doa terus ke dalam .card-prayer
   (perenggan dalam boleh digantikan), jadi kedua-duanya
   memerlukan warna tinta yang sama. */
.card-prayer p {
    margin-bottom: 0px;
    white-space: pre-line;
    color: var(--hj2-ink-strong);
    font-size: 21px;
    font-weight: 500;
    line-height: 1.5;
}

.card-divider {
    display: block;
    border: 1px solid var(--hj2-accent);
    background: linear-gradient(180deg, var(--hj2-paper) 0%, var(--hj2-paper-2) 100%);
    border-radius: 6px;
    margin: 2em 0em;
    box-shadow: rgba(11, 74, 111, 0.15) 0px 6px 18px;
}

.list-contact {
    padding: 0em 0.25em;
}

.list-contact li {
    display: flex;
    align-items: center;
    color: var(--hj2-ink);
    padding: 0.5em 0em;
    border-bottom: 1px solid rgba(47, 137, 197, 0.30);
}

.list-contact li:last-child {
    border-bottom: none;
}

.list-contact li label {
    display: flex;
    align-items: center;
    width: 100%;
    font-size: 16px;
    font-weight: 600;
    color: var(--hj2-ink);
}

.list-contact li label i {
    font-size: 24px;
    color: var(--hj2-accent);
}

.list-contact li a {
    background: var(--hj2-accent);
    color: #FFFFFF;
    border: 1px solid var(--hj2-accent);
    border-radius: 50%;
    padding: 0.3em 0.5em;
    margin-left: 0.5em;
}

.list-contact li a span.fa-phone {
    font-size: 18px;
    padding-top: 2px;
}

.list-contact li a span.fa-whatsapp {
    font-size: 20px;
}

.input-counter {
    display: flex;
    margin: 0.5em 0em;
}

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

.input-counter button:nth-child(1),
.input-counter button:nth-child(3) {
    background: var(--hj2-accent);
    color: #FFFFFF;
    border: 1px solid var(--hj2-accent);
    border-radius: 4px;
    margin: 0em 0.25em;
    font-weight: 700;
}

/*============================================
==> jsCalendar CSS
===========================================*/
.jsCalendar table {
    font-family: Comfortaa;
    font-weight: 600;
    width: 100%;
    margin: 0;
    border-radius: 5px;
    overflow: hidden;
}

.jsCalendar table thead .jsCalendar-week-days th,
.jsCalendar table tbody td {
    font-size: 15px !important;
    color: var(--hj2-ink) !important;
}

.jsCalendar table thead {
    padding: 10px 4px;
    margin: 0px;
    border-radius: 0px 0px 20px 20px;
}

.jsCalendar table thead tr {
    display: flex;
    width: 100%;
    justify-content: space-evenly;
}

.jsCalendar table thead .jsCalendar-title {
    width: 100%;
}

.jsCalendar table thead .jsCalendar-nav-left,
.jsCalendar table thead .jsCalendar-nav-right {
    font-size: 22px;
    height: auto;
    width: auto;
    padding: 10px;
    color: var(--hj2-accent) !important;
}

.jsCalendar thead .jsCalendar-nav-left:hover,
.jsCalendar thead .jsCalendar-nav-right:hover {
    background-color: var(--hj2-accent);
    color: #FFFFFF !important;
}

.jsCalendar thead .jsCalendar-title {
    height: auto;
}

.jsCalendar thead .jsCalendar-title-name {
    padding: 10px 20px;
    color: var(--hj2-ink) !important;
    font-weight: 700;
}

.jsCalendar table tbody {
    padding: 15px 0px;
    margin: 0;
}

.jsCalendar table tbody tr {
    display: flex;
    width: 100%;
    justify-content: space-evenly;
}

.jsCalendar table tbody td.jsCalendar-current {
    background-color: var(--hj2-accent);
    border-radius: 8px;
    color: #FFFFFF !important;
    font-weight: 800;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
}

/*============================================
==> Sweetalert CSS
===========================================*/
.swal2-container {
    z-index: 99999999 !important;
}

/*============================================
==> Gallery Slider CSS
===========================================*/
.slider-gallery-main {
    width: 100%;
}

.slider-gallery-main .image {
    height: 275px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 6px;
    border: 2px solid rgba(47, 137, 197, 0.55);
    box-shadow: rgba(11, 74, 111, 0.28) 0px 0px 6px 4px;
}

.slider-gallery-main .owl-stage-outer {
    overflow: unset !important;
}

.slider-gallery-sub {
    width: 100%;
}

.slider-gallery-sub .image {
    height: 100px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 10px;
    margin-top: 10px;
    transition: 0.5s;
    border: 2px solid transparent;
}

.slider-gallery-sub .center .image {
    margin-top: 0px;
    border-color: var(--hj2-accent);
    transition: 0.5s;
}

.slider-gallery-sub .center .image:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    box-shadow: rgba(11, 74, 111, 0.28) 0px 0px 6px 4px;
}

.slider-gallery-sub .owl-stage-outer {
    overflow: unset !important;
}

.slider-guestbook {
    background: linear-gradient(180deg, var(--hj2-paper) 0%, var(--hj2-paper-2) 100%);
    border: 1px solid rgba(47, 137, 197, 0.45);
    border-radius: 6px;
    padding: 1em;
    box-shadow: rgba(11, 74, 111, 0.15) 0px 6px 18px;
}

.slider-guestbook .item .text {
    font-family: Caveat;
    font-size: 21px;
    font-weight: 500;
    color: var(--hj2-ink-strong);
}

.slider-guestbook .item .by {
    color: var(--hj2-accent);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.slider-guestbook .owl-dot {
    background-color: var(--hj2-ink) !important;
    height: 10px;
    width: 10px;
    margin: 0px 5px;
    border-radius: 4px;
    opacity: 0.5;
}

.slider-guestbook .owl-dot.active {
    background-color: var(--hj2-accent) !important;
    opacity: 1;
}



/*============================================
==> Belon Warna-Warni CSS
==> Belon dilukis 100% CSS: badan menggunakan
==> border-radius terkurang + sorotan radial,
==> simpul melalui ::before dan tali melalui
==> ::after. Sway berlaku pada .balloon supaya
==> tidak bercanggah dengan animasi angkat
==> (translateY) pada .riser / .floater.
===========================================*/
.balloon {
    position: relative;
    display: block;
    width: var(--balloon-w, 44px);
    height: calc(var(--balloon-w, 44px) * 1.26);
    border-radius: 50% 50% 47% 47% / 43% 43% 57% 57%;
    background:
        radial-gradient(circle at 32% 27%, rgba(255, 255, 255, 0.60) 0%, rgba(255, 255, 255, 0.22) 26%, rgba(255, 255, 255, 0) 52%),
        var(--belon, var(--belon-red));
    box-shadow:
        inset -7px -9px 12px rgba(7, 55, 84, 0.16),
        inset 3px 4px 6px rgba(255, 255, 255, 0.30),
        0 8px 18px rgba(7, 55, 84, 0.14);
    transform-origin: 50% 120%;
}

.balloon::before {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 11px;
    height: 9px;
    background: var(--belon, var(--belon-red));
    clip-path: polygon(50% 100%, 0% 0%, 100% 0%);
    filter: brightness(0.92);
}

.balloon::after {
    content: "";
    position: absolute;
    top: calc(100% + 2px);
    left: calc(50% - 1px);
    width: 2px;
    height: 66px;
    background: linear-gradient(180deg, rgba(11, 74, 111, 0.32) 0%, rgba(11, 74, 111, 0.10) 72%, rgba(11, 74, 111, 0) 100%);
    border-radius: 1px;
}

.b-red {
    --belon: var(--belon-red);
    animation: balloonSway 3.4s ease-in-out infinite alternate;
}

.b-yellow {
    --belon: var(--belon-yellow);
    animation: balloonSway 4.1s ease-in-out 0.5s infinite alternate;
}

.b-green {
    --belon: var(--belon-green);
    animation: balloonSway 3.7s ease-in-out 1s infinite alternate;
}

.b-pink {
    --belon: var(--belon-pink);
    animation: balloonSway 4.4s ease-in-out 0.3s infinite alternate;
}

.b-purple {
    --belon: var(--belon-purple);
    animation: balloonSway 3.9s ease-in-out 0.8s infinite alternate;
}

.b-orange {
    --belon: var(--belon-orange);
    animation: balloonSway 4.2s ease-in-out 1.3s infinite alternate;
}

.b-sky {
    --belon: var(--belon-sky);
    animation: balloonSway 4.6s ease-in-out 0.6s infinite alternate;
}

/* ============================================
==> Belon Kulit Depan (terbang naik)
============================================*/
.main-page .main-balloons {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.main-page .main-balloons .riser {
    position: absolute;
    bottom: -200px;
    display: block;
    width: max-content;
    -webkit-animation: balloonRise var(--riser-dur, 14s) linear infinite;
    animation: balloonRise var(--riser-dur, 14s) linear infinite;
    -webkit-animation-delay: var(--riser-delay, 0s);
    animation-delay: var(--riser-delay, 0s);
    will-change: transform;
}

.main-page .main-balloons .r1 {
    left: 6%;
    --balloon-w: 44px;
    --riser-dur: 13s;
    --riser-delay: 0s;
}

.main-page .main-balloons .r2 {
    left: 24%;
    --balloon-w: 34px;
    --riser-dur: 16s;
    --riser-delay: 2.8s;
}

.main-page .main-balloons .r3 {
    left: 42%;
    --balloon-w: 50px;
    --riser-dur: 12s;
    --riser-delay: 1s;
}

.main-page .main-balloons .r4 {
    left: 60%;
    --balloon-w: 38px;
    --riser-dur: 15s;
    --riser-delay: 4.4s;
}

.main-page .main-balloons .r5 {
    left: 76%;
    --balloon-w: 46px;
    --riser-dur: 14s;
    --riser-delay: 1.8s;
}

.main-page .main-balloons .r6 {
    left: 90%;
    --balloon-w: 36px;
    --riser-dur: 17s;
    --riser-delay: 3.6s;
}

.main-page .main-balloons .r7 {
    left: 12%;
    --balloon-w: 30px;
    --riser-dur: 19s;
    --riser-delay: 6.4s;
}

/* ============================================
==> Belon Halaman Dalam (melayang lembut)
============================================*/
.sub-page .sub-balloons {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.sub-page .sub-balloons .floater {
    position: absolute;
    display: block;
    opacity: 0.55;
    -webkit-animation: balloonFloat var(--float-dur, 9s) ease-in-out infinite alternate;
    animation: balloonFloat var(--float-dur, 9s) ease-in-out infinite alternate;
    -webkit-animation-delay: var(--float-delay, 0s);
    animation-delay: var(--float-delay, 0s);
}

.sub-page .sub-balloons .f1 {
    top: 8%;
    left: -16px;
    --balloon-w: 40px;
    --float-dur: 8s;
}

.sub-page .sub-balloons .f2 {
    top: 4%;
    right: 4%;
    --balloon-w: 32px;
    --float-dur: 10s;
    --float-delay: 0.8s;
}

.sub-page .sub-balloons .f3 {
    top: 14%;
    left: 30%;
    --balloon-w: 26px;
    --float-dur: 11s;
    --float-delay: 1.6s;
}

.sub-page .sub-balloons .f4 {
    bottom: 14%;
    left: 6%;
    --balloon-w: 30px;
    --float-dur: 9.5s;
    --float-delay: 0.4s;
}

.sub-page .sub-balloons .f5 {
    bottom: 8%;
    right: -14px;
    --balloon-w: 38px;
    --float-dur: 8.5s;
    --float-delay: 1.2s;
}

.sub-page .sub-balloons .f6 {
    bottom: 20%;
    right: 22%;
    --balloon-w: 24px;
    --float-dur: 10.5s;
    --float-delay: 2s;
}

/*============================================
==> Main Page CSS
===========================================*/
.main-page {
    position: fixed;
    left: 50%;
    top: 0px;
    z-index: 99999;
    max-width: 480px;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse 90% 40% at 50% 0%, rgba(255, 255, 255, 0.55) 0%, transparent 60%),
        radial-gradient(ellipse 95% 45% at 50% 92%, rgba(255, 255, 255, 0.28) 0%, transparent 60%),
        linear-gradient(180deg, var(--hj2-sky-light) 0%, var(--hj2-sky) 45%, var(--hj2-sky-mid) 100%);
    background-size: cover;
    background-position: center;
    text-align: center;
    overflow: hidden;
    transform: translateX(-50%);
}

.main-animation {
    z-index: -1;
}

.main-animation .main-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.main-animation .main-bg-1 {
    position: absolute;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 42%;
    background:
        radial-gradient(ellipse 55% 42% at 22% 34%, rgba(255, 255, 255, 0.65) 0%, transparent 70%),
        radial-gradient(ellipse 48% 36% at 74% 18%, rgba(255, 255, 255, 0.55) 0%, transparent 70%),
        radial-gradient(ellipse 40% 30% at 50% 44%, rgba(255, 255, 255, 0.40) 0%, transparent 75%);
    -webkit-animation: cloudDrift 11s ease-in-out infinite alternate;
    animation: cloudDrift 11s ease-in-out infinite alternate;
}

.main-animation .main-center {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

/* Halo matahari lembut di tengah langit */
.main-animation .main-center-1 {
    position: absolute;
    /* Di tengah melalui left/calc bukan translateX(-50%) kerana
       animasi glowPulse menganimasikan `transform` dan akan
       menimpa anjakan, mengalihkan bulatan ~150px ke kanan. */
    left: calc(50% - 150px);
    top: 9%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.65);
    background: radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.10) 55%, transparent 75%);
    box-shadow:
        0 0 60px rgba(255, 255, 255, 0.45),
        inset 0 0 80px rgba(255, 255, 255, 0.25);
    -webkit-animation: glowPulse 6s ease-in-out infinite alternate;
    animation: glowPulse 6s ease-in-out infinite alternate;
}

.main-animation .main-center-1:after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.70);
}

/* Konfeti kecil warna-warni melayang (selari main-top-1..4) */
.main-animation .main-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.main-animation .main-top-1 {
    position: absolute;
    left: 8%;
    top: 18%;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 111, 121, 0.65);
    box-shadow: 0 0 18px rgba(255, 111, 121, 0.55);
    -webkit-animation: floatUp 4s ease-in-out infinite alternate;
    animation: floatUp 4s ease-in-out infinite alternate;
}

.main-animation .main-top-2 {
    position: absolute;
    left: 82%;
    top: 10%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 211, 77, 0.65);
    box-shadow: 0 0 16px rgba(255, 211, 77, 0.55);
    -webkit-animation: floatUp 5s ease-in-out 0.8s infinite alternate;
    animation: floatUp 5s ease-in-out 0.8s infinite alternate;
}

.main-animation .main-top-3 {
    position: absolute;
    left: 18%;
    top: 42%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(87, 199, 133, 0.60);
    box-shadow: 0 0 14px rgba(87, 199, 133, 0.55);
    -webkit-animation: floatUp 6s ease-in-out 1.4s infinite alternate;
    animation: floatUp 6s ease-in-out 1.4s infinite alternate;
}

.main-animation .main-top-4 {
    position: absolute;
    right: 10%;
    top: 46%;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 158, 192, 0.60);
    box-shadow: 0 0 16px rgba(255, 158, 192, 0.55);
    -webkit-animation: floatUp 5.5s ease-in-out 0.4s infinite alternate;
    animation: floatUp 5.5s ease-in-out 0.4s infinite alternate;
}

.main-page .container-content {
    position: relative;
    display: flex;
    align-items: end;
    justify-content: center;
    width: 100%;
    height: 100%;
    z-index: 9;
}

.main-page .container-content .content {
    width: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 251, 255, 0.98) 100%);
    color: var(--hj2-ink);
    padding: 3em 2em 4em 2em;
    margin-bottom: 16%;
    border-radius: 18px 18px 0 0;
    border-top: 4px solid var(--hj2-accent);
    box-shadow: 0 -10px 40px rgba(11, 74, 111, 0.35);
}

.main-page .container-content .content .float {
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 100%;
}

.main-page .container-content .content .event {
    width: 180px;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--hj2-ink);
    border-bottom: 2px solid var(--hj2-accent);
    margin: auto;
}

.main-page .container-content .content .title {
    padding: 1em 0em;
}

.main-page .container-content .content .title .text-1 {
    position: relative;
    left: 0px;
    font-family: Allura;
    color: var(--hj2-ink);
    font-size: 56px;
    font-weight: 600;
    line-height: 0.75;
    margin-bottom: 0px;
    text-shadow: 0px 3px 10px rgba(47, 137, 197, 0.45);
}

.main-page .container-content .content .date h4 {
    font-size: 14px;
    font-weight: 900;
    margin-top: 1em;
}

.main-page .container-content .content .date h5 {
    width: fit-content;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 1px;
    line-height: 1;
    margin: 0em auto;
    padding: 0.1em 1em;
    color: var(--hj2-accent);
}

.main-page .container-content .content .date h6 {
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 1px;
    padding: 0.5em;
    color: var(--hj2-ink);
}


/*============================================
==> Sub Page CSS
===========================================*/
.sub-page {
    background-color: transparent;
    text-align: center;
    padding: 3em 0em 4em 0em;
}

.sub-page .container-content {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 251, 255, 0.98) 100%);
    width: 100%;
    padding: 1em 1em 8em 1em;
    box-shadow: rgba(11, 74, 111, 0.30) 0px 0px 10px 2px;
    border-radius: 8px;
}

.sub-page .container-content .content {
    width: 100%;
    background-color: transparent;
    padding: 2em 0em 0em 0em;
}

.sub-page .container-content .content h1 {
    font-family: Allura;
    font-size: 34px;
    margin-bottom: 2em;
    padding: 0em 2em;
    line-height: 1;
    color: var(--hj2-ink);
}

.sub-page .container-content .content h1 span {
    font-family: Allura;
    font-weight: 800;
    font-size: 24px;
    color: var(--hj2-accent);
}

.sub-page .container-content .content h4 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--hj2-accent);
    font-weight: 900;
    margin-bottom: 1em;
}

.sub-page .container-content .content h5 {
    font-size: 22px;
    margin-bottom: 2em;
    color: var(--hj2-ink);
}

.sub-page .container-content .content h6 {
    font-size: 16px;
    text-align: justify;
    margin-bottom: 2em;
    color: var(--hj2-ink);
}

.sub-page .container-content .content p {
    color: var(--hj2-ink);
    line-height: 1.6;
}

.sub-page .container-content .content hr {
    margin: 1em 0em;
}

.sub-page .container-content .content .img-1 {
    width: 180px;
    margin: 0.25em auto 1em auto;
    display: block;
}

.sub-page .container-content .content .card-guestbook {
    padding: 1em;
}

.sub-page .container-content .content .card-guestbook .form-group {
    margin-bottom: 1em;
}

.sub-page .container-content .content .btn-main {
    margin: 1em 0em;
}

.sub-page .container-content .content .text-bride {
    font-family: Allura;
    font-size: 40px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: 1px;
    color: var(--hj2-ink);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9), 0 4px 10px rgba(47, 137, 197, 0.22);
}

.sub-page .container-content .content .text-parent {
    font-size: 22px;
    font-weight: 600;
    color: var(--hj2-ink);
}

/* Nilai tempat / tarikh / masa menggunakan .text-value
   (menggantikan .text-white Bootstrap yang tidak
   terbaca pada kad cerah). */
.main-page .container-content .content .text-value,
.sub-page .container-content .content .text-value,
.main-page .container-content .content p.text-value,
.sub-page .container-content .content p.text-value {
    color: var(--hj2-ink) !important;
    font-weight: 600;
    margin-bottom: 1.5em;
}

/* Jaring keselamatan: teks putih utiliti tidak boleh
   jatuh pada kad putih ini. */
.main-page .container-content .content .text-white,
.sub-page .container-content .content .text-white {
    color: var(--hj2-ink) !important;
}


.sub-page .sub-animation {
    position: fixed;
    left: 50%;
    top: 0;
    max-width: 100%;
    width: 480px;
    height: 100%;
    transform: translateX(-50%);
    overflow: hidden;
    z-index: 0;
}

.sub-page .sub-left {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.sub-page .sub-left .sub-left-1 {
    position: absolute;
    top: -60px;
    right: -70px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.14) 55%, transparent 75%);
    -webkit-animation: glowPulse 5s ease-in-out infinite alternate;
    animation: glowPulse 5s ease-in-out infinite alternate;
}

.sub-animation .sub-right {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.sub-animation .sub-right .sub-right-1 {
    position: absolute;
    bottom: -100px;
    left: -80px;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle at 65% 65%, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.10) 55%, transparent 75%);
    -webkit-animation: glowPulse 7s ease-in-out 1s infinite alternate;
    animation: glowPulse 7s ease-in-out 1s infinite alternate;
}

.sub-page .container {
    position: relative;
    z-index: 1;
}

/* Heading seksyen (GALERI/COUNTDOWN/GUESTBOOK) di latar
   langit — guna tinta biru tua agar aras kontras cukup. */
.sub-page .container h4 {
    color: var(--hj2-ink);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
    letter-spacing: 1px;
}

.text-hashtag {
    color: var(--hj2-accent);
    font-weight: 700;
    letter-spacing: 1px;
    margin: 1em 0em;
    text-shadow: none;
}

.sub-page .container.container-countdown {
    background: linear-gradient(180deg, var(--hj2-paper) 0%, var(--hj2-paper-2) 100%);
    border: 1px solid rgba(47, 137, 197, 0.45);
    border-radius: 6px;
    padding: 1em;
    margin-bottom: 2em;
    box-shadow: rgba(11, 74, 111, 0.15) 0px 6px 18px;
}

.sub-page .container.container-countdown h4 {
    color: var(--hj2-ink);
    margin-bottom: 0.5em;
    text-shadow: none;
}

.sub-page .container.container-footer {
    background: linear-gradient(180deg, rgba(15, 94, 142, 0.96) 0%, rgba(10, 58, 87, 0.96) 100%);
    border: 1px solid rgba(47, 137, 197, 0.45);
    border-radius: 6px;
    padding: 1em;
    margin-bottom: 2em;
    box-shadow: rgba(7, 40, 60, 0.35) 0px 6px 18px;
    text-align: center;
}

.sub-page .container.container-footer p {
    color: #F4FBFF;
    font-weight: 500;
}

.social-media {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0.5em;
    margin: 0.5em 0em 0em 0em;
}

.social-media li {
    margin: 0px;
}

.social-media a {
    display: inline-flex;
    align-items: center;
    background: var(--hj2-accent);
    color: #FFFFFF;
    padding: 0.75em 0.8em;
    margin: 0em 0.25em;
    border-radius: 50%;
    font-size: 18px;
}

/*============================================
==> Appbar CSS
===========================================*/
.appbar {
    position: fixed;
    bottom: 0;
    width: 100%;
    max-width: 480px;
    z-index: 99999;
}

.appbar .appbar-nav {
    position: relative;
    z-index: 999999;
    background: linear-gradient(180deg, rgba(15, 94, 142, 0.97) 0%, rgba(10, 58, 87, 0.97) 100%);
    border-top: 1px solid rgba(143, 208, 242, 0.65);
    padding: 1em 0.5em 0.5em 0.5em;
    border-radius: 16px 16px 0 0;
}

.appbar .appbar-nav ul {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    padding: 0px;
    margin: 0px;
    list-style: none;
}

.appbar .appbar-nav ul li {
    color: var(--hj2-sky);
    text-align: center;
    width: 20%;
    cursor: pointer;
}

.appbar .appbar-nav ul li i {
    display: block;
    font-size: 20px;
}

.appbar .appbar-nav ul li span {
    display: block;
    margin-top: 0.25em;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #F4FBFF;
}

.appbar .appbar-nav ul li:nth-child(3) {
    position: relative;
    top: -26px;
}

.appbar .appbar-nav ul li:nth-child(3) i {
    display: inline-block;
    padding: 12px;
    background: var(--hj2-accent);
    border-radius: 50%;
    font-size: 22px;
    color: #FFFFFF;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.30);
}

.appbar .appbar-nav ul li:hover i,
.appbar .appbar-nav ul li:hover span {
    color: #FFFFFF;
}

.appbar .appbar-nav ul li:nth-child(3):hover i {
    color: #FFFFFF;
}

.appbar .appbar-modal {
    position: absolute;
    bottom: 70px;
    left: 0;
    width: 100%;
    z-index: 999999;
}

.appbar .appbar-modal .modal-dialog {
    margin: 0em;
}

.appbar .appbar-modal .modal-content {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 251, 255, 0.98) 100%);
    border: 1px solid rgba(47, 137, 197, 0.50);
    border-radius: 14px 14px 0 0;
    box-shadow: 0px -8px 24px rgba(11, 74, 111, 0.40);
    max-height: 65vh;
    overflow-y: auto;
    color: var(--hj2-ink);
}

.appbar .appbar-modal .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(180deg, rgba(15, 94, 142, 0.97) 0%, rgba(10, 58, 87, 0.97) 100%);
    border-bottom: 2px solid var(--hj2-accent);
    border-radius: 12px 12px 0 0;
    padding: 0.75em 1em;
    position: sticky;
    top: 0;
    z-index: 2;
}

.appbar .appbar-modal .modal-header .modal-title {
    color: var(--hj2-sky-pale);
    letter-spacing: 2px;
    font-weight: 900;
    font-size: 14px;
    margin: 0;
}

.appbar .appbar-modal .modal-body {
    padding: 1em;
    background: transparent;
}

.appbar .appbar-modal .modal-body label {
    color: var(--hj2-ink-strong);
    font-weight: 700;
}

.appbar .appbar-modal .iframe-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56%;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(47, 137, 197, 0.40);
    margin-bottom: 1em;
}

.appbar .appbar-modal .iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/*============================================
==> Modal Backdrop CSS
===========================================*/
.modal-backdrop {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(7, 40, 60, 0.70);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.modal-backdrop.show {
    opacity: 1;
    visibility: visible;
}

/*============================================
==> Floating Preview CSS
===========================================*/
.floating-bar {
    position: fixed;
    left: max(0px, calc(50% - 240px));
    bottom: 70px;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 46px;
    height: 220px;
    background: linear-gradient(180deg, rgba(15, 94, 142, 0.97) 0%, rgba(10, 58, 87, 0.97) 100%);
    border: 1px solid rgba(143, 208, 242, 0.65);
    border-left: none;
    border-radius: 0 10px 10px 0;
    padding: 8px 0;
    box-shadow: rgba(7, 40, 60, 0.35) 2px 0px 10px;
}

.floating-bar .floating-icon {
    width: 100%;
    text-align: center;
    color: var(--hj2-sky);
    font-size: 18px;
    margin-bottom: 14px;
    cursor: pointer;
}

.floating-bar .floating-icon:hover {
    color: #FFFFFF;
}

.floating-bar .floating-preview {
    color: var(--hj2-sky);
    font-size: 18px;
    cursor: pointer;
}

.floating-bar .floating-preview:hover {
    color: #FFFFFF;
}

/*============================================
==> Music Bar CSS
===========================================*/
.floating-music {
    position: fixed;
    right: max(0px, calc(50% - 240px));
    top: 180px;
    width: 50px;
    height: 50px;
    z-index: 99999;
    background: linear-gradient(180deg, rgba(15, 94, 142, 0.97) 0%, rgba(10, 58, 87, 0.97) 100%);
    border: 1px solid rgba(143, 208, 242, 0.65);
    border-right: none;
    border-radius: 10px 0 0 10px;
    color: var(--hj2-sky);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: rgba(7, 40, 60, 0.35) -2px 0px 10px;
}

.floating-music i {
    animation: pulseMusic 1.5s ease-in-out infinite;
}

.floating-music.playing i {
    animation: none;
}

/*============================================
==> Footer CSS
===========================================*/
.footer {
    background-color: rgba(255, 255, 255, 0.92);
    color: var(--hj2-ink);
    padding: 1em;
    border-radius: 8px;
    border: 1px solid rgba(47, 137, 197, 0.40);
}

.footer a {
    color: var(--hj2-accent);
    font-weight: 700;
    text-decoration: none;
}

.footer a:hover {
    color: var(--hj2-ink);
}

/*============================================
==> Responsive CSS
===========================================*/
@media (max-width: 360px) {
    .main-page .container-content .content .title .text-1 {
        font-size: 46px;
    }

    .appbar .appbar-nav ul li span {
        font-size: 10px;
    }
}

/* Hormati pilihan pengguna yang mahu kurangkan gerakan:
   sembunyikan belon & konfeti beranimasi. */
@media (prefers-reduced-motion: reduce) {

    .main-page .main-balloons .riser,
    .sub-page .sub-balloons .floater,
    .main-animation .main-top-1,
    .main-animation .main-top-2,
    .main-animation .main-top-3,
    .main-animation .main-top-4 {
        -webkit-animation: none !important;
        animation: none !important;
    }
}

/* ==> Mobile padding fix (max-width: 480px) */
@media (max-width: 480px) {
    .main-page .container-content .content {
        padding-left: 1.5em !important;
        padding-right: 1.5em !important;
    }
    .sub-page {
        padding-left: 1.5em !important;
        padding-right: 1.5em !important;
    }
}
