/* ==========================================================
   Astroprintz — styles.css
   Dark immersive gallery. Cyber neon on black. Stars in space.
   ========================================================== */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --black:        #000000;
  --black-soft:   #060610;
  --cyan:         #00e5ff;
  --magenta:      #ff00aa;
  --purple:       #b44dff;
  --purple-deep:  #1a0033;
  --white:        #f0f0f5;
  --gray:         #888;
  --pink:         #ff2d9b;
  --transition:   .35s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--black-soft);
  color: var(--white);
  overflow-x: hidden;
}

/* ---- STARS ---- */
.stars, .stars2, .stars3 {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.stars {
  background:
    radial-gradient(1px 1px at 20px 30px, rgba(255,255,255,.6), transparent),
    radial-gradient(1px 1px at 40px 70px, rgba(255,255,255,.4), transparent),
    radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,.3), transparent),
    radial-gradient(1px 1px at 160px 120px, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 200px 20px, rgba(255,255,255,.4), transparent),
    radial-gradient(1.5px 1.5px at 250px 150px, rgba(0,229,255,.3), transparent),
    radial-gradient(1px 1px at 300px 60px, rgba(255,255,255,.3), transparent),
    radial-gradient(1px 1px at 350px 180px, rgba(255,255,255,.5), transparent),
    radial-gradient(1.5px 1.5px at 400px 90px, rgba(180,77,255,.25), transparent);
  background-size: 420px 200px;
  animation: starDrift 80s linear infinite;
}

.stars2 {
  background:
    radial-gradient(1px 1px at 50px 100px, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 120px 50px, rgba(255,255,255,.3), transparent),
    radial-gradient(1px 1px at 180px 160px, rgba(255,255,255,.35), transparent),
    radial-gradient(1.5px 1.5px at 240px 30px, rgba(255,0,170,.2), transparent),
    radial-gradient(1px 1px at 320px 140px, rgba(255,255,255,.3), transparent),
    radial-gradient(1px 1px at 380px 80px, rgba(255,255,255,.25), transparent),
    radial-gradient(1px 1px at 100px 190px, rgba(255,255,255,.4), transparent);
  background-size: 400px 210px;
  animation: starDrift 120s linear infinite reverse;
}

.stars3 {
  background:
    radial-gradient(1.5px 1.5px at 70px 60px, rgba(0,229,255,.15), transparent),
    radial-gradient(1px 1px at 150px 130px, rgba(255,255,255,.18), transparent),
    radial-gradient(1px 1px at 220px 90px, rgba(255,255,255,.25), transparent),
    radial-gradient(1.5px 1.5px at 310px 40px, rgba(255,0,170,.12), transparent),
    radial-gradient(1px 1px at 360px 170px, rgba(255,255,255,.2), transparent);
  background-size: 380px 190px;
  animation: starDrift 160s linear infinite;
}

@keyframes starDrift {
  from { transform: translateY(0); }
  to { transform: translateY(-200px); }
}

/* ---- SCANLINES OVERLAY ---- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom, transparent 0px, transparent 2px,
    rgba(0,0,0,.04) 2px, rgba(0,0,0,.04) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

/* ---- NAV ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  background: rgba(6,6,16,.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0,229,255,.06);
}

.nav-logo {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cyan);
  text-decoration: none;
  text-shadow: 0 0 10px rgba(0,229,255,.4);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: var(--gray);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: color .3s, text-shadow .3s;
}

.nav-links a:hover {
  color: var(--cyan);
  text-shadow: 0 0 8px rgba(0,229,255,.3);
}

.nav-ig {
  color: var(--magenta);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 1px;
  text-shadow: 0 0 6px rgba(255,0,170,.3);
  transition: text-shadow .3s;
}

.nav-ig:hover {
  text-shadow: 0 0 20px rgba(255,0,170,.5);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
}

/* ---- HERO ---- */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 20%, var(--black-soft) 75%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-logo {
  font-size: clamp(50px, 10vw, 130px);
  font-weight: 700;
  letter-spacing: 10px;
  text-transform: uppercase;
  color: var(--cyan);
  animation: neonFlicker 3s ease-in-out forwards;
  text-shadow:
    0 0 10px rgba(0,229,255,.8),
    0 0 40px rgba(0,229,255,.4),
    0 0 80px rgba(0,229,255,.15),
    3px 3px 0 var(--magenta);
}

