.section-1-wifi {
    position: relative;    
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;    
    box-sizing: border-box;    
    background-color: rgba(0, 0, 0, 0.2);
    z-index: 1;
}
.section-1-wifi-content {
    padding: 0;
}
.section-1-overlay {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 45px 30px 56px 30px;
    background-color: rgba(0, 0, 0, 0.2);
}
.section-1-title {
    color: #fff;
    font-size: 50px;
    font-weight: 700;
    line-height: 1.05;
}
.section-1-subtitle {
    color: #00D4E9;
    font-size: 21px;
    font-weight: 700;
    line-height: 1;
}
.section-2-wifi {
    background-image: url(/assets/img/klima3/pametni-telefon-aplikacija-mob.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    min-height: 122svh;
    display: flex;
    align-items: flex-end;
    padding-bottom: 6svh;
    position: relative;
    /* top:-1px; */
    z-index: 2;
}
.beli-naslov {
    color: #fff;    
    font-weight: 700;
    line-height: 1.05;
}
.plavi-naslov {
    color: #00D4E9;
    font-size: 46px;
    font-weight: 700;
    line-height: 1;
}
.section-2-left-content-wifi {
    position: relative;
    text-align: center;
}
.section-2-left-content-wifi p{
    color:#fff;
    padding: 0 18px;
    font-weight: 400;
    margin-top: 8px;
}
.svg-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.section-3-wifi {
    height: 75vh;
    position: relative;
    background-color: rgba(255, 255, 255, 1);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;    
    justify-content: center;
    z-index: 3;
}
.content-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;   
    text-align: center;
}
.section-3-subtitle {
    text-align: center;
    line-height: 1.05;
    margin-bottom: 36px;
}
.section-3-wifi-content {
    display: flex;
    flex-direction: column;    
    align-items: center;
}
.svg-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 90px; /* Povećana visina za više prostora */
}
.svg-container svg {
    width: 44px;
    height: 50px; /* Fiksirana visina za sve SVG-ove */
    object-fit: contain; /* Održava proporcije unutar fiksiranih dimenzija */
    flex-shrink: 0; /* Sprečava smanjivanje SVG-a */
}
.svg-arrow {
    width: 16px;
    height: auto;
    align-self: center; /* Centrira strelice vertikalno */
}  
.description {
    font-family: 'Inter', 'Open Sans', 'Roboto Condensed', sans-serif;
    font-size: 12px;
    line-height: 12px;
    font-weight: 600;
    color: #111;
    margin: 0;
    margin-top: 10px;
    white-space: nowrap;
    display: inline-block;
    text-align: center;
}
.svg-container svg path,
.svg-arrow path {
    transition: fill 0.3s ease;
    fill: #111;
}

.svg-container.active svg path,
.svg-arrow.active path {
    fill: #00D4E9;
}

.svg-container .description {
    transition: color 0.3s ease;
    color: #111;
}
.svg-container.active .description {
    color: #00D4E9;
}
.section-3-text {
    max-width: 635px;
    margin: 0 auto;
    padding: 0 20px;
    font-size: 18px;
    line-height: 18px;
    font-weight: 500;
    color: #111;
    text-align: center;
    padding-top: 50px;
}
.section-4-inteligent {
    background-image: url(/assets/img/klima3/intelligent-air-aplikacija-mob.webp);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    min-height: 113svh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
    padding-bottom: 13svh;
    z-index: 4;
}
.section-4-left-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}
.section-4-left-content p {
    color:#fff;
    padding: 0 18px;
    font-weight: 400;
    margin-top: 8px;
    padding-bottom: 16px;
}
.inteligent-img-holder {
    display:flex;
    flex-direction: row;
    gap: 10px;    
}
.inteligent-img-holder img {
    width: 100%;
    max-width: 145px;
    height: auto;
}
.section-5-wifi {
    position: relative;
    background-color: #fff;    
    z-index: 5;
}
.section-5-content-wifi {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;    
}
.section-5-left-content-wifi {
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 40px;
}
.crni-naslov {    
    line-height: 1.05;
    margin-bottom: 24px;
}
.app-benefits-list {
    margin-bottom: 36px;
}
.app-benefits-list li {
    margin-bottom: 12px;
    font-size: 18px;
}
.section-6-wifi {
    text-align: center;
    position: relative;
    min-height: 10svh;
    background-color: #fff;
    padding: 75px 0 0 0;    
    z-index: 6;
}
.section-6-title {
    line-height: 1.05;
    margin-bottom:0;    
}
.title-6-mobile {
    display: block;
}
.title-6-desktop {
    display: none;
}
.desktop-img {
    display: none;
}
.mob-img {
    display: block;
}
.see-all-products {   
    z-index: 7;
}
/* === SAFARI & IPHONE OPTIMIZATIONS === */

