/* ---------- Varijable boja i fontova ---------- */
:root {
    --bg-main: #0b1d34;
    --bg-card: rgba(19, 41, 75, 0.8); /* Prozirnije za glassmorphism */
    --accent: #5eead4;
    --text-main: #e5edff;
    --text-muted: #9fb0d0;
    --border: rgba(94, 234, 212, 0.15); /* Suptilniji border */
    --font-main: "DM Sans", system-ui, sans-serif;
    --font-heading: "DM Serif Display", serif;
}

/* ---------- Global resets ---------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background: radial-gradient(circle at top, #152f55, var(--bg-main));
    background-attachment: fixed; /* Poboljšava dubinu pri skrolanju */
    margin: 0;
}

/* ---------- Header ---------- */
.header-container {
    width: 100%;
    background: var(--bg-main);
    color: var(--text-main);
    padding: 16px 0;
}

/* Navigacija - Novo rješenje bez uspravnih crta */
.nav-main {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.nav-main a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
    padding: 4px 0;
}

.nav-main a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-main a:hover::after {
    width: 100%;
}

/* ---------- Footer ---------- */
.footer-container {
    width: 100%;
    background: var(--bg-main);
    color: var(--text-muted);
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
}

/* ---------- Main content ---------- */
.main-content {
    padding: 24px;
    display: flex;
    justify-content: center;
    min-height: calc(100vh - 140px); /* Header + Footer visina */
}

/* ---------- Container ---------- */
.container {
    max-width: 760px;
    width: 100%;
    background: var(--bg-card);
    backdrop-filter: blur(12px); /* Glassmorphism */
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 60px 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Animacija ---------- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- Badge ---------- */
.badge {
    display: inline-block;
    margin-bottom: 24px;
    padding: 6px 18px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    border-radius: 999px;
    background: var(--accent);
    color: #052e2b;
}

/* ---------- Naslovi ---------- */
h1 {
    margin: 0 0 10px;
    font-size: 2.3rem;
    font-family: var(--font-heading);
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--accent);
}

.headline {
    font-size: 1.15rem;
    margin: 0 auto 32px;
    color: var(--text-main);
}

.section-title {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

.region {
    color: var(--text-muted);
    margin-bottom: 36px;
}

/* ---------- Services / kartice ---------- */
.services {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    justify-items: center;
    margin-bottom: 60px;
}

.service-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
}

.service-card:hover {
    background: rgba(94, 234, 212, 0.07);
    border-color: var(--accent);
    transform: translateY(-4px); /* Blagi pomak prema gore */
}

.card-icon {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.service-card h3 {
    margin: 0 0 10px;
    font-size: 1rem;
    color: var(--accent);
}

.service-card p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
}

/* ---------- Pristup / slogan ---------- */
.approach {
    font-weight: 700;
    letter-spacing: 0.5px;
    font-size: 1.05rem;
    color: var(--text-main);
    margin-bottom: 40px;
}

/* ---------- Kontakt i CTA ---------- */
.contact-text {
    margin-top: 24px;
    margin-bottom: 14px;
    color: var(--text-muted);
}

.cta {
    display: inline-block;
    padding: 13px 30px;
    border-radius: 10px;
    border: 1px solid var(--accent);
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.25s ease;
}

.cta:hover {
    background: rgba(94, 234, 212, 0.12);
    transform: none;
    box-shadow: 0 4px 12px rgba(94, 234, 212, 0.35);
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
    .services {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 1.9rem; }
    .container { padding: 32px 22px; }
}

.header-content {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px;
}

@media (max-width: 480px) {
    .header-content {
        justify-content: center; /* Centriraj sve na malim ekranima */
        text-align: center;
    }
}

.featured-book {
    margin: 30px 0 50px;
    padding: 28px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.04);
    transition: all 0.3s ease;
}

.featured-book:hover {
    border-color: var(--accent);
    background: rgba(94,234,212,0.07);
    transform: translateY(-3px);
}

.featured-book-text h2 {
    font-family: var(--font-heading);
    color: var(--accent);
    margin-bottom: 8px;
}

.featured-book-text p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

.featured-book-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.featured-book-icon {
    font-size: 2.2rem;
}

.book-cover {
    width: 110px;
    border-radius: 6px;
}

@media (max-width: 600px) {
    .featured-book-content {
        flex-direction: column; /* Naslovnica ide iznad teksta na mobitelu */
        text-align: center;
    }
    .book-cover {
        width: 140px; /* Malo je povećamo kad je centrirana */
        margin-bottom: 15px;
    }
}
