/* ============================================================
   GLASSMORPHISM SYSTEM — ruchita portfolio 2026
   backdrop-filter over scrollable content, all pages
   ============================================================ */

/* ── 1. Page background: strong fixed gradient mesh ───────── */
html {
  /* base: barely-blue white so sections that sit over it pick up color */
  background:
    radial-gradient(ellipse 72% 58% at 0%   0%,   rgba(100,148,255,.52) 0%, transparent 54%),
    radial-gradient(ellipse 62% 68% at 100% 100%,  rgba(148,100,255,.44) 0%, transparent 52%),
    radial-gradient(ellipse 48% 48% at 54%  44%,   rgba(255,185,110,.20) 0%, transparent 56%),
    #eef1fc;
  background-attachment: fixed;
}
body { background: transparent !important; }

/* ── 2. Let hero sections show the gradient through them ─── */
/* Without this, solid hero backgrounds block the gradient    */
.hero    { background: rgba(238, 241, 252, 0.58) !important; }
.cs-hero { background: rgba(238, 241, 252, 0.48) !important; }

/* Sections and wraps are already transparent — good.          */
/* Explicit safety net: */
.sec, .section, .wrap, .cs-wrap { background: transparent; }

/* ── 3. Animated blobs (index.html .mesh is in the HTML) ─── */
.mesh {
  display: block !important;
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-grid { display: none !important; }

.blob {
  display: block !important;
  position: absolute;
  border-radius: 50%;
  will-change: transform;
  pointer-events: none;
}
.b1 {
  width: 72vw; height: 72vw;
  top: -24vw; left: -20vw;
  background: radial-gradient(circle, rgba(100,148,255,.40) 0%, transparent 65%);
  filter: blur(64px);
  animation: g1 22s ease-in-out infinite;
}
.b2 {
  width: 58vw; height: 58vw;
  bottom: -18vw; right: -16vw;
  background: radial-gradient(circle, rgba(148,100,255,.35) 0%, transparent 65%);
  filter: blur(64px);
  animation: g2 28s ease-in-out infinite;
}
.b3 {
  width: 44vw; height: 44vw;
  top: 38vh; left: 34vw;
  background: radial-gradient(circle, rgba(255,185,110,.22) 0%, transparent 65%);
  filter: blur(80px);
  animation: g3 34s ease-in-out infinite;
}

@keyframes g1 {
  0%,100% { transform: translate(0,0)      scale(1);    }
  33%      { transform: translate(5vw,8vh)  scale(1.04); }
  66%      { transform: translate(-3vw,4vh) scale(.97);  }
}
@keyframes g2 {
  0%,100% { transform: translate(0,0)      scale(1);    }
  40%     { transform: translate(-6vw,-5vh) scale(1.05); }
  70%     { transform: translate(3vw,-8vh)  scale(.98);  }
}
@keyframes g3 {
  0%,100% { transform: translate(0,0)    scale(1);    }
  50%     { transform: translate(8vw,-6vh) scale(1.06); }
}

/* Ensure content sits above blobs — exclude nav so its position:fixed isn't overridden */
body > *:not(.mesh):not(.hero-grid):not(nav) { position: relative; z-index: 1; }

/* ── GLASS MIXIN (shared values) ──────────────────────────── */
/* Used inline below; kept here as reference:
   background: rgba(255,255,255,.55);
   backdrop-filter: blur(Xpx) saturate(1.6);
   -webkit-backdrop-filter: blur(Xpx) saturate(1.6);
   border: 1px solid rgba(255,255,255,.72);
   box-shadow: 0 4px 28px rgba(0,0,0,.08), inset 0 1px 0 rgba(255,255,255,.9);
*/

/* ── 4. Nav — transparent at top, glass on scroll ─────────── */
/* Default state: transparent (original design intent)         */
nav {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  box-shadow: none !important;
}
/* Scrolled state: strong frosted glass */
nav.compressed {
  background: rgba(255,255,255,.72) !important;
  backdrop-filter: blur(32px) saturate(2.2) !important;
  -webkit-backdrop-filter: blur(32px) saturate(2.2) !important;
  border: 1px solid rgba(255,255,255,.80) !important;
  box-shadow: 0 8px 40px rgba(0,0,0,.10),
              inset 0 1px 0 rgba(255,255,255,.95) !important;
}

/* ── 5. Case study tiles (.cse) ──────────────────────────── */
.cse {
  background: rgba(255,255,255,.55) !important;
  backdrop-filter: blur(20px) saturate(1.6) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.6) !important;
  border: 1px solid rgba(255,255,255,.68) !important;
  box-shadow: 0 4px 36px rgba(0,0,0,.08),
              inset 0 1px 0 rgba(255,255,255,.92) !important;
}
.cse:hover {
  background: rgba(255,255,255,.70) !important;
  border-color: rgba(255,255,255,.80) !important;
  box-shadow: 0 12px 48px rgba(0,0,0,.12),
              inset 0 1px 0 rgba(255,255,255,.92) !important;
}

/* ── 6. AI principle + impact cards ──────────────────────── */
.aic, .impc {
  background: rgba(255,255,255,.52) !important;
  backdrop-filter: blur(18px) saturate(1.6) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.6) !important;
  border: 1px solid rgba(255,255,255,.68) !important;
  box-shadow: 0 2px 22px rgba(0,0,0,.07),
              inset 0 1px 0 rgba(255,255,255,.9) !important;
}
.aic:hover, .impc:hover {
  background: rgba(255,255,255,.72) !important;
}

