/* --- General & Root Variables --- */
:root {
    --primary-color: #FF6B00; /* Oranye khas transportasi */
    --secondary-color: #0D1B2A; /* Biru gelap untuk teks dan background */
    --light-bg-color: #F8F9FA;
    --text-color: #333;
    --white-color: #FFFFFF;
    --font-family: 'Poppins', sans-serif;
    --container-width: 1140px;
    --border-radius: 8px;
}

/* --- Reset & Basic Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white-color);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--secondary-color);
    font-weight: 700;
}

.bg-light {
    background-color: var(--light-bg-color);
}

.bg-dark {
    background-color: var(--secondary-color);
    color: var(--white-color);
}

/* --- Scroll Animation --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* --- Navbar --- */
.navbar {
    background-color: var(--white-color);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: top 0.3s;
}

.nav-toggle {
    display: none; /* Sembunyikan di desktop */
    background: transparent;
    border: 0;
    color: var(--secondary-color);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001; /* Pastikan di atas elemen lain */
}

.nav-toggle.is-active {
    color: var(--primary-color);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--secondary-color);
}

.logo span {
    color: var(--primary-color);
}

.nav-menu ul {
    list-style: none;
    display: flex;
    align-items: center;
}

.nav-menu ul li {
    margin-left: 30px;
}

.navbar nav ul li a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-menu ul li a:hover {
    color: var(--primary-color);
}

.cta-button-nav {
    background-color: #25D366; /* Warna hijau WhatsApp */
    color: var(--white-color) !important;
    padding: 8px 20px;
    border-radius: var(--border-radius);
    transition: background-color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px; /* Jarak antara ikon dan teks */
}

.cta-button-nav:hover {
    background-color: #1EBE57; /* Warna hijau lebih gelap saat hover */
    color: var(--white-color) !important;
}

/* --- Hero Section --- */
#hero {
    height: 100vh;
    position: relative; /* Diperlukan untuk pseudo-element */
    overflow: hidden; /* Menyembunyikan bagian gambar yang keluar saat zoom */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white-color);
    background: linear-gradient(rgba(13, 27, 42, 0.7), rgba(13, 27, 42, 0.7)); /* Hanya gradien */
}


.hero-content {
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease-out 0.5s;
    animation-fill-mode: backwards;
}

.hero-content h1 span {
    color: var(--primary-color);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease-out 0.8s;
    animation-fill-mode: backwards;
}

.cta-button {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: transform 0.3s ease, background-color 0.3s ease;
    display: inline-block;
    animation: fadeInUp 0.8s ease-out 1.1s;
    animation-fill-mode: backwards;
}

.cta-button:hover {
    background-color: #e65c00;
    transform: translateY(-3px);
}

/* --- About Us Section --- */
#about {
    background-color: var(--light-bg-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h3 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    margin-top: 30px;
}

.about-text p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-color);
    
}

.btn-more-about {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--white-color);
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: background-color 0.3s ease;
}
.btn-more-about:hover {
    background-color: var(--primary-color);
}
.about-button-centerer {
    display: flex;
    justify-content: center; 
    margin-top: 5px; 

}
.about-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.about-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    aspect-ratio: 4 / 3;
}

.about-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.about-gallery-item:hover img {
    transform: scale(1.1);
}

/* --- Our Team Section --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    justify-items: center;
}

.team-member {
    text-align: center;
    background-color: var(--white-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid var(--light-bg-color);
}

.team-member h3 {
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.team-member p {
    color: var(--primary-color);
    font-weight: 600;
}

/* --- Animasi Fade In Up --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Animasi Ken Burns --- */
@keyframes kenburns-zoom-out {
    0% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white-color);
    padding: 40px;
    text-align: center;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

/* --- Specialization Section --- */
.specialization-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.spec-item {
    position: relative;
    padding: 20px;
}

.spec-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    margin-bottom: 15px;
    border-radius: 4px;
    background-color: #eee; /* Warna placeholder saat gambar loading */
}

