/* Import Google Font Quicksand */
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;600;700;900&display=swap');

/* Import Custom Font Swansea */
@font-face {
    font-family: 'Swansea';
    src: url('../fonts/swansea.ttf') format('truetype'); 
    font-weight: normal;
    font-style: normal;
}

/* Font default untuk seluruh halaman diubah ke Quicksand */
html {
    max-width: 100%;
    overflow-x: hidden; /* Mencegah scroll ke samping (horizontal) */
}

body {
    font-family: 'Quicksand', sans-serif;
    color: #212529; 
    background-color: #ffffff;
    max-width: 100%;
    overflow-x: hidden; /* Mencegah scroll ke samping (horizontal) */
}

/* =========================================
   HERO SECTION (Menggunakan Swansea)
========================================= */
.hero-section {
    font-family: 'Swansea', sans-serif; /* Isolasi Swansea untuk area Hero */
    background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.85)), url('../img/banner.webp') no-repeat center center/cover;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    color: #ffffff; 
}

/* Navbar Styling */
.navbar { padding-top: 20px; }
.navbar-brand img { height: 60px; }
.nav-link {
    color: #f8f9fa !important;
    font-weight: 600;
    margin: 0 10px;
    font-size: 0.95rem;
}
.nav-link:hover {
    color: #ffcc00 !important;
}
/* =========================================
   NAVBAR SCROLL EFFECT
========================================= */
.navbar.scrolled {
    background-color: #212529 !important; /* Berubah menjadi gelap solid */
    padding-top: 10px !important; /* Mengecil sedikit agar tidak makan layar */
    padding-bottom: 10px !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3); /* Memberikan bayangan elegan */
}
/* Tombol Kontak (Kuning) */
.btn-contact {
    background-color: #ffcc00;
    color: #000000 !important;
    border: none;
    border-radius: 30px;
    padding: 8px 25px;
    font-weight: 700;
}
.btn-contact:hover {
    background-color: #e6b800;
    color: #000000 !important;
}

/* Typography & Content */
.hero-title {
    font-size: 1.8rem; 
    font-weight: 700;
    line-height: 1.5;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 2.5rem; 
    }
}
.hero-subtitle {
    font-weight: 700;
    letter-spacing: 2px;
    color: #ffcc00; 
}

/* Tombol Pelajari Lebih (Kuning) */
.btn-learn-more {
    background-color: #ffcc00;
    color: #000000;
    border-radius: 30px;
    padding: 12px 35px;
    font-weight: 700;
    transition: all 0.3s;
    border: none;
}
.btn-learn-more:hover {
    background-color: #e6b800;
    color: #000000;
}

/* Floating Social Media Bar */
.social-sidebar {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background-color: #ffcc00; 
    padding: 15px 10px;
    border-radius: 10px 0 0 10px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.social-sidebar a {
    color: #000000; 
    font-size: 1.2rem;
    text-align: center;
    transition: transform 0.3s;
}
.social-sidebar a:hover {
    transform: scale(1.1);
}

/* Stats Section */
.stats-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #ffcc00; 
}
.stats-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0;
}

/* =========================================
   SECTION KONTEN BAWAH (Otomatis Quicksand)
========================================= */
.content-section {
    background-color: #ffffff;
    color: #212529;
    padding: 80px 0;
}

/* Tombol Hitam Custom */
.btn-dark-custom {
    background-color: #212529;
    color: #ffcc00; 
    border-radius: 30px;
    padding: 12px 30px;
    font-weight: 700;
    border: none;
    transition: background-color 0.3s;
}
.btn-dark-custom:hover {
    background-color: #000000;
    color: #ffffff;
}

/* Garis Bawah Judul */
.section-underline {
    width: 60px;
    height: 5px;
    background-color: #ffcc00; 
    margin-top: 15px;
    margin-bottom: 30px;
}

/* Lingkaran Fitur / Icon */
.feature-circle {
    width: 120px;
    height: 120px;
    background-color: #212529; 
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffcc00; 
    font-size: 3.5rem;
    margin: 0 auto 25px auto;
}
.icon-247-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.icon-247-text {
    /* Font family dihapus agar mengikuti Quicksand dari body */
    font-weight: 900;
    font-size: 2.2rem;
    position: absolute;
    color: #ffcc00 !important; 
}
.icon-247-arrow {
    font-size: 4rem;
    color: #6c757d !important; /* Diubah dari #ffffff menjadi abu-abu */
}

