/* ============================================================
   MATHIVATHANI KANNAN — Bloom & Beyond
   Shared Stylesheet
   ============================================================ */

:root {
  --bg:        #0d0a12;
  --bg2:       #120d1c;
  --purple:    #7c3aed;
  --purple-lt: #a78bfa;
  --purple-xs: #ede9fe;
  --gold:      #d4a853;
  --petal:     #c084fc;
  --text:      #e8e0f0;
  --muted:     #9b8faa;
  --card:      #1a1126;
  --border:    rgba(167,139,250,0.18);
  --radius:    18px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { cursor: none; scroll-behavior: smooth; }

/* ── CURSOR ── */
#cat-cursor {
  position: fixed; pointer-events: none; z-index: 9999;
  width: 36px; height: 36px;
  transform: translate(-50%, -50%);
  transition: transform 0.08s ease;
  font-size: 28px;
  filter: drop-shadow(0 0 6px #a78bfa88);
}
#cat-cursor.clicking { transform: translate(-50%,-50%) scale(0.8); }

/* ── PETAL CANVAS ── */
.petal-canvas { position:fixed; inset:0; pointer-events:none; z-index:0; overflow:hidden; }
.petal {
  position: absolute;
  font-size: 14px;
  opacity: 0;
  animation: petalFall linear infinite;
  pointer-events: none;
}
@keyframes petalFall {
  0%   { opacity:0; transform: translateY(-20px) rotate(0deg); }
  10%  { opacity: 0.5; }
  90%  { opacity: 0.25; }
  100% { opacity:0; transform: translateY(110vh) rotate(720deg); }
}

/* ── BASE ── */
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 18px;
  line-height: 1.75;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* ── BG MESH ── */
body::before {
  content:'';
  position: fixed; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 10% 20%, #3b0764 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 80%, #4c1d95 0%, transparent 55%),
    radial-gradient(ellipse 40% 60% at 50% 50%, #1e0536 0%, transparent 70%);
  pointer-events: none;
}

/* ── HEADER ── */
header {
  position: relative; z-index: 10;
  text-align: center;
  padding: 64px 24px 48px;
  border-bottom: 1px solid var(--border);
}
header a { text-decoration: none; }

.site-emblem {
  font-size: 48px;
  display: block;
  margin-bottom: 12px;
  animation: floatEmoji 4s ease-in-out infinite;
  filter: drop-shadow(0 0 18px #c084fc88);
}
@keyframes floatEmoji {
  0%,100% { transform: translateY(0px) rotate(-3deg); }
  50%      { transform: translateY(-8px) rotate(3deg); }
}

.site-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 700;
  background: linear-gradient(135deg, #d4a853 0%, #c084fc 40%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.site-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 300;
  color: var(--muted);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-top: 8px;
}

.floral-divider {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; margin: 20px auto; max-width: 280px;
}
.floral-divider span { font-size: 16px; }
.floral-divider::before, .floral-divider::after {
  content:''; flex:1; height:1px;
  background: linear-gradient(90deg, transparent, var(--purple-lt), transparent);
}

.author-tag {
  font-size: 0.82rem;
  color: var(--petal);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ── SLIM BRAND BAR (inner pages only) ── */
.slim-brand {
  background: rgba(13,10,18,0.95);
  backdrop-filter: blur(18px);
  padding: 10px 24px;
  border-bottom: 1px solid var(--border);
}
.slim-brand a {
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  background: linear-gradient(135deg, #d4a853, #c084fc, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.05em;
  transition: opacity 0.2s;
}
.slim-brand a:hover { opacity: 0.8; }

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13,10,18,0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex; justify-content: center; align-items: center;
  padding: 0 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-inner::-webkit-scrollbar { display: none; }

nav a {
  display: flex; align-items: center; gap: 5px;
  padding: 14px 16px;
  color: var(--muted);
  text-decoration: none;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.3s, border-color 0.3s;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
nav a:hover { color: var(--purple-lt); border-bottom-color: rgba(192,132,252,0.4); }
nav a.active { color: var(--purple-lt); border-bottom-color: var(--petal); }
nav a .nav-icon { font-size: 13px; }

/* hamburger button - hidden on desktop */
.nav-toggle {
  display: none;
  background: none; border: none;
  color: var(--purple-lt); font-size: 22px;
  cursor: none; padding: 14px 16px;
  width: 100%; text-align: left;
  align-items: center; gap: 10px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.9rem; letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* mobile nav */
@media (max-width: 700px) {
  .nav-toggle { display: flex; }
  .nav-inner {
    display: none;
    flex-direction: column; align-items: stretch;
    padding: 0;
    border-top: 1px solid var(--border);
  }
  .nav-inner.open { display: flex; }
  nav a {
    padding: 14px 24px;
    border-bottom: 1px solid var(--border);
    border-left: 3px solid transparent;
    font-size: 1rem;
  }
  nav a.active {
    border-left-color: var(--petal);
    border-bottom-color: var(--border);
    background: rgba(124,58,237,0.1);
    color: var(--purple-lt);
  }
  nav a:last-child { border-bottom: none; }
}

/* ── PAGE HERO ── */
.page-hero {
  text-align: center;
  padding: 56px 24px 48px;
  position: relative; z-index: 5;
}
.page-hero-icon {
  font-size: 56px;
  display: block; margin-bottom: 16px;
  filter: drop-shadow(0 0 20px #c084fc66);
}
.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--purple-lt);
  margin-bottom: 12px;
}
.page-hero p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  color: var(--muted);
  font-style: italic;
  max-width: 560px;
  margin: 0 auto;
}

/* ── MAIN ── */
main {
  position: relative; z-index: 5;
  max-width: 980px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* ── CARDS GRID ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* ── CARD ── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}
.card::before {
  content:'';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--purple), var(--petal), var(--gold));
  opacity: 0; transition: opacity 0.3s;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(124,58,237,0.25);
  border-color: rgba(167,139,250,0.4);
}
.card:hover::before { opacity: 1; }
.card-emoji { font-size: 28px; margin-bottom: 12px; display: block; }
.card-tag {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 8px;
  font-family: 'Cormorant Garamond', serif;
}
.card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.35;
}
.card p { font-size: 0.95rem; color: var(--muted); line-height: 1.65; }
.card-date { margin-top: 14px; font-size: 0.78rem; color: rgba(167,139,250,0.45); font-style: italic; }
.card-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 14px; font-size: 0.85rem;
  color: var(--purple-lt); text-decoration: none;
  transition: gap 0.2s;
}
.card-link:hover { gap: 10px; }

/* ── FEATURED CARD ── */
.card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px; align-items: start;
  background: linear-gradient(135deg, #1f1035, #1a1126);
}
.card.featured .card-big-emoji {
  font-size: 64px; line-height: 1;
  filter: drop-shadow(0 0 20px #c084fc66);
}

/* ── COMING SOON ── */
.coming-soon {
  text-align: center;
  padding: 56px 32px;
  border: 1px dashed rgba(167,139,250,0.25);
  border-radius: var(--radius);
  color: var(--muted);
}
.coming-soon .cs-emoji { font-size: 48px; margin-bottom: 16px; display: block; }
.coming-soon h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem; color: var(--purple-lt); margin-bottom: 10px;
}
.coming-soon p { max-width: 480px; margin: 0 auto; font-style: italic; }

/* ── SECTION LABEL ── */
.section-label {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 32px;
}
.section-label h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; color: var(--purple-lt); white-space: nowrap;
}
.section-label-line {
  flex:1; height:1px;
  background: linear-gradient(90deg, var(--purple), transparent);
}

