/* =============================================
   MindBloom – Mental Fitness for Young Minds
   style.css – Main Stylesheet
   ============================================= */

/* ---------- CSS Custom Properties ---------- */
:root {
  --sky-blue: #bae6fd;
  --light-blue: #e0f2fe;
  --lavender: #ddd6fe;
  --soft-purple: #c4b5fd;
  --soft-green: #bbf7d0;
  --mint: #d1fae5;
  --white: #ffffff;
  --off-white: #f8fafc;
  --soft-bg: #f0f9ff;

  --text-dark: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-green: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%);
  --gradient-blue: linear-gradient(135deg, #4fc3f7 0%, #29b6f6 100%);
  --gradient-warm: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-calm: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
  --gradient-hero: linear-gradient(135deg, #e0f2fe 0%, #f0e7ff 50%, #d1fae5 100%);

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.12);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;

  --nav-height: 70px;
  --container-max: 1200px;
  --section-padding: 80px 0;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }

img { max-width: 100%; height: auto; display: block; }

button { cursor: pointer; border: none; background: none; font-family: inherit; }

input, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ---------- Utility Classes ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: var(--section-padding);
}

.bg-soft {
  background: var(--soft-bg);
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-tag {
  display: inline-block;
  background: var(--lavender);
  color: #5b21b6;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.45);
}

.btn-ghost {
  background: rgba(255,255,255,0.8);
  color: var(--text-dark);
  border: 2px solid rgba(102, 126, 234, 0.2);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: var(--white);
  border-color: rgba(102, 126, 234, 0.5);
  transform: translateY(-2px);
}

.btn-tool {
  background: var(--light-blue);
  color: #0369a1;
  font-weight: 600;
  border-radius: var(--radius-full);
  padding: 10px 22px;
  font-size: 0.9rem;
  transition: var(--transition);
  width: 100%;
  justify-content: center;
  margin-top: 12px;
}

.btn-tool:hover {
  background: var(--sky-blue);
  transform: translateY(-1px);
}

.btn-small {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: var(--radius-full);
  background: var(--lavender);
  color: #5b21b6;
  font-weight: 600;
  transition: var(--transition);
}

.btn-small:hover {
  background: var(--soft-purple);
  transform: translateY(-1px);
}

.btn-small.btn-primary {
  background: var(--gradient-primary);
  color: white;
}

.btn-full { width: 100%; justify-content: center; }

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  height: var(--nav-height);
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-dark);
  transition: var(--transition);
}

.nav-logo:hover { color: #6366f1; }

.logo-icon { font-size: 1.5rem; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.nav-links a:hover {
  color: #6366f1;
  background: var(--lavender);
}

.nav-cta {
  background: var(--gradient-primary) !important;
  color: white !important;
  padding: 10px 20px !important;
  box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4) !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

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

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.4;
}

.shape-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.3), transparent);
  top: -100px;
  right: -100px;
  animation: float 8s ease-in-out infinite;
}

.shape-2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(110, 231, 183, 0.3), transparent);
  bottom: -50px;
  left: -80px;
  animation: float 10s ease-in-out infinite reverse;
}

.shape-3 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(186, 230, 253, 0.5), transparent);
  top: 30%;
  left: 40%;
  animation: float 7s ease-in-out infinite 2s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -20px) scale(1.05); }
  66% { transform: translate(-15px, 10px) scale(0.97); }
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 60px 24px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: white;
  color: #7c3aed;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 480px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 20px;
}

.stat {
  text-align: center;
}

.stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: #6366f1;
}

.stat span {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(99, 102, 241, 0.2);
}

