/* ============================================================
   Trishika — Digital Keepsake
   trishikayadav.com · Born February 2017
   ============================================================ */

:root {
  --bg: #F5F8FC;
  --bg-card: rgba(255,255,255,0.82);
  --rose: #4B2E9E;
  --lotus: #1A9E9E;
  --lotus-soft: #DDF2F2;
  --gold: #C9973B;
  --gold-dim: #B08442;
  --ink: #1F2A48;
  --ink-dim: #4A5573;
  --ink-muted: #8A93A8;
  --line: rgba(201,151,59,0.25);
  --pad: clamp(4rem, 10vw, 8rem);
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}
[lang="hi"], [lang="sa"] { font-family: 'Tiro Devanagari Hindi', serif; }

/* ── SOFT GLOW OVERLAY ── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 15% 30%, rgba(26,158,158,0.14) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 15%, rgba(201,151,59,0.10) 0%, transparent 45%),
    radial-gradient(ellipse at 60% 85%, rgba(26,158,158,0.10) 0%, transparent 45%);
}

#bubbles { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.wrap { position: relative; z-index: 1; }

/* ── DIVIDER ── */
.divider {
  display: flex; align-items: center; gap: 1.5rem;
  margin: 3rem auto; max-width: 360px;
}
.divider::before,.divider::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}
.divider span { color: var(--gold); flex-shrink: 0; font-size: 1.1rem; }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 2rem; position: relative;
}
.hero-mandala {
  position: absolute;
  width: min(85vw, 580px); height: min(85vw, 580px);
  pointer-events: none; opacity: 0.16;
  animation: spin 90s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero-shri {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--gold);
  letter-spacing: 0.2em;
  margin-bottom: 0.6rem;
}
.hero-dev {
  font-size: clamp(2.6rem, 8vw, 4.2rem);
  color: var(--lotus);
  line-height: 1.3;
  text-shadow: 0 0 30px rgba(26,158,158,0.35);
  animation: pulse 4s ease-in-out infinite;
  margin-bottom: 0.4rem;
}
@keyframes pulse {
  0%,100% { text-shadow: 0 0 20px rgba(26,158,158,0.3); }
  50%      { text-shadow: 0 0 45px rgba(26,158,158,0.7), 0 0 90px rgba(201,151,59,0.25); }
}

.hero-h1 { font: inherit; display: flex; flex-direction: column; align-items: center; }
.hero-name {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: clamp(2.8rem, 13vw, 8.5rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1;
  background: linear-gradient(145deg, #4B2E9E 0%, #1A9E9E 40%, #C9973B 75%, #4B2E9E 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 4px 18px rgba(26,158,158,0.25));
  margin-bottom: 1rem;
  padding-left: 0.2em; /* balance trailing letter-spacing */
}

.hero-surname {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: clamp(1rem, 3.5vw, 2rem);
  font-weight: 400;
  letter-spacing: 0.65em;
  padding-left: 0.65em;
  color: var(--gold-dim);
  margin-top: -0.3rem;
  margin-bottom: 1.6rem;
}

.hero-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.05rem, 3vw, 1.55rem);
  font-style: italic;
  color: var(--ink-dim);
  letter-spacing: 0.12em;
  margin-bottom: 2.5rem;
}
.hero-date {
  font-family: 'Cinzel', serif;
  font-size: clamp(0.65rem, 1.8vw, 0.9rem);
  color: var(--gold-dim);
  letter-spacing: 0.35em;
  border: 1px solid var(--line);
  padding: 0.8rem clamp(1.2rem, 5vw, 2.8rem);
  position: relative;
}
.hero-date::before { content: '✦'; position: absolute; left: -0.7rem; top: 50%; transform: translateY(-50%); color: var(--gold); }
.hero-date::after  { content: '✦'; position: absolute; right: -0.7rem; top: 50%; transform: translateY(-50%); color: var(--gold); }
@media (max-width: 600px) {
  .hero-name { font-size: 11vw; letter-spacing: 0.1em; padding-left: 0.1em; }
  .hero-surname { letter-spacing: 0.45em; padding-left: 0.45em; }
  .hero-date { letter-spacing: 0.18em; }
}
.hero-age {
  margin-top: 1.4rem;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-size: 1.1rem;
  color: var(--lotus);
  min-height: 1.7em;
}

.scroll-cue {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  color: var(--ink-muted); font-size: 0.65rem; letter-spacing: 0.35em;
  animation: bounce 2.2s ease-in-out infinite;
}
.scroll-cue svg { width: 18px; height: 18px; stroke: var(--gold-dim); stroke-width: 1.5; fill: none; }
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); opacity: 0.5; }
  50%      { transform: translateX(-50%) translateY(7px); opacity: 1; }
}