@keyframes neonFlicker {
  0% { opacity: 0; }
  8% { opacity: 1; }
  10% { opacity: .2; }
  12% { opacity: 1; }
  14% { opacity: .5; }
  16% { opacity: 1; }
  28% { opacity: 1; }
  30% { opacity: .6; }
  32% { opacity: 1; }
  100% { opacity: 1; }
}

.hero-sub {
  font-size: 12px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gray);
  margin-top: 18px;
  opacity: 0;
  animation: fadeUp .8s ease 1s forwards;
}

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

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
  z-index: 2;
}

@keyframes scrollPulse {
  0%, 100% { opacity: .2; }
  50% { opacity: .8; }
}

/* ---- COLLECTION SECTION ---- */
.collection {
  position: relative;
  z-index: 1;
  padding: 100px 40px 60px;
}

.collection-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 50px;
}

.collection-line {
  flex: 1;
  height: 1px;
}

.collection[data-color="cyan"] .collection-line {
  background: linear-gradient(90deg, var(--cyan), transparent);
  box-shadow: 0 0 8px rgba(0,229,255,.2);
}

.collection[data-color="pink"] .collection-line {
  background: linear-gradient(90deg, var(--pink), transparent);
  box-shadow: 0 0 8px rgba(255,45,155,.2);
}

.collection-title {
  font-size: 13px;
  letter-spacing: 5px;
  text-transform: uppercase;
  white-space: nowrap;
}

.collection[data-color="cyan"] .collection-title {
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(0,229,255,.3);
}

.collection[data-color="pink"] .collection-title {
  color: var(--pink);
  text-shadow: 0 0 10px rgba(255,45,155,.3);
}

/* ---- MASONRY GALLERY ---- */
.gallery-masonry {
  columns: 3;
  column-gap: 8px;
}

.gallery-piece {
  break-inside: avoid;
  margin-bottom: 8px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  opacity: 0;
  transform: translateY(30px);
}

.gallery-piece[data-animate].in-view {
  animation: pieceReveal .6s ease forwards;
}

@keyframes pieceReveal {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.gallery-piece img {
  width: 100%;
  display: block;
  filter: brightness(.6) saturate(.85);
  transition: filter .5s ease, transform .5s ease;
}

.gallery-piece:hover img {
  filter: brightness(.95) saturate(1.2);
  transform: scale(1.03);
}

.gallery-piece::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  z-index: 2;
  transition: border-color .4s, box-shadow .4s;
  pointer-events: none;
}

.collection[data-color="cyan"] .gallery-piece:hover::before {
  border-color: var(--cyan);
  box-shadow: inset 0 0 30px rgba(0,229,255,.1), 0 0 20px rgba(0,229,255,.08);
}

.collection[data-color="pink"] .gallery-piece:hover::before {
  border-color: var(--pink);
  box-shadow: inset 0 0 30px rgba(255,45,155,.1), 0 0 20px rgba(255,45,155,.08);
}

.piece-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 30px 14px 12px;
  background: linear-gradient(to top, rgba(0,0,0,.7), transparent);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s, transform .3s;
  z-index: 3;
}

.gallery-piece:hover .piece-label {
  opacity: 1;
  transform: translateY(0);
}

/* ---- FEATURED PIECE ---- */
.featured {
  position: relative;
  z-index: 1;
  padding: 60px 40px 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
}

.featured-wrap {
  position: relative;
  max-width: 450px;
  width: 80%;
}

.featured-wrap img {
  width: 100%;
  display: block;
  filter: drop-shadow(0 0 50px rgba(0,229,255,.2));
  animation: floatY 7s ease-in-out infinite;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}

.featured-scan {
  position: absolute;
  left: -15%;
  right: -15%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--magenta), var(--cyan), transparent);
  box-shadow: 0 0 15px var(--magenta);
  animation: scanDrift 5s linear infinite;
  pointer-events: none;
}

@keyframes scanDrift {
  0% { top: -5%; }
  100% { top: 105%; }
}

/* ---- ABOUT ---- */
.about {
  position: relative;
  z-index: 1;
  padding: 80px 40px;
  max-width: 550px;
  margin: 0 auto;
  text-align: center;
  border-top: 1px solid rgba(0,229,255,.06);
}

.about-name {
  font-size: 13px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 18px;
  text-shadow: 0 0 8px rgba(0,229,255,.3);
}

.about-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--gray);
}

.about-ig {
  display: inline-block;
  margin-top: 24px;
  color: var(--magenta);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 2px;
  text-shadow: 0 0 8px rgba(255,0,170,.3);
  transition: text-shadow .3s;
}

