/* =========================================
   GENERAL
========================================= */
html{
    scroll-behavior:smooth;
}
body{
    font-family:'Inter',sans-serif;
    background:linear-gradient(
        135deg,
        #ffffff 0%,
        #f5f7fb 100%
    );
    color:#111827;
    overflow-x:hidden;
}
a{
    text-decoration:none;
    transition:.3s ease;
}
.site-logo{
    height:58px;
    width:auto;
}
.section-title{
    font-size:2.4rem;
    font-weight:700;
    color:#111827;
    margin-bottom:20px;
}

/* =========================================
   HIGHLIGHT PRODUCT
========================================= */
.product-item{
    scroll-margin-top:120px;
}
.highlight-product{
    animation:highlightCard 3s ease;
}
@keyframes highlightCard{
    0%{
        transform:scale(1);
    }
    50%{
        transform:scale(1.04);
        box-shadow:
            0 0 25px rgba(57,213,246,.45),
            0 0 50px rgba(57,213,246,.25),
            0 0 70px rgba(57,213,246,.15);
    }
    100%{
        transform:scale(1);
        box-shadow:none;
    }
}

/* =========================================
   BUTTONS
========================================= */
.btn-custom{
    background:linear-gradient(
        135deg,
        #39d5f6,
        #1ec5e8
    );
    border:none;
    color:#111827;
    font-weight:700;
    padding:12px 28px;
    border-radius:14px;
    transition:.3s ease;
}
.btn-custom:hover{
    transform:translateY(-2px);
    box-shadow:
        0 10px 25px rgba(57,213,246,.25);
}

/* =========================================
   NAVBAR
========================================= */
.navbar{
    background:#ffffff !important;
    padding:18px 0;
    position:sticky;
    top:0;
    z-index:999;
    box-shadow:0 4px 20px rgba(0,0,0,.05);
}
.navbar-brand{
    font-size:1.6rem;
    font-weight:700;
    letter-spacing:1px;
}
.navbar-nav{
    align-items:center;
}
.nav-link{
    color:#111827 !important;
    font-weight:500;
    margin-left:10px;
    transition:.3s;
}
.nav-link:hover,
.nav-link:focus{
    color:#39d5f6 !important;
}
.navbar.scrolled{
    background:rgba(255,255,255,.85) !important;
    backdrop-filter:blur(14px);
    -webkit-backdrop-filter:blur(14px);
    box-shadow:
        0 10px 30px rgba(0,0,0,.08);
}

/* =========================================
   DROPDOWN NAVBAR
========================================= */
.nav-item.dropdown{
    position:relative;
}
.dropdown-toggle::after{
    margin-left:8px;
    vertical-align:middle;
}
.dropdown-menu{
    position:absolute !important;
    left:50% !important;
    transform:translateX(-50%);
    top:120%;
    min-width:320px;
    background:#ffffff;
    border:none;
    border-radius:22px;
    padding:12px 0;
    margin-top:16px;
    box-shadow:
        0 20px 40px rgba(0,0,0,.08);
    overflow:hidden;
}
.dropdown-item{
    display:flex;
    align-items:center;
    gap:14px;
    padding:16px 26px;
    color:#111827;
    font-size:1rem;
    font-weight:500;
    transition:.3s;
}
.dropdown-item i{
    color:#39d5f6;
    font-size:1.15rem;
}
.dropdown-item:hover{
    background:#f8fafc;
    color:#39d5f6;
}
.dropdown-divider{
    margin:0;
    border-color:#eef2f7;
}

/* =========================================
   DROPDOWN
========================================= */
.btn-filter{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:16px;
    padding:12px 20px;
    min-width:250px;
    font-weight:600;
}
.btn-filter:hover{
    border-color:#39d5f6;
}
.brand-dropdown .dropdown-menu{
    left:0 !important;
    right:0 !important;
    transform:none !important;
    min-width:100%;
    margin-top:10px;
    border:none;
    border-radius:18px;
    box-shadow:
        0 15px 40px rgba(0,0,0,.12);
    max-height:350px;
    overflow-y:auto;
}
.dropdown-item{
    padding:10px 16px;
}
.dropdown-item:hover{
    background:rgba(57,213,246,.12);
}

