/* =========================================
   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; }








.tech-services-light {
    padding: 80px 0;
    background-color: #ffffff; /* Чиста бела за да се разликува од сивиот Dark Block подолу */
    text-align: center;
}

.section-title-center {
    margin-bottom: 50px;
    font-size: 2rem;
    color: #222;
    font-weight: 700;
}

.services-row {
    display: flex;
    justify-content: space-around;
    gap: 40px;
    flex-wrap: wrap;
}

.service-item {
    flex: 1;
    min-width: 280px;
    padding: 30px;
    border-radius: 15px;
    background: #fdfdfd;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.service-item:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transform: translateY(-5px);
    border-color: #0056b3;
}

.s-icon-box {
    width: 70px;
    height: 70px;
    background: #eef4ff; /* Светло сина позадина за иконата */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    color: #0056b3; /* Твојата сина боја */
}

.s-icon-box span {
    font-size: 35px;
}

.service-item h4 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: #111;
}

.service-item p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}










textarea {resize: none; max-height: 200px; overflow-y: auto; }
/* =========================================
   6. FOOTER & RESPONSIVE
   ========================================= */
footer { position: fixed; bottom: 0; width: 100%; height: 30px; 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: 1260px; margin: 0 auto; padding: 0 10px; }
.f-item1 { font-size: 14px; width: 250px; text-align: center; }
.f-item2 { font-size: 14px; width: 100%; text-align: center; }
.material-icons { font-family: 'Material Icons'; font-weight: normal; font-style: normal; font-size: 8px; 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: 2px; vertical-align: middle; }

/* --- МОБИЛЕН ПОРТРЕТ (Тесен екран < 640px) --- */

/* =========================================
   6. RESPONSIVE (MOBILE & TABLET)
   ========================================= */

/* ГЛОБАЛЕН МОБИЛЕН ФИКС (Под 850px) */
/* --- УНИВЕРЗАЛЕН МОБИЛЕН ФИКС (Под 950px за да го фатиме и Chrome Landscape) --- */
/* --- ЧИСТА МОБИЛНА АРХИТЕКТУРА (< 850px) --- */
/* =========================================
   6. RESPONSIVE (MOBILE & TABLET)
   ========================================= */



