/*
Theme Name: Tristar Nova Editorial
Theme URI: https://tristardigital.biz.id
Author: Metal Expert
Description: Tema Ruang Redaksi Tristar Digital.
Version: 3.0
*/

:root {
    --bg-dark: #0f0c15;
    --bg-card: #1a1625;
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --tristar-blue: #00aeff;
    --tristar-red: #ff0000;
    --gradient-primary: linear-gradient(135deg, var(--tristar-blue), var(--tristar-red));
    --gradient-text: linear-gradient(to right, var(--tristar-blue), #fff, var(--tristar-red));
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { background-color: var(--bg-dark); color: var(--text-main); font-family: 'Segoe UI', sans-serif; line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* --- COMPONENTS --- */
.btn-gradient { background: var(--gradient-primary); color: white; padding: 12px 30px; border-radius: 50px; font-weight: 700; display: inline-block; border: none; cursor: pointer; box-shadow: 0 4px 15px rgba(0, 174, 255, 0.3); transition: 0.3s; }
.btn-gradient:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4); }
.text-gradient { background: var(--gradient-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-weight: 800; }

/* --- HEADER --- */
header { padding: 20px 0; position: absolute; width: 100%; top: 0; z-index: 10; }
.nav-wrapper { 
    display: flex; justify-content: space-between; align-items: center; 
    background: rgba(255, 255, 255, 0.05); padding: 15px 30px; border-radius: 50px; 
    backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.1); 
}

/* Logo & Teks Header */
.site-brand { display: flex; align-items: center; gap: 15px; }
.logo img { height: 40px; width: auto; }
.site-title-text { 
    font-size: 1.2rem; 
    font-weight: 800; 
    color: white; 
    text-transform: uppercase; 
    letter-spacing: 1px;
    white-space: nowrap; /* Mencegah teks turun baris */
}

.login-logo {
    height:200px;
}

/* =========================================
   METAL EXPERT INFINITE SLIDER STYLES
   ========================================= */

/* 1. Layout Container */
.me-partner-section {
    background-color: #0d0d15; /* Warna Background Gelap */
    padding: 60px 0;
    overflow: hidden; /* WAJIB: Sembunyikan scrollbar horizontal */
    color: #ffffff;
    text-align: center;
    position: relative;
}

.me-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 2. Typography */
.me-section-title h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffffff;
}

.me-section-title p {
    font-size: 14px;
    color: #a0a0a0;
    margin-bottom: 50px;
}