/* =========================================
   MOBILE NAVBAR
========================================= */
.navbar-toggler{
    border:none;
    box-shadow:none !important;
}
.navbar-toggler:focus{
    box-shadow:none !important;
}

/* =========================================
   HERO SECTION
========================================= */
.hero-section{
    padding:80px 0;
    background:#f8fafc;
    overflow:hidden;
}
.hero-wrapper{
    display:flex;
    align-items:center;
    gap:60px;
}
.hero-content{
    flex:1;
}
.hero-slider{
    flex:1;
}
.hero-subtitle{
    color:#39d5f6;
    font-weight:600;
    text-transform:uppercase;
    letter-spacing:2px;
    margin-bottom:20px;
}
.hero-title{
    font-size:4rem;
    font-weight:700;
    line-height:1.1;
    color:#111827;
    margin-bottom:25px;
}
.hero-text{
    font-size:1.15rem;
    color:#6b7280;
    line-height:1.8;
    max-width:550px;
    margin-bottom:35px;
}
.hero-slider .carousel{
    overflow:hidden;
    border-radius:35px;
    box-shadow:
        0 25px 60px rgba(0,0,0,.12);
}
.hero-image{
    width:100%;
    height:600px;
    object-fit:cover;
    object-position:center;
    display:block;
}
.hero-section{
    position:relative;
}
.hero-section::before{
    content:"";
    position:absolute;
    width:500px;
    height:500px;
    border-radius:50%;
    background:
    radial-gradient(
        rgba(57,213,246,.15),
        transparent
    );
    top:-150px;
    left:-150px;
}
.carousel-item img{
    animation:heroZoom 8s linear infinite alternate;
}
@keyframes heroZoom{
    from{
        transform:scale(1);
    }
    to{
        transform:scale(1.08);
    }
}

/* =========================================
   CATEGORY CARDS
========================================= */
.category-card{
    border:none;
    border-radius:24px;
    overflow:hidden;
    background:#ffffff;
    box-shadow:
        0 10px 30px rgba(0,0,0,.06);
    transition:.35s ease;
}
.category-card:hover{
    transform:translateY(-8px);
    box-shadow:
        0 15px 35px rgba(0,0,0,.08);
}
.category-card img{
    width:100%;
    height:280px;
    object-fit:cover;
}
.category-card .card-body{
    padding:24px;
}
.category-card h4{
    font-size:1.25rem;
    font-weight:700;
    color:#111827;
}
.category-card p{
    color:#6b7280;
    margin-bottom:0;
}

/* =========================================
   FEATURED PRODUCTS
========================================= */
.featured-card{
    background:#ffffff;
    border-radius:28px;
    overflow:hidden;
    box-shadow:
        0 10px 25px rgba(0,0,0,.05);
    transition:.35s ease;
    border:1px solid rgba(57,213,246,.08);
}
.featured-card:hover{
    transform:translateY(-10px);
    box-shadow: 0 20px 50px rgba(57,213,246,.15);
}
.featured-card img{
    width:100%;
    height:340px;
    object-fit:cover;
    transition:.4s ease;
}
.featured-card:hover img{
    transform:scale(1.05);
}
.featured-content{
    padding:24px;
}
.featured-content h5{
    font-size:1.2rem;
    font-weight:700;
    color:#111827;
    margin-bottom:8px;
}
.featured-content span{
    display:block;
    color:#6b7280;
    font-size:.95rem;
    margin-bottom:10px;
}
.featured-content .btn-custom{
    margin-top:10px;
}

/* =========================================
   BRAND FILTER
========================================= */
.brand-filter{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:12px;
}
.filter-btn{
    border:none;
    padding:10px 22px;
    border-radius:999px;
    background:#f1f5f9;
    color:#111827;
    font-weight:600;
    transition:.3s ease;
}
.filter-btn:hover{
    background:#39d5f6;
    color:#ffffff;
}
.filter-btn.active{
    background:#39d5f6;
    color:#ffffff;
    box-shadow:
        0 10px 25px rgba(57,213,246,.25);
}

