/* =========================================
   1. VARIABLES & CORE RESET
   ========================================= */
:root {
    --bg: #050505;
    --text: #ffffff;
    --gray: #333333;
    --subtext: #888888;
    --accent: #00fff9;
    --glitch: #ff00c1;
    --font-body: 'Manrope', sans-serif;
    --font-header: 'Syncopate', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none !important; /* Custom Cursor Default */
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Efek Noise Statis (Global Overlay) */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.05;
    pointer-events: none;
    z-index: 9999;
}

/* =========================================
   2. PRELOADER SYSTEM
   ========================================= */
.loader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeOut 1.5s ease-in-out forwards;
    animation-delay: 1s;
    pointer-events: none;
}

.loader-text {
    font-family: var(--font-header);
    font-size: 1rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    animation: blink 0.2s infinite;
}

@keyframes fadeOut { to { opacity: 0; visibility: hidden; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* =========================================
   3. LAYOUT (DESKTOP)
   ========================================= */
.container {
    display: flex;
    min-height: 100vh;
    position: relative;
}

.sidebar {
    width: 40%;
    height: 100vh;
    position: sticky;
    top: 0;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid var(--gray);
    background: var(--bg);
    z-index: 10;
}

.gallery-feed {
    width: 60%;
    padding: 100px 10%;
}

/* =========================================
   4. COMPONENTS (SIDEBAR)
   ========================================= */
.logo {
    font-family: var(--font-header);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.main-title {
    font-family: var(--font-header);
    font-size: 3.5vw;
    line-height: 1.1;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.system-meta {
    margin-top: 30px;
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--subtext);
}

.dot {
    display: inline-block;
    width: 6px; height: 6px;
    background: #00ff00;
    border-radius: 50%;
    margin-right: 5px;
    box-shadow: 0 0 5px #00ff00;
}

.social-links a {
    display: block;
    margin-bottom: 12px;
    color: var(--subtext);
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s ease;
}

.social-links a:hover {
    color: var(--text);
    padding-left: 10px;
}

/* =========================================
   5. COMPONENTS (GALLERY & ART CARDS)
   ========================================= */
.art-card {
    margin-bottom: 150px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.art-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.image-frame {
    width: 100%;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.image-frame img {
    width: 100%;
    height: auto;
    display: block;
    transition: all 0.7s ease;
}

/* Gambar Bawah */
.image-frame img:first-child {
    position: relative;
    z-index: 1;
    filter: grayscale(100%) contrast(110%);
}

/* Gambar Atas (Hover) */
.image-frame img:nth-child(2) {
    position: absolute;
    top: 0; left: 0;
    z-index: 2;
    opacity: 0;
    filter: grayscale(0%);
}

.art-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-top: 1px solid var(--gray);
    padding-top: 15px;
}

.art-title {
    font-family: var(--font-header);
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.art-meta {
    font-size: 0.75rem;
    color: var(--subtext);
    text-align: right;
}

/* =========================================
   6. COOKIE BANNER SYSTEM
   ========================================= */
.cookie-banner {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 320px;
    background: var(--bg);
    border: 1px solid var(--gray);
    padding: 25px;
    z-index: 10000;
    transform: translateY(150%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.show { transform: translateY(0) !important; }

.cookie-content strong {
    font-family: var(--font-header);
    font-size: 0.9rem;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
}

.cookie-content p { font-size: 0.8rem; color: var(--subtext); margin-bottom: 20px; }

.cookie-buttons { display: flex; gap: 10px; }

.btn-cookie {
    flex: 1;
    background: transparent;
    border: 1px solid var(--gray);
    padding: 10px;
    font-family: var(--font-header);
    font-size: 0.7rem;
    color: var(--subtext);
    cursor: pointer;
    transition: 0.3s;
}

.btn-cookie.accept:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn-cookie.decline:hover { color: var(--glitch); border-color: var(--glitch); }

/* =========================================
   7. CUSTOM CURSOR & GLITCH
   ========================================= */
.custom-cursor {
    width: 20px; height: 20px;
    border: 1px solid var(--text);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transition: transform 0.2s ease, background 0.2s ease;
    mix-blend-mode: difference;
}

.cursor-hover { transform: scale(3); background: var(--text); }

.glitch-wrapper { position: relative; display: inline-block; }
.glitch:hover::before { animation: glitch-anim 0.3s infinite linear alternate-reverse; left: 2px; text-shadow: -1px 0 var(--glitch); clip-path: inset(44% 0 61% 0); }
.glitch:hover::after { animation: glitch-anim2 0.3s infinite linear alternate-reverse; left: -2px; text-shadow: -1px 0 var(--accent); clip-path: inset(54% 0 10% 0); }

@keyframes glitch-anim { 0% { clip-path: inset(30% 0 40% 0); } 100% { clip-path: inset(70% 0 5% 0); } }
@keyframes glitch-anim2 { 0% { clip-path: inset(10% 0 60% 0); } 100% { clip-path: inset(40% 0 20% 0); } }

/* =========================================
   8. MOBILE RESPONSIVE
   ========================================= */
@media (max-width: 900px) {
    .container { flex-direction: column; }
    .sidebar { width: 100%; height: auto; position: relative; padding: 40px 20px; border-bottom: 1px solid var(--gray); border-right: none; }
    .main-title { font-size: 3rem; }
    .gallery-feed { width: 100%; padding: 60px 20px; }
    .art-card { margin-bottom: 80px; }
}

@media (max-width: 600px) {
    .cookie-banner { bottom: 0; right: 0; width: 100%; border: none; border-top: 1px solid var(--gray); }
}

/* MATIKAN CUSTOM CURSOR DI TOUCH DEVICE */
@media (hover: none) and (pointer: coarse), (max-width: 768px) {
    .custom-cursor { display: none !important; }
    * { cursor: auto !important; }
}
