/* ----------------------------------

Name: main.css
Version: 1.0

-------------------------------------

Table of contents

    01. Navbar
    02. Slider
    03. Contact
    04. Footer
    05. Page Loading
*/

body {
    font-family: 'Rubik', sans-serif;
}

/*--------------------------------------------------
[0. Framework]
--------------------------------------------------*/
.mb-40 {
    margin-bottom: 40px;
}

/*--------------------------------------------------
[01. Start Navbar]
--------------------------------------------------*/
.navbar {
    padding: 18px 0;
    background: rgba(10, 15, 20, 0.45);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border-bottom: 1px solid rgba(255,255,255,0.06);

    transition: all 0.3s ease;
    z-index: 1000;
}
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.navbar-brand img {
    height: 52px;
    width: auto;
}
.navbar .nav-link {
    color: rgba(255,255,255,0.82) !important;
    font-size: 15px;
    font-weight: 400;
    margin-left: 28px;
    transition: 0.3s;
}
.navbar .nav-link:hover {
    color: #03b0d5 !important;
}
/*--------------------------------------------------
[02. Start Slider]
--------------------------------------------------*/
.slider {
    background: url("../img/bg/background.webp") center center no-repeat;
    background-attachment: fixed;
    background-size: cover;
    min-height: 100vh;
    position: relative;
    padding-bottom: 80px;
    min-height: 100vh; /* Kunci 1: Memaksa tinggi minimal 1 layar penuh, tapi BISA melar ke bawah */
    height: auto;      /* Kunci 2: Membiarkan tingginya menyesuaikan isi konten di dalamnya */
    padding-bottom: 80px;
}

#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}
.live-hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 140px 20px 80px;
    text-align: center;
    color: #ffffff;
}
.live-label {
    display: inline-block;
    margin-bottom: 20px;
    padding: 10px 18px;
    border-radius: 50px;
    background: rgba(3, 176, 213, 0.15);
    border: 1px solid rgba(3, 176, 213, 0.3);
    color: #03b0d5;
    font-size: 14px;
    letter-spacing: 1px;
    font-weight: 500;
}
.live-hero-content h1 {
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.1;
}
.live-hero-content p {
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 18px;
    line-height: 1.8;
    color: rgba(255,255,255,0.85);
}
.live-camera-box {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 20px 60px rgba(0,0,0,0.45);
}
.live-camera-box img {
    width: 100%;
    height: auto; /* Ini adalah kunci ajaib agar gambar selalu proporsional, tidak akan pernah terpotong dari sisi gambarnya */
    display: block;
}
.live-camera-box iframe,
.live-camera-box video {
    width: 100%;
    height: auto;
    max-height: 65vh; /* KUNCI UTAMA: Membatasi tinggi gambar maksimal 65% dari tinggi layar browser */
    display: block;
    border: 0;
    object-fit: contain;
    background: #000; /* Menjaga latar belakang tetap hitam jika rasio gambar mengecil */
}
.camera-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    background: rgba(0,0,0,0.5);
    color: #ffffff;
    font-size: 14px;
    flex-wrap: wrap;
    gap: 10px;
}
.status-item {
    display: flex;
    align-items: center;
    gap: 8px;
}
.dot-live {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff3b3b;
    animation: pulseLive 1.5s infinite;
}
@keyframes pulseLive {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(1.3);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}
@media (max-width: 767.98px) {

    .live-hero-content {
        padding-top: 140px;
    }

    .live-hero-content h1 {
        font-size: 36px;
        line-height: 1.2;
    }

    .live-hero-content p {
        font-size: 15px;
        line-height: 1.7;
    }

    .camera-status-bar {
        flex-direction: column;
        align-items: flex-start;
    }

}
/*--------------------------------------------------
[03. Contact]
--------------------------------------------------*/
.live-contact {
    padding: 100px 20px;
    background: #11161b;
    text-align: center;
}

.live-contact h2 {
    font-size: 36px;
    color: #ffffff;
    margin-bottom: 20px;
}

.live-contact p {
    max-width: 700px;
    margin: 0 auto 30px;
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
}

.btn-blue-live {
    background: linear-gradient(135deg, rgba(2,166,199,1) 0%, rgba(3,127,152,1) 100%);
    color: #ffffff;
    padding: 14px 36px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    transition: 0.3s;
}

