/* ========================================
   STYLE.CSS (Versi 22 - Perbaikan Target Video)
   ========================================
*/

/* 1. IMPORT FONT */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;700&display=swap');

/* 2. VARIABEL CSS (DARK MODE DI-HARDCODE) */
:root {
    --font-sans: 'IBM Plex Sans', sans-serif;
    --color-text: #f8f9fa;
    --color-background: #0A0A0A; 
    --color-surface: #1A1A1A;
    --color-accent: #FF8A00; 
    --color-accent-hover: #FFB800;
    --color-border: #333333;
    --color-text-muted: rgba(255, 255, 255, 0.5);
    
    --bs-body-color: var(--color-text);
    --bs-body-bg: var(--color-background);
    --bs-border-color: var(--color-border);
    --bs-card-bg: var(--color-surface);
    --bs-card-border-color: var(--color-border);
    --bs-modal-bg: var(--color-surface);
    
    --navbar-width: 80px; 
}

/* 3. GLOBAL STYLING (DARK MODE PAKSA) */
body {
    font-family: var(--font-sans);
    background-color: var(--color-background) !important;
    color: var(--color-text) !important;
    cursor: none; 
    overflow-x: hidden; 
    padding-left: var(--navbar-width); 
}
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans);
    font-weight: 700;
}
a, button, [role="button"] {
    cursor: none !important;
}
.btn, .card, .accordion-item, .form-control, .modal-content, .nav-pills .nav-link {
    border-radius: 0 !important; 
}
.text-muted-custom {
    color: var(--color-text-muted) !important;
}
.text-body-secondary {
    color: var(--color-text-muted) !important;
}

/* 4. KURSOR KUSTOM (PERBAIKAN BUG) */
.cursor-dot, .cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999; 
    transition: transform 0.1s ease-out, opacity 0.1s ease-out, background-color 0.2s ease, border-color 0.2s ease;
    font-size: 0;
    line-height: 0;
    text-indent: -9999px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    overflow: hidden;
}
.cursor-dot { width: 8px; height: 8px; background-color: var(--color-accent); }
.cursor-outline { width: 30px; height: 30px; border: 2px solid var(--color-accent); opacity: 0.8; }
a:hover ~ .cursor-outline, button:hover ~ .cursor-outline, [role="button"]:hover ~ .cursor-outline, .project-card:hover ~ .cursor-outline {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0.3;
}
body.nav-is-open .cursor-dot {
    background-color: #FFFFFF;
}
body.nav-is-open .cursor-outline {
    border-color: #FFFFFF;
}
.side-navbar:hover ~ .cursor-dot {
    background-color: #FFFFFF;
}
.side-navbar:hover ~ .cursor-outline {
    border-color: #FFFFFF;
}


/* 5. NAVIGASI (SAMPING FULL-HEIGHT) */
.side-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--navbar-width);
    height: 100vh;
    background: var(--color-background);
    border-right: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1020;
    transition: background-color 0.3s ease;
}
.side-navbar:hover,
body.nav-is-open .side-navbar {
    background-color: var(--color-accent); 
}
.side-navbar .navbar-logo {
    font-weight: 700;
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 2rem 0;
    height: 100px; 
    display: flex;
    align-items: center;
}
.side-navbar:hover .navbar-logo,
body.nav-is-open .side-navbar .navbar-logo {
    color: var(--color-background); 
}

/* Area klik di tengah */
.navbar-toggler-wrap {
    position: relative;
    width: 100%;
    flex-grow: 1; 
    display: flex;
    align-items: center;
    justify-content: center;
}
.navbar-toggler-btn {
    background: none;
    border: none;
    color: var(--color-text);
    font-size: 24px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
    width: 100%;
    height: 100%;
}
.side-navbar:hover .navbar-toggler-btn,
body.nav-is-open .side-navbar .navbar-toggler-btn {
    color: var(--color-background); 
}
#scroll-top-btn {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(10px);
    pointer-events: none;
}
body.scrolled #menu-toggle-btn {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(-10px);
    pointer-events: none;
}
body.scrolled #scroll-top-btn {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0);
    pointer-events: auto;
}

/* Ikon Sosial Media (Bawah) */
.navbar-socials {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 200px; 
    justify-content: flex-end;
    padding-bottom: 2rem;
}
.navbar-socials a {
    color: var(--color-text);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    padding: 1rem 0;
    transition: color 0.3s ease;
}
.side-navbar:hover .navbar-socials a,
body.nav-is-open .side-navbar .navbar-socials a {
    color: var(--color-background); 
}

