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

:root {
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --color-text-main: rgba(255, 255, 255, 0.94);
  --color-text-muted: rgba(255, 255, 255, 0.55);
  --color-accent-glow: rgba(255, 215, 230, 0.4);
  --color-badge-bg: rgba(255, 255, 255, 0.08);
  --color-badge-border: rgba(255, 255, 255, 0.15);
  
  --glass-bg: rgba(20, 15, 30, 0.35);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #08060c;
  color: var(--color-text-main);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Blurred Bubble Gradient Background */
.bubble-gradient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  background-color: #090610;
  overflow: hidden;
  filter: blur(80px);
  -webkit-filter: blur(80px);
  transform: translateZ(0);
  pointer-events: none;
}

.bubble {
  position: absolute;
  border-radius: 50%;
  opacity: 0.65;
  mix-blend-mode: screen;
  will-change: transform;
}

.bubble-1 {
  top: -15%;
  left: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(235, 110, 165, 0.85) 0%, rgba(180, 70, 140, 0.4) 60%, transparent 100%);
  animation: floatBubble1 22s ease-in-out infinite alternate;
}

.bubble-2 {
  bottom: -20%;
  right: -10%;
  width: 65vw;
  height: 65vw;
  background: radial-gradient(circle, rgba(135, 80, 245, 0.85) 0%, rgba(75, 30, 160, 0.4) 60%, transparent 100%);
  animation: floatBubble2 26s ease-in-out infinite alternate;
}

.bubble-3 {
  top: 20%;
  right: 5%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(255, 155, 120, 0.75) 0%, rgba(220, 100, 80, 0.3) 60%, transparent 100%);
  animation: floatBubble3 20s ease-in-out infinite alternate;
}

.bubble-4 {
  bottom: 5%;
  left: 10%;
  width: 45vw;
  height: 45vw;
  background: radial-gradient(circle, rgba(80, 175, 235, 0.65) 0%, rgba(40, 100, 180, 0.25) 60%, transparent 100%);
  animation: floatBubble4 24s ease-in-out infinite alternate;
}

@keyframes floatBubble1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(12vw, 15vh) scale(1.15); }
  100% { transform: translate(20vw, 5vh) scale(0.95); }
}

@keyframes floatBubble2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-15vw, -12vh) scale(1.1); }
  100% { transform: translate(-8vw, -20vh) scale(0.9); }
}

@keyframes floatBubble3 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-18vw, 10vh) scale(0.85); }
  100% { transform: translate(-5vw, -12vh) scale(1.05); }
}

@keyframes floatBubble4 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(15vw, -15vh) scale(1.12); }
  100% { transform: translate(6vw, 10vh) scale(0.95); }
}

/* Particle Overlay Canvas */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2;
  pointer-events: none;
}

/* Cinematic Grain & Vignette Overlay */
.cinematic-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 3;
  pointer-events: none;
  background: 
    radial-gradient(circle at center, transparent 30%, rgba(5, 3, 10, 0.65) 100%),
    radial-gradient(ellipse at top, rgba(255, 255, 255, 0.03), transparent 60%);
}

/* Content Container */
.content-container {
  position: relative;
  z-index: 4;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  pointer-events: none;
}

.heading-serif {
  font-family: var(--font-serif);
  font-weight: 300;
  letter-spacing: -0.01em;
}

/* Intro Stage */
.intro-stage {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.intro-text {
  position: absolute;
  font-size: clamp(3rem, 7vw, 6.5rem);
  color: #ffffff;
  text-align: center;
  opacity: 0;
  transform: translateY(20px) scale(0.97);
  filter: blur(12px);
  transition: opacity 1.8s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 1.8s cubic-bezier(0.16, 1, 0.3, 1),
              filter 1.8s cubic-bezier(0.16, 1, 0.3, 1);
  text-shadow: 
    0 0 30px rgba(255, 220, 245, 0.4),
    0 0 70px rgba(180, 140, 255, 0.25);
  max-width: 90vw;
  padding: 0 1rem;
}

.intro-text.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0px);
}

.intro-text.exit {
  opacity: 0;
  transform: translateY(-20px) scale(1.03);
  filter: blur(10px);
}

/* Reasons Stage */
.reasons-stage {
  position: relative;
  max-width: 720px;
  width: 100%;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.5s ease, transform 1.5s ease;
  pointer-events: auto;
}

.reasons-stage.visible {
  opacity: 1;
  transform: translateY(0);
}

.reasons-stage.hidden {
  display: none;
}

/* Glassmorphic Reason Card */
.reason-card {
  background: var(--glass-bg);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 3.5rem 3rem 2.8rem;
  box-shadow: var(--glass-shadow);
  text-align: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.reason-card:hover, .reason-card:focus-visible {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 215, 230, 0.12);
  outline: none;
}

.reason-card:active {
  transform: translateY(-1px) scale(0.995);
}

.reason-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
}

.reason-badge {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  background: var(--color-badge-bg);
  border: 1px solid var(--color-badge-border);
  padding: 0.4rem 1.1rem;
  border-radius: 100px;
  margin-bottom: 2rem;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reason-quote {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  line-height: 1.4;
  color: var(--color-text-main);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  margin: 0 0 2rem;
  opacity: 1;
  filter: blur(0);
  transition: opacity 0.7s cubic-bezier(0.25, 1, 0.5, 1),
              transform 0.7s cubic-bezier(0.25, 1, 0.5, 1),
              filter 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

.reason-action-hint {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  opacity: 0.6;
  text-transform: uppercase;
  transition: opacity 0.4s ease, color 0.4s ease, transform 0.4s ease;
}

.reason-card:hover .reason-action-hint,
.reason-card:focus-visible .reason-action-hint {
  opacity: 0.95;
  color: #fff;
  transform: translateY(-2px);
}

/* Fade animation classes for swapping reasons */
.reason-card.fade-out .reason-quote,
.reason-card.fade-out .reason-badge,
.reason-card.fade-out .reason-action-hint {
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  filter: blur(8px);
}

.reason-card.fade-in .reason-quote,
.reason-card.fade-in .reason-badge,
.reason-card.fade-in .reason-action-hint {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* Responsive Tweaks */
@media (max-width: 600px) {
  .reason-card {
    padding: 2.5rem 1.8rem;
    border-radius: 20px;
  }
}
