/* Performance mode for low-end devices */
@media (max-width: 768px), (max-device-memory: 4) {
  /* Disable all animations on mobile and low-memory devices */
  .hero-section,
  .hero-section::before,
  .hero-section::after,
  .about-hero::before,
  .about-hero::after,
  .cta-section::before,
  .hero-content {
    animation: none !important;
    will-change: auto !important;
  }
  
  /* Simple gradient background only */
  .hero-section {
    background: var(--gradient-hero) !important;
  }
  
  .about-hero {
    background: var(--gradient-warm) !important;
  }
  
  .cta-section {
    background: var(--gradient-primary) !important;
  }
  
  /* Remove pseudo elements */
  .hero-section::before,
  .hero-section::after,
  .about-hero::before,
  .about-hero::after,
  .cta-section::before {
    display: none !important;
  }
}

/* =====================================================
   25. PERFORMANCE OPTIMIZATIONS
   ===================================================== */
/* Use GPU acceleration for transforms */
.hero-section::before,
.hero-section::after,
.about-hero::before,
.about-hero::after {
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Optimize image rendering */
img {
  image-rendering: -webkit-optimize-contrast;
}

/* Reduce paint areas */
.entry-box,
.product-card,
.feature-card {
  contain: layout style;
}/* =====================================================
   COMPASSIONATE CODES - COMPLETE CSS STYLESHEET
   Version: 2.0
   Last Updated: January 2025
   ===================================================== */

/* =====================================================
   1. CSS VARIABLES & ROOT SETTINGS
   ===================================================== */
:root {
  /* Brand Colors */
  --primary-color: #667eea;
  --secondary-color: #764ba2;
  --accent-color: #f093fb;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --info-color: #17a2b8;
  
  /* Neutral Colors */
  --dark: #2c3e50;
  --gray-dark: #495057;
  --gray: #6c757d;
  --gray-light: #adb5bd;
  --light: #f8f9fa;
  --white: #ffffff;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-warm: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  
  /* Typography */
  --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'Courier New', Courier, monospace;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-xxl: 3rem;
  
  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.2);
  
  /* Transitions */
  --transition-base: all 0.3s ease;
  --transition-fast: all 0.15s ease;
  --transition-slow: all 0.5s ease;
}

/* =====================================================
   2. RESET & BASE STYLES
   ===================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--gray-dark);
  background-color: var(--light);
  overflow-x: hidden;
}

/* =====================================================
   3. TYPOGRAPHY
   ===================================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  color: var(--dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.1rem; }

p {
  margin-bottom: var(--spacing-md);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition-base);
}

a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

strong {
  font-weight: 600;
  color: var(--dark);
}

/* =====================================================
   4. HEADER & NAVIGATION - UPDATED
   ===================================================== */
.header {
  background: var(--gradient-primary);
  color: var(--white);
  padding: var(--spacing-sm) var(--spacing-lg);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  justify-content: center;
  flex-wrap: wrap;
}

.header-logo {
  width: 35px;
  height: 35px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
}

.header-logo:hover {
  transform: scale(1.1) rotate(5deg);
}

.header h1 {
  color: var(--white);
  font-size: 1.4rem;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

/* Header Tools (Cart, Account) */
.header-tools {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-xs);
}

.account-btn,
.cart-link {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-base);
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.account-btn:hover,
.cart-link:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

#cartBadge {
  background: var(--danger-color);
  color: var(--white);
  padding: 1px 4px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: bold;
}

.points-display {
  background: rgba(255, 255, 255, 0.2);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: 0.85rem;
}

/* Navigation Bar - UPDATED */
.navbar {
  background: var(--dark);
  padding: 0;
  position: sticky;
  top: 55px;
  z-index: 999;
  box-shadow: var(--shadow-sm);
}

/* Make nav-links visible by default */
.nav-links {
  list-style: none;
  display: flex !important; /* Force display */
  flex-wrap: wrap;
  margin: 0;
  padding: var(--spacing-sm);
  gap: var(--spacing-xs);
  justify-content: center;
  background: var(--dark);
}

.nav-links li {
  display: inline-block;
}

.nav-links a {
  display: block;
  color: var(--white);
  padding: var(--spacing-sm) var(--spacing-md);
  transition: var(--transition-base);
  position: relative;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

.nav-links a[aria-current="page"],
.nav-links a.active {
  background: rgba(255, 255, 255, 0.2);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: var(--transition-base);
  transform: translateX(-50%);
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after,
.nav-links a.active::after {
  width: 80%;
}

/* Mobile Navigation Toggle - Hidden by default on desktop */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--white);
  color: var(--white);
  font-size: 1.2rem;
  padding: var(--spacing-xs) var(--spacing-sm);
  cursor: pointer;
  border-radius: var(--radius-sm);
  margin-left: auto;
}

/* Mobile Navigation Hamburger Icon */
.nav-toggle::before {
  content: '☰';
  font-size: 1.5rem;
}

/* =====================================================
   RESPONSIVE NAVIGATION - UPDATED
   ===================================================== */
