:root {
    --primary: #000000;
    --secondary: #00ff0a;
    --dark: #000000;
    --light: #f4f7f4;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-image: url('logo.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

header {
    color: var(--white);
    text-align: center;
    padding: 20px 10px 10px 10px;
}

header h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: var(--secondary);
}

header p {
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto 15px auto;
}

/* --- NAVIGACIJA / IZBORNIK --- */
.main-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 25px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid var(--secondary);
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 255, 10, 0.2);
}

.nav-link:hover, .nav-link.active {
    background: var(--secondary);
    color: #000000;
    box-shadow: 0 6px 15px rgba(0, 255, 10, 0.6);
}

.container {
    max-width: 1000px;
    margin: 20px auto;
    padding: 0 15px;
}

.section-title {
    text-align: center;
    color: #4fff00;
    margin-bottom: 20px;
    font-size: 1.6rem;
}

/* --- KONTEJNERI ZA SLIKE VOZILA I OPREME --- */
.vehicles-container, 
.vehicles2-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    padding: 0 15px;
}

.header-vehicle2-img, 
.header-vehicle3-img,
.header-vehicle4-img {
    position: static;
    width: 45%;
    max-width: 300px;
    height: auto;
    object-fit: contain;
    display: block;
}

.header-vehicle5-img {
    position: relative;
    max-width: 200px;
    width: 50%;
    height: auto;
    object-fit: contain;
    display: block;
}

/* --- Veliki Slajder CSS --- */
.gallery-section {
    margin-bottom: 40px;
}

.slider-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 380px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    background: var(--white);
}

.slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.8s ease-in-out;
}

.slide {
    min-width: 100%;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slider-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 90%;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.dot:hover, .dot.active {
    background-color: var(--secondary);
    transform: scale(1.2);
}

/* --- Usluge CSS (3 u redu) --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Forsira točno 3 stupca na računalima */
    gap: 20px;
}

/* Prilagodba za tablete i manje ekrane da se spuste na 2 stupca ili 1 */
@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    text-align: center;
    border-top: 4px solid var(--secondary);
}

.service-card h3 {
    margin-bottom: 10px;
    color: #000000;
}

/* --- CTA GUMBI (WhatsApp & Poziv - Jedan do drugog) --- */
.call-banner {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 30px 0;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #14ff04;
    color: #000000;
    font-size: 1rem;
    font-weight: bold;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(4, 255, 0, 0.4);
    transition: all 0.3s ease-in-out;
    flex: 1;
    min-width: 260px;
    max-width: 350px;
}

.whatsapp-btn:hover {
    background-color: #1ebd56;
    transform: translateY(-2px);
}

.call-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #000;
    color: #00ff0a;
    border: 2px solid #00ff0a;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease-in-out;
    flex: 1;
    min-width: 260px;
    max-width: 350px;
}

.call-btn:hover {
    background: #111;
    color: #14ff04;
    transform: translateY(-2px);
}

/* --- Kontakt CSS --- */
.contact-box {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 1rem;
    word-break: break-word;
}

.contact-info a {
    color: var(--primary);
    text-decoration: none;
    font-weight: bold;
}

footer {
    background-color: var(--dark);
    color: var(--white);
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    font-size: 0.85rem;
}

/* --- RADAR SEKCIJA --- */
.radar-section {
    text-align: center;
    margin: 30px auto;
    background: rgba(5, 15, 5, 0.92);
    padding: 25px 15px;
    border-radius: 16px;
    border: 1px solid rgba(0, 255, 10, 0.2);
    box-shadow: 0 10px 30px rgba(0, 255, 10, 0.2);
    max-width: 500px;
}

.radar-box {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 20px auto;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 255, 10, 0.08) 0%, rgba(2, 10, 2, 0.95) 75%);
    border: 3px solid #00ff0a;
    box-shadow: 0 0 25px rgba(0, 255, 10, 0.35), inset 0 0 20px rgba(0, 255, 10, 0.25);
    overflow: hidden;
}

.radar-sweep {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border-radius: 50%;
    background: conic-gradient(
        from -90deg at 50% 50%,
        rgba(0, 255, 10, 0.5) 0deg,
        rgba(0, 255, 10, 0.15) 30deg,
        rgba(0, 255, 10, 0.02) 90deg,
        transparent 120deg,
        transparent 360deg
    );
    animation: rotateRadar 4s linear infinite;
    z-index: 1;
}

.radar-line {
    position: absolute;
    top: 0; left: 50%;
    width: 2px; height: 50%;
    background: #00ff0a;
    box-shadow: 0 0 10px #00ff0a;
    transform-origin: bottom center;
    animation: rotateRadar 4s linear infinite;
    z-index: 2;
}

