:root{
    --yellow:#FCB31C;
    --siva:#cccccc;
    --rj:#2e2925;
    --rob_card: 0px;
}
html {
	scroll-behavior: smooth;
}
*{
    margin: 0;
    padding: 0;
}
ul{
    list-style-type: none;
}
h1{
    font-size: 2.5rem;
    font-family: 'Urbanist', sans-serif; 
    color: var(--yellow);
}
h2{
    font-size: 1.5rem;
    font-family: 'Urbanist', sans-serif;
    color: var(--yellow);
}
a{
    font-size: 19px;
}
p{
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

/*---------------------------------nav bar-----------------------*/
header{
  margin: 0;
  width: 100%;
  top: 0;
  left: 0;
  padding-top: 0;
  background-color: var(--rj);
  border-end-end-radius: 200%;
  border-end-start-radius: 200%;
  height: 110px;
  z-index: 2; 
  position: fixed;
  transition:all 0.5s linear;
}
.nav-pages {
  width: 1400px;
 padding-top: 0%;
  margin-top: 8px;
  transition: all 0.5s linear;
}
#povezave{
  padding-top: 5px;
  margin-right:auto;
  margin-left:auto;
  justify-content: center;
  transition: all 0.5s linear;  
}
#povezave li{
  text-align: center;
  height: 100%;
   width: 100%;
  margin-top: 15px;
 position: relative;
  transition: all 0.5s linear; 
}
.link {
  font-family: 'Urbanist', sans-serif;
  font-size: 16px;
  font-weight: 700;
  margin-left: 10px;
  margin-right: 10px;
  padding: 10px 16px;
  text-transform: uppercase;
  text-decoration: none;
  color: #ffffff;
  border-radius: 0;
  border: none;
  position: relative;
  transition: color 0.3s;
}
#povezave li:nth-child(4), #povezave li:nth-child(5), #povezave li:nth-child(6)
{
  float:right;
}
#povezave li:nth-child(1), #povezave li:nth-child(2), #povezave li:nth-child(3)
{
  float:left;
}
#povezave li:nth-child(3)
{
 margin-right: 10%; 
}
#povezave li:nth-child(4)
{
 margin-left: 10%; 
}
#nav{
display: flex;
height: 100px;
padding-top: 20px;
margin-left: auto;
margin-right: auto;
justify-content: center;
}
#logo{
  width: 190px;
  margin-top: -40px;
  margin-bottom: 5px;
 transition: all 0.5s linear;
 position: absolute;
}
#logo img{
  width: 100%;
margin-left: 10px;
}
.link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #FCB31C;
  border-radius: 2px;
  transition: width 0.3s, left 0.3s;
}
.link:hover {
  color: #FCB31C;
  border: none;
  background: none;
}
.link:hover::after {
  width: 80%;
  left: 10%;
}
.selected {
  color: #FCB31C;
  background: none;
}
.selected::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 10%;
  width: 80%;
  height: 2px;
  background: #FCB31C;
  border-radius: 2px;
}
.selected:hover {
  color: #FCB31C;
}

/*----------------- vrni na vrh------------------*/
.scrollLink {
    position: fixed;
    top: 50%;
    right: 50px;
    display: none;
    align-items: center;
    justify-content: center;
    background-color: var(--yellow);
    border-radius: 2rem;
    padding: 0.5rem;
    text-decoration: none;
    transition: 0.2s ease-out;
    z-index: 3;
}
.scrollLink span {
    color: black;
    font-size: 2.5rem;
    transition: 0.2s ease-out;
}
.scrollLink:hover {
    background-color:#d3910e;
}
.scrollLink:hover span {
    transform: translateY(-4px);
    color: var(--siva);
}

/*----------------------1-DEL (hero)-------------------------------*/
.bgimg1{
    margin: 0;
    width: 100%;
    height: 70vh; 
    background-color: #2e292565; 
    background-image: linear-gradient(180deg, #2E292540 4%, #2E2925 100%);
    padding-top: .1px;
    position: relative; 
    display: flex;
    justify-content: center;
    align-items: center;
}
.bgimg1::after{
    content: "";
    width: 100%;
    top: 0px;
    left: 0px;
    bottom: 0px;
    right: 0px;
    background-repeat: no-repeat;
    background-image: url('../img/galerija.jpg');
    background-size:cover;
    background-position: 50% 55%;
    z-index: -1;
    position: absolute;
}
#main-box{
    position: relative;
    margin: auto;
    padding: auto;
}
.main-container{
    max-width: 1000px;
    margin:auto;
    text-align: center;
    letter-spacing: 1px; 
}
.main-container h1{
    color: var(--yellow);
    font-size: 4rem;
    letter-spacing: 1px;
    line-height: 95%;
    margin-bottom: 40px;
}
.main-container p{
    font-size: 1.25rem;
    font-weight: 550;
}