@media (max-width: 768px) {
  /* Show mobile toggle button */
  .nav-toggle {
    display: block;
    position: absolute;
    right: var(--spacing-md);
    top: 50%;
    transform: translateY(-50%);
  }
  
  /* Mobile navigation container */
  .navbar {
    position: relative;
    top: 0;
  }
  
  /* Hide nav links by default on mobile, show when toggled */
  .nav-links {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dark);
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    z-index: 998;
    padding: 0;
  }
  
  /* Show nav when toggled */
  .nav-links.show,
  .nav-links.active {
    display: flex !important;
  }
  
  .nav-links li {
    display: block;
    width: 100%;
  }
  
  .nav-links a {
    display: block;
    text-align: center;
    padding: var(--spacing-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .nav-links a:last-child {
    border-bottom: none;
  }
  
  .nav-links a::after {
    display: none; /* Remove underline effect on mobile */
  }
  
  /* Adjust header for mobile */
  .header {
    padding: var(--spacing-sm);
    position: relative;
  }
  
  .brand {
    justify-content: flex-start;
    padding-right: 50px; /* Space for toggle button */
  }
  
  .header h1 {
    font-size: 1.1rem;
  }
  
  .header-logo {
    width: 30px;
    height: 30px;
  }
  
  .header-tools {
    width: 100%;
    justify-content: center;
    margin-top: var(--spacing-sm);
  }
}

/* Desktop Navigation - Ensure visibility */
@media (min-width: 769px) {
  /* Always show navigation on desktop */
  .nav-links {
    display: flex !important;
    position: relative !important;
    box-shadow: none !important;
  }
  
  /* Hide mobile toggle on desktop */
  .nav-toggle {
    display: none !important;
  }
  
  .navbar {
    position: sticky;
    top: 55px;
  }
}

/* JavaScript Toggle Helper Classes */
.nav-open .nav-links {
  display: flex !important;
}

.nav-closed .nav-links {
  display: none !important;
}

@media (min-width: 769px) {
  .nav-open .nav-links,
  .nav-closed .nav-links {
    display: flex !important; /* Override on desktop */
  }
}

/* Accessibility improvements */
.nav-toggle:focus,
.nav-links a:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* Smooth transitions for mobile menu */
@media (max-width: 768px) {
  .nav-links {
    transition: all 0.3s ease-in-out;
    transform-origin: top;
  }
  
  .nav-links:not(.show) {
    transform: scaleY(0);
    opacity: 0;
  }
  
  .nav-links.show {
    transform: scaleY(1);
    opacity: 1;
  }
}
/* =====================================================
   5. MAIN CONTENT & CONTAINERS
   ===================================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-xl);
}

main {
  min-height: calc(100vh - 300px);
}

section {
  margin-bottom: var(--spacing-xxl);
  padding: var(--spacing-xl);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.admin-box {
  background: var(--white);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--spacing-xl);
}

/* =====================================================
   6. HERO SECTIONS
   ===================================================== */
.hero-section {
  background: var(--gradient-hero);
  color: var(--white);
  padding: var(--spacing-xxl) var(--spacing-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Ocean wave effect - subtle and performant */
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.03) 20%, 
    rgba(255, 255, 255, 0.05) 40%, 
    rgba(255, 255, 255, 0.03) 60%, 
    transparent 100%
  );
  animation: oceanWave 4s ease-in-out infinite;
  transform-origin: center bottom;
}

.hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center bottom, 
    rgba(255, 255, 255, 0.1) 0%, 
    transparent 70%
  );
  animation: oceanPulse 6s ease-in-out infinite;
  opacity: 0.5;
}

@keyframes oceanWave {
  0%, 100% {
    transform: scaleY(1) translateY(0);
  }
  50% {
    transform: scaleY(1.1) translateY(-10px);
  }
}

@keyframes oceanPulse {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.05);
  }
}

/* Subtle shimmer effect - simplified for performance */
.hero-section {
  background: var(--gradient-hero);
  position: relative;
}

/* Add shimmer on hover only for desktop */
@media (min-width: 769px) {
  .hero-section:hover {
    background-image: 
      linear-gradient(45deg, 
        transparent 30%, 
        rgba(255, 255, 255, 0.02) 50%, 
        transparent 70%
      ),
      var(--gradient-hero);
    background-size: 200% 200%, 100% 100%;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  animation: gentleFloat 6s ease-in-out infinite;
}

@keyframes gentleFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.hero-section h1 {
  font-size: 3rem;
  margin-bottom: var(--spacing-lg);
  color: var(--white);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 2;
}

.hero-section p {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-xl);
  opacity: 0.95;
  position: relative;
  z-index: 2;
}

.hero-actions {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--spacing-xl);
}

/* About Hero */
.about-hero {
  background: var(--gradient-warm);
  color: var(--white);
  padding: var(--spacing-xxl) var(--spacing-xl);
  text-align: center;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
  position: relative;
  overflow: hidden;
}

/* Gentle wave effect for about hero */
.about-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.1) 0%, 
    transparent 50%
  );
  animation: waveShift 10s ease-in-out infinite;
}

.about-hero::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at bottom, 
    rgba(255, 255, 255, 0.15) 0%, 
    transparent 60%
  );
  animation: wavePulse 8s ease-in-out infinite;
}

@keyframes waveShift {
  0%, 100% {
    transform: translateX(0) skewY(-2deg);
  }
  50% {
    transform: translateX(-30px) skewY(2deg);
  }
}

@keyframes wavePulse {
  0%, 100% {
    opacity: 0.5;
    transform: scaleX(1);
  }
  50% {
    opacity: 0.8;
    transform: scaleX(1.1);
  }
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: var(--spacing-md);
  animation: fadeInUp 0.8s ease-out;
  position: relative;
  z-index: 2;
}

.hero-subtitle {
  font-size: 1.5rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto var(--spacing-xl);
  animation: fadeInUp 0.8s ease-out 0.2s both;
  position: relative;
  z-index: 2;
}

/* Wave animation for hero sections - removed complex animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =====================================================
   7. CARDS & ENTRIES
   ===================================================== */
.entry-container {
  display: grid;
  gap: var(--spacing-lg);
}

.entries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin: var(--spacing-xl) 0;
}

/* Gallery Layout - Alternating left/right on desktop */
#mediaList {
  max-width: 1200px;
  margin: 0 auto;
}

#mediaList .entry-box {
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
  padding: var(--spacing-xl);
}

#mediaList .entry-box:nth-child(even) {
  flex-direction: row-reverse;
}

#mediaList .entry-box img {
  width: 45%;
  max-width: 400px;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  transition: var(--transition-base);
}

#mediaList .entry-box img:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-xl);
}

#mediaList .entry-box .content-wrapper {
  flex: 1;
  padding: var(--spacing-md);
}

