/* Import Montserrat font */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;700&display=swap');

/* ========== GLOBAL ========== */
body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  box-sizing: border-box;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ========== HEADER ========== */
.site-header {
  position: absolute;
  top: 0;
  width: 100%;
  height: 50px;
  background: rgba(255, 255, 255, 0.55);
  z-index: 10;
  display: flex;
  align-items: center;
}

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  height: 24px;
  width: 88px;
}

.main-nav {
    display: flex;
    gap: 30px;
    margin-left: -336px;
}

/* Desktop Large Screens: <= 1200px */
@media (max-width: 1200px) and (min-width: 993px) {
    .main-nav {
        margin-left: -100px;
    }
}
/* Small Screen Laptops: <= 992px */
@media (max-width: 992px) {
    .main-nav {
        margin-left: -30px;
    }
}
.main-nav a {
  font-weight: 700;
  font-size: 14px;
  color: #555555;
}
    .main-nav a.active {
        opacity: 0.45;
    }

.language-selector {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #555555;
}

.custom-select {
  position: relative;
  margin-left: 0;
}

/* Language dropdown button */
.lang-btn {
  background: none;
  border: none;
  display: flex;
  align-items: center;
  cursor: pointer;
  gap: 5px;
  font-weight: 700;
}

.lang-btn img {
  width: 17px;
  height: 17px;
  border-radius: 50%;
}

/* Dropdown base state */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  list-style: none;
  padding: 5px 0;
  margin: 5px 0 0;
  display: none;
  width: 80px;
  border: 1px solid #ccc;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

/* Dropdown visible when .show is added to parent */
.custom-select.show .dropdown {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

/* Dropdown list items */
.dropdown li {
  padding: 5px 10px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.dropdown li img {
  width: 17px;
  height: 17px;
  border-radius: 50%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    position: relative; /* changed from absolute */
    margin-left: -10px; /* mimic nav spacing */
}

.hamburger span {
  width: 25px;
  height: 4px;
  background: white;
  border-radius: 2px;
}

.mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.3);
  z-index: 998;
  justify-content: center;
  align-items: center;
}

.mobile-overlay.show {
  display: flex;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.95);
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 75vh;
  width: 80vw;
  border-radius: 25px;
  padding: 30px 20px;
  z-index: 999;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.mobile-menu.show {
  display: flex;
}

.close-menu {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 28px;
  font-weight: bold;
  color: #555;
  cursor: pointer;
  z-index: 1001;
}

.mobile-menu a {
  font-weight: 700;
  font-size: 20px;
  color: #555555;
  margin: 10px 0;
}

.language-mobile {
  margin-top: 30px;
}

