/* ===========================================
   AlivioMind - Design System & Styles
   Cultivating Inner Peace & Growth
   =========================================== */

/* ===== Google Fonts ===== */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Nunito:wght@300;400;500;600;700&display=swap");

/* ===== CSS Custom Properties (Light Theme Default) ===== */
:root {
  /* Primary Colors - Brand Blue #6EC1E4 */
  --primary: #6ec1e4;
  --primary-light: #8fd0eb;
  --primary-dark: #4fafd8;
  --primary-gradient: linear-gradient(135deg, #6ec1e4 0%, #4fb3a3 100%);

  /* Accent Colors */
  --accent: #f26762;
  --accent-light: #f26762;
  --accent-dark: #f26762;
  --tagline-color: #f26762;

  /* Neutral Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f5f9fc;
  --bg-tertiary: #eaf3f8;
  --surface: #ffffff;
  --surface-elevated: #ffffff;

  /* Text Colors */
  --text-primary: #1a2a35;
  --text-secondary: #506a78;
  --text-muted: #8da4b0;
  --text-inverse: #ffffff;

  /* Border & Divider */
  --border: rgba(110, 193, 228, 0.15);
  --border-strong: rgba(110, 193, 228, 0.3);
  --divider: rgba(110, 193, 228, 0.1);
  --border-color: rgba(110, 193, 228, 0.15);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(110, 193, 228, 0.08);
  --shadow-md: 0 4px 20px rgba(110, 193, 228, 0.12);
  --shadow-lg: 0 8px 40px rgba(110, 193, 228, 0.16);
  --shadow-xl: 0 16px 60px rgba(110, 193, 228, 0.2);
  --shadow-glow: 0 0 40px rgba(110, 193, 228, 0.3);

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-blur: 20px;

  /* Typography */
  --font-primary: "Nunito", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: "Poppins", "Nunito", sans-serif;

  /* Font Sizes (Fluid Typography) */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.6vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.1rem + 0.8vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.2rem + 1.5vw, 2rem);
  --text-3xl: clamp(1.875rem, 1.4rem + 2.3vw, 2.5rem);
  --text-4xl: clamp(2.25rem, 1.6rem + 3.2vw, 3.5rem);
  --text-5xl: clamp(3rem, 2rem + 5vw, 5rem);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-2xl: 40px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Z-index Scale */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;

  /* Container */
  --container-max: 1280px;
  --container-padding: clamp(1rem, 3vw, 2rem);
}

/* ===== Dark Theme ===== */
[data-theme="dark"] {
  --bg-primary: #0d1a22;
  --bg-secondary: #132630;
  --bg-tertiary: #1a3240;
  --surface: #1a3240;
  --surface-elevated: #213e4e;

  --text-primary: #e4f0f8;
  --text-secondary: #a4c2d4;
  --text-muted: #6a92a8;

  --border: rgba(110, 193, 228, 0.2);
  --border-strong: rgba(110, 193, 228, 0.35);
  --border-color: rgba(110, 193, 228, 0.2);
  --divider: rgba(110, 193, 228, 0.12);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 16px 60px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 60px rgba(110, 193, 228, 0.4);

  --glass-bg: rgba(26, 50, 64, 0.8);
  --glass-border: rgba(110, 193, 228, 0.15);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition:
    background-color var(--transition-slow),
    color var(--transition-slow);
}

/* Selection */
::selection {
  background-color: var(--primary);
  color: var(--text-inverse);
}

/* Focus States */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

/* Lists */
ul,
ol {
  list-style: none;
}

/* Buttons */
button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

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

/* ===== Typography ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

.section-title {
  font-size: var(--text-3xl);
  text-align: center;
  margin-bottom: var(--space-md);
}

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

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-3xl);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn:hover {
  filter: brightness(1.05);
}

.btn-primary {
  background: var(--primary-gradient);
  color: var(--text-inverse);
  box-shadow:
    var(--shadow-md),
    0 4px 20px rgba(45, 140, 140, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow:
    var(--shadow-lg),
    0 8px 30px rgba(45, 140, 140, 0.5);
}

.btn-primary:active {
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-dark);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: var(--text-primary);
  border-color: var(--primary);
  transform: translateY(-3px);
}

.btn-accent {
  background: linear-gradient(
    135deg,
    var(--accent) 0%,
    var(--accent-light) 100%
  );
  color: var(--text-inverse);
  box-shadow:
    var(--shadow-md),
    0 4px 20px rgba(224, 122, 95, 0.4);
}

.btn-accent:hover {
  transform: translateY(-3px);
  box-shadow:
    var(--shadow-lg),
    0 8px 30px rgba(224, 122, 95, 0.5);
}

.btn-icon {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: var(--radius-full);
}

/* ===== Cards ===== */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-base);
  border: 1px solid var(--border);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.card-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  padding: var(--space-md) 0;
  transition: all var(--transition-base);
}

