/* ==========================================================================
Project: PT Cipta Infra Optima - Construction Landing Page
Author: AI Assistant
========================================================================== */

/* ===== IMPLEMENTASI FONT MONTSERRAT ===== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap');

/* ===== VARIABLES & GLOBAL STYLES (Menggunakan --bs- prefix untuk konsistensi Bootstrap) ===== */

:root {
 /* Warna */
 --bs-primary: #121212; /* Hitam Gelap (Branding Kuat) */
 --bs-secondary: #ffb700; /* KUNING EMAS/SAFETY */
 --bs-accent: #333333; /* Hitam Aksesori */
 --bs-dark: #000000; /* Warna Sangat Gelap (Hitam Murni) */
 --bs-light: #f4f4f7;
 --bs-white: #fff;
 --bs-text: #000000; /* Warna Teks Global (Hitam Murni) */
 --bs-blue-dark: #1a4d6f; /* Biru Tua untuk Aksen Tombol/Branding */
 --bs-green-success: #008000; /* Variabel Hijau untuk penanda Keberhasilan */

 /* Efek */
 --shadow-card: 0 6px 15px rgba(0, 0, 0, 0.08);
 --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
 --transition: all 0.3s ease;
}

/* ===== RESET & BASE ===== */

* {
 margin: 0;
 padding: 0;
 box-sizing: border-box;
}

html,
body {
 width: 100%;
 overflow-x: hidden;
 scroll-behavior: smooth;
}

body {
 font-family: 'Montserrat', "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
 color: var(--bs-text);
 line-height: 1.6;
 background-color: var(--bs-white);
}

/* ===== PADDING GLOBAL UNTUK SECTION DAN ELEMEN ===== */
section {
 padding: 60px 15px; /* Padding untuk ujung-ujung section */
}

.container {
 padding-left: 20px;
 padding-right: 20px;
}

/* ===== TYPOGRAPHY DENGAN MONTSERRAT ===== */

/* Heading dengan font-weight Black (900) */
.section-title {
 font-family: 'Montserrat', sans-serif;
 font-size: 2.5rem;
 font-weight: 900; /* Black */
 color: var(--bs-text);
 margin-bottom: 0.5rem;
 text-align: center;
 position: relative;
 text-transform: uppercase;
 letter-spacing: 1px;
 padding-top: 20px; /* Jarak dari atas */
 padding-bottom: 10px; /* Jarak dari bawah */
}

.section-title::after {
 content: "";
 display: block;
 width: 80px;
 height: 4px;
 background: var(--bs-secondary);
 margin: 15px auto 20px; /* Jarak antara judul dan garis */
 border-radius: 2px;
}

/* Subtitle dengan font-weight Medium (500) */
.section-subtitle {
 font-family: 'Montserrat', sans-serif;
 color: var(--bs-accent);
 text-align: center;
 max-width: 700px;
 margin: 0 auto 40px; /* Jarak lebih besar di bawah */
 font-size: 1.1rem;
 font-weight: 500; /* Medium */
 line-height: 1.7;
 padding: 0 15px;
}

/* Judul di bawah (keterangan) dengan font-weight Bold (700) */
.card-title, 
.service-card h4,
.timeline-content h4,
.client-card h5,
.project-card-custom h5,
.contact-item-text h6,
.footer-links h4,
.footer-contact h4 {
 font-family: 'Montserrat', sans-serif;
 font-weight: 700 !important; /* Bold */
 color: var(--bs-primary);
 margin-bottom: 15px; /* Jarak antar teks */
}

/* Text body dengan font-weight Medium (500) */
body, 
p,
.service-card p,
.timeline-content p,
.client-card p,
.project-card-custom p,
.contact-item-text p,
.footer-about p,
.footer-links a,
.footer-contact p {
 font-family: 'Montserrat', sans-serif;
 font-weight: 500; /* Medium */
}

/* ===== UTILITIES (Buttons) ===== */

.btn {
 font-family: 'Montserrat', sans-serif;
 font-weight: 600;
 padding: 12px 30px;
 border-radius: 30px;
 text-transform: uppercase;
 letter-spacing: 1px;
 transition: var(--transition);
 border: none;
 cursor: pointer;
 display: inline-block;
 text-decoration: none;
 text-align: center;
 margin: 10px 5px; /* Jarak antar tombol */
}

.btn-primary {
 background: var(--bs-white);
 color: var(--bs-primary);
 border: 2px solid var(--bs-primary);
}

.btn-primary:hover {
 background: var(--bs-primary);
 transform: translateY(-3px);
 box-shadow: var(--shadow);
 color: var(--bs-white);
}

.btn-outline-light {
 color: var(--bs-white);
 border: 2px solid var(--bs-white);
 background: transparent;
}

.btn-outline-light:hover {
 background: var(--bs-white);
 color: var(--bs-primary);
}