/* ── 7. Case study stat boxes ────────────────────────────── */
.cs-stat {
  background: rgba(255,255,255,.52) !important;
  backdrop-filter: blur(18px) saturate(1.6) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.6) !important;
  border: 1px solid rgba(255,255,255,.68) !important;
  box-shadow: 0 2px 24px rgba(0,0,0,.07),
              inset 0 1px 0 rgba(255,255,255,.9) !important;
}

/* ── 8. Pull quotes ──────────────────────────────────────── */
.pullquote {
  background: rgba(238,241,252,.58) !important;
  backdrop-filter: blur(14px) saturate(1.4) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.4) !important;
  border-left: 3px solid rgba(100,148,255,.50) !important;
}

/* ── 9. Tags & pills ─────────────────────────────────────── */
.lp-tag, .eyebrow-tag, .tier, .cse-badge {
  background: rgba(255,255,255,.60) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255,255,255,.72) !important;
}

/* ── 10. Artifact captions ───────────────────────────────── */
.artifact figcaption {
  background: rgba(238,241,252,.62) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-radius: 0 0 var(--rL,1.5rem) var(--rL,1.5rem);
  padding: .85rem 1.1rem;
}

/* ── 11. Persona chips ───────────────────────────────────── */
.persona-chip {
  background: rgba(255,255,255,.55) !important;
  backdrop-filter: blur(14px) saturate(1.4) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.4) !important;
  border: 1px solid rgba(255,255,255,.68) !important;
  box-shadow: 0 2px 16px rgba(0,0,0,.06) !important;
}

/* ── 12. Contact link rows ───────────────────────────────── */
.clink {
  background: rgba(255,255,255,.45) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

/* ── 13. Footer ──────────────────────────────────────────── */
footer {
  background: rgba(238,241,252,.62) !important;
  backdrop-filter: blur(24px) saturate(1.6) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.6) !important;
  border-top: 1px solid rgba(255,255,255,.72) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9) !important;
}

/* ── 14. STAR snapshot grid ──────────────────────────────── */
.star-snap { margin: 2.5rem 0 3rem; }
.star-snap-eye {
  font-size: .75rem; text-transform: uppercase; letter-spacing: .12em;
  color: var(--grey, #b4b4b4); margin-bottom: 1rem; display: block;
}
.star-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.star-card {
  border: 1px solid rgba(255,255,255,.60);
  border-radius: var(--rL, 1.5rem);
  padding: 1.5rem 1.25rem;
  background: rgba(255,255,255,.52);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
}
.star-letter {
  font-size: 2.5rem;
  font-weight: 300;
  line-height: 1;
  opacity: .18;
  margin-bottom: .6rem;
  font-family: 'Creato Display', Arial, sans-serif;
}
.star-label {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--grey, #b4b4b4);
  margin-bottom: .6rem;
}
.star-text { font-size: .875rem; line-height: 1.6; }
@media (max-width: 768px) { .star-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .star-grid { grid-template-columns: 1fr; } }

/* ── 15. Before / After table ────────────────────────────── */
.ba-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0 2.5rem;
}
.ba-col {
  border: 1px solid rgba(255,255,255,.60);
  border-radius: var(--rL, 1.5rem);
  padding: 1.5rem;
  background: rgba(255,255,255,.52);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.ba-col.before { border-left: 3px solid rgba(200,60,60,.35); }
.ba-col.after  { border-left: 3px solid rgba(60,160,60,.40); }
.ba-label {
  font-size: .7rem; text-transform: uppercase;
  letter-spacing: .12em; color: var(--grey, #b4b4b4);
  margin-bottom: 1rem;
}
.ba-row {
  font-size: .875rem; line-height: 1.5;
  padding: .4rem 0; border-bottom: 1px solid rgba(0,0,0,.06);
}
.ba-row:last-child { border-bottom: none; }
@media (max-width: 600px) { .ba-grid { grid-template-columns: 1fr; } }

/* ── 16. Move dividers (ECS action grouping) ─────────────── */
.move-divider {
  border-top: 1px solid rgba(0,0,0,.07);
  padding-top: 3rem;
  margin-top: 1rem;
}
.move-divider-label {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--grey, #b4b4b4);
  margin-bottom: 2rem;
}
.move-divider-label::after {
  content: '';
  display: block;
  width: 3rem;
  height: 1px;
  background: currentColor;
  opacity: .4;
}

/* ── 17. Proof pillars (homepage) ────────────────────────── */
.proof-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}
.proof-pillar {
  border: 1px solid rgba(255,255,255,.60);
  border-radius: var(--rL, 1.5rem);
  padding: 1.5rem;
  background: rgba(255,255,255,.52);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.proof-pillar-h {
  font-size: .8rem; text-transform: uppercase;
  letter-spacing: .1em; margin-bottom: .6rem;
}
.proof-pillar-p { font-size: .875rem; line-height: 1.5; color: var(--t1, #333); }
@media (max-width: 640px) { .proof-pillars { grid-template-columns: 1fr; } }

/* ── 18. Utility class ───────────────────────────────────── */
.glass {
  background: rgba(255,255,255,.52);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  border: 1px solid rgba(255,255,255,.68);
  box-shadow: 0 4px 28px rgba(0,0,0,.08),
              inset 0 1px 0 rgba(255,255,255,.9);
  border-radius: var(--rL,1.5rem);
}