.header.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  z-index: calc(var(--z-fixed) + 1);
  flex-shrink: 0;
}

.logo > div {
  display: flex;
  flex-direction: column;
}

.logo img {
  height: 48px;
  width: auto;
}

.logo-text {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--primary);
}

.logo-tagline {
  font-size: 0.8rem;
  font-weight: bold;
  color: var(--tagline-color);
  margin-top: -2px;
  display: block;
}

@media (max-width: 1200px) {
  .logo-tagline {
    display: none;
  }
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  position: relative;
  white-space: nowrap;
}

/* Nav link hover and active effects are in navigation.css */

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Theme Toggle */
.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  color: var(--text-secondary);
}

.theme-toggle:hover {
  background: var(--primary);
  color: var(--text-inverse);
  transform: rotate(15deg);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-bounce);
}

.theme-toggle:hover svg {
  transform: scale(1.1);
}

.theme-toggle .icon-sun {
  display: none;
}
.theme-toggle .icon-moon {
  display: block;
}

[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}
[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  z-index: calc(var(--z-fixed) + 1);
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  transform-origin: center;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Navigation */
@media (max-width: 991px) {
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100vh;
    background: var(--surface);
    flex-direction: column;
    justify-content: center;
    padding: var(--space-3xl);
    transform: translateX(100%);
    transition: transform var(--transition-slow);
    box-shadow: var(--shadow-xl);
  }

  .nav.active {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    gap: var(--space-md);
    width: 100%;
  }

  .nav-link {
    font-size: var(--text-lg);
    width: 100%;
    text-align: center;
    padding: var(--space-md);
  }

  .menu-toggle {
    display: flex;
  }

  .mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: calc(var(--z-fixed) - 1);
  }

  .mobile-overlay.active {
    opacity: 1;
    visibility: visible;
  }
}

/* ===== Hero Section ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(80px + var(--space-3xl)) 0 var(--space-4xl);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -30%;
  width: 80%;
  height: 120%;
  background: radial-gradient(
    circle,
    rgba(45, 140, 140, 0.1) 0%,
    transparent 70%
  );
  animation: pulse-bg 8s ease-in-out infinite;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -20%;
  width: 60%;
  height: 80%;
  background: radial-gradient(
    circle,
    rgba(224, 122, 95, 0.08) 0%,
    transparent 70%
  );
  animation: pulse-bg 10s ease-in-out infinite reverse;
}

@keyframes pulse-bg {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text {
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--bg-tertiary);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--primary);
  margin-bottom: var(--space-xl);
  animation: fadeInUp 0.6s ease;
}

.hero-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

.hero-title {
  font-size: var(--text-5xl);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-xl);
  animation: fadeInUp 0.6s ease 0.1s backwards;
}

.hero-title .highlight {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.hero-subtitle {
  font-size: var(--text-xl);
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
  animation: fadeInUp 0.6s ease 0.2s backwards;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-3xl);
  animation: fadeInUp 0.6s ease 0.3s backwards;
}

.hero-stats {
  display: flex;
  gap: var(--space-2xl);
  animation: fadeInUp 0.6s ease 0.4s backwards;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  animation: fadeInRight 0.8s ease 0.3s backwards;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.hero-image-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(45, 140, 140, 0.2) 0%,
    transparent 50%
  );
  z-index: 1;
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.hero-image-wrapper:hover img {
  transform: scale(1.05);
}

/* Floating Elements */
.floating-card {
  position: absolute;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  box-shadow: var(--shadow-lg);
  animation: float 4s ease-in-out infinite;
}

.floating-card-1 {
  top: 10%;
  left: -15%;
  animation-delay: 0s;
}

.floating-card-2 {
  bottom: 15%;
  right: -10%;
  animation-delay: 2s;
}

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

.floating-card-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-gradient);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm);
}

.floating-card-icon svg {
  width: 20px;
  height: 20px;
  color: white;
}

.floating-card-text {
  font-weight: 600;
  font-size: var(--text-sm);
}

