/* General */
* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #444;
    background-color: #fff;
    min-height: 100vh; /* Pastikan body minimal setinggi viewport */
    display: flex;
    flex-direction: column; /* Atur layout vertikal dengan flexbox */
    padding-top: 90px; /* Tambahkan padding untuk navbar fixed-top */
}

main {
    flex-grow: 1; /* Memastikan main mengambil sisa ruang yang tersedia */
}

section {
    padding: 60px 0;
    overflow: hidden;
}

.section-title h2 {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 20px;
    position: relative;
    color: #0d6efd; /* Biru Primer Bootstrap */
}

.section-title h2::after {
    content: '';
    position: absolute;
    display: block;
    width: 50px;
    height: 3px;
    background: #0d6efd;
    bottom: 0;
    left: calc(50% - 25px);
}

/* Navbar */
.navbar {
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
    background-color: #0d6efd !important;
}

.navbar-brand img {
    max-height: 40px; /* Atur tinggi maksimal logo */
    margin-right: 10px; /* Jarak antara logo dan teks */
}

.navbar-brand span {
    font-weight: 700;
    font-size: 1.5rem;
    color: #fff !important;
}

.nav-link {
    font-weight: 500;
    color: #fff !important;
}

.nav-link.active {
    color: #003366 !important; /* Warna dark blue saat aktif */
    font-weight: bold;
}

.nav-link:hover {
    color: #003366 !important; /* Warna dark blue saat hover */
    font-weight: bold;
}

/* Navbar Dropdown on Hover */
.nav-item.dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0; /* Remove the gap */
}

.dropdown-item:hover, .dropdown-item.active {
    background-color: #0d6efd !important;
    color: #fff !important;
    font-weight: bold;
}

/* Language Switcher */
.lang-switcher {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.lang-switcher .lang-toggle {
    opacity: 0;
    width: 0;
    height: 0;
}

.lang-switcher .lang-toggle-label {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #25d366; /* Warna hijau seperti WhatsApp */
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 34px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 5px;
}

.lang-switcher .lang-toggle-label .lang-text {
    color: #fff;
    font-weight: bold;
    font-size: 14px;
    z-index: 2;
}

.lang-switcher .lang-toggle-label .lang-text[data-lang="id"] {
    color: #fff; /* Default active color */
}

.lang-switcher .lang-toggle-label .lang-text[data-lang="en"] {
    color: #333; /* Default inactive color */
}

.lang-switcher .lang-toggle:checked + .lang-toggle-label .lang-text[data-lang="id"] {
    color: #333;
}

.lang-switcher .lang-toggle:checked + .lang-toggle-label .lang-text[data-lang="en"] {
    color: #fff;
}

.lang-switcher .slider {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 50%;
    z-index: 1;
}

.lang-switcher .lang-toggle:checked + .lang-toggle-label {
    background-color: #25d366;
}

.lang-switcher .lang-toggle:checked + .lang-toggle-label .slider {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* Beranda Section */
#beranda {
    width: 100%;
    min-height: 600px; /* Tinggi beranda minimal 600px */
    background: url('https://images.unsplash.com/photo-1518770660439-4636190af475?q=80&w=2070&auto=format&fit=crop') top center;
    background-size: cover;
    position: relative;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

#beranda:before {
    content: "";
    background: rgba(0, 0, 0, 0.6);
    position: absolute;
    bottom: 0;
    top: 0;
    left: 0;
    right: 0;
}

#beranda .container {
    position: relative;
    z-index: 2;
}

#beranda h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 56px;
    margin-bottom: 20px;
}


.cursor {
    display: inline-block;
    width: 2px; /* Lebar kursor */
    height: 1em; /* Tinggi kursor sesuai tinggi font */
    background-color: white; /* Warna kursor */
    margin-left: 3px; /* Jarak dari teks */
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

#beranda h2 {
    font-size: 24px;
    margin-bottom: 30px;
}

/* Tentang Kami */
#tentang-kami {
    background-color: #fff;
}

#tentang-kami .img-fluid {
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

#tentang-kami p {
    text-align: justify;
}

#tentang-kami h5 {
    font-weight: 700;
    color: #0d6efd;
    margin-top: 20px;
}

#tentang-kami ul {
    list-style-type: '✓';
    padding-left: 20px;
}

#tentang-kami ul li {
    padding-left: 10px;
    margin-bottom: 10px;
}

/* Visi & Misi */
.visi-misi {
    background: url('../img/visimisi.jpg') center center no-repeat;
    background-size: cover;
    position: relative;
    padding: 60px 0;
}

.visi-misi::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.visi-misi .container {
    position: relative;
    z-index: 2;
}

.visi-misi .section-title h2 {
    color: #fff;
}

.visi-misi .section-title h2::after {
    background: #fff;
}

.visi-misi-box {
    padding: 30px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0,0,0,0.1);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    color: #444; /* Reset text color for the box content */
}

.visi-misi-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    background-color: #0d6efd;
    color: #fff;
}

.visi-misi-box h4 {
    font-weight: 700;
    color: #0d6efd;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.visi-misi-box:hover h4 {
    color: #fff;
}

.visi-misi-box p {
    text-align: justify;
}