/* Global Safari/iOS fixes for fixed backgrounds and hardware acceleration */
/* === GENERALNI MODERN CSS FIX ZA SVE PREGLEDAČE === */

/* Pseudo-element pozadina za sve moderne pregledače - bolje performanse od background-attachment: fixed */
.section-1-wifi {
    background-attachment: scroll !important; /* Ukloni fixed za sve pregledače */
    background-image: none !important; /* Ukloni originalnu sliku */
    position: relative; /* Bitno za z-index i kontekst pseudo-elementa */
    overflow: hidden; /* Sprečava curenje sadržaja */
}

/* Kreiramo fiksirani pseudo-element koji će služiti kao pozadina */
.section-1-wifi::before {
    content: "";
    position: fixed; /* KLJUČNO: Pozadina je fiksirana u viewportu */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/assets/img/klima3/inverter-klima-wifi-oblak-mob.jpg'); /* Mobilna slika */
    background-size: cover;
    background-repeat: no-repeat;
    background-position: left top;
    z-index: -1; /* Mora biti iza sadržaja .section-1-wifi */
    -webkit-transform: translateZ(0); /* Hardverska akceleracija za glatkoću */
    transform: translateZ(0);
    will-change: transform;
}

/* Safari/iOS specifični fix - samo za dodatne optimizacije */
@supports (-webkit-touch-callout: none) {
    /* Fix za backdrop-filter na Safariju/iOS-u */
    .section-1-overlay {
        -webkit-backdrop-filter: blur(12px); /* Ponovo definisanje sa prefiksom */
        backdrop-filter: blur(12px);
        -webkit-transform: translate3d(0,0,0);
        transform: translate3d(0,0,0);
        will-change: transform;
    }
}

/* iPhone specific fixes - iOS Safari only (detekcija dodirnog ekrana) */
@supports (-webkit-touch-callout: none) and (pointer: coarse) {
    /* Poboljšanje skrolovanja unutar elemenata za touch uređaje */
    body, html {
        -webkit-overflow-scrolling: touch;
    }

    /* Fix za stabilnu visinu na iOS-u - koristi lvh umesto svh */
    .section-1-wifi {
        min-height: 100lvh !important; /* Large viewport height - ignorise UI promene */
        height: 100lvh !important; /* Fiksira visinu */
    }
}
@media (max-width: 320px) {
    .section-1-title,
    .beli-naslov,
    .plavi-naslov,
    .section-3-subtitle,
    .crni-naslov {
        font-size: 42px;        
    }
    .inteligent-img-holder img {
        max-width: 130px;
    }
}