/* ── PROSE (for blog posts) ── */
.prose {
  max-width: 720px; margin: 0 auto;
  font-size: 1.05rem; line-height: 1.85;
  color: var(--text);
}
.prose h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem; color: var(--purple-lt);
  margin: 40px 0 16px;
}
.prose p { margin-bottom: 20px; }
.prose blockquote {
  border-left: 3px solid var(--petal);
  padding: 16px 24px;
  margin: 28px 0;
  background: rgba(124,58,237,0.08);
  border-radius: 0 12px 12px 0;
  font-style: italic; color: var(--muted);
}

/* ── ABOUT STRIP ── */
.about-strip {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px; align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
  margin-bottom: 64px;
}
.about-avatar {
  width: 100px; height: 100px; border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #c084fc);
  display: flex; align-items: center; justify-content: center;
  font-size: 52px; flex-shrink: 0;
  box-shadow: 0 0 30px rgba(192,132,252,0.3);
}

/* ── SCROLL TO TOP ── */
#scrollTop {
  position: fixed; bottom: 28px; right: 28px; z-index: 200;
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--petal));
  border: none; font-size: 20px; cursor: none;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s;
  box-shadow: 0 4px 20px rgba(124,58,237,0.4);
}
#scrollTop.visible { opacity: 1; transform: translateY(0); }

