/* =====================================================
   1. CORE & RESET (Minimalist Zen)
===================================================== */
:root {
  --bg1: #b18cd9; --bg2: #e2d6f5;
  --ink: #21323a; --muted: #6b7a85;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  background: radial-gradient(circle at 50% 50%, var(--bg2), var(--bg1));
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
}

/* =====================================================
   2. BACKGROUND: ASCENDING BUBBLES
===================================================== */
.bubble-field {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
}
.mini-bubble {
  position: absolute; bottom: -100px; background: rgba(255, 255, 255, 0.3);
  border-radius: 50%; animation: rise var(--duration) linear infinite;
  opacity: 0.4;
}
@keyframes rise {
  0% { transform: translateY(0) scale(1); opacity: 0; }
  20% { opacity: 0.4; }
  100% { transform: translateY(-120vh) scale(1.5); opacity: 0; }
}

/* =====================================================
   3. HERO & MANTRA
===================================================== */
.hero { position: relative; width: 100vw; height: 100vh; overflow: hidden; }

.hero-mantra {
  position: absolute; top: 12%; left: 50%; transform: translateX(-50%);
  text-align: center; z-index: 100; width: 90%; pointer-events: none;
}
.hero-mantra h1 { 
  font-size: clamp(1.8rem, 5vw, 2.8rem); 
  margin-bottom: 8px;
  font-weight: 300;
  letter-spacing: 4px;
  text-transform: uppercase;
  background: linear-gradient(to bottom, var(--ink), var(--muted));
  background-clip: text; 
  -webkit-background-clip: text;
  color: transparent; 
  -webkit-text-fill-color: transparent;
}
.hero-mantra p { 
  font-size: 0.8rem; 
  letter-spacing: 2px; 
  text-transform: uppercase; 
  color: var(--muted); 
}

/* =====================================================
   4. BUBBLE BASE STYLES
===================================================== */
.bubble, .platform-bubble, .yuna-bubble {
  position: absolute; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  text-align: center; text-decoration: none;
}

.bubble {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  color: var(--ink);
  font-weight: 500;
  letter-spacing: 0.5px;
  z-index: 50;
  animation: float-main 10s ease-in-out infinite;
  transition: transform 0.3s ease, background 0.3s;
}
.bubble:hover { transform: scale(1.08); background: rgba(255, 255, 255, 0.4); }

.platform-bubble {
  width: 85px; height: 85px; font-size: 0.75rem; color: var(--muted);
  background: rgba(255, 255, 255, 0.15); backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 40; animation: float-social 14s ease-in-out infinite;
}

.yuna-bubble {
  width: 110px; height: 110px; 
  opacity: 0.6;
  filter: blur(2px);
  z-index: 10;
  background-size: cover; 
  background-position: center; 
  pointer-events: none;
  animation: float-yuna 18s ease-in-out infinite;
  transition: filter 0.4s ease, opacity 0.4s ease;
}
.yuna-bubble:hover {
  filter: blur(0) opacity(1);
}

/* =====================================================
   5. DESKTOP POSITIONS
===================================================== */
.bubble-main { width: 250px; height: 250px; left: 41%; top: 36%; }
.bubble-myths { width: 190px; height: 190px; left: 23%; top: 32%; animation-delay: -3s; font-size: 1.1rem; }
.bubble-meditations { width: 190px; height: 190px; right: 23%; top: 32%; animation-delay: -1s; font-size: 1.1rem; }
.bubble-1 { width: 175px; height: 175px; left: 6%; top: 41%; animation-delay: -2s; }
.bubble-3 { width: 165px; height: 165px; right: 8%; top: 34%; animation-delay: -4s; }
.bubble-4 { width: 155px; height: 155px; left: 24%; top: 69%; animation-delay: -6s; }
.bubble-5 { width: 140px; height: 140px; right: 36%; top: 72%; animation-delay: -3s; }
.bubble-6 { width: 140px; height: 140px; right: 16%; top: 56%; animation-delay: -5s; }

.platform-itunes { right: 45%; top: 22%; animation-delay: -1s; }
.platform-deezer { left: 55%; top: 26%; animation-delay: -7s; }
.platform-yt { left: 48%; top: 84%; animation-delay: -4s; }
.platform-instagram { left: 10%; top: 82%; animation-delay: -9s; }
.platform-x { right: 28%; top: 16%; animation-delay: -5s; }
.platform-ph { left: 53%; top: 88%; animation-delay: -2s; }