@media (min-height: 640px) {
    .section-4-inteligent {
        min-height: 123svh;
        padding-bottom: 13svh;
    }
    .plavi-naslov-app {
        font-size: 44px;
    }
}
@media (min-height: 667px) {
    .section-4-inteligent {
        min-height: 105svh;
        padding-bottom: 10svh;
    }    
}
@media (min-height: 730px) {
    .section-2-wifi {
        background-image: url(/assets/img/klima3/pametni-telefon-aplikacija-mob.jpg);
        min-height: 110svh;
        padding-bottom: 6svh;    
    }
    .section-3-text {
        font-size: 20px;
        line-height: 20px;
    }
}
@media (min-height: 840px) {
    .section-4-inteligent {
        min-height: 90svh;
        padding-bottom: 12svh;
    }
    .section-2-wifi {
        background-image: url(/assets/img/klima3/pametni-telefon-aplikacija-mob.jpg);
        min-height: 100svh;
        padding-bottom: 6svh;    
    } 
    .plavi-naslov-app {
        font-size: 46px;
    }  
}
@media (min-height: 930px) {
    .section-4-inteligent {
        min-height: 85svh;
        padding-bottom: 12svh;
    }
}
@media (min-width: 540px) {
    .section-4-inteligent {
        min-height: 128vh;
        padding-bottom: 29svh;
    }
}
@media (min-width: 768px) {
    .section-1-wifi::before {
        background-image: url('/assets/img/klima3/inverter-klima-wifi-oblak.webp');
        background-position-x: 63%;
    }
    .section-1-title {
        font-size: 58px;
    }
    .section-1-overlay {
        position: fixed;
        border-radius: 32px;        
        top: 50%;
        transform: translateY(-45%);
        padding: 85px 60px 85px 60px;
    }
    .section-1-subtitle {
        font-size: 24px;
    }
    .section-2-wifi {
        background-image: url('/assets/img/klima3/pametni-telefon-aplikacija-md.webp');
        background-position-X: 60%;
        align-items: center;        
        min-height: 65svh; 
        padding-bottom: 0svh;       
    }
    .section-2-content {
        display: flex;
        justify-content: flex-end;
    }
    .section-2-left-content-wifi {
        max-width: 410px;
    }
    .section-2-left-content-wifi p {
        width: 100%;
        max-width: 500px;
    }
    .content-wrapper {
        gap: 25px;
    }
    .svg-container svg {
        width: 100px;
        height: 120px; /* Fiksirana visina za tablet */
    }
    .section-3-subtitle {
        margin-bottom: 50px;
    }
    .section-3-text {
        padding-top: 125px;
    }
    .section-4-inteligent {      
        background-image: url('/assets/img/klima3/intelligent-air-aplikacija-md.webp');
        min-height: 85svh;
        padding-bottom: 10svh;
    }
    .section-4-left-content p {
        max-width: 650px;
    }
    .section-5-content-wifi {
        display: flex;
        flex-direction: row;       
        align-items: center;
        justify-content: space-between;
        /* gap: 20px; */
    }
    .section-5-left-content-wifi {
        padding-top: 60px;
    }
    .section-5-left-content-wifi,
    .section-5-right-content {
        flex: 1;
    }
    .desktop-img {
        display: block;
    }
    .mob-img {
        display: none;
    }
    .section-6-wifi {
        padding: 30px 0 0 0;
    }
    .plavi-naslov {
        font-size: 58px;
    }
    .beli-naslov {
        margin-bottom: 18px;
    }
    .description {
        font-size: 18px;
        line-height: 18px;
    }

    @supports (-webkit-touch-callout: none) {
        /* Samo iOS-specifične stvari koje se tiču prikaza slika na >= 768px */
        .section-1-wifi::before {
            background-image: url('/assets/img/klima3/inverter-klima-wifi-oblak.webp');
            background-position-x: 63%;
        }         
    }
}

@media (min-width: 992px) {
    .section-2-left-content-wifi {
        max-width: 420px;
    }   
    .section-4-left-content p {     
       max-width: 750px;
    }
    .svg-container {
        height: 220px; /* Povećana visina za više prostora na desktop-u */
    }
    .svg-container svg {
        width: 130px;
        height: 160px; /* Fiksirana visina za desktop */
    }
    .section-3-text {
        padding-top: 100px;
    }  
}
@media (min-width: 1024px) {
    .section-1-title {
        font-size: 64px;
    }   
    .section-1-wifi {
        height: 100svh;
    }
    .section-1-overlay {
        transform: translateY(-60%);
    }
    .section-3-wifi {
        height: 50vh;
    }    
    .section-4-inteligent {
        min-height: 85svh;        
    }
    .section-2-content {
        padding-right: 50px;
    }

    @supports (-webkit-touch-callout: none) {
        /* Samo iOS-specifične stvari koje se tiču prikaza slika na >= 1024px */
        .section-1-wifi::before {
            background-position: left top;
        }
    }
}

