/* ====== Base Styling ====== */
body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #fff;
  color: #222;
  scroll-behavior: smooth;
}

/* ====== Scroll Progress Bar ====== */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 5px;
  background: #f0aa00;
  width: 0%;
  z-index: 999;
  transition: width 0.2s ease;
}

/* ====== Header ====== */
.header-section {
  background-color: #fff3cc;
  color: #f0aa00;
    padding: 1rem 0.7rem;

  text-align: center;
  border-bottom: 2px solid #fbbd08;
}
.header-container h1 {
  font-size: 2.5rem;
  font-weight: bold;
  text-transform: uppercase;
  animation: fadeInDown 1s ease-in-out;
}

/* ====== Gallery Section ====== */
.gallery-section {
  background: linear-gradient(135deg, #fff8e1, #fff);
  padding: 60px 20px;
}

.project-block {
  margin-bottom: 50px;
}

.project-block h3 {
  font-size: 28px;
  font-weight: bold;
  margin: 30px 0 20px;
  text-align: center;
  color: #333;
}

/* ====== Image Grid ====== */
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
  justify-items: center;
}

.image-grid figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  animation: fadeInUp 0.7s ease both;
}

.image-grid img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 14px;
  transition: transform 0.5s ease, box-shadow 0.4s ease;
  cursor: pointer;
}

.image-grid img:hover {
  transform: scale(1.08);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2);
}

/* ====== Lightbox Modal ====== */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background-color: rgba(0, 0, 0, 0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
}
.lightbox.show {
  display: flex;
  animation: fadeIn 0.4s ease;
}

/* ====== Animations ====== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ====== Back Button ====== */
.back-button-below {
  text-align: center;
  padding: 40px 0;
}
.back-button-below a {
  display: inline-block;
  padding: 12px 28px;
  background-color: #f0aa00;
  color: white;
  text-decoration: none;
  font-size: 1rem;
  border-radius: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: background 0.3s ease, transform 0.3s ease;
}
.back-button-below a:hover {
  background-color: #d89100;
  transform: translateY(-2px);
}

/* ====== Responsive ====== */
@media (max-width: 768px) {
  .header-container h1 {
    font-size: 1.8rem;
  }

  .project-block h3 {
    font-size: 22px;
  }

  .image-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
  }

  .image-grid img {
    height: 200px;
  }
}