.yuna-lotus { left: 18%; top: 28%; background-image: url("/assets/lotus.PNG"); animation-delay: -2s; }
.yuna-butterfly { left: 42%; top: 32%; background-image: url("/assets/butterfly.png"); animation-delay: -5s; }
.yuna-balasana { left: 14%; top: 58%; background-image: url("/assets/balasana.png"); animation-delay: -8s; }
.yuna-savasana { left: 38%; top: 70%; background-image: url("/assets/savasana.png"); animation-delay: -12s; }

.yuna-marjarya { right: 28%; top: 68%; background-image: url("/assets/marjaryasana-bitilasana.png"); animation-delay: -10s; }
.yuna-adho { right: 14%; top: 72%; background-image: url("/assets/adho mukha svasana.png"); animation-delay: -15s; }
.yuna-phalaka { right: 18%; top: 52%; background-image: url("/assets/phalakasana.png"); animation-delay: -7s; }
.yuna-prana { right: 12%; top: 22%; background-image: url("/assets/prayanma.png"); animation-delay: -4s; }
.yuna-gomu { right: 22%; top: 34%; background-image: url("/assets/gomukhasana.png"); animation-delay: -9s; }

/* =====================================================
   6. ANIMATIONS
===================================================== */
@keyframes float-main {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(8px, -12px); }
}

@keyframes float-social {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-15px, 15px); }
}

@keyframes float-yuna {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(12px, -12px) rotate(2deg); }
}

/* =====================================================
   7. SITE LOGO
===================================================== */
.site-logo {
  position: fixed;
  top: 24px;
  left: 24px;
  z-index: 500;
  width: clamp(72px, 8vw, 110px);
  height: clamp(72px, 8vw, 110px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
  transition: transform 0.25s ease;
}

.site-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  filter: none;
}

.site-logo:hover {
  transform: scale(1.04);
}

/* =====================================================
   8. CONTENT CARDS
===================================================== */
.myths-intro-card,
.myth-card {
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 28px;
  padding: 48px 52px;
  margin-bottom: 56px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255,255,255,0.35);
}

.myths-intro-card {
  max-width: 720px;
  margin: 0 auto 140px;
  padding: 64px 56px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: 0 30px 70px rgba(120, 90, 170, 0.22);
  text-align: center;
}

.myths-intro-card h1 {
  font-size: 30px;
  letter-spacing: 6px;
  font-weight: 400;
  margin-bottom: 16px;
}

.myths-intro-card h2 {
  font-size: 18px;
  font-weight: 400;
  opacity: 0.8;
  margin-bottom: 40px;
}

.myths-intro-card p {
  font-size: 16px;
  line-height: 1.9;
  margin: 0 auto 26px;
  max-width: 620px;
  opacity: 0.9;
}

.myths-intro-card p br {
  content: "";
  display: block;
  margin-bottom: 14px;
}

