/* ==========================================================================
   05. HOME PAGE SPECIFIC (Template: front-page.php)
   ========================================================================== */

/* --- A. Layout --- */
.splash-page {
    position: fixed;
    inset: 0;
    background: #000;
    overflow: hidden;
    z-index: 1;
}

/* --- B. Media (Full Screen Fix) --- */
.splash-video, .splash-image, .splash-image img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.splash-video, .splash-image {
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 1.5s ease-in-out, transform 1.5s ease-out, filter 1.2s ease-in-out; 
    filter: blur(15px);
}

.splash-video.active, .splash-image.show {
    opacity: 1;
    transform: scale(1);
    filter: blur(0px);
    z-index: 2;
}

.blur-out { filter: blur(10px) brightness(0.8); }

/* --- C. Cinematic Sorot Atas (Architecture Light) --- */
.splash-overlay {
    position: absolute;
    inset: 0;
    /* Sorot cahaya dari atas menonjolkan fasad bangunan */
    background: linear-gradient(to bottom, 
        rgba(255,255,255,0.15) 0%, 
        transparent 40%, 
        rgba(0,0,0,0.4) 75%, 
        rgba(0,0,0,0.8) 100%);
    z-index: 3;
    pointer-events: none;
}

/* --- D. Typewriter & Fade (With Typing Cursor) --- */
.splash-text-layer {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 10%;
    z-index: 5;
}

.splash-text {
    font-size: clamp(24px, 4.5vw, 52px);
    color: #f8f8f8;
    max-width: 60%;
    text-align: left;
    font-weight: 700;
    line-height: 1.2;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 1.2s ease, transform 1.2s ease;
    text-shadow: 0 4px 20px rgba(0,0,0,0.6);
    position: relative;
    display: inline-block; /* Mengunci lebar agar kursor tidak melompat ke bawah */
    white-space: pre-wrap; /* Menjaga spasi antar kata saat pengetikan */
    min-height: 1.2em;     /* Mencegah layout 'jump' saat teks kosong */
}

.splash-text.show {
    opacity: 1;
    transform: translateX(0);
}

.text-fade-out {
    opacity: 0;
    transform: translateX(10px);
}

.splash-text.show::after {
    content: "|";
    margin-left: 4px;
    color: rgba(255,255,255,0.6);
    animation: blink-caret 0.8s step-end infinite;
}

.splash-text.text-fade-out::after {
    display: none;
}

@keyframes blink-caret {
    50% { opacity: 0; }
}

/* --- E. Dot Mini Center (Ultra-Thin & Transparent) --- */
.splash-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex; 
    gap: 15px; 
    z-index: 10;
}

.dot-mini {
    width: 5px;
    height: 5px;
    border: 0.5px solid rgba(255, 255, 255, 0.2); 
    border-radius: 50%;
    background: transparent;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.dot-mini.active { 
    background: rgba(255, 255, 255, 0.7); 
    border-color: rgba(255, 255, 255, 0.7);
    transform: scale(1.2); 
}

/* --- F. Minimalist Speaker (Mepet Sisi Kanan) --- */
.splash-speaker {
    position: absolute;
    bottom: 35px; 
    right: 3%;    
    z-index: 20;
    cursor: pointer;
    transition: all 0.4s ease;
    opacity: 0.25; 
}

.splash-speaker:hover { 
    opacity: 0.8; 
    transform: scale(1.1);
}

.speaker-icon svg { 
    width: 20px; 
    height: 20px; 
    fill: rgba(255, 255, 255, 0.9); 
}

.splash-speaker.is-unmuted {
    opacity: 0.6; 
    animation: luxury-pulse 2.5s infinite ease-in-out;
}

@keyframes luxury-pulse {
    0% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.1) rotate(2deg); opacity: 0.7; }
    100% { transform: scale(1); opacity: 0.4; }
}

/* --- G. Global Smooth Scroll & Custom Scrollbar (Halaman Lain) --- */
/* Diterapkan pada level root untuk look yang bersih */
html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* Momentum scroll iOS */
}

/* Kustomisasi scrollbar untuk desktop (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 4px; /* Sangat tipis */
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15); /* Putih tipis elegan */
    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Sembunyikan scrollbar di mobile agar tidak merusak visual */
@media (max-width: 768px) {
    ::-webkit-scrollbar {
        display: none; /* Hilangkan batang scroll tapi tetap bisa di-scroll */
    }

    .splash-text-layer { justify-content: center; padding: 0 30px; }
    .splash-text { text-align: center; max-width: 100%; }
    .splash-speaker { 
        right: 5%; 
        bottom: 30px; 
    }
}

