/* ==========================================================================
   Meditation Page Specific Styles (Phase 1)
   ========================================================================== */

/* Hero Section */
.meditation-hero {
  position: relative;
  min-height: 100vh;
  padding-top: 8rem;
  padding-bottom: 8rem;
  background-color: #0c0626;
  /* fallback */
  background-image: url('../images/Recources/Meditation/Meditation_banner_bg.png');
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  overflow: hidden;
  width: 100%;
  display: flex;
  align-items: center;
}

/* Optional Overlay if the background image needs darkening for text readability */
.meditation-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(12, 6, 38, 0.9) 0%, rgba(12, 6, 38, 0.4) 50%, rgba(12, 6, 38, 0.1) 100%);
  z-index: 1;
}

.meditation-hero .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 10;
  width: 100%;
}

.meditation-hero-content {
  max-width: 600px;
}

/* Breadcrumb */
.meditation-breadcrumb {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #a78bfa;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  animation: fadeSlideUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.meditation-breadcrumb span {
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0.5rem;
}

/* Heading */
.meditation-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2.5rem, 4vw + 1rem, 4.5rem);
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: 1rem;
  animation: fadeSlideUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

/* Subtitle */
.meditation-subtitle {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.25rem, 2vw + 0.5rem, 1.75rem);
  line-height: 1.3;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #c084fc 0%, #a855f7 40%, #7c3aed 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeSlideUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

/* Description */
.meditation-desc {
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  animation: fadeSlideUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}

/* Background Animations */
.meditation-hero {
  animation: bgZoomIn 10s ease-out forwards;
}

@keyframes bgZoomIn {
  0% {
    background-size: 105%;
  }

  100% {
    background-size: 100%;
  }
}

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

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

/* Curved Bottom Edge */
.meditation-bottom-curve {
  position: absolute;
  bottom: -1px;
  /* prevent gap */
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 5;
}

.meditation-bottom-curve svg {
  position: relative;
  display: block;
  width: 100%;
  height: 80px;
}

.meditation-bottom-curve .shape-fill {
  fill: #ffffff;
}

/* Decorative elements */
.meditation-glow-1 {
  position: absolute;
  top: 20%;
  left: 10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.3) 0%, transparent 70%);
  filter: blur(60px);
  z-index: 2;
  animation: heroGlowDrift 8s ease-in-out infinite;
}

@keyframes heroGlowDrift {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(30px, -30px);
  }
}

/* ==========================================================================
   Benefits Section (Phase 2)
   ========================================================================== */
.meditation-benefits {
  padding: 4rem 0;
  background-color: #ffffff;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  align-items: start;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  opacity: 0;
  transform: translateY(20px);
  animation: benefitFadeIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.benefit-item:nth-child(1) {
  animation-delay: 0.1s;
}

.benefit-item:nth-child(2) {
  animation-delay: 0.2s;
}

.benefit-item:nth-child(3) {
  animation-delay: 0.3s;
}

.benefit-item:nth-child(4) {
  animation-delay: 0.4s;
}

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

.benefit-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: #f5f3ff;
  color: #7c3aed;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.3s ease;
}

.benefit-item:hover .benefit-icon-box {
  transform: scale(1.1);
  background-color: #ede9fe;
}

.benefit-text h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.benefit-text p {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.5;
}

/* ==========================================================================
   What is Meditation Section (Phase 2)
   ========================================================================== */
.meditation-intro {
  padding: 5rem 0;
  background-color: #ffffff;
}

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

.intro-content {
  opacity: 0;
  transform: translateX(-20px);
  animation: introFadeSlideIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}

.intro-content .section-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 1.5rem;
}

.intro-p {
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.intro-card {
  position: relative;
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
  border-radius: 20px;
  padding: 2.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.08);
  opacity: 0;
  transform: translateX(20px);
  animation: introFadeSlideIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards;
}

@keyframes introFadeSlideIn {
  to {
    opacity: 1;
    transform: translate(0, 0);
  }
}