/* Hero Illustration */
.hero-illustration {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-circle {
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.15), rgba(110, 231, 183, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(167, 139, 250, 0.2);
  position: relative;
  animation: pulse-ring 4s ease-in-out infinite;
}

@keyframes pulse-ring {
  0%, 100% { box-shadow: 0 0 0 0 rgba(167, 139, 250, 0.2); }
  50% { box-shadow: 0 0 0 20px rgba(167, 139, 250, 0); }
}

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

.hero-icon-main {
  font-size: 5rem;
  animation: bounce-soft 3s ease-in-out infinite;
  z-index: 1;
}

@keyframes bounce-soft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-emoji-grid {
  position: absolute;
  inset: 0;
}

.emoji-float {
  position: absolute;
  font-size: 1.75rem;
  animation: orbit 12s linear infinite;
}

.e1 { top: 10%; left: 50%; animation-delay: 0s; }
.e2 { top: 30%; right: 8%; animation-delay: -2s; }
.e3 { bottom: 20%; right: 15%; animation-delay: -4s; }
.e4 { bottom: 10%; left: 50%; animation-delay: -6s; }
.e5 { bottom: 30%; left: 8%; animation-delay: -8s; }
.e6 { top: 20%; left: 15%; animation-delay: -10s; }

@keyframes orbit {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(8px, -8px) scale(1.1); }
  50% { transform: translate(0, -15px) scale(1); }
  75% { transform: translate(-8px, -8px) scale(0.9); }
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scroll-dot {
  width: 6px;
  height: 6px;
  background: #6366f1;
  border-radius: 50%;
  animation: scroll-bounce 1.5s ease-in-out infinite;
  box-shadow: 0 0 0 8px rgba(99, 102, 241, 0.1);
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(8px); opacity: 0.4; }
}

/* ---------- About Section ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-text p {
  color: var(--text-body);
  margin-bottom: 20px;
  font-size: 1.025rem;
  line-height: 1.8;
}

.challenge-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 28px;
}

.challenge-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: white;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(99, 102, 241, 0.1);
  transition: var(--transition);
}

.challenge-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
  border-color: rgba(99, 102, 241, 0.2);
}

.challenge-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.challenge-item strong {
  display: block;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}

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

.pillar-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(99, 102, 241, 0.08);
}

.pillar-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 24px;
  text-align: center;
}

.pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.pillar {
  background: var(--soft-bg);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
  transition: var(--transition);
  cursor: default;
}

.pillar:hover {
  background: var(--lavender);
  transform: scale(1.03);
}

.pillar-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.pillar strong {
  display: block;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.pillar span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---------- Tools Section ---------- */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tool-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.05);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.tool-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.tool-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.tool-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.tool-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  flex: 1;
}

/* Breathing Exercise */
.breathing-exercise {
  text-align: center;
  margin: 16px 0;
}

.breath-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--gradient-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  transition: transform 0.5s ease, background 0.5s ease;
  box-shadow: 0 0 0 0 rgba(79, 195, 247, 0.4);
}

.breath-circle.inhale {
  transform: scale(1.4);
  box-shadow: 0 0 0 15px rgba(79, 195, 247, 0.15);
}

.breath-circle.hold {
  transform: scale(1.4);
  background: var(--gradient-green);
  box-shadow: 0 0 0 15px rgba(86, 171, 47, 0.15);
}

.breath-circle.exhale {
  transform: scale(0.8);
  background: var(--gradient-calm);
  box-shadow: 0 0 0 5px rgba(168, 237, 234, 0.2);
}

#breath-text {
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
  text-align: center;
  padding: 8px;
}

.breath-instruction {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  min-height: 1.4em;
}

/* Meditation Timer */
.meditation-timer {
  text-align: center;
  margin: 16px 0;
}

