* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #000;
  color: #fff;
  font-family: 'Helvetica Neue', sans-serif;
  display: flex;
  min-height: 100vh;
}

/* ===== HAMBURGER ===== */
.hamburger {
  position: fixed;
  top: 20px;
  left: 20px;
  font-size: 1.8em;
  cursor: pointer;
  z-index: 1001;
  display: none;
  color: white;
}

/* ===== SIDEBAR ===== */
nav {
  width: 240px;
  background: url("replace_nav_background.jpg") center center / cover no-repeat, #0a0a0a;
  background-blend-mode: multiply;
  padding: 80px 20px 20px;
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  transition: transform 0.3s ease;
  z-index: 1000;
  color: #fff;
}

nav::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: -1;
}

nav h1 {
  font-size: 1.2em;
  margin-bottom: 10px;
}

.subtitle {
  font-size: 0.8em;
  color: #ccc;
  margin-bottom: 30px;
}

nav ul {
  list-style: none;
}

nav ul li {
  margin: 10px 0;
}

nav ul li a {
  text-decoration: none;
  color: #ccc;
  transition: color 0.2s ease;
}

nav ul li a:hover,
nav ul li a.active {
  color: #fff;
}

.social {
  position: absolute;
  bottom: 40px;
  font-size: 0.8em;
  color: #ccc;
}

/* ===== GALLERY ===== */
main {
  margin-left: 240px;
  padding-top: 40px;
  flex: 1;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
  padding: 20px;
}

.gallery img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 4px;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  cursor: pointer;
}

.gallery img.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.gallery img:hover {
  transform: scale(1.03);
  opacity: 0.9;
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 2000;
}

.lightbox.active {
  visibility: visible;
  opacity: 1;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 6px;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
  cursor: pointer;
}

/* ===== POPUPS ===== */
.popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 3000;
}

.popup.active {
  visibility: visible;
  opacity: 1;
}

.popup-content {
  background-color: #111;
  padding: 30px;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  color: #fff;
  position: relative;
}

.popup-photo {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 15px;
}

.popup .close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5em;
  cursor: pointer;
  color: #fff;
}

/* ===== CONTACT FORM ===== */
form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

input, textarea {
  padding: 10px;
  border-radius: 4px;
  border: none;
  background-color: #222;
  color: #fff;
}

button {
  background-color: #e74c3c;
  border: none;
  padding: 10px;
  border-radius: 4px;
  color: white;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background-color: #c0392b;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hamburger {
    display: block;
  }

  nav {
    transform: translateX(-100%);
  }

  nav.open {
    transform: translateX(0);
  }

  main {
    margin-left: 0;
    padding-top: 80px;
  }

  .gallery {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}
