/*Project:    Impact Gallery - Responsive Image Showcase
  Developer:  Mirza Hadi
  Role:        Full Stack Developer & Technical Problem Solver
  Email:       mirzahadi@hotmail.com 
  Website:     hadi-mirza.com
  LinkedIn:    linkedin.com/in/hadibaig
  GitHub:      github.com/Hadibaig
  Newsletter:  DCXherald — 4,000+ subscribers*/

/* =========================================================
   Impact Gallery - Stylesheet
   Modern Responsive UI (Glass + Grid + Carousel)
========================================================= */

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: system-ui, Arial, sans-serif;
}

body {
  background: #f8fafc;
  color: #1e293b;
  line-height: 1.6;
}

/* ================= HEADER ================= */
.header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  border-bottom: 1px solid #e2e8f0;
  z-index: 1000;
}

.logo {
  font-weight: bold;
  font-size: 20px;
  color: #2563eb;
}

.nav {
  display: flex;
  gap: 20px;
}

.nav a {
  text-decoration: none;
  color: #1e293b;
  font-weight: 500;
  transition: 0.3s;
}

.nav a:hover {
  color: #2563eb;
}

.hamburger {
  display: none;
  font-size: 26px;
  cursor: pointer;
}

/* ================= HERO ================= */
.hero {
  height: 60vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  color: white;
  padding: 20px;
}

.hero h1 {
  font-size: 42px;
  margin-bottom: 10px;
}

/* ================= GRID ================= */
.grid-section {
  padding: 60px 50px;
  text-align: center;
}

.image-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.image-grid img {
  width: 100%;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* ================= LIGHTBOX ================= */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 2000;
}

.lightbox img {
  max-width: 80%;
  max-height: 80%;
  border-radius: 10px;
}

.lightbox .close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 35px;
  color: white;
  cursor: pointer;
}

/* ================= CAROUSEL ================= */
.carousel-section {
  padding: 60px 20px;
  text-align: center;
}

.main-image img {
  width: 80%;
  max-width: 800px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.thumbnail-row {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.thumbnail-row img {
  width: 100px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.6;
  transition: 0.3s;
  border: 2px solid transparent;
}

.thumbnail-row img:hover {
  opacity: 1;
}

.thumbnail-row img.active {
  opacity: 1;
  border-color: #2563eb;
}

/* ================= FOOTER ================= */
.footer {
  background: #0f172a;
  color: white;
  text-align: center;
  padding: 40px 20px;
  margin-top: 50px;
}

.footer a {
  color: #0ea5e9;
  text-decoration: none;
  margin: 0 10px;
}

.footer a:hover {
  text-decoration: underline;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  .image-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav {
    display: none;
  }

  .hamburger {
    display: block;
  }
}

@media (max-width: 480px) {
  .image-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 28px;
  }
}
/* Lightbox navigation buttons */
.lightbox .nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  font-size: 40px;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 8px;
  transition: 0.3s;
}

.lightbox .nav:hover {
  background: rgba(255,255,255,0.3);
}

.lightbox .prev {
  left: 20px;
}

.lightbox .next {
  right: 20px;
}