/* =========================================
   SERVICES
========================================= */

.services-grid{
    display:grid;
    grid-template-columns:repeat(6, 1fr);
    gap:22px;
}

.services-grid .service-card{
    grid-column:span 2;
}

/* Četvrta kartica */
.services-grid .service-card:nth-child(4){
    grid-column:2 / span 2;
}

/* Peta kartica */
.services-grid .service-card:nth-child(5){
    grid-column:4 / span 2;
}

.service-card{
    position:relative;
    height:300px;
    overflow:hidden;
    border-radius:28px;
}

.service-card img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.service-overlay{
    position:absolute;
    inset:0;

    background:linear-gradient(
        to top,
        rgba(0,0,0,.88),
        rgba(0,0,0,.20)
    );

    display:flex;
    flex-direction:column;
    justify-content:flex-end;

    padding:28px;
    color:#ffffff;
}

.service-overlay h4{
    font-size:1.3rem;
    font-weight:700;
    margin-bottom:10px;
}

.service-overlay p{
    margin:0;
    line-height:1.7;
    font-size:.95rem;
}

/* =========================================
   PREMIUM PARTNERI
========================================= */

.premium-row{
    display:flex;
    gap:24px;
    height:320px;
}

.premium-box{
    flex:1;

    background:linear-gradient(
        135deg,
        #ffffff,
        #f7fcff
    );

    border:1px solid #eef2f7;
    border-radius:30px;

    padding:40px 30px;

    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;

    text-align:center;

    box-shadow:
        0 10px 30px rgba(0,0,0,.05);
}

.premium-logo{
    height:65px;
    width:auto;
    object-fit:contain;
    margin-bottom:25px;
}

.premium-box p{
    color:#6b7280;
    max-width:360px;
    line-height:1.8;
    margin:0;
}

.partner-offer{
    margin-top:24px;
    padding:14px 20px;

    background:rgba(57,213,246,.10);

    border:1px solid rgba(57,213,246,.35);

    border-radius:16px;

    display:flex;
    flex-direction:column;
    align-items:center;

    text-align:center;

    width:100%;
    max-width:320px;
}

.partner-offer strong{
    color:#111827;
    font-size:1rem;
    font-weight:800;
    letter-spacing:.3px;
}

.partner-offer span{
    margin-top:4px;

    color:#4b5563;

    font-size:.85rem;
    line-height:1.5;
}

/* PLAVA LINIJA ISPOD LOGOA */

.premium-box::after{
    content:"";

    width:60px;
    height:4px;

    background:#39d5f6;

    border-radius:50px;

    margin-top:20px;
}

/* =========================================
   BRENDOVI
========================================= */
.brands-section{
    position:relative;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
}
.brands-grid{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:40px;
    min-height:180px;
    flex-wrap:wrap;
}
.brand-logo{
    width:180px;
    height:80px;
    object-fit:contain;
    filter:grayscale(100%);
    opacity:.70;
    transition:.35s ease;
}
.brand-logo:hover{
    filter:none;
    opacity:1;
    transform:scale(1.08);
}
/* STRELICE */
.brand-arrow{
    width:58px;
    height:58px;
    background:#ffffff;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:1.8rem;
    font-weight:700;
    color:#39d5f6;
    box-shadow:
        0 8px 25px rgba(0,0,0,.08);
    transition:.3s ease;
}
.brand-arrow:hover{
    transform:translateY(-2px);
    box-shadow:
        0 12px 30px rgba(57,213,246,.18);
}
/* BOOTSTRAP CAROUSEL */
.carousel-control-prev,
.carousel-control-next{
    opacity:1;
}
.carousel-control-prev{
    left:-20px;
}
.carousel-control-next{
    right:-20px;
}
.carousel-control-prev-icon,
.carousel-control-next-icon{
    display:none;
}

/* =========================================
   SLIKA O NAMA
========================================= */
.about-home-image{
    width:100%;
    max-height:520px;
    object-fit:cover;
    object-position:center top;
    border-radius:30px;
    box-shadow:
        0 20px 50px rgba(0,0,0,.08);
}

