/* ==========================================================================
   NOIRX SERVICES — HOMEPAGE STYLES  (v5 — card glow redesign)
   File: css/services.css

   DESIGN INSPIRATION:
   Dark atmospheric page. Two glowing service cards centered on screen.
   Headline above. Plasma particle background. Gold border glows on hover.
   Scroll down for the about section.

   SECTIONS:
   1.  Identity bar (fixed top)
   2.  Hero stage  (full-viewport, card-selection screen)
   3.  Service cards
   4.  About strip (below fold)
   5.  Contact CTA
   6.  Responsive
   ========================================================================== */


/* ==========================================================================
   1. IDENTITY BAR — minimal fixed top bar
   ========================================================================== */
.identity-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 64px;
  /* Transparent — plasma canvas shows through */
  background: linear-gradient(to bottom, rgba(5,5,5,0.7) 0%, transparent 100%);
  transition: background 0.4s ease, padding 0.3s ease;
}

.identity-bar.is-scrolled {
  background: rgba(5,5,5,0.96);
  padding-top: 16px;
  padding-bottom: 16px;
  box-shadow: 0 1px 0 rgba(240,192,64,0.08);
}

body.theme-light .identity-bar {
  background: linear-gradient(to bottom, rgba(250,250,247,0.85) 0%, transparent 100%);
}
body.theme-light .identity-bar.is-scrolled {
  background: rgba(250,250,247,0.97);
}

/* Logo image in the bar */
.identity-bar__logo {
  height: 80px;
  width: auto;
  object-fit: contain;
  transition: filter 0.4s ease;
}
body.theme-light .identity-bar__logo {
  filter: invert(1) hue-rotate(180deg) saturate(0.6);
}

/* Right cluster */
.identity-bar__right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Scroll hint — fades once user scrolls */
.scroll-hint {
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(248,246,240,0.25);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.5s ease;
}
.scroll-hint::after { content: '↓'; animation: hintBounce 2s ease infinite; }
.scroll-hint.is-hidden { opacity: 0; pointer-events: none; }

@keyframes hintBounce {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(4px); }
}


/* ==========================================================================
   2. HERO STAGE — full viewport, centred content
   The plasma canvas (js/services-plasma.js) renders behind this.
   ========================================================================== */
.hero-stage {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 40px 80px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

/* Headline above the cards */
.hero-stage__headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--color-text);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
  /* Entrance animation */
  opacity: 0;
  animation: fadeUp 0.9s ease 0.2s forwards;
}

.hero-stage__headline em {
  font-style: italic;
  color: var(--color-gold-bright); /* Always bright gold — on dark bg */
}

/* Sub-label below headline */
.hero-stage__sub {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  color: rgba(248,246,240,0.35);
  margin-bottom: 64px;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.4s forwards;
}

body.theme-light .hero-stage__sub {
  color: rgba(26,22,17,0.4);
}

/* Card row */
.hero-stage__cards {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.6s forwards;
  /* Max width so cards don't get too wide on large screens */
  max-width: 900px;
  width: 100%;
}

/* Scroll-down nudge below cards */
.hero-stage__scroll-nudge {
  margin-top: 52px;
  font-size: 0.58rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(248,246,240,0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: fadeUp 0.9s ease 1s forwards;
}

.hero-stage__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(240,192,64,0.4), transparent);
  animation: scrollPulse 2s ease infinite;
}

@keyframes scrollPulse {
  0%,100% { opacity: 0.3; transform: scaleY(1); }
  50%      { opacity: 0.9; transform: scaleY(1.1); }
}


/* ==========================================================================
   3. SERVICE CARDS
   Each card is an <a> element — the entire card is clickable.
   The gold border glow is achieved with box-shadow and border transitions.
   ========================================================================== */
