/* ============================================================
   Vydyula family site — shared styles
   Modern, colorful, glassmorphic — festival-inspired palette
   (Holi / Diwali jewel tones: violet, magenta, marigold, saffron)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500&family=Outfit:wght@400;500;600;700;800&family=Karla:wght@400;500;600&display=swap');

:root {
  /* base surfaces */
  --indigo-950: #1a0b38;
  --indigo-900: #2c1157;
  --indigo-800: #431a75;
  --indigo-700: #6423a3;

  /* festival accent spectrum */
  --violet: #7b2ff7;
  --magenta: #e93d82;
  --rose: #ff5f7e;
  --orange: #ff8a3d;
  --gold-500: #ffc23c;
  --gold-400: #ffdd7a;
  --teal: #24c6b7;

  --ivory-100: #fffaf3;
  --ivory-200: #ffe6cf;

  --line: rgba(255, 255, 255, 0.16);
  --glass: rgba(255, 255, 255, 0.07);
  --glass-strong: rgba(255, 255, 255, 0.12);
  --shadow: 0 20px 50px rgba(60, 10, 90, 0.45);
  --radius: 20px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ivory-100);
  font-family: 'Karla', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  min-height: 100vh;
  background:
    radial-gradient(1100px 700px at 8% -10%, rgba(255, 194, 60, 0.35), transparent 55%),
    radial-gradient(900px 650px at 100% 0%, rgba(233, 61, 130, 0.4), transparent 55%),
    radial-gradient(1000px 800px at 50% 120%, rgba(36, 198, 183, 0.28), transparent 60%),
    linear-gradient(160deg, #24103f 0%, #431a75 45%, #7b2ff7 78%, #e93d82 115%);
  background-attachment: fixed;
}

h1, h2, h3, .display {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ivory-100);
  margin: 0 0 0.4em;
}

a { color: var(--gold-400); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--gold-400);
  outline-offset: 3px;
}

img { max-width: 100%; display: block; }

/* ---- Site header / nav ---- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem clamp(1.2rem, 4vw, 3rem);
  background: rgba(26, 11, 56, 0.45);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-mark {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  background: linear-gradient(90deg, var(--gold-400), var(--rose) 60%, var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-mark span {
  font-family: 'Karla', sans-serif;
  font-size: 0.6rem;
  color: var(--ivory-200);
  -webkit-text-fill-color: var(--ivory-200);
  letter-spacing: 0.14em;
  font-weight: 600;
  opacity: 0.8;
}

.site-nav {
  display: flex;
  gap: clamp(0.9rem, 3vw, 1.8rem);
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--ivory-100);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
}

.site-nav a:hover {
  color: var(--ivory-100);
  background: var(--glass-strong);
  border-color: var(--line);
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  background: linear-gradient(90deg, var(--magenta), var(--orange));
  color: #fff;
  text-decoration: none;
}

/* ---- Layout shells ---- */

main { padding: clamp(2rem, 5vw, 4rem) clamp(1.2rem, 4vw, 3rem) 5rem; max-width: 1200px; margin: 0 auto; }

.page-head { max-width: 640px; margin-bottom: 2.8rem; }

.page-head .kicker {
  display: inline-block;
  color: var(--indigo-950);
  background: linear-gradient(90deg, var(--gold-500), var(--orange));
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}

.page-head h1 {
  font-size: clamp(2.3rem, 5.5vw, 3.4rem);
  background: linear-gradient(100deg, var(--ivory-100) 20%, var(--gold-400) 55%, var(--rose) 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-head p { color: var(--ivory-200); max-width: 55ch; }

.divider {
  width: 72px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-500), var(--magenta));
  border: none;
  margin: 1.5rem 0 0;
}

footer {
  text-align: center;
  padding: 2.5rem 1rem 3rem;
  color: rgba(255, 250, 243, 0.55);
  font-size: 0.85rem;
  border-top: 1px solid var(--line);
}

/* ---- Cards / grid ---- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.7rem;
}

.card {
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 194, 60, 0.55);
  box-shadow: 0 16px 40px rgba(233, 61, 130, 0.35);
}

.card .frame {
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, rgba(255,194,60,0.18), rgba(233,61,130,0.18));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 250, 243, 0.55);
  font-size: 0.8rem;
  text-align: center;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
}

.card .frame img { width: 100%; height: 100%; object-fit: cover; }

.card .info { padding: 1rem 1.15rem 1.25rem; }
.card .info h3 { font-size: 1.2rem; margin-bottom: 0.2rem; }
.card .info p { margin: 0; font-size: 0.88rem; color: var(--ivory-200); }

/* ---- Link list (devotional page) ---- */

.link-list { list-style: none; margin: 0; padding: 0; max-width: 680px; display: flex; flex-direction: column; gap: 0.9rem; }

.link-list li {
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.2rem 1.4rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.link-list li:hover {
  transform: translateX(4px);
  border-color: rgba(36, 198, 183, 0.5);
}

.link-list a {
  color: var(--ivory-100);
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
}
.link-list a:hover { color: var(--gold-400); }

.link-list p {
  margin: 0.3rem 0 0;
  color: var(--ivory-200);
  font-size: 0.9rem;
}

/* ---- Buttons ---- */

.btn {
  display: inline-block;
  background: linear-gradient(90deg, var(--gold-500), var(--orange), var(--magenta));
  background-size: 200% 100%;
  color: #2b0b38;
  font-weight: 700;
  padding: 0.8rem 1.7rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.01em;
  transition: background-position 0.35s ease, transform 0.2s ease;
}
.btn:hover { background-position: 100% 0; transform: translateY(-2px); text-decoration: none; }

/* ---- Home hero ---- */

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 3rem;
}

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; }
}

.hero .om {
  font-size: clamp(5rem, 14vw, 9rem);
  text-align: center;
  line-height: 1;
  background: linear-gradient(160deg, var(--gold-400), var(--magenta) 60%, var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 10px 30px rgba(233, 61, 130, 0.35));
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.7rem;
  margin-top: 1rem;
}

.tile {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}

.tile::before {
  content: "";
  position: absolute;
  inset: -40% -40% auto auto;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(255,194,60,0.35), transparent 70%);
  border-radius: 50%;
}

.tile:hover { transform: translateY(-5px); border-color: rgba(255, 194, 60, 0.5); }

.tile h3 { font-size: 1.45rem; margin-bottom: 0.4rem; }
.tile p { color: var(--ivory-200); font-size: 0.92rem; margin-bottom: 1rem; }
.tile a.more { font-size: 0.85rem; font-weight: 700; color: var(--gold-400); }
