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

body {
    background-color: #f9f9f9;
    font-family: 'QuickSand', sans-serif;
}

/*HEADER*/

.wrapper {
  width: 95%;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center; 
  position: relative;
}

header {
  background-color: #f0f8ea;
  color: #ebebd3;
  padding: 1em 0;
  position: fixed;   
  top: 0;
  left: 0;
  width: 100%;       
  z-index: 1000;  
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);   
}

.logo {
  margin: 0;
}

.logo a {
  display: inline-block; 
  text-decoration: none; 
}

.logo img {
  height: 45px;     
  width: auto;
  display: block;
}

.main-nav {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  background-color: #f0f8ea;
  height: 0;
  overflow: hidden;
  transition: height 0.3s ease;
}

.main-nav-open {
  height: auto;
}

.main-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav li {
  border-bottom: 1px solid #ff5941;
}

.main-nav li:last-child {
  border-bottom: none;
}

.main-nav a {
  color: #ff5941;
  font-weight: bold;
  display: block;
  padding: 1em;
  text-decoration: none;
  text-transform: uppercase;
}


.nav-icon {
  display: inline-block;
  font-size: 1.3em;
  margin-right: 0.5em;
  text-align: center;
  width: 1.1em;
  color: rgba(255, 89, 65, 1);
}

.menu-toggle {
  padding: 1em;
  cursor: pointer;
  z-index: 1010; 
}

.hamburger,
.hamburger::before,
.hamburger::after {
  content: "";
  display: block;
  background: #ff5941;
  height: 3px;
  width: 1.75em;
  transition: all ease-in-out 500ms;
}

.hamburger::before {
  transform: translateY(-6px);
}

.hamburger::after {
  transform: translateY(3px);
}

.open .hamburger {
  transform: rotate(45deg);
}

.open .hamburger::before {
  opacity: 0;
}

.open .hamburger::after {
  transform: rotate(90deg) translateY(3px);
}

@media only screen and (min-width: 700px) {
  .menu-toggle {
    display: none;
  }

  .main-nav {
    position: relative;
    background: transparent;
    height: auto;
    overflow: visible;
    display: flex;
    justify-content: flex-end;
  }

  .main-nav ul {
    display: flex;
    gap: 2em;
  }

  .main-nav li {
    border: none;
  }

  .main-nav a {
    padding: 0;
    background: transparent;
  }

  .nav-icon {
    display: none;
  }
}


/*MAIN*/


main {
    background-color: #f9f9f9;
    padding-top: 80px; 
}

.gal {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    text-align: center;
    padding: 20px 20px 10px 20px;
    border-radius: 8px;
    background-color: #f9f9f9;
    margin-bottom: 40px;
}

.galnas {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;

}

.logo2 img {
    max-height: 120px;
    width: auto;
    display: block;
}

h2 {
    font-size: 40px;
    color: #222;
    font-weight: 600;
    letter-spacing: 1px;
    margin: 0;
}

.gallery {
    max-width: 900px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 10px;
    padding: 0 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background-color: #f9f9f9;
}

.gallery-item {
    width: 100%;
    height: 200px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}


.lightbox {
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
    overflow: hidden;
}

.hidden { display: none !important; }

.lightbox-img {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.close {
    position: fixed;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    z-index: 1100;
}

.prev, .next {
    cursor: pointer;
    position: fixed;
    top: 50%;
    color: white;
    font-size: 60px;
    padding: 16px;
    user-select: none;
    transition: color 0.3s, background 0.3s;
    border-radius: 3px;
    background: rgba(0,0,0,0.4);
    transform: translateY(-50%);
    z-index: 1100;
}

.prev:hover, .next:hover {
    background: rgba(255,255,255,0.3);
    color: black;
}

.prev { left: 30px; }
.next { right: 30px; }


@media (max-width: 900px) {
    .gallery { grid-template-columns: repeat(2, 1fr); }
    .gallery-item { height: 220px; }
    .prev, .next { font-size: 50px; padding: 12px; }
    .close { font-size: 35px; top: 15px; right: 20px; }
}

@media (max-width: 768px) {
    .galnas {
        flex-direction: column; 
        gap: 10px;
        align-items: center;
        margin-top: 20px;
    }

    .gal h2 { font-size: 28px; }
    .gal { margin-bottom: 40px; }
}

@media (max-width: 600px) {
    .gallery { grid-template-columns: 1fr; }
    .gallery-item { height: 240px; }
    .prev, .next { font-size: 40px; padding: 10px; }
    .close { font-size: 30px; top: 10px; right: 15px; }
}





/*FOOTER*/

.footer {
    background-color: #222;
    color: #fff;
    font-family: Arial, sans-serif;

  }

  .footer-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 20px 0;
  }

  .footer-left {
    text-align: left;
  }

  .footer-right {
    text-align: right;
  }

  .footer h3, .footer h4 {
    margin-bottom: 10px;
  }

  .footer p {
    margin: 6px 0;
    line-height: 1.5;
    display: flex;
    align-items: center;
  }

  .footer .icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    border: 1px solid #fff;
    border-radius: 4px;
    margin-right: 8px;
  }

  .footer .icon i {
    color: #fff;
    font-size: 14px;
  }

.footer-bottom {
    display: flex;
    flex-direction: column;   
    justify-content: center; 
    align-items: center;      
    padding: 20px 0;
    background-color: #1a1a1a;
    width: 100%;              
    box-sizing: border-box;
    gap: 5px;                
}

.footer-bottom .line {
    width: 50%;               
    max-width: 500px;
    height: 1px;
    background-color: #555;
    border-radius: 1px;
    margin-bottom: 10px;     
}

.footer-bottom p {
    margin: 0;
    font-size: 0.85rem;
    text-align: center;       
}

.footer-bottom i.fa-code {
    margin: 0 5px;
    color: #fff;
}


  @media (max-width: 600px) {
    .footer-container {
      flex-direction: column;
      text-align: center;
    }
    .footer-left, .footer-right {
      text-align: center;
      margin: 10px 0;
    }
    .footer p {
      justify-content: center;
    }
    .footer-bottom .line {
      width: 60%;
    }
  }

/*STRELICA*/

.back-to-top {
  position: fixed;       
  bottom: 25px;          
  right: 25px;           
  background-color: #ff5941;
  color: white;
  font-size: 1.5em;      
  text-decoration: none;
  width: 40px;           
  height: 40px;          
  border-radius: 50%;    
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  z-index: 1000;
  opacity: 0.8;
  transition: opacity 0.3s, transform 0.3s;
}

.back-to-top:hover {
  opacity: 1;
  transform: translateY(-3px);
}