:root {
    --font-main: 'Montserrat', sans-serif;
    --bg-light: #ffffff;
    --text-dark: #1a1a1a;
    --text-gray: #777777;
    --transition-smooth: 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body, html {
    height: 100%;
    background-color: var(--text-dark);
    font-family: var(--font-main);
    color: var(--text-dark);
    overflow: hidden; 
}

/* --- BACKGROUND FULL SCREEN --- */
.bg-container {
    position: absolute; inset: 0; width: 100vw; height: 100vh; z-index: 0;
}

.bg-layer {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    opacity: 0; transform: scale(1.05);
    transition: opacity var(--transition-smooth), transform 8s ease-out;
}
.bg-layer.active { opacity: 1; transform: scale(1); }

.bottom-shadow {
    position: absolute; bottom: 0; left: 0; width: 100%; height: 10vh;
    background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 100%); z-index: 1;
}

/* --- FLOATING SIDEBAR --- */
.sidebar {
    position: absolute;
    top: 40px; left: 40px; bottom: 40px;
    width: 380px;
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 10;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 10px 10px 40px rgba(0,0,0,0.15);
    border-radius: 2px;
}

.brand-logo { font-size: 0.9rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; }

.hero-content { margin-top: -5vh; }

.hero-subtitle {
    font-size: 0.75rem; font-weight: 500; letter-spacing: 4px;
    text-transform: uppercase; color: var(--text-gray); margin-bottom: 1.5rem;
    display: flex; align-items: center; gap: 10px;
}

.hero-subtitle::before {
    content: ''; display: block; width: 30px; height: 1px; background: var(--text-dark);
}

.hero-title {
    font-size: 2.8rem; font-weight: 400; line-height: 1.1;
    text-transform: capitalize; margin-bottom: 2rem;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.btn-enter {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 0.8rem; font-weight: 500; letter-spacing: 2px;
    text-transform: uppercase; color: var(--text-dark);
    text-decoration: none; transition: transform 0.3s ease;
}
.btn-enter span { transition: transform 0.3s ease; }
.btn-enter:hover span { transform: translateX(8px); }

/* SIDEBAR BOTTOM CONTROLS */
.sidebar-bottom { display: flex; justify-content: space-between; align-items: center; }

.nav-buttons { display: flex; gap: 12px; }
.nav-btn {
    width: 45px; height: 45px; border: 1px solid #d0d0d0;
    background: transparent; color: var(--text-dark); cursor: pointer;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    transition: all 0.3s ease; font-size: 1.2rem;
}
.nav-btn:hover { background: var(--text-dark); color: var(--bg-light); border-color: var(--text-dark); }

.btn-projects {
    background: transparent; border: none; color: var(--text-dark);
    font-family: var(--font-main); font-size: 0.8rem; font-weight: 500;
    letter-spacing: 2px; text-transform: uppercase; cursor: pointer;
    display: flex; align-items: center; gap: 8px;
}
.btn-projects span {
    display: flex; align-items: center; justify-content: center;
    width: 25px; height: 25px; background: var(--text-dark); color: white; border-radius: 50%;
    font-size: 1rem; font-weight: 300; transition: transform 0.3s ease;
}
.btn-projects:hover span { transform: rotate(90deg); }

/* --- GLOBAL PROGRESS BAR --- */
.progress-bar-global {
    position: absolute; bottom: 0; left: 0; width: 100vw; height: 3px;
    background: rgba(255,255,255,0.2); z-index: 5;
}
.progress-fill { height: 100%; width: 0%; background: #ffffff; }
.progress-fill.animating { animation: progressAnim 8s linear forwards; }
@keyframes progressAnim { from { width: 0%; } to { width: 100%; } }

/* --- PROJECTS MENU OVERLAY --- */
.projects-overlay {
    position: fixed; top: 100%; left: 0; width: 100vw; height: 100vh;
    background: var(--bg-light); z-index: 100;
    padding: 4vw; transition: top 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    overflow-y: auto; display: flex; flex-direction: column;
}
.projects-overlay.active { top: 0; }

.overlay-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid #eee;
}

.menu-title { font-size: 1.5rem; font-weight: 300; letter-spacing: 2px; text-transform: uppercase; }

.close-menu {
    background: transparent; border: none; color: var(--text-dark);
    font-size: 2.5rem; font-weight: 200; cursor: pointer; transition: transform 0.3s ease;
}
.close-menu:hover { transform: rotate(90deg); }

/* --- FILTER TABS --- */
.filter-tabs {
    display: flex; 
    gap: 15px; 
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.filter-btn {
    background: transparent;
    border: 1px solid #d0d0d0;
    color: var(--text-dark);
    padding: 8px 24px;
    border-radius: 30px;
    font-family: var(--font-main);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}
.filter-btn.active, .filter-btn:hover {
    background: var(--text-dark);
    color: var(--bg-light);
    border-color: var(--text-dark);
}

/* MODIFIKASI GRID 6 KOLOM */
.project-grid {
    display: grid; 
    grid-template-columns: repeat(6, 1fr); /* Ubah angka 5 menjadi 6 di sini */
    gap: 1.5rem; 
    width: 100%; 
    max-width: 1600px; /* Jika dirasa terlalu sempit, Anda bisa mengubah nilai ini menjadi 1800px atau 100% */
    margin: 0 auto;
}

.project-box {
    text-decoration: none; display: block; color: var(--text-dark);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.img-wrapper {
    width: 100%; aspect-ratio: 1/1; overflow: hidden; margin-bottom: 1rem;
    background: #f0f0f0;
}

.img-wrapper img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.8s ease;
}

.box-title { font-size: 0.9rem; font-weight: 500; transition: color 0.3s ease; }

.project-box:hover .img-wrapper img { transform: scale(1.08); }
.project-box:hover .box-title { color: var(--text-gray); }

/* RESPONSIVE */
@media (max-width: 1200px) { .project-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) {
    .sidebar {
        top: auto; left: 20px; right: 20px; bottom: 30px;
        width: auto; height: auto; min-height: 40vh;
        padding: 30px; gap: 30px;
    }
    .hero-title { font-size: 2rem; margin-bottom: 1rem; }
    .hero-content { margin-top: 0; }
    .project-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) { .project-grid { grid-template-columns: 1fr; } }