/* ── FADE IN ── */
.fade-in {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── FOOTER ── */
footer {
  position: relative; z-index: 5;
  text-align: center;
  padding: 40px 24px;
  border-top: 1px solid var(--border);
  background: rgba(13,10,18,0.92);
}
.footer-cats { font-size: 22px; letter-spacing: 8px; margin-bottom: 10px; }
.footer-floral { font-size: 12px; letter-spacing: 6px; color: rgba(167,139,250,0.28); margin-bottom: 12px; }
.copyright {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.88rem; color: var(--muted);
}
.copyright span { color: var(--petal); }
.footer-nav {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 16px;
  margin-bottom: 20px;
}
.footer-nav a {
  color: var(--muted); text-decoration: none; font-size: 0.82rem;
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 0.08em; text-transform: uppercase;
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--purple-lt); }

/* ── CAT PILL TAGS ── */
.cat-pills {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 40px;
}
.cat-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 18px; border-radius: 100px;
  border: 1px solid var(--border);
  background: rgba(124,58,237,0.1);
  color: var(--purple-lt); font-size: 0.85rem;
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 0.05em; text-decoration: none;
  transition: all 0.3s;
}
.cat-pill:hover {
  background: rgba(124,58,237,0.28);
  border-color: var(--petal);
  transform: translateY(-2px);
}

