/* =======================================================
  * Template Name: BIMWORKS.ID
  * Template URL: https://bimworks.id/
  * Author: Ferry dharmawan
  * License: https://bimworks.id/
======================================================== */

/* =========================================================
   TOP NAVIGATION
========================================================= */

.topbar {
    height: 64px;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background: #E31B3B;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
}

.brand-title {
    font-weight: 700;
    font-size: 15px;
    line-height: 1.1;
}

.brand-subtitle {
    color: var(--muted);
    font-size: 11px;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-action {
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a5568;
}

/* =========================================================
   SIDEBAR
========================================================= */

.sidebar {
    width: 245px;
    position: fixed;
    top: 64px;
    left: 0;
    bottom: 0;
    background: var(--dark);
    color: #fff;
    padding: 18px 12px;
    overflow-y: auto;
    z-index: 900;
}

.sidebar-label {
    color: #81909e;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 12px 7px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 11px;
    color: #cbd5df;
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 2px;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: rgba(255,255,255,.10);
    color: #fff;
}

.sidebar-link i {
    width: 18px;
    font-size: 15px;
}

.sidebar-status {
    margin: 18px 6px 5px;
    padding: 13px;
    border-radius: 10px;
    background: rgba(255,255,255,.06);
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #20c997;
    border-radius: 50%;
    margin-right: 5px;
}

/* =========================================================
   MAIN
========================================================= */

.main {
    margin-left: 245px;
    padding: 22px;
}

/* =========================================================
   PROJECT HEADER
========================================================= */

.project-header {
    background: #dad7d7;
    border: 1px solid var(--border);
    border-radius: 13px;
    padding: 20px;
    margin-bottom: 18px;
}

.project-title {
    font-size: 23px;
    font-weight: 700;
    margin: 0;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 9px;
    color: var(--muted);
    font-size: 12px;
}

.project-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* =========================================================
   KPI
========================================================= */

.kpi-card {
    background: #dad7d7;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 17px;
    height: 100%;
}


.kpi-icon {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background: #edf4ff;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    margin-bottom: 11px;
}

.kpi-label {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: .4px;
}

.kpi-value {
    font-size: 25px;
    font-weight: 700;
    margin-top: 3px;
}

.kpi-footer {
    margin-top: 6px;
    color: var(--muted);
    font-size: 11px;
}

/* =========================================================
   PANEL
========================================================= */

.panel {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 18px;
    overflow: hidden;
}

.panel-header {
    padding: 14px 17px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.panel-title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
}

.panel-body {
    padding: 17px;
}

/* =========================================================
   CESIUM
========================================================= */

#cesiumContainer {
    width: 100%;
    height: 510px;
    border-radius: 10px;
    overflow: hidden;
    background: #dce5ec;
}

.viewer-toolbar {
    position: absolute;
    top: 78px;
    left: 265px;
    z-index: 10;
    display: flex;
    gap: 6px;
}

.viewer-btn {
    background: rgba(20,30,40,.88);
    border: 1px solid rgba(255,255,255,.15);
    color: #fff;
    padding: 8px 11px;
    border-radius: 7px;
    font-size: 12px;
}

.viewer-btn:hover {
    background: #E31B3B;
}

/* =========================================================
   WEATHER
========================================================= */

.weather-card {
    background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.85),
    rgba(0, 0, 0, 0.55)
);
    color: #fff;
    border-radius: 11px;
    padding: 18px;
    position: relative;
    overflow: hidden;
}

.weather-logo {
    position: absolute;
    top: 13px;
    right: 14px;
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,.15);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.weather-main {
    display: flex;
    align-items: center;
    gap: 13px;
}

.weather-icon {
    font-size: 40px;
}

.temperature {
    font-size: 31px;
    font-weight: 700;
}

.weather-desc {
    font-size: 12px;
    opacity: .85;
}

.weather-location {
    margin-top: 16px;
    font-size: 12px;
}

.weather-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 8px;
    margin-top: 14px;
}

.weather-item {
    background: rgba(255,255,255,.11);
    border-radius: 8px;
    padding: 9px;
}

.weather-item small {
    display: block;
    opacity: .7;
    font-size: 9px;
}

.weather-item strong {
    font-size: 12px;
}

/* =========================================================
   DISCIPLINE
========================================================= */

.discipline-card {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 15px;
    background: #dad7d7;
    height: 100%;
    transition: .2s;
}

.discipline-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 18px rgba(0,0,0,.07);
}

.discipline-icon {
    width: 37px;
    height: 37px;
    background: #edf4ff;
    color: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 11px;
}