/* ── SHARED SECTION STYLES ── */
section { padding: var(--pad) clamp(1rem, 5vw, 4rem); }
.container { max-width: 880px; margin: 0 auto; text-align: center; }
.label {
  display: block;
  font-family: 'Cinzel', serif; font-size: 0.7rem;
  letter-spacing: 0.5em; color: var(--lotus);
  text-transform: uppercase; margin-bottom: 1rem;
}
.h2 {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.6rem, 4.5vw, 2.8rem);
  color: var(--ink); line-height: 1.3; margin-bottom: 1.2rem;
}
.sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.05rem, 2.5vw, 1.3rem); font-style: italic;
  color: var(--ink-dim); max-width: 600px; margin: 0 auto 3rem;
}
.sub strong { color: var(--rose); font-weight: 500; }

/* ── STATS GRID ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 720px; margin: 2.5rem auto 0;
  border: 1px solid var(--line);
  gap: 1px; background: var(--line);
}
@media (max-width: 520px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
.stat {
  background: var(--bg-card);
  padding: 2rem 1rem 1.8rem; text-align: center;
  backdrop-filter: blur(12px);
  transition: background 0.35s;
}
.stat:hover { background: var(--lotus-soft); }
.stat-symbol {
  display: block; font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem; color: var(--gold);
  margin-bottom: 0.6rem; line-height: 1;
}
.stat-symbol[lang="hi"] { font-family: 'Tiro Devanagari Hindi', serif; font-size: 1.3rem; }
.stat-v {
  display: block;
  font-family: 'Cinzel', serif; font-size: 1.1rem;
  color: var(--rose); margin-bottom: 0.4rem; letter-spacing: 0.05em;
}
.stat-l {
  font-size: 0.6rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--ink-muted);
}

/* ── LOTUS ── */
.lotus { display: block; margin: 0 auto; }

/* ── WRITE TO TRISHIKA ── */
.write-box, .shloka-box {
  margin: 2.5rem auto 0;
  border: 1px solid var(--line);
  background: var(--bg-card); position: relative;
  backdrop-filter: blur(16px); text-align: center;
}
.write-box { max-width: 680px; padding: clamp(2.5rem,6vw,4.5rem) clamp(1.4rem,5vw,3.5rem); }
.c { position: absolute; width: 18px; height: 18px; border-color: var(--gold); border-style: solid; }
.c.tl { top: 9px; left: 9px;   border-width: 1px 0 0 1px; }
.c.tr { top: 9px; right: 9px;  border-width: 1px 1px 0 0; }
.c.bl { bottom: 9px; left: 9px;  border-width: 0 0 1px 1px; }
.c.br { bottom: 9px; right: 9px; border-width: 0 1px 1px 0; }
.write-icon { margin: 0 auto 1.5rem; display: block; }
.write-desc {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.05rem,2.5vw,1.3rem); font-style: italic;
  color: var(--ink-dim); line-height: 1.95;
  max-width: 500px; margin: 0 auto 2.5rem;
}
.email-link {
  display: inline-flex; align-items: center; gap: 0.8rem;
  font-family: 'Cinzel', serif; font-size: clamp(0.7rem,2vw,1rem);
  color: var(--rose); letter-spacing: 0.18em;
  border: 1px solid rgba(201,151,59,0.5);
  padding: 1.1rem clamp(1.2rem,5vw,3rem); text-decoration: none;
  transition: all 0.35s; position: relative;
  word-break: break-all;
}
.email-link::before { content: '✦'; position: absolute; left: -0.7rem; top: 50%; transform: translateY(-50%); color: var(--gold); }
.email-link::after  { content: '✦'; position: absolute; right: -0.7rem; top: 50%; transform: translateY(-50%); color: var(--gold); }
.email-link:hover {
  background: var(--lotus-soft); border-color: var(--gold);
  box-shadow: 0 0 35px rgba(26,158,158,0.25);
}
.write-note {
  margin-top: 2rem; font-size: 0.68rem; letter-spacing: 0.22em;
  color: var(--ink-muted); text-transform: uppercase;
}

/* ── STORY ── */
.story-body {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.05rem, 2.5vw, 1.35rem); font-style: italic;
  color: var(--ink-dim); line-height: 1.95;
  max-width: 620px; margin: 0 auto 2rem;
}
.story-body strong { color: var(--rose); font-style: normal; font-weight: 500; }

/* ── TIMELINE ── */
.timeline { max-width: 720px; margin: 3rem auto 0; position: relative; }
.timeline::before {
  content: ''; position: absolute; left: 50%; transform: translateX(-50%);
  top: 0; bottom: 0; width: 1px;
  background: linear-gradient(to bottom, transparent, var(--lotus) 5%, var(--gold) 95%, transparent);
}

.ti-year { position: relative; z-index: 1; text-align: center; margin: 1rem 0 2rem; }
.ti-year span {
  font-family: 'Cinzel', serif; font-size: 0.65rem;
  letter-spacing: 0.55em; color: var(--gold-dim);
  background: var(--bg);
  padding: 0 1.2rem; position: relative; z-index: 1;
}

