/* CSS Variables for Theme */
:root {
  /* Monochromatic Color Palette */
  --primary-color: #2c3e50;
  --primary-dark: #1a252f;
  --primary-light: #34495e;
  --primary-lighter: #5d6d7e;
  --primary-lightest: #85929e;
  
  --secondary-color: #ecf0f1;
  --secondary-dark: #d5dbdb;
  --secondary-light: #f8f9fa;
  
  --accent-color: #27ae60;
  --accent-dark: #1e8449;
  --accent-light: #58d68d;
  
  --text-primary: #2c3e50;
  --text-secondary: #5d6d7e;
  --text-light: #85929e;
  --text-white: #ffffff;
  
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-dark: #2c3e50;
  
  /* Bio-morphic Design Colors */
  --bio-gradient-1: linear-gradient(135deg, #27ae60 0%, #2c3e50 100%);
  --bio-gradient-2: linear-gradient(135deg, #ecf0f1 0%, #d5dbdb 100%);
  --bio-shadow: 0 20px 40px rgba(44, 62, 80, 0.1);
  --bio-shadow-hover: 0 30px 60px rgba(44, 62, 80, 0.15);
  
  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Source Sans Pro', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4rem;
  --spacing-xxl: 6rem;
  
  /* Border Radius - Bio-morphic */
  --radius-sm: 15px;
  --radius-md: 25px;
  --radius-lg: 35px;
  --radius-xl: 50px;
  
  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
  color: var(--text-primary);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.8rem; }
h3 { font-size: 2.2rem; }
h4 { font-size: 1.8rem; }
h5 { font-size: 1.4rem; }
h6 { font-size: 1.2rem; }

p {
  margin-bottom: var(--spacing-sm);
  color: var(--text-secondary);
  font-weight: 400;
}

/* Global Button Styles */
.btn, 
button, 
input[type="submit"], 
.button {
  display: inline-block;
  padding: 1rem 2rem;
  border: none;
  border-radius: var(--radius-xl);
  font-family: var(--font-body);
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  background: var(--bio-gradient-1);
  color: var(--text-white);
  box-shadow: var(--bio-shadow);
  position: relative;
  overflow: hidden;
  min-width: 160px;
}

.btn:hover, 
button:hover, 
input[type="submit"]:hover, 
.button:hover {
  transform: translateY(-3px);
  box-shadow: var(--bio-shadow-hover);
  color: var(--text-white);
  text-decoration: none;
}

.btn::before, 
button::before, 
input[type="submit"]::before, 
.button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: var(--transition-smooth);
}

.btn:hover::before, 
button:hover::before, 
input[type="submit"]:hover::before, 
.button:hover::before {
  left: 100%;
}

/* Bio-morphic Button Variants */
.bio-button {
  background: var(--bio-gradient-1);
  border-radius: var(--radius-xl);
  padding: 1.2rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.btn-outline, .button.is-outlined {
  background: transparent;
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
}

.btn-outline:hover, .button.is-outlined:hover {
  background: var(--accent-color);
  color: var(--text-white);
}

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

a:hover {
  color: var(--accent-dark);
  text-decoration: none;
}

/* Read More Links */
.read-more {
  display: inline-flex;
  align-items: center;
  color: var(--accent-color);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-smooth);
  margin-top: var(--spacing-sm);
}

.read-more:hover {
  color: var(--accent-dark);
  transform: translateX(5px);
}

.read-more::after {
  content: '→';
  margin-left: 0.5rem;
  transition: var(--transition-smooth);
}

.read-more:hover::after {
  transform: translateX(3px);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(44, 62, 80, 0.1);
  transition: var(--transition-smooth);
}

.navbar {
  padding: 1rem 0;
}

.brand-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color) !important;
}

.navbar-item {
  color: var(--text-primary);
  font-weight: 500;
  transition: var(--transition-smooth);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
}

.navbar-item:hover {
  color: var(--accent-color);
  background-color: rgba(39, 174, 96, 0.1);
}

/* Main Container */
.main-container {
  margin-top: 0;
}