/* Paket Harga */
.paket-harga .card {
    border: none;
    box-shadow: 0 0 30px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.paket-harga .card {
    border: none;
    box-shadow: 0 0 30px rgba(0,0,0,0.1);
    transition: 0.3s;
    position: relative; /* Penting untuk positioning pseudo-element */
    overflow: hidden; /* Penting untuk menyembunyikan bagian kilatan yang di luar card */
    background-color: #fff; /* Background putih */
    color: #444; /* Warna teks umum di dalam card */
    backdrop-filter: blur(10px); /* Efek glass */
    -webkit-backdrop-filter: blur(10px); /* Untuk kompatibilitas browser */
}

.paket-harga .card-title {
    color: #000; /* Warna teks hitam untuk judul kartu */
}

.paket-harga .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 45px rgba(0,0,0,0.2); /* Efek shadow lebih dalam */
}

.paket-harga .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%; /* Mulai dari luar kiri */
    width: 50%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3); /* Kilatan putih transparan */
    transform: skewX(-20deg); /* Miringkan kilatan */
    transition: all 0.7s ease-in-out; /* Durasi animasi */
    z-index: 1; /* Pastikan di atas konten card */
}

.paket-harga .card:hover::before {
    left: 125%; /* Bergerak ke luar kanan */
}

.paket-harga .card-price {
    font-size: 36px;
    font-weight: 700;
    color: #000; /* Warna teks hitam untuk harga */
}

.paket-harga .card-price .period {
    font-size: 16px;
    color: #666; /* Warna teks abu-abu gelap untuk periode */
}

/* Pelanggan Kami */
.pelanggan-kami {
    padding: 40px 0;
    background-color: #f8f9fa;
}

.pelanggan-kami .section-title h2 {
    color: #0d6efd;
}

.pelanggan-kami .section-title h2::after {
    background: #0d6efd;
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.marquee {
    display: inline-block;
    animation: marquee 30s linear infinite;
}

.marquee span {
    font-size: 1.5rem;
    font-weight: 600;
    color: #495057;
    margin: 0 30px;
}

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

/* Kantor Cabang */
#kantor-cabang {
    background: url('../img/fiber_optic_background.jpeg') center center no-repeat;
    background-size: cover;
    position: relative;
    color: #fff;
}

#kantor-cabang::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

#kantor-cabang .container {
    position: relative;
    z-index: 2;
}

#kantor-cabang .section-title h2 {
    color: #fff;
}

#kantor-cabang .section-title h2::after {
    background: #fff;
}

#kantor-cabang h5 {
    color: #fff;
}

#kantor-cabang .black-icon {
    color: #fff;
    font-size: 1.5em;
}

/* Coverage Area */
.coverage-area {
    background-color: #fff; /* Set a solid background */
    color: #444; /* Reset text color */
}

.coverage-area .section-title h2 {
    color: #0d6efd;
}

.coverage-area .section-title h2::after {
    background: #0d6efd;
}

.coverage-area .blinking-icon {
    color: #0d6efd; /* Change icon color to be visible on white */
}



/* Services */
#services {
    background: url('../img/dark_network_background.jpeg') center center no-repeat;
    background-size: cover;
    position: relative;
    color: #fff;
}

#services::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

#services .container {
    position: relative;
    z-index: 2;
}

#services .service-list,
#services .partner-list {
    list-style: none;
    padding: 0;
}

#services .service-list li,
#services .partner-list li {
    padding: 10px 15px;
    margin-bottom: 10px;
    background: #fff;
    border-left: 5px solid #0d6efd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    color: #444;
}

#services .service-list li:hover,
#services .partner-list li:hover {
    transform: translateX(5px);
    background: #0d6efd;
    color: #fff;
}

#services .section-title h3 {
    font-size: 28px;
    font-weight: bold;
    color: #0d6efd;
    position: relative;
    padding-bottom: 15px;
}

#services .section-title h3::after {
    content: '';
    position: absolute;
    display: block;
    width: 40px;
    height: 3px;
    background: #0d6efd;
    bottom: 0;
    left: calc(50% - 20px);
}



/* Hubungi Kami */
.hubungi-kami .map-container {
    position: relative;
    overflow: hidden; /* Penting untuk efek kilatan */
    border-radius: 15px; /* Sudut melengkung */
    box-shadow: 0 0 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.hubungi-kami .map-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.hubungi-kami iframe {
    border-radius: 15px;
    width: 100%;
}

.hubungi-kami form {
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(0,0,0,0.1);
    background-color: #f8f9fa; /* Warna latar belakang form */
}

.hubungi-kami form .form-label {
    font-weight: bold;
    color: #333;
}

.hubungi-kami form .form-control {
    border-radius: 8px;
    border: 1px solid #ced4da;
}

.hubungi-kami form .btn-primary {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
}


/* Footer */
#footer {
    border-top: 1px solid #e9ecef;
    background-color: #0d6efd;
    color: #fff;
}

/* Tombol WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    transition: transform 1s ease-in-out;
}

.whatsapp-float:hover {
    transform: rotateY(720deg) scale(1.1);
    color: #FFF;
}

.whatsapp-float i {
    margin-top: 15px;
}

/* Blinking GPS Icon */
.blinking-icon {
    color: white; /* Warna ikon putih */
    animation: blink-icon 1s infinite; /* Animasi kedip */
    margin-right: 5px; /* Jarak dari teks */
}

@keyframes blink-icon {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

/* Black Icon */
.black-icon {
    color: black; /* Warna ikon hitam */
    margin-right: 5px; /* Jarak dari teks */
    font-size: 2em; /* Ukuran ikon 2x lebih besar */
}

.hubungi-kami form .btn-primary:hover {
    background-color: #25D366; /* Warna hijau WhatsApp */
    border-color: #25D366;
}
