/* ============================================================
   Black Hollow Tattoo — Level 3 SHOWSTOPPER Styles
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --void: #0A0A0F;
  --purple: #8B5CF6;
  --magenta: #EC4899;
  --ink: #111111;
  --silver: #C0C0C0;
  --card-bg: #1A1A2E;
  --purple-10: rgba(139, 92, 246, 0.1);
  --purple-20: rgba(139, 92, 246, 0.2);
  --purple-40: rgba(139, 92, 246, 0.4);
  --purple-60: rgba(139, 92, 246, 0.6);
}

html {
  scroll-behavior: smooth;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--purple-10);
}

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-brand {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  color: var(--purple);
  text-decoration: none;
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--silver);
  text-decoration: none;
  font-size: 13px;
  font-family: 'Space Mono', monospace;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--purple);
}

.nav-back {
  color: var(--magenta) !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--silver);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 16px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--purple-10);
  }

  .nav-links.active {
    display: flex;
  }

  .gallery-container {
    height: 350px;
  }

  .gallery-card {
    width: 120px !important;
    height: 160px !important;
  }

  section {
    padding: 60px 16px;
  }
}

body {
  font-family: 'Space Mono', monospace;
  background: var(--void);
  color: var(--silver);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--purple);
  text-decoration: none;
}

a:hover {
  color: var(--magenta);
}

/* ---------- Section Titles ---------- */
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  color: #fff;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

section {
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 500px;
  max-width: none;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--void);
}

#particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  text-align: center;
  pointer-events: none;
}

.hero-overlay h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 10vw, 8rem);
  letter-spacing: 0.08em;
  color: transparent;
  /* Desktop: hidden because WebGL renders the text as particles */
}

.hero-subtitle {
  font-family: 'Space Mono', monospace;
  font-size: clamp(0.9rem, 2vw, 1.25rem);
  color: var(--silver);
  margin-top: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.8;
}

/* --- Mobile title: shown <768px --- */
.mobile-title {
  display: none;
}

@media (max-width: 767px) {
  #particle-canvas {
    display: none;
  }

  .mobile-title {
    display: block;
    background: linear-gradient(135deg, #8B5CF6, #EC4899, #8B5CF6);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientText 4s ease infinite;
  }
}

@keyframes gradientText {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ============================================================
   ARTIST PORTFOLIO — 3D Card Tilt
   ============================================================ */
.artist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.artist-card {
  background: var(--card-bg);
  border: 1px solid var(--purple-20);
  border-radius: 16px;
  padding: 40px 24px;
  text-align: center;
  will-change: transform;
  transform-style: preserve-3d;
  transform: perspective(800px) rotateX(0) rotateY(0);
}

.artist-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 20px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 2px solid var(--purple-20);
}

.avatar-shade {
  /* Tattoo artist working on client — Pexels (Antoni Shkraba) */
  background-image: url('https://images.pexels.com/photos/7005669/pexels-photo-7005669.jpeg?auto=compress&cs=tinysrgb&w=400&h=400&fit=crop');
  background-color: #1A1A2E;
}

.avatar-vex {
  /* Tattooed woman in black dress — Pexels (Antonio Friedemann) */
  background-image: url('https://images.pexels.com/photos/8206675/pexels-photo-8206675.jpeg?auto=compress&cs=tinysrgb&w=400&h=400&fit=crop');
  background-color: #1A1A2E;
}

.avatar-marrow {
  /* B&W portrait of tattooed man — Pexels */
  background-image: url('https://images.pexels.com/photos/10978092/pexels-photo-10978092.jpeg?auto=compress&cs=tinysrgb&w=400&h=400&fit=crop');
  background-color: #1A1A2E;
}

.artist-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
  color: #fff;
  letter-spacing: 0.04em;
}

.artist-specialty {
  color: var(--purple);
  font-size: 0.9rem;
  margin-top: 6px;
}

.artist-years {
  color: var(--silver);
  font-size: 0.8rem;
  margin-top: 4px;
  opacity: 0.7;
}

/* ============================================================
   STYLE GALLERY — Physics Draggable Cards
   ============================================================ */
#gallery {
  max-width: 1200px;
}

.gallery-container {
  position: relative;
  height: 500px;
  overflow: hidden;
  border: 1px solid var(--purple-20);
  border-radius: 16px;
  background: rgba(10, 10, 15, 0.6);
  margin-top: 40px;
}

@media (min-width: 768px) {
  .gallery-container {
    height: 600px;
  }
}

.gallery-card {
  position: absolute;
  width: 160px;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  border: 1px solid var(--purple-20);
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: box-shadow 0.2s;
}

.gallery-card.dragging {
  cursor: grabbing;
  box-shadow: 0 8px 40px rgba(139, 92, 246, 0.3);
  z-index: 100;
}

