/* WhisperWall - Optimized for Emotional Connection */
:root {
  --primary-color: #8b5fbf;
  --primary-light: #a77dd1;
  --accent-color: #6c5ce7;
  --accent-light: #a29bfe;
  --warm-purple: #9b59b6;
  --soft-pink: #e8d5e8;
  --dark-bg: #0f0f1a;
  --dark-surface: #1a1a2e;
  --dark-surface-2: #16213e;
  --dark-surface-3: #2a2d5a;
  --light-text: #ffffff;
  --light-text-secondary: rgba(255, 255, 255, 0.8);
  --warm-white: #fefefe;
  --gradient-primary: linear-gradient(135deg, #8b5fbf 0%, #6c5ce7 100%);
  --gradient-warm: linear-gradient(135deg, #9b59b6 0%, #8b5fbf 100%);
  --gradient-hero: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #16213e 100%);
  --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-warm: 0 4px 20px rgba(139, 95, 191, 0.2);
  --border-radius: 16px;
  --border-radius-lg: 24px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-secondary: 'Poppins', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-primary);
  color: var(--light-text);
  line-height: 1.6;
  background: var(--dark-bg);
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  line-height: 1.3;
  font-weight: 600;
}

p {
  color: var(--light-text-secondary);
  line-height: 1.7;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(15, 15, 26, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--light-text);
  font-size: 1.5rem;
  font-weight: 700;
  transition: var(--transition);
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  color: white;
}

.logo:hover {
  color: var(--primary-light);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: var(--light-text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

.nav-link:hover {
  color: var(--light-text);
  background: rgba(255, 255, 255, 0.05);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--light-text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: var(--gradient-hero);
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(139, 95, 191, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(108, 92, 231, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(155, 89, 182, 0.05) 0%, transparent 70%);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
  padding: 2rem 0;
}

.hero-text h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--light-text);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--light-text-secondary);
  margin-bottom: 2.5rem;
  max-width: 90%;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-light);
  font-family: var(--font-secondary);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--light-text-secondary);
}

.hero-cta {
  margin-bottom: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 2rem;
  background: var(--gradient-primary);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: var(--transition);
  box-shadow: var(--shadow-warm);
  border: none;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(139, 95, 191, 0.4);
}

.btn-large {
  padding: 1.2rem 2.5rem;
  font-size: 1.2rem;
}

.cta-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--light-text-secondary);
  text-align: center;
}

