/* Reset i Varijable */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --m-orange: #ff5500;
    --gold: #D4AF37;
    --teal: #498986;
    --bg: #050506;
    --blue-dark: #050a14;
    --pastel: #f7f3ed;
    --f-hero: 'Bebas Neue', sans-serif;
    --f-body: 'Lora', serif;
    --f-serif: 'Cinzel', serif;
}

body { background: var(--bg); color: #fff; font-family: var(--f-body); overflow-x: hidden; }

/* Navigacija */
.main-nav { position: fixed; top: 0; width: 100%; z-index: 1000; background: transparent; padding: 25px 0; }
.nav-container.nav-right { max-width: 1200px; margin: 0 auto; display: flex; justify-content: flex-end; align-items: center; padding: 0 40px; }
/* Nav links - dropdown globalno */
.nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: calc(100% + 10px);
    right: 40px;
    background: rgba(5, 5, 6, 0.96);
    border: 1px solid var(--teal);
    border-radius: 6px;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.35s ease, opacity 0.3s ease, padding 0.3s ease;
    min-width: 200px;
}
.nav-links.open {
    max-height: 300px;
    opacity: 1;
    pointer-events: all;
    padding: 12px 0;
}
.nav-links a { font-family: var(--f-hero); color: var(--teal); text-decoration: none; margin-left: 0; padding: 12px 24px; font-size: 1.1rem; letter-spacing: 1px; width: 100%; text-align: center; display: block; border-bottom: 1px solid rgba(73,137,134,0.15); }
.nav-links a:last-child { border-bottom: none; }

/* Hamburger - vidljivo svugdje */
.hamburger { display: flex; flex-direction: column; justify-content: space-between; width: 32px; height: 22px; background: none; border: none; cursor: pointer; padding: 0; z-index: 1100; }
.hamburger span { display: block; width: 100%; height: 3px; background: var(--teal); border-radius: 2px; transition: all 0.3s ease; transform-origin: center; }
/* X animacija */
.hamburger.active span:nth-child(1) { transform: translateY(9.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-9.5px) rotate(-45deg); }

/* 1. Hero - Razdvojeni elementi (gore i dolje) */
.hero-section {
    position: relative;
    height: 100vh;
    background: #000 url('https://www.didaboza.hr/gospodaroluje/HERO-vizual.jpg') no-repeat;
    background-size: 115%;
    background-position: center 60%;
    display: flex;
    flex-direction: column;
    padding-top: 6vh;
    padding-bottom: 0;
    text-align: center;
}
.vignette { display: none; }
.hero-container { position: relative; z-index: 10; width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: space-between; }

.logo-area-top { display: flex; flex-direction: column; align-items: center; width: 100%; padding-top: 0; }
.brand-logo-top { width: 180px; margin-bottom: 8px; }
.present-text { font-family: var(--f-hero); letter-spacing: 8px; font-size: 1.1rem; margin-bottom: 0; color: #fff; }

.logo-area-bottom { display: flex; flex-direction: column; align-items: center; width: 100%; margin-top: auto; padding-bottom: 0; padding-top: 50px; }
.movie-logo-massive {
    width: 95%;
    max-width: 1050px;
    filter: drop-shadow(0 0 40px rgba(0,0,0,1));
    margin-bottom: 16px;
    display: block;
}

/* Tanka narandžasta strelica */
.scroll-arrow {
    width: 35px;
    height: 35px;
    color: var(--m-orange);
    animation: bounceArrow 2s infinite ease-in-out;
}
@keyframes bounceArrow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(15px); }
}