.about-ig:hover {
  text-shadow: 0 0 20px rgba(255,0,170,.5);
}

/* ---- CONTACT ---- */
.contact {
  position: relative;
  z-index: 1;
  padding: 60px 40px 100px;
  max-width: 460px;
  margin: 0 auto;
  text-align: center;
}

.contact-label {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 30px;
}

.contact form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact input,
.contact textarea {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(0,229,255,.1);
  color: var(--white);
  padding: 14px 16px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color .3s, box-shadow .3s;
}

.contact input:focus,
.contact textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 12px rgba(0,229,255,.08);
}

.contact textarea { height: 110px; resize: none; }

.contact button {
  background: transparent;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  padding: 14px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .3s;
}

.contact button:hover {
  background: var(--cyan);
  color: var(--black);
  box-shadow: 0 0 25px rgba(0,229,255,.25);
}

.form-success {
  display: none;
  color: var(--cyan);
  font-size: 14px;
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(0,229,255,.3);
  padding: 20px;
}

/* ---- FOOTER ---- */
.footer {
  position: relative;
  z-index: 1;
  padding: 30px 40px;
  text-align: center;
  font-size: 10px;
  letter-spacing: 2px;
  color: rgba(255,255,255,.1);
  border-top: 1px solid rgba(255,255,255,.03);
}

/* ---- PURCHASE PAGE ---- */
.purchase-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 40px 80px;
}

.purchase-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 1100px;
  width: 100%;
  align-items: center;
}

.purchase-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}

.purchase-visual img {
  max-height: 70vh;
  max-width: 100%;
  object-fit: contain;
  animation: floatY 7s ease-in-out infinite;
  filter: drop-shadow(0 0 60px rgba(0,229,255,.15));
}

.purchase-visual model-viewer {
  width: 100%;
  height: 70vh;
  --poster-color: transparent;
}

.purchase-glow {
  position: absolute;
  inset: -60px;
  background: radial-gradient(ellipse at center, rgba(0,229,255,.06), transparent 70%);
  pointer-events: none;
  animation: glowPulse 5s ease-in-out infinite;
}

.purchase-glow.pink-glow {
  background: radial-gradient(ellipse at center, rgba(255,45,155,.06), transparent 70%);
}

@keyframes glowPulse {
  0%, 100% { opacity: .5; }
  50% { opacity: 1; }
}

.purchase-info {
  max-width: 400px;
}

.purchase-title {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  line-height: 1.1;
}

.purchase-title .main {
  color: var(--cyan);
  text-shadow: 0 0 20px rgba(0,229,255,.3);
}

.purchase-title.pink .main {
  color: var(--pink);
  text-shadow: 0 0 20px rgba(255,45,155,.3);
}

.purchase-title .sub {
  display: block;
  font-size: .35em;
  letter-spacing: 6px;
  color: var(--gray);
  margin-top: 8px;
  font-weight: 400;
}

.purchase-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--gray);
  margin-top: 24px;
}

.purchase-price {
  font-size: 36px;
  font-weight: 700;
  color: var(--white);
  margin-top: 30px;
  letter-spacing: 2px;
}

.purchase-price-note {
  font-size: 11px;
  color: var(--gray);
  letter-spacing: 1px;
  margin-top: 6px;
}

.purchase-cta {
  display: inline-block;
  margin-top: 30px;
  padding: 16px 40px;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  transition: all .3s;
}

.purchase-cta:hover {
  background: var(--cyan);
  color: var(--black);
  box-shadow: 0 0 30px rgba(0,229,255,.25);
}

.purchase-cta.pink-cta {
  border-color: var(--pink);
  color: var(--pink);
}

.purchase-cta.pink-cta:hover {
  background: var(--pink);
  color: var(--black);
  box-shadow: 0 0 30px rgba(255,45,155,.25);
}

.purchase-back {
  display: inline-block;
  margin-top: 20px;
  color: var(--gray);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: color .3s;
}

.purchase-back:hover {
  color: var(--white);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .purchase-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .purchase-visual { min-height: 350px; }
  .purchase-info { margin: 0 auto; }
}

@media (max-width: 768px) {
  .nav { padding: 16px 20px; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .gallery-masonry { columns: 2; }
  .collection { padding: 80px 16px 40px; }
  .hero-logo { letter-spacing: 5px; }
  .purchase-page { padding: 100px 20px 60px; }
}

@media (max-width: 480px) {
  .gallery-masonry { columns: 1; max-width: 400px; margin: 0 auto; }
}
