* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: #050505;
  color: white;
  overflow-x: hidden;
}

/* ANIMATIONS */
body.fade-in {
  animation: pageFadeIn 0.8s ease;
}

body.fade-out {
  animation: pageFadeOut 0.5s ease forwards;
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pageFadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(15px);
  }
}
nav a.active {
  opacity: 0.4;
}

/* HERO */
.hero-page {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 150px 40px 60px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url("dji.jpg") center/cover no-repeat;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1;
}

.hero-text {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.section-label {
  display: inline-block;
  margin-bottom: 67px;
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-text h1 {
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1;
  margin-bottom: 20px;
}

.hero-text p {
  max-width: 650px;
  color: rgba(255,255,255,0.78);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 45px;
}

/* SECTION PORTFOLIO */
.portfolio-section {
  padding: 80px 40px 100px;
  background: #050505;
}

.portfolio-intro {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 50px;
}

.portfolio-intro h2 {
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.portfolio-intro p {
  color: #bdbdbd;
  line-height: 1.8;
}

/* ADMIN BAR */
.admin-bar {
  margin: 120px auto 40px;
  max-width: 900px;
  text-align: center;
}

.admin-bar form {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.admin-bar input {
  padding: 10px;
  border-radius: 10px;
  border: none;
}

.admin-bar button {
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  background: white;
  color: black;
  cursor: pointer;
}

/* GALLERY */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  padding: 40px;
}

.image-card {
  position: relative;
}

.image-card img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 20px;
  cursor: pointer;
  transition: 0.4s;
  filter: brightness(0.95);
}

.image-card img:hover {
  transform: translateY(-6px);
  filter: brightness(1.05);
}

.delete-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: white;
  color: black;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  text-decoration: none;
}

/* LIGHTBOX */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
  z-index: 3000;
}

#lightbox.show {
  opacity: 1;
  pointer-events: auto;
}

#lightbox-img {
  max-width: 90%;
  max-height: 85%;
  border-radius: 16px;
  transform: scale(0.9);
  transition: 0.3s;
}

#lightbox.show #lightbox-img {
  transform: scale(1);
}

#close-lightbox {
  position: absolute;
  top: 25px;
  right: 30px;
  font-size: 30px;
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 20px;
  background: black;
  color: #aaa;
}

/* RESPONSIVE */
@media (max-width: 1000px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 800px) {
  .hero-page,
  .portfolio-section {
    padding-left: 24px;
    padding-right: 24px;
  }

  .hero-page {
    padding-top: 170px;
  }
}

@media (max-width: 700px) {
  .gallery {
    grid-template-columns: 1fr;
    padding: 20px 0;
  }

  .image-card img {
    height: 360px;
  }
}