.text-muted-custom {
    color: #6c757d;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* =========================================
   SERVICE BANNERS
========================================= */

.service-banner {
    width: 100%;
    min-height: 700px; 
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.service-banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover; 
    background-position: center; 
    z-index: 1;
}

.service-banner-content {
    position: relative;
    z-index: 3; 
}

/* Overlay gradien */
.service-banner-overlay-right {
    background: linear-gradient(to right, rgba(26, 26, 26, 0.9) 0%, rgba(26, 26, 26, 0.6) 50%, rgba(0,0,0,0) 100%);
    position: absolute;
    width: 100%; height: 100%; z-index: 2;
}
.service-banner-overlay-left {
    background: linear-gradient(to left, rgba(26, 26, 26, 0.9) 0%, rgba(26, 26, 26, 0.6) 50%, rgba(0,0,0,0) 100%);
    position: absolute;
    width: 100%; height: 100%; z-index: 2;
}
.service-banner-overlay-full {
    background: rgba(26, 26, 26, 0.85);
    position: absolute;
    width: 100%; height: 100%; z-index: 2;
}

/* Tombol Kuning Custom */
.btn-yellow-primary {
    background-color: #ffcc00;
    color: #000000;
    border-radius: 30px;
    padding: 8px 25px;
    font-weight: 700;
    border: none;
    transition: background-color 0.3s;
}
.btn-yellow-primary:hover {
    background-color: #e6b800;
    color: #000000;
}

/* Card Fasilitas & Portfolio */
.info-card {
    border: 1px solid #e9ecef;
    border-radius: 20px;
    padding: 30px;
    height: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}
.gallery-thumbnail {
    border-radius: 8px;
    object-fit: cover;
    height: 120px;
    width: 100%;
    margin-bottom: 10px;
}
.icon-large-black {
    font-size: 3rem;
    color: #ffcc00; 
}

/* List Fitur (Kiri) & Proyek (Kanan) */
.feature-list-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
}
.feature-list-icon {
    font-size: 2.5rem;
    color: #ffcc00; 
    margin-right: 20px;
    min-width: 50px;
    text-align: center;
}
.project-item {
    border-bottom: 2px solid #212529;
    padding-bottom: 20px;
    margin-bottom: 30px;
}
.project-item:first-child {
    border-top: 2px solid #212529;
    padding-top: 30px;
}
.project-title {
    font-weight: 700;
    color: #212529;
    margin-bottom: 15px;
}

/* Klien Kami */
.client-logo {
    max-height: 80px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
    opacity: 0.7;
}
.client-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Update Card Pilihan Rental */
.card-rental {
    cursor:pointer;
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 5px; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden; 
    padding: 0; 
}
.card-rental:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
    border-color: #ffcc00;
}
.card-rental img {
    width: 100%;
    object-fit: cover; 
    margin-bottom: 0;
}
.card-rental-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #212529;
    text-align: center;
    padding: 20px 15px; 
    margin: 0;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================================
   FOOTER SECTION (Menggunakan Swansea)
========================================= */
.footer-dark {
    font-family: 'Swansea', sans-serif; /* Isolasi Swansea untuk area Footer */
    background-color: #1a1a1a; 
    color: #e9ecef;
    padding: 60px 0 20px 0;
    font-size: 0.9rem;
}
.footer-dark h5 {
    color: #ffcc00; 
    font-weight: 700;
    margin-bottom: 25px;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 12px;
}
.footer-links a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s;
}
.footer-links a:hover {
    color: #ffcc00;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 40px;
    padding-top: 20px;
    font-size: 0.85rem;
    color: #adb5bd;
}
/* Styling Kartu Maintenance di dalam Banner */
.card-maintenance {
    background: rgba(255, 255, 255, 0.1); /* Transparan */
    backdrop-filter: blur(10px); /* Efek blur kaca */
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 40px 20px;
    border-radius: 20px;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.card-maintenance:hover {
    background: rgba(255, 204, 0, 0.2); /* Berubah kuning transparan saat hover */
    border-color: #ffcc00;
    transform: translateY(-10px);
}

.card-maintenance i {
    font-size: 2.5rem;
    color: #ffcc00; /* Warna Kuning Palet */
}

.card-maintenance h5 {
    font-weight: 700;
    margin-bottom: 0;
    font-size: 1.1rem;
    color: #ffffff;
}

/* Pastikan konten banner terpusat secara vertikal */
.service-banner {
    display: flex;
    align-items: center; /* Vertically center */
    justify-content: center;
}
/* 1. Definisi Animasi Naik-Turun */
@keyframes gerakNaikTurun {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px); /* Jarak pergerakan ke atas (bisa disesuaikan) */
    }
    100% {
        transform: translateY(0);
    }
}

/* 2. Class untuk menerapkan animasi ke elemen HTML */
.animasi-mengambang {
    animation: gerakNaikTurun 3s ease-in-out infinite;
}
/* Efek Awal (Sembunyi) */
.magical-reveal {
    opacity: 0;
    visibility: hidden;
}

