/* 
 * Sandhya CSS - Modern Path to Sacred Living
 * Designed for depth, stillness, and tactile luxury.
 */

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

/* --- Design Tokens --- */
:root {
  /* Warm Parchment Palette */
  --bg-primary: #F6F3EE;
  --bg-secondary: #F4F1EB;
  --bg-tertiary: #EFEAE3;
  --bg-parchment: #EAE4DB;

  /* Text & Tone Colors */
  --color-charcoal: #2A2825;
  --color-charcoal-light: #4A4640;
  --color-bronze: #84796B;
  --color-bronze-light: #ABA296;

  /* Accents */
  --color-saffron: #D37546;
  --color-saffron-muted: #D18962;
  --color-gold: #C2A370;
  --color-gold-light: #D9C39E;

  /* Fonts */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Transitions (Slower, deliberate, mindful) */
  --transition-slow: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-medium: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);

  /* Spacing */
  --section-padding: 8rem 2rem;
  --max-width: 1200px;
}

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

html {
  font-size: 16px;
  background-color: var(--bg-primary);
}

body {
  font-family: var(--font-sans);
  color: var(--color-charcoal);
  line-height: 1.7;
  overflow-x: hidden;
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Seamlessly blend logo image white backgrounds with parchment/ivory tones */
img[src*="sandhya_logo2"] {
  mix-blend-mode: multiply;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--color-bronze-light);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-bronze);
}

/* Typography Selection */
::selection {
  background: var(--color-gold-light);
  color: var(--color-charcoal);
}

/* --- Layout Utility Classes --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  color: var(--color-charcoal);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.section-subtitle {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  color: var(--color-bronze);
  max-width: 600px;
  margin-bottom: 3rem;
}

/* --- Ambient Noise Texture Overlay --- */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 999;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* --- Header / Navigation --- */
header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2.5rem 0 1.5rem;
  /* Spacious padding for top placement */
  z-index: 100;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.logo-link img {
  height: 100px;
  width: auto;
  transform: translate(-100px, -4px);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 2rem;
  transform: translateX(141px);
}

/* Soundscape Toggle Button */
.soundscape-toggle {
  background: none;
  border: 1px solid rgba(132, 121, 107, 0.3);
  color: var(--color-charcoal);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
}

.soundscape-toggle:hover {
  background-color: var(--bg-secondary);
  border-color: var(--color-bronze);
}

.soundscape-toggle.active {
  background-color: var(--bg-parchment);
  border-color: var(--color-saffron);
  color: var(--color-saffron);
  box-shadow: 0 0 10px rgba(211, 117, 70, 0.1);
}

.soundscape-toggle .sound-wave {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  width: 14px;
  height: 12px;
}

.soundscape-toggle .sound-wave span {
  display: block;
  width: 2px;
  height: 2px;
  background-color: currentColor;
  border-radius: 1px;
}

.soundscape-toggle.active .sound-wave span {
  animation: soundwave 1.2s ease-in-out infinite alternate;
}

.soundscape-toggle.active .sound-wave span:nth-child(2) {
  animation-delay: 0.2s;
}

.soundscape-toggle.active .sound-wave span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes soundwave {
  0% {
    height: 2px;
  }

  100% {
    height: 12px;
  }
}

.cta-button {
  background-color: var(--color-charcoal);
  color: var(--bg-primary);
  border: none;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
}

.cta-button:hover {
  background-color: var(--color-bronze);
  transform: translateY(-1px);
}

.cta-button.outline {
  background-color: transparent;
  color: var(--color-charcoal);
  border: 1px solid var(--color-charcoal);
}

.cta-button.outline:hover {
  background-color: var(--color-charcoal);
  color: var(--bg-primary);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 0 3rem;
  background: radial-gradient(circle at center, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-tertiary) 100%);
  overflow: hidden;
  scroll-snap-align: start;
}

/* Hero Background Image */
.hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
  opacity: 0.18;
}

/* Particle Canvas */
#particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Background elements */
.lotus-background {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(80vw, 700px);
  height: min(80vw, 700px);
  opacity: 0.035;
  z-index: 0;
  pointer-events: none;
  animation: slow-rotate 180s linear infinite;
}