.discipline-title {
    font-size: 13px;
    font-weight: 700;
}

.discipline-progress {
    margin-top: 12px;
}

.progress {
    height: 5px;
}

.discipline-footer {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: var(--muted);
    margin-top: 6px;
}

/* =========================================================
   INSIGHT
========================================================= */

.insight {
    border-radius: 9px;
    padding: 11px;
    margin-bottom: 8px;
    font-size: 12px;
    display: flex;
    gap: 9px;
    align-items: flex-start;
}

.insight.warning {
    background: #fff8df;
    color: #765800;
}

.insight.success {
    background: #eaf8f0;
    color: #176c42;
}

.insight.info {
    background: #edf5ff;
    color: #E31B3B;
}

.insight.danger {
    background: #fff0f1;
    color: #9e2631;
}

/* =========================================================
   MODULE CARD
========================================================= */

.module-card {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 15px;
    height: 100%;
}

.module-card i {
    font-size: 21px;
    color: var(--primary);
}

.module-title {
    margin-top: 9px;
    font-size: 13px;
    font-weight: 700;
}

.module-description {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
    margin-top: 5px;
}

/* =========================================================
   FOOTER
========================================================= */

.footer {
    margin-top: 25px;
    padding: 20px 0 10px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 11px;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 992px) {

    .sidebar {
        display: none;
    }

    .main {
        margin-left: 0;
    }

    .viewer-toolbar {
        left: 20px;
    }

}

@media (max-width: 576px) {

    .topbar {
        padding: 0 12px;
    }

    .brand-subtitle {
        display: none;
    }

    .main {
        padding: 12px;
    }

    #cesiumContainer {
        height: 400px;
    }

}


.construction-roadmap {
    font-family: var(--bs-body-font-family);
    padding: 80px 20px;
    background: #050505;
    color: #fff;
    overflow: hidden;
}

/* Pastikan semua elemen mengikuti font utama */
.construction-roadmap {
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}


/* =========================
   HEADER
========================= */

.roadmap-header {
    max-width: 850px;
    margin: 0 auto 70px;
    text-align: center;
}

.roadmap-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    opacity: .65;
    margin-bottom: 12px;
}

.roadmap-header h2 {
    font-size: clamp(30px, 5vw, 52px);
    font-weight: 700;
    margin-bottom: 15px;
}

.roadmap-header p {
    color: rgba(255,255,255,.65);
    max-width: 650px;
    margin: auto;
}


/* =========================
   ROADMAP CONTAINER
========================= */

.roadmap {
    max-width: 1200px;
    margin: auto;
    position: relative;
}


/* =========================
   GARIS TENGAH
========================= */

.roadmap::before {
    content: "";

    position: absolute;

    top: 0;
    bottom: 0;

    left: 50%;

    width: 2px;

    background: linear-gradient(
        to bottom,
        rgba(255,255,255,.05),
        rgba(255,255,255,.35),
        rgba(255,255,255,.05)
    );

    transform: translateX(-50%);
}


/* =========================
   ITEM
========================= */

.roadmap-item {
    position: relative;

    display: flex;

    justify-content: space-between;

    align-items: center;

    min-height: 180px;
}


/* =========================
   CARD
========================= */

.roadmap-card {
    width: 43%;

    padding: 25px;

    background:
        linear-gradient(
            135deg,
            rgba(0,0,0,.85),
            rgba(20,20,20,.65)
        );

    border: 1px solid rgba(255,255,255,.12);

    border-radius: 18px;

    backdrop-filter: blur(12px);

    box-shadow:
        0 15px 40px rgba(0,0,0,.35);

    transition:
        transform .3s ease,
        border-color .3s ease,
        box-shadow .3s ease;
}

.roadmap-card:hover {

    transform: translateY(-5px);

    border-color:
        rgba(255,255,255,.3);

    box-shadow:
        0 20px 50px rgba(0,0,0,.5);
}


/* =========================
   ALTERNATING CARD
========================= */

.roadmap-item:nth-child(odd) {
    flex-direction: row-reverse;
}


/* =========================
   NODE
========================= */

.roadmap-node {

    position: absolute;

    left: 50%;

    transform: translateX(-50%);

    width: 52px;
    height: 52px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 13px;

    font-weight: 700;

    background: #000;

    border:
        2px solid rgba(255,255,255,.4);

    box-shadow:
        0 0 0 8px rgba(0,0,0,.8),
        0 0 30px rgba(255,255,255,.08);

    z-index: 2;
}


/* =========================
   PHASE
========================= */

.phase {

    display: block;

    font-size: 11px;

    font-weight: 600;

    letter-spacing: 1.5px;

    opacity: .55;

    margin-bottom: 8px;
}


