* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Montserrat', sans-serif; 
}

html { scroll-behavior: smooth; }

body { 
    background-color: #050505; 
    color: #ffffff; 
    line-height: 1.6; 
    overflow-x: hidden; 
}

/* ======== TOP BAR SA LOGOOM ======== */
.top-bar-nav {
    background: #050505; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid #00e5ff;
    box-shadow: 0px 4px 15px rgba(0, 229, 255, 0.2);
}

.nav-logo {
    height: 55px; 
    width: auto;
    mix-blend-mode: screen; 
}

.nav-phone {
    color: #dddddd;
    font-size: 1rem;
}

.nav-phone strong a {
    color: #00e5ff;
    font-size: 1.3rem;
    text-decoration: none;
    letter-spacing: 1.5px;
    margin-left: 10px;
}

.nav-phone strong a:hover { color: #ffffff; }

/* ======== HERO SEKCIJA ======== */
.hero {
    position: relative;
    height: 85vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    background-color: #000;
    perspective: 1000px;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
    transform-origin: center center;
    will-change: transform, filter, opacity;
}

/* ======== VIDEO KONTROLE ZA EKRANE I ROTACIJU ======== */
.desktop-video {
    display: block;
}
.mobile-video {
    display: none;
}

/* Kada je ekran uži od 768px ILI je u uspravnom položaju na telefonu */
@media (max-width: 768px), (max-height: 900px) and (orientation: portrait) {
    .desktop-video {
        display: none !important;
    }
    .mobile-video {
        display: block !important;
    }
}

/* Kada okreneš telefon VODORAVNO (Landscape) */
@media (max-width: 1024px) and (orientation: landscape) {
    .desktop-video {
        display: block !important;
    }
    .mobile-video {
        display: none !important;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 0 20px;
}

.hero h1 { 
    font-size: 3.5rem; 
    font-weight: 900; 
    text-transform: uppercase; 
    margin-bottom: 10px; 
    text-shadow: 2px 2px 10px rgba(0,0,0,0.9); 
}

.hero .subtitle { 
    font-size: 1.2rem; 
    color: #dddddd; 
    margin-bottom: 30px; 
    text-shadow: 1px 1px 5px #000; 
}

.btn-primary {
    display: inline-block;
    background-color: transparent;
    color: #00e5ff;
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid #00e5ff;
    border-radius: 5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-primary:hover { 
    background-color: #00e5ff; 
    color: #000; 
    box-shadow: 0px 0px 20px rgba(0, 229, 255, 0.6); 
}

/* ======== USLUGE ======== */
.services-section { 
    padding: 80px 20px 20px; 
    max-width: 1200px; 
    margin: 0 auto; 
    scroll-margin-top: 100px; 
}

.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 2.5rem; color: #00e5ff; margin-bottom: 10px; }

.grid-container { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 30px; 
}

.service-card {
    background: #111;
    padding: 40px 30px;
    border-radius: 10px;
    border-top: 4px solid #333;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* SVE KARTICE SVETLE ISKLJUČIVO NA HOVER (KADA STAVIŠ MIŠ) */
.service-card:hover { 
    transform: translateY(-10px); 
    border-color: #00e5ff; 
    box-shadow: 0px 10px 25px rgba(0, 229, 255, 0.2);
}

.service-card .icon { font-size: 3rem; margin-bottom: 20px; }
.service-card h3 { font-size: 1.3rem; margin-bottom: 15px; color: #ffffff; }
.service-card p { color: #cccccc; font-size: 0.95rem; flex-grow: 1; }

.read-more {
    margin-top: 20px;
    color: #00e5ff;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.badge-uskoro {
    background-color: #ffcc00;
    color: #000;
    font-size: 0.65rem;
    padding: 3px 8px;
    border-radius: 5px;
    vertical-align: middle;
    margin-left: 10px;
    font-weight: 900;
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.4);
}

/* ======== DETALJI USLUGA ======== */
.details-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.detail-box {
    background: #0d0d0d;
    border-left: 4px solid #00e5ff;
    padding: 40px;
    margin-bottom: 50px;
    border-radius: 0 10px 10px 0;
    scroll-margin-top: 100px; 
}

.detail-box h2 { color: #00e5ff; margin-bottom: 20px; font-size: 1.8rem; }
.detail-box p { color: #cccccc; margin-bottom: 15px; font-size: 1.05rem; }
.detail-box ul { list-style: none; }
.detail-box ul li { color: #ccc; margin-bottom: 10px; position: relative; padding-left: 20px; }
.detail-box ul li::before { content: "✔"; color: #00e5ff; position: absolute; left: 0; font-weight: bold; }

/* ======== FOOTER ======== */
.footer-section {
    background: #080808;
    border-top: 1px solid #1a1a1a;
    padding: 60px 20px 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.address-box h3 { color: #00e5ff; margin-bottom: 10px; font-size: 1.5rem; }
.address-box p { color: #aaaaaa; font-size: 1rem; margin-bottom: 5px; }
.social-links { display: flex; gap: 15px; }

.social-box {
    width: 60px;
    height: 60px;
    background: #111;
    border: 2px solid #333;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-weight: 900;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-box.instagram { color: #E1306C; }
.social-box.tiktok { color: #ffffff; text-shadow: 2px 0px #00f2fe, -2px 0px #fe0979; }
.social-box.facebook { color: #1877F2; }

.social-box:hover.instagram { border-color: #E1306C; box-shadow: 0 0 15px rgba(225, 48, 108, 0.5); transform: translateY(-5px); }
.social-box:hover.tiktok { border-color: #ffffff; box-shadow: 0 0 15px rgba(255, 255, 255, 0.4); transform: translateY(-5px); }
.social-box:hover.facebook { border-color: #1877F2; box-shadow: 0 0 15px rgba(24, 119, 242, 0.5); transform: translateY(-5px); }

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #1a1a1a;
    color: #555;
    font-size: 0.9rem;
}

/* ======== RESPONSIVE ZA MOBILNE ======== */
@media (max-width: 768px) {
    .top-bar-nav {
        flex-direction: row !important;
        justify-content: space-between;
        align-items: center;
        padding: 15px 15px;
        text-align: right;
        gap: 0;
    }

    .nav-logo {
        height: 60px;
        margin: 0;
    }

    .nav-phone {
        font-size: 0.95rem;
    }

    .nav-phone strong a {
        display: block;
        font-size: 1.5rem;
        margin-left: 0;
        margin-top: 3px;
        white-space: nowrap;
    }

    .hero h1 {
        font-size: 1.8rem;
        padding: 0 10px;
        word-wrap: break-word;
    }

    .hero .subtitle {
        font-size: 1rem;
        padding: 0 15px;
    }

    .services-section, .detail-box {
        scroll-margin-top: 140px;
    }

    .services-section {
        padding: 40px 15px 10px;
    }

    .grid-container {
        gap: 20px;
    }

    .service-card {
        padding: 30px 20px;
    }

    .detail-box {
        padding: 30px 20px;
    }

    .detail-box h2 {
        font-size: 1.4rem;
    }

    .detail-box p {
        font-size: 0.95rem;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .social-links {
        justify-content: center;
    }
}