/* ═══════════════════════════════════════════════════════════════
   PAGE-COMMON.CSS — Shared styles for ALL sub-pages
   Imported by every page except index.html
   Provides: body bg, page hero, blobs, grid-overlay, particles
═══════════════════════════════════════════════════════════════ */

/* Body background — same as homepage */
body {
  background: var(--grad-bg);
  background-attachment: fixed;
}

/* ── Ambient blobs (reused from hero.css pattern) ── */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  pointer-events: none;
  z-index: 0;
  animation: blob-float 16s ease-in-out infinite;
  will-change: transform;
}
.blob-1 {
  width: 580px; height: 580px;
  top: -150px; left: -140px;
  background: radial-gradient(circle, hsla(220,85%,78%,0.50) 0%, transparent 70%);
}
.blob-2 {
  width: 480px; height: 480px;
  bottom: 0; right: -100px;
  background: radial-gradient(circle, hsla(255,75%,78%,0.38) 0%, transparent 70%);
  animation-delay: -6s;
}
@keyframes blob-float {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(20px,-16px) scale(1.04); }
  66%      { transform: translate(-16px, 20px) scale(0.97); }
}

.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(70,90,190,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(70,90,190,0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  z-index: 0; pointer-events: none;
}

/* ── Generic page hero section ── */
.page-hero {
  position: relative;
  padding-top: calc(var(--nav-height) + 5rem);
  padding-bottom: 4rem;
  overflow: hidden;
  text-align: center;
}

.page-hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: hsl(230,75%,55%);
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.82);
  box-shadow: 0 1px 0 rgba(255,255,255,0.92) inset;
  padding: 0.28rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.4rem;
  width: fit-content;
  margin-inline: auto;
}

.page-hero-title {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 1.2rem;
}

.page-hero-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.78;
  max-width: 620px;
  margin: 0 auto;
}

/* ── Glass section dividers / CTAs ── */
.cta-section {
  text-align: center;
  padding: 3.5rem 3rem;
  border-radius: 28px;
  background: rgba(255,255,255,0.56);
  border: 1px solid rgba(255,255,255,0.88);
  box-shadow: 0 1px 0 rgba(255,255,255,0.96) inset, 0 14px 44px rgba(60,70,140,0.12);
  position: relative; overflow: hidden;
  contain: paint;
  transform: translateZ(0);
}
.cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--glass-specular), var(--glass-iridescent);
  pointer-events: none; z-index: 0;
}
.cta-section::after {
  content: '';
  position: absolute;
  top: 0; left: 8%; right: 8%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,1) 50%, transparent);
  pointer-events: none; z-index: 10;
}
.cta-section > * { position: relative; z-index: 1; }
.cta-section h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; margin-bottom: 0.7rem; }
.cta-section p  { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 2rem; line-height: 1.7; max-width: 540px; margin-inline: auto; }
.cta-section > div { display: flex; gap: 0.85rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }

/* nav-end */
.nav-end { display: flex; align-items: center; gap: 0.5rem; }

/* Reveal delay variants */
.reveal-delay-3 { transition-delay: 0.45s; }

/* ── Section ambient decorations (match sections.css for sub-pages) ── */
.section-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: orb-drift 14s ease-in-out infinite;
  will-change: transform;
}
.section-orb-1 {
  width: 380px; height: 380px;
  top: -80px; right: -80px;
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,0.82) 0%, rgba(255,255,255,0.40) 22%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.20) 0%, rgba(200,215,255,0.14) 65%, transparent 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.85), 0 8px 24px rgba(80,100,180,0.10);
  border: 1px solid rgba(255,255,255,0.60);
}
.section-orb-2 {
  width: 220px; height: 220px;
  bottom: -50px; left: -50px;
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,0.78) 0%, rgba(255,255,255,0.36) 24%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(210,225,255,0.18) 0%, transparent 65%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.82), 0 6px 18px rgba(80,100,180,0.08);
  border: 1px solid rgba(255,255,255,0.56);
  animation-delay: -7s;
}
@keyframes orb-drift {
  0%,100% { transform: translateY(0) translateX(0); }
  33%      { transform: translateY(-16px) translateX(8px); }
  66%      { transform: translateY(12px)  translateX(-10px); }
}

.section-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  pointer-events: none;
  z-index: 0;
  animation: blob-float 18s ease-in-out infinite;
  will-change: transform;
}
.section-blob-a {
  width: 480px; height: 480px;
  top: -120px; right: -80px;
  background: radial-gradient(circle, hsla(230,80%,78%,0.30) 0%, transparent 70%);
}
.section-blob-b {
  width: 340px; height: 340px;
  bottom: -80px; left: -60px;
  background: radial-gradient(circle, hsla(260,70%,78%,0.22) 0%, transparent 70%);
  animation-delay: -9s;
}

.section-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(70,90,190,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(70,90,190,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  z-index: 0; pointer-events: none;
}