.gallery-swatch {
  flex: 1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.swatch-traditional {
  /* Colorful traditional arm tattoo — Pexels (Kevin Bidwell) */
  background-image: url('https://images.pexels.com/photos/2183131/pexels-photo-2183131.jpeg?auto=compress&cs=tinysrgb&w=400&h=500&fit=crop');
  background-color: #111111;
}

.swatch-neo {
  /* Man showing arm tattoos, dragon & koi — Pexels (Brett Sayles) */
  background-image: url('https://images.pexels.com/photos/2186981/pexels-photo-2186981.jpeg?auto=compress&cs=tinysrgb&w=400&h=500&fit=crop');
  background-color: #1A1A2E;
}

.swatch-blackwork {
  /* Person with black tattoo on hand — Pexels (cottonbro) */
  background-image: url('https://images.pexels.com/photos/4662162/pexels-photo-4662162.jpeg?auto=compress&cs=tinysrgb&w=400&h=500&fit=crop');
  background-color: #000000;
}

.swatch-japanese {
  /* Koi full-sleeve Japanese tattoo — Pexels (Brett Sayles) */
  background-image: url('https://images.pexels.com/photos/2134085/pexels-photo-2134085.jpeg?auto=compress&cs=tinysrgb&w=400&h=500&fit=crop');
  background-color: #111111;
}

.swatch-realism {
  /* Grayscale realistic back tattoo — Pexels */
  background-image: url('https://images.pexels.com/photos/6487420/pexels-photo-6487420.jpeg?auto=compress&cs=tinysrgb&w=400&h=500&fit=crop');
  background-color: #444444;
}

.swatch-geometric {
  /* Tattoo on arm, line/geometric style — Pexels (cottonbro) */
  background-image: url('https://images.pexels.com/photos/4125610/pexels-photo-4125610.jpeg?auto=compress&cs=tinysrgb&w=400&h=500&fit=crop');
  background-color: #0A0A0F;
}

.gallery-label {
  display: block;
  padding: 8px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background: var(--card-bg);
  text-align: center;
  letter-spacing: 0.05em;
}

/* ============================================================
   BOOKING CTA
   ============================================================ */
#booking {
  text-align: center;
}

.booking-text {
  max-width: 600px;
  margin: 16px auto 40px;
  font-size: 1rem;
  opacity: 0.8;
}

.neon-btn {
  font-family: 'Space Mono', monospace;
  background: var(--purple);
  color: #fff;
  border: none;
  padding: 18px 40px;
  font-size: 18px;
  border-radius: 12px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 20px var(--purple-40), 0 0 60px rgba(139, 92, 246, 0.1);
  animation: neonPulse 3s ease-in-out infinite;
  transition: transform 0.15s;
}

.neon-btn:hover {
  transform: scale(1.04);
}

.neon-btn:active {
  transform: scale(0.98);
}

@keyframes neonPulse {
  0%, 100% { box-shadow: 0 0 20px var(--purple-40), 0 0 60px rgba(139, 92, 246, 0.1); }
  50% { box-shadow: 0 0 30px var(--purple-60), 0 0 80px rgba(139, 92, 246, 0.2); }
}

/* Ripple */
.ripple-span {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: scale(0);
  animation: ripple 0.6s ease-out forwards;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ============================================================
   STUDIO INFO — Ink Drip Reveal
   ============================================================ */
#studio-info {
  text-align: center;
}

.ink-reveal {
  clip-path: inset(100% 0 0 0);
  animation: drip linear both;
  animation-timeline: view();
  animation-range: entry 0% entry 80%;
}

@keyframes drip {
  to {
    clip-path: inset(0 0 0 0);
  }
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.info-block {
  background: var(--card-bg);
  border: 1px solid var(--purple-20);
  border-radius: 12px;
  padding: 24px;
}

.info-block h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  color: var(--purple);
  margin-bottom: 8px;
}

.info-block p {
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ============================================================
   FEATURE BADGES
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--purple-10);
  border: 1px solid var(--purple-20);
  color: var(--purple);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  margin: 0 auto 24px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.badge.visible {
  opacity: 1;
  transform: translateY(0);
}

.badge.hidden {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}

.badge-icon {
  display: flex;
  align-items: center;
}

.badge-dismiss {
  background: none;
  border: none;
  color: var(--purple);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
  opacity: 0.6;
}

.badge-dismiss:hover {
  opacity: 1;
}

/* Center badges in sections */
#artists,
#gallery,
#booking {
  text-align: center;
}

.artist-grid,
.gallery-container {
  text-align: left;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  text-align: center;
  padding: 40px 24px;
  border-top: 1px solid var(--purple-20);
  font-size: 0.8rem;
  opacity: 0.6;
}

.footer-note {
  margin-top: 8px;
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .mobile-title {
    animation: none;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
    color: #fff;
    text-shadow: 0 0 40px rgba(139, 92, 246, 0.5);
  }

  /* Static hero text on desktop too */
  .hero-overlay h1 {
    color: #fff;
    text-shadow: 0 0 40px rgba(139, 92, 246, 0.5);
  }

  #particle-canvas {
    display: none;
  }

  .artist-card {
    transform: none !important;
    transition: none !important;
  }

  .gallery-card {
    cursor: default;
    position: relative !important;
    display: inline-block;
    margin: 8px;
    transform: none !important;
  }

  .gallery-container {
    height: auto !important;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .neon-btn {
    animation: none;
  }

  .ink-reveal {
    animation: none;
    clip-path: none;
  }
}