@keyframes slow-rotate {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  transform: translateY(-61px);
}

.hero-text-box {
  transform: translateY(27px);
}

.hero-logo-container {
  margin-bottom: 1rem;
}

.hero-logo-container.reveal {
  opacity: 0;
  transform: translateY(130px);
  transition: opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1), transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-logo-container.reveal.active {
  opacity: 1;
  transform: translateY(100px);
}

.hero-logo {
  width: 100%;
  max-width: 300px;
  height: auto;
  opacity: 0.95;
  animation: breathe-logo 6s ease-in-out infinite alternate;
}

@keyframes breathe-logo {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(194, 163, 112, 0));
  }

  100% {
    transform: scale(1.03);
    filter: drop-shadow(0 4px 15px rgba(194, 163, 112, 0.15));
  }
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 300;
  color: var(--color-charcoal);
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.hero-subtitle {
  font-family: var(--font-sans);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 300;
  color: var(--color-bronze);
  line-height: 1.7;
  max-width: 650px;
  margin: 0 auto 1.5rem;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
}

.hero-actions .cta-button {
  padding: 1rem 2.2rem;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-bronze);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  z-index: 2;
  opacity: 0.7;
  transition: var(--transition-fast);
}

.scroll-indicator:hover {
  opacity: 1;
  color: var(--color-charcoal);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background-color: var(--color-bronze-light);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 15px;
  background-color: var(--color-saffron);
  animation: scroll-dot 2.5s ease-in-out infinite;
}

@keyframes scroll-dot {
  0% {
    transform: translateY(-100%);
  }

  50% {
    transform: translateY(260%);
  }

  100% {
    transform: translateY(260%);
  }
}

/* --- Philosophy Section --- */
.philosophy {
  padding: var(--section-padding);
  background-color: var(--bg-secondary);
  position: relative;
  overflow: hidden;
  scroll-snap-align: start;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 6rem;
  align-items: center;
}

.philosophy-left {
  position: relative;
}

.philosophy-title-small {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--color-saffron);
  margin-bottom: 1.5rem;
  display: inline-block;
}

.philosophy-quote {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 400;
  line-height: 1.25;
  color: var(--color-charcoal);
  margin-bottom: 2rem;
  position: relative;
}

.philosophy-quote::before {
  content: '“';
  font-family: var(--font-serif);
  font-size: 6rem;
  color: var(--color-gold-light);
  position: absolute;
  left: -2.5rem;
  top: -2rem;
  opacity: 0.3;
}

.philosophy-right {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  transform: translate(-18px, 95px);
}

.philosophy-p {
  font-size: 1.1rem;
  color: var(--color-charcoal-light);
  font-weight: 300;
  line-height: 1.8;
}

.philosophy-pstrong {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--color-bronze);
  line-height: 1.6;
  font-style: italic;
}

/* Decors */
.philosophy-image {
  width: 100%;
  max-width: 440px;
  height: auto;
  margin-top: 2.5rem;
  border-radius: 12px;
  display: block;
  box-shadow:
    -12px 12px 32px rgba(42, 40, 37, 0.07),
    -4px 4px 12px rgba(42, 40, 37, 0.03);
  border: 1px solid rgba(132, 121, 107, 0.15);
  transition: var(--transition-medium);
}

.philosophy-image:hover {
  transform: translate(2px, -2px);
  box-shadow:
    -15px 15px 38px rgba(42, 40, 37, 0.09),
    -5px 5px 14px rgba(42, 40, 37, 0.04);
}

/* --- Experience Section & Mockup --- */
.experience {
  background-color: var(--bg-primary);
  position: relative;
  z-index: 5;
  scroll-snap-align: start;
}

/* Sticky Wrapper to capture scroll height */
.experience-sticky-wrapper {
  position: relative;
  height: auto;
}

/* Sticky Container that locks content in view */
.experience-sticky-container {
  position: relative;
  height: auto;
  overflow: visible;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 0;
}

.experience-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 5rem;
  align-items: center;
  margin-top: 2rem;
}