.hero-features {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.feature-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  background: var(--dark-surface-3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 1.5rem;
  border-radius: 50px;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1rem;
  font-weight: 500;
  min-width: 180px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.feature-button:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(139, 95, 191, 0.3);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.phone-container {
  position: relative;
  transform: perspective(1000px) rotateY(-5deg);
}

.hero-phone {
  max-width: 300px;
  height: auto;
  border-radius: 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.floating-elements {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.voice-bubble {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  color: var(--dark-bg);
  padding: 0.8rem 1.2rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  animation: float 3s ease-in-out infinite;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.voice-bubble i {
  margin-right: 0.5rem;
  color: var(--primary-color);
}

.voice-bubble-1 {
  top: 10%;
  right: -20%;
  animation-delay: 0s;
}

.voice-bubble-2 {
  bottom: 40%;
  left: -30%;
  animation-delay: 1s;
}

.voice-bubble-3 {
  top: 60%;
  right: -10%;
  animation-delay: 2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) scale(1); opacity: 0.8; }
  50% { transform: translateY(-10px) scale(1.02); opacity: 1; }
}

/* Community Stories Section */
.community-stories {
  padding: 6rem 0;
  background: var(--dark-surface);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--light-text);
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--light-text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.stories-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.story-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  padding: 2rem;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.story-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(139, 95, 191, 0.3);
}

.featured-story {
  grid-row: span 2;
  background: rgba(139, 95, 191, 0.05);
  border-color: rgba(139, 95, 191, 0.2);
}

.quote-icon {
  font-size: 3rem;
  color: var(--primary-light);
  font-family: Georgia, serif;
  margin-bottom: 1rem;
  opacity: 0.7;
}

.story-text {
  font-size: 1.1rem;
  color: var(--light-text);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.story-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info h4 {
  color: var(--light-text);
  margin-bottom: 0.3rem;
}

.author-info p, .location {
  font-size: 0.9rem;
  color: var(--light-text-secondary);
}

.story-audio {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.audio-player {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(0, 0, 0, 0.2);
  padding: 1rem;
  border-radius: 12px;
}

.play-btn {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.play-btn:hover {
  transform: scale(1.1);
}

.audio-waveform {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}

.wave-bar {
  width: 3px;
  height: 15px;
  background: var(--primary-light);
  border-radius: 2px;
  animation: wave 1.5s ease-in-out infinite alternate;
}

.audio-waveform.playing .wave-bar {
  animation-play-state: running;
}

.wave-bar:nth-child(1) { animation-delay: 0.1s; height: 20px; }
.wave-bar:nth-child(2) { animation-delay: 0.2s; height: 25px; }
.wave-bar:nth-child(3) { animation-delay: 0.3s; height: 15px; }
.wave-bar:nth-child(4) { animation-delay: 0.4s; height: 30px; }
.wave-bar:nth-child(5) { animation-delay: 0.5s; height: 20px; }
.wave-bar:nth-child(6) { animation-delay: 0.6s; height: 25px; }
.wave-bar:nth-child(7) { animation-delay: 0.7s; height: 15px; }
.wave-bar:nth-child(8) { animation-delay: 0.8s; height: 20px; }

@keyframes wave {
  0% { height: 15px; opacity: 0.5; }
  100% { height: 30px; opacity: 1; }
}

.audio-time {
  font-size: 0.9rem;
  color: var(--light-text-secondary);
}

/* How It Helps Section */
.how-it-helps {
  padding: 6rem 0;
  background: var(--dark-bg);
}

/* Anonymity Feature */
.anonymity-showcase {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  padding: 2rem;
  max-width: 350px;
}

.anonymous-toggle {
  display: flex;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50px;
  padding: 0.5rem;
  margin-bottom: 1.5rem;
}

.toggle-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition);
  flex: 1;
  justify-content: center;
}

.toggle-option.active {
  background: var(--gradient-primary);
}

.anonymous-avatar {
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark-bg);
}

.user-avatar-small {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
}

.user-avatar-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.toggle-option span {
  font-size: 0.9rem;
  font-weight: 500;
}

.anonymous-preview {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
}

.anonymous-message {
  display: flex;
  gap: 1rem;
}

.anonymous-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light-text);
}

.message-content p {
  color: var(--light-text);
  margin-bottom: 0.5rem;
}

.message-meta {
  font-size: 0.8rem;
  color: var(--light-text-secondary);
}

.help-features {
  max-width: 1200px;
  margin: 0 auto;
}

.help-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 6rem;
  padding: 3rem 0;
}

.help-feature.reverse {
  direction: rtl;
}

.help-feature.reverse > * {
  direction: ltr;
}

.feature-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.feature-icon {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  z-index: 2;
  box-shadow: var(--shadow-warm);
}

