* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4A90E2;
    --secondary-color: #2C3E50;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --light-blue: #E3F2FD;
    --white: #ffffff;
    --overlay: rgba(0, 0, 0, 0.5);
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    box-shadow: none;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: var(--light-blue);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo img {
    height: 70px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    padding: 10px 25px;
    border: 2px solid var(--white);
    border-radius: 30px;
    background: transparent;
}

.navbar.scrolled .nav-menu a {
    color: var(--text-color);
    border-color: var(--primary-color);
}

.nav-menu a:hover {
    color: var(--white);
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.navbar.scrolled .nav-menu a:hover {
    color: var(--white);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--white);
    margin: 3px 0;
    transition: 0.3s;
}

.navbar.scrolled .hamburger span {
    background: var(--text-color);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    background: url('hero-bg.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
}

.hero-title {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: #357ABD;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Services Section */
.services-section {
    padding: 80px 0;
}

.alt-bg {
    background: transparent;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 3rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.section-title::after {
    display: none;
}

.service-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.service-grid.reverse {
    direction: ltr;
}

.service-image {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    height: 350px;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-image:hover img {
    transform: scale(1.05);
}

.service-content {
    padding: 0;
}

.service-text {
    border-left: none;
    padding-left: 0;
}

.service-text p {
    font-size: 1.25rem;
    line-height: 2;
    color: #666;
    text-align: left;
}

/* Kontakt Section */
.kontakt-section {
    padding: 80px 0;
    background: var(--light-bg);
}

.kontakt-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.kontakt-info h3 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.kontakt-info p {
    font-size: 1.1rem;
    line-height: 2;
    color: #666;
    margin-bottom: 0.5rem;
}

.kontakt-info a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.kontakt-info a:hover {
    color: #357ABD;
    text-decoration: underline;
}

/* Footer */
.footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 1rem;
}

/* EU Fondovi Styles */
.eu-section {
    padding: 10px 0;
}

.eu-section .section-title {
    text-align: left;
    max-width: 1000px;
    margin: 0 auto 3rem auto;
}

.eu-logo-header {
    text-align: center;
    margin-bottom: 3rem;
}

.eu-flag {
    max-width: 300px;
    margin-bottom: 1rem;
}

.eu-logo-header h2 {
    font-size: 3rem;
    color: var(--secondary-color);
}

.eu-cilj-title {
    text-align: center;
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 3rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.eu-content {
    max-width: 1000px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    text-align: left;
}

.eu-content p {
    margin-bottom: 1.5rem;
    text-align: left;
}

.eu-content h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin: 2rem 0 1rem 0;
    text-align: left;
}

.eu-content a {
    color: var(--primary-color);
    word-break: break-all;
}

.partner-logos {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.partner-item {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
}

.partner-item img {
    max-width: 250px;
    height: auto;
    margin-bottom: 1rem;
}

.partner-sveucilista {
    text-align: center;
    margin-top: 3rem;
}

.partner-sveucilista p {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin: 2rem 0 1rem 0;
}

.fakultet-logos {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1.5rem 0;
}

.fakultet-logos img {
    max-width: auto;
    max-height: 300px;
}

.saradnik-content {
    text-align: left;
    max-width: 1000px;
    margin: 0 auto;
}

.saradnik-content p {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    text-align: left;
}

.saradnik-logo {
    display: flex;
    justify-content: flex-start;
}

.saradnik-logo img {
    max-width: 150px;
    height: auto;
}

.rezultati-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.rezultat-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.rezultat-item h4 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.rezultat-item p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

.eu-footer-text {
    max-width: 1000px;
    margin: 3rem auto 0;
    padding: 2rem;
    background: var(--light-bg);
    border-radius: 10px;
}

.eu-footer-text p {
    font-size: 1rem;
    line-height: 1.8;
    color: #666;
    text-align: left;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease-out 0.3s both;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 1s ease-out 0.6s both;
}

/* Responsive */
@media (max-width: 1024px) {
    .service-grid {
        grid-template-columns: 350px 1fr;
        gap: 3rem;
    }

    .service-image {
        height: 300px;
    }

    .hero-title {
        font-size: 4rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: var(--light-blue);
        width: 100%;
        padding: 2rem;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        transition: 0.3s;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu a {
        font-size: 1.1rem;
        color: var(--text-color);
        border-color: var(--primary-color);
        text-align: center;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
        padding: 0 20px;
    }

    .services-section {
        padding: 60px 0;
    }

    .service-grid,
    .service-grid.reverse {
        grid-template-columns: 1fr;
        gap: 2rem;
        direction: ltr;
    }

    .service-image {
        height: 250px;
        width: 100%;
    }

    .section-title {
        font-size: 2rem;
    }

    .service-text p {
        font-size: 1.1rem;
        padding: 0 10px;
    }

    .btn {
        padding: 12px 30px;
        font-size: 0.95rem;
    }

    .logo img {
        height: 50px;
    }

    .kontakt-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .kontakt-image {
        height: 250px;
    }

    .kontakt-info h3 {
        font-size: 1.5rem;
    }

    .kontakt-info p {
        font-size: 1rem;
    }

    .eu-info-box {
        padding: 2rem 1.5rem;
    }

    .eu-logo {
        max-width: 150px;
    }

    .partner-logos {
        gap: 2rem;
    }

    .partner-item img {
        max-width: 150px;
    }

    .fakultet-logos {
        gap: 1rem;
    }

    .fakultet-logos img {
        max-width: 80px;
    }

    .rezultati-list {
        grid-template-columns: 1fr;
    }

    .eu-content {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .service-text p {
        font-size: 1rem;
    }

    .nav-menu a {
        font-size: 1rem;
    }

    .container {
        padding: 0 15px;
    }

    .logo img {
        height: 40px;
    }
}
/* nova klasa */
.zadnje {
    max-width: 1000px;
    margin: 0 auto;
    font-weight: 500;
    line-height: 1.8;
    color: #666;
    text-align: left;
    
}