.myth-card h3 {
  margin-bottom: 16px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.myth-card p {
  line-height: 1.65;
  margin-bottom: 0;
}

.myth-card strong {
  font-weight: 600;
}

.myth-card + .myth-card {
  margin-top: 48px;
}

/* =====================================================
   9. MEDITATION CONTENT
===================================================== */
.myth-list-card {
  margin-top: 96px;
  padding: 56px 64px;
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 24px 64px rgba(177, 140, 217, 0.25);
}

.myth-list-card article {
  padding: 18px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.myth-list-card article:last-child {
  border-bottom: none;
}

.myth-list-card h3 {
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: #21323a;
  margin: 0;
  line-height: 1.6;
}

.free-bubbles {
  margin: 96px auto 72px;
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
}

.free-bubble {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 20px 45px rgba(177, 140, 217, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.free-bubble span {
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.4;
  color: #21323a;
}

.free-bubble:hover {
  transform: scale(1.08);
  box-shadow: 0 30px 70px rgba(177, 140, 217, 0.55);
}

.meditation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  margin-bottom: 120px;
}

.meditation-card {
  padding: 26px 30px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 14px 32px rgba(177, 140, 217, 0.18);
  transition: transform 0.25s ease;
}

.meditation-card h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  color: #21323a;
  line-height: 1.5;
}

.meditation-card:hover {
  transform: translateY(-3px);
}

.meditation-transition {
  margin-top: 28px;
  font-size: 0.95rem;
  line-height: 1.75;
  color: #5f6f78;
  text-align: center;
}

/* =====================================================
   10. FOOTER
===================================================== */
.site-footer { 
  padding: 40px; 
  text-align: center; 
  color: var(--muted); 
  font-size: 0.85rem; 
  position: relative; 
  z-index: 110;
}
.site-footer a { 
  color: var(--ink); 
  text-decoration: none; 
  margin: 0 10px; 
  opacity: 0.8; 
}
.site-footer a:hover { 
  opacity: 1; 
  text-decoration: underline; 
}

/* =====================================================
   11. MOBILE RESPONSIVE - VERTICAL SPACE FIX
===================================================== */
@media (max-width: 768px) {

  /* ================================================
     PROBLEM DIAGNOSIS:
     ================================================
     The excessive vertical gap was caused by:
     1. Hero container height set to 140vh (too tall)
     2. Absolute positioning with large % gaps between bubbles
     3. Top positions starting too low (16%, 30%, 50%, etc.)
     
     SOLUTION:
     ================================================
     1. Reduce hero height to tight viewport fit
     2. Compress vertical scale by reducing top % values
     3. Start bubble cluster higher (main at 20% → 14%)
     4. Reduce gaps between rows from ~14-20% to 8-12%
     5. Use transform for precise centering without conflicts
  ================================================ */

  body {
    overflow-x: hidden;
    overflow-y: auto;
  }

  /* Container: Reduced from 140vh to 100vh - eliminates extra bottom space */
  .hero {
    position: relative;
    height: 100vh; /* Tight fit - no wasted vertical space */
    overflow: visible;
  }

  /* Hero Text - Ultra compact for maximum bubble space */
  .hero-mantra {
    top: 3%; /* Tighter to top */
    z-index: 100;
    padding: 0 16px; /* Prevent edge overflow */
  }

  .hero-mantra h1 {
    font-size: 1.25rem; /* Reduced from 1.4rem */
    letter-spacing: 1.5px; /* Tighter tracking */
    margin-bottom: 2px; /* Minimal gap */
    line-height: 1.2; /* Compact line height */
  }

  .hero-mantra p {
    font-size: 0.65rem; /* Slightly smaller */
    letter-spacing: 1px; /* Tighter */
  }

  /* Logo - Compact */
  .site-logo {
    top: 12px;
    left: 12px;
    width: 60px;
    height: 60px;
  }

  /* ================================================
     BUBBLE VERTICAL COMPRESSION STRATEGY
     ================================================
     Row 1 (Main): 14% (was 16%)
     Row 2 (Myths/Meditations): 26%, 30% (was 30%, 36%)
     Row 3 (Story/Osiris): 42%, 48% (was 50%, 58%)
     Row 4 (Box/Spotify): 58%, 64% (was 70%, 78%)
     Row 5 (Apple Music): 74% (was 90%)
     
     Total vertical span: 60% (was 74%)
     Gap reduction: ~14% of viewport reclaimed
  ================================================ */

  .bubble {
    padding: 8px;
    font-size: 0.7rem;
    z-index: 50;
  }

  /* Row 1: Central hero bubble - positioned below text */
  .bubble-main { 
    width: 130px; /* Slightly smaller */
    height: 130px; 
    left: 50%; 
    top: 16%; /* Lowered to avoid text overlap */
    transform: translateX(-50%);
  }

  /* Row 2: Left/Right pair - adjusted for better flow */
  .bubble-myths { 
    width: 98px; 
    height: 98px; 
    left: 5%; 
    top: 28%; /* Slight adjustment */
  }

  .bubble-meditations { 
    width: 102px; 
    height: 102px; 
    right: 5%; 
    top: 32%; /* Balanced with myths */
  }

  /* Row 3: Second left/right pair */
  .bubble-1 { 
    width: 90px; 
    height: 90px; 
    left: 8%; 
    top: 44%; /* Fine-tuned */
  }

  .bubble-3 { 
    width: 94px; 
    height: 94px; 
    right: 8%; 
    top: 50%; /* Balanced */
  }

  /* Row 4: Third left/right pair */
  .bubble-4 { 
    width: 86px; 
    height: 86px; 
    left: 10%; 
    top: 60%; /* Optimized */
  }

  .bubble-5 { 
    width: 82px; 
    height: 82px; 
    right: 12%; 
    top: 66%; /* Tighter */
  }

  /* Row 5: Bottom anchor - moved up more */
  .bubble-6 { 
    width: 86px; 
    height: 86px; 
    left: 50%; 
    top: 78%; /* Raised further for better balance */
    transform: translateX(-50%);
  }

  /* ================================================
     YUNA POSES - Layered behind, subtle presence
  ================================================ */
  .yuna-bubble {
    width: 70px;
    height: 70px;
    opacity: 0.5; /* Soft background presence */
    filter: blur(1px); /* Depth effect */
    z-index: 5; /* Behind all interactive elements */
  }

  /* Distributed around bubble cluster - avoiding text overlap */
  .yuna-lotus { top: 12%; left: 3%; }
  .yuna-butterfly { top: 22%; left: 35%; }
  .yuna-balasana { top: 52%; left: 2%; }
  .yuna-savasana { top: 72%; left: 30%; }
  
  .yuna-marjarya { top: 68%; right: 3%; }
  .yuna-adho { top: 82%; right: 8%; } /* Raised to stay in view */
  .yuna-phalaka { top: 56%; right: 4%; }
  .yuna-prana { top: 20%; right: 3%; }
  .yuna-gomu { top: 40%; right: 5%; }

  /* ================================================
     SOCIAL BUBBLES - Minimal, tucked in corners
  ================================================ */
  .platform-bubble {
    width: 52px;
    height: 52px;
    font-size: 0.55rem;
    opacity: 0.75;
    z-index: 40;
  }

  .platform-yt { right: 4%; top: 24%; } /* Adjusted */
  .platform-instagram { left: 4%; top: 84%; } /* Raised to stay visible */
  
  /* Hide overflow platforms on mobile for cleaner layout */
  .platform-itunes, 
  .platform-deezer, 
  .platform-x,
  .platform-ph { 
    display: none; 
  }

  /* ================================================
     CONTENT CARDS - Responsive padding
  ================================================ */
  .myths-intro-card {
    padding: 36px 24px;
    border-radius: 24px;
    margin-bottom: 80px;
  }

  .myths-intro-card h1 {
    font-size: 24px;
    letter-spacing: 3px;
  }

  .myths-intro-card h2 {
    font-size: 16px;
  }

  .myths-intro-card p {
    font-size: 15px;
    line-height: 1.7;
  }

  .myth-card,
  .myth-list-card {
    padding: 32px 24px;
    border-radius: 20px;
  }

  .free-bubbles {
    gap: 18px;
    margin: 60px auto 50px;
  }

  .free-bubble {
    width: 120px;
    height: 120px;
  }

  .meditation-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 80px;
  }

  .site-footer {
    padding: 30px 20px;
    font-size: 0.75rem;
  }
}
/* ================================================
   MOBILE FIX: Center "Meet Yuna" Bubble
   ================================================
   
   PROBLEM DIAGNOSIS:
   - .bubble-main uses top: 16% (pushes down from top edge)
   - transform: translateX(-50%) only centers horizontally
   - This leaves the visual center of viewport empty
   
   SOLUTION:
   - Use top: 50% + left: 50% to position from center point
   - Use translate(-50%, -50%) to perfectly center the bubble
   - This creates true visual centering on mobile
   
   WHY THIS WORKS:
   - top/left position the bubble's TOP-LEFT corner at center
   - translate moves it back by half its own width/height
   - Result: bubble's center aligns with viewport center
================================================ */

@media (max-width: 768px) {
  
  /* Center the main "Meet Yuna" bubble - visual anchor */
  .bubble-main { 
    width: 130px; 
    height: 130px; 
    
    /* Position from viewport center */
    left: 50%; 
    top: 50%; 
    
    /* Perfect centering - moves bubble back by half its size */
    transform: translate(-50%, -50%);
    
    /* Ensure it's the visual focal point */
    z-index: 60;
  }

  /* Adjust surrounding bubbles to orbit around the centered main bubble */
  
  /* Upper-left quadrant */
  .bubble-myths { 
    width: 98px; 
    height: 98px; 
    left: 8%; 
    top: 28%; 
  }

  /* Upper-right quadrant */
  .bubble-meditations { 
    width: 102px; 
    height: 102px; 
    right: 8%; 
    top: 32%; 
  }

  /* Middle-left */
  .bubble-1 { 
    width: 90px; 
    height: 90px; 
    left: 6%; 
    top: 48%; 
  }

  /* Middle-right */
  .bubble-3 { 
    width: 94px; 
    height: 94px; 
    right: 6%; 
    top: 52%; 
  }

  /* Lower-left */
  .bubble-4 { 
    width: 86px; 
    height: 86px; 
    left: 10%; 
    top: 68%; 
  }

  /* Lower-right */
  .bubble-5 { 
    width: 82px; 
    height: 82px; 
    right: 10%; 
    top: 70%; 
  }

  /* Bottom center */
  .bubble-6 { 
    width: 86px; 
    height: 86px; 
    left: 50%; 
    top: 84%; 
    transform: translateX(-50%);
  }
}

/* ================================================
   ALTERNATIVE APPROACH (if you prefer Flexbox):
   ================================================
   
   If you want even more control, you could make .hero
   a flex container and center .bubble-main that way:
   
   .hero {
     display: flex;
     align-items: center;
     justify-content: center;
   }
   
   .bubble-main {
     position: relative; // change from absolute
     // remove top/left/transform
   }
   
   But this requires changing HTML structure for 
   other bubbles, so the translate() solution above
   is cleaner for your current setup.
================================================ */