/* --- Osnovni Reset i Varijable --- */
:root {
    --primary: #007bff;      /* Azure plava */
    --primary-dark: #0056b3;
    --text-dark: #1a1a1a;    /* Charcoal siva */
    --text-muted: #555;
    --bg-light: #f4f7f6;     /* Svetlo siva */
    --white: #ffffff;
    --shadow: 0 10px 40px rgba(0,0,0,0.08);
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { 
    font-family: 'Montserrat', sans-serif; 
    color: var(--text-dark); 
    background-color: var(--white); 
    line-height: 1.6; 
    overflow-x: hidden; 
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

/* --- Univerzalni Naslovi --- */
.section-header { text-align: center; margin-bottom: 60px; }
.section-header.left { text-align: left; }
.section-header h2 { font-size: 32px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: #000; }
.bg-light { background-color: var(--bg-light); padding: 100px 0; }

/* --- Dugmad --- */
.btn-solid, .btn-outline {
    display: inline-block; padding: 15px 35px; border-radius: 4px;
    font-size: 13px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1px; transition: var(--transition); cursor: pointer; border: 2px solid transparent;
}
.btn-solid { background-color: var(--primary); color: var(--white); }
.btn-solid:hover { background-color: var(--primary-dark); transform: translateY(-2px); }
.btn-outline { background-color: transparent; color: var(--white); border-color: rgba(255,255,255,0.7); }
.btn-outline:hover { background-color: var(--white); color: var(--primary); border-color: var(--white); }
.btn-small { padding: 10px 20px; font-size: 12px; }
.btn-full { width: 100%; text-align: center; }

/* --- 1. Header (Navbar) --- */
header {
    background-color: transparent;
    position: fixed; top: 0; width: 100%; z-index: 1000;
    transition: var(--transition);
    padding: 15px 0;
}

/* Klasa koja se dodaje preko JS-a prilikom skrolovanja */
header.scrolled { 
    background-color: rgba(255, 255, 255, 0.98); 
    box-shadow: 0 2px 15px rgba(0,0,0,0.1); 
    padding: 8px 0;
}

.navbar { display: flex; justify-content: space-between; align-items: center; height: 60px; }

/* Promena boje logotipa */
.logo strong { font-size: 22px; color: var(--white); font-weight: 800; transition: var(--transition); }
header.scrolled .logo strong { color: var(--text-dark); }

/* Navigacioni linkovi */
.nav-links { display: flex; gap: 25px; }
.nav-links a { font-size: 12px; font-weight: 700; color: var(--white); text-transform: uppercase; letter-spacing: 0.5px; opacity: 0.9; transition: var(--transition); }
header.scrolled .nav-links a { color: var(--text-dark); opacity: 0.8; }
header.scrolled .nav-links a:hover, header.scrolled .nav-links a.active { color: var(--primary); opacity: 1; }

.menu-toggle { display: none; font-size: 20px; color: var(--white); cursor: pointer; }

/* --- 2. Hero Sekcija --- */
.hero {
    height: 100vh; background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center;
    text-align: center; position: relative; color: var(--white);
}
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.35); z-index: 1; }
.hero-content { z-index: 10; position: relative; max-width: 850px; }
.hero-content h1 { font-size: 52px; font-weight: 800; line-height: 1.1; margin-bottom: 20px; }
.hero-content p { font-size: 19px; opacity: 0.9; margin-bottom: 35px; }
.hero-btns { display: flex; gap: 15px; justify-content: center; }

.scroll-down { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); font-size: 20px; animation: bounce 2s infinite; z-index: 10; opacity: 0.8;}
@keyframes bounce { 0%, 20%, 50%, 80%, 100% {transform: translateY(0);} 40% {transform: translateY(-10px);} 60% {transform: translateY(-5px);} }

/* --- 3. Usluge (Lebdeće kartice) --- */
.services-cards { display: flex; gap: 20px; margin-top: -80px; position: relative; z-index: 20; margin-bottom: 80px; }
.serv-card {
    background: var(--white); padding: 45px 25px; text-align: center; border-radius: 6px; flex: 1;
    box-shadow: var(--shadow); transition: var(--transition); display: flex; flex-direction: column; align-items: center;
}
.serv-card i { font-size: 32px; color: var(--primary); margin-bottom: 20px; }
.serv-card h3 { font-size: 14px; font-weight: 800; text-transform: uppercase; margin-bottom: 15px; }
.serv-card p { font-size: 13px; color: var(--text-muted); }
.serv-card.active { border-bottom: 4px solid var(--primary); }
.serv-card:hover { transform: translateY(-5px); }

/* --- 4. Zašto Nas --- */
.why-grid { display: flex; gap: 20px; }
.why-item { background: var(--white); padding: 40px; text-align: center; flex: 1; border-radius: 6px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); }
.why-item i { font-size: 36px; color: var(--primary); margin-bottom: 15px; display: block; }
.why-item h4 { font-size: 28px; font-weight: 800; color: #000; margin-bottom: 5px; }
.why-item p { font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; }

/* --- 5. Proizvodi --- */
.our-products { padding: 100px 0; }
.product-main-img { width: 100%; border-radius: 8px; box-shadow: var(--shadow); margin-bottom: 40px; }
.product-grid { display: flex; gap: 20px; }
.prod-card { background: var(--white); padding: 35px; flex: 1; border-radius: 6px; border: 1px solid #eee; text-align: center; }
.prod-card h4 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.prod-card p { font-size: 13px; color: var(--text-muted); margin-bottom: 15px; }
.prod-card.active { background: var(--bg-light); border-color: var(--primary); }
.prod-icons { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 700; align-items: center; }
.prod-icons i { color: var(--primary); margin-right: 5px; }

/* --- 6. Galerija i Kontakt --- */
.gallery-contact { display: flex; gap: 50px; padding: 100px 0; }
.gallery-col { flex: 3; }
.contact-col { flex: 2; }
.contact-form { background: var(--white); padding: 35px; border-radius: 8px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 15px; }
.contact-form input, .contact-form textarea { padding: 14px; border: 1px solid #eee; border-radius: 4px; width: 100%; font-family: inherit; background: #fbfbfb; }
.contact-form textarea { height: 120px; resize: none; }

/* --- 7. Footer --- */
footer { padding: 40px 0; background: var(--text-dark); color: rgba(255,255,255,0.5); font-size: 12px; }
.footer-content { display: flex; justify-content: space-between; align-items: center; }
.social-links { display: flex; gap: 15px; font-size: 18px; }
.social-links a:hover { color: var(--white); }

/* Responsive */
@media (max-width: 768px) {
    .nav-links, header .btn-solid { display: none; }
    .menu-toggle { display: block; }
    .hero-content h1 { font-size: 32px; }
    .services-cards, .why-grid, .product-grid, .gallery-contact { flex-direction: column; }
    .services-cards { margin-top: -40px; }
}