/* === 1. OSNOVNI STILOVI I RESET === */
:root {
    --color-primary-dark: #0A0A0A; /* Gotovo crna */
    --color-secondary-dark: #1F1F1F; /* Tamno siva za sekcije */
    --color-accent: #0094ab;
    --color-text-light: #F0F0F0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    color: var(--color-text-light);
    background-color: var(--color-primary-dark);
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* Osnovni kontejner za centriranje sadržaja */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--color-text-light);
    text-decoration: none;
    transition: color 0.3s;
}

/* .logo img {
    height: 30px;
    max-width: 100%;
    display: block;
} */

.logo a img {
        height: 24px; 
        width: auto;
        max-height: 24px; 
        max-width: 100%;
        display: block;
    }

a:hover {
    color: var(--color-accent);
}

h1, h2, h3 {
    margin-bottom: 20px;
    font-weight: 700;
}

h2 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 50px;
    color: var(--color-accent);
    text-transform: uppercase;
}

.section-padding {
    padding: 80px 0;
}

/* === 2. HEADER I NAVIGACIJA === */
#main-header {
    background-color: rgba(0, 0, 0, 0.9);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: transform 0.3s ease-out; /* Za skrivanje/prikazivanje */
    transform: translateY(0);
}

#main-header.hidden {
    transform: translateY(-100%);
}

/* Stil za prikazani header (dodaje se JS-om) */
#main-header.visible {
    transform: translateY(0);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.5em;
    font-weight: 900;
    color: var(--color-text-light);
}

#nav-menu ul {
    list-style: none;
    display: flex;
}

#nav-menu ul li a {
    padding: 10px 15px;
    text-transform: uppercase;
    font-size: 0.9em;
}

/* CTA Dugme u Headeru */
.cta-button {
    background-color: var(--color-accent);
    color: var(--color-text-light) !important;
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: rgba(26, 150, 232, 0.2); 
    box-shadow: 5px 5px 30px rgba(26, 150, 232, 0.4);
}

/* Hamburger Meni (skriven na desktopu) */
.hamburger {
    font-size: 1.5em;
    cursor: pointer;
    display: none;
}

/* === 3. HERO SEKCIJA (Video) === */
.hero-section {
    position: relative;
    height: 100vh;
    /* height: calc(100vh - 60px); */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    text-align: center;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.video-container iframe {
    width: 200%;
    height: 200%;
    object-fit: cover;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    min-width: 100%;
    min-height: 100%;

}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Crni filter/dimovanje 60% */
    z-index: 2;
}

.hero-text {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 20px;
}

.hero-text h1 {
    font-size: 4em;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 5px;
}

.hero-text p {
    font-size: 1.5em;
    margin-bottom: 40px;
}

.main-cta-button {
    background-color: var(--color-accent);
    color: var(--color-text-light) !important;
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1em;
    text-transform: uppercase;
    display: inline-block;
    border: 2px solid var(--color-accent);
    transition: all 0.6s;
}

.main-cta-button:hover {
    background-color: transparent;
    border-color: var(--color-text-light);
    box-shadow: 15px 10px 30px rgba(26, 150, 232, 0.6);
}

/* === 4. USLUGE SEKCIJA === */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-box {
    background-color: var(--color-secondary-dark);
    padding: 30px;
    border-radius: 8px;
    border-top: 5px solid var(--color-secondary-dark);
    transition: border-top-color 0.3s, transform 0.3s;
}

.service-box:hover {
    transform: translateY(-5px);
}

.service-box h3 {
    color: var(--color-accent);
    font-size: 1.4em;
    margin-bottom: 15px;
}

/* Poseban stil za primarnu uslugu */
.main-service {
    border-top-color: var(--color-accent);
    box-shadow: 0 0 15px rgba(26, 150, 232, 0.4);
}



/* === 5. GALERIJA SEKCIJA === */
.dark-section {
    background-color: var(--color-secondary-dark);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
    transition: opacity 0.3s;
}

.gallery-item img:hover {
    opacity: 0.8;
}

/* === 6. CALLOUT SEKCIJA (Poziv na akciju) === */
.callout-section {
    background-color: var(--color-accent);
    text-align: center;
    padding: 50px 0;
    color: var(--color-text-light);
}