.intro-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.intro-card-text {
  font-size: 1.05rem;
  font-weight: 500;
  color: #334155;
  line-height: 1.6;
}

.intro-card-sparkle {
  position: absolute;
  color: #c084fc;
  font-size: 1.2rem;
  animation: leapSparkle 3s ease-in-out infinite;
}

@keyframes leapSparkle {

  0%,
  100% {
    opacity: 0.5;
    transform: scale(0.8);
  }

  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

.ic-sparkle-1 {
  top: 1.5rem;
  right: 2rem;
  animation-delay: 0.5s;
}

.ic-sparkle-2 {
  bottom: 1.5rem;
  right: 4rem;
  font-size: 0.9rem;
  animation-delay: 1.5s;
}

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

/* ==========================================================================
   Global Container for Meditation Page
   ========================================================================== */
.container {
  max-width: 1200px; /* Constrain width to match main layout */
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

/* ==========================================================================
   Phase 3: Types of Meditation
   ========================================================================== */
.meditation-types {
  padding: 5rem 0;
  background-color: #fafaf9; /* Very subtle warm gray/white */
  text-align: center;
}

.types-header {
  margin-bottom: 3.5rem;
}

.types-header h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.75rem;
}

.types-header p {
  font-size: 1.05rem;
  color: #64748b;
}

.types-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}

.type-card {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: cardStaggerIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.type-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.06);
}

.type-card:nth-child(1) { animation-delay: 0.1s; }
.type-card:nth-child(2) { animation-delay: 0.2s; }
.type-card:nth-child(3) { animation-delay: 0.3s; }
.type-card:nth-child(4) { animation-delay: 0.4s; }
.type-card:nth-child(5) { animation-delay: 0.5s; }

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

.type-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.type-card:hover .type-icon-box {
  transform: scale(1.1);
}

.type-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.type-card p {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.5;
}

/* Icon specific colors */
.icon-mindful { background-color: #ecfdf5; color: #10b981; }
.icon-loving { background-color: #fdf4ff; color: #d946ef; }
.icon-guided { background-color: #eff6ff; color: #3b82f6; }
.icon-body { background-color: #fff7ed; color: #f97316; }
.icon-visual { background-color: #fff1f2; color: #f43f5e; }

/* ==========================================================================
   Phase 3: Benefits Backed by Science
   ========================================================================== */
.meditation-science {
  padding: 5rem 0;
  background-color: #ffffff;
}

.science-header {
  margin-bottom: 3rem;
}

.science-header h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: #0f172a;
}

.science-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.science-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.science-checklist li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: #334155;
  opacity: 0;
  transform: translateX(-15px);
  animation: checklistReveal 0.5s forwards;
}

.science-checklist li:nth-child(1) { animation-delay: 0.2s; }
.science-checklist li:nth-child(2) { animation-delay: 0.3s; }
.science-checklist li:nth-child(3) { animation-delay: 0.4s; }
.science-checklist li:nth-child(4) { animation-delay: 0.5s; }
.science-checklist li:nth-child(5) { animation-delay: 0.6s; }

@keyframes checklistReveal {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.checklist-icon {
  color: #ffffff;
  background-color: #7c3aed;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.science-quote-card {
  background-color: #f8fafc;
  border-radius: 20px;
  padding: 3rem;
  position: relative;
  border: 1px solid #e2e8f0;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
}

.quote-icon {
  position: absolute;
  top: -20px;
  left: 2.5rem;
  width: 48px;
  height: 48px;
  background-color: #e0e7ff;
  color: #4f46e5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.15);
}

.science-quote-card p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #0f172a;
  font-style: italic;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.science-quote-card .quote-author {
  font-weight: 600;
  color: #7c3aed;
  font-size: 0.95rem;
}

/* Responsive styles */
@media (max-width: 1200px) {
  .types-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

@media (max-width: 768px) {
  .types-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .types-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Phase 4: How to Get Started
   ========================================================================== */
.meditation-get-started {
  padding: 5rem 0;
  background-color: #ffffff;
}

.get-started-container {
  background-color: #0c0626;
  border-radius: 24px;
  padding: 4rem 3rem;
  box-shadow: 0 20px 40px rgba(12, 6, 38, 0.1);
}

.get-started-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.section-title-light {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 2.5rem;
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
}

.step-list::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 40px;
  bottom: 40px;
  width: 2px;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.2) 0, rgba(255, 255, 255, 0.2) 4px, transparent 4px, transparent 8px);
  z-index: 1;
}

.step-item-dark {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  opacity: 0;
  transform: translateX(-20px);
  animation: introFadeSlideIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.step-item-dark:nth-child(1) { animation-delay: 0.2s; }
.step-item-dark:nth-child(2) { animation-delay: 0.4s; }
.step-item-dark:nth-child(3) { animation-delay: 0.6s; }

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-heading);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
  box-shadow: 0 0 0 6px #0c0626; /* Cut out effect for the dashed line */
}

.step-item-dark:hover .step-number {
  transform: scale(1.15);
}

.step-text h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.4rem;
}

.step-text p {
  font-size: 0.95rem;
  color: #94a3b8;
  line-height: 1.5;
}

.get-started-tips {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.tip-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.75rem;
  border-radius: 16px;
  opacity: 0;
  transform: translateX(20px);
  animation: introFadeSlideIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.tip-card:nth-child(1) { animation-delay: 0.3s; }
.tip-card:nth-child(2) { animation-delay: 0.5s; }

.tip-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: rgba(124, 58, 237, 0.2);
  color: #c084fc;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tip-text h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.4rem;
}

.tip-text p {
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.5;
}

/* ==========================================================================
   Phase 4: Final CTA
   ========================================================================== */
.meditation-cta {
  padding: 0 0 5rem;
  background-color: #ffffff;
}

.cta-banner {
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
  border-radius: 20px;
  padding: 2.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.08);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}

