/* ==========================================================================
   ZenSukti — Where Words Become Tranquility
   Design System & Custom Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,600&family=Noto+Serif+Devanagari:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Rozha+One&display=swap');

:root {
  /* Brand Color Palette */
  --color-sage: #6b826f;
  --color-sage-light: #8ca390;
  --color-sage-dark: #4b624f;
  --color-sage-mist: #edf3ee;

  --color-gold: #c29b48;
  --color-gold-light: #deb868;
  --color-gold-dark: #997830;
  --color-gold-glow: rgba(194, 155, 72, 0.25);

  --color-parchment: #fcf9f2;
  --color-parchment-soft: #f7f2e7;
  --color-parchment-deep: #eee6d3;

  --color-espresso: #2d231e;
  --color-espresso-light: #483932;
  --color-espresso-muted: #6e5c54;

  /* Typography */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-devanagari: 'Noto Serif Devanagari', 'Rozha One', serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

/* Base resets & typography */
html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--color-parchment);
  color: var(--color-espresso);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-parchment-soft);
}
::-webkit-scrollbar-thumb {
  background: var(--color-sage-light);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-sage);
}

/* Selection Highlight */
::selection {
  background-color: var(--color-gold-glow);
  color: var(--color-espresso);
}

/* Font utility helpers */
.font-serif-brand {
  font-family: var(--font-serif);
}

.font-devanagari {
  font-family: var(--font-devanagari);
}

.font-sans-body {
  font-family: var(--font-sans);
}

/* Subtle Parchment Paper Background Noise */
.bg-parchment-texture {
  background-color: var(--color-parchment);
  background-image: radial-gradient(var(--color-parchment-deep) 0.65px, transparent 0.65px),
                    radial-gradient(var(--color-parchment-deep) 0.65px, var(--color-parchment) 0.65px);
  background-size: 26px 26px;
  background-position: 0 0, 13px 13px;
}

/* Frosted glass header */
.glass-header {
  background: rgba(252, 249, 242, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(194, 155, 72, 0.18);
}

.glass-card {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(194, 155, 72, 0.2);
}

.glass-card-dark {
  background: rgba(45, 35, 30, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(194, 155, 72, 0.35);
}

/* Gold foil hover & glow */
.gold-glow {
  box-shadow: 0 0 25px rgba(194, 155, 72, 0.35);
}

/* Serene Breathing Bubble Animation */
@keyframes breatheScale {
  0% {
    transform: scale(0.92);
    box-shadow: 0 0 25px rgba(107, 130, 111, 0.3);
  }
  35% {
    transform: scale(1.35);
    box-shadow: 0 0 55px rgba(194, 155, 72, 0.45);
  }
  65% {
    transform: scale(1.35);
    box-shadow: 0 0 55px rgba(194, 155, 72, 0.45);
  }
  100% {
    transform: scale(0.92);
    box-shadow: 0 0 25px rgba(107, 130, 111, 0.3);
  }
}

.breathing-circle-active {
  animation: breatheScale 12s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* Gentle ambient float */
@keyframes ambientFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

.ambient-float {
  animation: ambientFloat 6s ease-in-out infinite;
}

/* Poetic quote fade transition */
.quote-transition {
  transition: opacity 0.45s ease-in-out, transform 0.45s ease-in-out;
}
.quote-hidden {
  opacity: 0;
  transform: translateY(12px);
}
.quote-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Elegant card hover transitions */
.hover-lift {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px -8px rgba(45, 35, 30, 0.12), 0 0 0 1px rgba(194, 155, 72, 0.3);
}

/* Subtle gold shimmer on buttons */
.btn-gold {
  background: linear-gradient(135deg, #c29b48 0%, #b3883b 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(194, 155, 72, 0.3);
  transition: all 0.3s ease;
}
.btn-gold:hover {
  background: linear-gradient(135deg, #deb868 0%, #c29b48 100%);
  box-shadow: 0 6px 20px rgba(194, 155, 72, 0.45);
  transform: translateY(-1px);
}

.btn-outline-sage {
  border: 1.5px solid #6b826f;
  color: #4b624f;
  background: transparent;
  transition: all 0.3s ease;
}
.btn-outline-sage:hover {
  background: #6b826f;
  color: #ffffff;
}

/* Toast alert styling */
#toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  transform: translateY(120%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  opacity: 0;
  pointer-events: none;
}
#toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