/* Styling untuk Tombol Hero */
.btn-hero {
 font-family: 'Montserrat', sans-serif;
 background-color: var(--bs-blue-dark);
 color: var(--bs-white);
 padding: 15px 40px;
 border-radius: 5px;
 font-size: 1.1rem;
 font-weight: 600;
 text-transform: uppercase;
 transition: var(--transition);
 border: none;
 text-decoration: none;
 box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
 margin: 15px 10px; /* Jarak antar tombol */
}

.btn-hero:hover {
 background-color: #123e5a;
 transform: translateY(-2px);
}

/* ===== NAVBAR ===== */

.navbar {
 font-family: 'Montserrat', sans-serif;
 transition: var(--transition);
 background-color: var(--bs-white) !important;
 box-shadow: var(--shadow);
 padding: 20px 0; /* Tambah padding navbar */
}

.navbar.scrolled {
 padding: 15px 0;
}

.navbar-brand {
 color: var(--bs-primary) !important;
 font-weight: 900 !important; /* Black */
 font-size: 1.5rem;
}

/* ===== PERBESARAN LOGO UNTUK SEMUA PERANGKAT ===== */

/* Logo untuk desktop/laptop (PC) */
.navbar-brand .logo {
 height: 45px; /* DIPERBESAR: dari 35px ke 45px */
 margin-right: 12px; /* DITAMBAH sedikit */
 width: auto;
}

/* Logo untuk tablet */
@media (max-width: 991px) {
 .navbar-brand .logo {
  height: 40px; /* DIPERBESAR: dari 28px ke 40px */
  margin-right: 10px;
 }
}

/* Logo untuk mobile */
@media (max-width: 768px) {
 .navbar-brand .logo {
  height: 38px; /* DIPERBESAR: tetap besar di mobile */
  margin-right: 8px;
 }
}

/* Logo untuk mobile kecil */
@media (max-width: 576px) {
 .navbar-brand .logo {
  height: 36px; /* DIPERBESAR: tetap besar di mobile kecil */
  margin-right: 8px;
 }
}

.navbar-nav .nav-link {
 font-family: 'Montserrat', sans-serif;
 font-weight: 500; /* Medium */
 color: var(--bs-dark) !important;
 margin: 0 12px; /* Jarak antar link */
 padding: 8px 12px !important; /* Padding untuk link */
 transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
 color: var(--bs-primary) !important;
}

/* ===== HERO CAROUSEL STYLING (DIPERBAIKI) ===== */

.hero-carousel {
    height: 100vh;
    margin-bottom: 0 !important;
    padding: 0;
}

.hero-carousel .carousel-item {
    height: 100%;
}

.hero-carousel .carousel-item img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

/* Overlay untuk keterbacaan teks */
.hero-carousel .carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 1;
}

.hero-carousel .carousel-caption {
    z-index: 2;
}

/* ===== POSISI CAPTION DAN TEKS HERO YANG DITURUNKAN ===== */

/* Posisi caption di bawah */
.carousel-caption {
    position: absolute;
    left: 8%;
    right: 8%;
    bottom: 0;
    top: 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 0;
}

/* Konten hero diturunkan (PAS VISUAL) */
.hero-content {
    margin-bottom: 140px; /* posisi ideal desktop */
    width: 100%;
}

/* Mobile adjustment */
@media (max-width: 768px) {
    .hero-content {
        margin-bottom: 90px;
    }
}

@media (max-width: 576px) {
    .hero-content {
        margin-bottom: 70px;
    }
}

@media (max-width: 375px) {
    .hero-content {
        margin-bottom: 50px;
    }
}

/* ===== TYPOGRAPHY HERO (UKURAN MODERAT - DIKECILKAN) ===== */

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900; /* Black */
    color: var(--bs-white);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9);
    line-height: 1.1;
    text-align: left;
    margin-bottom: 1rem;
    max-width: 700px;
    padding-left: 0;
    transform: none;
}

/* Ukuran font untuk desktop/laptop (≥ 1200px) - MODERAT */
@media (min-width: 1200px) {
    .hero-title {
        font-size: 2.8rem; /* Sedang antara besar dan kecil */
        max-width: 800px;
    }
}

/* Ukuran font untuk laptop kecil (992px - 1199px) - MODERAT */
@media (min-width: 992px) and (max-width: 1199px) {
    .hero-title {
        font-size: 2.4rem; /* Sedang antara besar dan kecil */
        max-width: 700px;
    }
}

/* Ukuran font untuk tablet landscape (768px - 991px) - MODERAT */
@media (min-width: 768px) and (max-width: 991px) {
    .hero-title {
        font-size: 2rem; /* Sedang antara besar dan kecil */
        max-width: 600px;
    }
}

/* Ukuran font untuk tablet portrait (576px - 767px) - MODERAT */
@media (min-width: 576px) and (max-width: 767px) {
    .hero-title {
        font-size: 1.7rem; /* Sedang antara besar dan kecil */
        max-width: 85%;
        margin-bottom: 0.8rem;
    }
}

/* Ukuran font untuk mobile (≤ 575px) - MODERAT */
@media (max-width: 575px) {
    .hero-title {
        font-size: 1.4rem; /* Sedang antara besar dan kecil */
        max-width: 90%;
        margin-bottom: 0.5rem;
        line-height: 1.2;
    }
}

