/* --- 1. Reset and Font Setup --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, h1, h2, h3, p, button, a {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; 
    /* Ubah ke #0B1120 jika ingin selaras dengan tone Navy Blue di preloader */
    background-color: #000; 
    overflow-x: hidden;
}

/* --- 2. Global Utilities --- */
.hero-gradient {
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
}

.membrane-tension-effect {
    filter: url(#stretch-membrane-warp);
    backface-visibility: hidden;
    transform: translateZ(0);
}

.marquee-mask {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

/* --- 3. Preloader --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.9)), 
                url('img/fotodepan1.webp') center/cover no-repeat;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader-logo {
    width: 65px;
    height: auto;
    margin-bottom: 5px;
    animation: pulseGlowImg 1.5s infinite alternate;
}

.loader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.logo-glow {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    animation: pulseGlow 1.5s infinite alternate;
}

.logo-glow span {
    color: #94A3B8; 
}

.progress-line {
    width: 0;
    height: 3px;
    background-color: #38bdf8;
    border-radius: 5px;
    box-shadow: 0 0 10px #38bdf8;
    animation: loadLine 3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* --- 4. Hero Section Layout --- */
.hero-section {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    animation: zoomOut 4s cubic-bezier(0.25, 1, 0.5, 1) forwards; 
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.2));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #ffffff;
    padding: 0 5%;
}

.hero-title {
    font-size: clamp(4rem, 10vw, 12rem);
    font-weight: 800;
    line-height: 0.85;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp 1s cubic-bezier(0.25, 1, 0.5, 1) 0.5s forwards;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.5rem);
    font-weight: 400;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s cubic-bezier(0.25, 1, 0.5, 1) 0.7s forwards;
}

.hero-btn {
    display: inline-block;
    margin-top: 40px;
    padding: 14px 36px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s cubic-bezier(0.25, 1, 0.5, 1) 0.9s forwards;
}

.hero-btn:hover {
    background-color: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

.animate-marquee {
    display: flex;
    width: max-content;
    animation: marquee 35s linear infinite;
    will-change: transform;
}

.animate-marquee-logos {
    display: flex;
    width: max-content;
    animation: marquee-logos 45s linear infinite;
    will-change: transform;
}

/* --- 5. Keyframes (Animations) --- */
@keyframes marquee {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}

@keyframes marquee-logos {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}

@keyframes pulseGlowImg {
    0% { filter: drop-shadow(0 0 5px rgba(255,255,255,0.2)); }
    100% { filter: drop-shadow(0 0 15px rgba(255,255,255,0.8)) drop-shadow(0 0 25px #38bdf8); }
}

@keyframes pulseGlow {
    0% { text-shadow: 0 0 5px rgba(255,255,255,0.2); }
    100% { text-shadow: 0 0 20px rgba(255,255,255,0.8), 0 0 30px #38bdf8; }
}

@keyframes loadLine {
    0% { width: 0; opacity: 1; }
    90% { width: 150px; opacity: 1; }
    100% { width: 150px; opacity: 0; }
}

@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomOut {
    0% { transform: scale(1.1); }
    100% { transform: scale(1); }
}