:root {
  --bg: #0b0e14;
  --panel: #121927;
  --panel-soft: #1a2233;
  --text: #e9efff;
  --muted: #9eadc9;
  --accent: #f65a83;
  --accent-2: #5fd3bc;
  --radius: 18px;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Outfit", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 10%, #1f2b49 0%, transparent 45%),
    radial-gradient(circle at 85% 0%, #413152 0%, transparent 35%),
    linear-gradient(160deg, #06090f 0%, #0b0e14 60%, #141a2a 100%);
  overflow-x: hidden;
}

.grain {
  position: fixed;
  inset: 0;
  opacity: 0.08;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(transparent 96%, rgba(255, 255, 255, 0.2) 100%),
    linear-gradient(90deg, transparent 96%, rgba(255, 255, 255, 0.2) 100%);
  background-size: 3px 3px;
}

.hero {
  width: min(1120px, calc(100% - 2.2rem));
  margin: 1.4rem auto 1.6rem;
  padding: 2.1rem 2rem;
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(125deg, rgba(246, 90, 131, 0.22), rgba(95, 211, 188, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow);
  animation: lift-in 760ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.eyebrow {
  margin: 0;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-size: 0.72rem;
}

h1 {
  margin: 0.28rem 0 0.3rem;
  font-family: "Sora", sans-serif;
  font-size: clamp(2rem, 6.3vw, 4.6rem);
  letter-spacing: -0.03em;
}

.subtitle {
  margin: 0;
  max-width: 60ch;
  line-height: 1.5;
  color: #d6e1fc;
}

.stats {
  display: flex;
  gap: 1.1rem;
  margin-top: 1.1rem;
  color: var(--muted);
}

.stats strong {
  color: #ffffff;
  font-weight: 700;
}

main {
  width: min(1160px, calc(100% - 2.2rem));
  margin: 0 auto 3rem;
}

.site-footer {
  width: min(1160px, calc(100% - 2.2rem));
  margin: 0 auto 2rem;
  color: var(--muted);
  font-size: 0.86rem;
  text-align: center;
  letter-spacing: 0.04em;
}

.gallery-section {
  background: linear-gradient(170deg, rgba(16, 23, 37, 0.86), rgba(13, 17, 28, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.2rem;
}

.toolbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.65rem;
  align-items: center;
  margin-bottom: 1.1rem;
}

.toolbar label {
  color: var(--muted);
  font-size: 0.9rem;
}

.toolbar input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 0.72rem 1rem;
  background: rgba(14, 21, 33, 0.9);
  color: var(--text);
  font: inherit;
}

.toolbar input:focus {
  outline: 2px solid rgba(95, 211, 188, 0.65);
  outline-offset: 1px;
}

.toolbar button,
.lightbox-controls button,
.close-btn {
  border: 0;
  border-radius: 999px;
  padding: 0.68rem 1rem;
  font: inherit;
  font-weight: 600;
  color: #081116;
  background: linear-gradient(145deg, #5fd3bc, #4ce0c6);
  cursor: pointer;
  transition:
    transform 180ms ease,
    filter 180ms ease;
}

.toolbar button:hover,
.lightbox-controls button:hover,
.close-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.gallery {
  column-count: 3;
  column-gap: 0.8rem;
}

.card {
  break-inside: avoid;
  margin-bottom: 0.8rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: var(--panel-soft);
  animation: reveal 540ms ease both;
  transform-origin: center bottom;
}

.card button {
  border: 0;
  padding: 0;
  margin: 0;
  width: 100%;
  background: transparent;
  display: block;
  cursor: pointer;
}

.card img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.card figcaption {
  padding: 0.62rem 0.72rem 0.76rem;
  color: #c5d4f8;
  font-size: 0.8rem;
}

.lightbox {
  width: min(96vw, 1200px);
  border: 0;
  border-radius: 16px;
  padding: 0;
  background: #06090f;
  color: var(--text);
  overflow: hidden;
}

.lightbox::backdrop {
  background: rgba(2, 5, 9, 0.82);
  backdrop-filter: blur(8px);
}

.lightbox figure {
  margin: 0;
}

.lightbox img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  background: #05070b;
  cursor: zoom-in;
}

.lightbox figcaption {
  padding: 0.8rem 1rem;
  color: var(--muted);
}

.close-btn {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  z-index: 1;
}

.lightbox-controls {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  padding: 0 1rem 1rem;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 30vh;
  color: var(--muted);
}

@keyframes lift-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 1000px) {
  .gallery {
    column-count: 2;
  }
}

@media (max-width: 700px) {
  .hero {
    padding: 1.45rem 1.2rem;
  }

  .toolbar {
    grid-template-columns: 1fr;
  }

  .gallery {
    column-count: 1;
  }

  .stats {
    flex-direction: column;
    gap: 0.3rem;
  }
}
