:root{
  --bg-900: #071226;
  --bg-800: #0f1724;
  --panel: rgba(255,255,255,0.04);
  --glass: rgba(255,255,255,0.06);
  --muted: #9aa6b2;
  --text: #e8f3fb;
  --accent-a: #06b6d4;
  --accent-b: #7c3aed;
  --accent-gradient: linear-gradient(135deg,var(--accent-a),var(--accent-b));
  --gap: 18px;
  --radius: 14px;
  --max-width: 1200px;
  --shadow-1: 0 6px 18px rgba(2,6,23,0.5);
  --shadow-2: 0 18px 48px rgba(2,6,23,0.65);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* page base */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  min-height:100vh;
  background:
    radial-gradient(800px 400px at 10% 10%, rgba(124,58,237,0.08), transparent 10%),
    radial-gradient(600px 300px at 95% 90%, rgba(6,182,212,0.06), transparent 10%),
    linear-gradient(180deg,var(--bg-900),var(--bg-800));
  color:var(--text);
  display:flex;
  flex-direction:column;
  align-items:center;
  padding:36px 20px;
  gap:18px;
  position:relative;
  overflow-x:hidden;
}

/* subtle decorative grain + soft vignette */
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background-image: radial-gradient(circle at 10% 10%, rgba(255,255,255,0.02), transparent 15%);
  mix-blend-mode:overlay;
  opacity:0.7;
  z-index:0;
}

/* Animated background blobs - soft, blurred, slow motion */
.blobs {
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:0;
  overflow:visible;
}
.blob{
  position:absolute;
  width:380px;
  height:380px;
  border-radius:50%;
  filter: blur(60px) saturate(120%);
  opacity:0.7;
  transform-origin:center;
  mix-blend-mode:screen;
  will-change: transform, opacity;
}

/* individual blob colors and positions */
.blob-1{
  left:-8%;
  top:6%;
  background: radial-gradient(circle at 30% 30%, rgba(124,58,237,0.95), rgba(124,58,237,0.45) 40%, transparent 70%);
  animation: float1 16s ease-in-out infinite;
}
.blob-2{
  right:-6%;
  bottom:2%;
  width:460px; height:460px;
  background: radial-gradient(circle at 40% 40%, rgba(6,182,212,0.95), rgba(6,182,212,0.35) 35%, transparent 70%);
  animation: float2 20s ease-in-out infinite;
}
.blob-3{
  left:40%;
  top:60%;
  width:340px; height:340px;
  background: radial-gradient(circle at 50% 50%, rgba(255,140,184,0.85), rgba(124,58,237,0.18) 40%, transparent 70%);
  animation: float3 18s ease-in-out infinite;
  opacity:0.55;
}
.blob-4{
  right:28%;
  top:-6%;
  width:260px; height:260px;
  background: radial-gradient(circle at 40% 40%, rgba(255,210,90,0.85), rgba(255,210,90,0.28) 40%, transparent 70%);
  animation: float4 22s ease-in-out infinite;
  opacity:0.45;
}

/* blob animations (slow drifting, scale/rotate to look organic) */
@keyframes float1{
  0%{ transform: translateY(0) translateX(0) scale(1) rotate(0deg); opacity:0.85 }
  50%{ transform: translateY(-24px) translateX(18px) scale(1.06) rotate(8deg); opacity:0.95 }
  100%{ transform: translateY(0) translateX(0) scale(1) rotate(0deg); opacity:0.85 }
}
@keyframes float2{
  0%{ transform: translateY(0) translateX(0) scale(1) rotate(0deg) }
  50%{ transform: translateY(28px) translateX(-30px) scale(1.08) rotate(-6deg); opacity:0.9 }
  100%{ transform: translateY(0) translateX(0) scale(1) rotate(0deg) }
}
@keyframes float3{
  0%{ transform: translateY(0) translateX(0) scale(1) rotate(0deg) }
  50%{ transform: translateY(-18px) translateX(14px) scale(1.04) rotate(6deg) }
  100%{ transform: translateY(0) translateX(0) scale(1) rotate(0deg) }
}
@keyframes float4{
  0%{ transform: translateY(0) translateX(0) scale(1) rotate(0deg) }
  50%{ transform: translateY(24px) translateX(-6px) scale(1.05) rotate(-4deg); opacity:0.7 }
  100%{ transform: translateY(0) translateX(0) scale(1) rotate(0deg) }
}

/* container */
.site-header, .site-footer, .gallery{
  width:100%;
  max-width:var(--max-width);
  z-index:1;
}

/* header */
.site-header{
  text-align:center;
  margin-bottom:6px;
  padding:14px 8px;
  border-radius:12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
  box-shadow: var(--shadow-1);
  border: 1px solid rgba(255,255,255,0.03);
}
.site-header h1{
  margin:0;
  font-size:clamp(1.5rem,2.6vw,2.4rem);
  letter-spacing:-0.5px;
}
.subtitle{
  margin-top:8px;
  color:var(--muted);
  font-size:0.95rem;
}

/* gallery layout */
.gallery{
  display:grid;
  gap:var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items:start;
  margin:6px 0 18px;
}