.spec-item h4 {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.spec-count {
    display: inline-block;
    margin-bottom: 15px;
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* --- Clients Section --- */
.clients-logo-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
    opacity: 0.7;
}

.clients-logo-grid img {
    height: 50px;
    width: auto;
    max-width: 150px;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.clients-logo-grid img:hover {
    filter: grayscale(0%);
}

/* --- News Section --- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.news-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.news-card-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card-content {
    padding: 20px;
}

.news-card-date {
    font-size: 0.8rem;
    color: #777;
    margin-bottom: 10px;
    display: block;
}

.news-card-content h3 {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 15px;
    display: inline-block;
}

/* --- Footer / Contact --- */
footer {
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding-bottom: 50px;
}

.footer-col .footer-logo {
    font-size: 2rem;
    margin-bottom: 15px;
    display: inline-block;
}

.footer-col .footer-about {
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.7;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--white-color);
}

.footer-col p {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    opacity: 0.8;
}

.footer-col p i {
    margin-top: 4px; /* Memberi sedikit margin atas pada ikon */
}

.location-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--white-color);
    opacity: 0.8;
    transition: opacity 0.3s ease, color 0.3s ease;
    width: 100%; /* Memastikan link mengisi paragraf */
}

.location-link:hover {
    opacity: 1;
    color: var(--primary-color);
}

.footer-images {
    display: flex;
    gap: 15px;
    align-items: center;
}

.footer-images img {
    width: 25%; /* Setiap gambar mengambil 25% dari container */
    max-width: 150px; /* Batas ukuran maksimum gambar */
    object-fit: contain;
    height: auto; /* Biarkan tinggi menyesuaikan secara otomatis */
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--white-color);
    background-color: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.cta-button-whatsapp-fixed {
    display: none; /* Sembunyikan secara default di desktop */
    position: fixed;
    bottom: 30px;
    left: 30px; /* Posisikan di kiri bawah */
    z-index: 999;
    background-color: #25D366;
    color: var(--white-color);
    width: 55px; /* Ukuran tombol */
    height: 55px;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem; /* Ukuran ikon WhatsApp */
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.cta-button-whatsapp-fixed:hover {
    background-color: #1EBE57;
    transform: scale(1.1);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* --- Back to Top Button --- */
#backToTopBtn {
    display: none; /* Sembunyikan secara default */
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    opacity: 0;
    transform: translateY(20px);
}

#backToTopBtn.show {
    display: flex; /* Tampilkan saat kelas 'show' ditambahkan */
    align-items: center;
    justify-content: center;
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .nav-toggle {
        display: block; /* Tampilkan tombol hamburger di mobile */
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%; /* Mulai dari luar layar */
        width: 70%;
        height: 100vh;
        background-color: var(--secondary-color);
        padding-top: 80px;
        transition: right 0.4s ease-in-out;
        z-index: 1000;
    }

    .nav-menu.is-active {
        right: 0; /* Geser masuk ke layar */
    }

    .nav-menu ul {
        flex-direction: column;
        align-items: center;
    }

    .nav-menu ul li {
        margin: 20px 0;
        width: 100%;
        text-align: center;
    }

    .navbar .nav-menu ul li a {
        color: var(--white-color);
        font-size: 1.2rem;
    }
    
    #hero {
        height: 70vh;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .section-padding {
        padding: 40px 0;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-text h3 {
        font-size: 1.5rem;
    }
    .about-gallery {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .footer-grid {
        grid-template-columns: 1fr; /* Kembali ke 1 kolom di mobile */
    }

    /* Sembunyikan section tertentu di mobile */
    #about,
    #team,
    #clients {
        display: none;
    }

    /* Ubah grid berita menjadi 1 kolom di mobile */
    .news-grid {
        grid-template-columns: 1fr;
    }

    /* Tampilkan tombol WhatsApp fixed di mobile */
    .cta-button-whatsapp-fixed {
        display: flex;
    }
}