/* Center all images in media page */
#mediaList img,
.media-section img,
.admin-box img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Mobile gallery layout */
@media (max-width: 768px) {
  #mediaList .entry-box,
  #mediaList .entry-box:nth-child(even) {
    flex-direction: column;
    text-align: center;
  }
  
  #mediaList .entry-box img {
    width: 100%;
    max-width: 300px;
    margin-bottom: var(--spacing-md);
  }
}

.entry-box {
  background: var(--white);
  border: 1px solid #e0e0e0;
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.entry-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
  transform: translateX(-100%);
  transition: var(--transition-base);
}

.entry-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.entry-box:hover::before {
  transform: translateX(0);
}

.entry-box h4 {
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
}

.preview-img {
  width: 100%;
  max-width: 150px;
  height: auto;
  border-radius: var(--radius-sm);
  margin: var(--spacing-md) auto;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
  display: block;
}

.preview-img:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
  cursor: pointer;
}

/* Product Cards */
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.product-card h3 {
  padding: var(--spacing-md) var(--spacing-lg) 0;
  color: var(--dark);
}

.product-card p {
  padding: 0 var(--spacing-lg);
  color: var(--gray);
  flex-grow: 1;
}

.product-card .price {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
  padding: 0 var(--spacing-lg);
}

.product-card .actions {
  padding: var(--spacing-lg);
  display: flex;
  gap: var(--spacing-sm);
}

/* Feature Cards */
.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
  display: block;
}

.feature-example {
  background: var(--light);
  padding: var(--spacing-md);
  border-radius: var(--radius-sm);
  margin-top: var(--spacing-md);
  font-size: 0.9rem;
}

/* Join Cards */
.join-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xl);
}

.join-card {
  background: var(--white);
  border: 2px solid var(--primary-color);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  text-align: center;
  transition: var(--transition-base);
}

.join-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--secondary-color);
}

.join-card h3 {
  color: var(--primary-color);
  margin-bottom: var(--spacing-lg);
}

.join-card ul {
  text-align: left;
  margin-bottom: var(--spacing-xl);
  list-style: none;
}

.join-card ul li {
  padding: var(--spacing-sm) 0;
  padding-left: var(--spacing-xl);
  position: relative;
}

.join-card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success-color);
  font-weight: bold;
}

/* =====================================================
   8. BUTTONS & CTA
   ===================================================== */
.btn,
.btn-primary,
.btn-secondary,
.cta-button,
.edit-btn {
  display: inline-block;
  padding: var(--spacing-md) var(--spacing-xl);
  border-radius: var(--radius-full);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-base);
  border: none;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary,
.cta-button {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover,
.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
  text-decoration: none;
}

.edit-btn {
  background: var(--gray);
  color: var(--white);
  font-size: 0.9rem;
  padding: var(--spacing-sm) var(--spacing-md);
}

.edit-btn:hover {
  background: var(--gray-dark);
  text-decoration: none;
  transform: translateY(-1px);
}

.buy-btn {
  background: var(--gradient-primary);
  color: var(--white);
  flex: 1;
}

.add-btn {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  flex: 1;
}

.add-btn:disabled {
  background: var(--gray-light);
  color: var(--gray);
  border-color: var(--gray-light);
  cursor: not-allowed;
}

.btn-large {
  padding: var(--spacing-lg) var(--spacing-xxl);
  font-size: 1.1rem;
}

/* Button Ripple Effect */
.btn::before,
.btn-primary::before,
.cta-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:active::before,
.btn-primary:active::before,
.cta-button:active::before {
  width: 300px;
  height: 300px;
}

/* =====================================================
   9. FORMS & INPUTS
   ===================================================== */
form {
  max-width: 600px;
  margin: 0 auto;
}

label {
  display: block;
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
  color: var(--dark);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="search"],
textarea,
select {
  width: 100%;
  padding: var(--spacing-md);
  border: 2px solid #e0e0e0;
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition: var(--transition-base);
  background: var(--white);
  font-family: inherit;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

button[type="submit"] {
  background: var(--gradient-primary);
  color: var(--white);
  border: none;
  padding: var(--spacing-md) var(--spacing-xl);
  border-radius: var(--radius-full);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-base);
  width: 100%;
  margin-top: var(--spacing-md);
}

button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Login Container */
.login-container {
  max-width: 500px;
  margin: var(--spacing-xxl) auto;
  background: var(--white);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* =====================================================
   10. MFA & SECURITY STYLES
   ===================================================== */
.mfa-container {
  display: none;
  background: var(--light);
  border: 2px solid var(--primary-color);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  margin: var(--spacing-lg) 0;
  text-align: center;
}

.pin-input {
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm);
  margin: var(--spacing-lg) 0;
}

.pin-digit {
  width: 50px;
  height: 50px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: bold;
  border: 2px solid #ddd;
  border-radius: var(--radius-md);
  background: var(--white);
  transition: var(--transition-fast);
}

.pin-digit:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
  transform: scale(1.05);
}

.security-notice {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  margin: var(--spacing-lg) 0;
  font-size: 0.9rem;
}

.timer-display {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--danger-color);
  margin: var(--spacing-sm) 0;
}

.loading-spinner {
  border: 3px solid var(--light);
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
  margin: var(--spacing-sm) auto;
  display: none;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* =====================================================
   11. TRUST BADGES & INDICATORS
   ===================================================== */
.trust-badges {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--spacing-lg);
}

.trust-badge {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
}

/* =====================================================
   12. PRICING & E-COMMERCE
   ===================================================== */
.price-display {
  display: flex;
  align-items: baseline;
  gap: var(--spacing-sm);
  margin: var(--spacing-md) 0;
}

.price-current {
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary-color);
}

.price-original {
  font-size: 1.2rem;
  color: var(--gray);
  text-decoration: line-through;
}