/* =========================================
   FOOTER
========================================= */
.footer{
    background:#ffffff;
    border-top:1px solid #e5e7eb;
    padding:80px 0 30px;
    margin-top:0;
    position:relative;
}
.footer::before{
    content:"";
    position:absolute;
    top:0;
    left:50%;
    transform:translateX(-50%);
    width:250px;
    height:2px;
    background:#39d5f6;
}
.footer-logo{
    max-width:180px;
    height:auto;
}
.footer-title{
    font-size:1.1rem;
    font-weight:700;
    color:#111827;
    margin-bottom:20px;
}
.footer-text{
    color:#6b7280;
    line-height:1.8;
}
.footer-links,
.footer-contact{
    list-style:none;
    padding:0;
    margin:0;
}
.footer-links li,
.footer-contact li{
    margin-bottom:14px;
}
.footer-links a{
    color:#374151;
    transition:.3s;
}
.footer-links a:hover{
    color:#39d5f6;
}
.footer-contact{
    color:#6b7280;
}
.footer-contact i{
    color:#39d5f6;
    margin-right:8px;
}
.footer-divider{
    border-color:#e5e7eb;
    margin:45px 0 25px;
}
/* DONJI DEO */
.footer-bottom{
    display:flex;
    justify-content:space-between;
    align-items:center;
    flex-wrap:wrap;
    gap:15px;
    color:#9ca3af;
    font-size:.95rem;
}
.footer-bottom a{
    color:#39d5f6;
    font-weight:600;
}
/* DRUŠTVENE MREŽE */
.social-links{
    display:flex;
    gap:12px;
}
.social-links a{
    width:42px;
    height:42px;
    border-radius:50%;
    background:#f3f4f6;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#111827;
    transition:.3s ease;
}
.social-links a:hover{
    background:#39d5f6;
    color:#ffffff;
    transform:translateY(-3px);
}

/* =========================================
   CONTACT PAGE
========================================= */
.contact-card{
    background:#ffffff;
    border-radius:28px;
    padding:35px 30px;
    height:100%;
    text-align:center;
    box-shadow:
        0 10px 30px rgba(0,0,0,.05);
    transition:.35s ease;
}
.contact-card:hover{
    transform:translateY(-8px);
    box-shadow:
        0 20px 40px rgba(57,213,246,.12);
}
.contact-icon{
    width:70px;
    height:70px;
    margin:0 auto 20px;
    border-radius:50%;
    background:rgba(57,213,246,.12);
    display:flex;
    align-items:center;
    justify-content:center;
}
.contact-icon i{
    font-size:1.8rem;
    color:#39d5f6;
}
.contact-card h4{
    font-size:1.2rem;
    font-weight:700;
    margin-bottom:15px;
    color:#111827;
}
.contact-card p,
.contact-card a{
    color:#6b7280;
    line-height:1.8;
}
.contact-card a:hover{
    color:#39d5f6;
}
/* GOOGLE MAP */
.map-wrapper{
    border-radius:30px;
    overflow:hidden;
    box-shadow:
        0 15px 40px rgba(0,0,0,.08);
}
.map-wrapper iframe{
    width:100%;
    height:500px;
    border:none;
    display:block;
}