/* Ukuran font untuk mobile sangat kecil (≤ 375px) - MODERAT */
@media (max-width: 375px) {
    .hero-title {
        font-size: 1.2rem; /* Sedang antara besar dan kecil */
        max-width: 95%;
    }
}

/* ===== CAROUSEL CONTROLS ===== */

.carousel-control-prev,
.carousel-control-next {
    display: none;
}

.carousel-indicators {
    display: none;
}

/* Animasi untuk teks hero */
.animate__animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

.animate__fadeInDown {
    animation-name: fadeInDown;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -30px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* ===== RESPONSIVE ADJUSTMENTS HERO ===== */

/* Penyesuaian tinggi carousel untuk tablet */
@media (max-width: 991px) {
    .hero-carousel {
        height: 85vh;
    }
}

/* Penyesuaian tinggi carousel untuk mobile */
@media (max-width: 768px) {
    .hero-carousel {
        height: 80vh;
    }
    
    /* Pastikan gambar tetap proporsional */
    .hero-carousel .carousel-item img {
        object-position: center center;
    }
}

/* Penyesuaian untuk mobile sangat kecil */
@media (max-width: 575px) {
    .hero-carousel {
        height: 75vh;
    }
    
    /* Tambah padding kanan untuk teks di mobile */
    .carousel-caption {
        left: 5%;
        right: 5%;
    }
}

/* Penyesuaian khusus untuk teks yang panjang */
.hero-title br {
    display: block;
}

@media (max-width: 767px) {
    .hero-title br {
        display: none;
    }
    
    .hero-title br.d-none.d-md-block {
        display: block !important;
    }
}

/* HAPUS STYLING HERO LAMA YANG BERTENTANGAN */
.hero-subtitle,
.hero-description,
.hero-buttons {
    display: none !important;
}

/* ===== ABOUT SECTION ===== */

.about-section {
 padding-top: 60px;
 margin-top: 0;
}

.about-item {
 padding: 25px 20px; /* Padding dalam item */
 margin-bottom: 20px; /* Jarak antar item */
}

.about-item:hover {
 background: rgba(var(--bs-primary-rgb, 18, 18, 18), 0.08);
 transform: translateY(-3px);
}

.icon-about {
 width: 40px;
 height: 40px;
 object-fit: contain;
 margin-right: 15px;
 flex-shrink: 0;
}

.about-item h5,
.about-item span {
 font-family: 'Montserrat', sans-serif;
 font-size: 1.05rem;
 font-weight: 700; /* Bold */
 margin-bottom: 10px; /* Jarak antar teks */
}

.about-item p {
 font-family: 'Montserrat', sans-serif;
 font-size: 0.85rem;
 font-weight: 500; /* Medium */
 color: var(--bs-accent);
 margin-top: 0;
 line-height: 1.3;
}

.about-item a {
 font-family: 'Montserrat', sans-serif;
 font-size: 0.9rem;
 font-weight: 500; /* Medium */
 display: inline-block;
}

/* --- TENTANG KAMI HEADER STYLING --- */

.about-header {
 background: var(--bs-dark);
 color: var(--bs-white);
 padding: 70px 0; /* Tambah padding */
}

.about-header .section-title {
 color: var(--bs-white);
}

.about-header .section-subtitle {
 color: rgba(255, 255, 255, 0.85);
 opacity: 1;
}

.about-header .section-title::after {
 background: var(--bs-secondary);
}

/* ===== SERVICES SECTION ===== */

.services-section {
 background: var(--bs-light) !important;
 padding: 70px 15px; /* Tambah padding */
}

.service-card {
 border: 1px solid rgba(0, 0, 0, 0.08);
 transition: var(--transition);
 padding: 30px 25px; /* Padding dalam card */
 margin-bottom: 25px; /* Jarak antar card */
}

.service-icon {
 background: var(--bs-primary);
 color: var(--bs-white);
 width: 60px;
 height: 60px;
 display: flex;
 align-items: center;
 justify-content: center;
 border-radius: 50%;
 margin-bottom: 20px; /* Jarak dari ikon ke teks */
 font-size: 1.5rem;
}

.service-card:hover {
 transform: translateY(-5px);
 box-shadow: var(--shadow);
}

.service-card h4 {
 font-family: 'Montserrat', sans-serif;
 font-weight: 700; /* Bold */
 margin-bottom: 15px; /* Jarak judul ke deskripsi */
}

.service-card p {
 font-family: 'Montserrat', sans-serif;
 font-weight: 500; /* Medium */
 margin-bottom: 15px; /* Jarak antar paragraf */
}

/* ===== PLANNING SECTION (TIMELINE) ===== */

.process-img:hover {
 transform: scale(1.01);
}

.timeline-container {
 position: relative;
 padding: 0 20px; /* Padding sisi kiri kanan */
}

.timeline-container::after {
 content: "";
 position: absolute;
 width: 3px;
 background-color: #ccc;
 top: 0;
 bottom: 0;
 left: 50%;
 margin-left: -1.5px;
 z-index: 1;
 display: none;
}

@media (min-width: 768px) {
 .timeline-container::after {
  display: block;
 }
}

.timeline-item {
 padding: 20px 40px; /* Tambah padding */
 position: relative;
 width: 50%;
}

.timeline-item.left {
 left: 0;
}

.timeline-item.right {
 left: 50%;
}

.timeline-item.right .timeline-content {
 margin-left: 30px; /* Jarak lebih besar */
}

.timeline-item.left .timeline-content {
 margin-right: 30px; /* Jarak lebih besar */
}

.timeline-icon {
 width: 50px;
 height: 50px;
 position: absolute;
 top: 20px;
 border-radius: 50%;
 z-index: 10;
 color: var(--bs-white);
 display: flex;
 align-items: center;
 justify-content: center;
 box-shadow: 0 0 0 5px var(--bs-light);
 font-size: 1.2rem;
 background-color: var(--bs-primary);
}

.timeline-item.left .timeline-icon {
 right: -25px;
}

.timeline-item.right .timeline-icon {
 left: -25px;
}

.timeline-content {
 background-color: var(--bs-white);
 border-left: 3px solid var(--bs-primary);
 transition: var(--transition);
 padding: 25px; /* Tambah padding */
 border-radius: 4px;
 margin-bottom: 30px; /* Jarak antar timeline item */
}

.timeline-content:hover {
 box-shadow: var(--shadow) !important;
 border-left-color: var(--bs-secondary);
}

.timeline-img {
 width: 40px;
 height: 40px;
 object-fit: contain;
 border-radius: 8px;
 flex-shrink: 0;
}

.timeline-content h4 {
 font-family: 'Montserrat', sans-serif;
 font-weight: 700; /* Bold */
 margin-bottom: 15px; /* Jarak judul ke deskripsi */
}

.timeline-content p {
 font-family: 'Montserrat', sans-serif;
 font-weight: 500; /* Medium */
}

/* ===== CLIENTS & PARTNERS SECTION ===== */

#partners-section {
 padding: 80px 15px; /* Padding untuk section */
}

