/* ==========================================================================
   1. DIZAJN TOKENI & RESET
   ========================================================================== */
:root {
    --bg-base: #0f0f10;
    --bg-surface: #161618;
    --text-primary: #f2f2f4;
    --text-secondary: #8e8e93;
    --accent: #ffffff;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-primary);
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}

/* ==========================================================================
   2. REUSABLE STRUKTURA
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title { 
    font-size: 0.85rem; 
    font-weight: 700; 
    letter-spacing: 0.1em; 
    color: var(--text-secondary); 
    margin-bottom: 4rem; 
} 

/* ==========================================================================
   3. HEADER (MENI)
   ========================================================================== */
.site-header {
    padding: 2.5rem 0;
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
}

.header-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    text-transform: lowercase;
    letter-spacing: -0.05em;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    margin-left: 2.5rem;
    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: var(--accent);
}

.main-nav a.active {
    color: var(--text-primary);
    font-weight: 700;
}

/* ==========================================================================
   4. HERO SEKCIJA
   ========================================================================== */
.hero-section {
    padding: 8rem 0 6rem 0;
}

.hero-grid-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-tagline {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2.2rem, 4vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 2.5rem;
    color: var(--text-primary);
}

.hero-lead {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 650px;
    line-height: 1.6;
}

.hero-cta-wrapper {
    margin-top: 2.5rem;
}

.hero-bio-link {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 0.3rem;
    display: inline-block;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.hero-bio-link:hover {
    color: var(--text-primary);
    border-color: var(--text-primary);
}

.hero-image-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background-color: var(--bg-surface);
}

.hero-profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%);
}

/* ==========================================================================
   5. SEKCIJA: PARTNERI / LOGOTIPI
   ========================================================================== */
.partners-section {
    padding: 3rem 0;
    background-color: var(--bg-surface);
    border-top: 2px solid rgba(255, 255, 255, 0.15);
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem 2rem;
    align-items: center;
    justify-items: center;
}

.partner-item {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.partner-logo {
    width: 100%;
    max-width: 120px;
    height: auto;
    max-height: 38px;
    object-fit: contain;
    opacity: 0.35;
    transition: opacity 0.2s ease;
    filter: brightness(0) invert(1);
}

.partner-logo:hover {
    opacity: 0.85;
}

/* ========================================================================== 
   6. SEKCIJA SA STUDIJAMA SLUČAJA 
   ========================================================================== */ 
.projects-section { 
    padding-top: 5rem; 
    padding-bottom: 8rem; 
    border-bottom: 2px solid rgba(255, 255, 255, 0.15); 
} 
 
.projects-grid { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 4rem; 
    align-items: start; 
} 
 
.project-card { 
    display: flex; 
    flex-direction: column; 
    width: 100%; 
    height: 100%; 
    padding-bottom: 3rem; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); 
} 
 
.project-image-wrapper { 
    width: 100%; 
    aspect-ratio: 16 / 9; 
    overflow: hidden; 
    background-color: var(--bg-surface); 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    margin-bottom: 2rem; 
} 
 
.project-img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    display: block; 
    transition: transform 0.3s ease; 
} 
 
.project-card:hover .project-img { 
    transform: scale(1.02); 
} 
 
.project-meta { 
    font-size: 0.75rem; 
    font-weight: 700; 
    color: var(--text-secondary); 
    letter-spacing: 0.05em; 
    margin-bottom: 1rem; 
} 
 
.project-title { 
    font-size: 2rem; 
    font-weight: 900; 
    line-height: 1.2; 
    letter-spacing: -0.02em; 
    color: var(--text-primary); 
    margin-bottom: 0.25rem; 
} 
 
.project-subtitle { 
    font-size: 1.1rem; 
    font-weight: 500; 
    color: var(--text-secondary); 
    margin-bottom: 1.5rem; 
    min-height: 2.8rem; 
} 
 
.project-tags { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 0.5rem; 
    margin-bottom: 1.5rem; 
    min-height: 2.5rem; 
} 
 
.project-tags span { 
    font-size: 0.75rem; 
    font-weight: 500; 
    background-color: var(--bg-surface); 
    color: var(--text-primary); 
    padding: 0.3rem 0.8rem; 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    text-transform: uppercase; 
    letter-spacing: 0.02em; 
} 
 
.project-excerpt { 
    font-size: 0.95rem; 
    line-height: 1.6; 
    color: var(--text-secondary); 
    margin-bottom: 1.5rem; 
    min-height: 4.5rem; 
} 
 
.project-focus { 
    font-size: 0.9rem; 
    padding-left: 1rem; 
    border-left: 2px solid var(--text-primary); 
    color: var(--text-primary); 
    margin-top: auto; 
    margin-bottom: 1.5rem; 
} 
 
.project-cta { 
    margin-top: 1rem; 
} 
 
.project-read-more { 
    font-size: 0.95rem; 
    font-weight: 700; 
    color: var(--text-primary); 
    text-decoration: none; 
    border-bottom: 2px solid rgba(255, 255, 255, 0.15); 
    padding-bottom: 0.2rem; 
    display: inline-block; 
    transition: border-color 0.2s ease, color 0.2s ease; 
} 
 
.project-read-more:hover { 
    color: var(--text-primary); 
    border-color: var(--text-primary); 
} 
 
/* ========================================================================== 
   7. SEKCIJA: OKVIR RADA / PROCES
   ========================================================================== */ 
.framework-section { 
    padding-top: 5rem; 
    padding-bottom: 8rem; 
    background-color: var(--bg-surface); 
    border-bottom: 2px solid rgba(255, 255, 255, 0.15); 
} 

