/* =========================================================
   THEME PALETTE (cosmic neon) — global CSS variables
   ========================================================= */
:root {
  /* Core surfaces & text */
  --bg: #0b0e13;
  --surface: #111520;
  --surface-2: #151a26;
  --text: #e8edf3;
  --muted: #a9b3c2;

  /* Accents (neon triad) */
  --accent: #00f5ff;   /* cyan */
  --accent-2: #9b6bff; /* violet */
  --accent-3: #ffe66d; /* sun */

  /* Glows / outlines */
  --glow-soft: 0 0 24px rgba(0,245,255,.35);
  --glow-strong: 0 0 60px rgba(0,245,255,.55);

  /* Gradients */
  --nebula: radial-gradient(1200px 500px at 85% 40%, rgba(0,245,255,.08), transparent 60%);
  --aurora: linear-gradient(135deg, var(--accent-3), var(--accent), var(--accent-2));
}

/* Respect user preference (optional, can delete) */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f9fc;
    --surface: #ffffff;
    --surface-2: #f0f4fa;
    --text: #0b1220;
    --muted: #5b6678;
  }
}

/* =========================================================
   GLOBAL BASE — apply the palette
   ========================================================= */
html, body {
  background: var(--bg);
  color: var(--text);
}
body { padding-top: 64px; }


/* comfortable line length inside containers*/
.container { max-width: 1140px; }

/*slightly larger base font on big screens, smaller on phones*/
html {
  font-size: clamp(15px, 1.1vw, 18px); 
}
/* Anchor offset for section links */
#genesis, #churning, #stillness { scroll-margin-top: 80px; }

.navbar.bg-dark {
  background-color: var(--surface-2) !important;
  border-bottom: 1px solid rgba(255,255,255,.08);
  position:sticky;
  top: 0;
  z-index: 1040;
  box-shadow: 0 6px 24px rgba(0,0,0,.25);
}
.navbar .navbar-brand, .navbar .nav-link { color: var(--text); }
.navbar .nav-link:hover { color: var(--accent); }

/* Subtle page vignette */
body::before {
  content: "";
  position: fixed; inset: 0;
  background: radial-gradient(50% 40% at 85% 10%, rgba(155,107,255,.06), transparent 60%);
  pointer-events: none; z-index: 0;
}

/* Utility helpers */
.text-accent  { color: var(--accent) !important; }
.text-muted-2 { color: var(--muted) !important; }
.bg-surface   { background: var(--surface) !important; }
.bg-surface-2 { background: var(--surface-2) !important; }
.bg-nebula    { background: var(--nebula) !important; }
.border-soft  { border: 1px solid rgba(255,255,255,.08) !important; }
.shadow-glow  { box-shadow: var(--glow-soft) !important; }
.btn-aurora {
  background: var(--aurora);
  color: #091016;
  border: none;
  box-shadow: var(--glow-soft);
}
.btn-aurora:hover { filter: brightness(1.05) saturate(1.05); }

/* Details / LookBeyond styling */
details.skeleton {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: .75rem;
  overflow: hidden;
}
details.skeleton[open] { box-shadow: var(--glow-soft); }
details.skeleton summary {
  cursor: pointer;
  padding: .85rem 1rem;
  color: var(--text);
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.0));
  user-select: none;
}
details.skeleton summary:hover { color: var(--accent); }
details.skeleton pre {
  margin: 0; padding: 1rem;
  background: var(--surface-2);
  border-top: 1px solid rgba(255,255,255,.06);
}