/* =========================
   CARD TITLE
========================= */

.roadmap-card h3 {

    margin: 0 0 15px;

    font-size: 21px;

    font-weight: 600;

    line-height: 1.3;
}


/* =========================
   LIST
========================= */

.roadmap-card ul {

    padding-left: 18px;

    margin: 0;

    color:
        rgba(255,255,255,.65);

    font-size: 14px;

    line-height: 1.8;
}

.roadmap-card li {
    margin-bottom: 2px;
}


/* =========================
   FINAL DIGITAL TWIN
========================= */

.roadmap-final .roadmap-card {

    border-color:
        rgba(255,255,255,.3);

    background:
        linear-gradient(
            135deg,
            rgba(0,0,0,.95),
            rgba(25,25,25,.75)
        );
}


/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    .construction-roadmap {
        padding: 55px 15px;
    }


    .roadmap {

        padding-left: 30px;

    }


    /* Garis kiri */

    .roadmap::before {

        left: 12px;

    }


    /* Semua item menjadi vertical */

    .roadmap-item,
    .roadmap-item:nth-child(odd) {

        flex-direction: row;

        min-height: auto;

        margin-bottom: 25px;

    }


    /* Card */

    .roadmap-card {

        width: 100%;

        margin-left: 20px;

        padding: 20px;

        border-radius: 15px;

    }


    /* Node */

    .roadmap-node {

        left: 12px;

        width: 38px;

        height: 38px;

        font-size: 10px;

    }


    /* Heading */

    .roadmap-header h2 {

        font-size: 32px;

    }


    .roadmap-header p {

        font-size: 14px;

    }


    .roadmap-card h3 {

        font-size: 18px;

    }


    .roadmap-card ul {

        font-size: 13px;

        line-height: 1.7;

    }

}


/* =========================================================
   VIDEO GALLERY
========================================================= */

.video-gallery {
    width: 100%;
    padding: 30px;
    background: rgba(5, 5, 5, .72);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    color: #fff;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 20px;
    box-sizing: border-box;
}

.video-gallery-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.video-kicker {
    font-size: 10px;
    letter-spacing: 3px;
    color: #888;
}

.video-gallery h2 {
    margin: 5px 0 0;
    font-size: 26px;
    font-weight: 600;
}

.video-view-all {
    border: 1px solid rgba(255,255,255,.15);
    background: rgba(255,255,255,.06);
    color: #fff;
    padding: 9px 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: .25s;
}

.video-view-all:hover {
    background: rgba(255,255,255,.15);
}


/* ROW */

.video-row {
    margin-bottom: 28px;
}

.video-row-title {
    font-size: 13px;
    font-weight: 500;
    color: #aaa;
    margin-bottom: 10px;
}


/* HORIZONTAL SLIDER */

.video-slider {
    display: flex;
    gap: 14px;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-behavior: smooth;

    scrollbar-width: none;

    padding-bottom: 5px;

    cursor: grab;

    touch-action: pan-x;
}

.video-slider::-webkit-scrollbar {
    display: none;
}


/* VIDEO CARD */

.video-card {
    position: relative;

    flex: 0 0 300px;

    height: 170px;

    overflow: hidden;

    border-radius: 14px;

    background: #111;

    border: 1px solid rgba(255,255,255,.08);

    cursor: pointer;

    transition:
        transform .25s ease,
        border-color .25s ease;
}

.video-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,.25);
}

.video-card video {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
}


/* GRADIENT */

.video-card::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(0,0,0,.85),
            transparent 55%
        );

    pointer-events: none;
}


/* OVERLAY */

.video-overlay {
    position: absolute;

    z-index: 2;

    left: 12px;
    right: 12px;
    bottom: 10px;

    display: flex;

    align-items: center;

    gap: 8px;

    font-size: 12px;

    color: #fff;
}

.play-icon {
    width: 28px;
    height: 28px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(255,255,255,.9);

    color: #000;

    font-size: 10px;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .video-gallery {
        padding: 18px;
        border-radius: 16px;
    }

    .video-gallery h2 {
        font-size: 21px;
    }

    .video-row {
        margin-bottom: 22px;
    }

    .video-card {
        flex: 0 0 220px;
        height: 125px;
    }

    .video-slider {
        gap: 10px;
    }

}

@media (max-width: 480px) {

    .video-gallery-header {
        margin-bottom: 22px;
    }

    .video-card {
        flex: 0 0 190px;
        height: 110px;
    }

    .video-row-title {
        font-size: 11px;
    }

}