.badge-save {
  background: var(--danger-color);
  color: var(--white);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: bold;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Charity Banner */
.charity-banner {
  background: var(--gradient-warm);
  color: var(--white);
  text-align: center;
  padding: var(--spacing-md);
  font-weight: 500;
  position: sticky;
  top: 0;
  z-index: 1001;
  box-shadow: var(--shadow-sm);
}

/* =====================================================
   13. SECTIONS & CONTENT BLOCKS
   ===================================================== */
.section-cta {
  text-align: center;
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-xl);
  border-top: 1px solid #e0e0e0;
}

.cta-section {
  background: var(--gradient-primary);
  color: var(--white);
  padding: var(--spacing-xxl);
  text-align: center;
  border-radius: var(--radius-lg);
  margin: var(--spacing-xxl) 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.05) 50%, 
    transparent 100%
  );
  animation: waveSlide 6s linear infinite;
}

@keyframes waveSlide {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-stats {
  display: flex;
  justify-content: center;
  gap: var(--spacing-xl);
  margin: var(--spacing-xl) 0;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-weight: 500;
}

/* Story Section */
.story-section {
  padding: var(--spacing-xxl) 0;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xxl);
  align-items: center;
}

.story-content {
  padding-right: var(--spacing-xl);
}

.lead {
  font-size: 1.2rem;
  color: var(--gray-dark);
  margin-bottom: var(--spacing-lg);
}

.story-list {
  list-style: none;
  padding: 0;
  margin: var(--spacing-lg) 0;
}

.story-list li {
  padding: var(--spacing-sm) 0;
  padding-left: var(--spacing-xl);
  position: relative;
}

.story-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

blockquote {
  background: var(--light);
  border-left: 4px solid var(--primary-color);
  padding: var(--spacing-lg);
  margin: var(--spacing-xl) 0;
  font-style: italic;
  border-radius: var(--radius-sm);
}

blockquote cite {
  display: block;
  margin-top: var(--spacing-md);
  font-size: 0.9rem;
  color: var(--gray);
  font-style: normal;
}

/* Impact Circle */
.impact-circle {
  background: var(--gradient-primary);
  border-radius: 50%;
  width: 400px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: var(--shadow-xl);
  position: relative;
  /* Removed rotation animation for better performance */
  transform: rotate(0deg);
}

.circle-content {
  text-align: center;
  color: var(--white);
  /* Removed counter-rotation */
  transform: rotate(0deg);
}

.cycle-items {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-lg);
}

.cycle-item {
  background: rgba(255, 255, 255, 0.2);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-full);
  font-weight: 500;
}

.cycle-arrow {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.6);
}

/* How It Works */
.how-it-works {
  background: var(--light);
  padding: var(--spacing-xxl) 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
}

/* Creator Spotlight */
.creator-spotlight {
  background: var(--white);
  padding: var(--spacing-xxl) 0;
}

.creator-feature {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--spacing-xxl);
  align-items: center;
  background: var(--light);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
}

.creator-image {
  width: 100%;
  max-width: 400px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.creator-title {
  color: var(--gray);
  margin-bottom: var(--spacing-sm);
}

.creator-story {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--gray-dark);
  margin: var(--spacing-lg) 0;
}

.creator-stats {
  display: flex;
  gap: var(--spacing-xl);
  margin: var(--spacing-lg) 0;
}

.creator-stat {
  text-align: center;
}

.creator-stat strong {
  display: block;
  font-size: 2rem;
  color: var(--primary-color);
}

.creator-stat span {
  font-size: 0.9rem;
  color: var(--gray);
}

/* Values Grid */
.values-section {
  background: var(--light);
  padding: var(--spacing-xxl) 0;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.value-item {
  text-align: center;
  padding: var(--spacing-lg);
  background: var(--white);
  border-radius: var(--radius-md);
  transition: var(--transition-base);
}

.value-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.value-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: var(--spacing-md);
}

/* =====================================================
   14. MESSAGES & ALERTS
   ===================================================== */
.error-message,
.success-message {
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  margin: var(--spacing-md) 0;
  font-weight: 500;
  text-align: center;
}

