*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-deep: #050510;
  --bg-space: #0a0a1a;
  --text: #e8e4f0;
  --text-muted: #9b93b0;
  --gold: #d4af37;
  --gold-light: #f0d78c;
  --glass: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Montserrat', system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ── Cosmos canvas ── */
#cosmos {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── Aurora layers ── */
.aurora {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.35;
  filter: blur(80px);
}

.aurora-1 {
  background:
    radial-gradient(ellipse 60% 40% at 20% 30%, rgba(120, 60, 200, 0.5), transparent),
    radial-gradient(ellipse 50% 35% at 80% 60%, rgba(60, 120, 220, 0.4), transparent);
  animation: aurora-drift 18s ease-in-out infinite alternate;
}

.aurora-2 {
  background:
    radial-gradient(ellipse 45% 30% at 60% 20%, rgba(200, 80, 160, 0.3), transparent),
    radial-gradient(ellipse 40% 40% at 30% 80%, rgba(80, 200, 220, 0.25), transparent);
  animation: aurora-drift 22s ease-in-out infinite alternate-reverse;
}

@keyframes aurora-drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(3%, -2%) scale(1.05); }
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Hero ── */
.hero {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem 4rem;
}

.hero-orbit {
  position: absolute;
  width: 320px;
  height: 320px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  pointer-events: none;
}

.orbit-ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 50%;
  animation: orbit-spin 30s linear infinite;
}

.orbit-ring--2 {
  inset: -30px;
  border-color: rgba(192, 132, 252, 0.1);
  animation-duration: 45s;
  animation-direction: reverse;
}

.orbit-dot {
  position: absolute;
  top: 0;
  left: 50%;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  background: var(--gold-light);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--gold-light), 0 0 30px rgba(212, 175, 55, 0.5);
  animation: orbit-spin 30s linear infinite;
}

@keyframes orbit-spin {
  to { transform: rotate(360deg); }
}

.hero-photo-wrap {
  position: relative;
  margin-bottom: 2rem;
}

.hero-photo-glow {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(192, 132, 252, 0.3), rgba(103, 232, 249, 0.1), transparent 70%);
  animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

.hero-photo {
  position: relative;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(212, 175, 55, 0.4);
  box-shadow:
    0 0 40px rgba(192, 132, 252, 0.3),
    0 0 80px rgba(103, 232, 249, 0.15),
    inset 0 0 30px rgba(0, 0, 0, 0.5);
}

.hero-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}

.hero-photo-fallback {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1035 0%, #0d2040 50%, #1a0a2e 100%);
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 0.1em;
}

.hero-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
  opacity: 0;
  animation: fade-up 1s ease 0.3s forwards;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 400;
  line-height: 1.15;
  background: linear-gradient(135deg, #fff 0%, var(--gold-light) 50%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  animation: fade-up 1s ease 0.5s forwards;
}

.hero-tagline {
  margin-top: 1rem;
  font-size: 0.95rem;
  font-weight: 300;
  font-style: italic;
  font-family: var(--font-display);
  color: var(--text-muted);
  opacity: 0;
  animation: fade-up 1s ease 0.7s forwards;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  animation: bob 2.5s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(8px); opacity: 1; }
}

/* ── Portal cards ── */
main {
  position: relative;
  z-index: 10;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.portal-grid {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 4rem;
}

.portal-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 1.75rem 2rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  cursor: pointer;
  text-align: left;
  color: inherit;
  font-family: inherit;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
              border-color 0.4s ease,
              box-shadow 0.4s ease;
  opacity: 0;
  transform: translateY(30px);
  animation: card-enter 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
  animation-delay: var(--delay);
}

.portal-card--wide {
  grid-column: 1 / -1;
}

@keyframes card-enter {
  to { opacity: 1; transform: translateY(0); }
}

.portal-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), color-mix(in srgb, var(--accent) 15%, transparent), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.portal-card:hover::before,
.portal-card:focus-visible::before {
  opacity: 1;
}

.portal-card:hover,
.portal-card:focus-visible {
  transform: translateY(-4px) scale(1.01);
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 40px color-mix(in srgb, var(--accent) 15%, transparent);
  outline: none;
}

.portal-icon {
  font-size: 1.5rem;
  color: var(--accent);
  text-shadow: 0 0 20px color-mix(in srgb, var(--accent) 60%, transparent);
}

.portal-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.3;
}

.portal-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 300;
}

.portal-shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent);
  animation: shimmer 6s ease-in-out infinite;
  animation-delay: var(--delay);
}

@keyframes shimmer {
  0%, 100% { left: -100%; }
  50% { left: 150%; }
}

/* ── CTA ── */
.cta-section {
  position: relative;
  text-align: center;
  padding: 3rem 0;
}