@media (min-width: 1024px) and (max-height: 800px) {
    .section-1-overlay {
        transform: translateY(-40%);
    }
    .section-2-wifi {
        min-height: 100svh;
    }
    .section-3-wifi {
        height: 100svh;
    }
    .section-4-inteligent {
        min-height: 130svh;        
    }
}
@media (min-width: 1024px) and (max-height: 600px) {
    .section-2-wifi {
        min-height: 100svh;
    }
    .section-3-wifi {
        height: 80svh;
    }
    .section-2-content {
        padding-right: 30px;
    }
}
@media (min-width: 1200px) {
    .plavi-naslov, 
    .beli-naslov,
    .section-3-subtitle,
    .crni-naslov,
    .plavi-naslov-app,
    .title-6-desktop {
        font-size: 58px;
        line-height: 1.05;
    }
    .section-1-title {
        font-size: 64px;
    }
    .section-1-subtitle {
        font-size:29px;
    }
    .section-1-overlay {
        padding: 90px 60px 85px 60px;
    }
    .section-2-content {
        padding: 0 5vw;
    }
    .section-2-left-content-wifi {
        max-width: 500px;
    }
    .beli-naslov {
        margin-bottom: 24px;
    }   
    .section-2-wifi {
        background-image: url('/assets/img/klima3/pametni-telefon-aplikacija.webp');
        min-height: 100svh;
        position: sticky;
        top: 0px;
        height: 100svh;
    } 
    .section-3-wifi {
        position: sticky;
        top: 60px;
        height: 100svh;
    }
    .section-3-wifi-content {
        margin-bottom: 14vh;
    }
    .svg-arrow {
        width: 24px;
    }
    .description {
        font-size: 24px;
        line-height: 24px;
    }    
     .section-4-inteligent {
        position: sticky; 
        top: 60px;
        align-items: center;
        padding-bottom: 5svh; 
        background-image: url('/assets/img/klima3/intelligent-air-aplikacija.webp');
        min-height: 100svh;        
        align-items: center;    
    }
    .section-4-left-content {        
        max-width: 605px;        
        text-align: center;
        align-items: center;
    }
    .section-4-left-content p {
        padding: 0 18px;
    }
    .inteligent-img-holder {
        margin-top: 20px;
    }
    .inteligent-img-holder img {
        max-width: 165px;        
    }
    .section-5-wifi {
        position: sticky;
        top: 0px;        
        height: 100svh;    
    }
    .section-5-content-wifi {       
        justify-content: center;        
        gap: 60px;
        width: 100%;     
        margin: 0 auto;
        height: 100%;
    }
    .section-5-left-content-wifi {        
        padding-left: 5vw;
        padding-right: 0;
        text-align: left;     
        max-width: 500px;
        flex: none;
    }
    .section-5-right-content {       
        flex: none;
        max-width: 670px;       
        align-self: flex-end;
    }
    .title-6-mobile {
        display: none;
    }
    .title-6-desktop {
        display: block;
    }
    .section-6-wifi {
        padding: 65px 0 0 0;
    }

    /* Safari/iOS specifični fiks za desktop rezolucije (>= 1200px) */
    @supports (-webkit-touch-callout: none) {
        .section-1-wifi::before {
            background-position: left top;
        }
        /* iOS/Safari prefix za sve sticky sekcije na desktop rezolucijama */
        .section-2-wifi {
            position: -webkit-sticky;
            -webkit-transform: translate3d(0, 0, 0);
            transform: translate3d(0, 0, 0);
            will-change: transform, scroll-position;
        }
        .section-3-wifi {
            position: -webkit-sticky;
            -webkit-transform: translate3d(0, 0, 0);
            transform: translate3d(0, 0, 0);
            will-change: transform, scroll-position;
        }
        .section-4-inteligent {
            position: -webkit-sticky;
            -webkit-transform: translate3d(0, 0, 0);
            transform: translate3d(0, 0, 0);
            will-change: transform, scroll-position;
        }
        .section-5-wifi {
            position: -webkit-sticky;
            -webkit-transform: translate3d(0, 0, 0);
            transform: translate3d(0, 0, 0);
            will-change: transform, scroll-position;
        }
    }
}

