/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body */
body {
  font-family: 'Poppins', sans-serif;
  background: #0c0c0c;
  color: #fff;
  overflow-x: hidden;
}

/* Hero sekcija */
.hero {
  height: 100vh;
  background: url("https://picsum.photos/id/1003/1600/900") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
}

.hero-text {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
}

.hero h1 {
  font-size: 3rem;
  letter-spacing: 2px;
}

.hero span {
  color: #e63946;
}

.hero p {
  margin-top: 10px;
  font-size: 1.2rem;
  color: #ddd;
}

/* Galerija */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  padding: 60px 40px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,0.7);
  transform: translateY(40px);
  opacity: 0;
  animation: fadeInUp 1s forwards;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.15);
}

/* Overlay */
.overlay {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  background: rgba(0,0,0,0.6);
  color: #fff;
  text-align: center;
  padding: 15px;
  font-size: 1.2rem;
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.4s ease;
}

.gallery-item:hover .overlay {
  opacity: 1;
  transform: translateY(0);
}

/* Animacija za fade-in */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Lightbox */
.lightbox {
  position: fixed;
  display: none;
  justify-content: center;
  align-items: center;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.9);
  z-index: 1000;
}

.lightbox img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
}

.lightbox .close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 3rem;
  color: white;
  cursor: pointer;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  background: #0f0f0f;
  margin-top: 60px;
  font-size: 0.9rem;
  color: #aaa;
}

footer a {
  color: #e63946;
  text-decoration: none;
  margin: 0 5px;
}

footer a:hover {
  text-decoration: underline;
}