/* Prism tweaks to match theme */
.token.comment, .token.prolog, .token.doctype, .token.cdata { color: #8892a6; }
.token.punctuation { color: #c7d3e0; }
.token.property, .token.tag, .token.constant, .token.symbol { color: var(--accent-2); }
.token.boolean, .token.number { color: var(--accent-3); }
.token.selector, .token.attr-name, .token.string, .token.char, .token.builtin, .token.inserted { color: var(--accent); }

/* =========================================================
   GENESIS — -coded colors to variables
   ========================================================= */
#genesis {
  position: relative;
  background: var(--nebula) var(--bg);
  color: var(--text);
}

/* mirror keeps your gradient but matches glow */
.mirror {
    width:min(42vmin, 420px); 
    aspect-ratio:1 / 1; 
    flex:0 0 auto; 
    box-sizing:border-box;
    max-width:100%;        
    box-shadow:
    0 0 0 1px rgba(255,255,255,.06) inset,
    0 12px 40px rgba(0,0,0,.6),
    var(--glow-soft);
}

@supports not (aspect-ratio: 1 / 1){
  .mirror{ height:min(42vmin, 420px); }
}

@media (max-width: 991px){
  #genesis .row{ text-align:center; }
  #mirror-slot{ justify-content:center; margin-top:1rem; }
}



#mirror-slot{
  display:flex;
  justify-content:flex-end;   /* right on desktop */
  align-items:center;
}

.mirror::before { background: radial-gradient(closest-side, rgba(0,245,255,.18), transparent 70%); }
.mirror-text { text-shadow: 0 0 6px rgba(255,255,255,.7), 0 0 24px rgba(0,245,255,.25); }

/* =========================================================
   CHURNING — keep your vortex, sync with palette
   ========================================================= */
#churning { background: var(--surface-2); color: var(--text); }

#churning .vortex {
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06) inset,
    0 10px 40px rgba(0,0,0,0.45),
    var(--glow-soft);
}
#churning .msg { color: var(--accent); text-shadow: 0 0 10px var(--accent), 0 0 24px rgba(0,245,255,.6); }

/* Overlay / X-ray glow (used by the LookBeyond module) */
.lb-window.glow {
  box-shadow: var(--glow-strong) !important;
  color: #fff !important;
  border-color: var(--accent) !important;
}
/* ===== STILLNESS — Non-dual Flight ===== */
#stillness { background: var(--surface); color: var(--text); position: relative; }

.still-wrap {
  position: relative;
  border-radius: 14px;
  padding: 1rem;
  overflow: hidden;
  min-height: clamp(260px, 45vh, 520px);
}

.still-canvas {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  background:
    radial-gradient(120% 100% at 30% 10%, rgba(255,255,255,.06), transparent 60%),
    radial-gradient(110% 90% at 80% 20%, rgba(0,245,255,.06), transparent 55%),
    var(--surface-2);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}

/* soft white bloom layer (subtle) */
.still-bloom {
  position: absolute;
  inset: -20%;
  pointer-events: none;
  background:
    radial-gradient(closest-side, rgba(255,255,255,.08), transparent 70%),
    radial-gradient(closest-side at 80% 25%, rgba(0,245,255,.07), transparent 70%);
  mix-blend-mode: screen;
  animation: still-breathe 9s ease-in-out infinite;
}

@keyframes still-breathe {
  0% { transform: scale(1);   opacity: .65; }
  50%{ transform: scale(1.03); opacity: .9; }
  100%{ transform: scale(1);  opacity: .65; }
}

/* mantra breathing + tracking */
.still-mantra {
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--accent);
  text-shadow: 0 0 10px var(--accent), 0 0 28px rgba(0,245,255,.55);
  animation: mantra-breathe 6.5s ease-in-out infinite;
  user-select: none;
  cursor: default;
}

/* White silence veil */
.silence-veil{
  position:fixed; inset:0; background:#fff;
  opacity:0; pointer-events:none;
  transition:opacity 600ms ease; z-index:10000;
}
.silence-veil.show{ opacity:1; }


@keyframes mantra-breathe {
  0%   { transform: scale(1);   opacity: .9; }
  50%  { transform: scale(1.03); opacity: 1; }
  100% { transform: scale(1);   opacity: .9; }
}


#dev-links {

  background:var(--surface-2);
  color: var(--text);

}

#dev-links .lead{
  color: var(--muted);
}
#dev-links .dev-card{
  max-width: 920px;
  padding: 1.1rem 1.25rem;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px;
  box-shadow: var(--glow-soft);  
}