@keyframes rotateRadar {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.radar-ring {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border: 1px dashed rgba(0, 255, 10, 0.35);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.radar-ring span {
    position: absolute;
    top: -11px; left: 50%;
    transform: translateX(-50%);
    font-size: 0.6rem;
    color: rgba(0, 255, 10, 0.85);
    font-weight: 600;
}

.ring-1 { width: 25%; height: 25%; }
.ring-2 { width: 50%; height: 50%; }
.ring-3 { width: 75%; height: 75%; }
.ring-4 { width: 97%; height: 97%; }

.radar-axis-x, .radar-axis-y {
    position: absolute;
    background: rgba(0, 255, 10, 0.25);
    z-index: 0;
}

.radar-axis-x { top: 50%; left: 0; width: 100%; height: 1px; }
.radar-axis-y { left: 50%; top: 0; width: 1px; height: 100%; }

.radar-point {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 3;
}

.point-dot {
    width: 6px; height: 6px;
    background-color: #00ff0a;
    border-radius: 50%;
    box-shadow: 0 0 8px #00ff0a;
    animation: blinkPoint 1.8s infinite ease-in-out alternate;
}

@keyframes blinkPoint {
    0% { opacity: 0.3; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1.3); }
}

.point-label {
    font-size: 0.6rem;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.85);
    padding: 1px 5px;
    border-radius: 4px;
    white-space: nowrap;
    border: 1px solid rgba(0, 255, 10, 0.4);
}

.center-point { top: 47%; left: 45%; }
.center-point .point-dot { background-color: #ff0000; box-shadow: 0 0 10px #ff0000; }
.center-point .point-label { color: #ff4d4d; font-weight: bold; border-color: rgba(255, 77, 77, 0.6); }

.city-1 { top: 70%; left: 45%; }
.city-2 { top: 50%; left: 62%; }
.city-3 { top: 40%; left: 5%; }
.city-4 { top: 18%; left: 58%; }
.city-5 { top: 76%; left: 12%; }
.city-6 { top: 22%; left: 25%; }
.city-7 { top: 32%; left: 50%; }

.info-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

/* --- PRILAGODBA ZA MOBITELE (MEDIA QUERIES) --- */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.8rem;
    }

    .nav-link {
        font-size: 0.9rem;
        padding: 8px 14px;
    }

    .slider-container {
        height: 250px;
    }

    .radar-box {
        width: 260px;
        height: 260px;
    }

    .point-label {
        font-size: 0.55rem;
    }

    .whatsapp-btn, .call-btn {
        font-size: 0.95rem;
        padding: 12px 16px;
        min-width: 100%; /* Na mobitelu se šire preko cijelog ekrana jedan ispod drugog za lakše kliktanje */
    }
}

/* --- DEKORATIVNE KOSILICE U ZAGLAVLJU (OKRENUTE PREMA IMENU) --- */
.header-mower-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.header-mower-left {
    width: 130px;
    height: auto;
    object-fit: contain;
    transform: scaleX(-1); /* Okreće lijevu kosilicu da "gleda" udesno, prema imenu */
    mix-blend-mode: screen; /* Miče crnu pozadinu */
}

.header-mower-right {
    width: 130px;
    height: auto;
    object-fit: contain;
    /* Desna već gleda ulijevo prema imenu ili ostaje normalna */
    mix-blend-mode: screen; /* Miče crnu pozadinu */
}

/* Sakrivanje na manjim ekranima da ne guše naslov na mobitelima */
@media (max-width: 768px) {
    .header-mower-left, .header-mower-right {
        display: none;
    }
}

/* --- Stilovi za strelice slajdera --- */
.slider-btn {
    position: absolute;
    top: 50%; /* Pomaknuto malo iznad centra da ostane mjesta za točkice ispod */
    transform: translateY(-50%);
    background-color: rgb(0 0 0 / 60%);
    color: var(--white);
    border: none;
    font-size: 1.2rem;
    padding: 10px 12px;
    cursor: pointer;
    border-radius: 80%; /* Strelice su sada u obliku elegantnog kruga */
    transition: background-color 0.3s, color 0.3s, transform 0.2s;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background-color: var(--secondary);
    color: #000000;
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 12px;
}

.next-btn {
    right: 12px;
}

/* Prilagodba strelica za mobitele da budu lakše za klikanje prstom */
@media (max-width: 768px) {
    .slider-btn {
        font-size: 1.2rem;
        padding: 8px 12px;
        background-color: rgba(0, 0, 0, 0.7);
    }
    
    .prev-btn {
        left: 8px;
    }
    
    .next-btn {
        right: 8px;
    }
}