.partners-section {
 background: var(--bs-light) !important;
}

.client-card {
 background-color: var(--bs-white);
 border-radius: 8px;
 transition: var(--transition);
 height: 100%;
 border: 1px solid rgba(0, 0, 0, 0.05);
 box-shadow: var(--shadow-card);
 padding: 30px 25px; /* Tambah padding */
 margin-bottom: 25px; /* Jarak antar card */
}

.client-card:hover {
 transform: translateY(-5px);
 box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15) !important;
}

.client-card .client-logo {
 max-height: 80px;
 width: auto;
 max-width: 100%;
 object-fit: contain;
 filter: grayscale(100%);
 opacity: 0.8;
 transition: var(--transition);
 margin-bottom: 20px; /* Jarak dari logo ke teks */
}

.client-card:hover .client-logo {
 filter: grayscale(0%);
 opacity: 1;
}

.client-card h5 {
 font-family: 'Montserrat', sans-serif;
 font-weight: 700; /* Bold */
 color: var(--bs-primary);
 margin-bottom: 15px; /* Jarak judul ke deskripsi */
}

.client-card p {
 font-family: 'Montserrat', sans-serif;
 font-weight: 500; /* Medium */
 line-height: 1.3;
 font-size: 0.9rem;
}

.client-card .badge {
 font-family: 'Montserrat', sans-serif;
 font-weight: 600;
 background-color: var(--bs-secondary) !important;
 color: var(--bs-dark);
}

/* Tombol Panah Navigasi Partner */
.toggle-partner-btn {
 font-family: 'Montserrat', sans-serif;
 font-size: 2.5rem;
 color: var(--bs-primary);
 background: transparent;
 border: none;
 cursor: pointer;
 transition: var(--transition);
 margin-top: 40px; /* Jarak dari konten di atas */
 padding: 10px;
 display: block;
 margin-left: auto;
 margin-right: auto;
}

.toggle-partner-btn:hover {
 color: var(--bs-secondary);
 transform: scale(1.1);
}

/* Logo Partner Tambahan */
.client-logo-card {
 border: 1px solid #e0e0e0;
 border-radius: 8px;
 padding: 20px; /* Tambah padding */
 transition: var(--transition);
 box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
 margin-bottom: 20px; /* Jarak antar card */
}

.client-logo-card:hover {
 transform: translateY(-2px);
 box-shadow: var(--shadow-card);
}

.client-logo-only {
 max-width: 100%;
 max-height: 80px;
 width: auto;
 object-fit: contain;
 filter: grayscale(100%);
 opacity: 0.8;
 transition: var(--transition);
}

.client-logo-card:hover .client-logo-only {
 filter: grayscale(0%);
 opacity: 1;
}

.client-logo-card h6 {
 font-family: 'Montserrat', sans-serif;
 font-weight: 700; /* Bold */
 margin-top: 15px; /* Jarak dari logo ke teks */
 font-size: 0.9rem;
}