.service-card {
  /* Size */
  width: 100%;
  max-width: 380px;
  min-height: 320px;

  /* Layout */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 36px 32px;

  /* Appearance */
  background: rgba(14,14,14,0.85);
  border: 1px solid rgba(240,192,64,0.18);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: var(--color-text);

  /* Transitions */
  transition:
    border-color 0.4s ease,
    box-shadow   0.4s ease,
    transform    0.35s ease,
    background   0.4s ease;

  /* Backdrop blur for glass feel */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Resting glow — subtle */
.service-card {
  box-shadow:
    0 0 0 0 rgba(240,192,64,0),
    inset 0 0 40px rgba(240,192,64,0.03);
}

/* Hover state — bright gold border + outer glow + lift */
.service-card:hover {
  border-color: rgba(240,192,64,0.75);
  box-shadow:
    0 0 32px rgba(240,192,64,0.20),
    0 0 80px rgba(240,192,64,0.08),
    inset 0 0 60px rgba(240,192,64,0.07);
  transform: translateY(-6px);
  background: rgba(18,16,10,0.92);
}

/* Keyboard focus */
.service-card:focus-visible {
  outline: none;
  border-color: var(--color-gold-bright);
  box-shadow: 0 0 0 3px rgba(240,192,64,0.35);
}

/* Light theme card adjustments */
body.theme-light .service-card {
  background: rgba(240,236,226,0.88);
  border-color: rgba(122,88,0,0.22);
}
body.theme-light .service-card:hover {
  border-color: rgba(122,88,0,0.7);
  box-shadow:
    0 0 28px rgba(122,88,0,0.18),
    0 0 70px rgba(122,88,0,0.06),
    inset 0 0 50px rgba(122,88,0,0.05);
}

/* ── Inner corner accent — decorative gold corner lines ── */
/* Top-left corner */
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 32px; height: 32px;
  border-top: 1px solid rgba(240,192,64,0.45);
  border-left: 1px solid rgba(240,192,64,0.45);
  border-radius: 12px 0 0 0;
  transition: width 0.4s ease, height 0.4s ease, border-color 0.4s ease;
}
/* Bottom-right corner */
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 32px; height: 32px;
  border-bottom: 1px solid rgba(240,192,64,0.45);
  border-right: 1px solid rgba(240,192,64,0.45);
  border-radius: 0 0 12px 0;
  transition: width 0.4s ease, height 0.4s ease, border-color 0.4s ease;
}
/* Corner accents expand on hover */
.service-card:hover::before,
.service-card:hover::after {
  width: 56px; height: 56px;
  border-color: rgba(240,192,64,0.9);
}

/* ── Card header ── */
.service-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
}

/* Division number — e.g. "01" */
.service-card__num {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-style: italic;
  color: rgba(240,192,64,0.30);
  line-height: 1;
  transition: color 0.3s ease;
}
.service-card:hover .service-card__num {
  color: rgba(240,192,64,0.60);
}

/* ── Card body ── */
.service-card__body {
  flex: 1;
}

/* Service name — "Noirx Tech" */
.service-card__name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 3.5vw, 2.5rem);
  font-weight: 400;
  line-height: 1.05;
  margin-bottom: 18px;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

/* Gold italic part */
.service-card__name em {
  font-style: italic;
  /* Always bright gold — card has dark background in both themes */
  color: #F0C040;
}
body.theme-light .service-card__name em {
  color: #8B6500; /* Readable amber on light card background */
}

/* Short description */
.service-card__desc {
  font-size: 0.85rem;
  line-height: 1.75;
  color: rgba(248,246,240,0.45);
  max-width: 280px;
}
body.theme-light .service-card__desc {
  color: rgba(26,22,17,0.52);
}

/* ── Card footer — the "Select" button ── */
.service-card__footer {
  margin-top: 36px;
}

/* Pill-shaped select button */
.service-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(248,246,240,0.2);
  color: rgba(248,246,240,0.65);
  padding: 12px 28px;
  border-radius: 100px; /* Full pill */
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: 'DM Sans', sans-serif;
  transition: border-color 0.3s, color 0.3s, background 0.3s, box-shadow 0.3s;
}