/* photo card: glassmorphism with animated accent border */
.photo{
  position:relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-radius:calc(var(--radius) - 2px);
  padding:12px;
  overflow:visible;
  cursor:pointer;
  transition:transform .35s cubic-bezier(.2,.9,.2,1), box-shadow .35s, filter .25s;
  border: 1px solid rgba(255,255,255,0.035);
  backdrop-filter: blur(6px) saturate(120%);
  outline: none;
  display:flex;
  flex-direction:column;
}

/* animated accent outline via pseudo-element */
.photo::after{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding:2px;
  background: conic-gradient(from 120deg, rgba(255,255,255,0.02), transparent 20%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events:none;
  transition: opacity .3s;
}

/* hover / focus effects */
.photo:focus, .photo:hover{
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--shadow-2);
  filter: saturate(1.06);
}
.photo:focus::after, .photo:hover::after{
  background: linear-gradient(90deg, rgba(6,182,212,0.12), rgba(124,58,237,0.12));
  opacity:1;
}

/* tilt microinteraction */
.photo img{
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:4/3;
  object-fit:cover;
  border-radius:10px;
  transition: transform .6s cubic-bezier(.2,.9,.2,1);
  will-change: transform;
  box-shadow: 0 8px 30px rgba(2,6,23,0.45);
}

/* subtle parallax on hover */
.photo:hover img, .photo:focus img{
  transform: perspective(800px) rotateX(1.2deg) scale(1.02);
}

/* caption overlay with gradient and blurred background */
.photo figcaption{
  margin:10px 0 0 0;
  color:var(--text);
  font-weight:600;
  font-size:0.95rem;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}

/* small muted subtitle under caption */
.photo figcaption .subtitle{
  color:var(--muted);
  font-weight:400;
  font-size:0.9rem;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* lightbox: cleaner, centered, with smooth scale and backdrop blur */
.lightbox{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  padding:28px;
  z-index:1000;
  background: linear-gradient(180deg, rgba(2,6,23,0.6), rgba(2,6,23,0.75));
  backdrop-filter: blur(6px) saturate(120%);
}
.lightbox[aria-hidden="false"]{display:flex}

.lightbox-content{
  max-width:1100px;
  width:100%;
  max-height:90vh;
  display:flex;
  gap:18px;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  padding:18px;
  border-radius:12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border:1px solid rgba(255,255,255,0.04);
  box-shadow: var(--shadow-2);
  transform-origin:center;
  animation: pop .18s ease-out;
}

/* pop animation */
@keyframes pop{
  from{ transform: translateY(8px) scale(.985); opacity:0 }
  to{ transform: translateY(0) scale(1); opacity:1 }
}

.lightbox img{
  max-width:100%;
  max-height:70vh;
  border-radius:10px;
  box-shadow: 0 22px 60px rgba(2,6,23,0.7);
}

/* lightbox metadata area */
.lightbox-meta{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
  margin-top:6px;
  width:100%;
}
.meta-title{
  margin:0;
  font-size:1.05rem;
  font-weight:700;
  letter-spacing:-0.2px;
  text-align:center;
}
.meta-details{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  justify-content:center;
  color:var(--muted);
  font-size:0.95rem;
}

/* controls: minimal, high-contrast, circular */
.lightbox-close, .lightbox-nav{
  position:absolute;
  background:linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border:1px solid rgba(255,255,255,0.06);
  color:var(--text);
  padding:8px;
  border-radius:50%;
  cursor:pointer;
  backdrop-filter: blur(4px);
  transition: transform .15s, background .15s, box-shadow .15s;
  box-shadow: 0 6px 18px rgba(2,6,23,0.5);
}
.lightbox-close:hover, .lightbox-nav:hover{ transform: scale(1.06) }
.lightbox-close{ top:18px; right:18px; width:44px; height:44px; display:grid; place-items:center; }
.lightbox-nav{ top:50%; transform:translateY(-50%); width:48px; height:48px; font-size:1.1rem; }
#prevBtn{ left:16px }
#nextBtn{ right:16px }

/* download CTA refined */
.download-btn{
  display:inline-flex;
  gap:8px;
  align-items:center;
  padding:10px 14px;
  background:var(--accent-gradient);
  color: #021022;
  font-weight:700;
  border-radius:12px;
  text-decoration:none;
  box-shadow: 0 10px 30px rgba(7,26,36,0.3);
  transition: transform .12s, box-shadow .12s;
}
.download-btn:hover{ transform: translateY(-3px); box-shadow: 0 18px 46px rgba(7,26,36,0.35) }

/* footer */
.site-footer{
  text-align:center;
  color:var(--muted);
  font-size:0.9rem;
  padding:8px 0 28px;
  opacity:0.95;
}

/* responsive tweaks */
@media (max-width:720px){
  .gallery{ gap:12px; grid-template-columns: repeat(auto-fit,minmax(160px,1fr)); }
  .photo{ padding:10px; border-radius:10px; }
  .lightbox-nav{ display:none } /* rely on swipe / touch or small controls on mobile */
  .lightbox-content{ padding:12px; border-radius:10px }
  .blob{ display:none } /* disable heavy visuals on small screens */
}

/* accessibility: visible focus */
.photo:focus, .lightbox-close:focus, .lightbox-nav:focus, .download-btn:focus{
  box-shadow: 0 0 0 3px rgba(6,182,212,0.14), var(--shadow-1);
  outline:none;
}