.ti {
  display: flex; gap: 2rem; align-items: flex-start;
  margin-bottom: 2rem; position: relative;
}
.ti.r { flex-direction: row-reverse; }

.ti-dot {
  position: absolute; left: calc(50% - 5px); top: 0.45rem;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--lotus); box-shadow: 0 0 12px var(--lotus); flex-shrink: 0;
}

.ti-content {
  flex: 1; padding: 1.3rem 1.5rem;
  background: var(--bg-card); border: 1px solid var(--line);
  transition: border-color 0.35s, background 0.35s;
}
.ti-content:hover { border-color: var(--gold); }
.ti.r .ti-content { text-align: right; }
.ti-spacer { flex: 1; }

.ti-content h3 {
  font-family: 'Cinzel', serif; font-size: 0.78rem;
  color: var(--rose); letter-spacing: 0.15em; margin-bottom: 0.35rem;
}
.ti-content p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem; font-style: italic; color: var(--ink-dim);
  line-height: 1.7;
}

.ti-await {
  display: inline-block; margin-top: 0.5rem;
  font-family: 'Cinzel', serif; font-size: 0.55rem;
  letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--gold-dim); border: 1px solid var(--line);
  padding: 0.2rem 0.6rem;
}

.ti.future .ti-dot {
  background: var(--bg);
  border: 1.5px solid var(--lotus);
  box-shadow: none;
}
.ti.future .ti-content { opacity: 0.6; border-style: dashed; }

.ti.decade .ti-dot {
  width: 14px; height: 14px;
  left: calc(50% - 7px); top: 0.3rem;
  background: var(--gold); border: none;
  box-shadow: 0 0 20px var(--gold);
}
.ti.decade .ti-content { opacity: 1; border-color: var(--gold); }
.ti.decade .ti-content h3 { font-size: 0.9rem; }

@media (max-width: 640px) {
  .timeline::before { left: 18px; }
  .ti, .ti.r { flex-direction: column; padding-left: 44px; }
  .ti-dot { left: 13px; }
  .ti.decade .ti-dot { left: 11px; }
  .ti-spacer { display: none; }
  .ti.r .ti-content { text-align: left; }
  .ti-year { text-align: left; padding-left: 44px; }
}

/* ── ABOUT / FAQ ── */
.faq { max-width: 680px; margin: 2.5rem auto 0; text-align: left; border-top: 1px solid var(--line); }
.faq-item { padding: 1.4rem 0.4rem; border-bottom: 1px solid var(--line); }
.faq dt {
  font-family: 'Cinzel', serif; font-size: 0.85rem;
  color: var(--rose); letter-spacing: 0.08em; margin-bottom: 0.4rem;
}
.faq dd {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.02rem, 2.4vw, 1.2rem); color: var(--ink-dim); line-height: 1.8;
}
.faq dd a { color: var(--lotus); }

/* ── BLESSING ── */
.shloka-box { max-width: 620px; padding: clamp(2rem,5vw,3.5rem) clamp(1.2rem,5vw,3.5rem); }
.shloka-dev {
  font-size: clamp(1.05rem, 3.5vw, 1.5rem);
  color: var(--gold); margin-bottom: 1.5rem;
}
.shloka-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.05rem, 2.5vw, 1.4rem); font-style: italic;
  color: var(--rose); line-height: 1.95; margin-bottom: 1.2rem;
}
.shloka-meaning {
  font-size: 0.72rem; letter-spacing: 0.15em;
  color: var(--ink-muted); line-height: 1.9;
}

/* ── FOOTER ── */
footer {
  text-align: center;
  padding: 5rem 1.5rem 3rem;
  border-top: 1px solid var(--line);
}
.footer-om {
  display: block;
  font-size: 1.6rem; color: var(--lotus); margin-bottom: 1.8rem;
}
.footer-msg {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1rem, 2.5vw, 1.3rem); font-style: italic;
  color: var(--ink-dim); max-width: 500px; margin: 0 auto 1.5rem; line-height: 1.9;
}
.footer-msg em { color: var(--rose); }
.footer-sig { font-family: 'Cinzel', serif; font-size: 0.8rem; color: var(--gold-dim); letter-spacing: 0.3em; }
.footer-copy { margin-top: 3.5rem; font-size: 0.65rem; letter-spacing: 0.2em; color: var(--ink-muted); }
.footer-copy a {
  color: var(--gold-dim);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
  transition: color 0.3s, border-color 0.3s;
}
.footer-copy a:hover { color: var(--rose); border-bottom-color: var(--rose); }

/* ── REVEAL ANIMATION ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.85s ease, transform 0.85s ease; }
.reveal.v { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }
.d4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