.timer-display {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  background: var(--soft-bg);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.timer-display.active {
  color: #6366f1;
  animation: pulse-text 2s ease-in-out infinite;
}

@keyframes pulse-text {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.timer-controls {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 12px;
}

/* Affirmations */
.affirmation-box {
  background: linear-gradient(135deg, #e0e7ff, #ede9fe);
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 16px 0;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.affirmation-text {
  font-style: italic;
  color: #4c1d95;
  font-weight: 500;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.6;
  animation: fade-in 0.4s ease;
}

/* Mood Tracker */
.mood-tracker { margin: 16px 0; }

.mood-question {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-weight: 500;
}

.mood-options {
  display: flex;
  justify-content: space-around;
  gap: 8px;
}

.mood-btn {
  font-size: 1.6rem;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer;
  background: var(--soft-bg);
  border: 2px solid transparent;
  flex: 1;
  text-align: center;
}

.mood-btn:hover {
  transform: scale(1.2);
  background: var(--mint);
  border-color: var(--soft-green);
}

.mood-btn.selected {
  background: var(--mint);
  border-color: #059669;
  transform: scale(1.15);
}

.mood-result {
  margin-top: 12px;
  font-size: 0.88rem;
  color: #065f46;
  font-weight: 500;
  min-height: 1.4em;
  text-align: center;
  background: var(--mint);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  display: none;
}

.mood-result.show { display: block; animation: fade-in 0.3s ease; }

/* Gratitude Journal */
.gratitude-journal { margin: 12px 0; }

.gratitude-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--text-dark);
  transition: var(--transition);
  outline: none;
  background: var(--soft-bg);
}

.gratitude-input:focus {
  border-color: #6366f1;
  background: white;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.gratitude-list {
  max-height: 100px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.gratitude-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 0;
  font-size: 0.88rem;
  color: #065f46;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  animation: slide-in 0.3s ease;
}

.gratitude-list li::before { content: "✓"; color: #059669; font-weight: 700; flex-shrink: 0; }

/* Quote Tool */
.quote-box {
  background: linear-gradient(135deg, #fdf4ff, #fce7f3);
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 16px 0;
  min-height: 80px;
  display: flex;
  align-items: center;
}

.quote-text-tool {
  font-style: italic;
  color: #9d174d;
  font-size: 0.9rem;
  line-height: 1.6;
  animation: fade-in 0.4s ease;
}

/* ---------- Stress Section ---------- */
.stress-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.stress-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.05);
}

.stress-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.stress-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.stress-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: rgba(99, 102, 241, 0.1);
  position: absolute;
  top: 16px;
  right: 24px;
  line-height: 1;
}

.stress-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.stress-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.stress-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.stress-steps {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.stress-steps span {
  background: var(--light-blue);
  color: #0369a1;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
}

.stress-tips {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stress-tips span {
  background: var(--soft-bg);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text-body);
}

/* ---------- Habits Section ---------- */
.habits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.habit-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.05);
  position: relative;
  overflow: hidden;
}

.habit-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-green);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.habit-card:hover::after { transform: scaleX(1); }
.habit-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.habit-emoji {
  font-size: 3rem;
  margin-bottom: 16px;
  display: block;
}

.habit-card h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.habit-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.65;
  margin-bottom: 20px;
}

.habit-goal {
  background: var(--soft-bg);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.goal-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.goal-value {
  font-size: 0.82rem;
  font-weight: 700;
  color: #059669;
}

/* ---------- Stories Section ---------- */
.stories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.story-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.05);
  transition: var(--transition);
}

.story-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.story-quote {
  font-family: Georgia, serif;
  font-size: 5rem;
  line-height: 0.5;
  color: rgba(99, 102, 241, 0.15);
  margin-bottom: 16px;
}

.story-text {
  color: var(--text-body);
  font-style: italic;
  line-height: 1.75;
  margin-bottom: 24px;
  font-size: 0.975rem;
}

.story-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sky-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: #0369a1;
  flex-shrink: 0;
}

.author-info strong {
  display: block;
  font-weight: 700;
  color: var(--text-dark);
  font-size: 0.9rem;
}

.author-info span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.story-rating {
  margin-left: auto;
  font-size: 0.85rem;
}

/* ---------- Resources Section ---------- */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.resource-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.05);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.resource-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.resource-type {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  width: fit-content;
}

