/* --- NEURAL BIO-LATTICE POZADINA (MILOŠ) --- */
#synapseCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    opacity: 0.75;
    background-color: #010402;
}

/* SPECIFIČNI STILOVI ZA MENTOR STRANICU */
.mentor-hero {
    padding: 160px 5% 100px;
    text-align: center;
    background: radial-gradient(circle at 50% 30%, rgba(80, 250, 123, 0.05) 0%, transparent 70%);
    border-bottom: 1px inset rgba(80, 250, 123, 0.1);
    position: relative;
}

.mentor-profile-pic {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(80, 250, 123, 0.5);
    box-shadow: 0 0 30px rgba(80, 250, 123, 0.2);
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

.mentor-profile-pic:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(80, 250, 123, 0.4);
}

.timeline-section {
    padding: 80px 5%;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.timeline-item {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 40px;
    bottom: -50px;
    width: 1px;
    background: linear-gradient(to bottom, rgba(80, 250, 123, 0.4), transparent);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-year {
    font-family: 'Space Mono', monospace;
    color: #e6b34a;
    font-size: 14px;
    min-width: 80px;
    padding-top: 5px;
}

.timeline-node {
    min-width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(2, 8, 6, 0.9);
    border: 2px solid #50fa7b;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(80, 250, 123, 0.3);
    z-index: 2;
}

.timeline-node-inner {
    width: 8px;
    height: 8px;
    background: #50fa7b;
    border-radius: 50%;
}

.timeline-content {
    background: rgba(0, 0, 0, 0.5);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid rgba(80, 250, 123, 0.1);
    backdrop-filter: blur(5px);
    width: 100%;
}

.timeline-content h3 {
    font-family: 'Cinzel', serif;
    color: #fff;
    font-size: 20px;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.timeline-content p {
    font-family: 'Manrope', sans-serif;
    color: #aaa;
    line-height: 1.7;
    font-size: 14px;
}

.seo-highlight {
    color: #50fa7b;
    font-weight: 500;
}

/* Desktop navigacija i prostranost hero sekcije */
@media (min-width: 768px) {
    nav #langDropdown {
        margin-right: 30px !important;
    }

    nav {
        gap: 20px;
    }

    /* Odmicanje cele sekcije nadole kako slika ne bi sekla navigaciju */
    .mentor-hero {
        padding-top: 220px !important;
    }

    /* Odvajanje текcта i dugmeta isključivo na desktopu */
    .mentor-hero p {
        margin-bottom: 40px !important;
    }

    .mentor-hero .cta-btn {
        margin-top: 40px !important;
    }
}

/* --- KOREKCIJA ZA MOBILNE EKRANE (PROŠIRENJE TEKST BOKSOVA) --- */
@media (max-width: 768px) {
    .timeline-section {
        padding: 60px 12px;
    }

    .timeline-item {
        gap: 12px;
    }

    .timeline-year {
        min-width: 55px;
        font-size: 12px;
    }

    .timeline-content {
        padding: 18px 15px;
    }

    .timeline-content p,
    .timeline-content h3 {
        word-break: normal;
        overflow-wrap: break-word;
    }

    .system-status-badge {
        font-size: 9px !important;
        padding: 2px 4px !important;
        white-space: nowrap !important;
        /* Stroga zabrana preloma u novi red */
        letter-spacing: 0.5px !important;
        /* Milimetarsko zatezanje slova da stane u box na 370px */
    }
}

/* ============================================================
           1. CYBER-OBSIDIAN NAV & FOOTER (MILOS BESPOKE THEME)
           ============================================================ */
/* The Dark Void Nav */
body nav {
    background: rgba(1, 4, 2, 0.6) !important;
    /* Deep space/neural void */
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border-bottom: 1px solid rgba(80, 250, 123, 0.15) !important;
    /* Ghostly neon green line */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9) !important;
    display: flex !important;
    justify-content: center !important;
    /* Mathematically centers the button */
    align-items: center !important;
}

/* Forces absolute center positioning */
body nav .nav-center-group {
    position: static !important;
    transform: none !important;
    margin: 0 auto !important;
}

/* The Seamless Dark Footer */
body footer {
    background: rgba(1, 4, 2, 0.6) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border-top: none !important;
    /* 100% SEAMLESS MELT INTO THE CANVAS */
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.9) !important;
    padding: 25px 20px !important;
    position: relative;
    z-index: 10;
}