/* Efek Muncul saat Terlihat di Layar */
.magical-reveal.is-visible {
    visibility: visible;
    /* cubic-bezier memberikan efek pantulan (bouncy) yang magical */
    animation: magicalPopUp 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes magicalPopUp {
    0% {
        opacity: 0;
        transform: translateY(60px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
/* =========================================
   MOBILE RESPONSIVE TWEAKS (Max Width 768px)
========================================= */
@media (max-width: 767.98px) {
    /* Perbesar padding agar konten tidak mepet tepi layar */
    .banner-mobile-padding {
        padding-left: 25px !important;
        padding-right: 25px !important;
    }

    /* Kecilkan ukuran font judul */
    .title-mobile {
        font-size: 1.6rem !important;
    }

    /* Kecilkan ukuran deskripsi */
    .desc-mobile {
        font-size: 0.95rem !important;
        margin-bottom: 30px !important;
    }

    /* Sesuaikan card agar muat 3 kolom di layar sempit */
    .card-maintenance {
        padding: 15px 10px; /* Kurangi padding dalam card */
        border-radius: 12px;
    }

    /* Kecilkan ikon di dalam card */
    .card-maintenance i {
        font-size: 1.5rem;
    }

    /* Kecilkan teks di dalam card agar tidak berantakan/tumpang tindih */
    .card-maintenance h5 {
        font-size: 0.7rem; /* Font harus sangat kecil agar muat */
        line-height: 1.3;
    }
}
/* =========================================
   CARD FEATURE & ANIMASI MENCOLOK
========================================= */

/* Gaya untuk membungkus konten menjadi Card yang elegan */
.card-feature {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    padding: 40px 30px;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); /* Bayangan lembut */
    transition: all 0.3s ease;
}

/* Efek saat card disentuh/hover */
.card-feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: #ffcc00;
}

/* Keyframes untuk efek berdenyut (Pulse) */
@keyframes pulse-circle {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 204, 0, 0.7); /* Warna kuning DU-WARE */
    }
    70% {
        box-shadow: 0 0 0 20px rgba(255, 204, 0, 0); /* Menyebar dan menghilang */
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 204, 0, 0);
    }
}

/* Class untuk memicu animasi */
.animasi-pulse {
    animation: pulse-circle 2s infinite; /* Berulang terus menerus setiap 2 detik */
}
/* Efek Awal (Sembunyi) untuk Gambar */
.slide-reveal {
    opacity: 0;
    transform: translateX(100px); /* Geser ke kanan sedikit */
}

/* Efek Muncul saat Terlihat di Layar */
.slide-reveal.is-visible {
    animation: slideInRight 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}/* =========================================
   MOBILE MENU DROPDOWN FIX
========================================= */
/* Aktif hanya di layar tablet dan HP (di bawah 992px) */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: #212529; /* Warna gelap solid */
        padding: 20px; /* Jarak ruang di dalam kotak menu */
        border-radius: 12px; /* Membuat sudut kotak membulat */
        margin-top: 15px; /* Jarak antara logo/tombol burger dengan kotak menu */
        box-shadow: 0 15px 30px rgba(0,0,0,0.5); /* Bayangan agar terlihat melayang (elegan) */
    }
    
    /* Perbaikan jarak tombol kontak di menu mobile agar tidak terlalu mepet */
    .navbar-nav .nav-item.ms-lg-3 {
        margin-top: 20px !important; 
        text-align: center;
    }
}
/* =========================================
   SUB-PAGE BANNER (Tentang Kami, Katalog, Galeri)
========================================= */
.page-banner {
    font-family: 'Swansea', sans-serif;
    /* Pastikan gambar bg-konstruksi.jpg ada di dalam folder images */
    background: linear-gradient(rgba(33, 37, 41, 0.85), rgba(33, 37, 41, 0.95)), url('../img/banner.webp') no-repeat center center/cover;
    padding: 180px 0 80px; /* Padding atas 180px untuk mendorong teks ke bawah menu */
    color: #ffffff;
    text-align: center;
    position: relative;
    width: 100%;
}
/* =========================================
   BACK TO TOP BUTTON
========================================= */
.btn-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #ffcc00; /* Kuning DU-WARE */
    color: #212529 !important; /* Icon Hitam */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    opacity: 0; /* Awalnya tersembunyi */
    visibility: hidden; /* Awalnya tidak bisa diklik */
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-back-to-top:hover {
    background-color: #212529; /* Berubah gelap saat di-hover */
    color: #ffcc00 !important; /* Icon jadi kuning */
    transform: translateY(-5px); /* Efek terangkat sedikit */
}

/* Class ini akan ditambahkan oleh Javascript saat di-scroll */
.btn-back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* Penyesuaian untuk layar HP agar tidak terlalu besar dan menutupi konten */
@media (max-width: 767.98px) {
    .btn-back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(33, 37, 41, 0.7); /* Background gelap transparan */
    opacity: 0;
    transition: opacity 0.3s ease;
}