.callout-section h3 {
    font-size: 2em;
}

.callout-section .main-cta-button {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    margin-top: 20px;
    transition: all 0.6s;
}

.callout-section .main-cta-button:hover {
    background-color: rgba(26, 150, 232, 0.4); 
    box-shadow: 5px 5px 30px rgba(26, 150, 232, 0.4);
}

/* === 7. KONTAKT SEKCIJA === */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: start;
}

.contact-info {
    background-color: var(--color-secondary-dark);
    padding: 30px;
    border-radius: 8px;
    border-left: 5px solid var(--color-accent);
    border-right: 5px solid var(--color-accent);
    box-shadow: 0 0 15px rgba(26, 150, 232, 0.4);
}

.contact-info h2 {
    text-align: left;
    margin-bottom: 30px;
    font-size: 2em;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.info-item i {
    color: var(--color-accent);
    margin-right: 15px;
    width: 20px;
    text-align: center;
}

.location-text {
    margin-top: 20px;
    font-style: italic;
    color: #AAAAAA;
}

.map-container {
    position: relative;
}

.map-container iframe {
    box-shadow: 0 0 30px rgba(26, 150, 232, 0.4);
    border-radius: 8px;
}

.map-link-cta {
    display: block;
    text-align: center;
    background-color: var(--color-accent);
    color: var(--color-text-light) !important;
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
    font-weight: bold;
    transition: all 0.6s;
}

.map-link-cta:hover {
    background-color: rgba(26, 150, 232, 0.2); 
    box-shadow: 5px 5px 30px rgba(26, 150, 232, 0.4);
}

/* === 8. FOOTER === */
footer {
    background-color: var(--color-primary-dark);
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid var(--color-secondary-dark);
}

/* === 9. BACK TO TOP DUGME === */
#backToTopBtn {
    display: none; /* Skriveno po defaultu */
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: var(--color-accent);
    color: var(--color-text-light);
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    font-size: 18px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transition: background-color 0.3s;
}

#backToTopBtn:hover {
    background-color: rgba(26, 150, 232, 0.8);
}

/* === 10. RESPONSIVNI DIZAJN (Za Mobilne i Tablete) === */
@media (max-width: 900px) {
    /* Usluge */
    .service-grid {
        grid-template-columns: 1fr;
    }
    
    /* Kontakt */
    .contact-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
        overflow: hidden;
    }
    .contact-info {
        order: 2; /* Informacije idu posle mape na mobilnom */
    }
    .map-container {
        order: 1;
    }

    .container {
        padding: 0 10px;
    }
}

@media (max-width: 768px) {
    /* Hero Sekcija */
    .hero-text h1 {
        font-size: 2.5em;
        letter-spacing: 3px;
    }
    .hero-text p {
        font-size: 1.2em;
    }

    /* Header & Navigacija - Prikazivanje Hamburgera */
    .hamburger {
        display: block;
    }
    #nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-primary-dark);
        border-top: 1px solid var(--color-secondary-dark);
        display: none; /* Sakriveno po defaultu */
        text-align: center;
    }
    #nav-menu.active {
        display: block;
    }
    #nav-menu ul {
        flex-direction: column;
        padding: 10px 0;
    }
    #nav-menu ul li a {
        display: block;
        padding: 15px;
        border-bottom: 1px solid var(--color-secondary-dark);
    }
    .subtle-cta {
        display: none; /* Sakrivamo suptilni CTA u headeru na mobilnom */
    }
    /* .logo a {
        font-size: 1.2em;
    } */
    
    .logo {
        max-width: 150px;
    }
    

    #main-header {
        padding: 10px 0;
    }

    .hero-section {
        /* height: calc(100vh - 44px); */
        height: 100vh;;
    }

    /* Agresivno Rastezanje IFRAME-a za popunjavanje pune visine na mobilnom */
    .video-container iframe {
        /* Povećavamo dimenzije da osiguramo da pokriva ceo 100vh prostor */
        width: 400%;  /* Još agresivnije rastezanje širine */
        height: 400%; /* Još agresivnije rastezanje visine */
        
        /* Centriranje ostaje isto */
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%); 

        /* OBAVEZNO: Poništi globalno pravilo za min-širinu */
        min-width: unset; 
        min-height: unset;
    }
}