/* SPLOŠNI SLOGI */
body, html {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    background-color: #f4f4f9;
}

body {
    font-size: 16px;
}

@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
}

/* HEADER */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background-color: #ffffff;
    position: relative;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    width: 250px;
    height: auto;
}

nav {
    display: flex;
    justify-content: center;
    gap: 15px;
}

nav a {
    color: #000000;
    text-decoration: none;
    font-weight: 300;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #555555;
}

/* JEZIKOVNE ZASTAVE */
.language-selector {
    position: absolute;
    top: 10px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.flag-icon {
    width: 20px;
    height: auto;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.flag-icon:hover {
    transform: scale(1.1);
}

/* LOGO IN ANIMACIJA NA MOBILNIH NAPRAVAH */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
    }

    .logo-container {
        justify-content: center;
        text-align: center;
        margin-bottom: 10px; /* Razmik pod logotipom */
    }

    .animate-text {
        animation: fadeInMoveMobile 5s ease-out infinite;
        font-size: 1.2em;
        margin-top: 20px;
        text-align: center;
        width: 100%;
        order: 2; /* Premik pod logotip */
        display: block;
    }

    @keyframes fadeInMoveMobile {
        0% {
            opacity: 0;
            transform: translateX(-100%);
        }
        50% {
            opacity: 1;
            transform: translateX(0);
        }
        100% {
            opacity: 0;
            transform: translateX(100%);
        }
    }
}

/* ANIMACIJA ZA NAMIZNE NAPRAVE (VERTIKALNO) */
.animate-text {
    animation: fadeInMoveDesktop 9s ease-out infinite;
    font-size: 1.5em;
    margin-top: 30px; /* Povečaj razmik med logotipom in napisom */
    text-align: center;
    z-index: 2;
    position: relative;
}

@keyframes fadeInMoveDesktop {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    50% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* SPLOŠNE POSTAVITVE */
section {
    padding: 2em;
    text-align: center;
}

.galerija-slike img {
    width: 200px;
    height: auto;
    margin: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

form {
    max-width: 400px;
    margin: auto;
    text-align: left;
}

form label {
    display: block;
    margin: 0.5em 0 0.2em;
}

form input, form textarea {
    width: 100%;
    padding: 0.5em;
    margin-bottom: 1em;
    border: 1px solid #000000;
    border-radius: 4px;
}

form button {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 0.7em 1.5em;
    border-radius: 4px;
    cursor: pointer;
}

/* FOOTER */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 1em 0;
    font-weight: 300;
}

/* STORITVE - MREŽA */
#storitev {
    text-align: center;
    padding: 40px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    background-color: #f9f9f9;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: scale(1.08);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.4);
}

.service-image {
    width: 100%;
    height: auto;
    max-width: 350px;
    margin-bottom: 20px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-image:hover {
    transform: scale(1.15);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.3);
}

.service-item p {
    font-size: 1.2em;
    color: #333;
    margin: 0;
}

/* SEKTOR O NAS */
#o-nas {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/background.jpg') no-repeat center center/cover;
    color: #fff;
    padding: 50px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd; /* Dodan okvir */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Rahla senca */
}

.o-nas-content {
    max-width: 800px;
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 0px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    color: #333;
    border: 1px solid #ccc; /* Okvir okrog vsebine */
}

.o-nas-content h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #333;
}

.o-nas-content p {
    font-size: 1.2em;
    line-height: 1.6;
    margin-bottom: 20px;
}

.o-nas-image {
    width: 100%;
    max-width: 400px;
    border-radius: 0px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    margin-top: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.o-nas-image:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}
/* ANIMACIJA ZA NAMIZNE NAPRAVE (VERTIKALNO) */
.animate-text {
    animation: fadeInMoveDesktop 9s ease-out infinite;
    font-size: 1.5em;
    margin-top: 50px; /* Povečan razmik med logotipom in napisom */
    margin-left: 20px; /* Premik animacije desno */
    text-align: left;
    z-index: 2;
    position: relative;
}

@keyframes fadeInMoveDesktop {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    50% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-20px);
    }
}
/* SPLOŠNI SLOGI */
body, html {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    background-color: #f4f4f9;
}

body {
    font-size: 16px;
    overflow-x: hidden; /* Preprečimo horizontalno drsenje */
}

@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* HEADER */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background-color: #ffffff;
    position: relative;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    width: 250px;
    height: auto;
}

nav {
    display: flex;
    justify-content: center;
    gap: 15px;
}

nav a {
    color: #000000;
    text-decoration: none;
    font-weight: 300;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #555555;
}

/* Meni za mobilne naprave */
@media (max-width: 768px) {
    nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    nav a {
        text-align: center;
        margin: 5px 0;
        width: 100%;
    }
}

/* Sekcija Naše storitve - Mreža */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    background-color: #f9f9f9;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: scale(1.08);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.4);
}

.service-image {
    width: 100%;
    height: auto;
    max-width: 350px;
    margin-bottom: 20px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Prilagoditev za mobilne naprave */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        justify-items: center; /* Poravnava elementov na sredino */
    }

    .service-item {
        margin: 0 auto; /* Elementi so centrirani */
    }

    .service-image {
        margin: 0 auto; /* Centriramo sliko */
    }
}
.logo-container a {
    display: inline-block; /* Logotip naj deluje kot blok za lažje klikanje */
    text-decoration: none; /* Odstrani podčrtano povezavo */
}

.logo-container a img {
    width: 250px; /* Ohranite velikost logotipa */
    height: auto;
    cursor: pointer; /* Ko se uporabnik premakne nad logotip, naj se prikaže kazalec */
    transition: transform 0.3s ease; /* Dodajte učinek ob premiku miške */
}

.logo-container a img:hover {
    transform: scale(1.05); /* Rahlo povečanje ob premiku miške za interakcijo */
}

