@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

:root{
  --card-max: 900px;     /* your glass max-width */
  --card-pad: 3.5rem;    /* your glass left+right padding */
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont;
  height: 100%;
  color: #000;
  /* background: #ffffff;    pure white, no gradients */
  perspective: 1200px;
}

/* remove complex glows */
body::before,
body::after {
  content: none;   /* disables the extra blurred gradient layers */
}

/* === Main Glass Panel === */
.glass {
  position: relative;
  z-index: 0; /* this ensures it sits above -1 (canvas) but below nav */
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  background: rgb(237, 249, 251); /* semi-transparent pale blue */
  border-radius: 24px;
  /* 🌟 stronger, directional white glow and realistic drop shadow */
  box-shadow:
    3px 6px 8px 2px rgba(0, 0, 0, 0.35),   /* solid grounding */
    6px 12px 30px 15px rgba(255, 255, 255, 0.8); /* contained highlight */
  overflow: visible;
  transition: all 0.5s ease-in-out;
  color: #1b0a3b;
  /* use global variables instead of hard-coded values */
  margin: 6rem auto 2.5rem auto;
  max-width: var(--card-max);
  padding: var(--card-pad);
}

.glass:hover {
  background: rgb(255, 247, 239); /* slightly warmer on hover */
  /*backdrop-filter: blur(5px) saturate(1.6); */
}

/* Headings */
h1 {
  font-size: 2.3rem;
  font-weight: 700;
  color: #210d49;
  margin-top: 0;
  text-align: center;
}
h2 {
  color: #ef770e;
  margin-top: 2rem;
}
p, li {
  line-height: 1.7;
  font-size: 1.05rem;
  color: #3f119c;
}
ul { margin-left: 1.5rem; }
strong { color: #3f119c; }

/* Logo */
img.hero {
  margin-top: -2rem;                /* adds a gentle buffer */
  width: 260px;                      /* proportionally smaller */
  border-radius: 18px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.5));
  transform: perspective(800px) rotateY(-4deg);
  transition: transform 1.5s cubic-bezier(0.19,1,0.22,1);
}

img.hero:hover { transform: perspective(800px) rotateY(0deg) scale(1.03); }

/* Diagrams */
img.diagram {
  display: block;
  margin: 2.5rem auto;
  max-width: 90%;
  border-radius: 16px;
  /* box-shadow: 0 16px 35px rgba(0,0,0,0.4); */
  box-shadow: 0 14px 28px rgba(80,50,20,0.25);
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s ease-out, transform 1.2s cubic-bezier(0.19,1,0.22,1);
}

/* Centered Quote */
.center-quote {
  text-align: center;
  font-style: italic;
  font-weight: 600;
  margin: 2.5rem 0 2.5rem 0;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #2b0a5e;
  letter-spacing: 0.02em; 
}

footer.footer {
  text-align: center;
  margin: 3rem 0 2rem;
  font-size: 0.9rem;
  color: #555;
  line-height: 1.6;
}

footer.footer a {
  color: #f88a14;
  text-decoration: none;
}

footer.footer a:hover {
  text-decoration: underline;
}

.footer { padding-bottom: 1rem; }

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* === Story Sections (stories.html) === */
.story {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(6px);
  line-height: 1.6;
}

.story h2 {
  margin-top: 0;
  color: #7824cd;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.story p {
  font-size: 1rem;
  margin-top: 0.6rem;
  color: #222;
}

/* Light hover lift for interactivity */
.story:hover {
  transform: translateY(-2px);
  transition: transform 0.15s ease;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .story {
    background: rgba(30, 30, 35, 0.8);
    color: #e7e7ea;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  }
  .story h2 {
    color: #9d7eff;
  }
}