.resource-type.article { background: var(--light-blue); color: #0369a1; }
.resource-type.guide { background: var(--mint); color: #065f46; }
.resource-type.tip { background: var(--lavender); color: #5b21b6; }

.resource-emoji { font-size: 2rem; margin-bottom: 12px; }

.resource-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
  line-height: 1.4;
}

.resource-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.65;
  flex: 1;
  margin-bottom: 20px;
}

.resource-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.resource-meta span { font-size: 0.82rem; color: var(--text-muted); }

.resource-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: #6366f1;
  transition: var(--transition);
}

.resource-link:hover { color: #4f46e5; text-decoration: underline; }

/* ---------- Motivation Section ---------- */
.motivation {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #1e3a5f 100%);
}

.motivation-card {
  text-align: center;
  position: relative;
  padding: 60px 40px;
  max-width: 800px;
  margin: 0 auto;
}

.motivation .section-tag {
  background: rgba(255,255,255,0.15);
  color: #c7d2fe;
}

.motivation-card h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: white;
  margin-bottom: 40px;
}

.motivation-card h2 .gradient-text {
  background: linear-gradient(135deg, #a5b4fc, #6ee7b7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.quote-display {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  margin-bottom: 32px;
  backdrop-filter: blur(10px);
  position: relative;
}

.quote-marks {
  font-family: Georgia, serif;
  font-size: 6rem;
  line-height: 0.5;
  color: rgba(255,255,255,0.1);
  position: absolute;
  top: 24px;
  left: 32px;
}

.daily-quote-text {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: white;
  font-style: italic;
  line-height: 1.8;
  font-weight: 300;
  animation: fade-in 0.6s ease;
}

.quote-author {
  margin-top: 16px;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  font-style: normal;
  animation: fade-in 0.6s ease 0.2s both;
}

.motivation-decorations { pointer-events: none; }

.deco {
  position: absolute;
  font-size: 1.5rem;
  animation: float 6s ease-in-out infinite;
  opacity: 0.5;
}

.d1 { top: 10%; left: 5%; animation-delay: 0s; }
.d2 { top: 15%; right: 5%; animation-delay: -2s; }
.d3 { bottom: 15%; left: 8%; animation-delay: -4s; }
.d4 { bottom: 10%; right: 8%; animation-delay: -1s; }

/* ---------- Contact Section ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: white;
  padding: 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.05);
  transition: var(--transition);
}

.contact-item:hover { box-shadow: var(--shadow-md); transform: translateX(4px); }

.contact-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--lavender);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-item strong {
  display: block;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.contact-item p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.helpline-note {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-md);
  padding: 16px;
  font-size: 0.88rem;
  color: #dc2626;
  line-height: 1.5;
}

/* Contact Form */
.contact-form {
  background: white;
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid rgba(99, 102, 241, 0.15);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--soft-bg);
  transition: var(--transition);
  outline: none;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #6366f1;
  background: white;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group input.error,
.form-group textarea.error {
  border-color: #ef4444;
}

.field-error {
  display: block;
  font-size: 0.8rem;
  color: #ef4444;
  margin-top: 4px;
  min-height: 1.2em;
}

.form-success {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--mint);
  border: 1px solid var(--soft-green);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 16px;
  animation: fade-in 0.4s ease;
}

.form-success span { font-size: 1.5rem; }
.form-success p { font-size: 0.9rem; color: #065f46; margin: 0; font-weight: 500; }

/* ---------- Footer ---------- */
.footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  color: white;
  display: block;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 24px;
  color: rgba(255,255,255,0.55);
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}

.social-link:hover {
  background: rgba(99, 102, 241, 0.3);
  color: white;
  border-color: rgba(99, 102, 241, 0.5);
  transform: translateY(-2px);
}

.footer-links-col h4 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
  letter-spacing: 0.03em;
}

.footer-links-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-col a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  transition: var(--transition);
}

.footer-links-col a:hover {
  color: #a5b4fc;
  padding-left: 4px;
}

.footer-helplines h4 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
}

.helpline {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 12px;
}

.helpline strong {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  font-weight: 600;
}

.helpline a {
  font-size: 0.88rem;
  color: #6ee7b7;
  font-weight: 600;
  transition: var(--transition);
}