.experience-list-wrapper {
  display: flex;
  flex-direction: column;
}

/* Left side navigation list */
.experience-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.experience-item {
  background-color: transparent;
  border: 1px solid rgba(132, 121, 107, 0.15);
  border-radius: 8px;
  padding: 1.5rem 1.8rem;
  text-align: left;
  cursor: pointer;
  transition: var(--transition-medium);
  display: flex;
  gap: 1.25rem;
  position: relative;
  overflow: hidden;
}

.experience-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background-color: var(--color-gold);
  transform: scaleY(0);
  transition: var(--transition-medium);
  transform-origin: bottom;
}

.experience-item:hover {
  background-color: var(--bg-secondary);
  border-color: rgba(132, 121, 107, 0.3);
  transform: translateX(4px);
}

.experience-item.active {
  background-color: var(--bg-tertiary);
  border-color: var(--color-gold-light);
  box-shadow: 0 10px 30px rgba(132, 121, 107, 0.05);
}

.experience-item.active::before {
  transform: scaleY(1);
}

.exp-num {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--color-gold);
  opacity: 0.8;
  line-height: 1;
  margin-top: 0.2rem;
}

.exp-details h3 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--color-charcoal);
  margin-bottom: 0.4rem;
  line-height: 1.2;
}

.exp-details p {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--color-bronze);
  font-weight: 300;
  line-height: 1.5;
}

/* Right side Phone container */
.experience-mockup-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  /* Position context for absolute adjuster panels */
}

/* iPhone Premium CSS Mockup */
.phone-mockup {
  width: 300px;
  height: 590px;
  background-color: #1a1715;
  border-radius: 42px;
  padding: 10px;
  box-shadow:
    0 25px 60px -10px rgba(42, 40, 37, 0.25),
    0 0 0 1px rgba(132, 121, 107, 0.15),
    inset 0 0 4px 2px rgba(255, 255, 255, 0.05);
  border: 4px solid var(--color-bronze);
  position: relative;
  overflow: hidden;
}

/* Dynamic screen display area */
.phone-screen {
  width: 100%;
  height: 100%;
  background-color: var(--bg-secondary);
  border-radius: 32px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Status Bar & Notch */
.phone-header {
  height: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.5rem;
  position: relative;
  z-index: 15;
}

.notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 22px;
  background-color: #1a1715;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
}

.time {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-charcoal);
  letter-spacing: -0.02em;
}

.icons {
  display: flex;
  gap: 4px;
  align-items: center;
}

.icon-battery {
  width: 18px;
  height: 9px;
  border: 1px solid var(--color-charcoal);
  border-radius: 2px;
  padding: 1px;
  display: flex;
}

.icon-battery::after {
  content: '';
  width: 100%;
  height: 100%;
  background-color: var(--color-charcoal);
  display: block;
}

/* Custom dynamic App Screens */
.app-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1rem 1.2rem 1.8rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  position: absolute;
  top: 40px;
  left: 0;
  width: 100%;
  height: calc(100% - 40px);
  pointer-events: none;
  will-change: opacity, transform;
}

.app-content.active {
  opacity: 1;
  transform: translateY(0);
  z-index: 10;
  pointer-events: auto;
}

.app-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.app-logo {
  height: 20px;
  width: auto;
}

.app-menu-btn {
  width: 16px;
  height: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.app-menu-btn span {
  display: block;
  height: 1.5px;
  background-color: var(--color-charcoal);
  width: 100%;
}

.mockup-screen-inner {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

/* Screenshot image layer - overlays interactive markup for visual luxury */
.mockup-screen-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 5;
  pointer-events: none;
  border-radius: 22px;
  opacity: 1;
  /* Keep pre-designed screenshots active as primary premium display */
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- App Screen 1: Panchang Calendar --- */
#screen-panchang {
  text-align: center;
  align-items: stretch;
}

.panchang-date {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-saffron);
  margin-bottom: 0.2rem;
}

.panchang-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--color-charcoal);
  margin-bottom: 0.5rem;
}

.panchang-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  margin-top: 0.5rem;
  background-color: var(--bg-tertiary);
  padding: 0.6rem;
  border-radius: 10px;
  border: 1px solid rgba(132, 121, 107, 0.1);
}