/*----------------- GALERIJSKO OZADJE -----------------*/
.container{
    width: 100%;
    overflow: hidden;
    z-index: 1;
    top: 0px;
    left: 0px;
    bottom: 0px;
    right: 0px;
    background-color: var(--rj);
    background-repeat: repeat;
    background-position:left;
    background-image: url('../img/les_letnice.jpg');
    background-size:auto;
    min-height: 100vh;
    height: fit-content;
    position: relative;
}
.container::after{
    content: "";
    top: 0px;
    left: 0px;
    bottom: 0px;
    right: 0px;
    background-repeat: repeat-y;
    background-position: center;
    background-image: linear-gradient(0deg, #2e292526 30%, #2E2925 100%), linear-gradient(180deg,#2e292526 30%, #2e2925 100%);
    background-size: cover;
    min-height: 100%;
    z-index: -1;
    position: absolute;
}

.gallery{
    margin-top: 4%;
    min-height: 100vh; 
    padding-bottom: 100px;
}

/* ========== NOVI FILTRI (opazni) ========== */
.filter-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 30px 20px 40px;
}

.filter-btn {
    background: transparent;
    color: #fff;
    border: 2px solid var(--yellow);
    padding: 14px 28px;
    font-family: 'Urbanist', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.filter-btn::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: var(--yellow);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.filter-btn:hover::before,
.filter-btn.active::before {
    transform: scaleX(1);
    transform-origin: left;
}

.filter-btn:hover,
.filter-btn.active {
    color: var(--rj);
    border-color: var(--yellow);
    box-shadow: 0 6px 20px rgba(252,179,28,0.5);
}

/* ========== MREŽA SLIK ========== */
.image-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    padding: 10px 30px 60px;
    max-width: 1440px;
    margin: 0 auto;
}

.slika {
    display: block;
    height: 280px;
    width: 370px;
    overflow: hidden;
    border: 3px solid var(--siva);
    border-radius: 12px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.slika img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.slika:hover {
    border-color: var(--yellow);
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(252,179,28,0.3);
}

.slika:hover img {
    transform: scale(1.08);
}

/*-----------------------------noga-----------------------------------------*/
li p a {
    text-decoration: none;
    color: var(--siva);
    transition: color 0.2s;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 1px;
}
li p a:hover {
    color: var(--yellow);
}
.container3{
    margin: 0;
    padding-top:6% ;
    width: 100%;
    background-color: var(--rj);
    height:auto;
}
.noga{
    display: flex;
    width: 100%;
    flex-direction: row;
    background-color: var(--rj);
}
.box1{
    width: 32.5%;
    padding: 3% 0 0 0;
    display: flex;
    justify-content: center;
    text-align: left;
    border-right: #ffffff20 solid 0.1px;
}
.box2{
    margin: 0;
    width: 35%;
    padding: 1% 2%;
    text-align: center;
    border-right: #ffffff20 solid 0.1px;
}
.box3{
    width: 32.5%;
    padding: 3% 0 ;
    display: flex;
    justify-content: center;
    text-align: left;
}
.box2 img{
    width: 210px;
    margin-bottom: 20px;
}
.box2 a img{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.8rem; 
    margin-left: 3%;
    scale: 1;
    opacity: 1;
    transition: 0.3s ease-in-out;
}
.box2 a img:hover{
    opacity: 0.5;
    scale: 1.2;
}
.box1 ul li,
.box3 ul li
{
    text-align: left;
    list-style-type: none;
    margin-top: 4%;
}
.box1 ul li a,
.box3 ul li a{
    text-decoration: none;
    list-style-type: none;
}
.box1 ul li a p,
.box3 ul li a p{
    font-family:'Arial Narrow', Arial, sans-serif;
    font-weight: 500;
    color:var(--siva);
    font-size: 90%;
    transition: linear 0.2s;
}
.box1 ul li a p:hover,
.box3 ul li a p:hover{
    color: var(--yellow);
}
.kontakt-noga h2{
    color: white;
    text-shadow: 1px 1px black;
    margin-bottom: 15px;
}
.kontakt-noga ul li{
    text-decoration: none;
    list-style-type: none;
}
.kontakt-noga ul li p,
.kontakt-noga ul li a p{
    font-family:'Arial Narrow', Arial, sans-serif;
    font-weight: 500;
    color:var(--siva);
    font-size: 1rem;
}
footer{
    color: var(--siva);
    text-align: center;
    margin-top: 30px;
    font-size: 0.9rem;
    padding-bottom: 10px;
    background-color: var(--rj);
}

/*---------------------------------------------------------------*/
.nav-mobile {
    display: none;
    height: 70px;
    width: 70px;
    top: 0;
    right: 0;
    background-color: var(--rj);
    z-index: 3;
    position: absolute;
}
@media only screen and (max-width: 1000.5px) {
    .nav-mobile {
        display: block;
        margin-top: 25px;
    }
    .nav-pages {
        width: 100%;
        padding: 0 ; 
    }  
    .nav-pages ul {
        display: none;
        left: 0;
        padding-left: 25%;
    }
    .nav-pages ul li a {
        padding: 15px;
        line-height: 20px; 
    }
    .link{
        display: block;
        width: 50%;
    }
    #ozadje {
        background-color: var(--rj);
        position: absolute;
        width: 100%;
        overflow: hidden;
        transition: .5s linear;
        box-shadow: 0 17px 0 0 var(--rj); 
    }
}
@media screen and (min-width: 1000.5px) {
    #povezave {
        display: flex !important;
    }  
}
#nav-toggle {
    position: absolute;
    left: 18px;
    top: 22px;
    cursor: pointer;
    padding: 10px 35px 16px 0; 
}
#nav-toggle span,
#nav-toggle span:before,
#nav-toggle span:after {
    cursor: pointer;
    border-radius: 1px;
    height: 4px;
    width: 30px;
    background: white;
    position: absolute;
    display: block;
    content: '';
    transition: all 300ms ease-in-out; 
}
#nav-toggle span:before {
    top: -10px; 
}
#nav-toggle span:after {
    bottom: -10px; 
}
#nav-toggle.active span {
    background-color: transparent; 
}
#nav-toggle.active span:before, 
#nav-toggle.active span:after {
    top: 0; 
}
#nav-toggle.active span:before {
    transform: rotate(45deg); 
}
#nav-toggle.active span:after {
    transform: rotate(-45deg); 
}