.service-card__btn::after {
  content: '›';
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

/* Button brightens on card hover */
.service-card:hover .service-card__btn {
  border-color: rgba(240,192,64,0.6);
  color: #F0C040;
  background: rgba(240,192,64,0.06);
  box-shadow: 0 0 16px rgba(240,192,64,0.12);
}
.service-card:hover .service-card__btn::after {
  transform: translateX(3px);
}

body.theme-light .service-card__btn {
  border-color: rgba(26,22,17,0.2);
  color: rgba(26,22,17,0.55);
}
body.theme-light .service-card:hover .service-card__btn {
  border-color: rgba(122,88,0,0.55);
  color: #7A5800;
  background: rgba(122,88,0,0.06);
}

/* ── "Coming soon" card variant ── */
.service-card--soon {
  opacity: 0.28;
  pointer-events: none;
  /* Remove corner accent on soon card — keeps it clearly inactive */
  border-style: dashed;
  border-color: rgba(240,192,64,0.12);
}
.service-card--soon::before,
.service-card--soon::after {
  display: none;
}

/* Smaller soon card */
.service-card--soon .service-card__name {
  font-size: 1.4rem;
  color: rgba(248,246,240,0.3);
}


/* ==========================================================================
   4. ABOUT STRIP (below fold)
   ========================================================================== */
.about-strip {
  padding: 100px 72px;
  background: var(--color-bg-2);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
  transition: background 0.45s ease;
}

.about-strip__quote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  font-weight: 400;
  line-height: 1.4;
  border-left: 2px solid var(--color-gold);
  padding-left: 32px;
  color: var(--color-text);
}
.about-strip__quote em { font-style: italic; color: var(--color-gold); }

.about-strip__body p {
  font-size: 0.85rem;
  line-height: 2;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.about-strip__stats {
  display: flex;
  gap: 48px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.about-strip__stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  color: var(--color-gold);
  line-height: 1;
}
.about-strip__stat-lbl {
  font-size: 0.58rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: 6px;
}


/* ==========================================================================
   5. CONTACT CTA
   ========================================================================== */
.contact-cta {
  padding: 100px 72px;
  text-align: center;
  background: radial-gradient(
    ellipse 50% 80% at 50% 50%,
    rgba(240,192,64,0.05) 0%,
    transparent 70%
  );
}
.contact-cta p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 44px;
  max-width: 440px;
  margin-left: auto; margin-right: auto;
}
.contact-cta__email {
  display: block;
  margin-top: 22px;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--color-gold);
  letter-spacing: 0.05em;
  transition: opacity 0.3s;
}
.contact-cta__email:hover { opacity: 0.7; }


/* ==========================================================================
   Z-INDEX SAFETY — sections must sit above the plasma canvas (z-index 0)
   ========================================================================== */
.identity-bar  { z-index: 200; }
.hero-stage    { z-index: 1; }
.about-strip,
.contact-cta,
.site-footer   { position: relative; z-index: 1; }


/* ==========================================================================
   6. RESPONSIVE — MOBILE
   ========================================================================== */
@media (max-width: 900px) {
  .identity-bar { padding: 18px 24px; }

  .hero-stage { padding: 100px 20px 60px; }

  /* Stack cards vertically on mobile */
  .hero-stage__cards {
    flex-direction: column;
    align-items: center;
  }

  .service-card { max-width: 100%; }

  .about-strip {
    grid-template-columns: 1fr;
    padding: 60px 24px;
    gap: 48px;
  }

  .contact-cta { padding: 80px 24px; }
}

@media (max-width: 480px) {
  .service-card { padding: 32px 24px 26px; min-height: 280px; }
  .hero-stage__headline { font-size: 1.6rem; }
}
