/* ==========================================
   CSS STYLING (Tema Hitam Kuning Premium)
   ========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #1a1a1a;
    color: #eeeeee;
    min-height: 100vh;
    display: flex; flex-direction: column;
}

/* Navbar Utama */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #2b2b2b;
    padding: 10px 20px;
    border-bottom: 2px solid #ff9900;
}

.logo {
    font-weight: bold;
    font-size: 24px;
    color: #ffffff;
    letter-spacing: -1px;
}

.badge {
    background-color: #ff9900;
    color: #000000;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 4px;
    font-weight: 900;
}

.nav-links a {
    color: #cccccc;
    text-decoration: none;
    margin: 0 15px;
    font-size: 14px;
    font-weight: bold;
}

.nav-links a:hover, .nav-links a.active {
    color: #ff9900;
}

/* Pencarian */
.search-bar {
    display: flex;
}

.search-bar input {
    padding: 6px 12px;
    background-color: #111111;
    border: 1px solid #444444;
    color: white;
    border-radius: 4px 0 0 4px;
    outline: none;
}

.search-bar button {
    padding: 6px 15px;
    background-color: #ff9900;
    border: none;
    color: black;
    font-weight: bold;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
}

.search-bar button:hover {
    background-color: #e08800;
}

/* Tata Letak Konten */
.container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    flex: 1;
}

.section-title {
    font-size: 20px;
    border-left: 4px solid #ff9900;
    padding-left: 10px;
    margin-bottom: 20px;
    color: #ffffff;
}

/* Grid Kartu Portofolio */
.grid-portfolio {
    display: grid;
    grid-template-columns: repeat(5,1fr);
    gap: 20px;
    width: 100%;
}

.grid-portfolio a {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
}

.grid-portfolio a .card {
    width: 100%;
}

.card {
    background-color: #222222;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 153, 0, 0.2);
}

.thumbnail-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* Rasio aspek 16:9 seperti video thumbnail */
    background-color: #000;
    overflow: hidden;
}

.profile-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.profile-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Memastikan video memenuhi kotak dengan pas */
    z-index: 1; /* Bersembunyi di belakang foto saat awal */
    opacity: 0; /* Membuat video tidak terlihat sebelum disentuh kursor */
    transition: opacity 0.3s ease;
}

.thumbnail-container:hover .profile-img {
    opacity: 0; /* Foto menghilang secara halus */
    z-index: 1; /* Foto pindah ke belakang */
}

.thumbnail-container:hover .profile-video {
    opacity: 1; /* Video muncul */
    z-index: 2; /* Video maju ke depan dan berputar */
}

.duration {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background-color: rgba(0, 0, 0, 0.8);
    color: #ff9900;
    font-size: 11px;
    padding: 2px 4px;
    border-radius: 2px;
    font-weight: bold;
}

/* Informasi di Dalam Kartu */
.card-info {
    padding: 10px;
}

.name {
    font-size: 14px;
    color: #ffffff;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card:hover .name {
    color: #ff9900;
}

.role {
    font-size: 12px;
    color: #999999;
    margin-bottom: 8px;
}

.stats {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #888888;
}

.rating {
    color: #21c45d; /* Indikator rating hijau murni */
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    background-color: #111111;
    color: #555555;
    font-size: 12px;
    margin-top: 50px;
    border-top: 1px solid #222222;
}