.btn-blue-live:hover {
    transform: translateY(-5px);
    color: #ffffff;
    text-decoration: none;
}

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 2px 5px #999;
    z-index: 1000;
}
.my-float {
    margin-top: 12px;
}
/*--------------------------------------------------
[04. Start Footer]
--------------------------------------------------*/
.footer {
    background: #212529;
    padding: 40px 0;
}
.footer h2 {
    font-size: 15px;
    font-weight: 500;
    margin: 20px 0 0;
}

/*--------------------------------------------------
[05. Start Page Loading]
--------------------------------------------------*/
.no-js #loader {
    display: none;
}
.js #loader {
    display: block;
    position: absolute;
    left: 100px;
    top: 0;
}
.se-pre-con {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: url("../img/loader/preloader.svg") center no-repeat #fff;
}

.btn-blue-produk {
    background: linear-gradient(135deg, rgba(2,166,199,1) 0%, rgba(3,127,152,1) 100%);
    box-shadow: 3px 3px 51px 0 rgba(0,0,0,0.2);
    color: #ffffff !important; 
    padding: 15px 50px;
    border-radius: 50px;
    display: inline-block;
    text-decoration: none !important; 
    transition: all 0.4s ease-in-out;
    margin-top: 20px; 
}

.btn-blue-produk:hover {
    transform: translateY(-7px);
    color: #ffffff !important; 
    text-decoration: none !important; 
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) { 
    .navbar {
        background: #212529 !important;
        padding:30px;
        box-shadow: 0 8px 20px rgba(0,0,0,.12);
        backdrop-filter: saturate(140%) blur(6px);
    }
    .navbar .nav-item {
        margin: 0;
        padding: 0;
        margin: 10px 0;
    }
    .navbar .nav-item .nav-link {
        margin: 0;
    }
    .navbar .navbar-brand img {
        height: 40px;
    }
    .slider {
        height: 800px;
        text-align: center;
    }
    .about {
        padding: 120px 0 80px 0;
    }
    .about .box {
        margin-bottom: 40px;
    }
    .services .right {
        margin-top: 40px;
    }
    .mission {
        padding: 80px 0 120px 0;
    }
    .mission .text {
        margin-top: 40px;
    }
    .services .right { min-height: 240px; 
    }
    .footer img{
        width: 300px;
    }
}


/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {
    .navbar {
        background: #212529 !important;
        padding:30px;
    }
    .navbar .nav-item {
        margin: 0;
        padding: 0;
        margin: 10px 0;
    }
    .navbar .nav-item .nav-link {
        margin: 0;
    }
    .slider {
        height: 900px;
        text-align: center;
    }
    .slider .content {
        position: static;         /* lepas dari absolute */
        transform: none;          /* hilangkan translate */
        left: auto; top: auto;
        margin: 0 auto;           /* center via margin */
        padding: 16px;
        width: 92vw;
        max-width: 92vw;
        box-sizing: border-box;
        border-radius: 10px;
    }

    .slider .content span {
        font-size: 18px;
    }

    .slider .content h1 {
        font-size: 34px;          /* dari 65px → 34px */
        line-height: 1.15;
    }

    .slider .content p {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 20px;
    }

    .slider .content .btn-blue {
        padding: 12px 24px;
    }
    .about {
        padding: 120px 0 80px 0;
    }
    .about .box {
        margin-bottom: 40px;
    }
    .services .right {
        margin-top: 40px;
    }
    .mission {
        padding: 80px 0 120px 0;
    }
    .mission .text {
        margin-top: 40px;
    }
    .services .right { min-height: 240px; 
    }
}

/* Medium devices (tablets, less than 992px) */
@media (max-width: 991.98px) {
    .navbar {
        background: #212529 !important;
        padding:30px;
    }
    .navbar .nav-item {
        margin: 0;
        padding: 0;
        margin: 10px 0;
    }
    .navbar .nav-item .nav-link {
        margin: 0;
    }
    .slider {
        height: 900px;
        text-align: center;
    }
    .about {
        padding: 120px 0 80px 0;
    }
    .about .box {
        margin-bottom: 40px;
    }
    .services .right {
        margin-top: 40px;
    }
    .mission {
        padding: 80px 0 120px 0;
    }
    .mission .text {
        margin-top: 40px;
    }
    .services .right { min-height: 240px; 
    }
}