/* ===== PROJECTS SECTION ===== */

#ongoing-projects {
    background: var(--bs-light);
    padding: 80px 0;
}

#ongoing-projects .section-title {
    color: var(--bs-primary);
    margin-bottom: 15px;
}

#ongoing-projects .section-subtitle {
    color: var(--bs-accent);
    margin-bottom: 50px;
    max-width: 800px;
}

/* Project Card Styling - Menggabungkan kedua gaya */
.ongoing-project-card {
    background: var(--bs-white);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    box-shadow: var(--shadow-card);
    margin-bottom: 30px;
    padding: 25px; /* Menggunakan padding dari gaya kedua */
    cursor: pointer;
}

.ongoing-project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15) !important;
}

/* Kartu Proyek Lama (Untuk yang Selesai) */
.project-card-custom {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: var(--bs-white);
    cursor: pointer;
    height: 100%;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-card);
}

.project-card-custom:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15) !important;
}

/* Gambar Proyek Lama */
.project-card-custom .project-img,
.project-card-custom .card-img-top {
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
    width: 100%;
    display: block;
    margin-bottom: 20px;
    border-radius: 10px;
}

.project-card-custom:hover .project-img,
.project-card-custom:hover .card-img-top {
    transform: scale(1.05);
}

.project-card-custom h5 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--bs-primary);
}

.project-card-custom p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    margin-bottom: 15px;
    color: var(--bs-accent);
}

/* 1. Gaya Layout Baru (Nomor & Judul di Atas Gambar) */
.ongoing-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8rem; /* Diperbesar dari 2.5rem */
    font-weight: 900; /* Diubah dari 800 ke 900 */
    color: var(--bs-secondary);
    line-height: 1;
    min-width: 50px; /* Diperbesar dari 45px */
    display: inline-block;
    margin-bottom: 5px; /* Dikurangi dari 10px */
}

.ongoing-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem; /* Diperbesar dari 1.1rem */
    font-weight: 700;
    color: var(--bs-primary);
    margin-bottom: 10px; /* Dikurangi dari 15px */
    text-transform: uppercase;
    line-height: 1.3;
}

.progress-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--bs-accent);
}

/* 2. Wadah Gambar Baru (Zoom & Rounded) */
.project-img-container {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    background-color: #eee;
    height: 250px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-card);
}

.project-img-container img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.project-img-container:hover {
    transform: translateY(-5px);
}

.project-img-container:hover img {
    transform: scale(1.05);
}

/* View Detail Badge - Digabungkan dengan badge yang ada */
.project-img-container .view-badge {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(5px);
    border: none;
}

/* Badge Proyek */
.badge.bg-warning {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    background-color: var(--bs-secondary) !important;
    color: var(--bs-dark) !important;
    border: none;
}

/* Button Styling - Menggabungkan kedua gaya */
.btn-view-progress {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 20px;
    border: 2px solid var(--bs-primary);
    background: transparent;
    color: var(--bs-primary);
    transition: var(--transition);
    width: 100%;
    border-radius: 8px;
    margin-top: 10px;
}

.btn-view-progress:hover {
    background: var(--bs-primary);
    color: var(--bs-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* 4. Tombol Toggle Proyek (Lainnya/Tutup) */
.toggle-project-btn {
    font-family: 'Montserrat', sans-serif;
    text-decoration: none;
    font-weight: 600;
    color: var(--bs-primary);
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    background: transparent;
    border: none;
    margin-top: 30px;
    padding: 10px 20px;
    transition: var(--transition);
}

.toggle-project-btn:hover {
    color: var(--bs-secondary);
    text-decoration: none;
    transform: translateY(-2px);
}

.toggle-icon {
    transition: transform 0.3s ease;
    margin-left: 8px;
}

/* Rotasi ikon panah saat tombol diklik */
.toggle-project-btn[aria-expanded="true"] .toggle-icon {
    transform: rotate(180deg);
}

/* ===== MODAL STYLING ===== */
.project-modal .modal-header {
    background: var(--bs-primary);
    color: var(--bs-white);
    border-bottom: 3px solid var(--bs-secondary);
}

.project-modal .modal-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
}

.project-modal .modal-body {
    padding: 30px;
}

/* 5. Modal & Close Button Styles */
.modal-body {
    min-height: 100%;
    padding: 30px;
    position: relative;
}

.custom-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid #fff;
    color: #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 1060;
    padding: 0;
}

.custom-close:hover {
    background: var(--bs-primary);
    color: var(--bs-white);
    transform: rotate(90deg);
}

/* Gallery Grid */
.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.project-gallery img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Map Container */
.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    margin-bottom: 20px;
}

.map-container iframe {
    display: block;
    border: none;
    width: 100%;
    height: 450px;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 991.98px) {
    #ongoing-projects {
        padding: 70px 0;
    }
}

