/* Royal Purple + Gold palette */
:root {
  --royal:#1B0B2E; --royal2:#2A1245; --gold:#D4AF37; --champ:#E8D39A; --ink:#F8F3FF; --lilac:#D6C6E8;
  /* tiny scattered stars, tiled */
  --stars:
    radial-gradient(1px 1px at 22px 34px, rgba(248,243,255,.55), transparent),
    radial-gradient(1px 1px at 148px 92px, rgba(232,211,154,.45), transparent),
    radial-gradient(1.5px 1.5px at 84px 168px, rgba(248,243,255,.35), transparent),
    radial-gradient(1px 1px at 214px 206px, rgba(214,198,232,.4), transparent),
    radial-gradient(1px 1px at 262px 46px, rgba(248,243,255,.3), transparent),
    radial-gradient(1.2px 1.2px at 186px 150px, rgba(232,211,154,.3), transparent);
  /* faint gold constellation line-art */
  --constellation: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='420' fill='none' stroke='%23D4AF37' stroke-opacity='.1' stroke-width='.8'%3E%3Cpath d='M40 80L120 50 190 96 260 70M190 96L210 170 300 200M360 300L420 260 470 300 440 360 380 350Z'/%3E%3Cg fill='%23E8D39A' fill-opacity='.28' stroke='none'%3E%3Ccircle cx='40' cy='80' r='1.8'/%3E%3Ccircle cx='120' cy='50' r='1.4'/%3E%3Ccircle cx='190' cy='96' r='2'/%3E%3Ccircle cx='260' cy='70' r='1.4'/%3E%3Ccircle cx='210' cy='170' r='1.6'/%3E%3Ccircle cx='300' cy='200' r='1.8'/%3E%3Ccircle cx='360' cy='300' r='1.6'/%3E%3Ccircle cx='420' cy='260' r='2'/%3E%3Ccircle cx='470' cy='300' r='1.4'/%3E%3Ccircle cx='440' cy='360' r='1.6'/%3E%3Ccircle cx='380' cy='350' r='1.4'/%3E%3C/g%3E%3C/svg%3E");
}
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family:'Plus Jakarta Sans','Noto Sans Devanagari',sans-serif; background:var(--royal); color:var(--ink); overflow-x:hidden; }
section { scroll-margin-top: 70px; }
.font-deva { font-family:'Noto Sans Devanagari',sans-serif; }

.gold-text {
  background: linear-gradient(100deg,#B8912A 0%,#E8D39A 30%,#D4AF37 52%,#F4E6BC 70%,#B8912A 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.gold-btn {
  background: linear-gradient(135deg,#E8D39A 0%,#D4AF37 55%,#BF9A2E 100%);
  color:var(--royal); box-shadow: 0 8px 22px -12px rgba(212,175,55,.55);
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}
.gold-btn:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 12px 26px -12px rgba(212,175,55,.65); }
.ghost-btn { border:1px solid rgba(212,175,55,.55); color:var(--champ); transition: background .25s ease, border-color .25s ease; }
.ghost-btn:hover { background: rgba(212,175,55,.1); border-color: var(--gold); }

/* Glass navbar */
.glass { background: rgba(27,11,46,.8); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); }
.nav-scrolled { box-shadow: 0 10px 30px -14px rgba(0,0,0,.7); border-bottom-color: rgba(212,175,55,.3) !important; }

/* Ornamental divider */
.ornament { display:flex; align-items:center; gap:.75rem; justify-content:center; color:var(--champ); }
.ornament::before, .ornament::after { content:""; height:1px; width:3.5rem; background: linear-gradient(90deg, transparent, var(--gold), transparent); }

