/* --- STYLE.CSS --- */
:root {
    --color-bg: #FFFFFF;
    --color-text: #000000;
    --color-accent: #CDAD00;
}

/* Prevent Layout Shift */
html { scrollbar-gutter: stable; }

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    cursor: none; 
    overflow-x: hidden;
    width: 100%;
}

/* --- RESPONSIVE CURSOR FIX --- */
/* Sakrij kursor na uređajima koji nemaju pravi miš (touch) */
@media (hover: none) and (pointer: coarse) {
    #cursor-dot, #cursor-text { 
        display: none !important; 
        visibility: hidden !important;
        opacity: 0 !important;
    }
    body { cursor: auto !important; }
    .data-hover { cursor: pointer !important; }
    .gallery-image-wrapper { cursor: pointer !important; }
}

/* --- LAYERS & Z-INDEX --- */
#intro-overlay { z-index: 99999; }
.cursor-layer { z-index: 9999; }
.modal-backdrop { z-index: 80; }
header { z-index: 50 !important; }

/* --- PAINT LAYER --- */
#paint-layer {
    position: fixed; top: 0; left: 0; width: 100%; height: 0px;
    z-index: -1; pointer-events: none; will-change: height;
    background-image: repeating-linear-gradient(90deg, transparent 0px, transparent 2px, rgba(0,0,0,0.02) 3px, transparent 4px);
}
#paint-edge {
    position: absolute; bottom: -20px; left: 0; width: 100%; height: 20px; background: inherit;
    clip-path: polygon(0% 0%, 100% 0%, 100% 40%, 99% 80%, 98% 50%, 97% 90%, 95% 85%, 93% 90%, 90% 50%, 88% 40%, 85% 80%, 83% 90%, 80% 40%, 78% 50%, 75% 85%, 73% 90%, 70% 50%, 68% 40%, 65% 80%, 63% 90%, 60% 40%, 58% 50%, 55% 85%, 53% 90%, 50% 50%, 48% 40%, 45% 80%, 43% 90%, 40% 40%, 38% 50%, 35% 85%, 33% 90%, 30% 50%, 28% 40%, 25% 80%, 23% 90%, 20% 40%, 18% 50%, 15% 85%, 13% 90%, 10% 50%, 8% 40%, 5% 80%, 3% 90%, 0% 40%);
}

/* --- INTRO ANIMATION STYLES --- */
#intro-curtain {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: #000000;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem;
    color: white;
    transform: translateY(0);
    transition: transform 1.0s cubic-bezier(0.87, 0, 0.13, 1);
}
#intro-curtain.slide-out { transform: translateY(-100%); }
.intro-char {
    display: inline-block;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}
.intro-char.reveal { transform: translateY(0); opacity: 1; }

/* --- CURSOR --- */
#cursor-dot {
    position: fixed; top: 0; left: 0; width: 20px; height: 20px;
    background-color: white; border-radius: 50%; pointer-events: none;
    transform: translate(-50%, -50%); mix-blend-mode: difference; transition: width 0.3s, height 0.3s;
}
#cursor-text {
    position: fixed; top: 0; left: 0; width: 120px; height: 120px;
    pointer-events: none; transform: translate(-50%, -50%);
    mix-blend-mode: difference; animation: rotateText 10s linear infinite;
    opacity: 0; transition: opacity 0.3s;
}
body.is-hovering #cursor-dot { width: 60px; height: 60px; }
body.is-hovering #cursor-text { opacity: 1; }
@keyframes rotateText { 0% { transform: translate(-50%, -50%) rotate(0deg); } 100% { transform: translate(-50%, -50%) rotate(360deg); } }

/* --- REVEAL & SLICE --- */
.slice-container { position: relative; overflow: hidden; }
.slice-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: #000000; z-index: 10; transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1); transform-origin: bottom;
}
.slice-container.visible .slice-overlay { transform: scaleY(0); }

/* --- MARQUEE --- */
.marquee-wrap { overflow: hidden; white-space: nowrap; }
.marquee-content { display: inline-block; animation: scroll 20s linear infinite; }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* --- MODALS --- */
.modal-backdrop {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.8); backdrop-filter: blur(4px);
    display: flex; justify-content: center; align-items: center;
    opacity: 0; pointer-events: none; transition: opacity 0.3s;
    padding: 20px; 
}
.modal-backdrop.active { opacity: 1; pointer-events: auto; }

/* --- GARAGE DOOR --- */
.garage-door {
    background: repeating-linear-gradient(90deg, #1a1a1a 0px, #2a2a2a 10px, #0f0f0f 20px, #1a1a1a 30px);
    position: relative; box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
}
.garage-door::after {
    content: ''; position: absolute; top: 50%; width: 20px; height: 60px;
    background: #CDAD00; box-shadow: 2px 2px 5px black;
}
.garage-door-left::after { right: 10px; border-radius: 4px 0 0 4px; }
.garage-door-right::after { left: 10px; border-radius: 0 4px 4px 0; }

/* --- GEO LOCATION BOX --- */
.geo-box {
    background: black; color: #CDAD00; font-family: monospace;
    padding: 0.75rem 1rem; border-left: 4px solid #CDAD00;
    margin-bottom: 2rem; font-size: 0.9rem; opacity: 0; transition: opacity 0.5s ease;
}
.geo-box.visible { opacity: 1; }
.cursor-blink { animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* --- UTILS --- */
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }
.lenis.lenis-stopped { overflow: hidden; }
.footer-link:hover { color: #CDAD00; text-decoration: underline; }
.gallery-image-wrapper:hover .gallery-image { transform: scale(1.05); }
.gallery-filter-btn.active { background-color: var(--color-accent); color: black; }
.gallery-image { transition: transform 0.3s ease-out; width: 100%; height: 100%; object-fit: cover; }

/* Gallery Page Specific Padding */
body.gallery-mode {
    padding-top: 100px;
}
@media (min-width: 768px) {
    body.gallery-mode { padding-top: 120px; }
}