/* 2. CTA - Tekst iznad, povećan */
.cta-section { padding: 100px 0 140px 0; text-align: center; }
.cta-kino-title { font-family: var(--f-hero); font-size: 4.5rem; color: #fff; letter-spacing: 3px; margin-bottom: 30px; }
.cta-zelis-title { font-family: var(--f-hero); font-size: 3rem; color: #fff; letter-spacing: 2px; margin-bottom: 20px; }
.cta-promo-big { font-family: var(--f-hero); font-size: 2.2rem; color: #999; line-height: 1.4; margin-bottom: 40px; }
.cta-button-marvel { display: inline-block; padding: 22px 70px; background: var(--m-orange); color: #fff; font-family: var(--f-hero); font-size: 2.2rem; text-decoration: none; letter-spacing: 3px; box-shadow: 0 0 25px var(--m-orange); border-radius: 4px; transition: 0.3s; }
.white-text { color: #fff; } .orange-highlight { color: var(--m-orange); border-bottom: 2px solid var(--m-orange); }

/* 3. Shop */
.shop-section-light { background: var(--pastel); padding: 120px 0; color: #111; text-align: center; }
.dark-title { font-family: var(--f-hero); font-size: 3.5rem; margin-bottom: 80px; letter-spacing: 2px; }
.product-grid-dynamic { display: flex; flex-wrap: wrap; justify-content: center; gap: 60px; max-width: 1200px; margin: 0 auto; }
.product-item { flex: 1 1 300px; max-width: 350px; }
.jar-link { text-decoration: none; color: inherit; display: block; }

.jar-img { width: 260px; margin-bottom: 15px; filter: drop-shadow(0 15px 30px rgba(73, 137, 134, 0.5)); }
.product-category { font-family: var(--f-hero); color: #777; font-size: 1.1rem; letter-spacing: 1px; display: block; margin-bottom: 5px; }
.jar-title.orange-text { font-family: var(--f-hero); font-size: 1.8rem; color: var(--m-orange); letter-spacing: 1px; }
.fig-subtitle-teal { color: var(--teal); font-weight: bold; font-style: italic; font-size: 1rem; margin-top: 5px; }

/* 4. Trailer */
.trailer-blue-bg { background: var(--blue-dark); padding: 100px 0; margin-bottom: 0; }
.trailer-pastel-bg { background: var(--pastel); padding: 100px 0; margin-bottom: 0; }
.container-medium { max-width: 1000px; margin: 0 auto; padding: 0 20px; }
.video-wrapper-limited { position: relative; padding-bottom: 56.25%; height: 0; box-shadow: 0 0 60px rgba(0,0,0,0.8); }
.video-wrapper-limited iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* 5. Legenda */
.about-section {
    padding: 140px 0 220px 0;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.78), rgba(0,0,0,0.78)), url('drvo.jpg') no-repeat center center;
    background-size: cover;
}
.marvel-title { font-family: var(--f-hero); font-size: 4rem; margin-bottom: 50px; letter-spacing: 4px; }
.gold-quote { color: var(--m-orange); font-size: 2.5rem; font-style: italic; font-weight: bold; margin-bottom: 40px; line-height: 1.2; }
.lore-content { max-width: 750px; margin: 0 auto; color: #ccc; font-size: 1.35rem; line-height: 2; }
.wave-divider { width: 120px; margin: 50px auto 30px auto; }
.wave-divider svg { width: 100%; height: 20px; display: block; }
.wave-path {
    stroke-width: 1.8;
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    animation: drawWave 2s ease forwards;
}
@keyframes drawWave {
    to { stroke-dashoffset: 0; }
}
.nebo-signature { margin-top: 0; font-family: var(--f-serif); font-size: 1.1rem; color: #fff; line-height: 1.6; }

/* 6. Galerija */
.gallery-section { padding: 20px 0 100px 0; text-align: center; }
.gallery-grid-marvel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; padding: 0 20px; }
.gal-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; cursor: pointer; border: 1px solid #222; transition: 0.3s; }
.gal-img:hover { filter: brightness(1.2); transform: scale(1.02); }

.footer { padding: 60px; text-align: center; font-family: var(--f-hero); color: #888; font-size: 0.9rem; }
.footer-shop-link { display: inline-block; margin-top: 16px; font-family: var(--f-hero); font-size: 1rem; letter-spacing: 2px; color: var(--m-orange); text-decoration: none; border-bottom: 1px solid var(--m-orange); padding-bottom: 2px; transition: opacity 0.2s; }
.footer-shop-link:hover { opacity: 0.75; }

/* Lightbox */
.lightbox { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); z-index: 3000; justify-content: center; align-items: center; }
.lightbox img { max-width: 90%; max-height: 80%; }
.close-btn { position: absolute; top: 30px; right: 40px; font-size: 50px; color: #fff; cursor: pointer; }

@media (max-width: 768px) {

    /* Navigacija */
    .nav-container.nav-right { justify-content: flex-end; padding: 0 20px; position: relative; }
    .nav-links { right: 20px; }
    .nav-links a { font-size: 1rem; }

    /* Hero */
    .hero-section { padding-top: 5vh; padding-bottom: 3vh; background-size: cover; background-position: center top; }
    .logo-area-top { padding-top: 6vh; }
    .brand-logo-top { width: 160px; }
    .present-text { font-size: 0.7rem; letter-spacing: 4px; }
    .movie-logo-massive { width: 100%; max-width: 100%; }
    .logo-area-bottom { padding-bottom: 1vh; }
    .scroll-arrow { width: 26px; height: 26px; }

    /* CTA */
    .cta-section { padding: 60px 20px 120px 20px; }
    .cta-promo-big { font-size: 1.4rem; line-height: 1.5; }
    .cta-button-marvel { padding: 16px 40px; font-size: 1.6rem; letter-spacing: 2px; }

    /* Shop */
    .shop-section-light { padding: 70px 20px; }
    .dark-title { font-size: 2.2rem; margin-bottom: 50px; }
    .product-grid-dynamic { gap: 40px; }
    .product-item { flex: 1 1 100%; max-width: 100%; }
    .jar-img { width: 200px; }

    /* Trailer */
    .trailer-blue-bg { padding: 60px 0; }

    /* Legenda */
    .about-section { padding: 80px 20px 30px 20px; }
    .marvel-title { font-size: 2.2rem; letter-spacing: 2px; }
    .gold-quote { font-size: 1.5rem; }
    .lore-content { font-size: 1rem; }
    .nebo-signature { font-size: 0.95rem; }

    /* Galerija */
    .gallery-section { padding: 10px 0 60px 0; }
    .gallery-grid-marvel { grid-template-columns: 1fr; gap: 8px; padding: 0 12px; }

    /* Footer */
    .footer { padding: 40px 20px; font-size: 0.75rem; }
}