/* Hero Section */
.hero {
  position: relative;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-content {
  padding: var(--spacing-xxl) var(--spacing-md);
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-title {
  color: var(--text-white) !important;
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  color: var(--text-white) !important;
  font-size: 1.3rem;
  margin-bottom: var(--spacing-lg);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  justify-content: center;
  margin-top: var(--spacing-lg);
}

/* Parallax Background */
.parallax-bg {
  background-attachment: fixed;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

/* Section Styles */
.section {
  padding: var(--spacing-xxl) var(--spacing-md);
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-xl);
  position: relative;
  font-weight: 700;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--bio-gradient-1);
  border-radius: var(--radius-sm);
}

/* Bio-morphic Cards */
.bio-card {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--bio-shadow);
  transition: var(--transition-smooth);
  border: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
}

.bio-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--bio-shadow-hover);
}

.bio-card .card-image {
  margin-bottom: var(--spacing-md);
  width: 100%;
}

.image-container {
  width: 100%;
  height: 250px;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
  margin: 0 auto;
  display: block;
}

.bio-card:hover .image-container img {
  transform: scale(1.05);
}

.card-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

/* Mission Section */
.mission-section {
  background: var(--bg-secondary);
}

/* Vision Section */
.vision-section {
  position: relative;
  color: var(--text-white);
}

.vision-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
}

.vision-section .container {
  position: relative;
  z-index: 2;
}

/* Statistics Section */
.statistics-section {
  background: var(--primary-color);
  color: var(--text-white);
}

.stat-widget {
  text-align: center;
  padding: var(--spacing-lg);
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
}

.stat-widget:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent-light);
  margin-bottom: var(--spacing-sm);
  font-family: var(--font-heading);
}

.stat-label {
  font-size: 1.1rem;
  color: var(--text-white);
  font-weight: 500;
}

/* History Section */
.history-section {
  background: var(--bg-primary);
}

/* Methodology Section */
.methodology-section {
  background: var(--bg-secondary);
}

.method-switch-container {
  display: flex;
  justify-content: center;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
  flex-wrap: wrap;
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.method-panel {
  display: none;
  animation: fadeIn 0.5s ease-in;
}

.method-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Workshops Section */
.workshops-section {
  background: var(--bg-primary);
}

/* Community Section */
.community-section {
  position: relative;
  color: var(--text-white);
}

.community-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
}

.community-section .container {
  position: relative;
  z-index: 2;
}

/* Success Stories Section */
.success-section {
  background: var(--bg-secondary);
}

/* Blog Section */
.blog-section {
  background: var(--bg-primary);
}

/* Careers Section */
.careers-section {
  background: var(--bg-secondary);
}

/* Resources Section */
.resources-section {
  background: var(--bg-primary);
}

.resource-links {
  list-style: none;
  padding: 0;
}

.resource-links li {
  margin-bottom: var(--spacing-sm);
}

.resource-links a {
  color: var(--accent-color);
  font-weight: 500;
  transition: var(--transition-smooth);
  text-decoration: none;
  display: inline-block;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
}

.resource-links a:hover {
  color: var(--accent-dark);
  border-bottom-color: var(--accent-color);
  transform: translateX(5px);
}

/* Contact Section */
.contact-section {
  background: var(--bg-primary);
}

.contact-info {
  padding: var(--spacing-lg);
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  height: 100%;
}

.contact-item {
  margin-bottom: var(--spacing-md);
  padding: var(--spacing-sm);
  background: var(--bg-primary);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--accent-color);
}

.contact-item strong {
  color: var(--primary-color);
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
}

/* Bio-morphic Forms */
.bio-form {
  background: var(--bg-primary);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--bio-shadow);
}

.bio-form .field {
  margin-bottom: var(--spacing-md);
}

.bio-form .label {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
}

.bio-form .input,
.bio-form .textarea,
.bio-form .select select {
  border: 2px solid var(--secondary-dark);
  border-radius: var(--radius-sm);
  padding: 1rem;
  font-family: var(--font-body);
  transition: var(--transition-smooth);
  background: var(--bg-primary);
  color: var(--text-primary);
}