.floating-card-subtext {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

@media (max-width: 991px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text {
    max-width: 100%;
  }

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

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

  .hero-visual {
    order: -1;
    max-width: 500px;
    margin: 0 auto;
  }

  .floating-card {
    display: none;
  }
}

@media (max-width: 575px) {
  .hero {
    min-height: auto;
    padding-top: calc(80px + var(--space-2xl));
  }

  .hero-stats {
    flex-direction: column;
    gap: var(--space-lg);
  }
}

/* ===== Sections Common ===== */
section {
  padding: var(--space-5xl) 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-4xl);
}

/* ===== Who We Support Section ===== */
.support-section {
  background: var(--bg-secondary);
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-xl);
}

.support-card {
  text-align: center;
  padding: var(--space-2xl) var(--space-xl);
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.support-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-gradient);
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.support-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.support-card:hover::before {
  transform: scaleX(1);
}

.support-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-lg);
  background: var(--bg-tertiary);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}

.support-card:hover .support-icon {
  background: var(--primary-gradient);
  transform: scale(1.1) rotate(5deg);
}

.support-icon svg {
  width: 36px;
  height: 36px;
  color: var(--primary);
  transition: color var(--transition-fast);
}

.support-card:hover .support-icon svg {
  color: white;
}

.support-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
}

.support-card p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* ===== What We Do Section ===== */
.services-section {
  background: var(--bg-primary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

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

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

.service-card {
  padding: var(--space-2xl);
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--primary), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

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

.service-card:hover::after {
  opacity: 0.05;
}

.service-number {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--bg-tertiary);
  line-height: 1;
  margin-bottom: var(--space-md);
  transition: color var(--transition-base);
}

.service-card:hover .service-number {
  color: var(--primary-light);
}

.service-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-md);
}

.service-card p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

/* ===== How It Works Section ===== */
.process-section {
  background: var(--bg-secondary);
  overflow: hidden;
}

.process-timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.process-timeline::before {
  content: "";
  position: absolute;
  top: 50px;
  left: 50px;
  right: 50px;
  height: 4px;
  background: var(--border);
  border-radius: var(--radius-full);
}

.process-step {
  flex: 1;
  text-align: center;
  padding: 0 var(--space-md);
  position: relative;
  z-index: 1;
}

.process-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto var(--space-lg);
  background: var(--surface);
  border: 4px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  position: relative;
}

.process-icon::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: var(--primary-gradient);
  opacity: 0;
  transform: scale(0.8);
  transition: all var(--transition-base);
  z-index: -1;
}

.process-step:hover .process-icon {
  border-color: transparent;
  transform: scale(1.1);
}

.process-step:hover .process-icon::before {
  opacity: 0.2;
  transform: scale(1);
}

.process-icon svg {
  width: 40px;
  height: 40px;
  color: var(--primary);
}

.process-step h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-sm);
}

.process-step p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  max-width: 200px;
  margin: 0 auto;
}

@media (max-width: 767px) {
  .process-timeline {
    flex-direction: column;
    gap: var(--space-2xl);
  }

  .process-timeline::before {
    top: 0;
    bottom: 0;
    left: 50px;
    right: auto;
    width: 4px;
    height: auto;
  }

  .process-step {
    display: flex;
    text-align: left;
    gap: var(--space-lg);
    align-items: center;
    padding: 0;
  }

  .process-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    margin: 0;
  }

  .process-step p {
    margin: 0;
    max-width: none;
  }
}

/* ===== Programs Section ===== */
.programs-section {
  background: var(--bg-primary);
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}

.program-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all var(--transition-base);
}

.program-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.program-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.program-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.program-card:hover .program-image img {
  transform: scale(1.1);
}

.program-badge {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  background: var(--primary);
  color: white;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
}

.program-content {
  padding: var(--space-xl);
}

.program-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
}

.program-card p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  margin-bottom: var(--space-lg);
}

.program-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.program-meta span {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.program-meta svg {
  width: 14px;
  height: 14px;
}

/* ===== Why AlivioMind Section ===== */
.benefits-section {
  background: var(--bg-secondary);
  position: relative;
}

.benefits-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232D8C8C' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.benefits-content {
  position: relative;
  z-index: 1;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

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

.benefit-card {
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-xl);
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  transition: all var(--transition-base);
}

.benefit-card:hover {
  transform: translateX(10px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.benefit-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: var(--primary-gradient);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(45, 140, 140, 0.3);
}

.benefit-icon svg {
  width: 28px;
  height: 28px;
  color: white;
}

.benefit-content h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-sm);
}