/* 3. Slider Wrapper (Masking) */
.me-infinite-slider {
    width: 100%;
    position: relative;
    /* Memberikan efek gradasi pudar di kiri & kanan agar animasi terlihat halus */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

/* 4. Track Animasi (Rel Kereta) */
.me-slider-track {
    display: flex;
    width: max-content; /* Lebar mengikuti jumlah konten, bukan lebar layar */
    
    /* ANIMASI: 30s adalah durasi satu putaran penuh. Ubah jika ingin lebih cepat/lambat */
    animation: meScrollInfinite 30s linear infinite;
}

/* Fitur: Slider berhenti saat mouse diarahkan */
.me-slider-track:hover {
    animation-play-state: paused;
}

/* 5. Group Logo */
.me-slide-group {
    display: flex;
    align-items: center;
    gap: 50px; /* Jarak antar logo */
    padding-right: 50px; /* Jarak penyambung antar Group 1 dan Group 2 */
}

/* 6. Item Logo */
.me-slide-item img {
    display: block;
    height: 40px; /* Tinggi logo diseragamkan */
    width: auto;  /* Lebar menyesuaikan proporsi */
    max-width: 180px;
    
    /* Efek Grayscale (Abu-abu) */
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Efek Hover pada Logo */
.me-slide-item img:hover {
    filter: grayscale(0%); /* Kembali berwarna */
    opacity: 1;
    transform: scale(1.1); /* Zoom sedikit */
}

/* =========================================
   KEYFRAMES (Jantung Animasi Infinite)
   ========================================= */
@keyframes meScrollInfinite {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Geser track ke kiri sejauh -50% (Satu panjang grup penuh) */
        /* Saat mencapai -50%, posisi visualnya identik dengan 0% */
        /* Loop terjadi di sini tanpa "kedip" */
        transform: translateX(-50%);
    }
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .me-slide-group {
        gap: 30px;
        padding-right: 30px;
    }
    .me-slide-item img {
        height: 25px; /* Perkecil logo di HP */
    }
}

.main-menu ul { display: flex; gap: 30px; }
.main-menu a { font-size: 0.95rem; font-weight: 600; color: var(--text-main); text-transform: uppercase; }
.main-menu a:hover { color: var(--tristar-blue); }

/* --- HERO SECTION --- */
.hero { padding: 180px 0 100px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -100px; right: -100px; width: 600px; height: 600px; background: radial-gradient(circle, rgba(0, 174, 255, 0.15) 0%, rgba(0,0,0,0) 70%); z-index: -1; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.hero-content h2 { color: var(--tristar-blue); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 15px; font-weight: 700; }
.hero-content h1 { font-size: 3.5rem; line-height: 1.2; margin-bottom: 25px; font-weight: 800; }
.hero-content p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 35px; max-width: 90%; }
.hero-images { position: relative; }
.hero-img-main { border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.hero-stat-card { position: absolute; bottom: -30px; left: -30px; background: var(--bg-card); padding: 25px; border-radius: 15px; border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 10px 30px rgba(0,0,0,0.5); text-align: center; border-left: 4px solid var(--tristar-red); }

/* --- NETWORK SLIDER (FIXED) --- */
.network-section { 
    padding: 60px 0; 
    background: rgba(255,255,255,0.02); 
    border-top: 1px solid rgba(255,255,255,0.05); 
    overflow: hidden; 
}
.network-intro { text-align: center; margin-bottom: 40px; }
.network-intro h3 { font-size: 2rem; margin-bottom: 10px; }

/* Container Utama */
.network-slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    /* Masking gradasi kiri-kanan agar halus */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

/* Track Animasi */
.network-slider-track {
    display: flex; /* WAJIB FLEX agar ke samping */
    align-items: center;
    gap: 80px; /* Jarak antar logo */
    width: max-content; /* Lebar mengikuti konten */
    animation: scroll 30s linear infinite; /* Animasi Jalan */
}

/* Keyframes Gerakan */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Geser setengah karena konten diduplikasi */
}

/* Item Logo Individual */
.network-item {
    flex-shrink: 0; /* Mencegah logo mengecil */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    filter: grayscale(100%); /* Abu-abu default */
    opacity: 0.5;
}

.network-item img {
    max-height: 50px; /* Tinggi logo seragam */
    width: auto;
    object-fit: contain;
}

/* --- LOGIC HOVER --- */

/* 1. Stop Animasi Track saat Mouse Masuk */
.network-slider-track:hover {
    animation-play-state: paused;
}

/* 2. Warnai Item yang di Hover */
.network-item:hover {
    filter: grayscale(0%); /* Warna Asli */
    opacity: 1;
    transform: scale(1.1); /* Zoom dikit */
    cursor: pointer;
}


/* --- LAIN-LAIN --- */
.services, .about-section { padding: 100px 0; }
.feature-card { background: var(--bg-card); padding: 40px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.05); transition: 0.3s; height: 100%; }
.feature-card:hover { border-color: var(--tristar-blue); transform: translateY(-5px); }
.icon-circle { width: 60px; height: 60px; background: var(--gradient-primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: white; margin-bottom: 20px; }
.login-page-wrapper { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at center, #1a1625 0%, #0f0c15 100%); position: relative; overflow: hidden; }
footer { background: #050407; padding: 40px 0; margin-top: 50px; text-align: center; border-top: 1px solid rgba(255,255,255,0.05); }

/* Responsive */
@media (max-width: 768px) { 
    .hero-grid { grid-template-columns: 1fr; } 
    .nav-wrapper { flex-direction: column; gap: 15px; } 
    .network-slider-track { gap: 40px; } 
    .site-title-text { font-size: 1rem; } 
}

/* =========================================
   METAL EXPERT LOGIN PAGE STYLES
   ========================================= */

/* 1. Wrapper Utama (Agar form ada di tengah) */
.me-login-container {
    max-width: 400px;
    margin: 60px auto;
    padding: 30px;
    background: #15151a; /* Background kotak form agak terang dikit dari body */
    border: 1px solid #333;
    border-radius: 12px;
}

/* 2. Label (Judul Kolom) */
#metal-login-form label {
    color: #cccccc;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

/* 3. Input Fields (Kolom Isian) */
#metal-login-form input[type="text"],
#metal-login-form input[type="password"] {
    background-color: #0b0b0f !important; /* Hitam Pekat */
    color: #ffffff !important;
    border: 1px solid #444 !important;
    border-radius: 8px;
    padding: 12px 15px;
    width: 100%;
    margin-bottom: 20px;
    font-size: 16px;
    outline: none;
    box-shadow: none;
}

/* Efek saat diklik */
#metal-login-form input[type="text"]:focus,
#metal-login-form input[type="password"]:focus {
    border-color: #d63638 !important; /* Merah Metal Expert */
    box-shadow: 0 0 8px rgba(214, 54, 56, 0.3);
}

/* 4. Tombol Submit */
#metal-login-form input[type="submit"] {
    background: linear-gradient(90deg, #d63638 0%, #a82426 100%) !important;
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 50px;
    padding: 14px;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
}

#metal-login-form input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(214, 54, 56, 0.4);
}

/* 5. Bagian "Remember Me" */
.login-remember {
    margin-bottom: 20px;
}
.login-remember label {
    display: inline-block !important;
    font-weight: normal !important;
    cursor: pointer;
}

/* 6. Pesan Error */
.me-alert-error {
    background: rgba(220, 50, 50, 0.15);
    color: #ff8080;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #ff4d4d;
    margin-bottom: 20px;
    text-align: center;
    font-size: 14px;
}