/* =========================================
   1. ГЛОБАЛНИ СТИЛОВИ & RESET
   ========================================= */
:root { --blue: #004a99; --dark: #002d5a; }
* { box-sizing: border-box; }
html { overflow-y: scroll; height: 100%; }

body { 
    margin: 0; padding: 0; padding-top: 75px; 
    font-family: Arial, sans-serif; 
    display: flex; flex-direction: column; min-height: 100vh;
}

.container-main { max-width: 1200px; margin: 0 auto; padding: 0 30px; width: 100%; }

/* =========================================
   2. HEADER & NAVIGATION
   ========================================= */
header { 
    background: #fff; height: 75px; border-bottom: 4px solid var(--blue); 
    position: fixed; top: 0; left: 0; width: 100%; z-index: 3000; 
    display: flex; align-items: center;
}

.container-header { width: 100%; padding: 0 30px; display: flex; justify-content: space-between; align-items: center; }

/* LOGO - Фиксна висина без деформација */
.logo-wrapper img { height: 45px; width: auto; display: block; }

/* NAV MENU */
.nav-menu { display: flex; align-items: center; }
.nav-menu a { text-decoration: none; color: #333; margin-left: 25px; font-size: 13px; font-weight: bold; text-transform: uppercase; }
.menu-toggle { display: none; font-size: 30px; cursor: pointer; color: var(--blue); }

/* ЈАЗИЦИ (Dropdown) */

.globe-img { height: 18px; width: 18px; display: block; object-fit: contain; }

#current-lang-label { display: inline-block; width: 24px; text-align: center; font-size: 12px; font-weight: 600; color: var(--blue); }

.dropdown-content { display: none; position: absolute; top: 100%; right: 0; background: #fff; min-width: 70px; box-shadow: 0 8px 16px rgba(0,0,0,0.1); border: 1px solid #eee; border-radius: 4px; }
.dropdown-content a { display: block; padding: 10px; font-size: 12px; color: #666; text-align: center; border-bottom: 1px solid #f9f9f9; text-decoration: none; }
.dropbtn { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.lang-dropdown { position: relative; margin-left: 25px; padding-left: 20px; border-left: 1px solid #ddd; cursor: pointer; display: flex; align-items: center; }
.lang-dropdown:hover .dropdown-content { display: block; }

/* =========================================
   3. SECTION: HERO (Сина лента)
   ========================================= */
.hero { background: var(--blue); color: #fff; padding: 4px 0; text-align: center; width: 100%; line-height: 18px; height: auto; }
.hero h1 { font-size: 18px; margin: 0; font-weight: 400; display: block; vertical-align: top; }

/* =========================================
   4. SECTION: PANORAMA & FEATURES
   ========================================= */
/* ПАНОРАМА - ЕДНА СЛИКА ПРЕКУ ЦЕЛА ШИРИНА */
.panorama-engine { 
    width: 100%; height: 450px; 
    background-image: url('images/vvz1.webp'); /* Почетна слика */
    background-size: cover; background-position: center; 
    position: relative; transition: background-image 0.4s ease-in-out; 
}

.solutions-grid { display: flex; width: 100%; height: 100%; background: rgba(0,0,0,0.1); }

.solution-item { 
    flex: 1; height: 100%; position: relative; cursor: pointer; overflow: hidden; 
    border-right: 1px solid rgba(255,255,255,0.1); 
}

/* ПАНЕЛИТЕ И ЛЕНТИТЕ ОСТАНУВААТ ИСТИ */
.label-bar { position: absolute; bottom: 0; left: 0; width: 100%; height: 35px; background: rgba(34, 49, 63, 0.95); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: bold; transition: 0.25s; z-index: 5; }
.overlay { position: absolute; inset: 0; background: rgba(52, 73, 94, 0.88); backdrop-filter: blur(3px); display: flex; flex-direction: column; justify-content: center; align-items: center; color: #fff; padding: 25px; text-align: center; transform: translateY(100%); transition: transform 0.25s ease-out; z-index: 10; }
.solution-item:hover .overlay { transform: translateY(0); }
.solution-item:hover .label-bar { opacity: 0; }

/* МАЛО КОПЧЕ ВНАТРЕ */
.btn-mini {
    margin-top: 15px; padding: 8px 20px;
    border: 1px solid #fff; color: #fff; text-decoration: none;
    font-size: 12px; text-transform: uppercase; font-weight: bold;
    transition: 0.3s;
}
.btn-mini:hover { background: #fff; color: #2c3e50; }










/* МАЛО ДОТЕРУВАЊЕ НА ТЕКСТОТ ВНАТРЕ */
.overlay h3 { font-size: 20px; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1px; }
.overlay p { font-size: 14px; line-height: 1.5; opacity: 0.9; }


.features-grid { background: #f9f9f9; padding: 40px 0; }
.flex-features { display: flex; justify-content: space-between; gap: 20px; }
.feature-item { flex: 1; text-align: center; padding: 10px; }
.f-icon-circle { width: 50px; height: 50px; background: var(--blue); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 15px; font-size: 20px; font-weight: bold; }

/* =========================================
   5. SECTION: DARK INFO & CONTACT
   ========================================= */
.dark-info-block { background: #111; color: #fff; padding: 60px 0; text-align: center; }
.dark-flex { display: flex; flex-direction: column; align-items: center; gap: 30px; }
.dark-text { width: 100%; max-width: 850px; }
.dark-text h2 { font-size: 34px; margin: 0 0 15px 0; font-family: serif; font-weight: normal; }
.dark-text p { font-size: 18px; opacity: 0.7; line-height: 1.6; margin: 0; }
.btn-outline { display: inline-block; padding: 16px 45px; border: 2px solid var(--blue); background: transparent; color: #fff; text-decoration: none; font-weight: bold; text-transform: uppercase; letter-spacing: 1.5px; transition: 0.3s; }
.btn-outline:hover { background: var(--blue); }

/* Контакт форма - Чист Flex без реметење */
.contact-wrapper { display: flex; flex: 1; width: 100%; background: #fff; }
.map-container { flex: 0 0 50%; padding-left: 20px; position: relative; }
.map-container iframe { width: 100%; height: 100%; border: none; }
.form-container { flex: 0 0 50%; padding: 40px 60px; display: flex; flex-direction: column; justify-content: flex-start; }
.form-container form { display: flex; flex-direction: column; width: 100%; }
.form-container input, 
.form-container textarea { width: 100%; display: block; margin-bottom: 20px; padding: 12px; border: 1px solid #ddd; font-family: Arial, sans-serif;}
.form-container button { width: fit-content; padding: 15px 45px; background: var(--blue); color: #fff; border: none; cursor: pointer; font-weight: bold; text-transform: uppercase; }
.form-container h2 { color: var(--blue); font-size: 38px; margin: 0 0 10px 0; }
.form-container p { font-size: 20px; font-weight: bold; color: #000; margin-bottom: 25px; }

/* =========================================
   6. FOOTER & RESPONSIVE
   ========================================= */
footer { position: fixed; bottom: 0; width: 100%; height: 35px; background: var(--dark); color: #fff; display: flex; align-items: center; z-index: 4000; }
.footer-flex { display: flex; justify-content: space-between; width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 30px; }

.material-icons { font-family: 'Material Icons'; font-weight: normal; font-style: normal; font-size: 18px; display: inline-block; line-height: 1; text-transform: none; letter-spacing: normal; word-wrap: normal; white-space: nowrap; direction: ltr; -webkit-font-smoothing: antialiased; color: #fff; margin-right: 8px; vertical-align: middle; }

@media (max-width: 850px) {
    body { padding-top: 70px; }
    header { height: 70px; }
    .logo-wrapper img { height: 35px; }
    .menu-toggle { display: block; }
    .nav-menu { display: none; position: absolute; top: 70px; right: 15px; width: 180px; background: #fff; border: 1px solid #ddd; border-radius: 5px; flex-direction: column; padding: 10px 0; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
    .nav-menu.active { display: flex; }
    .nav-menu a { margin: 0; padding: 12px 20px; border-bottom: 1px solid #eee; width: 100%; }
    .lang-dropdown { border: none; border-top: 1px solid #eee; margin: 0; width: 100%; padding: 0; display: block; }
    .dropbtn { display: none; }
    .dropdown-content { display: block; position: static; box-shadow: none; border: none; width: 100%; }
    .flex-features, .dark-flex, .footer-flex { flex-direction: column; text-align: center; }
    .contact-wrapper { flex-direction: column; }
    .map-container, .form-container { flex: 0 0 auto; width: 100%; padding: 20px; }
    .map-container { height: 300px; padding-left: 0; }
    .form-container { flex: 0 0 auto; width: 100%; padding: 30px 20px; }
    .form-container button { width: 100%; } /* На мобилен копчето е преку цела ширина */
    .panorama-engine { height: 300px; }
    footer { position: relative; height: auto; padding: 10px 0; }
}