.language-mobile div {
  margin: 5px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.language-mobile img {
  width: 17px;
  height: 17px;
  border-radius: 50%;
}



/* Mobile & Tablet: <= 768px */
@media (max-width: 768px) {
  .site-header {
    background: transparent;
  }
 .main-nav,
  .language-selector {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .container {
    justify-content: flex-end;
  }

  .logo {
    display: none;
  }


}

/* Mobile Small: <= 570px */
@media (max-width: 570px) {
  .mobile-overlay {
    background: rgba(0, 0, 0, 0.3);
    justify-content: center;
    align-items: center;
    padding-top: 0;
  }

 .main-nav,
  .language-selector {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-menu {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border-radius: 25px;
    width: 80vw;
    height: 70vh;
    padding: 30px 20px;
    align-items: center;
    justify-content: center;
  }

  .mobile-logo {
    display: none;
  }

  .close-menu {
    color: #555;
    font-size: 26px;
    top: 15px;
    right: 15px;
  }

  .mobile-menu a {
    color: #555555;
    font-size: 18px;
  }

  .language-mobile strong,
  .language-mobile a {
    color: #555555;
  }

  .language-mobile div {
    margin: 5px 0;
    justify-content: center;
  }
}


/* ========== HERO SECTION ========== */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero-wrapper {
  position: relative;
  width: 100%;
  height: 475px;
}

.hero-o-nama-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ========== RESPONSIVE BREAKPOINTS ========== */
@media (max-width: 1200px) {
  .hero-wrapper {
    height: 460px;
  }
}

@media (max-width: 992px) {
  .hero-wrapper {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .hero-wrapper {
    height: 400px;
  }
}

@media (max-width: 570px) {
  .hero-wrapper {
    height: 250px;
  }
}

/* ========== O NAMA NASLOV ========== */
.naslov-o-nama {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  background-color: #555;
  height: 75px;
  color: white;
  margin-top: 0px;
}
.fade-slide-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1.5s ease-out forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== O NAMA CONTENT SECTION ========== */
.onama-content {
  background-color: white;
  padding: 60px 20px;
  color: #333;
  font-size: 18px;
  line-height: 1.6;
}

.onama-content p {
  margin-bottom: 20px;
}

.onama-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 120px; /* Default padding for large screens */
}

/* Medium screens: tablets */
@media (max-width: 992px) {
  .onama-container {
    padding: 0 100px;
  }
}

/* Small screens: mobile */
@media (max-width: 768px) {
    .onama-container {
        padding: 0 80px;
        font-size: 18px;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
  .onama-container {
    padding: 0 50px;
  }
}

.onama-container p {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeSlideIn 0.8s ease-out forwards;
    animation-delay: var(--delay, 0s);
}

    /* Stagger effect */
    .onama-container p:nth-child(1) {
        --delay: 0.2s;
    }

    .onama-container p:nth-child(2) {
        --delay: 0.4s;
    }

    .onama-container p:nth-child(3) {
        --delay: 0.6s;
    }

    .onama-container p:nth-child(4) {
        --delay: 0.8s;
    }

    .onama-container p:nth-child(5) {
        --delay: 1s;
    }

    .onama-container p:nth-child(6) {
        --delay: 1.2s;
    }

@keyframes fadeSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* GALERIJA */


.gallery-title {
    font-size: 2rem; /* Adjusts the text size */
    font-weight: 700; /* Makes the text bold */
    margin-bottom: 30px; /* Space below the title */
    margin-top: 0; /* Optional: remove space above */
    color: #333; /* Change text color */
    text-align: center; /* Center the title */
}

@media (max-width: 768px) {
    .gallery-title {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
}

@media (max-width: 570px) {
    .gallery-title {
        font-size: 1.6rem;
        margin-bottom: 15px;
    }
}

.image-carousel {
    background: #ccc;
    padding: 50px 0;
    display: flex;
    justify-content: center;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gallery-wrapper {
    width: 1090px; /* 3x300 + 2x20(gaps) + 2x60(arrows) + 2x10(space between arrow and image) */
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
    justify-content: center;
    margin: 0 auto;
}

.arrow {
    width: 60px;
    height: 170px;
    background: transparent;
    cursor: pointer;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 10px; /* space between arrow and images */
}

.gallery-container {
    display: flex;
    gap: 20px;
    overflow: hidden;
    width: 1020px; /* 3x300 + 2x20 gaps */
}

.gallery-track {
    display: flex;
    gap: 20px;
    transition: transform 0.3s ease-in-out;
}

    .gallery-track img {
        width: 300px;
        height: 170px;
        object-fit: cover;
        flex-shrink: 0;
        border-radius: 5px;
    }

.gallery-button {
    display: inline-block;
    width: 400px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    font-weight: bold;
    font-size: 1.1rem;
    color: white;
    text-decoration: none;
    border: 2px solid white;
    border-radius: 7px;
    background-color: rgba(255, 255, 255, 0); /* Transparent fill */
    transition: background-color 0.3s ease, color 0.3s ease;
    margin-top: 40px;
}

@media (max-width: 570px) {
    .gallery-button {
        display: inline-block;
        width: 280px;
        height: 40px;
        line-height: 40px;
        text-align: center;
        font-weight: bold;
        font-size: 1.1rem;
        color: white;
        text-decoration: none;
        border: 2px solid white;
        border-radius: 7px;
        background-color: rgba(255, 255, 255, 0); /* Transparent fill */
        transition: background-color 0.3s ease, color 0.3s ease;
        margin-top: 40px;
    }
}
/* Hover state */
.gallery-button:hover {
    background-color: rgba(255, 255, 255, 0.6); /* 60% transparent white */
    color: #444;
}

/* Click (active) state */
.gallery-button:active {
    background-color: #0EA5DE;
    color: white;
}

/* Scale down proportionally under 1200px */
@media (max-width: 1201px) {
    .gallery-wrapper {
        zoom: 0.9;
        transform-origin: top center;
    }
}
/* Scale down proportionally under 992px */
@media (max-width: 991px) {
    .gallery-wrapper {
        zoom: 0.65;
        transform-origin: top center;
    }
}

/* Mobile style: 1 image, 90% width, arrows over image */
@media (max-width: 767px) {
    .gallery-wrapper {
        width: 90%;
        max-width: 100%;
        position: relative;
        transform: scale(1);
        flex-direction: column;
    }

    .break-mobile {
        display: block;
        width: 100%;
        height: 0;
    }

    .gallery-container {
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .gallery-track img {
        width: 100%;
        height: auto;
        border-radius: 8px;
    }

    .arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        height: 40px;
        width: 40px;
        background: rgba(255, 255, 255, 0.7);
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

        .arrow.left {
            left: 5px;
        }

        .arrow.right {
            right: 5px;
        }

        .arrow svg {
            height: 20px;
            width: 20px;
        }
}

/* FOOTER */
footer {
    background-color: #f5f5f5;
    padding: 20px 10px;
    text-align: center;
    font-weight: bold;
    font-size: 13pt;
}

footer {
    background-color: #f5f5f5;
    padding: 20px 10px;
    text-align: center;
    font-weight: bold;
    font-size: 13pt;
}

.footer-link {
    text-decoration: none;
}

.footer-grey {
    color: #555555;
}

.footer-blue {
    color: #0EA5DE;
}


.break-mobile {
    display: none;
}

@media (max-width: 767px) {
    .break-mobile {
        display: block;
        width: 100%;
        height: 0;
    }
}