.cta-stars {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.08), transparent 70%);
  pointer-events: none;
}

.cta-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 2.5rem;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(192, 132, 252, 0.15));
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 100px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-glow {
  position: absolute;
  inset: -2px;
  border-radius: 100px;
  background: linear-gradient(135deg, var(--gold), #c084fc, #67e8f9);
  opacity: 0;
  z-index: -1;
  filter: blur(20px);
  transition: opacity 0.4s ease;
}

.cta-button:hover {
  transform: scale(1.04);
  box-shadow: 0 0 40px rgba(212, 175, 55, 0.25);
}

.cta-button:hover .cta-glow {
  opacity: 0.5;
}

.cta-arrow {
  transition: transform 0.3s ease;
}

.cta-button:hover .cta-arrow {
  transform: translateX(4px);
}

.phone-link {
  display: block;
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold-light);
  text-decoration: none;
  letter-spacing: 0.08em;
  transition: text-shadow 0.3s ease;
}

.phone-link:hover {
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

/* ── Footer ── */
.footer {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 2rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── Modals ── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  padding: 1rem;
  border: none;
  background: rgba(5, 5, 16, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.modal[open] {
  opacity: 1;
}

.modal::backdrop {
  background: transparent;
}

.modal-inner {
  position: relative;
  max-width: 560px;
  max-height: 85vh;
  margin: 5vh auto 0;
  padding: 2.5rem;
  background: linear-gradient(160deg, rgba(20, 15, 40, 0.95), rgba(10, 10, 30, 0.98));
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  overflow-y: auto;
  color: var(--text);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(192, 132, 252, 0.08);
  transform: translateY(30px) scale(0.97);
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.modal[open] .modal-inner {
  transform: translateY(0) scale(1);
}

.modal--wide .modal-inner {
  max-width: 680px;
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.modal-icon {
  font-size: 2rem;
  color: var(--gold);
}

.modal-header h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text);
}

.modal-body {
  color: var(--text);
}

.modal-lead {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.modal-list {
  list-style: none;
  margin-bottom: 1.5rem;
}

.modal-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(232, 228, 240, 0.88);
}

.modal-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.7rem;
  top: 0.15rem;
}

.modal-list strong {
  color: var(--gold-light);
  font-weight: 500;
}

.modal-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.modal-body p:last-of-type {
  margin-bottom: 1.5rem;
}

.modal-cta {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(192, 132, 252, 0.2));
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 100px;
  color: var(--gold-light);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: transform 0.2s, box-shadow 0.2s;
}

.modal-cta:hover {
  transform: scale(1.03);
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.2);
}

.modal-cta--center {
  display: block;
  text-align: center;
  margin-top: 1.5rem;
}

/* ── Chakra wheel ── */
.chakra-layout {
  display: grid;
  gap: 2rem;
}

.chakra-wheel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0;
}

.chakra-spine {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: linear-gradient(to bottom,
    #ef4444, #f97316, #eab308, #22c55e, #06b6d4, #6366f1, #a855f7);
  opacity: 0.3;
  border-radius: 2px;
}

.chakra-node {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 320px;
  padding: 0.5rem 1rem;
  background: transparent;
  border: none;
  cursor: pointer;
  color: inherit;
  font-family: inherit;
  text-align: left;
  border-radius: 12px;
  transition: background 0.3s ease;
}

.chakra-node:hover,
.chakra-node.active {
  background: rgba(255, 255, 255, 0.05);
}

.chakra-dot {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid currentColor;
  box-shadow: 0 0 15px currentColor;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.chakra-node:hover .chakra-dot,
.chakra-node.active .chakra-dot {
  transform: scale(1.2);
  box-shadow: 0 0 25px currentColor;
}

.chakra-node-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.chakra-node-sanskrit {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.chakra-info {
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  min-height: 100px;
  transition: border-color 0.3s ease;
}

.chakra-info.active {
  border-color: rgba(212, 175, 55, 0.3);
}

.chakra-info h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
  color: var(--text);
}

.chakra-info p,
.chakra-info li {
  font-size: 0.85rem;
  color: rgba(232, 228, 240, 0.88);
  line-height: 1.6;
}

.chakra-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.chakra-tag {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  border-radius: 100px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
}

.chakra-detail-section {
  margin-bottom: 1rem;
}

.chakra-detail-section h4 {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.chakra-detail-section p {
  margin: 0;
}

/* ── Responsive ── */
@media (min-width: 600px) {
  .hero-photo {
    width: 220px;
    height: 220px;
  }

  .hero-orbit {
    width: 400px;
    height: 400px;
  }

  .chakra-layout {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .chakra-wheel {
    padding: 0;
  }
}

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