:root {
    --bg-dark: #0f172a;
    --bg-light: #f9fafb;
    --text-main: #0b1120;
    --text-muted: #4b5563;
    --accent-1: #38bdf8;
    --accent-2: #a855f7;
    --accent-3: #22c55e;
    --accent-4: #f97316;
    --accent-5: #e11d48;
    --accent-6: #22d3ee;
    --accent-7: #6366f1;
    --accent-8: #84cc16;
    --accent-9: #ec4899;
    --accent-10: #facc15;
    --radius-lg: 18px;
    --shadow-soft: 0 18px 40px rgba(15,23,42,0.18);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: linear-gradient(180deg, #020617 0%, #0b1120 40%, #020617 100%);
    color: var(--bg-light);
    line-height: 1.6;
}

/* HERO */

.hero {
    position: relative;
    min-height: 65vh;
    background-image:
        linear-gradient(120deg, rgba(56,189,248,0.5), rgba(129,140,248,0.6)),
        url("img/hero-bg.jpg");
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem 5rem;
    text-align: center;
    color: white;
}

.hero .overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(15,23,42,0.2), rgba(15,23,42,0.85));
}

.hero-content {
    position: relative;
    max-width: 900px;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(2.2rem, 3.2vw, 3.8rem);
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.hero h1 span {
    display: inline-block;
    background: linear-gradient(120deg, #f97316, #22c55e, #38bdf8, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    font-size: 1.05rem;
    max-width: 650px;
    margin: 0 auto 2rem;
    color: #e5e7eb;
}

.btn-primary {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 999px;
    border: none;
    background: linear-gradient(120deg, #38bdf8, #a855f7);
    color: white;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(15,23,42,0.4);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 45px rgba(15,23,42,0.5);
    filter: brightness(1.08);
}

/* NAVBAR */

.main-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(16px);
    background: linear-gradient(90deg, rgba(15,23,42,0.92), rgba(15,23,42,0.88));
    border-bottom: 1px solid rgba(148,163,184,0.25);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.6rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #e5e7eb;
    white-space: nowrap;
}

.main-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0;
    margin: 0;
    justify-content: flex-end;
}

.main-nav a {
    display: inline-block;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.8rem;
    text-decoration: none;
    color: #e5e7eb;
    background: rgba(15,23,42,0.7);
    border: 1px solid transparent;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.main-nav a:hover {
    background: rgba(148,163,184,0.2);
    border-color: rgba(148,163,184,0.4);
}

.main-nav a.active {
    background: linear-gradient(120deg, #38bdf8, #a855f7);
    color: white;
    border-color: transparent;
}

/* SECTIONS */

main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2.5rem 1.25rem 4rem;
}

.content-section {
    margin-bottom: 2.5rem;
}

.section-inner {
    border-radius: var(--radius-lg);
    background: radial-gradient(circle at top left, rgba(148,163,184,0.2), transparent 60%),
                radial-gradient(circle at bottom right, rgba(30,64,175,0.3), transparent 60%),
                rgba(15,23,42,0.96);
    padding: 1.75rem 1.6rem 1.7rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(148,163,184,0.3);
}

/* šarena ivica po sekcijama */
.accent-1 .section-inner { border-left: 5px solid var(--accent-1); }
.accent-2 .section-inner { border-left: 5px solid var(--accent-2); }
.accent-3 .section-inner { border-left: 5px solid var(--accent-3); }
.accent-4 .section-inner { border-left: 5px solid var(--accent-4); }
.accent-5 .section-inner { border-left: 5px solid var(--accent-5); }
.accent-6 .section-inner { border-left: 5px solid var(--accent-6); }
.accent-7 .section-inner { border-left: 5px solid var(--accent-7); }
.accent-8 .section-inner { border-left: 5px solid var(--accent-8); }
.accent-9 .section-inner { border-left: 5px solid var(--accent-9); }
.accent-10 .section-inner { border-left: 5px solid var(--accent-10); }

.content-section h2 {
    margin-top: 0;
    margin-bottom: 1.3rem;
    font-size: 1.4rem;
    color: #e5e7eb;
}

.section-grid {
    display: grid;
    grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.5fr);
    gap: 1.6rem;
    align-items: flex-start;
}

.section-grid.single-column {
    grid-template-columns: minmax(0, 1fr);
}

.text-block p {
    margin: 0 0 0.9rem;
    color: #e5e7eb;
    font-size: 0.98rem;
}

.text-block strong {
    color: #facc15;
}

.image-block {
    display: grid;
    gap: 0.9rem;
}

figure {
    margin: 0;
    background: rgba(15,23,42,0.9);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(148,163,184,0.4);
}

figure img {
    width: 100%;
    display: block;
    max-height: 260px;
    object-fit: cover;
}

figcaption {
    font-size: 0.8rem;
    padding: 0.45rem 0.7rem 0.6rem;
    color: #e5e7eb;
    background: linear-gradient(90deg, rgba(15,23,42,0.95), rgba(15,23,42,0.9));
}

/* BACK TO TOP */

#backToTop {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: none;
    background: radial-gradient(circle at top left, #38bdf8, #a855f7);
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 16px 35px rgba(15,23,42,0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 30;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

#backToTop:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 45px rgba(15,23,42,0.8);
}

#backToTop.show {
    display: flex;
}

/* FOOTER */

.site-footer {
    text-align: center;
    padding: 1.5rem 1rem 2.2rem;
    color: #9ca3af;
    font-size: 0.9rem;
    border-top: 1px solid rgba(148,163,184,0.2);
    background: radial-gradient(circle at top, rgba(15,23,42,0.9), rgba(15,23,42,1));
}

/* RESPONSIVE */

@media (max-width: 900px) {
    .section-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 780px) {
    .nav-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .main-nav ul {
        justify-content: flex-start;
    }
}

@media (max-width: 600px) {
    .hero {
        padding-top: 2.5rem;
    }
    .section-inner {
        padding: 1.3rem 1.1rem 1.3rem;
    }
    .content-section h2 {
        font-size: 1.15rem;
    }
    .nav-inner {
        padding-inline: 0.8rem;
    }
    .main-nav a {
        font-size: 0.75rem;
    }
}
/* HERO LOGO U CENTRU */

.hero {
    position: relative;
    min-height: 65vh;
    background-image:
        linear-gradient(120deg, rgba(56,189,248,0.5), rgba(129,140,248,0.6)),
        url("img/hero-bg.jpg");
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;        /* bitno – vertikalno slaganje */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1.5rem;
}

.hero .overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(15,23,42,0.2), rgba(15,23,42,0.85));
    z-index: 1;
}

