:root {
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    --primary: #0084ff;
    --primary-hover: #0066cc;
    --text-dark: #0f172a;
    --text-muted: #64748b;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
body { background-color: var(--bg-body); color: var(--text-dark); line-height: 1.5; overflow-x: hidden; }

/* NAVBAR ATAS */
.top-nav {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}
.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1.2rem;
}
.nav-left { display: flex; align-items: center; gap: 2rem; }
.logo {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.logo i { color: var(--primary); }
.logo img { max-height: 38px; width: auto; object-fit: contain; }

/* MENU DESKTOP STYLING */
.nav-menu { display: flex; align-items: center; gap: 1.5rem; list-style: none; }
.nav-menu > li { position: relative; }
.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 0;
    transition: color 0.2s;
}
.nav-menu a:hover { color: var(--primary); }

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    min-width: 180px;
    list-style: none;
    padding: 0.5rem 0;
    display: none;
    z-index: 200;
}
.nav-menu > li.has-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu li a {
    padding: 0.6rem 1rem;
    text-transform: none;
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--text-dark);
}
.dropdown-menu li a:hover {
    background: #f1f5f9;
    color: var(--primary);
}

.badge {
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    color: #fff;
    font-weight: 800;
    margin-left: 2px;
}
.badge-new, .badge-NEW { background: #ef4444; }
.badge-hot, .badge-HOT { background: #84cc16; }

.nav-right { display: flex; align-items: center; gap: 0.8rem; }

.btn-client-access {
    background: var(--primary);
    color: #ffffff;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.5rem 0.9rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: background 0.2s, transform 0.1s;
    white-space: nowrap;
}
.btn-client-access:hover { background: var(--primary-hover); }

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--text-dark);
    cursor: pointer;
    padding: 0.2rem 0.4rem;
}

/* TICKER BAR WITH FADE ANIMATION */
.ticker-bar {
    max-width: 1280px;
    margin: 1rem auto 0;
    padding: 0 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.ticker-badge {
    background: var(--primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.35rem 0.6rem;
    text-transform: uppercase;
    border-radius: 4px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.ticker-wrapper {
    position: relative;
    height: 24px;
    overflow: hidden;
    flex: 1;
}
.ticker-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ticker-item.active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.ticker-item.exit { opacity: 0; transform: translateY(-15px); }

/* ANIMASI ENTRANCE */
@keyframes enterLeft { from { opacity: 0; transform: translateX(-60px); } to { opacity: 1; transform: translateX(0); } }
@keyframes enterRight { from { opacity: 0; transform: translateX(60px); } to { opacity: 1; transform: translateX(0); } }
@keyframes enterTop { from { opacity: 0; transform: translateY(-50px); } to { opacity: 1; transform: translateY(0); } }
@keyframes enterBottom { from { opacity: 0; transform: translateY(50px); } to { opacity: 1; transform: translateY(0); } }

@keyframes shakeZoom {
    0% { transform: scale(1) rotate(0deg); }
    20% { transform: scale(1.04) rotate(-1deg); }
    40% { transform: scale(1.05) rotate(1deg); }
    60% { transform: scale(1.06) rotate(-0.5deg); }
    100% { transform: scale(1.06) rotate(0deg); }
}

/* GRID HERO SECTION */
.hero-grid-container {
    max-width: 1280px;
    margin: 1rem auto 2.5rem;
    padding: 0 1.2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 14px;
}

.grid-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #0f172a;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    min-height: 210px;
    cursor: pointer;
    opacity: 0;
    animation-fill-mode: forwards;
}

.grid-item.anim-left { animation: enterLeft 0.8s ease-out 0.1s forwards; }
.grid-item.anim-top { animation: enterTop 0.8s ease-out 0.3s forwards; }
.grid-item.anim-right { animation: enterRight 0.8s ease-out 0.2s forwards; }
.grid-item.anim-bottom { animation: enterBottom 0.8s ease-out 0.4s forwards; }
.grid-item.anim-right-2 { animation: enterRight 0.8s ease-out 0.5s forwards; }

.grid-item.large { grid-row: span 2; min-height: 434px; }
.grid-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity 0.3s ease; opacity: 0.88; }
.grid-item:hover img { animation: shakeZoom 0.4s ease forwards; opacity: 1; }

.grid-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0) 100%);
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: background 0.3s ease;
    pointer-events: none;
}

.cat-badge {
    align-self: flex-start;
    background: var(--primary);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0, 132, 255, 0.4);
}