.feature-phone {
  max-width: 280px;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.filter-demo {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  padding: 2rem;
  max-width: 350px;
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(0, 0, 0, 0.3);
  padding: 1rem 1.5rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

.filter-bar i {
  color: var(--light-text-secondary);
}

.filter-bar span {
  flex: 1;
  color: var(--light-text-secondary);
}

.country-flag {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.filter-option {
  padding: 1rem;
  background: rgba(139, 95, 191, 0.1);
  border-radius: 12px;
  color: var(--light-text);
  font-size: 0.9rem;
  transition: var(--transition);
}

.filter-option:hover {
  background: rgba(139, 95, 191, 0.2);
}

.mood-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 300px;
}

.mood-item {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--light-text);
  transition: var(--transition);
  cursor: pointer;
}

.mood-item.active {
  background: rgba(139, 95, 191, 0.2);
  border: 1px solid rgba(139, 95, 191, 0.5);
}

.mood-item:hover {
  background: rgba(139, 95, 191, 0.15);
}

.feature-content h3 {
  font-size: 2rem;
  color: var(--light-text);
  margin-bottom: 1.5rem;
}

.feature-content p {
  font-size: 1.1rem;
  color: var(--light-text-secondary);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.feature-list {
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  color: var(--light-text-secondary);
}

.feature-list i {
  color: var(--primary-light);
  font-size: 1.1rem;
}

/* Gamification Section */
.gamification-section {
  padding: 6rem 0;
  background: var(--dark-surface-2);
  position: relative;
}

.gamification-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at bottom left, rgba(139, 95, 191, 0.1), transparent 70%);
  z-index: 0;
}

.gamification-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  position: relative;
  z-index: 1;
}

.leaderboard-preview {
  background: rgba(25, 25, 39, 0.7);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.leaderboard-header {
  background: var(--gradient-primary);
  padding: 1.2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.leaderboard-header h3 {
  color: white;
  margin: 0;
  font-size: 1.2rem;
}

.leaderboard-tabs {
  display: flex;
  gap: 0.5rem;
}

.leaderboard-tab {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: var(--transition);
}

.leaderboard-tab.active {
  background: white;
  color: var(--primary-color);
  font-weight: 600;
}

.leaderboard-content {
  padding: 0.5rem;
}

.leaderboard-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.leaderboard-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.rank-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-right: 1rem;
  color: var(--light-text);
}

.rank-1 {
  background: gold;
  color: #333;
}

.rank-2 {
  background: silver;
  color: #333;
}

.rank-3 {
  background: #cd7f32;
  color: #333;
}

.leaderboard-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 1rem;
  object-fit: cover;
}

.anonymous-avatar-leaderboard {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 1rem;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light-text);
}

.leaderboard-user {
  display: flex;
  align-items: center;
  flex: 1;
}

.user-details h4 {
  margin: 0 0 0.2rem 0;
  font-size: 0.95rem;
  color: var(--light-text);
}

.user-details p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--light-text-secondary);
}

.user-stats {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-points {
  background: rgba(139, 95, 191, 0.2);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--light-text);
}

.user-level {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--light-text);
}

.points-info {
  padding: 1rem;
}

.points-info h3 {
  font-size: 1.6rem;
  color: var(--light-text);
  margin-bottom: 1rem;
}

.points-info > p {
  font-size: 1.05rem;
  color: var(--light-text-secondary);
  margin-bottom: 2rem;
}

.points-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.points-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.points-icon {
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gradient-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: white;
}

.points-icon span {
  position: absolute;
  top: -5px;
  right: -10px;
  background: #4cd137;
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 10px;
}

.points-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--light-text);
}

.anonymous-points-note {
  background: rgba(139, 95, 191, 0.1);
  border: 1px solid rgba(139, 95, 191, 0.3);
  border-radius: var(--border-radius);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.anonymous-points-note i {
  font-size: 1.5rem;
  color: var(--primary-light);
}

.anonymous-points-note p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--light-text);
}

/* Get Support Section */
.get-support {
  padding: 6rem 0;
  background: var(--dark-surface-3);
}

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

.support-text h2 {
  font-size: 2.5rem;
  color: var(--light-text);
  margin-bottom: 1.5rem;
}

.support-text > p {
  font-size: 1.2rem;
  color: var(--light-text-secondary);
  margin-bottom: 3rem;
}

.support-features {
  margin-bottom: 3rem;
}

.support-feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
}

.support-feature i {
  color: var(--primary-light);
  font-size: 1.5rem;
  margin-top: 0.2rem;
}