@media (max-width: 768px) {
    #ongoing-projects {
        padding: 60px 0;
    }
    
    .ongoing-number {
        font-size: 2.2rem;
        min-width: 40px;
    }
    
    .ongoing-title {
        font-size: 1.1rem;
    }
    
    .project-img-container,
    .project-card-custom .project-img,
    .project-card-custom .card-img-top {
        height: 200px;
    }
    
    .project-modal .modal-body,
    .modal-body {
        padding: 20px;
    }
    
    .project-gallery {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }
    
    .project-gallery img {
        height: 100px;
    }
    
    .map-container iframe {
        height: 350px;
    }
    
    .ongoing-project-card,
    .project-card-custom {
        padding: 20px;
        margin-bottom: 25px;
    }
}

@media (max-width: 576px) {
    #ongoing-projects {
        padding: 50px 15px;
    }
    
    .ongoing-number {
        font-size: 2rem;
        min-width: 35px;
    }
    
    .ongoing-title {
        font-size: 1rem;
    }
    
    .project-img-container,
    .project-card-custom .project-img,
    .project-card-custom .card-img-top {
        height: 180px;
    }
    
    .btn-view-progress {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .toggle-project-btn {
        font-size: 1rem;
        padding: 8px 15px;
        margin-top: 20px;
    }
    
    .map-container iframe {
        height: 300px;
    }
    
    .ongoing-project-card,
    .project-card-custom {
        padding: 15px;
        margin-bottom: 20px;
    }
}

/* Animation for project cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ongoing-project-card,
.project-card-custom {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Delay animations for each card */
.ongoing-project-card:nth-child(1),
.project-card-custom:nth-child(1) { 
    animation-delay: 0.1s; 
}

.ongoing-project-card:nth-child(2),
.project-card-custom:nth-child(2) { 
    animation-delay: 0.2s; 
}

.ongoing-project-card:nth-child(3),
.project-card-custom:nth-child(3) { 
    animation-delay: 0.3s; 
}

/* ===== GALLERY PERUMAHAN & MARKETING GALLERY ===== */

.gallery-item-wrapper {
 overflow: hidden;
 position: relative;
 padding-top: 100%;
 height: 0;
 margin-bottom: 25px; /* Jarak antar item */
 border-radius: 8px;
 box-shadow: var(--shadow-card);
}

.gallery-item-wrapper img {
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 object-fit: cover;
 transition: transform 0.5s ease;
}

.gallery-item-wrapper:hover img {
 transform: scale(1.05);
}

/* ===== DOCUMENTATION SECTION ===== */

#documentation {
 background: var(--bs-light) !important;
 padding: 70px 15px; /* Tambah padding */
}

#dokumentasiCarousel .carousel-item img {
 max-width: 80%;
 margin: 20px auto; /* Jarak dari tepi */
}

/* ===== CONTACT SECTION ===== */

.contact-section {
 background: var(--bs-light) !important;
 padding: 70px 15px; /* Tambah padding */
}

/* Kontainer untuk kolom kiri (Telepon, Email, Alamat, Jam) */
.contact-info-column {
 display: flex;
 flex-direction: column;
 gap: 30px; /* Jarak seragam antar setiap item kontak */
 padding: 25px; /* Padding dalam kolom */
}

/* Item Kontak Tunggal (Telepon, Email, dll) */
.contact-item {
 display: flex;
 align-items: flex-start;
 padding: 0;
 transition: var(--transition);
 margin-bottom: 20px; /* Jarak antar item */
}

.contact-item:hover {
 background: transparent;
 transform: none;
}

.contact-item i {
 background: var(--bs-primary);
 color: var(--bs-white);
 width: 45px;
 height: 45px;
 display: flex;
 align-items: center;
 justify-content: center;
 border-radius: 50%;
 font-size: 1.2rem;
 margin-right: 15px;
 flex-shrink: 0;
}

.contact-item-text {
 display: flex;
 flex-direction: column;
 justify-content: center;
}

.contact-item-text h6 {
 font-family: 'Montserrat', sans-serif;
 font-weight: 700; /* Bold */
 margin-bottom: 8px; /* Jarak dari judul ke deskripsi */
 color: var(--bs-primary);
}

.contact-item-text p {
 font-family: 'Montserrat', sans-serif;
 font-weight: 500; /* Medium */
 margin-bottom: 0;
 line-height: 1.3;
 color: var(--bs-accent);
 font-size: 0.95rem;
}

/* Form Styling */
.contact-form {
 padding: 35px 30px; /* Padding dalam form */
}

.contact-form .form-control {
 font-family: 'Montserrat', sans-serif;
 font-weight: 500; /* Medium */
 border-radius: 5px;
 padding: 12px 15px; /* Padding dalam input */
 border: 1px solid #ccc;
 margin-bottom: 20px; /* Jarak antar input */
}

.contact-form .form-control:focus {
 border-color: var(--bs-primary);
 box-shadow: 0 0 0 0.25rem rgba(18, 18, 18, 0.25);
}

