/* ─────────────────────────────────────────
   TOKENS
───────────────────────────────────────── */
:root {
  --bg:           #07070f;
  --surface:      #0d0d1a;
  --surface2:     #12121f;
  --mint:         #c7ffe8;
  --mint-glow:    rgba(199, 255, 232, 0.35);
  --mint-dim:     rgba(199, 255, 232, 0.12);
  --purple:       #7c3aed;
  --purple-dim:   rgba(124, 58, 237, 0.12);
  --cyan:         #22d3ee;
  --text:         #e2e8f0;
  --text-muted:   #64748b;
  --border:       rgba(255, 255, 255, 0.06);
  --border-hover: rgba(199, 255, 232, 0.25);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ─────────────────────────────────────────
   ATMOSPHERIC LAYERS
   (fixed, pointer-events:none — zero cost)
───────────────────────────────────────── */

/* Colour nebula */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 55% at 50% -5%,  rgba(124, 58, 237, 0.13) 0%, transparent 65%),
    radial-gradient(ellipse 60% 45% at 85% 85%,  rgba(199, 255, 232, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse 50% 35% at 10% 70%,  rgba(34, 211, 238, 0.05) 0%, transparent 55%);
  pointer-events: none;
  z-index: 2;
}

/* Scanlines */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 0, 0, 0.04) 3px,
    rgba(0, 0, 0, 0.04) 4px
  );
  pointer-events: none;
  z-index: 3;
}

/* ─────────────────────────────────────────
   RAIN CANVAS
───────────────────────────────────────── */
#rain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* ─────────────────────────────────────────
   LINKS
───────────────────────────────────────── */
a {
  color: var(--mint);
  text-decoration: none;
  transition: color 0.2s, text-shadow 0.2s;
}

a:hover {
  color: #fff;
  text-shadow: 0 0 8px var(--mint-glow), 0 0 20px var(--mint-glow);
}

/* ─────────────────────────────────────────
   HEADER
───────────────────────────────────────── */
header {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 3.5rem 2rem 2rem;
}

.logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.site-logo {
  height: 80px;
  width: auto;
  margin-bottom: 0.5rem;
  filter:
    drop-shadow(0 0 6px var(--mint))
    drop-shadow(0 0 18px var(--mint-glow))
    drop-shadow(0 0 40px rgba(199, 255, 232, 0.35))
    drop-shadow(0 0 70px rgba(199, 255, 232, 0.15));
}

.site-title {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 700;
  font-size: clamp(3rem, 9vw, 6.5rem);
  letter-spacing: 0.05em;
  line-height: 0.95;
  color: var(--text);
  margin-bottom: 0.25rem;
}


.site-title .accent {
  color: var(--mint);
  text-shadow:
    0 0 12px var(--mint-glow),
    0 0 40px rgba(199, 255, 232, 0.2);
}

.site-tagline {
  font-size: 0.7rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.jp-accent {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: rgba(199, 255, 232, 0.35);
}

.site-bio {
  max-width: 580px;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--text-muted);
  text-align: center;
}

/* ─────────────────────────────────────────
   NAV
───────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem 0;
  background: transparent;
}

nav::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(199, 255, 232, 0.2);
  box-shadow: 0 0 10px rgba(199, 255, 232, 0.4), 0 0 25px rgba(199, 255, 232, 0.15);
}

nav button {
  background: rgba(7, 7, 15, 0.6);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid rgba(199, 255, 232, 0.18);
  border-left: 1px solid rgba(199, 255, 232, 0.18);
  border-right: 1px solid rgba(199, 255, 232, 0.18);
  border-bottom: 2px solid transparent;
  border-radius: 4px 4px 0 0;
  color: var(--text-muted);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding: 0.9rem 2.5rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  margin-bottom: -1px;
}

nav button:hover {
  color: var(--text);
  background: rgba(7, 7, 15, 0.75);
}

nav button.active {
  color: var(--mint);
  border-bottom-color: var(--mint);
  background: rgba(7, 7, 15, 0.75);
  text-shadow: 0 0 8px var(--mint-glow);
}

/* ─────────────────────────────────────────
   MAIN / TAB SYSTEM
───────────────────────────────────────── */
main {
  position: relative;
  z-index: 4;
  max-width: 1440px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.25s ease;
}

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

/* ─────────────────────────────────────────
   PORTFOLIO
───────────────────────────────────────── */
.portfolio-grid {
  columns: 3;
  column-gap: 0.6rem;
}

