/* =============================
   1. RESET & BASE STYLES
   ============================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #FAFAFA;
}

/* =============================
   2. COMPONENTS - DESKTOP BASE
   ============================= */

/* Card hover effect */
.card-hover {
    position: relative;
    transition: all 0.3s ease;
}
.card-hover:hover::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: 1.5rem;
    background-color: #001659;
    transform: translate(8px, 8px);
}

/* Feature list */
.features-list {
    list-style: none;
}
.feature-item {
    gap: 12px;
}
.icon-box {
    background-color: #D9D9D9;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
    padding: 6px;
}
.icon-box img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    display: block;
}
.feature-text {
    font-size: 14px;
    line-height: 1.1;
    color: #222;
}

/* Buttons */
a.btn.see-details {
    background-color: #08D1EB;
    color: black;
    text-decoration: none;
    transition: all 0.3s ease;
}
a.btn.see-details:hover {
    background-color: #06bcd4;
    color: black;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
}
a.btn.brochure {
    background-color: #ffffff !important;
    color: black !important;
    border: none !important;
    text-decoration: none !important;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease !important;
}
a.btn.brochure:hover {
    background-color: #06bcd4 !important;
    color: black !important;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.4) !important;
}
.brochure {
    pointer-events: auto;
    position: relative;
    z-index: 2;
}

a.btn.datasheet-right {
    background-color: #08D1EB !important;
    color: black !important;
    border: none !important;
    text-decoration: none !important;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease !important;
    margin-left: auto; 
    left: 450px;
    width: 198px;
    height: 81px;
    display: flex; 
    align-items: center;
    justify-content: center; 
}
a.btn.datasheet-right:hover {
    background-color: #08D1EB !important;
    color: white !important;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.4) !important;
}
.datasheet-right {
    pointer-events: auto;
    position: relative;
    z-index: 2;
}

a.btn.datasheet-left {
    background-color: #08D1EB !important;
    color: black !important;
    border: none !important;
    text-decoration: none !important;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease !important;
    margin-left: auto; 
    width: 198px;
    height: 81px;
    right: 20px;
    display: flex; 
    align-items: center;
    justify-content: center; 
}
a.btn.datasheet-left:hover {
    background-color: #08D1EB!important;
    color: white !important;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.4) !important;
}
.datasheet-left {
    pointer-events: auto;
    position: relative;
    z-index: 2;
}

/* Modal backdrop transparent */
.modal-backdrop {
    background-color: transparent !important;
}
.modal-backdrop.show {
    opacity: 0 !important;
    pointer-events: none;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: 0 0 0 rgba(37, 211, 102, 0.7);
    z-index: 1000;
    cursor: pointer;
    animation: pulseShadow 2s infinite;
}
.whatsapp-float:hover {
    background-color: #20b955;
}
@keyframes pulseShadow {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Customer Service Popup */
.cs-popup {
    position: fixed;
    bottom: 90px;
    right: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    padding: 15px;
    width: 300px;
    display: none;
    z-index: 1001;
}
.cs-header {
    display: flex;
    align-items: center;
    font-weight: bold;
    margin-bottom: 10px;
}
.cs-item {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}
.cs-item:hover {
    background: #f5f5f5;
}
.cs-avatar {
    width: 70px;
    height: auto;
    border-radius: 50%;
    margin-right: 10px;
}
.online-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #28a745;
    border-radius: 50%;
    margin-right: 5px;
}

/* CCTV Carousel */
#cctvCarousel img {
    width: auto !important;
}
#cctvCarousel .see-details {
    padding: 6px 12px;
    font-size: 0.9rem;
}

.card-text {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  transition: all 0.3s ease;
}

.card-expanded {
  /* Membuat card lebih besar */
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  z-index: 10;
  position: relative;
  transition: all 0.3s ease;
}

.card-expanded .card-text {
  -webkit-line-clamp: unset !important;
  overflow: visible !important;
  display: block !important;
}

