* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.site-header {
  position: relative;
  text-align: center;
  padding: 40px 20px;
}

.logo-box {
  position: absolute;
  top: 20px;
  left: 20px;
}

.site-logo {
  width: clamp(70px, 12vw, 160px);
  height: auto;
  display: block;
}


body {
  font-family: Arial, Helvetica, sans-serif;
  background: #f4f4f4;
  color: #222;
  line-height: 1.6;
}

.site-header {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #111, #333);
  color: #fff;
}

.site-header h1 {
  font-size: 3rem;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.site-header p {
  font-size: 1.2rem;
  color: #ddd;
}

.portfolio-wrapper {
  width: 90%;
  max-width: 1300px;
  margin: 50px auto;
}

.gallery-section {
  margin-bottom: 70px;
}

.section-title {
  text-align: center;
  margin-bottom: 30px;
}

.section-title h2 {
  font-size: 2.2rem;
  margin-bottom: 8px;
  color: #111;
}

.section-title p {
  color: #666;
  font-size: 1rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 25px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
  animation: imageShake 0.35s ease-in-out;
  filter: brightness(1.08);
}

.gallery-item::after {
  content: "View Image";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 1.1rem;
  font-weight: bold;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
  opacity: 1;
}

@keyframes imageShake {
  0% {
    transform: scale(1.08) translateX(0);
  }
  25% {
    transform: scale(1.08) translateX(-3px);
  }
  50% {
    transform: scale(1.08) translateX(3px);
  }
  75% {
    transform: scale(1.08) translateX(-2px);
  }
  100% {
    transform: scale(1.08) translateX(0);
  }
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 30px;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

.close-lightbox {
  position: absolute;
  top: 25px;
  right: 35px;
  color: #fff;
  font-size: 45px;
  cursor: pointer;
  font-weight: bold;
}

.close-lightbox:hover {
  color: #ccc;
}

.site-footer {
  text-align: center;
  padding: 25px;
  background: #111;
  color: #ccc;
  font-size: 0.9rem;
}

@media (max-width: 600px) {
  .site-header h1 {
    font-size: 2.2rem;
  }

  .gallery-item img {
    height: 220px;
  }
}