.bio-form .input:focus,
.bio-form .textarea:focus,
.bio-form .select select:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
  outline: none;
}

/* Footer */
.footer {
  background: var(--primary-color);
  color: var(--text-white);
  padding: var(--spacing-xl) var(--spacing-md) var(--spacing-lg);
}

.footer h4 {
  color: var(--text-white);
  margin-bottom: var(--spacing-md);
  font-weight: 600;
}

.footer p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.footer ul {
  list-style: none;
  padding: 0;
}

.footer ul li {
  margin-bottom: var(--spacing-xs);
}

.footer ul li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition-smooth);
  display: inline-block;
  padding: 0.25rem 0;
}

.footer ul li a:hover {
  color: var(--accent-light);
  transform: translateX(5px);
}

/* Social Links */
.social-links {
  display: flex;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
  flex-wrap: wrap;
}

.social-links a {
  display: inline-block;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-white);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-links a:hover {
  background: var(--accent-color);
  color: var(--text-white);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3);
}

.contact-footer p {
  margin-bottom: var(--spacing-xs);
  font-size: 0.9rem;
}

.contact-footer strong {
  color: var(--accent-light);
}

/* Success Page */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bio-gradient-2);
}

.success-content {
  text-align: center;
  padding: var(--spacing-xl);
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--bio-shadow);
  max-width: 500px;
  width: 90%;
}

.success-icon {
  font-size: 4rem;
  color: var(--accent-color);
  margin-bottom: var(--spacing-md);
}

/* Privacy and Terms Pages */
.legal-content {
  padding-top: 100px;
  max-width: 800px;
  margin: 0 auto;
  padding-left: var(--spacing-md);
  padding-right: var(--spacing-md);
  padding-bottom: var(--spacing-xl);
}

.legal-content h1,
.legal-content h2 {
  color: var(--primary-color);
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}

.legal-content p,
.legal-content li {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-sm);
  line-height: 1.7;
}

.legal-content ul {
  padding-left: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-title { font-size: 3rem; }
  .hero-subtitle { font-size: 1.2rem; }
  h1 { font-size: 3rem; }
  h2 { font-size: 2.5rem; }
  
  .method-switch-container {
    flex-direction: column;
    align-items: center;
  }
  
  .parallax-bg {
    background-attachment: scroll;
  }
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.5rem; }
  .hero-subtitle { font-size: 1.1rem; }
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  
  .section {
    padding: var(--spacing-lg) var(--spacing-sm);
  }
  
  .hero-content {
    padding: var(--spacing-lg) var(--spacing-sm);
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-buttons .button {
    width: 100%;
    max-width: 300px;
  }
  
  .stat-number { font-size: 2.5rem; }
  
  .contact-info,
  .bio-form {
    margin-bottom: var(--spacing-md);
  }
  
  .social-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: 1rem; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.8rem; }
  
  .image-container {
    height: 200px;
  }
  
  .bio-card {
    padding: var(--spacing-md);
  }
  
  .stat-widget {
    padding: var(--spacing-md);
  }
  
  .stat-number { font-size: 2rem; }
}

/* Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease-out forwards;
}

.fade-in.delay-1 { animation-delay: 0.2s; }
.fade-in.delay-2 { animation-delay: 0.4s; }
.fade-in.delay-3 { animation-delay: 0.6s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Smooth Scrolling Animation */
.scroll-animate {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animate.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Bio-morphic Elements */
.bio-shape {
  position: absolute;
  border-radius: 50% 40% 60% 30%;
  background: var(--bio-gradient-1);
  opacity: 0.1;
  animation: morph 8s ease-in-out infinite;
}

@keyframes morph {
  0%, 100% { border-radius: 50% 40% 60% 30%; }
  25% { border-radius: 30% 60% 40% 50%; }
  50% { border-radius: 60% 30% 50% 40%; }
  75% { border-radius: 40% 50% 30% 60%; }
}

/* Glassmorphism Effect */
.glass-effect {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
}

/* Loading Animation */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }

/* Performance Optimizations */
.image-container img,
.bio-card {
  will-change: transform;
}

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