.cal-day-lbl {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--color-bronze-light);
  text-align: center;
  margin-bottom: 2px;
}

.cal-day {
  font-size: 0.7rem;
  text-align: center;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-charcoal-light);
  border-radius: 4px;
  position: relative;
  cursor: default;
}

.cal-day.empty {
  pointer-events: none;
  opacity: 0;
}

.cal-day.ekadashi-day {
  background-color: rgba(211, 117, 70, 0.12);
  border: 1px solid var(--color-saffron);
  color: var(--color-saffron);
  font-weight: 600;
}

.cal-day.dwadashi-day {
  background-color: rgba(194, 163, 112, 0.12);
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
  font-weight: 600;
}

.cal-tithi-badge {
  font-size: 0.45rem;
  font-weight: 500;
  position: absolute;
  top: -12px;
  background-color: var(--color-charcoal);
  color: var(--bg-primary);
  padding: 1px 3px;
  border-radius: 2px;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  white-space: nowrap;
}

.cal-day:hover .cal-tithi-badge {
  opacity: 1;
}

/* --- App Screen 2: Meditate with Sandhya --- */
#screen-sadhana {
  text-align: center;
  align-items: stretch;
}

.timer-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--color-charcoal);
  margin-bottom: 0.1rem;
}

.timer-subtitle {
  font-size: 0.65rem;
  color: var(--color-bronze-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.minimal-timer-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0.75rem auto;
  width: 140px;
  height: 140px;
}

.timer-ring {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.timer-ring-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.timer-ring-bg {
  fill: none;
  stroke: rgba(132, 121, 107, 0.1);
  stroke-width: 2;
}

.timer-ring-progress {
  fill: none;
  stroke: var(--color-saffron);
  stroke-width: 2;
  stroke-dasharray: 283;
  /* 2 * pi * 45 */
  stroke-dashoffset: 283;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s linear;
}

.timer-center {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.timer-om {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--color-gold);
  line-height: 1;
  margin-bottom: 2px;
  animation: pulse-om 4s ease-in-out infinite alternate;
}

@keyframes pulse-om {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }

  100% {
    transform: scale(1.05);
    opacity: 1;
    text-shadow: 0 0 10px rgba(194, 163, 112, 0.3);
  }
}

.timer-countdown {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-charcoal-light);
}

.music-pill {
  background-color: var(--bg-tertiary);
  border: 1px solid rgba(132, 121, 107, 0.15);
  border-radius: 30px;
  padding: 0.4rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 130px;
  margin: 0.25rem auto 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.music-ctrl-btn {
  background: none;
  border: none;
  color: var(--color-bronze);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  transition: color 0.2s ease, transform 0.1s ease;
}

.music-ctrl-btn:hover {
  color: var(--color-charcoal);
}

.music-ctrl-btn:active {
  transform: scale(0.9);
}

.music-ctrl-btn.play-pause-btn {
  color: var(--color-saffron);
  background-color: rgba(211, 117, 70, 0.08);
  border-radius: 50%;
  width: 22px;
  height: 22px;
}

/* --- App Screen 3: Rituals --- */
#screen-dhyana {
  text-align: center;
  align-items: stretch;
}

.rituals-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--color-charcoal);
  margin-bottom: 0.1rem;
}

.rituals-subtitle {
  font-size: 0.65rem;
  color: var(--color-bronze-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  display: block;
}

.rituals-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  max-height: 210px;
  overflow-y: auto;
}

.ritual-card {
  background-color: var(--bg-tertiary);
  border: 1px solid rgba(132, 121, 107, 0.08);
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  text-align: left;
}

.ritual-card.active {
  border-color: rgba(194, 163, 112, 0.25);
  box-shadow: 0 4px 10px rgba(132, 121, 107, 0.03);
}

.ritual-info h5 {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-charcoal);
  margin-bottom: 2px;
}

.ritual-info p {
  font-size: 0.6rem;
  color: var(--color-bronze);
}

