/* RESET & UTILITIES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

:root {
    --primary-color: #dc2626; 
    --secondary-color: #0f172a;
    --accent-color: #10b981; 
    --light-bg: #f8fafc;/
    --text-color: #334155; 
}
}

body {
    background-color: #ffffff;
    color: var(--text-color);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 4%; /* Mengurangi jarak kanan-kiri dari 8% menjadi 4% agar ruang menu lebih luas */
    background: rgba(255, 255, 255, 0.95);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.logo-wrapper-horizontal {
    display: flex;
    align-items: center;    /* Membuat logo dan teks sejajar lurus di tengah secara horizontal */
    gap: 12px;              /* Jarak antara logo memanjang dengan teks di sebelahnya */
}

.brand-logo-horizontal {
    height: 40px;           /* Dikunci di 45px agar menu atas tetap ramping dan minimalis */
    width: auto;            /* Lebar otomatis menyesuaikan agar logo tidak terlihat gepeng atau ditarik */
    object-fit: contain;
}

/* ROMBAK TOTAL NAVBAR */
.navbar {
    display: grid;
    grid-template-columns: auto 1fr auto; /* Membagi pasti menjadi 3 kolom: Logo - Menu - Tombol */
    align-items: center;
    padding: 15px 5%;
    background: rgba(255, 255, 255, 0.98);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Kolom Kiri: Logo Wrapper */
.logo-wrapper-horizontal {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo-horizontal {
    height: 38px; /* Sedikit dikecilkan agar navbar ramping & elegan */
    width: auto;
    object-fit: contain;
}

/* Kolom Tengah: Menu Navigasi */
.nav-links {
    display: flex;
    justify-content: center; /* Memaksa menu Home, Armada, dll tepat di TENGAH website */
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-links li {
    margin: 0 15px; /* Jarak aman antar kata menu */
    white-space: nowrap; /* Mencegah teks turun ke bawah jika layar menyusut */
}

.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: #475569;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Kolom Kanan: Tombol Hubungi Kami */
#kontak.btn-nav, .btn-nav {
    display: inline-block;
    background: var(--secondary-color);
    color: #fff !important;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap; /* Mengunci agar tulisan 'Hubungi Kami' tidak terpotong atau bertumpuk */
    transition: 0.3s;
}

.btn-nav:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* HERO SECTION */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 8% 100px 8%;
    background: linear-gradient(135deg, #ffffff 50%, #eff6ff 100%);
    min-height: 85vh;
}

.hero-content {
    max-width: 50%;
}

.hero-content h1 {
    font-size: 48px;
    color: var(--secondary-color);
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 16px;
    margin-bottom: 30px;
    color: #64748b;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
    transition: 0.3s;
}

.btn-secondary {
    background: var(--accent-color);
    color: #fff;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
    transition: 0.3s;
}

.btn-primary:hover, .btn-secondary:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

.hero-image img {
    width: 100%;
    max-width: 550px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* FEATURES SECTION */
.features {
    display: flex;
    justify-content: space-around;
    padding: 50px 8%;
    background: var(--secondary-color);
    color: #fff;
    margin-top: -50px;
    border-radius: 20px;
    width: 84%;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 10;
}

.feature-card {
    text-align: center;
    padding: 20px;
    max-width: 280px;
}

.feature-card i {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-card h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.feature-card p {
    font-size: 14px;
    color: #94a3b8;
}

/* SECTION HEADERS */
.section-title {
    text-align: center;
    font-size: 32px;
    color: var(--secondary-color);
    margin-top: 80px;
}

.section-title span {
    color: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    color: #64748b;
    margin-bottom: 40px;
}

/* FLEET SECTION (ARMADA) */
.fleet {
    padding: 40px 8%;
    background: var(--light-bg);
}

.fleet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.fleet-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.02);
    transition: 0.3s;
}

.fleet-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(0,0,0,0.08);
}

.fleet-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.fleet-info {
    padding: 25px;
}

.fleet-info h3 {
    font-size: 20px;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.specs {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: #64748b;
    margin-bottom: 20px;
}

.price {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.price span {
    font-size: 14px;
    color: #64748b;
    font-weight: 400;
}

.btn-book {
    display: block;
    text-align: center;
    background: var(--secondary-color);
    color: #fff;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.3s;
}

.btn-book:hover {
    background: var(--primary-color);
}

/* SERVICES SECTION */
.services {
    padding: 80px 8%;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-box {
    padding: 40px 30px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-align: center;
    transition: 0.3s;
}

.service-box:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.service-box i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-box:hover i {
    color: #fff;
}

.service-box h3 {
    margin-bottom: 15px;
}

/* FOOTER */
footer {
    background: var(--secondary-color);
    color: #fff;
    padding: 60px 8% 20px 8%;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about {
    max-width: 400px;
}

.footer-about p {
    color: #94a3b8;
    margin-top: 15px;
}

.footer-contact h3 {
    margin-bottom: 15px;
}

.footer-contact p {
    color: #94a3b8;
    margin-bottom: 10px;
}

.footer-contact i {
    color: var(--primary-color);
    margin-right: 10px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #334155;
    padding-top: 20px;
    font-size: 14px;
    color: #64748b;
}

/* FLOATING WA BUTTON */
.floating-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--accent-color);
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: 0.3s;
}

.floating-wa:hover {
    transform: scale(1.1);
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .navbar { padding: 20px 5%; }
    .nav-links { display: none; } /* Menyembunyikan menu di mobile untuk simplisitas */
    .hero { flex-direction: column; text-align: center; padding: 40px 5%; }
    .hero-content { max-width: 100%; margin-bottom: 40px; }
    .hero-buttons { justify-content: center; }
    .features { flex-direction: column; align-items: center; width: 90%; }
}
/* Efek tambahan agar tombol merah terlihat lebih mewah */
.btn-primary {
    background: var(--primary-color);
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.3) !important;
}

.btn-book:hover {
    background: var(--primary-color) !important;
}

.service-box:hover {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}
/* ANIMASI SLIDER HERO SECTION */
.slider-container {
    position: relative;
    width: 100%;
    max-width: 550px;
    height: 380px; /* Menyesuaikan tinggi rata-rata foto */
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.slider-container .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: fadeSlider 16s infinite ease-in-out;
}

/* Pengaturan jeda waktu tampil masing-masing foto (Total siklus 16 detik) */
.slider-container .slide:nth-child(1) { animation-delay: 0s; }
.slider-container .slide:nth-child(2) { animation-delay: 4s; }
.slider-container .slide:nth-child(3) { animation-delay: 8s; }
.slider-container .slide:nth-child(4) { animation-delay: 12s; }

/* Rumus transisi memudar (Fade In - Fade Out) */
@keyframes fadeSlider {
    0% { opacity: 0; }
    5% { opacity: 1; }
    25% { opacity: 1; }
    30% { opacity: 0; }
    100% { opacity: 0; }
}