/* CCTV Carousel khusus halaman ini */
.cctv-carousel {
    width: 250px;
    height: auto;
    margin: 0 auto; /* supaya center */
}

.cctv-carousel .carousel-inner {
    width: 100%;
    height: auto;
}

.cctv-carousel .cctv-img {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.cctv-carousel p {
    margin-top: 10px;
    font-size: 0.9rem;
}

/* Responsive untuk tablet / mobile */
@media (max-width: 768px) {

}

@media (max-width: 576px) {

}



/* =============================
   3. RESPONSIVE - TABLET (≤768px)
   ============================= */
@media (max-width: 768px) {
    /* Layout adjustments */
    .col-lg-6.text-center {
        width: 100%;
        padding: 0 15px;
        margin-bottom: 1rem;
    }
    .col-lg-6.text-center > div {
        width: 100%;
    }
    .col-lg-6.text-center img {
        max-width: 100%;
        height: auto;
    }

    /* WhatsApp Button */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 25px;
        right: 15px;
    }
    .cs-popup {
        width: 60%;
        right: 5%;
        padding: 10px;
    }
    .cs-avatar {
        width: 50px;
        margin-right: 8px;
    }
    .cs-header {
        font-size: 14px;
    }
    .cs-item {
        padding: 6px;
    }

    /* Step Sections */
    #step1to3 .col-md-4,
    #step4to6 .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    #step1to3 img,
    #step4to6 img {
        width: 100% !important;
        height: auto !important;
        border-radius: 20px !important;
    }
    #step1to3 h4,
    #step4to6 h4 {
        font-size: 1.1rem;
    }

    /* Carousel Controls smaller */
    #step1to3 button,
    #step4to6 button {
        width: 45px !important;
        height: 45px !important;
    }
    #step1to3 button svg,
    #step4to6 button svg {
        width: 24px !important;
        height: 24px !important;
    }

    /* Titles & Buttons */
    section.position-relative h1 {
        font-size: 1.5rem;
        line-height: 1.4;
    }
    section.position-relative .btn {
        padding: 6px 14px;
        font-size: 0.85rem;
    }

    /* CCTV Carousel smaller */
    #cctvCarousel {
        width: 200px !important;
        height: 200px !important;
    }
    #cctvCarousel .carousel-inner {
        width: 200px !important;
        height: 200px !important;
        border-width: 8px !important;
    }
    #cctvCarousel img {
        max-height: 60px !important;
        bottom: 80px !important;
        position: relative;
    }
    #cctvCarousel .see-details {
        padding: 4px 10px;
        font-size: 0.8rem;
    }
    .cctv-carousel {
        width: 200px;
        height: 200px;
    }
    .cctv-carousel .cctv-img {
        max-height: 180px;
    }
}

/* =============================
   4. RESPONSIVE - MOBILE SMALL (≤576px)
   ============================= */
@media (max-width: 576px) {
    /* Feature icon smaller */
    .icon-box {
        width: 56px;
        height: 56px;
    }
    .icon-box img {
        width: 30px;
        height: 30px;
    }
    .feature-text {
        font-size: 13px;
    }

    /* Step 1 heading smaller */
    #step1to3 h1 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    #step1to3 p {
        font-size: 0.9rem;
    }

    /* CCTV Button tiny */
    .see-details {
        font-size: 8px;
        padding: 3px 3px;
    }

    .features-list {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
        align-items: center;
        justify-items: center;
    }

    .features-list .list-inline-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        height: 120px; /* tinggi seragam */
        width: 120px;  /* lebar seragam */
    }

    .feature-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .col-md-4.text-center {
        margin-top: 25px;
        margin-bottom: 25px;
    }

    .row.g-0 > div {
        margin: 10px;
        border-radius: 20px !important;
    }

    a.btn.datasheet-right,
    a.btn.datasheet-left {
        left: auto !important;
        right: auto !important;  
        margin-left: auto !important;
        margin-right: auto !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .cctv-carousel {
        width: 150px;
        height: 150px;
    }
    .cctv-carousel .cctv-img {
        max-height: 140px;
    }
}