@media (max-width:1100px) {
    header{
        border-end-end-radius: 0%;
        border-end-start-radius: 0%;
    }
    #nav{
        height: 100px;
    }
    #povezave li{
        margin-top: 16px;
    }
    #logo{
        width: 220px;
        padding-top: 5px;
        margin-bottom: 5px;
    }
    #logo img{
        width: 70%;
        margin-left: 30px;
        padding-top: 5%;
    }
    .link{
        font-size: 16px;
        font-weight: 700;
        margin-left: 10px;
        margin-right: 10px;
        padding: 13px;
    }
    .main-container{
        max-width: 70%;
    }
    .box2 img{
        width: 160px;
    }
    .box2 a img{
        width: 2.2rem; 
    }
    .kontakt-noga h2{
        font-size: 1.2rem;
    }
    .kontakt-noga ul li p,
    .kontakt-noga ul li a p{
        font-weight: 200;
        font-size: 0.85rem;
    }
    footer{
        font-size: 0.75rem;
    }

    /* filter prilagoditev */
    .filter-btn {
        padding: 12px 22px;
        font-size: 1rem;
    }
    .slika {
        width: 45%;
        height: 200px;
    }
}

@media (max-width:838px) {
    .main-container{
        max-width: 90%;
    }
    .main-container h1{
        font-size: 2.7rem;
    }
    .main-container p{
        font-size: 1rem;
    }
    .container3{
        padding-top:6% ;
        width: 100%;
        height:auto;
    }
    .noga{
        display: flex;
        width: 100%;
        flex-direction: column;
    }
    .box1{
        order: 2;
        margin: auto;
        width: 70%;
        border: none;
    }
    .box2{
        margin: auto;
        width: 70%;
        text-align: center;
        border: none;
    }
    .box3{
        margin: auto;
        padding: 3% 0 ;
        width: 70%;
    }
    .box2 img{
        width: 180px;
        margin-bottom: -10px;
        margin-top: 20px;
    }
    .box2 a img{
        width: 2.4rem; 
        margin: 4%;
    }
    .box1 ul li,
    .box3 ul li
    {
        text-align: center;
        margin-top: 5%;
    }
    .box1 ul li a p,
    .box3 ul li  p{
        font-size: 0.95rem;
    }
    .kontakt-noga h2
    {
        font-size: 1.6rem;
        text-align: center;
    }
    footer{
        margin-top: 40px;
        font-size: 0.75rem;
        padding-bottom: 15px;
    }
    /* slike */
    .image-container {
        gap: 12px;
        padding: 10px 15px 40px;
    }
}

@media (max-width:640px) {
    .filter-btn {
        padding: 10px 18px;
        font-size: 0.95rem;
    }
}

@media (max-width:450px) {
    .main-container {
        margin-top: 20%;
    }
    .main-container h1{
        font-size: 2.5rem;
        margin-bottom: 5%;
    }
    .main-container p{
        font-size: .92rem;
    }
    .slika {
        width: 100%;
        height: 220px;
    }
}

#nav img {
    max-width: 80%;
    height: auto;
}