/* --- Variables & Reset --- */
:root {
    --bg-color: #ffffff;
    --text-color: #111111;
    --secondary-bg: #f8f8f8;
    --card-bg: #ffffff;
    --border-color: #eeeeee;
    --font-main: 'Inter', sans-serif;
    --pill-bg: #f2f2f2;
    --pill-active: #000000;
    --pill-text-active: #ffffff;
    --blob-opacity: 0.05;
}

[data-theme="dark"] {
    --bg-color: #0a0a0a;
    --text-color: #ffffff;
    --secondary-bg: #141414;
    --card-bg: #1a1a1a;
    --border-color: #333333;
    --pill-bg: #222222;
    --pill-active: #ffffff;
    --pill-text-active: #000000;
    --blob-opacity: 0.15;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { 
    scroll-behavior: smooth; 
    background-color: var(--bg-color); 
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    transition: background-color 0.4s, color 0.4s;
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- HEADER & CONTROLS --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    position: sticky;
    top: 0;
    background-color: rgba(var(--bg-color), 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
    height: 90px;
}

header.transparent-header {
    background-color: transparent !important;
    backdrop-filter: none !important;
    position: absolute; 
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    top: 0;
}

/* LOGO LOGIKA - FIX ZA DUPLI LOGO */
.logo a {
    display: block;
    text-decoration: none;
}

.logo img { 
    height: 45px; 
    width: auto; 
    cursor: pointer;
}

/* Podrazumevano (Svetla tema) */
.logo-light { display: block; }
.logo-dark { display: none; }

/* Tamna tema - KORISTIMO !important DA FORSIRAMO SAKRIVANJE */
[data-theme="dark"] .logo-light { display: none !important; }
[data-theme="dark"] .logo-dark { display: block !important; }


.menu { list-style: none; display: flex; gap: 30px; }

.menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    opacity: 1;
    transition: color 0.3s ease;
}

.menu a:hover { opacity: 0.8; }

/* HEADER CONTROLS */
.controls-wrapper { display: flex; align-items: center; gap: 20px; }
.theme-icons { display: flex; gap: 12px; }
.theme-icon-btn {
    background: none; border: none; color: var(--text-color);
    cursor: pointer; opacity: 0.5; padding: 0; display: flex;
    align-items: center; transition: opacity 0.3s;
}
.theme-icon-btn:hover, .theme-icon-btn.active { opacity: 1; }

.lang-pill {
    background-color: var(--pill-bg); border-radius: 6px;
    padding: 3px; display: flex; gap: 2px;
}
.lang-pill button {
    background: none; border: none; padding: 4px 10px;
    border-radius: 4px; font-weight: 700; font-size: 0.7rem;
    cursor: pointer; color: var(--text-color); transition: all 0.2s ease;
}
.lang-pill button.active {
    background-color: var(--pill-active); color: var(--pill-text-active);
}

/* --- SERVICES (Home Page) --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    align-items: stretch;
}

.service-card {
    background-color: var(--card-bg); 
    padding: 35px 30px;
    border: 1px solid var(--border-color); 
    border-radius: 12px;
    text-align: left; 
    display: flex; 
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start; 
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.card-icon { margin-bottom: 25px; color: var(--text-color); }
.service-card h3 { margin-bottom: 10px; font-size: 1.1rem; font-weight: 700; }
.service-card p { font-size: 0.85rem; opacity: 0.7; line-height: 1.5; }

.service-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%; 
}

/* --- Layout & Ostalo --- */
.container { max-width: 1200px; margin: 0 auto; padding: 40px 20px; }

.hero {
    position: relative;
    padding: 100px 0; 
    text-align: center;
}

.hero h1 { font-size: 4rem; line-height: 1.1; margin-bottom: 20px; }
.hero-sub { margin-bottom: 40px; opacity: 0.7; }
.cta-button {
    display: inline-block; background-color: var(--text-color);
    color: var(--bg-color); padding: 15px 40px; text-decoration: none;
    border-radius: 50px; font-weight: 600; transition: transform 0.3s;
}
.cta-button:hover { transform: translateY(-3px); }

.stats-bar { display: flex; justify-content: space-around; padding: 60px 0; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); margin-bottom: 80px; flex-wrap: wrap;}
.stat-item { text-align: center; min-width: 150px; margin: 10px; }
.stat-number { display: block; font-size: 2.5rem; font-weight: 800; }
.stat-label { font-size: 0.7rem; opacity: 0.6; text-transform: uppercase; letter-spacing: 1px; }

section, .content-block { 
    margin-bottom: 100px; 
    scroll-margin-top: 120px;
}