#dev-links .link-aurora{
  font-weight: 700;
  text-decoration: none;
  background: var(--aurora);
  -webkit-background-clip: text;
  background-clip: text;
  color:transparent;


}

#dev-links .link-aurora:hover{
  filter:brightness(1.05) saturate(1.05);

}


#dev-links .btn {
  border-radius : 40px;
  font-weight:600;
  transition: all 0.25s ease;
}

#dev-links .btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--glow-soft);
}

#dev-links .dev-divider {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 245, 255, .35), transparent);
  
}

#dev-links blockquote {
  color: #d9e3ef;
  border-left: 4px solid var(--accent);
  padding-left: 1rem;
}

/* ===== HERO: force background image with high specificity ===== */
header.hero-section{

  --focal-x: 60%;              /* move the crop focus; tweak as you wish */
  --focal-y: 35%;
  position: relative;
  min-height: clamp(48vh, 72vh, 640px);
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--text);
  isolation: isolate;        /* keeps ::before behind content */
  overflow: hidden;
  box-shadow: inset 0 0 60px rgba(0,245,255,.05);

  /* SHOW THE PHOTO — no blend here */
  background-image: url("../assets/images/butterfly-6616627_1920.jpg");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  background-color: var(--bg); /* fallback while image loads */
}

/* Keep the breathing glow on top of bg */
header.hero-section::before{
  content:"";
  position:absolute; inset:0;
  background:
    linear-gradient(to bottom,
      rgba(0,0,0,.32) 0%,
      rgba(0,0,0,.18) 35%,
      rgba(0,0,0,.00) 60%,
      rgba(0,0,0,.18) 100%),
    radial-gradient(70% 50% at 50% 30%, rgba(155,107,255,.10), transparent 70%);
  pointer-events:none;
  z-index:-1;
}

.hero-card{
  display: inline-block;
  padding: clamp(.85rem, 1.5vw, 1.25rem) clamp(1rem, 2vw, 1.5rem);
  border-radius: 16px;
  background: rgba(11,14,19,.55);          /* uses your palette tones */
  backdrop-filter: blur(6px) saturate(120%);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
  border: 1px solid rgba(0, 245, 255, .15);
  box-shadow: 0 12px 40px rgba(0,0,0,.45), var(--glow-soft);
}

/* Typography that scales nicely */
.hero-card h1{
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1.15;
  margin: 0 0 .4rem 0;
  color: var(--accent-3);
  text-shadow: 0 0 12px rgba(255, 230,109,.45), 0 0 30px rgba(0, 245, 255, .25);
  letter-spacing: 0.05em;
  font-weight: 800;
}

.hero-card .lead{
  color: var(--accent-2);
  text-shadow: 0 0 10px rgba(155, 107,255,.35);
  font-weight: 500;

}
.hero-card p{ 
  color: var(--text);
  text-shadow: 0 0 6px rgba(0,0,0,.8);
  margin-bottom: .4rem; 
}

.hero-card:hover {
  background: rgba(11, 14, 19, 0.65);
  box-shadow: 0 0 40px rgba(0, 245, 255, .25), var(--glow-soft);
  transition: all .4s ease-in-out;
}

.hero-overlay {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding-inline: 1.5rem;
}

.hero-overlay h1 {
  color: var(--accent);
  text-shadow: 0 0 14px rgba(0,245,255,.35);
  letter-spacing: 0.03em;
}

.hero-overlay p.lead {
  color: var(--muted);
  text-shadow: 0 0 10px rgba(0,0,0,0.6);
}

@keyframes heroGlow {
  0%   { opacity: .6; transform: scale(1); }
  50%  { opacity: .9; transform: scale(1.05); }
  100% { opacity: .6; transform: scale(1); }
}

@media (max-width: 576px){
  header.hero-section{ min-height: 52vh; --focal-x: 50%; --focal-y: 30%; }
}