/* ==========================================================================
   GLOBALNI RESET I VARIJABLE
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-color: #0A192F;           /* Tamno plava pozadina */
    --card-bg: #112240;            /* Svetlija plava za kartice */
    --accent: #64FFDA;             /* Tirkizna */
    --text-main: #e6f1ff;          /* Bela */
    --text-muted: #8892b0;         /* Siva */
    --font-stack: 'Poppins', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-muted);
    font-family: var(--font-stack);
    line-height: 1.6;
    font-size: 16px;
}

html { scroll-behavior: smooth; overflow-x: hidden; }

/* CONTAINER - Ograničava širinu sadržaja */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
header {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(10, 25, 47, 0.95);
    border-bottom: 1px solid rgba(100, 255, 218, 0.1);
    height: 80px; display: flex; align-items: center;
}
header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 800; color: var(--accent); text-decoration: none; }
nav ul { display: flex; list-style: none; gap: 2rem; }
nav a { color: var(--text-main); text-decoration: none; font-size: 0.95rem; }
nav a:hover { color: var(--accent); }

/* ==========================================================================
   HERO SEKCIJA
   ========================================================================== */
#pocetna {
    position: relative; height: 100vh; display: flex; align-items: center;
}
.video-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover;
    filter: brightness(0.3); z-index: -1;
}
.hero-content { max-width: 800px; }
#pocetna h1 { font-size: 3.5rem; color: var(--text-main); line-height: 1.1; margin-bottom: 1.5rem; }
#pocetna p { font-size: 1.2rem; margin-bottom: 2rem; }

/* DUGME (CTA) */
.btn {
    display: inline-block; padding: 1rem 2rem;
    background: var(--accent); color: var(--bg-color);
    font-weight: 700; text-decoration: none; border-radius: 4px;
    transition: transform 0.2s;
}
.btn:hover { transform: translateY(-3px); background: #fff; }

/* ==========================================================================
   SEKCIJE (Generalno)
   ========================================================================== */
section { padding: 100px 0; }
.section-title { font-size: 2.5rem; color: var(--text-main); text-align: center; margin-bottom: 0.5rem; }
.section-subtitle { text-align: center; margin-bottom: 4rem; font-size: 1.1rem; }

/* ==========================================================================
   METODOLOGIJA (Slike i Tekst)
   ========================================================================== */
.step {
    display: flex; align-items: center; gap: 4rem; margin-bottom: 8rem;
}
.step.reverse { flex-direction: row-reverse; }

.step-img { flex: 1; }
.step-img img {
    width: 100%; aspect-ratio: 16/9; object-fit: cover;
    border-radius: 8px; border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.step-txt { flex: 1; }
.step-txt h3 { font-size: 2rem; color: var(--text-main); margin-bottom: 1rem; }
.step-label { color: var(--accent); font-weight: 700; letter-spacing: 2px; text-transform: uppercase; display: block; margin-bottom: 0.5rem; }

/* ==========================================================================
   BAZA ZNANJA (Kartice) - OVO JE DEO KOJI JE BIO POKVAREN
   ========================================================================== */
#baza-znanja { background-color: #0d1929; }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* KLJUČNO: Ovo rešava problem ljubičastih slova na linkovima */
.grid a {
    text-decoration: none; /* Sklanja podvlačenje */
    color: inherit;        /* Sprečava promenu boje u ljubičastu */
    display: block;        /* Čini link blok elementom */
    height: 100%;          /* Da se proteže celom visinom */
}

.card {
    background-color: var(--card-bg);
    padding: 2.5rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s, border-color 0.3s;
    display: flex; 
    flex-direction: column; 
    justify-content: flex-start;
    height: 100%; /* Osigurava da su sve kartice iste visine */
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent); /* Tirkizni okvir na prelaz mišem */
}

.card-tag {
    align-self: flex-start;
    background: rgba(100, 255, 218, 0.1);
    color: var(--accent); 
    padding: 4px 12px; 
    border-radius: 20px;
    font-size: 0.75rem; 
    font-weight: 600; 
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.card h3 {
    color: var(--text-main); /* Bela boja za naslov */
    margin-bottom: 0.8rem; 
    font-size: 1.3rem;
    line-height: 1.3;
}

/* Osigurava da je opis siv i čitljiv */
.card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}
/* ==========================================================================
   SERTIFIKATI & KONTAKT
   ========================================================================== */
#sertifikati { text-align: center; }
.cert-box {
    background: rgba(17, 34, 64, 0.6); padding: 3rem;
    border-radius: 12px; border: 1px solid rgba(100, 255, 218, 0.2);
    display: inline-block;
}
.link-accent { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent); }

#kontakt { text-align: center; }
.email-big { font-size: 1.5rem; color: var(--accent); text-decoration: none; font-weight: 700; display: block; margin-top: 1rem; }

footer { text-align: center; padding: 2rem; font-size: 0.9rem; border-top: 1px solid #1e2d4a; margin-top: 4rem; }

/* ==========================================================================
   MOBILNI STILOVI (Max Width 900px)
   ========================================================================== */
@media (max-width: 900px) {
    nav ul { display: none; } /* Sakrij meni */
    
    #pocetna h1 { font-size: 2.5rem; text-align: center; }
    .hero-content { text-align: center; }
    
    /* Ređanje jedno ispod drugog na telefonu */
    .step, .step.reverse { flex-direction: column; gap: 2rem; margin-bottom: 5rem; }
    
    .section-title { font-size: 2rem; }
    .container { padding: 0 1.5rem; }
}