/* NAVIGASI OVERLAY (60/40) */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1040;
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.nav-overlay-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 60%; 
    height: 100%;
    background-color: var(--color-accent); 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem;
    overflow-y: auto;
}
.nav-overlay-close-area {
    position: absolute;
    top: 0;
    right: 0;
    width: 40%; 
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}
.nav-overlay-header { display: flex; justify-content: space-between; align-items: center; }
.nav-overlay-header .brand-logo { 
    font-size: 1.5rem; 
    font-weight: 700; 
    text-decoration: none; 
    color: var(--color-background); 
}
.nav-overlay-header .menu-close { 
    font-size: 1.2rem; 
    font-weight: 600; 
    text-decoration: none; 
    color: var(--color-background); 
    background: none; 
    border: none; 
}
.nav-overlay-header .menu-close:hover { 
    color: #FFFFFF; 
}
.nav-overlay-main { padding: 4rem 0; }
.nav-overlay-main .nav-link {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 500; 
    color: var(--color-background); 
    text-decoration: none;
    display: block;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}
.nav-overlay-main .nav-link:hover { 
    color: #FFFFFF; 
}
.nav-overlay-footer {
    border-top: 1px solid rgba(0,0,0,0.2);
    padding-top: 1.5rem;
}
.nav-overlay-footer .socials-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.nav-overlay-footer .socials-row a {
    color: var(--color-background);
    font-size: 1.2rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}
.nav-overlay-footer .socials-row a:hover {
    color: #FFFFFF;
}
.nav-overlay-footer .info-row a {
    color: var(--color-background);
    text-decoration: none;
    margin-right: 1.5rem;
    transition: color 0.3s ease;
}
.nav-overlay-footer .info-row a:hover {
    color: #FFFFFF;
}

/* Tombol Menu Mobile (pengganti .side-navbar) */
.mobile-menu-toggle {
    display: none; 
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1020;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--bs-body-color);
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
}

/* 6. HERO SECTION (DUA KOLOM) */
#hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 8rem;
    padding-bottom: 4rem;
}
.hero-text-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
}
.hero-text-col h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem); 
    font-weight: 700;
}
.hero-text-col h1 .hero-subtitle {
    font-weight: 400; 
}
.hero-text-col .lead {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 400;
}
.hero-image-col {
    position: relative;
    z-index: 1;
    min-height: 70vh;
}
#heroCarousel {
    width: 100%;
    height: 100%;
}
#heroCarousel .carousel-inner,
#heroCarousel .carousel-item {
    height: 100%;
}
.hero-image-tilt-wrap {
    width: 100%;
    height: 100%;
    min-height: 70vh;
    transform-style: preserve-3d;
}
.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 70vh;
    transform: perspective(1000px) scale(1.05);
    transition: transform 0.2s linear;
}

/* KONTROL SLIDER MODERN */
.carousel-controls-modern {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.carousel-controls-modern button {
    background-color: var(--color-surface);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    width: 3.5rem;
    height: 3.5rem;
    font-size: 1.2rem;
    transition: background-color 0.3s ease;
    opacity: 0.7;
}
.carousel-controls-modern button:hover {
    background-color: var(--color-accent);
    color: #000;
    opacity: 1;
}

/* 7. KOMPONEN KUSTOM LAINNYA */
.btn-accent {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: #000;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}
.btn-accent:hover {
    background-color: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    color: #000;
    transform: translateY(-3px);
}
.project-card {
    background-color: var(--bs-card-bg);
    border: 1px solid var(--bs-border-color);
    text-decoration: none;
    color: var(--bs-body-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}
.project-card img { transition: transform 0.4s ease; }
.project-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }
.project-card:hover img { transform: scale(1.05); }
.project-card .card-body { padding: 1.5rem; }
.project-card .card-title { font-weight: 700; }
.accordion-item { background-color: var(--color-surface); border-color: var(--color-border); }
.accordion-button { background-color: var(--color-surface); color: var(--color-text); font-weight: 600; }
.accordion-button:not(.collapsed) { background-color: var(--color-background); color: var(--color-accent); }
.accordion-button:focus { box-shadow: none; }

/* 8. FOOTER (PERMANEN DARK) */
#footer {
    background-color: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: 4rem 0 2rem 0;
}
#footer .footer-link { 
    display: flex; 
    justify-content: space-between; 
    border-bottom: 1px solid var(--color-border); 
    padding-bottom: 1rem; 
    margin-bottom: 1rem; 
    text-decoration: none; 
    color: var(--bs-body-color); 
}
#footer .footer-link:hover span:last-child { 
    color: var(--color-accent); 
}
#footer .footer-link span:first-child { 
    color: var(--color-text-muted);
}

