/* Shore Thing Tattoo — style.css */
:root {
  --bg: #0b0d10;
  --bg-2: #101317;
  --panel: #14181d;
  --line: #1e242b;
  --ink: #e8ebee;
  --ink-dim: #a3adb8;
  --muted: #6b7681;
  --accent: #4fb3b8;      /* muted teal */
  --accent-2: #2a6f8a;    /* ocean blue */
  --accent-glow: rgba(79,179,184,.35);
  --radius: 6px;
  --maxw: 1200px;
  --shadow: 0 10px 40px rgba(0,0,0,.35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: 'Bebas Neue', 'Oswald', Impact, sans-serif;
  font-weight: 400;
  letter-spacing: .04em;
  line-height: 1.05;
  margin: 0 0 .5em;
}
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: 1.35rem; letter-spacing: .06em; }
h4 { font-size: 1rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-dim); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(60px, 9vw, 120px) 0; position: relative; }
.eyebrow {
  display: inline-block;
  font-size: .75rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.lead { color: var(--ink-dim); font-size: 1.05rem; max-width: 60ch; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.link { color: var(--accent); border-bottom: 1px solid transparent; transition: border-color .2s; }
.link:hover { border-color: var(--accent); }

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(11,13,16,.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s;
}
.nav.scrolled { background: rgba(11,13,16,.9); border-bottom-color: var(--line); }
.nav-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0b0d10; font-family: 'Bebas Neue', sans-serif; font-size: 1.05rem; letter-spacing: 1px;
}
.brand-text { font-family: 'Bebas Neue', sans-serif; font-size: 1.2rem; letter-spacing: .12em; }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-size: .9rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-dim);
  position: relative; padding: 6px 0; transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content:""; position:absolute; left:0; right:0; bottom:-2px; height:2px;
  background: var(--accent); border-radius: 2px;
}
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
  flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); transition: transform .3s, opacity .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid; place-items: center;
  overflow: hidden;
  text-align: center;
  padding: 120px 24px 80px;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(79,179,184,.15), transparent 60%),
    radial-gradient(ellipse at 80% 70%, rgba(42,111,138,.18), transparent 60%),
    linear-gradient(180deg, #0b0d10 0%, #101317 60%, #0b0d10 100%);
  z-index: 0;
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("../images/hero.jpg");
  background-size: cover; background-position: center;
  opacity: .18; mix-blend-mode: luminosity;
}
.grain {
  position: absolute; inset: -50%; z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.35 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: .35; pointer-events: none;
  animation: grain 8s steps(6) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); }
  10% { transform: translate(-5%,-5%); }
  20% { transform: translate(-10%,5%); }
  30% { transform: translate(5%,-10%); }
  40% { transform: translate(-5%,15%); }
  50% { transform: translate(-10%,5%); }
  60% { transform: translate(15%,0); }
  70% { transform: translate(0,10%); }
  80% { transform: translate(-15%,0); }
  90% { transform: translate(10%,5%); }
}
.hero-inner { position: relative; z-index: 2; max-width: 900px; }
.hero-logo { color: var(--accent); margin-bottom: 24px; display: flex; justify-content: center; }
.hero-title {
  font-size: clamp(3rem, 10vw, 7rem);
  margin: 0 0 .1em;
  letter-spacing: .04em;
  background: linear-gradient(180deg, #fff 0%, #a3adb8 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin: 0 0 40px;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 2;
}
.hero-scroll span {
  display: block; width: 1px; height: 40px;
  background: linear-gradient(180deg, transparent, var(--accent));
  animation: scrollHint 2s ease-in-out infinite;
}
@keyframes scrollHint {
  0%,100% { opacity: .3; transform: scaleY(.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: .2em;
  font-size: .95rem;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s, box-shadow .3s, background .3s, color .3s, border-color .3s;
}
.btn-primary {
  background: var(--accent);
  color: #0b0d10;
}
.btn-primary:hover { box-shadow: 0 0 32px var(--accent-glow); transform: translateY(-2px); }
.btn-ghost {
  background: transparent; color: var(--ink); border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ABOUT */
.section-head { max-width: 720px; margin-bottom: 60px; }
.feature-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.feature-grid li { background: var(--panel); padding: 32px; }
.feature-grid h3 { color: var(--accent); font-size: 1.1rem; margin-bottom: 8px; }
.feature-grid p { margin: 0; color: var(--ink-dim); font-size: .95rem; }

/* INFO */
.info { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.info-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
}
.info-block h3 { font-size: 1.75rem; margin-bottom: 6px; }
.info-block h3 a:hover { color: var(--accent); }

/* ARTISTS */
.artist-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.artist-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s, border-color .3s;
  display: flex; flex-direction: column;
}
.artist-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.artist-photo {
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, #14181d, #1e242b);
  position: relative; overflow: hidden;
}
.artist-photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.artist-card:hover .artist-photo img { transform: scale(1.05); }
.artist-photo-fallback {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: 'Bebas Neue', sans-serif; font-size: 3rem;
  color: var(--muted); letter-spacing: .1em;
}
.artist-body { padding: 20px 22px 24px; }
.artist-name { font-size: 1.35rem; margin-bottom: 4px; }
.artist-specialty { color: var(--ink-dim); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.artist-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.artist-ig { color: var(--accent); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; }
.artist-ig:hover { text-decoration: underline; }
.artist-view {
  margin-left: auto; font-family: 'Bebas Neue', sans-serif; letter-spacing: .18em;
  font-size: .85rem; padding: 8px 14px; border: 1px solid var(--line);
  border-radius: var(--radius); background: transparent; color: var(--ink);
  cursor: pointer; transition: border-color .2s, color .2s;
}
.artist-view:hover { border-color: var(--accent); color: var(--accent); }

/* GALLERY */
.filters {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 32px; padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.filter {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-dim);
  padding: 10px 18px;
  border-radius: 999px;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: .16em;
  font-size: .85rem;
  cursor: pointer;
  transition: all .25s ease;
}
.filter:hover { color: var(--ink); border-color: var(--ink-dim); }
.filter.active { background: var(--accent); color: #0b0d10; border-color: var(--accent); }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 1200px; /* optional: limit max width for large screens */
  margin: 0 auto; /* center the gallery */
}

@media (max-width: 1024px) {
  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

@media (max-width: 768px) {
  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
}

@media (max-width: 480px) {
  .gallery {
    grid-template-columns: 1fr; /* single column on small screens */
  }
  .gallery-item {
    aspect-ratio: auto; /* optionally remove aspect ratio constraint for mobile */
  }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--panel);
  aspect-ratio: 1;
  cursor: zoom-in;
  opacity: 0;
  transform: scale(.96);
  animation: fadeIn .5s ease forwards;
  transition: transform .35s ease, opacity .35s ease;
}
.gallery-item.hide {
  opacity: 0; transform: scale(.9); pointer-events: none;
  animation: none;
  transition: transform .3s ease, opacity .3s ease;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease, filter .3s;
}
.gallery-item:hover img { transform: scale(1.06); filter: brightness(1.1); }
.gallery-item::after {
  content: attr(data-artist);
  position: absolute; left: 12px; bottom: 10px;
  font-family: 'Bebas Neue', sans-serif; font-size: .75rem;
  letter-spacing: .2em; color: #fff;
  background: rgba(0,0,0,.55); padding: 4px 10px; border-radius: 3px;
  opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s;
}
.gallery-item:hover::after { opacity: 1; transform: translateY(0); }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

@keyframes fadeIn {
  to { opacity: 1; transform: scale(1); }
}

/* CTA */
.cta { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.cta-inner { text-align: center; }
.cta h2 { font-size: clamp(2.5rem, 6vw, 4.5rem); margin-bottom: 8px; }
.cta p { color: var(--ink-dim); margin-bottom: 32px; }

/* FOOTER */
.footer { background: #08090b; border-top: 1px solid var(--line); padding: 60px 0 24px; }
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px; margin-bottom: 40px;
}
.footer h4 { color: var(--ink); margin-bottom: 12px; }
.footer p { color: var(--ink-dim); font-size: .9rem; margin: 4px 0; }
.footer a:hover { color: var(--accent); }
.copyright { text-align: center; color: var(--muted); font-size: .8rem; padding-top: 24px; border-top: 1px solid var(--line); }

/* CALL FAB (mobile) */
.call-fab {
  display: none;
  position: fixed; right: 16px; bottom: 16px; z-index: 40;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent); color: #0b0d10;
  align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.4), 0 0 0 0 var(--accent-glow);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 8px 24px rgba(0,0,0,.4), 0 0 0 0 var(--accent-glow); }
  70% { box-shadow: 0 8px 24px rgba(0,0,0,.4), 0 0 0 18px rgba(79,179,184,0); }
  100% { box-shadow: 0 8px 24px rgba(0,0,0,.4), 0 0 0 0 rgba(79,179,184,0); }
}

/* LIGHTBOX */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(5,7,9,.96);
  display: flex; align-items: center; justify-content: center;
  padding: 40px 60px;
  opacity: 0; transition: opacity .3s ease;
}
.lightbox.open { opacity: 1; }
.lightbox[hidden] { display: none !important; }
.lb-figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lb-figure img {
  max-width: 100%;
  max-height: calc(100vh - 140px);
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 20px 80px rgba(0,0,0,.6);
}
.lb-caption {
  display: flex; align-items: center; gap: 20px;
  color: var(--ink-dim); font-size: .9rem; letter-spacing: .15em; text-transform: uppercase;
}
.lb-counter { color: var(--accent); font-family: 'Bebas Neue', sans-serif; font-size: 1rem; }
.lb-close, .lb-nav {
  position: absolute;
  background: rgba(20,24,29,.7);
  color: #fff;
  border: 1px solid var(--line);
  width: 46px; height: 46px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: grid; place-items: center;
  transition: background .2s, border-color .2s, transform .2s;
  z-index: 2;
}
.lb-close:hover, .lb-nav:hover { background: var(--accent); color: #0b0d10; border-color: var(--accent); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lb-prev:hover { transform: translateY(-50%) translateX(-2px); }
.lb-next:hover { transform: translateY(-50%) translateX(2px); }

/* MOBILE */
@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: 68px; left: 0; right: 0;
    background: rgba(11,13,16,.98);
    backdrop-filter: blur(20px);
    flex-direction: column; align-items: stretch;
    gap: 0; padding: 12px 0;
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%); transition: transform .3s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a {
    padding: 16px 24px; border-bottom: 1px solid var(--line);
  }
  .nav-links a.active::after { display: none; }
  .call-fab { display: flex; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .lightbox { padding: 20px 8px; }
  .lb-close { top: 12px; right: 12px; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
}
@media (max-width: 440px) {
  .gallery { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Focus */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Make sure to target the correct elements */
#gallery {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: var(--maxw) !important;
  margin: 0 auto !important;
}

/* Target figure elements inside #gallery */
#gallery figure {
  display: block;
  width: 100%;
  aspect-ratio: 1; /* Keep square shape */
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--panel);
  cursor: zoom-in;
  transition: transform .35s ease, opacity .35s ease;
  margin: 0; /* Remove default figure margin */
}

/* Style for images inside figures */
#gallery figure img {
  width: 100%;
  height: auto; /* scale down images */
  object-fit: cover;
  display: block;
}