.error-message {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.success-message {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.success-animation {
  animation: fadeInScale 0.5s ease-in-out;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* =====================================================
   15. FOOTER
   ===================================================== */
footer {
  background: var(--dark);
  color: var(--white);
  padding: var(--spacing-xl);
  text-align: center;
  margin-top: var(--spacing-xxl);
}

footer p {
  margin: var(--spacing-sm) 0;
}

footer a {
  color: var(--white);
  text-decoration: underline;
  margin: 0 var(--spacing-sm);
}

footer a:hover {
  color: var(--accent-color);
}

/* Footer Impact Stats */
.footer-impact {
  background: rgba(255, 255, 255, 0.1);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-xl);
}

.impact-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.impact-stat {
  text-align: center;
}

.impact-value {
  display: block;
  font-size: 2rem;
  font-weight: bold;
  color: var(--accent-color);
  margin-bottom: var(--spacing-sm);
}

.impact-label {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* =====================================================
   16. UTILITY CLASSES
   ===================================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-muted { color: var(--gray); }

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mt-4 { margin-top: var(--spacing-xl); }

.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.mb-4 { margin-bottom: var(--spacing-xl); }

.p-1 { padding: var(--spacing-sm); }
.p-2 { padding: var(--spacing-md); }
.p-3 { padding: var(--spacing-lg); }
.p-4 { padding: var(--spacing-xl); }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
}

.hidden { display: none; }
.show { display: block; }

/* Animations */
.animate-in {
  animation: fadeInUp 0.6s ease-out both;
}

/* =====================================================
   17. RESPONSIVE DESIGN
   ===================================================== */
@media (max-width: 1024px) {
  :root {
    font-size: 15px;
  }
  
  .story-grid {
    grid-template-columns: 1fr;
  }
  
  .creator-feature {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .impact-circle {
    width: 300px;
    height: 300px;
  }
}

@media (max-width: 768px) {
  /* Typography */
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  .hero-section h1 { font-size: 2.5rem; }
  .hero-title { font-size: 2.5rem; }
  .hero-subtitle { font-size: 1.2rem; }
  
  /* Disable animations on mobile for performance */
  .hero-section::before,
  .hero-section::after,
  .about-hero::before,
  .about-hero::after,
  .cta-section::before {
    animation: none;
    display: none;
  }
  
  .hero-content {
    animation: none;
    background: rgba(0, 0, 0, 0.2);
  }
  
  /* Header & Navigation */
  .header {
    padding: var(--spacing-xs) var(--spacing-sm);
  }
  
  .header h1 {
    font-size: 1.2rem;
  }
  
  .header-logo {
    width: 30px;
    height: 30px;
  }
  
  .nav-toggle {
    display: block;
    margin-left: auto;
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dark);
    flex-direction: column;
    box-shadow: var(--shadow-lg);
  }
  
  .nav-links.show {
    display: flex;
  }
  
  .navbar {
    position: relative;
    top: auto;
  }
  
  .navbar a {
    display: block;
    text-align: center;
    padding: var(--spacing-md);
  }
  
  /* Hero Section Mobile */
  .hero-content {
    padding: var(--spacing-md);
    background: rgba(0, 0, 0, 0.2);
  }
  
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .hero-section p {
    font-size: 1rem;
  }
  
  /* Containers */
  .container {
    padding: var(--spacing-md);
  }
  
  section {
    padding: var(--spacing-lg);
  }
  
  /* Grids */
  .entries-grid {
    grid-template-columns: 1fr;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .join-options {
    grid-template-columns: 1fr;
  }
  
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .creator-stats {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  /* Hero */
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .about-hero {
    clip-path: none;
    padding: var(--spacing-xl);
  }
  
  /* Trust Badges */
  .trust-badges {
    flex-direction: column;
    align-items: center;
  }
  
  /* CTA Stats */
  .cta-stats {
    flex-direction: column;
    gap: var(--spacing-md);
  }
  
  /* Buttons */
  .btn,
  .btn-primary,
  .btn-secondary,
  .cta-button {
    width: 100%;
    text-align: center;
  }
  
  /* Forms */
  form {
    padding: 0 var(--spacing-md);
  }
  
  /* Impact Circle */
  .impact-circle {
    width: 250px;
    height: 250px;
    font-size: 0.9rem;
  }
  
  .cycle-items {
    font-size: 0.8rem;
  }
  
  /* Footer */
  .impact-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  /* Very small screens */
  :root {
    font-size: 14px;
  }
  
  .header-tools {
    flex-direction: column;
    width: 100%;
  }
  
  .account-btn,
  .cart-link {
    width: 100%;
  }
  
  .grid-2 {
    grid-template-columns: 1fr;
  }
  
  .values-grid {
    grid-template-columns: 1fr;
  }
  
  .pin-input {
    gap: var(--spacing-xs);
  }
  
  .pin-digit {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}

/* =====================================================
   18. PRINT STYLES
   ===================================================== */
@media print {
  body {
    background: white;
    color: black;
  }
  
  .header,
  .navbar,
  .charity-banner,
  .header-tools,
  .nav-toggle,
  footer {
    display: none;
  }
  
  section {
    box-shadow: none;
    border: 1px solid #ddd;
    break-inside: avoid;
  }
  
  a {
    color: black;
    text-decoration: underline;
  }
  
  .btn,
  .cta-button {
    display: none;
  }
}

/* =====================================================
   19. ACCESSIBILITY
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  /* Disable all hero animations */
  .hero-section::before,
  .hero-section::after,
  .about-hero::before,
  .about-hero::after,
  .cta-section::before,
  .hero-content {
    animation: none !important;
  }
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 3px solid var(--primary-color);
  outline-offset: 2px;
}

/* Skip to content link */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-color);
  color: var(--white);
  padding: var(--spacing-sm) var(--spacing-md);
  text-decoration: none;
  border-radius: var(--radius-sm);
  z-index: 1100;
}

.skip-to-content:focus {
  top: 10px;
}

/* Screen reader only text */
.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;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .btn-primary,
  .cta-button {
    border: 2px solid currentColor;
  }
  
  .entry-box,
  .product-card,
  .feature-card {
    border: 2px solid currentColor;
  }
}

/* =====================================================
   20. CUSTOM SCROLLBAR
   ===================================================== */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--light);
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) var(--light);
}

/* =====================================================
   21. LOADING STATES
   ===================================================== */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* =====================================================
   23. INDEX PAGE SPECIFIC CENTERING
   ===================================================== */
/* 
   IMPORTANT: Add class="index-page" or class="landing-page" 
   to the <body> tag of your index.html file for these styles to work
*/

/* Center all content on index/landing page */
body.index-page section,
body.landing-page section {
  text-align: center;
}

body.index-page .container,
body.landing-page .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

body.index-page h2,
body.landing-page h2,
body.index-page h3,
body.landing-page h3 {
  text-align: center;
  width: 100%;
}

body.index-page p,
body.landing-page p {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

body.index-page .entries-grid,
body.landing-page .entries-grid {
  justify-items: center;
}

body.index-page form,
body.landing-page form {
  margin: 0 auto;
  text-align: left;
}

body.index-page .entry-box,
body.landing-page .entry-box {
  text-align: center;
}

body.index-page ul,
body.landing-page ul {
  text-align: left;
  max-width: 600px;
  margin: 0 auto var(--spacing-lg);
}
.products-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-xl);
  margin: var(--spacing-xl) 0;
}

.search-section {
  text-align: center;
  margin: var(--spacing-xl) 0;
}

#productSearch {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
  padding: var(--spacing-md) var(--spacing-xl);
  border-radius: var(--radius-full);
  border: 2px solid var(--primary-color);
}