/* 9. RESPONSIVE */
@media (max-width: 991.98px) {
    body {
        padding-left: 0; 
    }
    .side-navbar {
        display: none; 
    }
    .mobile-menu-toggle {
        display: flex; 
    }
    
    .nav-overlay-content { width: 80%; }
    .nav-overlay-close-area { display: block; width: 20%; left: 80%; }

    .hero-text-col {
        text-align: center;
    }
    .hero-image-col {
        margin-top: 3rem;
        min-height: 50vh;
    }
    #hero-section {
        padding-top: 6rem;
    }
    .carousel-controls-modern {
        right: 1rem;
        flex-direction: row; 
        top: auto;
        bottom: 1rem;
        transform: none;
        width: calc(100% - 2rem);
        justify-content: flex-end;
    }
}
@media (max-width: 767.98px) {
    body { cursor: auto; }
    .cursor-dot, .cursor-outline { display: none; }
    .hero-text-col h1 { font-size: 2.2rem; }
    .hero-text-col .lead { font-size: 1.1rem; }
    #footer { text-align: center; }
    #footer .footer-link { flex-direction: column; align-items: center; gap: 0.5rem; }

    .nav-overlay-content { width: 80%; }
    .nav-overlay-close-area { display: block; width: 20%; left: 80%; }
}

/* 10. STYLE HALAMAN LAIN (About, Etc.) */
.page-header {
    padding-top: 120px; 
    padding-bottom: 60px;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 4rem;
}
.page-header h1 {
    font-size: clamp(2.5rem, 7vw, 5rem);
}
.timeline { position: relative; padding-left: 3rem; }
.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--color-border);
}
.timeline-item { position: relative; margin-bottom: 2rem; }
.timeline-item::before {
    content: '';
    position: absolute;
    left: -3.5rem;
    top: 0.25rem;
    width: 1rem;
    height: 1rem;
    background-color: var(--color-accent);
    border: 2px solid var(--color-background);
}
.timeline-item h5 { color: var(--color-accent); }
.contact-form .form-control {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    padding: 1rem;
}
.contact-form .form-control:focus {
    background-color: var(--color-surface);
    color: var(--color-text);
    border-color: var(--color-accent);
    box-shadow: none;
}
.works-grid-item {
    text-decoration: none;
    color: var(--color-text);
    display: block;
    margin-bottom: 3rem;
    position: relative;
    break-inside: avoid;
}

/* --- REVISI: Targetkan IMG dan VIDEO --- */
.works-grid-item img,
.works-grid-item video {
    width: 100%;
    height: auto;
    object-fit: cover;
    margin-bottom: 1rem;
    transition: transform 0.4s ease, opacity 0.4s ease;
}
.works-grid-item:hover img,
.works-grid-item:hover video {
    transform: scale(1.02);
    opacity: 0.8;
}
/* ------------------------------------- */

.works-grid-item h3 {
    font-size: 1.5rem;
    font-weight: 500;
}
.works-grid-item p {
    color: var(--color-text-muted);
}
.works-grid {
    column-count: 2;
    column-gap: 2rem;
}
.works-filter-nav {
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 3rem;
}
.works-filter-nav .nav-link {
    color: var(--color-text-muted);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-bottom: 2px solid transparent;
}
.works-filter-nav .nav-link.active {
    color: var(--color-text);
    background: none;
    border-bottom-color: var(--color-accent);
}
.works-filter-nav .nav-link:hover {
    color: var(--color-text);
}
@media (max-width: 991.98px) {
    .page-header {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
@media (max-width: 767.98px) {
    .works-grid {
        column-count: 1; 
    }
}

/* 11. STYLE PROJECT DETAIL (Digabung) */
.project-hero {
    height: 70vh;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-color: var(--color-surface);
    margin-top: 80px; 
    border-bottom: 1px solid var(--color-border);
}
.project-meta {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid var(--color-border);
}
.project-meta li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.project-meta .meta-title {
    font-weight: 500;
    color: var(--color-text-muted);
}
.project-meta .meta-value {
    font-weight: 700;
    text-align: right;
}
.project-content img {
    width: 100%;
    height: auto;
    margin-bottom: 2rem; 
}
.project-nav {
    padding: 4rem 0;
    border-top: 1px solid var(--color-border);
    margin-top: 4rem;
}
.project-nav a {
    text-decoration: none;
    color: var(--color-text);
    font-size: clamp(1.5rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    transition: color 0.3s ease;
}
.project-nav a:hover {
    color: var(--color-accent);
}
.project-nav .nav-label {
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-text-muted);
}
.project-gallery-3-col {
    column-count: 3;
    column-gap: 2rem;
}
.project-gallery-3-col img {
    width: 100%;
    height: auto;
    margin-bottom: 2rem;
    break-inside: avoid;
}
.img-square-crop {
    width: 100%;
    aspect-ratio: 1 / 1; 
    object-fit: cover; 
}

@media (max-width: 991.98px) {
    .project-hero {
        margin-top: 0; 
    }
    .project-gallery-3-col {
        column-count: 2;
    }
}
@media (max-width: 767.98px) {
    .project-gallery-3-col {
        column-count: 1;
    }
}