/* ==========================================================================
   css/style.css - Sentra Trada Indostation (Modern Corporate Style)
   ========================================================================== */

/* 1. RESET & GLOBAL STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #333333;
    background-color: #f8f9fa;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.text-center { 
    text-align: center; 
}

.text-highlight { 
    color: #00ff66; /* Warna Hijau Elektrik EV */
}

/* 2. HEADER & NAVIGATION */
header {
    background-color: #0b1d33; /* Biru Tua Korporat Tambang */
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid #00ff66;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: #ffffff;
    font-size: 1.3rem;
    letter-spacing: 0.5px;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 15px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

nav a:hover { 
    color: #00ff66; 
}

.btn-wa {
    background-color: #25D366; /* Hijau WhatsApp */
    color: #ffffff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.btn-wa:hover {
    background-color: #1ebd58;
}

/* 3. HERO SECTION (MODERN VIDEO BACKGROUND) */
.hero {
    position: relative;
    height: 80vh; /* Mengatur tinggi hero section sebesar 80% dari tinggi layar browser */
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #ffffff;
    text-align: center;
}

/* Mengatur video agar full screen di dalam section hero */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover; /* Memastikan video tidak gepeng atau ketarik */
    z-index: 1;
}

/* Lapisan Gelap di atas video agar teks putih terlihat tajam */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(11, 29, 51, 0.75), rgba(11, 29, 51, 0.85));
    z-index: 2;
}

/* Memastikan konten teks berada di lapisan paling atas */
.hero-content {
    position: relative;
    z-index: 3;
    width: 90%;
}

.hero-content h1 {
    font-size: 3.2rem;
    line-height: 1.2;
    margin-bottom: 25px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5); /* Efek bayangan halus pada teks */
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #e0e0e0;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    margin: 8px;
    transition: all 0.3s ease;
}

.btn-primary { 
    background-color: #00ff66; 
    color: #0b1d33; 
}

.btn-primary:hover {
    background-color: #00cc52;
    transform: translateY(-2px);
}

.btn-secondary { 
    border: 2px solid #ffffff; 
    color: #ffffff; 
    backdrop-filter: blur(5px); /* Efek kaca transparan modern */
    background: rgba(255,255,255,0.1);
}

.btn-secondary:hover {
    background-color: #ffffff;
    color: #0b1d33;
    transform: translateY(-2px);
}

/* Penyesuaian Responsif di Handphone */
@media (max-width: 768px) {
    .hero { height: 60vh; }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-content p { font-size: 1rem; }
}

/* 4. FEATURES SECTION (KEUNGGULAN) */
.features { 
    padding: 90px 0; 
    background-color: #ffffff; 
}

.section-title { 
    text-align: center; 
    margin-bottom: 60px; 
    font-size: 2.2rem; 
    color: #0b1d33;
    font-weight: 700;
}

.grid-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.card {
    background-color: #f8f9fa;
    padding: 35px 30px;
    border-radius: 8px;
    border-top: 4px solid #0b1d33;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.card:hover { 
    transform: translateY(-5px); 
    border-top-color: #00ff66; 
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.card h3 { 
    margin-bottom: 15px; 
    color: #0b1d33;
    font-size: 1.25rem;
}

.card p {
    color: #555555;
    font-size: 0.95rem;
}

/* 5. PRODUCT SECTION */
.product { 
    padding: 90px 0; 
    background-color: #f1f3f5; 
}

.grid-product {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 60px;
}

.product-image, .product-detail { 
    flex: 1; 
    min-width: 320px; 
}

.product-image img { 
    width: 100%; 
    height: auto;
    border-radius: 8px; 
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08); 
}

.badge { 
    background-color: #0b1d33; 
    color: #00ff66; 
    padding: 6px 14px; 
    border-radius: 20px; 
    font-size: 0.8rem; 
    font-weight: 700; 
    text-transform: uppercase;
    display: inline-block;
}

.product-detail h2 { 
    margin: 20px 0; 
    font-size: 2.4rem; 
    color: #0b1d33;
    line-height: 1.3;
}

.product-detail p {
    color: #444444;
    font-size: 1rem;
    margin-bottom: 20px;
}

.product-detail ul { 
    list-style: none; 
    margin: 25px 0; 
}

.product-detail ul li { 
    margin-bottom: 12px; 
    font-size: 0.95rem;
    position: relative;
    padding-left: 25px;
}

.product-detail ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #25D366;
    font-weight: bold;
}

.product-buttons { 
    margin-top: 35px; 
}

/* 6. CONTACT FORM SECTION */
.contact { 
    padding: 90px 0; 
    background-color: #ffffff; 
}