.filter-tags {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.tags-container {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
  flex-wrap: wrap;
}

.tag {
  background: var(--white);
  color: var(--gray-dark);
  border: 2px solid var(--gray-light);
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-base);
  font-weight: 500;
}

.tag:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}

.tag.active {
  background: var(--gradient-primary);
  color: var(--white);
  border-color: transparent;
}

/* =====================================================
   23. PAGE-SPECIFIC CENTERING STYLES
   ===================================================== */

/* 
   IMPORTANT: Add the appropriate class to the <body> tag:
   - class="index-page" for index.html
   - class="mission-page" for mission.html  
   - class="about-page" for about.html
   - class="blog-page" for blog.html
   - class="services-page" for services.html
   - class="media-page" for media.html
   - class="portfolio-page" for portfolio.html
   - class="privacy-page" for privacy.html
*/

/* Center all content for specified pages */
body.index-page section,
body.mission-page section,
body.about-page section,
body.blog-page section,
body.services-page section,
body.media-page section,
body.portfolio-page section,
body.privacy-page section {
  text-align: center;
}

body.index-page .container,
body.mission-page .container,
body.about-page .container,
body.blog-page .container,
body.services-page .container,
body.media-page .container,
body.portfolio-page .container,
body.privacy-page .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

body.index-page h1,
body.index-page h2,
body.index-page h3,
body.index-page h4,
body.mission-page h1,
body.mission-page h2,
body.mission-page h3,
body.mission-page h4,
body.about-page h1,
body.about-page h2,
body.about-page h3,
body.about-page h4,
body.blog-page h1,
body.blog-page h2,
body.blog-page h3,
body.blog-page h4,
body.services-page h1,
body.services-page h2,
body.services-page h3,
body.services-page h4,
body.media-page h1,
body.media-page h2,
body.media-page h3,
body.media-page h4,
body.portfolio-page h1,
body.portfolio-page h2,
body.portfolio-page h3,
body.portfolio-page h4,
body.privacy-page h1,
body.privacy-page h2,
body.privacy-page h3,
body.privacy-page h4 {
  text-align: center;
  width: 100%;
}

body.index-page p,
body.mission-page p,
body.about-page p,
body.blog-page p,
body.services-page p,
body.media-page p,
body.portfolio-page p,
body.privacy-page p {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* =====================================================
   24. INDEX PAGE ABOUT US SECTION CENTERING
   ===================================================== */

/* Center the About Us section specifically on index page */
body.index-page .about-preview,
body.index-page .about-section,
body.index-page .about-summary {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

body.index-page .about-preview h2,
body.index-page .about-section h2,
body.index-page .about-summary h2 {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

body.index-page .about-preview p,
body.index-page .about-section p,
body.index-page .about-summary p {
  text-align: center;
  margin: 0 auto var(--spacing-md);
  max-width: 700px;
}

/* =====================================================
   25. MISSION PAGE SPECIFIC STYLES
   ===================================================== */

/* Mission Page Hero */
body.mission-page .mission-hero {
  text-align: center;
  padding: var(--spacing-xxl) var(--spacing-xl);
}

body.mission-page .hero-content {
  max-width: 900px;
  margin: 0 auto;
}

body.mission-page .mission-title {
  font-size: 3.5rem;
  margin-bottom: var(--spacing-lg);
  text-align: center;
}

body.mission-page .mission-subtitle {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-xl);
  text-align: center;
}

body.mission-page .journey-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  background: rgba(255, 255, 255, 0.2);
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--radius-full);
  margin: 0 auto;
  max-width: 300px;
}

/* Mission Page Content Sections */
body.mission-page .the-vision,
body.mission-page .why-it-matters,
body.mission-page .our-journey,
body.mission-page .transparency-commitment,
body.mission-page .our-values,
body.mission-page .how-to-help,
body.mission-page .progress-tracker,
body.mission-page .journey-newsletter {
  text-align: center;
}

body.mission-page .vision-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-xl);
  max-width: 1000px;
  margin: 0 auto;
}

body.mission-page .vision-text {
  text-align: center;
  max-width: 800px;
}

body.mission-page .vision-image {
  text-align: center;
}

body.mission-page .vision-image img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* Mission Page Grids */
body.mission-page .reasons-grid,
body.mission-page .promises-grid,
body.mission-page .values-grid,
body.mission-page .help-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-xl);
  margin: var(--spacing-xl) auto;
  max-width: 1200px;
}

body.mission-page .reason-card,
body.mission-page .promise-card,
body.mission-page .help-card {
  text-align: center;
  padding: var(--spacing-xl);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
}

body.mission-page .reason-card:hover,
body.mission-page .promise-card:hover,
body.mission-page .help-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

body.mission-page .reason-icon,
body.mission-page .promise-icon,
body.mission-page .help-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
  display: block;
}

/* Mission Page Timeline */
body.mission-page .journey-timeline {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
  max-width: 800px;
  margin: 0 auto;
}

body.mission-page .timeline-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  padding: var(--spacing-lg);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
}

body.mission-page .timeline-item.current {
  border: 2px solid var(--primary-color);
  background: rgba(102, 126, 234, 0.05);
}

body.mission-page .timeline-item.future {
  opacity: 0.7;
}

body.mission-page .timeline-marker {
  font-size: 2rem;
  min-width: 60px;
  text-align: center;
}

/* Mission Page Progress Tracker */
body.mission-page .milestone-tracker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-lg);
  margin: var(--spacing-xl) auto;
  max-width: 1000px;
}

body.mission-page .milestone {
  text-align: center;
  padding: var(--spacing-lg);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
}

body.mission-page .milestone.achieved {
  border: 2px solid var(--success-color);
  background: rgba(40, 167, 69, 0.05);
}

body.mission-page .milestone.current {
  border: 2px solid var(--primary-color);
  background: rgba(102, 126, 234, 0.05);
}

body.mission-page .milestone-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
  display: block;
}

