/* ===== OSNOVNE POSTAVKE ===== */
:root {
    /* Boje */
    --primary-color: #3b82f6;
    --secondary-color: #1e40af;
    --accent-color: #ef4444;
    --text-color: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --bg-color: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #2c3e50;
    --border-color: #e9ecef;
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.2);
    
    /* Tipografija */
    --font-primary: 'Roboto', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
    --font-size-5xl: 3rem;
    
    /* Razmaci */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    --spacing-4xl: 10rem;
    --spacing-5xl: 13rem;
    /* Prelazi */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Breakpoints */
  /*  --mobile: 480px;
    --tablet: 768px;
    --desktop: 1024px;
    --large: 1200px;*/
}

/* Reset i osnovne postavke */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

/* ===== TIPOGRAFIJA ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--text-color);
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-base); }

p {
    margin-bottom: var(--spacing-md);
    color: var(--text-light);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover, a:focus {
    color: var(--secondary-color);
    outline: none;
}

/* ===== LAYOUT KOMPONENTE ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: var(--spacing-lg);
}
.number-title {
    position: relative;
    display: inline-block;
    margin-bottom: var(--spacing-lg);
    color: white;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa, #ef4444);
    border-radius: 2px;
}
.number-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa, #ef4444);
    border-radius: 2px;
}
.section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-color);
    max-width: 600px;
    margin: 0 auto;
}
.number-subtitle {
    font-size: var(--font-size-lg);
    color: white;
    max-width: 600px;
    margin: 0 auto;
}

.section-footer {
    text-align: center;
    margin-top: var(--spacing-3xl);
}

/* ===== DUGMAD ===== */
.btn {
    display: inline-block;
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: var(--font-size-base);
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-normal);
    min-width: 120px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: var(--transition-slow);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-light);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
    margin-top: 3vh;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}
.btn-outline1 {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
    margin-top: 3vh;
}

.btn-outline1:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}
/* ===== LOADER ANIMACIJA ===== */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity var(--transition-slow), visibility var(--transition-slow);
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== HEADER I NAVIGACIJA ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-light);
    z-index: 1000;
    transition: var(--transition-normal);
}

.navbar {
    padding: var(--spacing-md) 0;
}

.nav-container {
    max-width:1500px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo a {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--text-color);
    font-weight: 600;
    font-size: var(--font-size-lg);
}

.logo-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.logo-text {
    font-family: var(--font-secondary);
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--text-color);
    margin-left: var(--spacing-sm);
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
    align-items: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--text-color);
    font-weight: 500;
    border-radius: 25px;
    transition: var(--transition-fast);
    position: relative;
    white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

.nav-link i {
    font-size: var(--font-size-sm);
}
.jezik
{
    display: flex;
    flex-direction: row;
}
.jezik img
{
    width: 30px;
    height: 20px;
    margin: 3px;
}
/* Hamburger meni */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: var(--spacing-sm);
    border-radius: 4px;
    transition: var(--transition-fast);
}

.hamburger:hover {
    background: var(--bg-light);
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin: 3px 0;
    transition: var(--transition-fast);
    border-radius: 2px;
}

.hamburger.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* ===== GLAVNI SADRŽAJ ===== */
.main-content {
    margin-top: 80px;
}

/* ===== HERO SEKCIJA ===== */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 50vh;
}

.hero-content {
    position: relative;
}

.hero-image {
    background: url('../images/hero/dna.png');
    background-size:cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 50vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    width: 100%;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1rem;
}

.hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 11rem; /* kontrolisan razmak */
    text-align: center;
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9), 1px 1px 3px rgba(0, 0, 0, 0.7);
    color: white;
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.3);
    margin-bottom: 0;
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    opacity: 0.95;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.9), 1px 1px 2px rgba(0, 0, 0, 0.7);
    color: white;
    font-weight: 500;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* ===== VESTI SEKCIJA ===== */
.news-section {
    padding: var(--spacing-3xl) 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-2xl);
}

.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition-normal);
    position: relative;
    margin-bottom: 1vh;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.news-image {
    width: 100%;
    height: auto;
    overflow: hidden;
    position: relative;
    
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit:cover;
    transition: var(--transition-slow);
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: var(--spacing-lg);
}

.news-date {
    color: var(--text-muted);
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-sm);
}

.news-title {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-md);
    color: var(--text-color);
}

.news-title a {
    color: inherit;
    transition: var(--transition-fast);
}

.news-title a:hover {
    color: var(--primary-color);
}

.news-excerpt {
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
    display: -webkit-box;

    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    color: var(--primary-color);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    transition: var(--transition-fast);
}

.read-more:hover {
    gap: var(--spacing-sm);
}

/* ===== STATISTIKE SEKCIJA ===== */
.stats-section {
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-2xl);
}