h2 { font-size: 2rem; margin-bottom: 40px; }
.text-content p { margin-bottom: 1.5rem; font-size: 1.1rem; max-width: 800px; text-align: justify;}

.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 50px; }
.contact-info { background: var(--secondary-bg); padding: 40px; border-radius: 12px; }
.contact-info a { color: var(--text-color); font-weight: 600; }

.map-container {
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden;
    filter: grayscale(100%);
    transition: filter 0.3s;
}
[data-theme="dark"] .map-container {
    filter: grayscale(100%) invert(90%);
}

.form-group { margin-bottom: 20px; }
input, textarea { width: 100%; padding: 15px; border: 1px solid var(--border-color); background: transparent; color: var(--text-color); border-radius: 8px; font-family: inherit; transition: border-color 0.3s;}
input.error, textarea.error { border-color: #ff4444; }
button[type="submit"] { background: var(--text-color); color: var(--bg-color); padding: 15px; border: none; width: 100%; cursor: pointer; border-radius: 8px; font-weight: 600; text-transform: uppercase;}

#preloader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--bg-color); z-index: 9999; display: flex; justify-content: center; align-items: center; transition: 0.5s; }
.preloader-finish { opacity: 0; pointer-events: none; }
.loading-line { width: 0; height: 2px; background: var(--text-color); animation: load 1.5s forwards; }
@keyframes load { to { width: 100%; } }
.bg-animation { position: fixed; z-index: -1; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; pointer-events: none;}
.blob { position: absolute; filter: blur(80px); opacity: var(--blob-opacity); border-radius: 50%; }
.blob-1 { top: -10%; left: -10%; width: 500px; height: 500px; background: #555; animation: float 20s infinite alternate;}
.blob-2 { bottom: -10%; right: -10%; width: 500px; height: 500px; background: #333; animation: float 25s infinite alternate-reverse;}
@keyframes float { 0% { transform: translate(0, 0); } 100% { transform: translate(50px, 100px); }}
.animate-on-scroll { opacity: 0; transform: translateY(20px); transition: 0.6s; }
.visible { opacity: 1; transform: translateY(0); }

/* PODSTRANICE */
.video-background {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; overflow: hidden;
}
.video-background video {
    min-width: 100%; min-height: 100%; width: auto; height: auto; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); object-fit: cover;
}
.video-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6); z-index: 1;
}
.service-hero {
    position: relative; height: 100vh; display: flex; align-items: center; padding: 0 10%; color: #ffffff; z-index: 10;
}
.service-hero-content { max-width: 800px; }
.hero-subtitle { font-size: 1.1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 4px; margin-bottom: 20px; opacity: 0.8; color: #f0f0f0; }
.service-hero-content h1 { font-size: 5rem; font-weight: 800; line-height: 1.1; margin-bottom: 30px; text-transform: uppercase; text-shadow: 2px 2px 10px rgba(0,0,0,0.5); }
.service-hero-content p { font-size: 1.3rem; line-height: 1.6; margin-bottom: 50px; opacity: 0.9; font-weight: 400; max-width: 600px; }
.btn-text-back { display: inline-flex; align-items: center; gap: 12px; color: #ffffff; text-decoration: none; font-size: 1.1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; transition: all 0.3s ease; border-bottom: 2px solid transparent; padding-bottom: 5px; }
.btn-text-back svg { transition: transform 0.3s ease; }
.btn-text-back:hover { opacity: 1; border-bottom-color: #ffffff; }
.btn-text-back:hover svg { transform: translateX(-5px); }
.animate-fadeInLeft { animation: fadeInLeft 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; opacity: 0; }
@keyframes fadeInLeft { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: translateX(0); } }


/* --- MOBILE RESPONSIVE --- */
@media (max-width: 768px) {
    header { flex-direction: column; gap: 20px; height: auto; position: relative; }
    
    header.transparent-header {
        position: absolute; 
        background-color: transparent !important;
    }

    .hero h1 { font-size: 2.5rem; }
    .stats-bar { flex-direction: column; gap: 20px; }
    
    .contact-grid {
        display: flex;
        flex-direction: column-reverse; 
        gap: 40px;
    }

    .contact-info, .contact-form-wrapper { width: 100%; }
    .map-container iframe { height: 250px; }

    .service-hero {
        padding: 0 20px;
        justify-content: center; 
        text-align: center;
        padding-top: 220px; 
    }

    .hero-subtitle { font-size: 0.9rem; letter-spacing: 2px; }
    .service-hero-content h1 { font-size: 2.8rem; margin-bottom: 20px; }
    .service-hero-content p { font-size: 1rem; margin-bottom: 40px; }
    .btn-text-back { justify-content: center; font-size: 1rem; }
}