.ritual-toggle {
  width: 28px;
  height: 16px;
  border-radius: 8px;
  background-color: var(--color-bronze-light);
  position: relative;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.ritual-toggle::after {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--bg-primary);
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 0.3s ease;
}

.ritual-toggle.active {
  background-color: var(--color-gold);
}

.ritual-toggle.active::after {
  transform: translateX(12px);
}

/* --- App Screen 4: Bhakti (Altar / Alarms) --- */
.screen-bhakti {
  text-align: center;
}

.bhakti-header {
  margin-bottom: 1.5rem;
}

.bhakti-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--color-charcoal);
}

.bhakti-wave-container {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-bottom: 2rem;
}

.bhakti-wave-bar {
  width: 3px;
  background-color: var(--color-gold);
  border-radius: 3px;
  height: 20px;
}

.app-content.active .bhakti-wave-bar {
  animation: audio-wave-pulse 1.4s ease-in-out infinite alternate;
}

.app-content.active .bhakti-wave-bar:nth-child(2) {
  animation-delay: 0.1s;
  height: 35px;
}

.app-content.active .bhakti-wave-bar:nth-child(3) {
  animation-delay: 0.2s;
  height: 50px;
}

.app-content.active .bhakti-wave-bar:nth-child(4) {
  animation-delay: 0.3s;
  height: 75px;
}

.app-content.active .bhakti-wave-bar:nth-child(5) {
  animation-delay: 0.4s;
  height: 40px;
}

.app-content.active .bhakti-wave-bar:nth-child(6) {
  animation-delay: 0.2s;
  height: 60px;
}

.app-content.active .bhakti-wave-bar:nth-child(7) {
  animation-delay: 0.1s;
  height: 25px;
}

@keyframes audio-wave-pulse {
  0% {
    transform: scaleY(0.3);
    opacity: 0.4;
  }

  100% {
    transform: scaleY(1);
    opacity: 1;
  }
}

.bhakti-alarm-card {
  background-color: var(--bg-tertiary);
  border-radius: 12px;
  padding: 1rem;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.alarm-time {
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--color-charcoal);
  line-height: 1;
}

.alarm-label {
  font-size: 0.7rem;
  color: var(--color-saffron);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.2rem;
}

.alarm-toggle {
  width: 34px;
  height: 20px;
  border-radius: 10px;
  background-color: var(--color-gold);
  position: relative;
  cursor: pointer;
}

.alarm-toggle-circle {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--bg-primary);
  position: absolute;
  top: 2px;
  right: 2px;
  transition: var(--transition-fast);
}

/* --- App Screen 5: Reflection (Journal / Growth) --- */

.reflection-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--color-charcoal);
  margin-bottom: 0.2rem;
}

.reflection-date {
  font-size: 0.75rem;
  color: var(--color-bronze);
  margin-bottom: 1.2rem;
}

.reflection-box {
  background-color: var(--bg-tertiary);
  border-radius: 12px;
  padding: 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 200px;
}

.reflection-quote-daily {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--color-bronze);
  line-height: 1.6;
  margin-bottom: 1rem;
  border-left: 2px solid var(--color-gold-light);
  padding-left: 0.8rem;
}

.reflection-input-sim {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--color-charcoal-light);
  font-weight: 300;
  line-height: 1.7;
}

.reflection-cursor {
  display: inline-block;
  width: 2px;
  height: 12px;
  background-color: var(--color-saffron);
  margin-left: 2px;
  animation: cursor-blink 1s step-end infinite;
}

@keyframes cursor-blink {

  from,
  to {
    background-color: transparent;
  }

  50% {
    background-color: var(--color-saffron);
  }
}

/* Home Screen (default preview state) */
.phone-home-indicator {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background-color: rgba(42, 40, 37, 0.2);
  border-radius: 2px;
}

/* --- Brand Promise Section --- */
.brand-promise {
  padding: 10rem 2rem;
  background: radial-gradient(circle at center, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
  text-align: center;
  position: relative;
  scroll-snap-align: start;
  overflow: hidden;
}

/* Brand Promise Background Image */
.brand-promise-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
  opacity: 0.18;
}