.support-feature h4 {
  color: var(--light-text);
  margin-bottom: 0.5rem;
}

.support-feature p {
  color: var(--light-text-secondary);
}

.download-section {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  padding: 2.5rem;
  text-align: center;
}

.download-section h3 {
  color: var(--light-text);
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.download-section > p {
  margin-bottom: 2rem;
}

.download-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.download-badges {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.store-badge {
  height: 50px;
  width: auto;
  display: inline-block;
}

/* Fix for App Store badge to match Google Play badge size */
.app-store-badge {
  margin: 6%;
  width: 88%;
}

.google-play-badge {
  width: 105%;
  height: 60px;
  transform: scale(1.05, 1.1);
  margin-top: 5px;
}

.download-note {
  font-size: 0.9rem;
  color: var(--light-text-secondary);
}

.support-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-showcase {
  position: relative;
}

.support-phone {
  max-width: 300px;
  height: auto;
  border-radius: 25px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.community-bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.community-bubble {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 1rem;
  max-width: 200px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  animation: bubbleFloat 4s ease-in-out infinite;
}

.bubble-1 {
  top: 15%;
  right: -40%;
  animation-delay: 0s;
}

.bubble-2 {
  top: 45%;
  left: -50%;
  animation-delay: 1.5s;
}

.bubble-3 {
  bottom: 20%;
  right: -30%;
  animation-delay: 3s;
}

@keyframes bubbleFloat {
  0%, 100% { transform: translateY(0px) scale(0.95); opacity: 0.8; }
  50% { transform: translateY(-8px) scale(1); opacity: 1; }
}

.bubble-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  overflow: hidden;
  float: left;
  margin-right: 0.8rem;
}

.bubble-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bubble-text p {
  color: var(--dark-bg);
  font-size: 0.9rem;
  margin: 0;
  font-weight: 500;
}

.bubble-time {
  font-size: 0.7rem;
  color: #666;
}

/* Crisis Support Banner */
.crisis-support {
  padding: 2rem 0;
  background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.crisis-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.crisis-icon {
  font-size: 2rem;
  color: white;
}

.crisis-text {
  flex: 1;
}

.crisis-text h3 {
  color: white;
  margin-bottom: 0.5rem;
}

.crisis-text p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.crisis-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.crisis-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  transition: var(--transition);
}

.crisis-link:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Footer */
footer {
  background: var(--dark-surface-3);
  padding: 3rem 0 1.5rem;
}

.footer-content {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 2rem;
  margin-bottom: 1.5rem;
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 3rem;
}

.footer-brand h3 {
  color: var(--light-text);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.footer-brand p {
  color: var(--light-text-secondary);
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light-text);
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--gradient-primary);
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-column h4 {
  color: var(--light-text);
  margin-bottom: 1rem;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 0.8rem;
}

.footer-column a {
  color: var(--light-text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.footer-column a:hover {
  color: var(--light-text);
}

.footer-bottom {
  text-align: center;
}

.footer-bottom p {
  color: var(--light-text-secondary);
  font-size: 0.9rem;
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  box-shadow: var(--shadow-warm);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-3px);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-fade-in-up.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(15, 15, 26, 0.95);
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    gap: 1rem;
  }
  
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .hero-text h1 {
    font-size: 2.5rem;
  }
  
  .hero-stats {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
  }
  
  .stories-grid {
    grid-template-columns: 1fr;
  }
  
  .help-feature {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .help-feature.reverse {
    direction: ltr;
  }
  
  .support-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .download-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .footer-main {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
  }
  
  .crisis-content {
    text-align: center;
    flex-direction: column;
    gap: 1rem;
  }
  
  .floating-elements,
  .community-bubbles {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 2rem;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .story-card {
    padding: 1.5rem;
  }
  
  .download-section {
    padding: 2rem;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Accessibility */
:focus {
  outline: 3px solid var(--accent-light);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}