/* =========================================
   TABLET
========================================= */
@media (max-width:991px){
    /* HERO */
    .hero-wrapper{
        flex-direction:column;
        text-align:center;
        gap:40px;
    }
    .hero-title{
        font-size:3rem;
    }
    .hero-text{
        margin:0 auto 30px;
    }
    .hero-image{
        height:450px;
    }

    /* NAVBAR */
    .navbar{
        padding:14px 0;
    }
    .navbar-collapse{
        margin-top:15px;
        padding-top:15px;
        border-top:1px solid #eef2f7;
    }
    .nav-link{
        margin-left:0;
        padding:12px 0;
    }
    .dropdown-menu{
        position:static !important;
        transform:none !important;
        width:100%;
        min-width:100%;
        margin-top:10px;
        border-radius:18px;
        box-shadow:none;
        border:1px solid #eef2f7;
    }

    /* SERVICES */
    .services-grid{
        grid-template-columns:repeat(2,1fr);
    }

    /* PREMIUM PARTNERI */

    .premium-row{
        flex-direction:column;
        height:auto;
    }

    .premium-box{
        min-height:220px;
    }

    /* BRENDOVI */
    .brand-logo{
        width:140px;
        height:70px;
    }

    /* FOOTER */
    .footer{
        padding:60px 0 30px;
    }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width:768px){
    /* GENERAL */
    .section-title{
        font-size:2rem;
    }

    /* HERO */
    .hero-section{
        padding:50px 0;
    }
    .hero-title{
        font-size:2.3rem;
    }
    .hero-text{
        font-size:1rem;
    }
    .hero-image{
        height:320px;
    }
    .hero-slider .carousel{
        border-radius:25px;
    }

    /* HAMBURGER */
    .navbar-toggler {
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
        background: transparent !important;
        padding: 8px !important;
    }

    .navbar-toggler-icon {
        background-image: none !important;
        width: 28px;
        height: 20px;
        position: relative;
        display: block;
        border-top: 3px solid #7bb7d6;
        border-bottom: 3px solid #7bb7d6;
    }

    .navbar-toggler-icon::after {
        content: "";
        position: absolute;
        left: 0;
        top: 6px;
        width: 28px;
        height: 3px;
        background: #7bb7d6;
    }

    /* BUTTONS */
    .btn-custom{
        width:100%;
    }

    /* CARDS */
    .category-card img{
        height:240px;
    }

    /* FEATURED */
    .featured-card img{
        height:280px;
    }
    .featured-content{
        padding:20px;
    }

    /* FILTER */
    .filter-btn{
        padding:8px 16px;
        font-size:.9rem;
    }

    /* USLUGE */
    .services-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 22px !important;
        width: 100% !important;
    }
    .services-grid .service-card,
    .services-grid .service-card:nth-child(4),
    .services-grid .service-card:nth-child(5) {
        grid-column: auto !important;
        width: 100% !important;
        max-width: none !important;
        height: 320px !important;
        min-width: 0 !important;
        margin: 0 !important;
    }
    .service-card {
        position: relative;
        overflow: hidden;
        border-radius: 28px;
    }
    .service-card img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block;
    }
    .service-overlay {
        position: absolute;
        inset: 0;
        padding: 25px !important;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        box-sizing: border-box;
    }
    .service-overlay h4 {
        font-size: 1.35rem !important;
        line-height: 1.3 !important;
        margin-bottom: 10px !important;
    }
    .service-overlay p {
        font-size: 1rem !important;
        line-height: 1.55 !important;
        margin: 0 !important;
        opacity: 1 !important;
        transform: none !important;
    }
    .services-grid:hover .service-card {
        filter: none !important;
        opacity: 1 !important;
    }
    .service-card:hover {
        transform: none !important;
    }
    .service-card:hover img {
        transform: none !important;
    }

    /* PREMIUM PARTNERI */
    .premium-row{
        gap:16px;
    }
    .premium-box{
        padding:30px 20px;
        min-height:200px;
    }
    .premium-logo{
        height:55px;
    }

    /* BRENDOVI */
    .brands-grid{
        gap:20px;
    }
    .brand-logo{
        width:110px;
        height:55px;
    }
    .brand-arrow{
        width:45px;
        height:45px;
        font-size:1.4rem;
    }
    .carousel-control-prev{
        left:-5px;
    }
    .carousel-control-next{
        right:-5px;
    }

    /* CONTACT */
    .contact-card{
        padding:25px 20px;
    }

    /* MAPA */
    .map-wrapper iframe{
        height:350px;
    }

    /* FOOTER */
    .footer{
        text-align:center;
    }
    .footer-logo{
        margin:auto;
        display:block;
    }
    .social-links{
        justify-content:center;
    }
    .footer-bottom{
        flex-direction:column;
        text-align:center;
    }

    /* ERROR PAGE */
    .error-number{
        font-size:5rem;
    }
    .error-page h1{
        font-size:1.8rem;
    }
}