:root {
    --primary: #007bff;
    --dark: #1a1a1a;
    --light: #f4f4f4;
    --accent: #00d4ff;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', sans-serif; }

html { scroll-behavior: smooth; }

.container { max-width: 1100px; margin: auto; padding: 0 2rem; }

/* Navigation */
nav {
    background: white;
    height: 80px;
    display: flex;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav .container { display: flex; justify-content: space-between; align-items: center; width: 100%; }

.logo { font-weight: 800; font-size: 1.5rem; color: var(--dark); }
.logo span { color: var(--primary); }

.nav-links { display: flex; list-style: none; }
.nav-links li a { 
    text-decoration: none; 
    color: var(--dark); 
    margin-left: 2rem; 
    font-weight: 500;
    transition: 0.3s;
}
.nav-links li a:hover { color: var(--primary); }

/* Hero */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1581092160562-40aa08e78837?auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
    padding-top: 80px;
}

.hero h1 { font-size: 3.5rem; margin-bottom: 1rem; }
.highlight { color: var(--accent); }
.hero p { font-size: 1.2rem; margin-bottom: 2rem; opacity: 0.9; }

/* Buttons */
.btn {
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: 0.3s;
    display: inline-block;
    margin: 0.5rem;
}
.primary { background: var(--primary); color: white; border: none; cursor: pointer; }
.primary:hover { background: #0056b3; }
.secondary { border: 2px solid white; color: white; }
.secondary:hover { background: white; color: var(--dark); }

/* Sections */
section { padding: 5rem 0; }
.section-title { text-align: center; margin-bottom: 3rem; font-size: 2.5rem; }
.dark-bg { background: var(--dark); color: white; }

/* Service Cards */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.service-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}
.service-card:hover { transform: translateY(-10px); }
.service-card i { font-size: 3rem; color: var(--primary); margin-bottom: 1.5rem; }

/* Specs Section */
.specs-wrapper { display: flex; align-items: center; gap: 4rem; }
.specs-text ul { list-style: none; margin-top: 2rem; }
.specs-text li { margin-bottom: 1rem; font-size: 1.1rem; }
.specs-text i { color: var(--accent); margin-right: 10px; }
.img-box { width: 100%; background: #333; height: 300px; display: flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid #444; }

/* Calculator */
.calc-container {
    max-width: 600px;
    margin: auto;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.input-group { margin-bottom: 1.5rem; }
.input-group label { display: block; margin-bottom: 0.5rem; font-weight: bold; }
.input-group input, .input-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}
.result { margin-top: 1.5rem; font-size: 1.5rem; font-weight: bold; color: var(--primary); text-align: center; }

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}
.info-item { display: flex; align-items: center; margin-bottom: 1.5rem; font-size: 1.2rem; }
.info-item i { font-size: 1.5rem; color: var(--primary); margin-right: 1.5rem; }
.contact-cta { background: #e9ecef; padding: 2rem; border-radius: 10px; }

/* Responsive */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero h1 { font-size: 2.5rem; }
    .specs-wrapper, .contact-grid { grid-template-columns: 1fr; flex-direction: column; }
}

footer { text-align: center; padding: 2rem; background: var(--dark); color: white; border-top: 1px solid #333; }

/* Top Bar */
.top-bar {
    background: #f8f9fa;
    padding: 10px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid #ddd;
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.contact-links a {
    color: var(--dark);
    text-decoration: none;
    margin-right: 20px;
    font-weight: 500;
}
.contact-links i { color: var(--primary); margin-right: 5px; }

/* Call Button u Hero sekciji */
.call-btn {
    background: #28a745;
    color: white;
    border: none;
}
.call-btn:hover { background: #218838; transform: scale(1.05); }

/* Floating Chat */
.floating-chat {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 2000;
}
.main-chat-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    cursor: pointer;
}
.chat-options {
    display: none;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}
.chat-options a {
    padding: 12px 20px;
    border-radius: 30px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.viber { background: #7360f2; }
.whatsapp { background: #25d366; }

/* Mobilna adaptacija za gumbe */
@media (max-width: 600px) {
    .top-bar .social-top { display: none; }
    .hero-btns { display: flex; flex-direction: column; }
    .hero-btns .btn { width: 100%; margin: 5px 0; }
}

/* Kontrola vidljivosti */
.mobile-only { display: none; }
.desktop-only { display: block; }

/* Stil za prikaz broja na desktopu */
.desktop-contact-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 25px;
    border-radius: 8px;
    border-left: 4px solid var(--accent);
    margin: 10px;
    display: inline-block;
    vertical-align: middle;
    text-align: left;
}

.phone-display {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    letter-spacing: 1px;
}

.desktop-contact-info p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--accent);
    text-transform: uppercase;
    font-weight: bold;
}

/* Prilagođavanje za MOBILNI (ekrani manji od 768px) */
@media (max-width: 768px) {
    .mobile-only { display: inline-block; }
    .desktop-only { display: none; }
    
    .hero-btns {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        margin: 10px 0;
    }
}