/* ============================================================
           2. BIO-SYNC TERMINAL BUTTON (NEON & OBSIDIAN)
           ============================================================ */
/* Hollow cyber-aesthetic that matches the neural lines */
body nav .nav-center-group .app-btn-bespoke {
    background: rgba(2, 8, 6, 0.8) !important;
    /* Dark green-black base */
    color: #50fa7b !important;
    /* Glowing neon green text */
    border: 1px solid rgba(80, 250, 123, 0.4) !important;
    /* Neon border */
    box-shadow: 0 0 15px rgba(80, 250, 123, 0.1) !important;
    /* Ambient glow */
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    transition: all 0.3s ease !important;
}

/* Power-surge hover state */
body nav .nav-center-group .app-btn-bespoke:hover {
    background: #50fa7b !important;
    /* Fills with solid neon */
    color: #010402 !important;
    /* Text turns pitch black */
    box-shadow: 0 0 25px rgba(80, 250, 123, 0.4) !important;
    /* Flare effect */
    transform: translateY(-2px) !important;
}

/* ============================================================
           3. FOOTER HIGH-CONTRAST POP
           ============================================================ */
/* Punches the seal and text out of the dark void */
body footer img {
    opacity: 0.85 !important;
    /* Pulled out of the shadows */
    transform: scale(1.15) !important;
    margin-bottom: 12px !important;
    filter: drop-shadow(0 0 10px rgba(230, 179, 74, 0.3)) !important;
    /* Faint gold aura */
}

body footer p {
    color: #E8E3D9 !important;
    /* Bright, crisp silver-white */
    font-weight: 700 !important;
    opacity: 1 !important;
    font-size: 11px !important;
    margin: 0 !important;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.9) !important;
    /* Anchors the text */
}

/* ============================================================
           4. LUMINOUS CYBER-TYPOGRAPHY (HIGH CONTRAST)
           ============================================================ */
/* The main H1 title ("Nauka. Optimizacija...") */
html body .mentor-hero h1 {
    color: #F8FAFC !important;
    /* Ultra-crisp tech white */
    text-shadow: 0 0 25px rgba(255, 255, 255, 0.25) !important;
    /* Ambient terminal glow */
}

/* Timeline Card Headers ("Opsesija i Temelji") */
html body .timeline-content h3 {
    color: #F8FAFC !important;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.15) !important;
}

/* Timeline Card Paragraphs (The body text) */
html body .timeline-content p {
    color: #E2E8F0 !important;
    /* Extremely bright silver/white, vastly upgraded from #aaa */
    font-weight: 400 !important;
    letter-spacing: 0.3px !important;
}

/* ============================================================
           5. CYBER-TERMINAL LANGUAGE ARRAY (MILOS THEME)
           ============================================================ */
body nav .nav-center-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Tactical HUD container */
.lang-array-cyber {
    display: flex;
    align-items: center;
    background: rgba(2, 8, 6, 0.6);
    /* Deep neural dark to match buttons */
    border: 1px solid rgba(80, 250, 123, 0.25);
    /* Faint neon border */
    border-radius: 4px;
    /* Sharper terminal edges */
    padding: 4px 12px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8), 0 0 15px rgba(80, 250, 123, 0.05);
}

.lang-array-cyber .lang-array-btn {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    color: #627264;
    /* Muted tech green/gray */
    text-decoration: none;
    padding: 6px 8px;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

/* Hover: Bright silver */
.lang-array-cyber .lang-array-btn:hover {
    color: #E2E8F0;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* The Active Language State - Neon Green Glow */
.lang-array-cyber .lang-array-btn.active {
    color: #50fa7b;
    font-weight: bold;
    text-shadow: 0 0 12px rgba(80, 250, 123, 0.6);
}

.lang-array-cyber .lang-divider {
    color: #2a3d30;
    /* Very dim green */
    font-size: 10px;
    user-select: none;
    padding: 0 3px;
    font-family: 'Space Mono', monospace;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    body nav .nav-center-group {
        gap: 12px;
        /* Tighter spacing on mobile */
    }

    .lang-array-cyber {
        padding: 2px 8px;
    }

    .lang-array-cyber .lang-array-btn {
        font-size: 9px;
        padding: 4px 6px;
    }

    .lang-array-cyber .lang-divider {
        font-size: 8px;
    }
}