/* Hero */
.hero-bg { background:
  var(--stars),
  radial-gradient(ellipse at 72% 38%, rgba(120,64,180,.32), transparent 55%),
  radial-gradient(ellipse at 18% 85%, rgba(212,175,55,.06), transparent 50%),
  linear-gradient(180deg,#1B0B2E 0%,#22103A 60%,#1B0B2E 100%);
  background-size: 290px 250px, auto, auto, auto; }
.mandala-wrap { width: min(150vw, 980px); aspect-ratio: 1; color: var(--gold); opacity:.14; will-change: transform; }
.spin-slow { animation: spin 140s linear infinite; }
.spin-rev { animation: spin 60s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Portrait */
.portrait-ring { padding:6px; border-radius:9999px; background: conic-gradient(from 0deg,#8A6A12,#E8D39A,#D4AF37,#B8912A,#E8D39A,#8A6A12);
  box-shadow: 0 0 0 12px rgba(212,175,55,.04), 0 0 90px 6px rgba(130,80,200,.35); }
.portrait-ring img { border:4px solid var(--royal); }
.arch-frame { position:relative; padding:6px; border-radius:999px 999px 28px 28px; background: linear-gradient(160deg,#E8D39A,#D4AF37 45%,#B8912A 80%,#8A6A12); box-shadow: 0 30px 60px -28px rgba(0,0,0,.7), 0 0 70px -10px rgba(130,80,200,.3); }
.arch-frame img { display:block; border-radius:999px 999px 22px 22px; border:3px solid var(--royal2); }
.arch-shadow { position:absolute; inset:0; transform: translate(14px,14px); border-radius:999px 999px 28px 28px; border:1px solid rgba(212,175,55,.35); }
.portrait-orbit { position:absolute; inset:-18px; border-radius:9999px; border:1px dashed rgba(212,175,55,.4); }
.portrait-orbit::after { content:""; position:absolute; top:-4px; left:50%; width:8px; height:8px; margin-left:-4px; border-radius:9999px; background:var(--champ); box-shadow:0 0 10px 2px rgba(232,211,154,.5); }

/* Cards (purple glass) */
.lux-card, .glass-card { background: linear-gradient(160deg, rgba(62,32,98,.55), rgba(36,15,60,.55)); border:1px solid rgba(212,175,55,.22);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.lux-card { transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease; }
.lux-card:hover { transform: translateY(-4px); border-color: rgba(212,175,55,.5); box-shadow: 0 22px 44px -26px rgba(0,0,0,.75); }
/* Main service cards */
.svc-card { position:relative; }
.svc-featured { border-color: rgba(212,175,55,.55);
  background: linear-gradient(160deg, rgba(92,52,140,.6), rgba(40,17,66,.6)); box-shadow: 0 26px 50px -30px rgba(212,175,55,.35); }
.svc-featured::before { content:""; position:absolute; left:24px; right:24px; top:0; height:2px; border-radius:2px;
  background: linear-gradient(90deg, transparent, #E8D39A, #D4AF37, #E8D39A, transparent); }
.svc-badge { position:absolute; top:-12px; right:22px; display:inline-flex; align-items:center; gap:.35rem;
  background: linear-gradient(135deg,#E8D39A,#D4AF37); color:var(--royal); font-size:11px; font-weight:700;
  letter-spacing:.08em; text-transform:uppercase; padding:.3rem .75rem; border-radius:999px; box-shadow: 0 6px 16px -8px rgba(212,175,55,.7); }
.icon-orb { background: radial-gradient(circle at 30% 30%, rgba(232,211,154,.18), rgba(212,175,55,.04)); border:1px solid rgba(212,175,55,.4); color: var(--champ); }
.pattern-dark { background-color: var(--royal); background-image: var(--stars); background-size: 290px 250px; }
.pattern-alt  { background-color: var(--royal2); background-image: var(--constellation), var(--stars); background-size: 520px 420px, 290px 250px; }

/* Timeline */
.tl-track { position:absolute; left:27px; top:0; bottom:0; width:2px; background: rgba(214,198,232,.15); }
.tl-fill  { position:absolute; inset:0; background: linear-gradient(180deg,#E8D39A,#D4AF37,#B8912A); transform-origin: top; box-shadow: 0 0 8px rgba(212,175,55,.45); }
.tl-dot { transition: background .4s ease, color .4s ease, box-shadow .4s ease; }
.tl-dot.active { background: linear-gradient(135deg,#E8D39A,#D4AF37); color:var(--royal); box-shadow: 0 0 0 6px rgba(212,175,55,.14); }

/* Form */
.field { width:100%; background:rgba(27,11,46,.65); border:1px solid rgba(214,198,232,.22); border-radius:14px; padding:.85rem 1rem; color:var(--ink); font-size:16px; outline:none; color-scheme: dark; transition: border-color .2s, box-shadow .2s; }
.field::placeholder { color: rgba(214,198,232,.5); }
.field option { background: var(--royal); color: var(--ink); }
.field:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(212,175,55,.15); }
.field-label { display:block; font-size:.82rem; font-weight:600; color:var(--champ); margin-bottom:.35rem; }

#particles { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; }

.wa-float { box-shadow: 0 10px 26px -8px rgba(37,211,102,.55); animation: pulse 3s ease-in-out infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.04); } }

/* Opening intro: the SJK logo, drawn entirely in SVG and animated part by part
   (first visit per session only). Pure CSS timeline, so it always ends even if scripts fail. */
#intro { display:none; }
.show-intro #intro { display:flex; position:fixed; inset:0; z-index:100; align-items:center; justify-content:center;
  background: radial-gradient(ellipse at 50% 50%, #34175A 0%, #1B0B2E 55%, #0D0416 100%);
  animation: introOut .75s cubic-bezier(.7,0,.3,1) 3.3s forwards; }
#intro.skip { animation: introOutFast .4s ease forwards; }
@keyframes introOut     { to { transform: translateY(-100%); visibility:hidden; } }
@keyframes introOutFast { to { opacity:0; visibility:hidden; } }
/* Badge colours — logo green by default; e.g. #2A1245 / #12061F for a purple badge */
#intro { --lg-disc1:#163A1F; --lg-disc2:#06140A; }
.lg-wrap { position:relative; width:min(84vw, 460px); }
.lg-wrap::before { content:""; position:absolute; inset:-12%; border-radius:50%; z-index:-1;
  background: radial-gradient(circle, rgba(255,194,26,.28), rgba(255,194,26,0) 62%); animation: lgFade 1.2s ease .2s both; }
.lg-art { width:100%; height:auto; display:block; overflow:visible; }
.lg-art text { font-family:'Cinzel', serif; }
.lg-band text { font-family:'Noto Sans Symbols','Segoe UI Symbol','Apple Symbols',serif; font-size:25px; fill:#E9B84B; text-anchor:middle; }
.lg-surya { font-size:106px; font-weight:700; fill:url(#lgText); stroke:#8A5200; stroke-width:1; paint-order:stroke; }
.lg-sub text { font-size:30px; font-weight:600; fill:#F7ECD0; }
.lg-tag { font-family:'Cormorant Garamond', Georgia, serif !important; font-style:italic; font-weight:600; font-size:36px; fill:url(#lgText); }
.lg-om { font-family:'Noto Sans Devanagari', sans-serif !important; font-weight:700; font-size:88px; fill:#E2471A; }

/* timeline */
.lg-draw { stroke-dasharray:1; stroke-dashoffset:1; animation: lgDraw var(--t,1s) ease-out var(--d,0s) forwards; }
@keyframes lgDraw { to { stroke-dashoffset:0; } }
.lg-disc { transform-box:fill-box; transform-origin:center; animation: lgGrow .8s cubic-bezier(.2,.8,.2,1) .1s both; }
.lg-pop  { transform-box:fill-box; transform-origin:center; animation: lgPop .45s cubic-bezier(.3,1.6,.5,1) var(--d) both; }
.lg-ray  { transform-origin:0 0; animation: lgRay .6s cubic-bezier(.3,1.4,.5,1) var(--d) both; }
.lg-rays { transform-origin:0 0; animation: lgSpin 50s linear 1.6s infinite; }
.lg-core { transform-origin:0 0; animation: lgPop .7s cubic-bezier(.3,1.5,.5,1) .6s both; }
.lg-halo { opacity:0; filter: blur(22px); animation: lgHalo 2.4s ease-in-out 1s infinite alternate; }
.lg-om   { transform-box:fill-box; transform-origin:center; filter: drop-shadow(0 0 6px rgba(255,120,40,.65)); animation: lgPop .6s cubic-bezier(.3,1.6,.5,1) 1.15s both; }
.lg-surya{ transform-box:fill-box; transform-origin:center; animation: lgRise .8s cubic-bezier(.2,.8,.2,1) 1.3s both; }
.lg-sub  { animation: lgFade .6s ease 1.55s both; }
.lg-mini { transform-box:fill-box; transform-origin:center; animation: lgPop .5s cubic-bezier(.3,1.6,.5,1) 1.75s both; }
.lg-tag  { animation: lgFade .7s ease 1.95s both; }
.lg-foot path:not(.lg-draw) { animation: lgFade .5s ease 2.2s both; }
.lg-spark{ transform-box:fill-box; transform-origin:center; animation: lgTwinkle 1.6s ease-in-out var(--d) infinite both; }
.lg-shine{ animation: lgShine 1.1s ease-in-out 2.35s both; }
@keyframes lgGrow { from { opacity:0; transform:scale(.86); } to { opacity:1; transform:none; } }
@keyframes lgPop  { from { opacity:0; transform:scale(.3); } to { opacity:1; transform:none; } }
@keyframes lgRay  { from { opacity:0; transform:scale(.2); } to { opacity:1; transform:none; } }
@keyframes lgSpin { to { transform: rotate(360deg); } }
@keyframes lgHalo { from { opacity:.12; } to { opacity:.32; } }
@keyframes lgRise { from { opacity:0; transform: translateY(18px) scale(.94); letter-spacing:.2em; } to { opacity:1; transform:none; } }
@keyframes lgFade { from { opacity:0; } to { opacity:1; } }
@keyframes lgTwinkle { 0%,100% { opacity:.15; transform:scale(.6); } 50% { opacity:1; transform:scale(1); } }
@keyframes lgShine { from { transform: skewX(-18deg) translateX(0); } to { transform: skewX(-18deg) translateX(1000px); } }
.intro-line { opacity:0; animation: introFade .7s ease-out forwards; }
@keyframes introFade { from { opacity:0; transform: translateY(10px); } to { opacity:1; transform: none; } }
#introSkip { position:absolute; right:18px; bottom:22px; font-size:12px; letter-spacing:.2em; text-transform:uppercase;
  color: rgba(232,211,154,.75); border:1px solid rgba(212,175,55,.35); border-radius:999px; padding:.45rem 1rem; }
#introSkip:hover { color: var(--champ); border-color: var(--gold); }

@media (prefers-reduced-motion: reduce) {
  .spin-slow, .spin-rev, .wa-float { animation: none; }
  html { scroll-behavior: auto; }
  .show-intro #intro { display:none; }
}