body.mission-page .progress-bar {
  width: 100%;
  height: 8px;
  background: var(--gray-light);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: var(--spacing-sm);
}

body.mission-page .progress-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  transition: width 0.5s ease;
}

/* Mission Page Newsletter */
body.mission-page .journey-newsletter {
  background: var(--gradient-primary);
  color: var(--white);
  padding: var(--spacing-xxl);
  border-radius: var(--radius-lg);
  margin: var(--spacing-xxl) 0;
}

body.mission-page .newsletter-form {
  display: flex;
  gap: var(--spacing-md);
  max-width: 600px;
  margin: var(--spacing-lg) auto 0;
  flex-wrap: wrap;
  justify-content: center;
}

body.mission-page .newsletter-form input[type="email"] {
  flex: 1;
  min-width: 250px;
  padding: var(--spacing-md) var(--spacing-lg);
  border: none;
  border-radius: var(--radius-full);
  font-size: 1rem;
}

body.mission-page .newsletter-form button {
  padding: var(--spacing-md) var(--spacing-xl);
  background: var(--white);
  color: var(--primary-color);
  border: none;
  border-radius: var(--radius-full);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-base);
}

body.mission-page .newsletter-form button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* =====================================================
   26. MISSION PAGE FOOTER FIXES
   ===================================================== */

body.mission-page footer {
  background: var(--dark);
  color: var(--white);
  padding: var(--spacing-xl);
  margin-top: var(--spacing-xxl);
}

body.mission-page .footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

body.mission-page .footer-section h3 {
  color: var(--white);
  margin-bottom: var(--spacing-md);
}

body.mission-page .footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

body.mission-page .footer-section ul li {
  margin-bottom: var(--spacing-sm);
}

body.mission-page .footer-section ul li a {
  color: var(--white);
  text-decoration: none;
  transition: var(--transition-base);
}

body.mission-page .footer-section ul li a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

body.mission-page .footer-bottom {
  text-align: center;
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* =====================================================
   27. CONTACT FORM SMOOTH SCROLLING
   ===================================================== */

/* Smooth scrolling for contact form */
html {
  scroll-behavior: smooth;
}

/* Style the contact form when it's inline (not modal) */
body.mission-page .contact-form-section {
  background: var(--light);
  padding: var(--spacing-xxl);
  border-radius: var(--radius-lg);
  margin: var(--spacing-xxl) 0;
  text-align: center;
}

body.mission-page .contact-form-section h2 {
  color: var(--dark);
  margin-bottom: var(--spacing-lg);
}

body.mission-page .contact-form-section form {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

body.mission-page .contact-form-section .form-group {
  margin-bottom: var(--spacing-lg);
}

body.mission-page .contact-form-section label {
  display: block;
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
  color: var(--dark);
}

body.mission-page .contact-form-section input,
body.mission-page .contact-form-section textarea {
  width: 100%;
  padding: var(--spacing-md);
  border: 2px solid #e0e0e0;
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition: var(--transition-base);
  background: var(--white);
  font-family: inherit;
}

body.mission-page .contact-form-section input:focus,
body.mission-page .contact-form-section textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

body.mission-page .contact-form-section textarea {
  resize: vertical;
  min-height: 120px;
}

body.mission-page .contact-form-section button[type="submit"] {
  background: var(--gradient-primary);
  color: var(--white);
  border: none;
  padding: var(--spacing-md) var(--spacing-xl);
  border-radius: var(--radius-full);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-base);
  width: 100%;
  margin-top: var(--spacing-md);
}

body.mission-page .contact-form-section button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* =====================================================
   28. RESPONSIVE UPDATES FOR MISSION PAGE
   ===================================================== */

@media (max-width: 768px) {
  body.mission-page .mission-title {
    font-size: 2.5rem;
  }
  
  body.mission-page .mission-subtitle {
    font-size: 1.2rem;
  }
  
  body.mission-page .reasons-grid,
  body.mission-page .promises-grid,
  body.mission-page .values-grid,
  body.mission-page .help-options {
    grid-template-columns: 1fr;
  }
  
  body.mission-page .milestone-tracker {
    grid-template-columns: 1fr;
  }
  
  body.mission-page .timeline-item {
    flex-direction: column;
    text-align: center;
  }
  
  body.mission-page .timeline-marker {
    min-width: auto;
    margin-bottom: var(--spacing-sm);
  }
  
  body.mission-page .newsletter-form {
    flex-direction: column;
    align-items: center;
  }
  
  body.mission-page .newsletter-form input[type="email"] {
    min-width: 100%;
    margin-bottom: var(--spacing-md);
  }
  
  body.mission-page .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 480px) {
  body.mission-page .mission-title {
    font-size: 2rem;
  }
  
  body.mission-page .journey-badge {
    flex-direction: column;
    padding: var(--spacing-md);
  }
  
  body.mission-page .reason-card,
  body.mission-page .promise-card,
  body.mission-page .help-card {
    padding: var(--spacing-lg);
  }
}
/* =====================================================
   LEGAL PAGE SPECIFIC STYLES
   ===================================================== */

/* Legal Page Body Styling */
body.privacy-page {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background: #f8f9fa;
}

/* Legal Header */
.legal-header {
    background: #2c3e50;
    color: white;
    padding: var(--spacing-xl);
    text-align: center;
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-xl);
}

.legal-header h1 {
    color: white;
    margin-bottom: var(--spacing-md);
    font-size: 2.5rem;
}

.legal-header p {
    margin-bottom: var(--spacing-sm);
}

.legal-meta {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Legal Navigation */
.legal-nav {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.legal-nav .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
}

.legal-nav .nav-links a {
    margin: 0 var(--spacing-sm);
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-sm);
    transition: var(--transition-base);
}

.legal-nav .nav-links a:hover {
    background: #007bff;
    color: white;
    text-decoration: none;
}

