:root {
    --charcoal: #121212;
    --rich-black: #0a0a0a;
    --gold: #c5a059;
    --gold-dark: #a68446;
    --muted-wood: #8b5e3c;
    --transition-standard: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

/* --- BASE & TYPOGRAPHY --- */
body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--rich-black);
    color: #e5e5e5;
    overflow-x: hidden;
    cursor: none; /* Kursor kustom aktif */
}

html { 
    scroll-behavior: smooth; 
}

/* --- CUSTOM CURSOR --- */
#cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--gold);
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
}

#cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid var(--gold);
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.15s ease-out;
}

/* --- UTILITIES --- */
.text-gold { color: var(--gold); }
.bg-gold { background-color: var(--gold); }
.border-gold { border-color: var(--gold); }
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* --- NAVIGATION --- */
nav {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(197, 160, 89, 0.15);
    transition: var(--transition-standard);
}

#mobile-menu {
    position: fixed;
    inset: 0;
    transform: translateY(-100%);
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
    background-color: var(--rich-black);
    z-index: 80;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#mobile-menu.active {
    transform: translateY(0);
}

/* --- HERO & INDUSTRIAL ELEMENTS --- */
.hero-gradient {
    background: linear-gradient(rgba(10, 10, 10, 0.75), rgba(10, 10, 10, 0.95)), 
                url('img/in.jpg');
    background-size: cover;
    background-position: center;
}

.nautical-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    width: 100%;
    margin: 1.5rem 0;
}

/* --- MENU CARD & TABS --- */
.menu-card {
    background: #161616;
    border: 1px solid rgba(197, 160, 89, 0.1);
    transition: var(--transition-standard);
}

.menu-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.tab-btn {
    position: relative;
    color: #888;
    transition: color 0.3s ease;
    cursor: pointer;
}

.tab-btn.active { color: var(--gold); }

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: var(--transition-standard);
    transform: translateX(-50%);
}

.tab-btn.active::after { width: 80%; }

/* --- GALLERY SYSTEM --- */
#gallery-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

@media (min-width: 768px) {
    #gallery-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: #1a1a1a;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Thumbnail tetap di-crop kotak agar rapi */
    object-position: center;
    filter: grayscale(20%);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.gallery-item:hover img {
    transform: scale(1.08);
    filter: grayscale(0%);
}

/* --- MODAL SYSTEM (REFINED) --- */
.modal-overlay {
    background: rgba(0, 0, 0, 0.92);
    display: none; /* Default hidden */
    opacity: 0;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

/* Class helper untuk JS */
.modal-overlay.flex {
    display: flex;
}

/* Gallery Pop-out Spesifik */
#gallery-modal {
    padding: 2rem;
    cursor: zoom-out; /* Memberi petunjuk bisa klik luar untuk tutup */
}

#modal-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain; /* FOTO MUNCUL PENUH TANPA POTONGAN */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255,255,255,0.1);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: default;
}

#gallery-modal[style*="opacity: 1"] #modal-img {
    transform: scale(1);
}

/* Close Button Enhancement */
.close-modal-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: white;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    padding: 0.5rem;
    transition: var(--transition-standard);
    z-index: 150;
}

.close-modal-btn:hover {
    background: var(--gold);
    color: var(--rich-black);
    transform: rotate(90deg);
}

/* --- RESPONSIVE FIXES --- */
@media (max-width: 768px) {
    #cursor-dot, #cursor-outline { display: none !important; }
    body { cursor: auto; }
    
    .hero-title { 
        font-size: 3rem; 
        line-height: 1.1; 
    }

    #gallery-modal {
        padding: 1rem;
    }
    
    #modal-img {
        max-width: 95vw;
        max-height: 70vh;
    }
}

/* --- ANIMATION HELPERS --- */
[data-aos] {
    pointer-events: none;
}
.aos-animate {
    pointer-events: auto;
}