/* ── CONTACT ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: start;
}
.contact-form-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
}
.contact-form-wrap h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem; color: var(--purple-lt);
  margin-bottom: 8px;
}
.contact-form-wrap p { color: var(--muted); font-style: italic; margin-bottom: 28px; }

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; margin-bottom: 7px;
  font-size: 0.82rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold);
  font-family: 'Cormorant Garamond', serif;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 12px 16px;
  background: rgba(124,58,237,0.08);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text); font-family: 'Crimson Pro', serif;
  font-size: 1rem; outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  cursor: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--petal);
  box-shadow: 0 0 0 3px rgba(192,132,252,0.12);
}
.form-group textarea { resize: vertical; min-height: 130px; }

.btn-send {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 32px;
  background: linear-gradient(135deg, var(--purple), var(--petal));
  border: none; border-radius: 100px;
  color: #fff; font-family: 'Cormorant Garamond', serif;
  font-size: 1rem; letter-spacing: 0.1em;
  text-transform: uppercase; cursor: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(124,58,237,0.35);
}
.btn-send:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(124,58,237,0.5); }

.contact-info-wrap { display: flex; flex-direction: column; gap: 20px; }
.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  transition: transform 0.3s, border-color 0.3s;
}
.contact-card:hover { transform: translateY(-3px); border-color: rgba(167,139,250,0.4); }
.contact-card-icon { font-size: 28px; margin-bottom: 8px; display: block; }
.contact-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem; color: var(--purple-lt); margin-bottom: 4px;
}
.contact-card p { font-size: 0.92rem; color: var(--muted); }
.contact-card a { color: var(--petal); text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }

.success-msg {
  display: none;
  text-align: center; padding: 20px;
  background: rgba(124,58,237,0.15);
  border: 1px solid var(--petal);
  border-radius: 12px; margin-top: 16px;
  color: var(--purple-lt); font-style: italic;
}

/* ── HOME HERO ── */
.home-hero {
  text-align: center;
  padding: 56px 32px;
  background: linear-gradient(135deg, rgba(124,58,237,0.1), rgba(192,132,252,0.05));
  border: 1px solid var(--border);
  border-radius: 24px;
  margin-bottom: 64px;
  position: relative; overflow: hidden;
}
.home-hero::before {
  content:'🌸 🌿 🌺 🌿 🌸 🌿 🌺 🌿 🌸 🌿 🌺 🌿 🌸 🌿 🌺 🌿';
  position: absolute; top: 0; left: 0; right: 0;
  font-size: 12px; letter-spacing: 4px;
  opacity: 0.2; padding: 5px 0; text-align: center;
  background: rgba(124,58,237,0.15);
}
.home-hero::after {
  content:'🌸 🌿 🌺 🌿 🌸 🌿 🌺 🌿 🌸 🌿 🌺 🌿 🌸 🌿 🌺 🌿';
  position: absolute; bottom: 0; left: 0; right: 0;
  font-size: 12px; letter-spacing: 4px;
  opacity: 0.2; padding: 5px 0; text-align: center;
  background: rgba(124,58,237,0.15);
}
.home-hero .hero-cats { font-size: 36px; margin-bottom: 16px; }
.home-hero h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 400; font-style: italic;
  color: var(--purple-lt); margin-bottom: 16px;
}
.home-hero p { color: var(--muted); max-width: 580px; margin: 0 auto; font-size: 1.05rem; font-style: italic; }

/* ── SAY HELLO STRIP (home) ── */
.say-hello {
  text-align: center;
  padding: 64px 32px;
  background: linear-gradient(135deg, rgba(124,58,237,0.14), rgba(212,168,83,0.06));
  border: 1px solid var(--border);
  border-radius: 24px;
  margin-top: 64px;
}
.say-hello h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--purple-lt); margin-bottom: 14px;
}
.say-hello p { color: var(--muted); font-style: italic; max-width: 480px; margin: 0 auto 28px; }
.btn-hello {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 36px;
  background: linear-gradient(135deg, var(--purple), var(--petal));
  border-radius: 100px; color: #fff;
  text-decoration: none;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem; letter-spacing: 0.12em; text-transform: uppercase;
  box-shadow: 0 4px 24px rgba(124,58,237,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-hello:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(124,58,237,0.55); }

/* ── HOME SECTION PREVIEWS ── */
.home-section { margin-bottom: 64px; }
.home-section-header {
  display: flex; align-items: center; gap: 14px; margin-bottom: 28px;
}
.home-section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; color: var(--purple-lt); white-space: nowrap;
}
.home-section-line { flex:1; height:1px; background: linear-gradient(90deg, var(--purple), transparent); }
.home-section-link {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem; color: var(--gold);
  text-decoration: none; letter-spacing: 0.1em;
  text-transform: uppercase; white-space: nowrap;
  transition: color 0.2s;
}
.home-section-link:hover { color: var(--petal); }

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
  .card.featured { grid-template-columns: 1fr; }
  .about-strip { grid-template-columns: 1fr; text-align: center; }
  .about-avatar { margin: 0 auto; }
  nav a { padding: 12px 10px; font-size: 0.78rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 28px 20px; }
}