/* Legal Main Content */
.legal-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Legal Sections */
.legal-section {
    background: white;
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.section-title {
    color: #2c3e50;
    border-bottom: 3px solid;
    padding-bottom: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

/* Section-specific border colors */
#privacy .section-title {
    border-bottom-color: #3498db;
}

#security .section-title {
    border-bottom-color: #27ae60;
}

#cookies .section-title {
    border-bottom-color: #f39c12;
}

#terms .section-title {
    border-bottom-color: #e74c3c;
}

#refund .section-title {
    border-bottom-color: #9b59b6;
}

#intellectual-property .section-title {
    border-bottom-color: #9b59b6;
}

#digital-products .section-title {
    border-bottom-color: #27ae60;
}

#dmca .section-title {
    border-bottom-color: #f39c12;
}

#contact .section-title {
    border-bottom-color: #e74c3c;
}

/* Highlight Boxes */
.highlight-box {
    background: #e8f4f8;
    padding: var(--spacing-lg);
    border-radius: var(--radius-sm);
    margin: var(--spacing-lg) 0;
}

.highlight-box h3 {
    color: #2980b9;
    margin-bottom: var(--spacing-md);
}

/* Notice Boxes */
.notice-box {
    background: #fff3cd;
    padding: var(--spacing-md);
    border-radius: var(--radius-sm);
    margin: var(--spacing-lg) 0;
    border: 1px solid #ffeaa7;
}

.notice-box h4 {
    color: #856404;
    margin-bottom: var(--spacing-sm);
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin: var(--spacing-lg) 0;
}

.contact-card {
    background: #f8f9fa;
    padding: var(--spacing-lg);
    border-radius: var(--radius-sm);
    border: 1px solid #e9ecef;
}

.contact-card h3 {
    color: #495057;
    margin-bottom: var(--spacing-md);
}

.contact-card p {
    margin-bottom: var(--spacing-sm);
}

/* Business Address */
.business-address {
    background: #e8f4f8;
    padding: var(--spacing-lg);
    border-radius: var(--radius-sm);
    margin: var(--spacing-lg) 0;
}

.business-address h3 {
    color: #2980b9;
    margin-bottom: var(--spacing-md);
}

/* Compliance Certifications */
.compliance-certifications {
    background: #2c3e50;
    color: white;
    padding: var(--spacing-xl);
    border-radius: var(--radius-md);
}

.compliance-certifications h2 {
    color: white;
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    text-align: center;
}

.cert-badge {
    background: rgba(255,255,255,0.1);
    padding: var(--spacing-md);
    border-radius: var(--radius-sm);
    transition: var(--transition-base);
}

.cert-badge:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.cert-badge h4 {
    color: white;
    margin-bottom: var(--spacing-sm);
}

.cert-badge p {
    margin: 0;
    opacity: 0.9;
}

.legal-footer-meta {
    text-align: center;
    margin-top: var(--spacing-lg);
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Legal Footer */
.legal-footer {
    background: #34495e;
    color: white;
    padding: var(--spacing-lg);
    text-align: center;
    margin-top: var(--spacing-xl);
}

.legal-footer p {
    margin-bottom: var(--spacing-sm);
}

.footer-links {
    font-size: 0.9rem;
    margin-top: var(--spacing-sm);
}

.footer-links a {
    color: #3498db;
    text-decoration: none;
    margin: 0 var(--spacing-xs);
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-tagline {
    font-size: 0.8rem;
    margin-top: var(--spacing-sm);
    opacity: 0.8;
}

/* Legal Lists */
.legal-section ul {
    margin: var(--spacing-md) 0;
    padding-left: var(--spacing-xl);
}

.legal-section li {
    margin-bottom: var(--spacing-sm);
}

.legal-section ol {
    margin: var(--spacing-md) 0;
    padding-left: var(--spacing-xl);
}

.legal-section ol li {
    margin-bottom: var(--spacing-md);
}

/* Section-specific highlight colors */
#privacy .highlight-box {
    background: #e8f4f8;
}

#privacy .highlight-box h3 {
    color: #2980b9;
}

#security .highlight-box {
    background: #eafaf1;
}

#security .highlight-box h3 {
    color: #27ae60;
}

#cookies .highlight-box {
    background: #fef9e7;
}

#cookies .highlight-box h3 {
    color: #f39c12;
}

#terms .highlight-box {
    background: #fdf2e9;
}

#terms .highlight-box h3 {
    color: #e67e22;
}

#refund .highlight-box {
    background: #f4ecf7;
}

#refund .highlight-box h3 {
    color: #8e44ad;
}

/* Responsive Design for Legal Page */
@media (max-width: 768px) {
    .legal-nav .nav-links {
        flex-direction: column;
        align-items: center;
    }
    
    .legal-nav .nav-links a {
        display: block;
        width: 200px;
        text-align: center;
        margin: var(--spacing-xs) 0;
    }
    
    .legal-header h1 {
        font-size: 2rem;
    }
    
    .legal-section {
        padding: var(--spacing-lg);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .certifications-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .legal-header {
        padding: var(--spacing-lg);
    }
    
    .legal-header h1 {
        font-size: 1.5rem;
    }
    
    .legal-main {
        padding: 0 var(--spacing-sm);
    }
    
    .legal-section {
        padding: var(--spacing-md);
    }
    
    .certifications-grid {
        grid-template-columns: 1fr;
    }
    
    .highlight-box,
    .notice-box,
    .business-address {
        padding: var(--spacing-md);
    }
}

/* Print Styles for Legal Page */
@media print {
    body.privacy-page {
        background: white;
        color: black;
    }
    
    .legal-nav,
    .compliance-certifications,
    .legal-footer {
        display: none;
    }
    
    .legal-section {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
        margin-bottom: var(--spacing-lg);
    }
    
    .legal-header {
        background: white;
        color: black;
        border: 2px solid black;
    }
    
    .highlight-box,
    .notice-box {
        background: #f8f9fa;
        border: 1px solid #ddd;
    }
}