.brand-promise-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.brand-promise-logo {
  max-width: 234px;
  height: auto;
  opacity: 0.2;
  margin-bottom: 3rem;
}

.promise-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 300;
  color: var(--color-charcoal);
  margin-bottom: 2rem;
  line-height: 1.2;
}

.promise-subtext {
  font-family: var(--font-sans);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--color-bronze);
  line-height: 1.8;
  font-weight: 300;
  max-width: 650px;
  margin: 0 auto;
}

/* --- App Preview Section (Lifestyle grids) --- */
.app-previews {
  padding: var(--section-padding);
  background-color: var(--bg-secondary);
  scroll-snap-align: start;
}

.previews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}

.preview-card {
  background-color: var(--bg-primary);
  border: 1px solid rgba(132, 121, 107, 0.1);
  border-radius: 16px;
  overflow: hidden;
  padding: 2.5rem;
  transition: var(--transition-medium);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 480px;
  box-shadow: 0 4px 20px rgba(132, 121, 107, 0.02);
}

.preview-card:hover {
  transform: translateY(-8px);
  border-color: rgba(194, 163, 112, 0.3);
  box-shadow: 0 20px 40px rgba(132, 121, 107, 0.05);
}

.preview-card-info {
  margin-bottom: 2rem;
}

.preview-card-tag {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-saffron);
  letter-spacing: 0.2em;
  margin-bottom: 0.8rem;
  display: inline-block;
}

.preview-card-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--color-charcoal);
  margin-bottom: 1rem;
}

.preview-card-desc {
  font-size: 0.95rem;
  color: var(--color-bronze);
  font-weight: 300;
  line-height: 1.6;
}

/* Mini Simulated UI layouts inside the lifestyle cards */
.preview-mock-ui {
  flex: 1;
  background-color: var(--bg-secondary);
  border-radius: 12px;
  border: 1px solid rgba(132, 121, 107, 0.15);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Home dashboard card preview */
.ui-home-dashboard {
  align-items: stretch;
  gap: 0.8rem;
}

.ui-home-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ui-greeting {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--color-charcoal);
}

.ui-greeting span {
  font-size: 0.75rem;
  font-family: var(--font-sans);
  color: var(--color-bronze);
  display: block;
}

.ui-home-card {
  background-color: var(--bg-primary);
  border-radius: 8px;
  padding: 0.8rem;
  border-left: 3px solid var(--color-gold);
}

.ui-home-card h5 {
  font-size: 0.8rem;
  color: var(--color-charcoal);
}

.ui-home-card p {
  font-size: 0.65rem;
  color: var(--color-bronze);
  margin-top: 0.2rem;
}

/* Brahma Muhurta Alarm card preview */
.ui-bhakti-alarm {
  align-items: center;
  gap: 1rem;
}

.ui-alarm-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 1px solid var(--color-saffron-muted);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

.ui-alarm-circle::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(211, 117, 70, 0.15);
  animation: pulse-saffron 3s ease-in-out infinite;
}

@keyframes pulse-saffron {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.3;
  }

  50% {
    transform: scale(1.08);
    opacity: 0.8;
  }
}

.ui-alarm-time {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-charcoal);
}

.ui-alarm-label {
  font-size: 0.55rem;
  text-transform: uppercase;
  color: var(--color-saffron);
}

/* --- Closing CTA --- */
.closing-cta {
  padding: var(--section-padding);
  background: radial-gradient(circle at bottom, var(--bg-tertiary) 0%, var(--bg-primary) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
  scroll-snap-align: start;
}

.closing-cta::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse at bottom, rgba(194, 163, 112, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
  z-index: 0;
}

.closing-cta-content {
  max-width: 650px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.closing-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 300;
  color: var(--color-charcoal);
  margin-bottom: 1.5rem;
}

.closing-subtitle {
  font-size: 1.15rem;
  color: var(--color-bronze);
  font-weight: 300;
  margin-bottom: 3.5rem;
}

/* Elegant email signup portal */
.signup-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
}

.signup-input-group {
  display: flex;
  border-bottom: 1.5px solid var(--color-bronze-light);
  padding: 0.5rem 0;
  transition: var(--transition-fast);
}

