/* ==========================================================================
   MINIMALIST CYBER CRIMSON PALETTE
   ========================================================================== */
:root {
    --bg-dark: #0D0D0D;        /* 60% Dominant */
    --bg-card: #1A1A1A;        /* 20% Surface */
    --border-color: #2A2A2A;   /* Muted borders */
    --text-primary: #FFFFFF;   /* Pure White */
    --text-muted: #A0A0A0;     /* Dim Gray */
    --accent-crimson: #FF0033; /* 10% Accent */
    --font-heading: 'Neue Plak Black', sans-serif;
    --font-body: 'Inter', sans-serif;
}

@font-face {
    font-family: 'Neue Plak Black';
    src: url('../fonts/Neue\ Plak\ Black.ttf') format('truetype');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.navbar {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.8rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    background-color: rgba(13, 13, 13, 0) !important;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    border-bottom: 1px solid transparent !important;
    transition: all 0.3s ease-in-out !important;
}

.navbar.scrolled {
    padding: 1rem 3rem !important;
    background-color: rgba(13, 13, 13, 0.9) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid #2A2A2A !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.nav-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo-img {
    height: 38px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.nav-brand:hover .nav-logo-img {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px rgba(255, 0, 51, 0.6));
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-crimson);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* ==========================================================================
   GALLERY PAGE SPECIFIC STYLING
   ========================================================================== */
.gallery-hero {
    padding: 10rem 2rem 3rem;
    text-align: center;
}

.gallery-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    letter-spacing: -1px;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
    text-transform: uppercase;
}

.gallery-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
    line-height: 1.6;
}

.gallery-section {
    padding: 1rem 0 6rem;
}

.gallery-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* GRID INSTAGRAM (5 KOLOM PC, TANPA GAP) */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0px !important;
}

/* ITEM GRID ASPECT RATIO 4:5 */
.insta-grid-item {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background-color: #050505;
    cursor: pointer;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.insta-grid-item img,
.insta-grid-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
    filter: brightness(0.9) contrast(105%);
    background: linear-gradient(110deg, #121212 8%, #1f1f1f 18%, #121212 33%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s infinite;
}

.insta-grid-item video {
    background: linear-gradient(110deg, #121212 8%, #1f1f1f 18%, #121212 33%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s infinite;
}

@keyframes skeletonShimmer {
    to {
        background-position-x: -200%;
    }
}

.video-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(13, 13, 13, 0.85);
    border: 1px solid var(--accent-crimson);
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    z-index: 2;
    pointer-events: none;
    letter-spacing: 1px;
}

/* HOVER OVERLAY INFO */
.insta-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(13, 13, 13, 0.95) 0%, rgba(13, 13, 13, 0.3) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.2rem;
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 3;
}

.insta-cat {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    color: var(--accent-crimson);
    font-weight: 700;
    letter-spacing: 1px;
}

.insta-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: #FFFFFF;
    margin: 0.2rem 0;
    line-height: 1.2;
}

.insta-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.3;
}

/* HOVER STATES */
.insta-grid-item:hover img,
.insta-grid-item:hover video {
    transform: scale(1.08);
    filter: brightness(1) contrast(110%);
}

.insta-grid-item:hover .insta-hover-overlay {
    opacity: 1;
}

/* Lightbox Modal */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 5, 5, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 2rem;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2.5rem;
    font-size: 3rem;
    line-height: 1;
    color: #FFFFFF;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 20002;
    transition: transform 0.3s ease, color 0.3s ease;
}

.lightbox-close:hover {
    color: var(--accent-crimson);
    transform: scale(1.15) rotate(90deg);
}

.lightbox-content-wrapper {
    max-width: 900px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-media-container {
    width: 100%;
    max-height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-media-container img,
.lightbox-media-container video {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid rgba(255, 0, 51, 0.4);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 40px rgba(255, 0, 51, 0.25);
}

.lightbox-caption {
    margin-top: 1.2rem;
    text-align: center;
}

.lightbox-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: #FFFFFF;
    margin: 0.3rem 0;
}

.lightbox-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 300;
}

/* ==========================================================================
   FOOTER / DOCKER
   ========================================================================== */
.footer {
    padding: 2rem 1.5rem;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-dark);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    text-align: center;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================================================
   HAMBURGER MENU & RESPONSIVE
   ========================================================================== */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-bar {
    width: 100%;
    height: 3px;
    background-color: #FFFFFF;
    border-radius: 2px;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 900px) {
    .navbar {
        padding: 1.2rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex !important;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .insta-hover-overlay {
        padding: 0.5rem;
    }

    .insta-title {
        font-size: 0.7rem;
    }

    .insta-desc {
        display: none;
    }

    .nav-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 999;
    }

    .nav-backdrop.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 300px;
        height: 100vh;
        background: rgba(13, 13, 13, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-left: 1px solid rgba(255, 0, 51, 0.3);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 6rem 2rem 2rem;
        gap: 1.8rem;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1000 !important;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.9);
    }

    .nav-links.active {
        right: 0 !important;
    }

    .nav-links a {
        font-size: 1.1rem;
        display: block;
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        width: 100%;
    }

    .nav-toggle.active .hamburger-bar:nth-child(1) {
        transform: translateY(9.5px) rotate(45deg);
        background-color: var(--accent-crimson);
    }

    .nav-toggle.active .hamburger-bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .hamburger-bar:nth-child(3) {
        transform: translateY(-9.5px) rotate(-45deg);
        background-color: var(--accent-crimson);
    }
}