
/* === SPLOŠNE NASTAVITVE === */
body {
  margin: 0;
  font-family: 'Montserrat';
  background-color: #020617;
  color: #F9FAFB;
}

/* === UVODNI OPIS === */
.portfolio-intro {
  background-color: #111827;
  padding: 4rem 2rem;
  color: #F9FAFB;
}

.intro-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.intro-content h2 {
  flex: 1 1 200px;
  font-size: 6rem;
  font-weight: 700;
  color: #F97316;
  margin: 0;
  font-family: 'Playfair';
}

.intro-content p {
  flex: 2 1 500px;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #F9FAFB;
}

/* === PORTFOLIO === */
.portfolio-content {
  padding: 0;
}

.portfolio-section {
  max-width: 100%;
}

.portfolio-section h2 {
  font-size: 6rem;
  margin-bottom: 3rem;
  color: #f29e20;
  border-bottom: 2px solid #f29e20;
  display: inline-block;
  padding: 2rem;
}

/* === PROJEKT === */
.horizontal-project {
  margin-bottom: 1rem;
}

.horizontal-description {
  padding: 0 2rem;
  font-size: 1rem;
  color: #F9FAFB;
}

.horizontal-description h3 {
  padding: 0;
  font-size: 1.3rem;
  color: #F97316;
  font-weight: 500;
}

/* === STRIP SLIK === */
.image-strip {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  padding: 0;
  margin: 0;
  gap: 0;
}

.image-strip--2 img { width: 50%; }
.image-strip--3 img { width: 33.3333%; }
.image-strip--4 img { width: 25%; }
.image-strip--5 img { width: 20%; }
.image-strip--6 img { width: 16.6667%; }
.image-strip--8 img { width: 12.5%; }

.image-strip img {
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  margin: 0;
  padding: 0;
  border: none;
  cursor: none;
  transition: filter 0.3s ease, transform 0.3s ease;
}

.reveal-item,
.reveal-text {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--delay, 0ms);
}

.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.image-strip img:hover {
  filter: brightness(0.75);
  transform: scale(1.02);
}

/* === VERTICAL FORMAT === */
.vertical-strip img {
  aspect-ratio: 9 / 16;
  object-fit: cover;
  height: auto;
  display: block;
  border: none;
}

/* === LIGHTBOX ZA SLIKE === */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border: 2px solid #f29e20;
  box-shadow: 0 0 40px rgba(0,0,0,0.8);
}

/* === VIDEO MODAL === */
.video-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  justify-content: center;
  align-items: center;
}

.video-wrapper {
  position: relative;
  width: 90%;
  max-width: 960px;
  aspect-ratio: 16 / 9;
  background-color: #000;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  overflow: hidden;
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.video-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #F9FAFB;
  color: #EC4899;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  width: 36px;
  height: 36px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.video-close:hover {
  background: #EC4899;
  color: #F9FAFB;
  border: none;
}

/* === GALERIJA Z THUMBNAILI === */
#galleryModal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.gallery-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-height: 90vh;
  max-width: 90vw;
  overflow: hidden;
  gap: 1rem;
}

#galleryImage {
  max-height: 65vh;
  max-width: 100%;
  object-fit: contain;
  border: 2px solid #f29e20;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.7);
}

.thumbnail-strip {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem;
  overflow-x: auto;
  max-width: 100%;
  box-sizing: border-box;
}

.thumbnail-strip img {
  width: 60px;
  height: 40px;
  object-fit: cover;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border 0.3s ease;
}

.thumbnail-strip img.active {
  border-color: #f29e20;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 3rem;
  color: #f29e20;
  cursor: pointer;
  padding: 1rem;
  z-index: 10001;
}

.gallery-nav.prev { left: 2%; }
.gallery-nav.next { right: 2%; }

/* === GUMB ZA NAZAJ NA VRH === */
#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #F97316;
  color: #F9FAFB;
  border: 1px solid #111827;
  border-radius: 50%;
  width: 55px;
  height: 55px;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 0;
}

#scrollTopBtn svg {
  width: 24px;
  height: 24px;
  color: currentColor;
  transition: transform 0.3s ease;
}

#scrollTopBtn:hover svg {
  transform: translateY(-2px);
}

#scrollTopBtn.show {
  display: flex;
  opacity: 1;
}

/* === MOBILNA PRILAGODITEV === */
@media (max-width: 768px) {
  body {
    font-size: 1rem;
    padding: 0;
  }

  .portfolio-content {
    padding: 1rem;
  }

  .portfolio-section h2 {
    font-size: 1.5rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
  }

  .horizontal-description {
    padding: 1rem;
    font-size: 1rem;
    color: #F9FAFB;
  }

  .horizontal-description h3 {
    font-size: 1.2rem;
    color: #F97316;
  }

  .image-strip {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .image-strip img {
    width: 100% !important;
    aspect-ratio: 16 / 9;
  }

  .video-container {
    width: 100%;
    padding: 0 1rem;
  }

  .lightbox img,
  #galleryModal img {
    max-width: 95%;
    max-height: 70vh;
  }

  .gallery-nav {
    font-size: 2rem;
    padding: 0.5rem;
  }
}