.benefit-content p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* ===== Partners Section ===== */
.partners-section {
  background: var(--bg-primary);
}

.partners-text {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.partners-text p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.partners-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-2xl);
}

.partner-logo {
  width: 120px;
  height: 60px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all var(--transition-base);
}

.partner-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
}

/* ===== CTA Section ===== */
.cta-section {
  background: var(--primary-gradient);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before,
.cta-section::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.cta-section::before {
  width: 400px;
  height: 400px;
  top: -200px;
  left: -100px;
}

.cta-section::after {
  width: 300px;
  height: 300px;
  bottom: -150px;
  right: -50px;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: var(--text-4xl);
  color: white;
  margin-bottom: var(--space-lg);
}

.cta-subtitle {
  font-size: var(--text-xl);
  opacity: 0.9;
  margin-bottom: var(--space-2xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.cta-section .btn-primary {
  background: white;
  color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.cta-section .btn-primary:hover {
  background: var(--bg-secondary);
}

.cta-section .btn-secondary {
  border-color: white;
  color: white;
}

.cta-section .btn-secondary:hover {
  background: white;
  color: var(--text-primary);
}

/* ===== Footer ===== */
.footer {
  background: var(--bg-secondary);
  padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

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

@media (max-width: 575px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.footer-brand {
  max-width: 300px;
}

@media (max-width: 575px) {
  .footer-brand {
    max-width: none;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

@media (max-width: 575px) {
  .footer-logo {
    justify-content: center;
  }
}

.footer-logo img {
  height: 40px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  margin-bottom: var(--space-lg);
}

.social-links {
  display: flex;
  gap: var(--space-sm);
}

@media (max-width: 575px) {
  .social-links {
    justify-content: center;
  }
}

.social-link {
  width: 40px;
  height: 40px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-base);
}

.social-link:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
}

.social-link svg {
  width: 18px;
  height: 18px;
}

.footer-column h4 {
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-link {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--primary);
}

.footer-bottom {
  padding-top: var(--space-xl);
  border-top: 1px solid var(--divider);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

@media (max-width: 575px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

.footer-copyright {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  gap: var(--space-lg);
}

.footer-legal a {
  font-size: var(--text-sm);
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-legal a:hover {
  color: var(--primary);
}

.footer-column.footer-contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-item strong {
  font-size: var(--text-xs);
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.contact-item p {
  margin: 0;
  color: var(--text-secondary);
}

.footer-disclaimer {
  width: 100%;
  margin-top: var(--space-2xl);
  padding: var(--space-lg);
  background: var(--bg-tertiary);
  border-radius: var(--radius-lg);
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-align: center;
  line-height: 1.6;
  border: 1px solid var(--border);
}

.footer-disclaimer strong {
  color: var(--text-primary);
  display: block;
  margin-bottom: var(--space-xs);
}

/* ===== WhatsApp FAB ===== */
.whatsapp-fab,
.whatsapp-float {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: var(--z-fixed);
  transition: all var(--transition-base);
  animation: pulse-fab 2s ease-in-out infinite;
}

.whatsapp-fab:hover,
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-fab svg,
.whatsapp-float svg {
  width: 32px;
  height: 32px;
  color: white;
}

@keyframes pulse-fab {
  0%,
  100% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7);
  }
}

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

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Scroll Reveal Classes */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 768px) {
  .reveal,
  .reveal-left,
  .reveal-right,
  .stagger > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Stagger Animation */
.stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.stagger.active > *:nth-child(1) {
  transition-delay: 0.1s;
}
.stagger.active > *:nth-child(2) {
  transition-delay: 0.2s;
}
.stagger.active > *:nth-child(3) {
  transition-delay: 0.3s;
}
.stagger.active > *:nth-child(4) {
  transition-delay: 0.4s;
}
.stagger.active > *:nth-child(5) {
  transition-delay: 0.5s;
}
.stagger.active > *:nth-child(6) {
  transition-delay: 0.6s;
}

.stagger.active > * {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Accessibility ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  background: var(--primary);
  color: white;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  z-index: var(--z-tooltip);
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-md);
}

/* ===== Print Styles ===== */
@media print {
  .header,
  .whatsapp-fab,
  .theme-toggle {
    display: none !important;
  }

  body {
    color: #000 !important;
    background: #fff !important;
  }

  section {
    page-break-inside: avoid;
  }
}