.stat-item {
    text-align: center;
    padding: var(--spacing-lg);
}

.stat-number {
    font-size: var(--font-size-5xl);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: white;
}

.stat-label {
    font-size: var(--font-size-lg);
    opacity: 0.9;
}
/* ===== PARTNER ===== */
.partner-section
{
    padding: var(--spacing-3xl) 0;
}
.partner-grid
{
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: var(--spacing-xl);
    justify-items: center;
    align-items: center;
}
.partner-grid img
{
    width: 100%;
    height: auto;
    display: block;
    padding: 5px;
    box-sizing: border-box;
    transition: transform 0.3s ease;
}
.partner-grid img:hover
{
    transform: scale(1.1);
}
/* ===== FOOTER ===== */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: var(--spacing-3xl) 0 var(--spacing-lg);

}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
}

.footer-section h3, .footer-section h4 {
    color: white;
    margin-bottom: var(--spacing-lg);
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.footer-logo-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.footer-logo-text {
    font-family: var(--font-secondary);
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: white;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    margin-left: var(--spacing-md);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--spacing-sm);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.contact-info p {
    display: flex;
    align-items: center;
    
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    color: rgba(255, 255, 255, 0.8);
}

.contact-info a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition-fast);
}

.contact-info a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: var(--font-size-lg);
    transition: var(--transition-normal);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* ===== SCROLL TO TOP DUGME ===== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: var(--font-size-lg);
    box-shadow: var(--shadow-medium);
    transition: var(--transition-normal);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

 .article-image img
    {
        width: 40vw;
        height: auto;
    }
/* ===== RESPONSIVE DIZAJN ===== */
@media (max-width: 1500px) {
    
    .container {
        padding: 0 var(--spacing-lg);
    }
    
    .hero-title {
        font-size: var(--font-size-4xl);
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9), 1px 1px 3px rgba(0, 0, 0, 0.7);
    }
    .about-grid {
        grid-template-columns: repeat(1,1fr);
        gap: var(--spacing-xl);
    }
    
    .news-grid {
        grid-template-columns: repeat(2,1fr);
    }
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: var(--transition-normal);
        box-shadow: var(--shadow-medium);
        padding: var(--spacing-lg) 0;
        gap: var(--spacing-md);
    }
    
    .nav-menu.active {
        left: 0;
    }
     .hamburger {
        display: flex;
    }
}

@media (max-width: 768px) {
    

    
    .hero-img {
        background: url('../images/hero/dna.png');
        background-size:cover;
        background-position: center;
        background-repeat: no-repeat;
        transform: scaleX(1.1);
    }
    
    .hero-text {
        line-height: 1.1;
        gap: 12rem;
    }
    
    .hero-title {
        font-size: var(--font-size-4xl);
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9), 1px 1px 3px rgba(0, 0, 0, 0.7);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-lg);
        text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
        margin-bottom: var(--spacing-sm);
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }
    .partner-grid
    {
        grid-template-columns: repeat(5, 1fr);
        gap: var(--spacing-md);
        justify-items: center;
        align-items: center;
    }
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
     .contact-info p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    color: rgba(255, 255, 255, 0.8);
}
.btn-outline1 {
    margin: 0 var(--spacing-xl);
}
}
@media (max-width: 550px) {
.news-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
}
@media (max-width: 480px) {
    :root {
        --spacing-3xl: 2rem;
        --spacing-2xl: 1.5rem;
    }
    
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .hero-text {
        margin: 0 var(--spacing-sm);
        line-height: 1.1;
        gap: 10rem;
    }
    

    
    .hero-subtitle {
        margin-bottom: var(--spacing-sm);
    }
    
    
    .hero-img {
        object-fit: fill;
        object-position: center;
        transform: scaleX(1.1);
    }
    
    .btn {
        font-size: var(--font-size-xl);
        min-width: 200px;
        min-height: 50px;
    }
    
    .hero-title {
        font-size: var(--font-size-3xl);
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9), 1px 1px 3px rgba(0, 0, 0, 0.7);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-base);
        text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
    }
    
    .about-card, .news-card {
        margin: 1vh var(--spacing-sm);
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .partner-grid
    {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-lg);
        justify-items: center;
        align-items: center;
    }
    .btn {
        font-size: var(--font-size-sm);
        min-width: 100px;
    }
    
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    .contact-info p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    color: rgba(255, 255, 255, 0.8);
}
.btn-outline1 {
    margin: 0 var(--spacing-xl);
}
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Focus states za accessibility */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast mode podrška */
@media (prefers-contrast: high) {
    :root {
        --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.3);
        --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.4);
        --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.5);
    }
}
@media (min-width: 768px)
{
    .btn-outline1
    {
        margin: 0 var(--spacing-4xl);
    }
}

