@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&display=swap');

:root {
    --primary: #a5bc42; 
    --primary-dark: #76872a;
    --dark: #111827;
    --gray: #4b5563;
    --light: #f9fafb;
    --white: #ffffff;
    --max-width: 1280px; 
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body { 
    font-family: 'Inter', sans-serif; 
    background: var(--white); 
    color: var(--dark); 
    line-height: 1.6; 
    overflow-x: hidden; 
}

/* Navigacija */
nav {
    position: absolute; top: 0; left: 0; width: 100%; z-index: 100;
    padding: 1.5rem 0; color: white;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent);
}

.nav-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex; justify-content: space-between; align-items: center;
}

.logo { font-size: 1.5rem; font-weight: 800; letter-spacing: 0.1em; z-index: 101; }
.nav-links a { color: white; text-decoration: none; margin-left: 2rem; font-weight: 500; transition: 0.3s; }
.nav-links a:hover { color: var(--primary); }

/* Hamburger Menu (Inicijalno sakriven) */
.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.8rem;
    color: white;
    z-index: 101; /* Iznad menija */
}

/* Hero & Slideshow */
.hero { position: relative; height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.slideshow { position: absolute; inset: 0; z-index: 1; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.5s ease-in-out; background-size: cover; background-position: center; }
.slide.active { opacity: 1; }
.overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.4); z-index: 2; }

.hero-content { 
    position: relative; z-index: 10; text-align: center; color: white; padding: 0 1rem;
    max-width: var(--max-width); margin: 0 auto; width: 100%;
}
.hero-content h1 { font-size: clamp(2.5rem, 8vw, 5rem); font-weight: 800; margin-bottom: 0.5rem; line-height: 1.1; }
.hero-content p { font-size: 1.25rem; margin-bottom: 2rem; font-weight: 300; }

/* Dugmad */
.btn { 
    display: inline-block; padding: 1rem 2.5rem; border-radius: 50px; 
    text-decoration: none; font-weight: 700; transition: 0.3s; 
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* Sekcije */
section { padding: 5rem 2rem; }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 3rem; }

/* Tim */
.team-grid { 
    display: flex; justify-content: center; gap: 10rem; text-align: center; 
    max-width: var(--max-width); margin: 0 auto; 
    flex-wrap: wrap; 
}
.team-member img { width: 250px; height: 250px; border-radius: 50%; object-fit: cover; border: 5px solid var(--light); margin-bottom: 1.5rem; }

/* Usluge Kartice */
.services-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 2rem; 
    max-width: var(--max-width); margin: 0 auto; 
}

.card { 
    background: var(--light); 
    padding: 2.5rem; 
    border-radius: 20px; 
    transition: 0.3s; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    aspect-ratio: 4 / 3; 
}

.card:hover { transform: translateY(-10px); background: white; box-shadow: 0 20px 40px rgba(0,0,0,0.05); }
.card i { font-size: 4rem; color: var(--primary); margin-bottom: 1.5rem; }
.card h3 { margin-bottom: 1rem; font-size: 1.5rem; }

/* Testimonials */
.testimonials-container { 
    overflow: hidden; 
    padding: 2rem 0; 
    position: relative; 
    width: 100%; 
    max-width: var(--max-width); margin: 0 auto; 
}
.testimonial-track { display: flex; width: calc(350px * 12); animation: scroll 30s linear infinite; }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(calc(-350px * 6)); } }
.review-card { width: 320px; margin: 0 15px; background: white; padding: 2rem; border-radius: 15px; box-shadow: 0 4px 15px rgba(0,0,0,0.04); flex-shrink: 0; }
.stars { color: var(--primary); margin-bottom: 1rem; font-size: 0.9rem; }
.review-card p { font-style: italic; font-size: 0.95rem; color: var(--gray); margin-bottom: 1.5rem; }
.user-info { display: flex; align-items: center; gap: 12px; }
.user-info img { width: 45px; height: 45px; border-radius: 50%; object-fit: cover; }
.user-info span { font-weight: 600; font-size: 0.9rem; }
.podnaslov { font-size: 10px; color: rgb(184, 184, 184);}

/* Kontakt Grid */
#kontakt { padding: 5rem 2rem; }
.contact-container { 
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; 
    max-width: var(--max-width); margin: 0 auto;
}
.info-item { margin-bottom: 2rem; }
.info-item i { color: var(--primary); margin-right: 10px; }
.map-frame { width: 100%; height: 400px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }

/* Footer */
footer { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.footer-socials a { color: white; font-size: 1.5rem; margin: 0 15px; transition: 0.3s;}
.footer-socials a:hover { color: var(--primary); }


/* --- MEDIA QUERIES ZA TELEFONE --- */
@media (max-width: 768px) {
    /* Navigacija */
    .nav-content { padding: 0 1.5rem; }
    
    .hamburger { display: block; }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* Sakriveno desno */
        width: 100%;
        height: 100vh;
        background: var(--dark);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s ease-in-out;
        z-index: 100;
    }

    .nav-links.active {
        right: 0; /* Prikazi meni */
    }

    .nav-links a {
        margin: 2rem 0;
        font-size: 1.5rem;
    }

    /* Hero */
    .hero-content h1 { font-size: 2.8rem; }
    
    /* Sekcije - manji padding */
    section { padding: 3rem 1.5rem; }
    .section-title { font-size: 2rem; margin-bottom: 2rem; }

    /* Tim */
    .team-grid { gap: 3rem; flex-direction: column; align-items: center; }

    /* Usluge Kartice - na mobilnom vracamo normalnu visinu da stane tekst ako je dugacak */
    .services-grid { grid-template-columns: 1fr; } 
    .card { aspect-ratio: auto; min-height: 250px; padding: 2rem; }

    /* Kontakt */
    .contact-container { grid-template-columns: 1fr; gap: 2rem; }
    .map-frame { height: 300px; }
}