.helpline a:hover { color: #a7f3d0; text-decoration: underline; }

.footer-helplines .helpline-note {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  margin-top: 8px;
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
}

.footer-tagline {
  color: rgba(110, 231, 183, 0.7) !important;
}

/* ---------- Animations ---------- */
@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slide-in {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

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

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.tools-grid .fade-up:nth-child(1) { transition-delay: 0.05s; }
.tools-grid .fade-up:nth-child(2) { transition-delay: 0.1s; }
.tools-grid .fade-up:nth-child(3) { transition-delay: 0.15s; }
.tools-grid .fade-up:nth-child(4) { transition-delay: 0.2s; }
.tools-grid .fade-up:nth-child(5) { transition-delay: 0.25s; }
.tools-grid .fade-up:nth-child(6) { transition-delay: 0.3s; }

.habits-grid .fade-up:nth-child(1) { transition-delay: 0.05s; }
.habits-grid .fade-up:nth-child(2) { transition-delay: 0.1s; }
.habits-grid .fade-up:nth-child(3) { transition-delay: 0.15s; }
.habits-grid .fade-up:nth-child(4) { transition-delay: 0.2s; }
.habits-grid .fade-up:nth-child(5) { transition-delay: 0.25s; }
.habits-grid .fade-up:nth-child(6) { transition-delay: 0.3s; }

.resources-grid .fade-up:nth-child(1) { transition-delay: 0.05s; }
.resources-grid .fade-up:nth-child(2) { transition-delay: 0.1s; }
.resources-grid .fade-up:nth-child(3) { transition-delay: 0.15s; }
.resources-grid .fade-up:nth-child(4) { transition-delay: 0.2s; }
.resources-grid .fade-up:nth-child(5) { transition-delay: 0.25s; }
.resources-grid .fade-up:nth-child(6) { transition-delay: 0.3s; }

/* ---------- Responsive Breakpoints ---------- */

/* Large tablets */
@media (max-width: 1024px) {
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .habits-grid { grid-template-columns: repeat(2, 1fr); }
  .resources-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero-circle { width: 300px; height: 300px; }
}

/* Tablets */
@media (max-width: 768px) {
  :root {
    --section-padding: 60px 0;
    --nav-height: 64px;
  }

  .hamburger { display: flex; }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 20px 24px 32px;
    gap: 4px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    transform: translateY(-110%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
    box-shadow: var(--shadow-lg);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-links a { width: 100%; text-align: center; padding: 12px; }
  .nav-cta { margin-top: 8px; }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
    padding: 40px 24px;
  }

  .hero-subtitle { margin: 0 auto 36px; }

  .hero-actions { justify-content: center; }

  .hero-stats { justify-content: center; }

  .hero-illustration { order: -1; }

  .hero-circle { width: 260px; height: 260px; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }

  .stress-grid { grid-template-columns: 1fr; }

  .stories-grid { grid-template-columns: 1fr; }

  .contact-layout { grid-template-columns: 1fr; gap: 40px; }

  .motivation-card { padding: 40px 24px; }
  .quote-display { padding: 36px 28px; }
}

/* Mobile */
@media (max-width: 480px) {
  :root {
    --section-padding: 48px 0;
  }

  .tools-grid { grid-template-columns: 1fr; }
  .habits-grid { grid-template-columns: 1fr; }
  .resources-grid { grid-template-columns: 1fr; }
  .stories-grid { grid-template-columns: 1fr; }

  .hero-circle { width: 200px; height: 200px; }
  .hero-icon-main { font-size: 3.5rem; }

  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }

  .footer-bottom { flex-direction: column; text-align: center; }

  .contact-form { padding: 28px 20px; }

  .pillars { grid-template-columns: 1fr 1fr; }

  .mood-options { gap: 4px; }
  .mood-btn { font-size: 1.3rem; }
}

/* Focus styles for accessibility */
:focus-visible {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
}

/* Smooth scroll offset for fixed nav */
section[id] {
  scroll-margin-top: var(--nav-height);
}
