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

:root {
  --bg-dark: #0f172a;
  --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --text-main: #f8fafc;
  --text-muted: #d3d7de;
  --primary: #8b5cf6;
  --primary-hover: #7c3aed;
  --accent: #38bdf8;
  --error: #ef4444;
  --success: #10b981;
  --border-radius: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg-dark);
}

body {
  font-family: 'Outfit', sans-serif;
  background: transparent;
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ─────────────────────────────────────────── */
h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2rem;
  background: linear-gradient(to right, var(--text-main), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: 2rem;
}

p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
}

.spiritual-title-text {
  font-family: 'Philosopher', sans-serif;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  margin-bottom: 3.5rem;
  background: linear-gradient(135deg, var(--text-main) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  flex-direction: column;
  font-size: clamp(3.5rem, 15vw, 6rem);
  letter-spacing: 0.02em;
}

/* ── Layout ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Navigation ─────────────────────────────────────────── */
.navbar {
  padding: 1.5rem 0;
  position: relative;
  z-index: 100;
  background: transparent;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.free-calc-badge {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--accent);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.9rem;
  transition: var(--transition);
  background: rgba(56, 189, 248, 0.1);
}

.free-calc-badge:hover {
  background: var(--accent);
  color: var(--bg-dark);
}

.brand {
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-main);
}

.lang-switch {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

.lang-switch:hover {
  color: var(--text-main);
}

/* ── Main Content ───────────────────────────────────────── */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ── Glassmorphism Card ─────────────────────────────────── */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 3rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  animation: fadeUp 0.6s ease-out forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  background: var(--primary);
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.125rem;
  border-radius: 99px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 14px 0 rgba(139, 92, 246, 0.39);
}

.btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--glass-border);
  box-shadow: none;
}

.btn-secondary:hover {
  background: var(--glass-bg);
  border-color: var(--text-muted);
}

.btn-full {
  width: 100%;
}

/* ── Forms ──────────────────────────────────────────────── */
fieldset {
  border: none;
  margin-bottom: 2rem;
}

legend {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 1.5rem;
  padding: 0;
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

input[type="text"],
input[type="email"],
input[type="date"],
select {
  width: 100%;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-main);
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  transition: var(--transition);
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

small {
  display: block;
  margin-top: 0.5rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Fix for date inputs in dark mode on some browsers */
::-webkit-calendar-picker-indicator {
  filter: invert(1);
  opacity: 0.7;
  cursor: pointer;
}

::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

select option {
  background: var(--bg-dark);
  color: var(--text-main);
}

/* ── Utilities ──────────────────────────────────────────── */
.text-center {
  text-align: center;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-8 {
  margin-top: 2rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.error-box {
  background: rgba(239, 68, 68, 0.1);
  border-left: 4px solid var(--error);
  color: #fca5a5;
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 2rem;
}

.success-box {
  background: rgba(16, 185, 129, 0.1);
  border-left: 4px solid var(--success);
  color: #6ee7b7;
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 2rem;
}

/* ── Copy Input ─────────────────────────────────────────── */
.copy-group {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.copy-group input {
  flex: 1;
  margin-bottom: 0;
}

.copy-group .btn {
  padding: 0 1.5rem;
  border-radius: 8px;
}

/* ── Footer ─────────────────────────────────────────────── */
footer {
  text-align: center;
  padding: 2rem 0;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .spiritual-title-text {
    margin-bottom: 1rem;
  }

  h1 {
    font-size: 2.5rem;
  }

  .glass-card {
    padding: 2rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .floating-boxes {
    flex-direction: column;
  }
}

/* ── Home Page Redesign ─────────────────────────────────── */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: transparent;
  margin-top: -85px;
  /* Pull up under transparent navbar */
  padding-top: 85px;
}

#global-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.3);
  z-index: -1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 2rem;
  animation: fadeUp 1s ease-out forwards;
}

.hero-subtitle {
  font-size: 1.05rem;
  margin-top: 2rem;
  color: #cbd5e0;
}

.scroll-down-arrow {
  margin-top: 3rem;
  animation: bounce 2s infinite;
}

.scroll-down-arrow a {
  color: var(--text-main);
  opacity: 0.7;
  transition: opacity 0.3s;
}

.scroll-down-arrow a:hover {
  opacity: 1;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-15px);
  }

  60% {
    transform: translateY(-7px);
  }
}

.quotes-section {
  padding: 6rem 2rem;
}

.floating-boxes {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.quote-box {
  padding: 2.5rem 2rem;
  width: 85%;
}

.quote-box:nth-child(1),
.quote-box:nth-child(3) {
  align-self: flex-start;
}

.quote-box:nth-child(2) {
  align-self: flex-end;
}

.quote-box p {
  font-size: 1rem;
  font-style: italic;
}

.quote-box small {
  display: block;
  text-align: right;
  color: var(--primary);
  font-weight: 600;
  margin-top: 1rem;
}

.content-section {
  padding: 2rem;
  margin-bottom: 4rem;
}

.text-content {
  max-width: 800px;
  margin: 0 auto;
}

.text-content p {
  text-align: justify;
}

.animate-on-scroll {
  animation: none !important;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Procedural Canvas Background ── */
#parallax-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 130vh;
  /* Taller to allow parallax scroll room */
  background: url('/images/background.jpg') no-repeat bottom center / cover;
  z-index: -3;
  /* Behind canvas */
  pointer-events: none;
  transition: transform 0.1s ease-out;
  /* Smooth parallax */
}

#cosmic-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
}

.fade-in-up {
  animation: fadeUp 0.8s ease-out forwards;
}