
:root{
    --dark-blue: #021526;
    --blue-1: #03346E;
    --blue-2: #1764C2;
    --light-bg: #f7f9fc;
    --radius: 18px;
    --transition: 0.35s ease;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    font-family: "Inter", sans-serif;
    background: white;
    color: var(--dark-blue);
    line-height: 1.6;
    overflow-x: hidden;
}


header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2.5rem;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.25);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 45px;
}

.logo span {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}

.navbar {
  position: relative;
  
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.dropbtn {
  background: none;
  border: none;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 500;
  transition: color 0.3s ease;
}

.dropbtn:hover {
  color: #b6c9ff;
}

/* Dropdown */
.dropdown-content {
  display: none;
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border-radius: 10px;
  min-width: 250px;
  flex-direction: column;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  margin-top: 10px;
  animation: fadeIn 0.25s ease;
  
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.dropdown-content.show {
  display: flex;
}

.dropdown-content a {
  display: block;
  padding: 0.8rem 1.2rem;
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.3s;
}

.dropdown-content a:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
}

.bar {
  height: 3px;
  width: 25px;
  background-color: white;
  border-radius: 10px;
  transition: all 0.3s ease;
}

/* Responsive */
@media (max-width: 900px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
    flex-direction: column;
    background: rgba(25, 30, 43, 0.843);
    backdrop-filter: blur(20px);
    text-align: center;
    padding: 1.5rem 0;
    gap: 1rem;
    min-width: 200px;
  }

  .nav-links.active {
    display: flex;
  }

  .dropdown-content {
    position: static;
    box-shadow: none;
    background: transparent;
    backdrop-filter: none;
    display: none;
  }

  .dropdown-content.show {
    display: flex;
  }

  .menu-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
  }
  .menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
  }
} 

.baner{
    width: 100%;
    padding: 120px 20px 140px;
    text-align: center;
    color: white;

    background: linear-gradient(
        135deg,
        #021526,
        #03346E,
        #1764C2,
        #0a2744
    );
    background-size: 400% 400%;
    animation: heroGradient 18s ease-in-out infinite;

    display: flex;
    flex-direction: column;
    gap: 30px;
}

@keyframes heroGradient{
    0%{background-position:0% 50%}
    50%{background-position:100% 50%}
    100%{background-position:0% 50%}
}

.baner h1{
    font-size: 2.7rem;
    line-height: 1.2;
    max-width: 950px;
    display: block;
    margin: 0 auto;
}

.baner p{
    max-width: 900px;
    font-size: 1.15rem;
    margin: 0 auto;
    margin-bottom: 5px;
    opacity: 0.9;
}

.baner .drugi{
    margin-top: 8px;
    opacity: 0.85;
}



.main{
    width: 100%;
    max-width: 1300px;
    margin: 70px auto;
    padding: 0 20px;
}

.kartice h2{
    text-align: center;
    font-size: 2rem;
    margin-bottom: 20px;
}

.kartice p{
    text-align: center;
    max-width: 850px;
    margin: 0 auto;
    margin-bottom: 40px;
}

.omotac{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 35px;
}

.card{
    background: var(--light-bg);
    padding: 30px 25px;
    border-radius: var(--radius);
    border: 1px solid rgba(0,0,0,0.08);
    transition: var(--transition);
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

.card:hover{
    transform: translateY(-6px);
    box-shadow: 0 16px 35px rgba(0,0,0,0.11);
    border-color: rgba(23,100,194,0.25);
}

.card h3{
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--blue-1);
}

.card ul{
    margin-left: 20px;
    margin-bottom: 12px;
}

.card p{
    margin-top: 10px;
}


.uprava{
    text-align: center;
    margin-top: 80px;
}

.uprava h2{
    font-size: 2rem;
    margin-bottom: 15px;
}

.uprava p{
    max-width: 800px;
    margin: 0 auto;
    margin-bottom: 25px;
}

.uprava h4{
    margin-top: 30px;
    font-size: 1.2rem;
    color: var(--blue-1);
}

.uprava h5{
    font-size: 1.1rem;
    margin-top: 5px;
}

.centartekst{
    max-width: 850px;
    margin: 30px auto 0;
}



.drugec{
    margin-top: 90px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
}

.cc{
    background: white;
    padding: 35px 30px;
    border-radius: var(--radius);
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 10px 25px rgba(0,0,0,0.07);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}


.cc::before{
    content: "";
    position: absolute;
    top: -60%;
    left: -60%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(23,100,194,0.12), transparent 70%);
    opacity: 0;
    transition: 0.4s ease;
}

.cc:hover::before{
    opacity: 1;
}

.cc:hover{
    transform: translateY(-7px);
    border-color: rgba(23,100,194,0.2);
    box-shadow: 0 18px 40px rgba(0,0,0,0.15);
}

.cc hr{
    margin: 12px 0 18px;
    border: none;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.cc h2{
    font-size: 1.5rem;
    color: var(--blue-1);
}

.cc p{
    margin-bottom: 20px;
}

.dugme{
    background: var(--blue-1);
    padding: 12px 20px;
    display: inline-block;
    color: white;
    border-radius: 12px;
    font-weight: 600;
    transition: var(--transition);
}

.cc a{
    text-decoration: none;
}

.dugme:hover{
    background: var(--blue-2);
    transform: translateY(-3px);
}



footer{
    margin-top: 100px;
    padding: 60px 20px;
    background: var(--light-bg);
    text-align: center;
    border-top: 1px solid rgba(0,0,0,0.08);
}

footer h2{
    margin-bottom: 12px;
}

footer ul{
    list-style: none;
    margin: 20px 0;
    line-height: 1.9;
}

footer p{
    margin-top: 25px;
    font-size: 0.9rem;
    opacity: 0.7;
}


@media (max-width: 1024px){

    header{
        padding: 15px 25px;
        flex-wrap: wrap;
        gap: 15px;
    }

    header ul{
        gap: 18px;
    }

    .baner h1{
        font-size: 2.3rem;
    }

    .baner p{
        font-size: 1.05rem;
    }
}

/* MOBILE HEADER */
@media (max-width: 768px){

    header{
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 20px;
    }

    header div:first-child{
        justify-content: center;
    }

    header ul{
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    header ul li a{
        font-size: 0.9rem;
    }

    #ime{
        font-size: 1.2rem;
    }

    .baner h1{
        font-size: 1.9rem;
    }

    .baner p{
        font-size: 1rem;
        max-width: 95%;
    }
}

/* MOBILE – Kartice u 1 koloni */
@media (max-width: 768px){

    .omotac,
    .drugec{
        grid-template-columns: 1fr !important;
        gap: 25px;
    }

    .card,
    .cc{
        padding: 28px 22px;
    }

    .card h3,
    .cc h2{
        font-size: 1.25rem;
    }
}
@media (max-width: 768px){

    .uprava h2{
        font-size: 1.6rem;
    }

    .uprava p,
    .centartekst{
        max-width: 95%;
        font-size: 0.97rem;
    }

    footer h2{
        font-size: 1.4rem;
    }

    footer h3{
        font-size: 1.1rem;
    }

    footer ul{
        font-size: 0.95rem;
    }
}
@media (max-width: 500px){

    .baner{
        padding: 100px 15px 120px;
    }

    .baner h1{
        font-size: 1.7rem;
        line-height: 1.25;
    }

    .baner p{
        font-size: 0.95rem;
    }
}