.zigzag-section { padding: 60px 0; background: #fff; }
.zigzag-row { 
    display: flex; 
    align-items: center; 
    gap: 50px; 
    margin-bottom: 80px; 
}
.zigzag-row.reverse { flex-direction: row-reverse; } /* Го прави ефектот лево-десно */

.zigzag-image { flex: 1; }
.zigzag-image img { 
    width: 100%; 
    border-radius: 12px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
    display: block;
}

.zigzag-text { flex: 1; }
.zigzag-text h3 { color: #222; font-size: 28px; margin-bottom: 15px; }
.zigzag-text p { color: #555; line-height: 1.6; font-size: 18px; }

/* Респонзивно за мобилен */
@media (max-width: 768px) {
    .zigzag-row, .zigzag-row.reverse { flex-direction: column; text-align: center; }
}





/* Контејнер за зиг-заг */
.zigzag-row {
    display: flex;
    align-items: center;
    gap: 80px; /* Поголем простор за да има каде да се шири лепезата */
    margin-bottom: 120px;
}
.zigzag-row.reverse { flex-direction: row-reverse; }

/* Магијата на лепезата */
.image-stack {
    position: relative;
    flex: 1;
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px; /* Додава 3Д длабочина */
}

.stack-img {
    position: absolute;
    width: 80%;
    border-radius: 6px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    border: 3px solid #fff;
    cursor: pointer;
}

/* Почетни позиции - наредени една врз друга */
.img-1 { z-index: 3; transform: rotate(0deg); }
.img-2 { z-index: 2; transform: rotate(4deg) translate(15px, 15px); }
.img-3 { z-index: 1; transform: rotate(-4deg) translate(-15px, 15px); }

/* Hover ефект - ЛЕПЕЗА */
.image-stack:hover .img-1 { 
    transform: translate(-100px, -20px) rotate(-12deg); 
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
}

.image-stack:hover .img-2 { 
    transform: scale(1.1) translate(0, -10px); 
    z-index: 10; 
}

.image-stack:hover .img-3 { 
    transform: translate(100px, -20px) rotate(12deg); 
}

/* Респонзивност за мобилен - сликите се редат нормално */
@media (max-width: 768px) {
    .zigzag-row, .zigzag-row.reverse { flex-direction: column; gap: 40px; }
    .image-stack { height: auto; display: block; }
    .stack-img { position: relative; width: 100%; transform: none !important; margin-bottom: 10px; }
}





.additional-modules {
    /* Намален vertical padding од 80px на 40px за да биде „понизок“ делот */
    padding: 40px 0 60px 0; 
    /* Посветла темно-сива позадина наместо црна */
    background-color: #252a34; 
    color: #ffffff;
    text-align: center;
}

.section-title {
    /* Намален горен маргин за насловот да биде „погоре“ */
    margin-top: 0;
    margin-bottom: 40px;
    font-size: 1.8rem;
    color: #00b4ff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modules-grid {
    display: grid;
    /* Автоматско редење на картичките */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    max-width: 1100px; /* За да не бидат премногу развлечени на голем екран */
    margin: 0 auto;
}

.module-card {
    /* Малку потемна нијанса за самите картички за да отскокнуваат од позадината */
    background: #2d333e; 
    padding: 30px 20px;
    border-radius: 12px;
    border: 1px solid #3d4450;
    transition: all 0.3s ease;
}

.module-card:hover {
    border-color: #00b4ff;
    transform: translateY(-8px);
    background: #343b48;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}



.mod-icon {
    font-size: 48px;
    color: #00b4ff;
    margin-bottom: 20px;
}

.module-card h4 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.module-card p {
    font-size: 0.95rem;
    color: #bbb;
    line-height: 1.6;
}






@media screen and (max-width: 850px) {
    /* ГЛОБАЛЕН РЕСЕТ */
    body { padding-top: 60px; display: block; overflow-x: hidden; width: 100%; }
    
    /* ХЕДЕР - САМО ТОСТ Е ВИДЛИВ */
    header { height: 60px; position: fixed; top: 0; width: 100%; z-index: 9999; }
    .nav-menu { display: none; } /* Скриј го десктоп менито */
    .nav-menu.active { display: flex; flex-direction: column; position: absolute; top: 60px; right: 0; width: 200px; background: #fff; border: 1px solid #ddd; }
    .menu-toggle { display: block; font-size: 24px; }
    .logo-wrapper img { height: 22px; width: auto; }

    /* ПАНОРАМА - ПОРТРЕТ (1x4 ЛЕНТИ) */
    .panorama-engine { height: auto; }
    .solutions-grid { display: flex; flex-direction: column; height: auto; }
    .solution-item { width: 100%; height: 110px; flex: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .overlay { opacity: 1; background: rgba(0, 74, 153, 0.7); }
    .overlay p { font-size: 11px; }

    /* ИКОНИ (FEATURES) - ВЕРТИКАЛНО */
    .flex-features { display: flex; flex-direction: column; align-items: center; gap: 30px; text-align: center; }
    .feature-item { width: 100%; max-width: 280px; }

    .contact-wrapper { 
        flex-direction: column; /* Ги реди едно под друго */
    }

/*    .map-container, 
    .form-container { 
        flex: 0 0 100%;
        width: 100%; 
        padding: 20px; 
    }

    .map-container {height: 350px; }

    .form-container h2 {font-size: 28px; }
  */  
    
    
    
    .map-container { 
    flex: none;           /* Го исклучуваме флекс растот */
    width: 100%;          /* Полна ширина */
    height: 450px;        /* ТУКА ја местиш висината да биде сразмерна */
    padding-left: 0;      /* Го тргаме левиот падинг од десктоп верзијата */
    margin-bottom: 20px;  /* Малку простор пред да почне формата */
}

.map-container iframe {
    height: 100%;         /* Ифрајмот да ја пополни новата висина од 450px */
}

.form-container { 
    flex: none; 
    width: 100%; 
    padding: 30px 20px;   /* Ги намалуваме страничните празнини за да има повеќе место за пишување */
}
    
    
    


    /* ФУТЕР - ВЕРТИКАЛНО (4 РЕДА) ЗА ПОРТРЕТ */
    footer { position: relative; height: auto; padding: 15px 0; background: var(--dark); }
    .footer-flex { display: flex; flex-direction: column; align-items: center; gap: 8px; }
    .f-item1 { font-size: 10px; width: 200px; text-align: center; }
    .f-item1 { font-size: 10px; width: 100%; text-align: center; }
    
}

/* LANDSCAPE (ЛЕГНАТ ТЕЛЕФОН - ПРАВИМЕ ХОРИЗОНТАЛА) */
@media screen and (max-height: 480px) and (orientation: landscape) {
    .hero { display: none; }
    
    /* ПАНОРАМА - ВРАТИ ВО ЕДЕН РЕД (4 КОЛОНИ) */
    .panorama-engine, .solutions-grid { height: 180px; }
    .solutions-grid { flex-direction: row; }
    .solution-item { flex: 1; height: 180px; border-bottom: none; border-right: 1px solid rgba(255,255,255,0.1); }
    .overlay p { display: none; }

    /* ИКОНИ - ВРАТИ ВО ЕДЕН РЕД */
    .flex-features { flex-direction: row; justify-content: center; gap: 15px; padding: 15px 0; }
    .feature-item { flex: 1; max-width: none; }
    .f-icon-circle { width: 35px; height: 35px; font-size: 16px; margin-bottom: 5px; }

    /* ФУТЕР - ВРАТИ ВО ЕДЕН РЕД */
    .footer-flex { flex-direction: row; justify-content: space-around; gap: 0; }
    .f-item { width: auto; font-size: 9px; }
}
