/* ============================================
   e-Hadir JPNT Landing Page
   Theme: Royal Navy & Shimmering 3D Gold
   (Hanya digunakan oleh index.php)
   ============================================ */

body.landing {
    background-color: #030b26;
    background-image:
        radial-gradient(ellipse 70% 55% at 50% 40%, #1b3f9e 0%, #0d2466 40%, #061440 70%, #030b26 100%);
    color: #fff;
}

/* ---------- Background layers ---------- */
.lp-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

/* Soft spotlight behind the title */
.lp-glow {
    position: absolute;
    left: 50%;
    top: 38%;
    width: 80vw;
    height: 60vh;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse at center, rgba(90, 140, 255, 0.28) 0%, rgba(40, 80, 200, 0.12) 40%, transparent 70%);
    filter: blur(10px);
}

/* Gold dot texture (corners) */
.lp-dots {
    position: absolute;
    width: 42vw;
    height: 60vh;
    background-image: radial-gradient(rgba(255, 214, 130, 0.75) 1px, transparent 1.7px);
    background-size: 9px 9px;
    opacity: 0.55;
}
.lp-dots-tl {
    top: -4vh;
    left: -4vw;
    -webkit-mask-image: radial-gradient(ellipse at 0% 0%, #000 0%, transparent 65%);
    mask-image: radial-gradient(ellipse at 0% 0%, #000 0%, transparent 65%);
}
.lp-dots-bl {
    bottom: 8vh;
    left: -4vw;
    -webkit-mask-image: radial-gradient(ellipse at 0% 100%, #000 0%, transparent 60%);
    mask-image: radial-gradient(ellipse at 0% 100%, #000 0%, transparent 60%);
}
.lp-dots-br {
    bottom: 10vh;
    right: -4vw;
    -webkit-mask-image: radial-gradient(ellipse at 100% 100%, #000 0%, transparent 60%);
    mask-image: radial-gradient(ellipse at 100% 100%, #000 0%, transparent 60%);
}

/* Gold & navy satin ribbons */
.lp-ribbon {
    position: absolute;
    top: 0;
    height: 100%;
    width: min(42vw, 62vh);
}
@media (orientation: portrait) {
    .lp-ribbon { width: 30vw; }
}
.lp-ribbon-left { left: 0; }
.lp-ribbon-right { right: 0; transform: scaleX(-1); }

.lp-ribbon .shine {
    stroke-dasharray: 140 1600;
    animation: ribbonShine 6s linear infinite;
}
.lp-ribbon .shine-2 { animation-delay: -3s; animation-duration: 8s; }

@keyframes ribbonShine {
    from { stroke-dashoffset: 1740; }
    to   { stroke-dashoffset: 0; }
}

/* Glossy stage floor with reflection */
.lp-floor {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 15vh;
    background:
        radial-gradient(ellipse 60% 18% at 50% 0%, rgba(255, 220, 140, 0.55) 0%, rgba(255, 200, 100, 0.15) 45%, transparent 75%),
        repeating-linear-gradient(90deg, transparent 0 7vw, rgba(255, 210, 130, 0.07) 7vw calc(7vw + 2px), transparent calc(7vw + 2px) 11vw),
        linear-gradient(to bottom, #0a1c55 0%, #061235 45%, #020818 100%);
    border-top: 1px solid rgba(255, 215, 140, 0.35);
    box-shadow: 0 -10px 40px rgba(255, 200, 100, 0.15);
}

/* Lens flares */
.lp-flare {
    position: absolute;
    width: 160px;
    height: 160px;
    margin: -80px 0 0 -80px;
    background:
        radial-gradient(circle, #fff 0%, rgba(255, 240, 200, 0.9) 4%, rgba(255, 200, 100, 0.35) 14%, transparent 40%),
        linear-gradient(90deg, transparent 0%, rgba(255, 230, 170, 0.7) 50%, transparent 100%) center / 100% 2px no-repeat,
        linear-gradient(0deg, transparent 20%, rgba(255, 230, 170, 0.5) 50%, transparent 80%) center / 2px 60% no-repeat;
    mix-blend-mode: screen;
    animation: flarePulse 3.5s ease-in-out infinite;
}
@keyframes flarePulse {
    0%, 100% { opacity: 0.55; transform: scale(0.85) rotate(0deg); }
    50%      { opacity: 1;    transform: scale(1.1) rotate(8deg); }
}

/* Twinkling stars */
.lp-star {
    position: absolute;
    width: 14px;
    height: 14px;
    margin: -7px 0 0 -7px;
    background:
        radial-gradient(circle, #fff 0%, rgba(255, 230, 160, 0.8) 18%, transparent 45%),
        linear-gradient(90deg, transparent 0%, #ffe9b0 50%, transparent 100%) center / 100% 1px no-repeat,
        linear-gradient(0deg, transparent 0%, #ffe9b0 50%, transparent 100%) center / 1px 100% no-repeat;
    animation: starTwinkle 2.6s ease-in-out infinite;
    opacity: 0;
}
@keyframes starTwinkle {
    0%, 100% { opacity: 0; transform: scale(0.4); }
    50%      { opacity: 1; transform: scale(1.2); }
}

/* ---------- Typography ---------- */
/* custom.css sets a font on every element (*); let nested spans inherit instead */
.lp-title *, .lp-script *, .lp-info-text *, .lp-cta * { font-family: inherit; }

.lp-majlis {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    letter-spacing: 0.3em;
    padding-left: 0.3em; /* balance trailing letter-spacing */
    background: linear-gradient(to bottom, #ffffff 0%, #e9eef8 45%, #b8c3d9 55%, #ffffff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.6));
}
.lp-line {
    height: 1px;
    width: clamp(40px, 16vw, 260px);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.85));
}
.lp-line-r { transform: scaleX(-1); }

/* --- Shimmering 3D gold text ---
   Markup: <span class="g3d"><span class="g3d-back">TEXT</span><span class="g3d-front">TEXT</span></span>
   .g3d-back  = extruded depth + shadow
   .g3d-front = gold face with moving highlight */
.g3d {
    position: relative;
    display: inline-block;
    line-height: 1;
}
.g3d-back,
.g3d-front {
    display: block;
    white-space: nowrap;
    padding: 0.06em 0.04em; /* keep glyph edges inside the clipped gradient */
}
.g3d-back {
    position: absolute;
    inset: 0;
    color: #7a4c10;
    text-shadow:
        0 1px 0 #8f5c16,
        0 2px 0 #835212,
        0 3px 0 #74470f,
        0 4px 0 #663d0c,
        0 5px 0 #57330a,
        0 6px 0 #482a08,
        0 8px 3px rgba(0, 0, 0, 0.55),
        0 14px 22px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(255, 190, 80, 0.35);
}
.g3d-front {
    position: relative;
    background-image:
        linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.95) 48%, rgba(255, 250, 225, 0.6) 52%, transparent 62%),
        linear-gradient(to bottom, #fff7d6 0%, #fbe08a 22%, #e8b24a 42%, #a86d1c 52%, #f4cf72 64%, #ffe9a8 80%, #d99a35 100%);
    background-size: 300% 100%, 100% 100%;
    background-repeat: no-repeat;
    background-position: 150% 0, 0 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: goldSweep 4.5s ease-in-out infinite;
}
@keyframes goldSweep {
    0%   { background-position: 150% 0, 0 0; }
    55%  { background-position: -50% 0, 0 0; }
    100% { background-position: -50% 0, 0 0; }
}

/* Main title: MENJULANG BAKTI */
.lp-title {
    font-family: 'Cinzel', serif;
    font-weight: 900;
    font-size: clamp(2.2rem, min(10.5vw, 10vh), 7.6rem);
    letter-spacing: 0.01em;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 0.28em;
    row-gap: 0.05em;
}
.lp-title .cap { font-size: 1.22em; }
@media (min-width: 768px) {
    .lp-title { font-size: clamp(2.6rem, min(6.3vw, 10vh), 7.6rem); }
}

/* Script: Menyulam Legasi */
.lp-script-wrap {
    position: relative;
    margin-top: -0.12em;
}
.lp-script {
    font-family: 'Great Vibes', cursive;
    font-weight: 400;
    font-size: clamp(3rem, min(15vw, 12vh), 9rem);
}
.lp-script .g3d-back,
.lp-script .g3d-front {
    padding: 0.12em 0.3em 0.18em; /* room for swashes */
}
.lp-script .g3d-back {
    color: #8a8f9e;
    text-shadow:
        0 1px 0 #9aa0ad,
        0 2px 0 #7d8291,
        0 3px 0 #626776,
        0 5px 4px rgba(0, 0, 0, 0.6),
        0 12px 20px rgba(0, 0, 0, 0.55),
        0 0 30px rgba(255, 220, 150, 0.35);
}
.lp-script .g3d-front {
    background-image:
        linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 1) 48%, rgba(255, 240, 200, 0.7) 52%, transparent 62%),
        linear-gradient(to bottom, #ffffff 0%, #f4f1ea 35%, #c9c3b4 52%, #f6e7c3 68%, #e6c27a 100%);
    animation-delay: 1.2s;
}
@media (min-width: 768px) {
    .lp-script { font-size: clamp(3rem, min(8.5vw, 12vh), 9rem); }
}

/* Golden swoosh under the script */
.lp-swoosh {
    position: absolute;
    left: 50%;
    bottom: 2%;
    width: min(92vw, 900px);
    height: auto;
    transform: translateX(-46%);
    pointer-events: none;
    filter: drop-shadow(0 0 6px rgba(255, 200, 100, 0.8));
}
.lp-swoosh-flare {
    position: absolute;
    right: 8%;
    bottom: 18%;
    width: 120px;
    height: 120px;
    margin: 0;
}

.lp-sub {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    letter-spacing: 0.32em;
    padding-left: 0.32em;
    color: rgba(235, 240, 255, 0.92);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

/* ---------- Info pill (date / time / venue) ---------- */
.lp-info {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    padding: 1rem 1.25rem;
    border-radius: 1.5rem;
    background: linear-gradient(to bottom, rgba(8, 20, 60, 0.92), rgba(3, 10, 36, 0.95));
    border: 1.5px solid rgba(255, 214, 130, 0.85);
    box-shadow:
        0 0 0 1px rgba(255, 214, 130, 0.15),
        0 0 22px rgba(255, 196, 90, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 12px 30px rgba(0, 0, 0, 0.55);
    width: min(100%, 26rem);
}
.lp-info-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-align: left;
}
.lp-info-icon {
    flex-shrink: 0;
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffd98a;
    background: radial-gradient(circle at 35% 30%, #1b2f6b, #050d2b 75%);
    border: 2px solid #e8b551;
    box-shadow: 0 0 12px rgba(255, 196, 90, 0.5), inset 0 0 8px rgba(255, 210, 120, 0.25);
}
.lp-info-icon svg { width: 1.35rem; height: 1.35rem; }
.lp-info-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    line-height: 1.35;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #fff;
}
.lp-info-text small {
    display: block;
    font-weight: 500;
    font-size: 0.92em;
    color: rgba(255, 255, 255, 0.82);
}
.lp-info-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 214, 130, 0.5), transparent);
}

@media (min-width: 900px) {
    .lp-info {
        flex-direction: row;
        align-items: center;
        gap: 1.5rem;
        padding: 0.75rem 2rem 0.75rem 0.9rem;
        border-radius: 9999px;
        width: auto;
        max-width: 64rem;
    }
    .lp-info-divider {
        width: 1px;
        height: 2.6rem;
        background: linear-gradient(to bottom, transparent, rgba(255, 214, 130, 0.6), transparent);
    }
    .lp-info-text { font-size: clamp(0.8rem, 1.6vh, 1rem); }
}

/* ---------- Logos & CTA ---------- */
.lp-logos {
    background: #fff;
    border-radius: 18px;
    padding: 8px 26px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 214, 130, 0.4);
}

.lp-cta {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #1a1204;
    border-radius: 9999px;
    background: linear-gradient(to bottom, #fff2c2 0%, #f3c763 40%, #c98a26 75%, #e9b24c 100%);
    border: 1.5px solid #fff3c8;
    box-shadow: 0 0 25px rgba(255, 196, 90, 0.55), 0 10px 25px rgba(0, 0, 0, 0.5), inset 0 2px 3px rgba(255, 255, 255, 0.7);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.lp-cta::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -60%;
    width: 40%;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.85), transparent);
    animation: ctaShine 3.5s ease-in-out infinite;
}
.lp-cta > * {
    position: relative;
    z-index: 1;
}
.lp-cta:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 0 40px rgba(255, 196, 90, 0.8), 0 14px 30px rgba(0, 0, 0, 0.55), inset 0 2px 3px rgba(255, 255, 255, 0.7);
}
@keyframes ctaShine {
    0%   { left: -60%; }
    60%  { left: 130%; }
    100% { left: 130%; }
}

/* Smartphone: fit the whole landing page in one screen.
   Sizes follow the visible height (dvh) so nothing needs scrolling.
   ".landing" prefix outranks the Tailwind utility classes on the same elements. */
@media (max-width: 767px) {
    .landing .lp-wrap {
        min-height: 100vh;
        min-height: 100dvh;
        padding: 2.5dvh 16px 3dvh;
    }
    .landing .lp-logo-main { height: 8.5dvh; min-height: 44px; max-height: 80px; }
    .landing .lp-majlis-row { margin-top: 1.6dvh; }
    .landing .lp-majlis { font-size: min(6vw, 3.4dvh); }
    .landing .lp-title { font-size: min(10.5vw, 7.4dvh); margin-top: 0.4dvh; }
    .landing .lp-script { font-size: min(14vw, 9dvh); }
    .landing .lp-sub { font-size: min(2.8vw, 1.5dvh); margin-top: 0.6dvh; }

    /* Info: one compact row of three columns, like the poster */
    .landing .lp-info {
        display: grid;
        grid-template-columns: 1fr auto 1fr auto 1fr;
        align-items: start;
        gap: 0.4rem;
        width: 100%;
        max-width: 26rem;
        margin-top: 1.8dvh;
        padding: 1dvh 0.5rem;
        border-radius: 1rem;
    }
    .landing .lp-info-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5dvh;
    }
    .landing .lp-info-icon { width: min(7vw, 3.4dvh); height: min(7vw, 3.4dvh); border-width: 1.5px; }
    .landing .lp-info-icon svg { width: 55%; height: 55%; }
    .landing .lp-info-text { font-size: clamp(9px, min(2.5vw, 1.25dvh), 13px); letter-spacing: 0.01em; }
    .landing .lp-info-divider {
        width: 1px;
        height: auto;
        align-self: stretch;
        background: linear-gradient(to bottom, transparent, rgba(255, 214, 130, 0.55), transparent);
    }

    .landing .lp-logos { margin-top: 1.8dvh; padding: 0.6dvh 14px; }
    .landing .lp-logos-img { height: 3.4dvh; min-height: 22px; }
    .landing .lp-cta {
        margin-top: 1.8dvh;
        padding: 1.2dvh 6vw;
        font-size: min(3.4vw, 1.6dvh);
    }
    .landing .lp-cta-icon { width: 2dvh; height: 2dvh; min-width: 14px; min-height: 14px; }
}

/* Small phones: tone down side decoration so text stays readable */
@media (max-width: 640px) {
    .lp-ribbon { opacity: 0.6; }
    .lp-dots { opacity: 0.35; }
}

@media (prefers-reduced-motion: reduce) {
    .g3d-front, .lp-cta::after, .lp-ribbon .shine, .lp-flare, .lp-star { animation: none !important; }
    .lp-star { opacity: 0.7; }
}