/* LOGO */

.logo-link {
    position: relative;
    z-index: 2;
    margin-bottom: 1.5rem;    /* razmak između loga i naslova */
}

.main-logo {
    height: 110px;    /* promijeni po želji */
    width: auto;
    object-fit: contain;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.main-logo:hover {
    transform: scale(1.07);
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
}

/* HERO CONTENT */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-content h1 {
    font-size: clamp(2rem, 3vw, 3.5rem);
    margin: 0 0 1rem;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #e5e7eb;
}

/* Za telefon */
@media (max-width: 600px) {
    .main-logo {
        height: 80px;
    }
}
.poster-img {
    width: 100%;
    max-width: 400px;   /* ograniči veličinu slike */
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
}
/* NOVI CUSTOM FOOTER */

.custom-footer {
    margin-top: 3rem;
    background: radial-gradient(circle at top, rgba(15,23,42,0.95), rgba(15,23,42,1));
    padding: 2rem 1.2rem;
    border-top: 1px solid rgba(148,163,184,0.25);
    text-align: center;
}

.custom-footer .footer-inner {
    max-width: 800px;
    margin: 0 auto;
    color: #e5e7eb;
}

.custom-footer p {
    margin: 0.45rem 0;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.custom-footer strong {
    color: #38bdf8; /* akcent boja, možeš promijeniti */
}