.contact-box { 
    max-width: 650px; 
    margin: 0 auto; 
    background: #f8f9fa; 
    padding: 45px; 
    border-radius: 8px; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); 
}

.contact-box h2 { 
    text-align: center; 
    margin-bottom: 12px; 
    color: #0b1d33; 
    font-size: 2rem;
}

.contact-box p { 
    text-align: center; 
    margin-bottom: 35px; 
    color: #666666; 
    font-size: 0.95rem; 
}

.form-group { 
    margin-bottom: 22px; 
}

.form-group label { 
    display: block; 
    margin-bottom: 8px; 
    font-weight: 600; 
    font-size: 0.9rem; 
    color: #0b1d33;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%; 
    padding: 14px; 
    border: 1px solid #cccccc; 
    border-radius: 5px; 
    font-family: inherit; 
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: #0b1d33;
}

.btn-submit {
    width: 100%; 
    background-color: #0b1d33; 
    color: #00ff66; 
    padding: 16px; 
    border: none; 
    border-radius: 5px; 
    font-weight: 700; 
    font-size: 1.05rem; 
    cursor: pointer; 
    transition: background-color 0.3s;
    box-shadow: 0 4px 10px rgba(11, 29, 51, 0.2);
}

.btn-submit:hover { 
    background-color: #12335c; 
}

/* 7. FOOTER */
footer { 
    background-color: #0b1d33; 
    color: #ffffff; 
    padding: 50px 0; 
    font-size: 0.95rem; 
    border-top: 4px solid #00ff66; 
}

.copyright { 
    color: #888888; 
    margin-top: 15px; 
    font-size: 0.85rem;
}

/* 8. RESPONSIVE DESIGN (MEDIA QUERIES) */
@media (max-width: 992px) {
    .hero-content h1 { font-size: 2.5rem; }
    .grid-product { gap: 40px; }
}

@media (max-width: 768px) {
    .navbar { 
        flex-direction: column; 
        gap: 20px; 
        text-align: center; 
    }
    nav {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    nav a {
        margin: 0;
    }
    .hero { padding: 80px 0; }
    .hero-content h1 { font-size: 2rem; }
    .grid-product { flex-direction: column; }
    .product-detail h2 { font-size: 1.8rem; }
    .contact-box { padding: 30px 20px; }
}

/* ==========================================================================
   CAROUSEL EXTENSION STYLES
   ========================================================================== */
.carousel-container {
    max-width: 100%;
    position: relative;
    margin: auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.carousel-slide {
    display: none; /* Disembunyikan secara default, dikontrol oleh JS */
}

.carousel-slide img {
    width: 100%;
    height: 400px; /* Memastikan semua tinggi gambar seragam */
    object-fit: cover; /* Memotong gambar secara proporsional agar tidak gepeng */
    display: block;
}

/* Keterangan Teks di Atas Gambar */
.carousel-caption {
    position: absolute;
    bottom: 0;
    background: rgba(11, 29, 51, 0.75); /* Transparansi biru tua */
    color: #00ff66; /* Teks hijau elektrik */
    width: 100%;
    padding: 15px;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Animasi Transisi Halus (Fade) */
.fade {
    animation-name: fadeAnim;
    animation-duration: 1.5s;
}

@keyframes fadeAnim {
    from { opacity: .4 } 
    to { opacity: 1 }
}

/* Menyesuaikan ukuran tinggi gambar carousel di HP */
@media (max-width: 768px) {
    .carousel-slide img {
        height: 250px;
    }
}
/* ==========================================================================
   CAROUSEL EXTENSION STYLES
   ========================================================================== */
.carousel-container {
    max-width: 100%;
    position: relative;
    margin: auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.carousel-slide {
    display: none; /* Disembunyikan secara default, dikontrol oleh JS */
}

.carousel-slide img {
    width: 100%;
    height: 400px; /* Memastikan semua tinggi gambar seragam */
    object-fit: cover; /* Memotong gambar secara proporsional agar tidak gepeng */
    display: block;
}

/* Keterangan Teks di Atas Gambar */
.carousel-caption {
    position: absolute;
    bottom: 0;
    background: rgba(11, 29, 51, 0.75); /* Transparansi biru tua */
    color: #00ff66; /* Teks hijau elektrik */
    width: 100%;
    padding: 15px;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Animasi Transisi Halus (Fade) */
.fade {
    animation-name: fadeAnim;
    animation-duration: 1.5s;
}

@keyframes fadeAnim {
    from { opacity: .4 } 
    to { opacity: 1 }
}

/* Menyesuaikan ukuran tinggi gambar carousel di HP */
@media (max-width: 768px) {
    .carousel-slide img {
        height: 250px;
    }
}