.grid-item h3 { font-size: 1.05rem; font-weight: 700; line-height: 1.35; margin-bottom: 0.4rem; transition: transform 0.3s ease, color 0.3s ease; }
.grid-item.large h3 { font-size: 1.6rem; }
.grid-item:hover h3 { color: #60a5fa; transform: translateY(-2px); }

.meta-info { font-size: 0.75rem; color: #cbd5e1; display: flex; align-items: center; gap: 0.8rem; }

/* CLIENT PORTAL FORM */
.portal-section { max-width: 1280px; margin: 0 auto 3rem; padding: 0 1.2rem; }
.portal-box { background: #ffffff; border: 1px solid var(--border-color); border-radius: 12px; padding: 2rem 1.2rem; text-align: center; box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05); }
.portal-box h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 0.4rem; }
.portal-box p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.5rem; }

.search-form { display: flex; width: 100%; max-width: 480px; margin: 0 auto; gap: 0.5rem; align-items: center; }
.search-form input { flex: 1; min-width: 0; padding: 0.8rem 1rem; border: 1px solid var(--border-color); border-radius: 8px; font-size: 0.95rem; outline: none; background: #f8fafc; transition: all 0.2s; }
.search-form input:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(0,132,255,0.15); }
.search-form button { background: var(--primary); color: #fff; border: none; padding: 0.8rem 1.2rem; border-radius: 8px; font-weight: 700; font-size: 0.9rem; cursor: pointer; white-space: nowrap; display: flex; align-items: center; justify-content: center; gap: 0.5rem; transition: background 0.2s; flex-shrink: 0; }
.search-form button:hover { background: var(--primary-hover); }

/* VIDEO SHOWREEL SECTION (MASONRY AUTO-GRID) */
.video-section { max-width: 1280px; margin: 0 auto 4rem; padding: 0 1.2rem; }
.section-header { text-align: center; margin-bottom: 2rem; }
.section-header h2 { font-size: 1.6rem; font-weight: 800; color: var(--text-dark); }
.section-header p { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.3rem; }

.video-grid { 
    column-count: 3; 
    column-gap: 1.5rem; 
}

.video-card {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    display: inline-block;
    width: 100%;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.1); }
.video-card.slide-left { transform: translateX(-40px); }
.video-card.slide-right { transform: translateX(40px); }
.video-card.appear { opacity: 1; transform: translateX(0); }

.video-embed-container {
    position: relative;
    width: 100%;
    background: #000;
}

/* Rasio Landscape 16:9 */
.video-card.is-landscape .video-embed-container {
    padding-bottom: 56.25%;
    height: 0;
}

/* Rasio Portrait 9:16 Utuh */
.video-card.is-portrait .video-embed-container {
    padding-bottom: 160%;
    height: 0;
}

.video-embed-container iframe,
.video-embed-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

.video-info { padding: 1.2rem; }
.video-info h3 { font-size: 1.05rem; font-weight: 700; color: var(--text-dark); margin-bottom: 0.4rem; }
.video-info p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.4; }

/* RESPONSIVE LAYAR TABLET & MOBILE */
@media (max-width: 992px) {
    .video-grid { column-count: 2; column-gap: 1.2rem; }
    .hero-grid-container { grid-template-columns: 1fr; }
    .grid-item.large { min-height: 280px; grid-row: span 1; }
    .grid-item { min-height: 200px; }

    .mobile-toggle { display: block; }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #ffffff;
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 1.2rem;
        gap: 0;
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    }

    .nav-menu.show { display: flex; }
    .nav-menu > li { width: 100%; border-bottom: 1px solid #f1f5f9; }
    .nav-menu > li:last-child { border-bottom: none; }
    .nav-menu a { padding: 0.8rem 0; width: 100%; justify-content: space-between; }

    .dropdown-menu { position: static; box-shadow: none; border: none; padding-left: 1rem; background: #f8fafc; border-radius: 6px; margin-bottom: 0.5rem; }
    .nav-menu > li.has-dropdown.open .dropdown-menu { display: block; }
    .btn-client-access { font-size: 0.75rem; padding: 0.4rem 0.7rem; }
}

@media (max-width: 600px) {
    .video-grid { column-count: 1; }
}

@media (max-width: 480px) {
    .portal-box { padding: 1.5rem 1rem; }
    .portal-box h2 { font-size: 1.2rem; }
    .portal-box p { font-size: 0.85rem; }
    .search-form { flex-direction: row; }
    .search-form input { padding: 0.75rem 0.8rem; font-size: 0.88rem; }
    .search-form button { padding: 0.75rem 1rem; font-size: 0.85rem; }
}

/* SEKSI PARTNER CONTAINER & HORIZONTAL SLIDER */
.partner-section {
    max-width: 1280px;
    margin: 2.5rem auto 4rem;
    padding: 0 1.2rem;
    width: 100%;
}

/* Container Putih Utama */
.partner-container-box {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

.partner-box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid #f1f5f9;
}

.partner-box-header h2 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.slider-dots {
    display: flex;
    gap: 6px;
}

.slider-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1.5px solid var(--primary);
    background: transparent;
}

.slider-dots .dot.active {
    background: var(--primary);
}

/* Wrapper Slider / Scroll Horizontal Native */
.partner-slider-wrapper {
    display: flex;
    gap: 1.2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 0.8rem;
    -webkit-overflow-scrolling: touch;
}

/* Sembunyikan Scrollbar Bawaan Browser tapi tetap bisa digeser */
.partner-slider-wrapper::-webkit-scrollbar {
    height: 6px;
}
.partner-slider-wrapper::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}
.partner-slider-wrapper::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

/* Kartu Partner di Dalam Slider (Ukuran Lebih Ringkas & Presisi) */
.partner-slide-card {
    flex: 0 0 220px; /* Ukuran lebar kartu ringkas */
    scroll-snap-align: start;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-dark);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.partner-slide-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    border-color: var(--primary);
}

.partner-slide-thumb {
    width: 100%;
    height: 125px; /* Tinggi thumbnail proporsional */
    background: #0f172a;
    overflow: hidden;
}

.partner-slide-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.partner-slide-card:hover .partner-slide-thumb img {
    transform: scale(1.06);
}

.partner-slide-info {
    padding: 0.8rem 0.9rem;
}

.partner-slide-info h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.partner-slide-info span {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.2rem;
}

/* Penyesuaian Layar HP */
@media (max-width: 600px) {
    .partner-slide-card {
        flex: 0 0 170px; /* Lebih imut di HP */
    }
    .partner-slide-thumb {
        height: 105px;
    }
    .partner-container-box {
        padding: 1rem;
    }
}