/* Styling Tombol Kirim Pesan */
.contact-form .btn-kirim {
 font-family: 'Montserrat', sans-serif;
 background: var(--bs-secondary);
 color: var(--bs-dark);
 font-weight: 700;
 padding: 15px 30px; /* Padding tombol */
 border-radius: 5px;
 width: 100%;
 transition: var(--transition);
 border: none;
 cursor: pointer;
 text-transform: uppercase;
 margin-top: 10px; /* Jarak dari input terakhir */
}

.contact-form .btn-kirim:hover {
 background: #e5a500;
 box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* ===== VIDEO SECTION ===== */

.video-card:hover {
 transform: translateY(-5px);
}

.video-wrapper video {
 height: auto;
 aspect-ratio: 16 / 9;
 margin-bottom: 20px; /* Jarak dari video ke konten */
}

.video-content h4 {
 font-family: 'Montserrat', sans-serif;
 font-weight: 700; /* Bold */
 color: var(--bs-primary);
 margin-bottom: 15px; /* Jarak judul ke deskripsi */
}

/* ===== FOOTER ===== */

.footer {
 font-family: 'Montserrat', sans-serif;
 background: var(--bs-dark);
 color: var(--bs-white);
 padding: 70px 0 0; /* Padding atas lebih besar */
}

.footer-about p {
 font-weight: 500; /* Medium */
 color: rgba(255, 255, 255, 0.8);
 margin-bottom: 20px; /* Jarak antar paragraf */
}

.footer-links h4,
.footer-contact h4 {
 font-weight: 700; /* Bold */
 color: var(--bs-white);
 margin-bottom: 20px; /* Jarak judul ke konten */
}

.footer-links a {
 font-weight: 500; /* Medium */
 color: rgba(255, 255, 255, 0.8);
 transition: var(--transition);
 margin-bottom: 10px; /* Jarak antar link */
 display: block;
}

.footer-links a:hover {
 color: var(--bs-secondary);
}

.footer-contact i {
 color: var(--bs-secondary);
}

.footer-contact p {
 font-weight: 500; /* Medium */
 margin-bottom: 15px; /* Jarak antar item kontak */
}

.social-links a {
 background: rgba(255, 255, 255, 0.1);
 transition: var(--transition);
 margin: 0 8px 15px; /* Jarak antar ikon sosial */
}

.social-links a:hover {
 background: var(--bs-secondary);
}

.footer-bottom {
 padding: 25px 0; /* Padding footer bottom */
 margin-top: 40px; /* Jarak dari konten di atas */
}

.footer-bottom i {
 color: #e74c3c;
}

/* ===== SUKSES LEBAK SECTION ===== */

#success-lebak .title-accent {
 font-family: 'Montserrat', sans-serif;
 font-weight: 900; /* Black */
 color: var(--bs-green-success) !important;
}

#success-lebak .title-main {
 font-family: 'Montserrat', sans-serif;
 font-weight: 900; /* Black */
 margin-bottom: 10px !important;
}

#success-lebak .title-line-custom {
 width: 100px;
 height: 4px;
 background: var(--bs-secondary);
 margin: 20px 0; /* Jarak dari teks */
 border-radius: 2px;
}

#success-lebak .subtitle-custom {
 font-family: 'Montserrat', sans-serif;
 font-weight: 500; /* Medium */
 max-width: 100%;
 margin-left: 0;
 margin-bottom: 30px; /* Jarak dari subtitle ke konten */
}

#success-lebak .card img {
 width: 100%;
 height: auto;
 object-fit: cover;
 margin-bottom: 20px; /* Jarak dari gambar ke konten */
}

#success-lebak .card-body small {
 font-family: 'Montserrat', sans-serif;
 font-weight: 500; /* Medium */
 line-height: 1.3;
}

/* ===== MARQUEE (AUTO SCROLL GALLERY) ===== */

.marquee-container {
 width: 100%;
 overflow: hidden;
 background-color: var(--bs-primary);
 padding: 30px 0; /* Padding lebih besar */
 white-space: nowrap;
 transform: translateZ(0);
}

.marquee-content {
 display: inline-block;
 animation: scroll-left 30s linear infinite;
 padding: 0 20px; /* Padding sisi kiri kanan */
}

.marquee-content:hover {
 animation-play-state: paused;
}

@keyframes scroll-left {
 0% {
  transform: translateX(0);
 }
 100% {
  transform: translateX(-50%);
 }
}

.image-card {
 display: inline-block;
 width: 250px;
 margin-right: 25px; /* Jarak antar card lebih besar */
 flex-shrink: 0;
 border-radius: 0.75rem;
 overflow: hidden;
 box-shadow: var(--shadow-card);
 transition: transform 0.3s ease;
 background-color: var(--bs-accent);
}

.image-card img {
 width: 100%;
 height: 150px;
 object-fit: cover;
 display: block;
}

.caption {
 padding: 15px; /* Padding caption */
 background-color: var(--bs-accent);
 color: var(--bs-light);
 font-size: 0.8rem;
 text-align: center;
}

/* ==========================================================================
MEDIA QUERIES (RESPONSIVE) - DIPERBARUI
========================================================================== */