.signup-input-group:focus-within {
  border-bottom-color: var(--color-saffron);
}

.signup-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--color-charcoal);
  padding: 0.5rem 0;
}

.signup-input::placeholder {
  color: var(--color-bronze-light);
  font-weight: 300;
}

.signup-submit {
  background: none;
  border: none;
  color: var(--color-saffron);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  padding: 0.5rem 1rem;
  transition: var(--transition-fast);
}

.signup-submit:hover {
  color: var(--color-charcoal);
  transform: translateX(3px);
}

.signup-hint {
  font-size: 0.75rem;
  color: var(--color-bronze-light);
  margin-top: 1.5rem;
  font-weight: 300;
}

/* --- Footer --- */
footer {
  background-image: url('hhm black and white.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-top: 1px solid rgba(132, 121, 107, 0.1);
  padding: 4.5rem 4rem 3.5rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: relative;
  scroll-snap-align: start;
}

.footer-content {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  transform: translate(-40px, -64px);
}

.footer-nav {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 2.5rem;
  margin-bottom: 1.5rem;
}

.footer-link {
  font-size: 0.9rem;
  color: var(--color-charcoal);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-fast);
}

.footer-link:hover {
  color: var(--color-saffron);
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-left: 1rem;
}

.footer-social-link {
  color: var(--color-charcoal);
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-social-link:hover {
  color: var(--color-saffron);
  transform: translateY(-2px);
}

.copyright {
  font-size: 0.8rem;
  color: var(--color-charcoal-light);
  font-weight: 400;
  margin-top: 0.5rem;
}



/* --- Interactive Scroll Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1), transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive Adjustments --- */
.experience-mobile-active-text {
  display: none;
  /* Hidden on desktop */
}

@media (max-width: 992px) {
  .philosophy-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  /* Hide the desktop list, let the grid center the phone */
  .experience-list-wrapper {
    display: none;
  }

  .experience-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
    justify-content: center;
    justify-items: center;
  }

  .experience-mockup-wrapper {
    position: relative;
    top: 0;
    transform: scale(0.78);
    transform-origin: center center;
    margin: -1rem 0;
    /* Tighten vertical spacing */
    height: auto;
    /* Allow height to adapt */
    min-height: 480px;
    display: flex;
    flex-direction: column;
    /* Stack phone and adjuster on mobile */
    align-items: center;
    gap: 1.5rem;
    justify-content: center;
  }


  /* Mobile active card styling */
  .experience-mobile-active-text {
    display: block;
    position: relative;
    height: 110px;
    /* Constrain height to avoid layout shift */
    margin: 1.5rem auto 0;
    text-align: center;
    width: 100%;
    max-width: 450px;
    padding: 0 1rem;
  }

  .mobile-text-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(8px);
    filter: blur(2px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
      transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
      filter 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
  }

  .mobile-text-item.active {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
    pointer-events: auto;
  }

  .mobile-text-item h3 {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    color: var(--color-charcoal);
    margin-bottom: 0.3rem;
  }

  .mobile-text-item p {
    font-size: 0.85rem;
    color: var(--color-bronze);
    line-height: 1.5;
  }

  .footer-nav {
    flex-wrap: wrap;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 5rem 1.5rem;
  }

  .hero {
    padding-top: 6rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin: 0 auto 3rem;
  }

  .hero-actions .cta-button {
    width: 100%;
  }

  /* Further scale down mockup on small screens */
  .experience-mockup-wrapper {
    transform: scale(0.68);
    height: 420px;
  }

  .experience-mobile-active-text {
    height: 120px;
    margin-top: 0.5rem;
  }
}

/* --- Word Reveal Scroll Effect --- */
.reveal-words {
  opacity: 1;
}

.reveal-words .word {
  display: inline-block;
  opacity: 0.15;
  transform: translateY(12px) translateZ(0);
  filter: blur(1.5px);
  transition: opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.4s cubic-bezier(0.16, 1, 0.3, 1),
    filter 1.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, filter;
}

.reveal-words.active .word {
  opacity: 1;
  transform: translateY(0) translateZ(0);
  filter: blur(0);
}