/* Global Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  font-family: "Inter", sans-serif;
  background: #0b0b10;
  color: #d8d8e3;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  background: rgba(26, 28, 50, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}
header h1 {
  font-size: 1.3rem;
  color: #ffd84d;
}
nav a {
  color: #d8d8e3;
  margin: 0 0.8rem;
  text-decoration: none;
  transition: 0.3s;
}
nav a:hover,
nav a.active {
  color: #ffd84d;
}

/* Spacer so header doesn’t overlap */
.page-top-spacer {
  height: 6rem;
}

/* Section Titles */
.gallery-section {
  padding: 2rem 5%;
}
.gallery-section h2 {
  color: #ffd84d;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid #444477;
  width: fit-content;
  padding-bottom: 0.3rem;
}

/* Gallery Grid */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}
.gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  background: #23233b;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}
.gallery img:hover {
  transform: scale(1.03);
  box-shadow: 0 0 12px #7d7dfb;
}

/* === Lightbox Overlay === */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 11, 16, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 100;
  animation: fadeIn 0.3s ease;
}
.hidden {
  display: none;
}

.lightbox-img {
  max-width: 85%;
  max-height: 80%;
  border-radius: 10px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.6);
  border: 3px solid #444477;
}

/* Close button */
.close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2.5rem;
  color: #ffd84d;
  cursor: pointer;
  user-select: none;
  transition: color 0.2s ease;
}
.close:hover {
  color: #fff;
}

/* Navigation Arrows */
.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(35, 35, 59, 0.6);
  border: none;
  font-size: 3rem;
  color: #d8d8e3;
  cursor: pointer;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}
.nav:hover {
  background: rgba(68, 68, 119, 0.9);
  color: #ffd84d;
  box-shadow: 0 0 10px #7d7dfb;
}
.prev {
  left: 40px;
}
.next {
  right: 40px;
}

/* Footer */
footer {
  background: #262840;
  color: #a8a8c4;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 4rem;
  flex-shrink: 0;
  margin-top: 2rem;
}

/* Created by AI/chatGPT */
/* === Animation === */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Created by AI/chatGPT */
/* === Responsive Tweaks === */
@media (max-width: 800px) {
  .gallery img {
    height: 180px;
  }
  .nav {
    width: 50px;
    height: 50px;
    font-size: 2rem;
  }
}
