@media (max-width: 600px) {
  .project-gallery figure {
    padding: 0.7rem 0.5rem 1.2rem 0.5rem;
  }
  .project-gallery img,
  .project-gallery img.expanded {
    max-width: 98vw;
    height: auto;
    min-height: 160px;
    border-radius: 12px;
  }
  .project-gallery figcaption {
    font-size: 0.98rem;
    padding: 0.7em 0.5em 1em 0.5em;
  }
}
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-image:
    linear-gradient(120deg, rgba(34,193,195,0.32) 0%, rgba(253,187,45,0.18) 100%),
    url('../images/background2.png'),
    url('../images/background3.jpeg');
  background-color: #101010;
  background-size: cover, cover, cover;
  background-blend-mode: lighten, overlay, normal;
  background-attachment: fixed;
  color: #fff;
  min-height: 100vh;
}

header, footer {
  background-color: #1a1a1a;
  padding: 20px;
  text-align: center;
  color: white;
  background-image:
    linear-gradient(120deg, rgba(34,193,195,0.32) 0%, rgba(253,187,45,0.18) 100%),
    url('../images/background2.png'),
    url('../images/background3.jpeg');
}

a {
  color: #90cdf4;
  text-decoration: none;
  font-weight: 500;
}

.project {
  background-color: rgba(27, 26, 26, 0.4);
  padding: 40px;
  border-radius: 12px;
  color: #ffffff;
  text-shadow: 1px 1px 4px rgba(19, 17, 17, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  margin: 40px auto;
  max-width: 1200px;
}

.project h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.project-summary {
  text-align: center;
  font-size: 1rem;
  margin-bottom: 2rem;
}
.project-gallery img {
  width: 100%;
  max-width: 600px;
  height: 340px;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 6px 32px 0 rgba(31, 38, 135, 0.18), 0 2px 12px rgba(0,0,0,0.13);
  transition: filter 0.3s, transform 0.3s, max-width 0.5s cubic-bezier(.4,2,.6,1), height 0.5s cubic-bezier(.4,2,.6,1);
  filter: brightness(1.08) contrast(1.08) drop-shadow(0 2px 8px #00c6ff33);
  display: block;
  cursor: zoom-in;
}

.project-gallery img.expanded {
  max-width: 98vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  z-index: 10;
  position: relative;
  box-shadow: 0 12px 48px 0 rgba(31, 38, 135, 0.28), 0 6px 32px rgba(0,0,0,0.18);
  cursor: zoom-out;
  border-radius: 18px;
}

.project-gallery figure {
  background: rgba(20, 24, 34, 0.82);
  padding: 2rem 2rem 2.5rem 2rem;
  border-radius: 18px;
  border: 1.5px solid rgba(255,255,255,0.18);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.18), 0 1.5px 8px rgba(0,0,0,0.10);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  transition: box-shadow 0.3s, transform 0.3s, background 0.7s;
  position: relative;
  overflow: hidden;
}

.project-gallery figure:hover, .project-gallery figure:focus-within {
  box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.28), 0 3px 16px rgba(0,198,255,0.13);
  background: linear-gradient(120deg, rgba(34,193,195,0.18) 0%, rgba(253,187,45,0.10) 100%);
  transform: translateY(-6px) scale(1.03);
}

.project-gallery img {
  width: 100%;
  max-width: 600px;
  height: 340px;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 6px 32px 0 rgba(31, 38, 135, 0.18), 0 2px 12px rgba(0,0,0,0.13);
  transition: filter 0.3s, transform 0.3s, max-width 0.5s cubic-bezier(.4,2,.6,1), height 0.5s cubic-bezier(.4,2,.6,1);
  filter: brightness(1.08) contrast(1.08) drop-shadow(0 2px 8px #00c6ff33);
  display: block;
  cursor: zoom-in;
}

.project-gallery figure:hover img, .project-gallery figure:focus-within img {
  filter: brightness(1.18) contrast(1.18) drop-shadow(0 6px 24px #00c6ff99);
  transform: scale(1.04) rotate(-2deg);
}

/* Description pops up with effect and arrow pointer */
.project-gallery figcaption {
  position: static;
  left: auto;
  bottom: auto;
  transform: none;
  width: 100%;
  background: rgba(20, 24, 34, 0.96);
  color: #fff;
  border-radius: 0 0 12px 12px;
  padding: 1em 1em 1.2em 1em;
  font-size: 1.08rem;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
  text-shadow: 0 2px 12px rgba(0,0,0,0.38), 0 1.5px 8px rgba(0,198,255,0.10);
  opacity: 1;
  pointer-events: auto;
  transition: none;
  z-index: 2;
}





footer p {
  margin: 0;
  font-size: 0.9rem;
}
 