.cta-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.cta-icon-box {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.cta-text h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.25rem;
}

.cta-text p {
  font-size: 1.05rem;
  color: #475569;
}

.btn-explore-resources {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.75rem;
  border-radius: 9999px;
  background-color: #ffffff;
  color: #7c3aed;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  white-space: nowrap;
}

.btn-explore-resources:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.15);
  border-color: #d8b4fe;
}

.btn-explore-resources svg {
  transition: transform 0.3s ease;
}

.btn-explore-resources:hover svg {
  transform: translateX(4px);
}

@media (max-width: 992px) {
  .meditation-hero {
    min-height: auto;
    padding-top: 8rem;
    padding-bottom: 22rem; /* Creates space for the background image at the bottom */
    background-size: cover;
    background-position: center bottom;
  }
  
  .get-started-container {
    padding: 3rem 2rem;
  }
  
  .get-started-grid,
  .cta-banner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .cta-banner {
    flex-direction: column;
    text-align: center;
  }
  
  .cta-left {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .meditation-hero {
    padding-bottom: 20rem;
    background-size: 150%; /* Zooms in slightly on smaller screens so the moon/person aren't too tiny */
  }
}

@media (max-width: 480px) {
  .meditation-hero {
    padding-top: 7rem;
    padding-bottom: 18rem;
    background-size: 180%; /* Ensure the moon and person are prominent */
  }
  
  .meditation-title {
    font-size: 2.25rem;
  }
  
  .get-started-container {
    padding: 2rem 1.5rem;
  }
  
  .cta-banner {
    padding: 2rem 1.5rem;
  }
}

/* ==========================================================================
   Prefers Reduced Motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .meditation-hero {
    animation: none;
    background-size: cover;
  }
  
  .meditation-glow-1 {
    animation: none;
  }
  
  .intro-card-sparkle {
    animation: none;
    opacity: 1;
    transform: scale(1);
  }
}