.portfolio-item {
  break-inside: avoid;
  margin-bottom: 0.6rem;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.portfolio-item:hover {
  border-color: var(--border-hover);
  box-shadow:
    0 0 0 1px rgba(199, 255, 232, 0.08),
    0 4px 24px rgba(0, 0, 0, 0.4);
}

/* Mint sheen on hover */
.portfolio-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, transparent 60%, rgba(199, 255, 232, 0.07) 100%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.portfolio-item:hover::after {
  opacity: 1;
}

.portfolio-item img {
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(0.88) contrast(1.06) saturate(0.95);
  transition: transform 0.45s ease, filter 0.3s ease;
}

.portfolio-item:hover img {
  transform: scale(1.025);
  filter: brightness(0.95) contrast(1.06) saturate(1.05);
}

/* ─────────────────────────────────────────
   SECTION HEADINGS (shared)
───────────────────────────────────────── */
.section-head {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: 0.1em;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.section-sub {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ─────────────────────────────────────────
   PRICING
───────────────────────────────────────── */
.pricing-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  max-width: 1100px;
  margin: 0 auto;
  background: var(--border); /* gap becomes 1px divider lines */
}

.pricing-grid .pricing-card {
  flex: 1 1 220px;
}

.pricing-grid--single {
  grid-template-columns: 1fr;
  max-width: 350px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-extras-head {
  max-width: 1100px;
  margin: 3rem auto 1.25rem;
  text-align: center;
}

.pricing-extras-head .section-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.pricing-card {
  background: var(--surface);
  padding: 2rem 1.75rem;
  position: relative;
  transition: background 0.2s;
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  background: var(--surface2);
}

/* Top accent line */
.pricing-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--mint);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.pricing-card:hover::before,
.pricing-card.featured::before {
  transform: scaleX(1);
}

.pkg-label {
  display: inline-block;
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid rgba(34, 211, 238, 0.3);
  padding: 0.2rem 0.6rem;
  margin-bottom: 0.9rem;
}

.pkg-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.pkg-tagline {
  font-size: 0.78rem;
  color: var(--mint);
  font-style: italic;
  letter-spacing: 0.04em;
  margin-bottom: 0.85rem;
}

.pkg-desc {
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.pkg-price {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.75rem;
  letter-spacing: 0.04em;
  color: var(--mint);
  text-shadow: 0 0 16px var(--mint-glow);
  margin-top: auto;
}

.pkg-price.poa {
  font-size: 1.3rem;
  color: var(--text-muted);
  text-shadow: none;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding-bottom: 0.85rem;
}

/* ─────────────────────────────────────────
   CONTACT
───────────────────────────────────────── */
.contact-wrap {
  max-width: 680px;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-group label {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.875rem;
  padding: 0.875rem 1rem;
  width: 100%;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(100, 116, 139, 0.6);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(199, 255, 232, 0.45);
  box-shadow: 0 0 0 3px rgba(199, 255, 232, 0.06);
}

.form-group select.unselected {
  color: rgba(100, 116, 139, 0.6);
}

.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%2364748b'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-group select option {
  background: #0d0d1a;
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.submit-btn {
  align-self: flex-start;
  background: transparent;
  border: 1px solid var(--mint);
  color: var(--mint);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 0.25s, box-shadow 0.25s;
}

.submit-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--mint);
  transform: translateX(-101%);
  transition: transform 0.25s ease;
  z-index: 0;
}

.submit-btn span {
  position: relative;
  z-index: 1;
}

.submit-btn:hover {
  color: var(--bg);
  box-shadow: 0 0 20px var(--mint-glow);
}

.submit-btn:hover::before {
  transform: translateX(0);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2.5rem 2rem;
  border-top: none;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(199, 255, 232, 0.2);
  box-shadow: 0 0 10px rgba(199, 255, 232, 0.4), 0 0 25px rgba(199, 255, 232, 0.15);
}

.footer-icons {
  display: flex;
  justify-content: center;
  gap: 1.75rem;
  list-style: none;
  margin-bottom: 1.25rem;
}

.footer-icons a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1.25rem;
  transition: color 0.2s, text-shadow 0.2s;
}

.footer-icons a:hover {
  color: var(--mint);
  text-shadow: 0 0 10px var(--mint-glow);
}

.footer-copy {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: rgba(100, 116, 139, 0.7);
}

/* ─────────────────────────────────────────
   LIGHTBOX
───────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(3, 3, 10, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lb-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 88vh;
  overflow: hidden;
}

.lb-img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  display: block;
  cursor: zoom-in;
  transition: transform 0.35s ease;
  user-select: none;
}

.lb-img.zoomed {
  transform: scale(2);
  cursor: zoom-out;
}

.lb-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s;
  padding: 0.5rem;
}

.lb-close:hover {
  color: var(--mint);
}

.lb-prev,
.lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 3rem;
  line-height: 1;
  cursor: pointer;
  padding: 1rem;
  transition: color 0.2s;
  user-select: none;
}

.lb-prev { left: 0.5rem; }
.lb-next { right: 0.5rem; }

.lb-prev:hover,
.lb-next:hover {
  color: var(--mint);
}

.lb-counter {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

/* Portfolio items become clickable */
.portfolio-item {
  cursor: pointer;
}

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 900px) {
  .portfolio-grid {
    columns: 2;
  }

}


@media (max-width: 640px) {
  nav button {
    padding: 1rem 1.1rem;
    font-size: 0.65rem;
    letter-spacing: 0.18em;
  }

  header {
    padding: 2.5rem 1rem 1.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .submit-btn {
    align-self: stretch;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .portfolio-grid {
    columns: 1;
  }

  main {
    padding: 2rem 1rem 4rem;
  }
}
