@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;700;900&display=swap');

/* RESET I OSNOVA */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body { 
    background: #ffffff; 
    color: #000; 
    font-family: 'Inter', sans-serif; 
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.8s cubic-bezier(0.16, 1, 0.3, 1), color 0.4s ease;
    overflow-x: hidden;
}

/* HEADER */
header {
    position: fixed; 
    top: 0; 
    width: 100%;
    display: flex; 
    justify-content: space-between;
    align-items: center;
    padding: 30px 4%; 
    z-index: 2000;
    mix-blend-mode: difference; 
    color: white;
}

.logo { 
    font-weight: 900; 
    font-size: 16px; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    z-index: 3001;
}

.logo a {
    color: inherit;
    text-decoration: none;
}

/* DESKTOP NAVIGACIJA */
nav a { 
    text-decoration: none; 
    color: inherit; 
    margin-left: 25px; 
    font-size: 14px; 
    text-transform: uppercase; 
    font-weight: 700; 
}

/* HAMBURGER IKONA */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 3001;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #fff; /* Bela inicijalno zbog difference moda */
    transition: 0.3s ease;
}

/* HERO SEKCIJA */
.hero { padding: 220px 4% 120px 4%; max-width: 1200px; }
.hero h1 { font-size: clamp(40px, 9vw, 100px); font-weight: 900; letter-spacing: -0.05em; line-height: 1.1; margin-bottom: 25px; }
.hero p { font-size: 20px; font-weight: 300; opacity: 0.6; max-width: 500px; }

/* TICKERS */
.ticker {
    background: #000; color: #fff; padding: 20px 0;
    overflow: hidden; white-space: nowrap; display: flex;
    border-bottom: 1px solid #333;
}
.ticker-wrap { display: inline-block; animation: ticker 30s linear infinite; }
.ticker-wrap span { font-size: 13px; text-transform: uppercase; font-weight: 900; letter-spacing: 3px; margin-right: 60px; }
.ticker.reverse .ticker-wrap { animation: ticker-rev 30s linear infinite; }

@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes ticker-rev { 0% { transform: translateX(-50%); } 100% { transform: translateX(0); } }

/* CATEGORY SECTIONS */
section.category {
    display: flex;
    border-top: 1px solid rgba(0,0,0,0.05);
    min-height: 110vh;
}

.side-content {
    width: 30%;
    padding: 100px 4%;
    position: sticky;
    top: 0; height: 100vh;
    display: flex; flex-direction: column;
}

.side-content h2 { 
    font-size: clamp(30px, 5vw, 45px); font-weight: 900; 
    letter-spacing: -0.03em; text-transform: uppercase; 
    margin-bottom: 20px; line-height: 1.1; 
}

.side-content p { font-size: 15px; line-height: 1.6; color: #555; max-width: 280px; }

/* GALLERY GRID */
.main-gallery { width: 70%; border-left: 1px solid rgba(0,0,0,0.05); }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.item { position: relative; aspect-ratio: 1 / 1; overflow: hidden; outline: 1px solid rgba(0,0,0,0.03); }
.item img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); transition: 0.8s ease; }
.item:hover img { filter: grayscale(0%); transform: scale(1.05); }

.info-strip {
    position: absolute; bottom: 0; left: 0; width: 100%;
    background: #fff; padding: 20px; text-align: center;
    transform: translateY(100%); transition: 0.4s ease;
}
.item:hover .info-strip { transform: translateY(0); }
.info-strip h3 { font-size: 10px; text-transform: uppercase; font-weight: 900; color: #000; }

/* STATEMENT */
.statement { padding: 200px 4%; text-align: center; }
.statement h2 { font-size: clamp(24px, 4vw, 54px); font-weight: 300; max-width: 1000px; margin: 0 auto; line-height: 1.2; }

/* FOOTER */
footer { 
    padding: 180px 4%; 
    background: #000; 
    color: #fff; 
    text-align: center; 
    min-height: 100vh; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.footer-cta h2 { font-size: clamp(50px, 15vw, 150px); font-weight: 900; letter-spacing: -0.07em; line-height: 0.8; margin-bottom: 50px; }
.footer-link { color: #fff; text-decoration: none; font-size: clamp(20px, 4vw, 32px); font-weight: 700; border-bottom: 3px solid #fff; padding-bottom: 10px; transition: 0.3s; }
.footer-link:hover { opacity: 0.5; }

/* --- RESPONZIVNOST (MOBILNI I TABLET) --- */

@media (max-width: 1024px) {
    section.category { flex-direction: column; }
    .side-content { width: 100%; height: auto; position: static; padding: 80px 4% 40px 4%; }
    .main-gallery { width: 100%; border-left: none; }
    .work-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hamburger { display: flex; }

    header nav {
        display: none; /* Sakriveno po defaultu */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: #ffffff !important; /* Forsirano bela pozadina */
        
        flex-direction: column;
        justify-content: flex-start; /* Umesto center, stavljamo na početak (vrh) */
        padding-top: 60px;          /* Smanji ili povećaj ovaj broj da kontrolišeš visinu */
        align-items: center; 
        
        z-index: 3000;
        mix-blend-mode: normal !important;
    }

    header nav.active {
        display: flex !important;
    }

    header nav a {
        color: #000000 !important; /* Forsirano crna slova */
        margin: 10px 0;
        font-size: 16px;
        font-weight: 600;
        text-decoration: none;
        margin-left: 0;
        opacity: 1 !important;
    }

    /* Animacija hamburgera u X i promena boje u crnu */
    .hamburger.open span { background-color: #000000 !important; }
    .hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.open span:nth-child(2) { opacity: 0; }
    .hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

@media (max-width: 480px) {
    .work-grid { grid-template-columns: 1fr; }
}