@media (min-width: 1200px) and (max-height: 800px) {
    .section-5-right-content {
        max-width: 610px;
    }
}
@media (min-width: 1400px) {
    .section-1-content {
        padding-left: 5vw;
    }
    .section-1-overlay {
        padding: 100px 60px 85px 60px;
    }
    .section-2-content {
        padding: 0 10vw;
    }
    .section-4-left-content {
        padding-left: 5vw;
    }
    .section-4-left-content {
        max-width: 700px;
    }
    .inteligent-img-holder {
        gap: 20px;
    }
    .inteligent-img-holder img {
        max-width: 200px;
    }
    .section-5-right-content {
        max-width: 720px;
    }
    .section-6-wifi {
        padding: 100px 0 0 0;
    }
}
@media (min-width: 1600px) {
    .section-1-content {
        padding-left: 0vw;
    }
    .section-2-content {
        padding: 0 5vw;
    }
    .section-4-left-content {
        padding-left: 0vw;
    }
    .section-5-left-content-wifi {
        padding-left: 5vw;
    }
    .section-5-right-content {
        padding-left: 2vw;
    }
}
@media (min-width: 1680px) and (max-height: 1050px) {    
    .section-5-right-content {
        max-width: 815px;
    }
}
@media (min-width: 1920px) {
    .section-1-title,
    .plavi-naslov, 
    .beli-naslov,
    .section-3-subtitle,
    .crni-naslov,
    .plavi-naslov-app,
    .title-6-desktop {
        font-size: 72px;
        line-height: 1.1;
    }
    .section-1-overlay {
        padding: 130px 85px 110px 85px;
        transform: translateY(-55%);
    }
    .section-1-subtitle {
        font-size: 36px;
        line-height: 1.1;
    }
    .section-2-content {
        padding: 10vh 2vw 2vh 2vw;
    }
    .section-2-left-content-wifi {
        max-width: 40%;                         
    }
    .section-2-left-content-wifi p {        
        padding: 0; 
        max-width: none;
    }
    .svg-container svg {
        width: 170px;
        height: 200px; /* Fiksirana visina za najveće ekrane */
    }
    .svg-arrow {
        width: 36px;
    }
    .inteligent-img-holder img {
        max-width: 270px;
    }
    .section-4-left-content p {
        max-width: none;
        margin-bottom: 28px;
    }
    .section-4-holder {
        max-width: 1440px;
    }
    .section-4-left-content {
        max-width: 765px;
    }    
    .section-5-left-content-wifi {
        padding-left: 0vw;
    }
    .section-5-right-content {
        max-width: 950px;
        position: relative;
        left: 10%;
    }
    .section-5-left-content-wifi {
        position: relative;
        left: 10%;
    }
    .section-5-left-content-wifi {
        padding-top: 0;
    }
    .crni-naslov {
        margin-bottom: 24px;
    }
    .section-6-wifi {
        padding: 100px 0 20px 0;
    }
}
@media (min-width: 2048px) {    
    .section-5-left-content-wifi {
        padding-top: 5vw;
    }
}
@media (min-width: 2560px) {
    .section-2-content {
        padding: 0 0vw;
    }
    .section-5-right-content {
        max-width: 1000px;
    }    
}