@media (min-width: 992px) {
 /* DESKTOP */
 .hero-carousel {
  height: 100vh;
 }
 
 /* Padding untuk container desktop */
 .container {
  padding-left: 30px;
  padding-right: 30px;
 }
}

@media (max-width: 991.98px) {
 /* HEADER MOBILE/TABLET */
 .navbar {
  padding-top: 15px !important;
  padding-bottom: 15px !important;
  min-height: 60px; /* DITAMBAH untuk akomodasi logo yang lebih besar */
 }

 .navbar.scrolled {
  padding-top: 12px !important;
  padding-bottom: 12px !important;
  min-height: 50px; /* DITAMBAH untuk akomodasi logo yang lebih besar */
 }

 .navbar-brand {
  font-size: 1.4rem; /* DITAMBAH sedikit */
  margin-top: 0;
  margin-bottom: 0;
 }

 .navbar-toggler {
  border: 1px solid var(--bs-primary);
  padding: 0.25rem 0.5rem;
  line-height: 1;
  height: 42px; /* DITAMBAH untuk akomodasi logo yang lebih besar */
  width: 42px; /* DITAMBAH untuk akomodasi logo yang lebih besar */
  display: flex;
  align-items: center;
  justify-content: center;
 }

 .navbar-toggler-icon {
  width: 1.3em; /* DITAMBAH sedikit */
  height: 1.3em; /* DITAMBAH sedikit */
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23121212' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
 }

 .navbar-nav .dropdown-menu {
  border: none;
  box-shadow: none;
  padding: 0;
  margin-left: 15px;
 }

 .navbar-nav .dropdown-item {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500; /* Medium */
  color: var(--bs-dark) !important;
  padding: 10px 15px; /* Padding untuk dropdown item */
  transition: var(--transition);
  border-radius: 0;
 }

 .navbar-nav .dropdown-item:hover {
  background-color: rgba(var(--bs-primary-rgb, 18, 18, 18), 0.1);
  color: var(--bs-primary) !important;
 }
}

@media (max-width: 768px) {
 section {
  padding: 50px 15px; /* Padding section mobile */
 }

 .client-card {
  padding: 25px 20px !important;
 }

 .client-card .client-logo {
  max-height: 60px;
 }

 .client-card .row > div.col-8 {
  padding-left: 10px !important;
 }

 .section-title {
  font-size: 2rem;
  padding-top: 15px;
  padding-bottom: 5px;
 }

 .section-title::after {
  margin: 10px auto 15px;
 }

 .about-item {
  flex-direction: column;
  text-align: center;
  padding: 20px 15px;
 }

 .icon-about {
  margin: 0 auto 15px;
 }

 .contact-form {
  padding: 25px 20px;
 }

 #dokumentasiCarousel .carousel-item img {
  max-width: 90%;
 }

 /* Timeline Mobile */
 .timeline-container::after {
  left: 20px;
  display: block;
 }

 .timeline-item {
  width: 100%;
  padding-left: 50px;
  padding-right: 10px;
  left: 0 !important;
 }

 .timeline-item .timeline-icon {
  left: 0;
  right: auto;
  margin-left: 0;
  transform: translateX(-50%);
 }

 .timeline-item.right .timeline-content,
 .timeline-item.left .timeline-content {
  margin-left: 0;
  margin-right: 0;
 }

 .timeline-img {
  display: none !important;
 }

 .timeline-content {
  border-right: none;
  border-left: 3px solid var(--bs-primary);
  padding: 20px 15px;
  margin-bottom: 25px;
 }

 .timeline-content.d-flex {
  display: block !important;
 }

 /* Projects Mobile */
 .project-card-custom .project-img,
 .project-card-custom .card-img-top {
  height: 180px;
 }
 
 /* Gallery Mobile */
 .gallery-item-wrapper {
   padding-top: 100%;
   margin-bottom: 15px;
 }

 /* Marquee Mobile */
 .image-card {
  width: 180px;
  margin-right: 1rem;
 }
 .image-card img {
  height: 120px;
 }
 .marquee-content {
  animation-duration: 20s;
  padding: 0 15px;
 }
}

@media (max-width: 576px) {
 /* MOBILE KECIL */
  section {
    padding: 40px 10px; /* Padding section mobile kecil */
  }

 .section-title {
  font-size: 1.8rem;
  padding-top: 10px;
  padding-bottom: 5px;
 }

 .section-title::after {
  width: 60px;
  height: 3px;
  margin: 10px auto 15px;
 }

 .section-subtitle {
  font-size: 1rem;
  margin-bottom: 30px;
  padding: 0 10px;
   }

 .about-section {
  padding-top: 40px !important;
  margin-top: 0 !important;
 }

 .service-card,
 .contact-form {
  padding: 20px 15px;
 }

 .contact-item {
  padding: 0;
  margin-bottom: 15px;
 }

 #dokumentasiCarousel .carousel-item img {
  max-width: 90%;
 }
 
 /* Padding untuk container mobile kecil */
 .container {
  padding-left: 15px;
  padding-right: 15px;
 }
}