.framework-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 4rem; 
    align-items: start; 
} 

.framework-card { 
    display: flex; 
    flex-direction: column; 
    width: 100%; 
    padding-top: 2rem; 
    border-top: 1px solid rgba(255, 255, 255, 0.05); 
    transition: border-color 0.3s ease; 
} 

.framework-card:hover { 
    border-color: var(--text-primary); 
} 

.framework-number { 
    font-family: monospace;
    font-size: 0.75rem; 
    font-weight: 700; 
    color: var(--text-secondary); 
    letter-spacing: 0.05em; 
    margin-bottom: 1rem; 
} 

.framework-title { 
    font-size: 1.25rem; 
    font-weight: 700; 
    line-height: 1.2;
    letter-spacing: -0.02em; 
    color: var(--text-primary); 
    margin-bottom: 1rem; 
} 

.framework-sub { 
    font-size: 1rem;
    font-weight: 500; 
    color: var(--text-secondary); 
} 

.framework-text { 
    font-size: 0.95rem; 
    line-height: 1.6; 
    color: var(--text-secondary); 
} 

/* ==========================================================================
   8. SEKCIJA: PSIHOLOGIJA RADA
   ========================================================================== */
.psychology-section {
    padding: 8rem 0;
    border-top: 3px solid rgba(255, 255, 255, 0.2);
    background-color: var(--bg-base); 
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.principle-card {
    display: flex;
    flex-direction: column;
}

.principle-num {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-family: monospace;
}

.principle-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.principle-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* ==========================================================================
   9. SEKCIJA: KONTAKT & FOOTER
   ========================================================================== */
.contact-section {
    padding: 8rem 0;
    border-top: 2px solid rgba(255, 255, 255, 0.15);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: flex-start;
}

.contact-lead {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.contact-text {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 580px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    padding-top: 0.5rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-item .label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
}

.contact-link {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 0.2rem;
    display: inline-block;
    align-self: flex-start;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.contact-link:hover {
    color: var(--text-primary);
    border-color: var(--text-primary);
}

.contact-value {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 500;
    color: var(--text-primary);
}

.site-footer {
    padding: 3rem 0;
    border-top: 2px solid rgba(255, 255, 255, 0.15);
    background-color: var(--bg-base);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.footer-philosophy {
    font-family: monospace;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-firm-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.05em;
    transition: color 0.2s ease;
}

.footer-firm-link:hover {
    color: var(--text-secondary);
}

/* ==========================================================================
   10. UNUTRAŠNJE STRANICE
   ========================================================================== */
.inner-page-section {
    padding: 8rem 0;
}

.page-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 4rem;
    color: var(--text-primary);
}

.narrow-content {
    max-width: 800px;
}

.bio-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.bio-subtitle {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 3rem 0 1rem 0;
}

.articles-list {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin-top: 2rem;
}

.article-item {
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.article-date {
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 0.8rem;
}

.article-item-title a {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: color 0.2s ease;
}

.article-item-title a:hover {
    border-bottom: 1px solid var(--text-primary);
}

.article-item-excerpt {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-top: 1rem;
    max-width: 750px;
}

.single-article-section {
    padding: 8rem 0;
}

.article-body h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 3.5rem 0 1.2rem 0;
    letter-spacing: -0.02em;
}

.article-body p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.article-conclusion {
    font-weight: 500;
    color: var(--text-primary) !important;
    border-left: 2px solid var(--text-primary);
    padding-left: 1.5rem;
    margin: 3rem 0;
}

.back-to-articles {
    margin-top: 5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.back-to-articles a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.back-to-articles a:hover {
    color: var(--text-primary);
}

/* ==========================================================================
   11. UNUTRAŠNJE STRANICE (RESPONSIVE)
   ========================================================================== */
@media (max-width: 992px) {
    .hero-grid-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-image-wrapper {
        max-width: 380px;
        margin: 0 auto;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .project-card {
        padding-bottom: 2rem;
    }

    .framework-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 4rem 3rem; 
    } 

    .principles-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
    
    .contact-section {
        padding: 5rem 0;
    }
}

@media (max-width: 768px) {
    .site-header { 
        padding: 1.5rem 0; 
    }
    
    .header-grid { 
        flex-direction: column; 
        align-items: center; 
        gap: 1.2rem; 
    }
    
    .main-nav {
        display: flex;
        justify-content: center;
        gap: 1.5rem;
    }
    
    .main-nav a { 
        margin-left: 0; 
        margin-right: 0;
        font-size: 0.9rem;
    }
    
    .hero-section { 
        padding: 4rem 0; 
    }

    .hero-image-wrapper {
        max-width: 280px;
    }

    .project-cta {
        margin-top: 1.5rem;
    }

    .project-subtitle, .project-tags, .project-excerpt {
        min-height: auto;
    }

    .framework-grid { 
        grid-template-columns: 1fr; 
        gap: 3rem; 
    } 

    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem 1rem;
    }
    
    .partners-section {
        padding: 2rem 0;
    }
    
    .partner-logo {
        max-width: 70px;
        max-height: 25px;
    }

    .footer-grid {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}
/* ==========================================================================
   12. DISKRETNO SCROLL TO TOP DUGME
   ========================================================================== */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background-color: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, border-color 0.2s ease;
}

/* Kada JS doda klasu .show, dugme glatko postane vidljivo */
.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    border-color: var(--text-primary);
    background-color: #000000;
}

/* Prilagođavanje za mobilne uređaje (pomjeramo ga malo bliže ivici) */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 2.5rem;
        height: 2.5rem;
    }
}