/* ============================================
   CSS VARIABLES & GLOBAL STYLES
   ============================================ */
:root {
  /* Primary Colors - Bright Corporate */
  --primary-color: #0066ff;
  --primary-dark: #0052cc;
  --primary-light: #3385ff;
  --primary-gradient: linear-gradient(135deg, #0066ff, #3385ff);
  
  /* Secondary Colors - Biomorphic Accents */
  --secondary-color: #00ff88;
  --secondary-dark: #00cc6a;
  --secondary-light: #33ffaa;
  --secondary-gradient: linear-gradient(135deg, #00ff88, #33ffaa);
  
  /* Accent Colors - Bright Palette */
  --accent-orange: #ff6b35;
  --accent-orange-dark: #e55a2b;
  --accent-purple: #8b5cf6;
  --accent-purple-dark: #7c3aed;
  --accent-yellow: #fbbf24;
  --accent-pink: #ec4899;
  
  /* Neutral Colors */
  --white: #ffffff;
  --black: #000000;
  --dark-gray: #222222;
  --medium-gray: #555555;
  --light-gray: #f8f9fa;
  --border-color: #e5e7eb;
  
  /* Background Gradients */
  --hero-gradient: linear-gradient(135deg, rgba(0,102,255,0.9), rgba(0,255,136,0.8));
  --card-gradient: linear-gradient(145deg, rgba(255,255,255,0.95), rgba(255,255,255,0.85));
  --dark-overlay: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7));
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 25px rgba(0,0,0,0.2);
  --shadow-xl: 0 15px 35px rgba(0,0,0,0.25);
  
  /* Border Radius - Biomorphic */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-organic: 40px 20px 35px 25px;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 4rem;
  
  /* Typography */
  --font-primary: 'Manrope', sans-serif;
  --font-secondary: 'Rubik', sans-serif;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-secondary);
  font-weight: 400;
  line-height: 1.6;
  color: var(--dark-gray);
  overflow-x: hidden;
  background-color: var(--white);
}

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

h1 { font-size: 3.5rem; font-weight: 700; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: var(--spacing-sm);
  color: var(--medium-gray);
}

/* ============================================
   GLOBAL BUTTON STYLES
   ============================================ */
.btn {
  font-family: var(--font-primary);
  font-weight: 600;
  padding: 12px 30px;
  border-radius: var(--radius-md);
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
}

.btn:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left var(--transition-slow);
}

.btn:hover:before {
  left: 100%;
}

.btn-primary {
  background: var(--primary-gradient);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
  color: var(--white);
}

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

.btn-outline-primary:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline-light:hover {
  background: var(--white);
  color: var(--primary-color);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 40px;
  font-size: 1.1rem;
}

.animated-btn {
  position: relative;
  overflow: hidden;
}

/* ============================================
   PARTICLES ANIMATION
   ============================================ */
.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.particles-container::before,
.particles-container::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--secondary-color);
  border-radius: 50%;
  animation: float 6s infinite ease-in-out;
}

.particles-container::before {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.particles-container::after {
  top: 60%;
  right: 15%;
  animation-delay: 3s;
}

@keyframes float {
  0%, 100% { 
    transform: translateY(0) scale(1); 
    opacity: 0.7;
  }
  50% { 
    transform: translateY(-20px) scale(1.2); 
    opacity: 1;
  }
}

/* Additional floating particles */
.hero-section::before,
.hero-section::after {
  content: '';
  position: absolute;
  background: var(--secondary-color);
  border-radius: 50%;
  animation: particleFloat 8s infinite linear;
  z-index: 1;
}

.hero-section::before {
  width: 6px;
  height: 6px;
  top: 30%;
  left: 20%;
  animation-delay: 1s;
}

.hero-section::after {
  width: 3px;
  height: 3px;
  top: 70%;
  right: 25%;
  animation-delay: 4s;
}

@keyframes particleFloat {
  0% { 
    transform: translateY(0) rotate(0deg); 
    opacity: 0;
  }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { 
    transform: translateY(-100px) rotate(360deg); 
    opacity: 0;
  }
}

/* ============================================
   NAVIGATION HEADER
   ============================================ */
header {
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.navbar-brand {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-color) !important;
  text-decoration: none;
}

.navbar-nav .nav-link {
  font-family: var(--font-primary);
  font-weight: 500;
  color: var(--dark-gray) !important;
  margin: 0 var(--spacing-xs);
  padding: 8px 16px !important;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.navbar-nav .nav-link:hover {
  background: var(--primary-color);
  color: var(--white) !important;
  transform: translateY(-1px);
}

.navbar-toggler {
  border: none;
  padding: 4px 8px;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* ============================================
   MAIN CONTAINER
   ============================================ */
.main-container {
  padding-top: 70px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-section h1 {
  color: var(--white) !important;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  animation: heroTextSlide 1s ease-out;
}

.hero-section p {
  color: var(--white) !important;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
  animation: heroTextSlide 1s ease-out 0.3s both;
}

.hero-buttons {
  animation: heroTextSlide 1s ease-out 0.6s both;
}

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

/* Statistics Widgets */
.stats-container {
  z-index: 10;
  background: var(--dark-overlay);
}

.stat-widget {
  color: var(--white);
  padding: var(--spacing-md);
}

.stat-number {
  font-family: var(--font-primary);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: var(--spacing-xs);
}

.stat-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.9;
}

/* ============================================
   CARD COMPONENTS
   ============================================ */
.card {
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  overflow: hidden;
  background: var(--card-gradient);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

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

.card-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  position: relative;
}

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

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

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

.card-title {
  color: var(--dark-gray);
  margin-bottom: var(--spacing-sm);
}

.card-text {
  color: var(--medium-gray);
  flex-grow: 1;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-section {
  padding: var(--spacing-xxl) 0;
  background: var(--light-gray);
}

.service-card {
  height: 100%;
  position: relative;
}

.animated-icon {
  font-size: 3rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.progress-indicator {
  width: 100%;
  height: 4px;
  background: var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-top: var(--spacing-md);
}

.progress-bar {
  height: 100%;
  background: var(--primary-gradient);
  border-radius: var(--radius-sm);
  width: 0;
  transition: width 1s ease-out;
}

/* ============================================
   MISSION SECTION
   ============================================ */
.mission-section {
  padding: var(--spacing-xxl) 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.mission-stats h3 {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: var(--spacing-xs);
}

.mission-carousel .carousel-item img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* ============================================
   METHODOLOGY SECTION
   ============================================ */
.methodology-section {
  padding: var(--spacing-xxl) 0;
  background: var(--white);
}

.methodology-timeline {
  position: relative;
}

.methodology-step {
  position: relative;
  padding: var(--spacing-lg);
  background: var(--card-gradient);
  border-radius: var(--radius-organic);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  margin-bottom: var(--spacing-lg);
}

.methodology-step:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.step-number {
  position: absolute;
  top: -15px;
  left: var(--spacing-md);
  background: var(--primary-gradient);
  color: var(--white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1.1rem;
}

.step-icon {
  font-size: 2.5rem;
  margin: var(--spacing-md) 0;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* ============================================
   PARTNERS SECTION
   ============================================ */
.partners-section {
  padding: var(--spacing-xxl) 0;
  background: var(--light-gray);
}

.partner-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.partner-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.partner-logo {
  max-width: 200px;
  height: 100px;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

.partnership-benefits {
  background: var(--white);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.benefits-list {
  list-style: none;
  padding: 0;
}

.benefits-list li {
  padding: var(--spacing-sm) 0;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  padding-left: var(--spacing-lg);
}

.benefits-list li:before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-weight: bold;
}

.benefits-list li:last-child {
  border-bottom: none;
}

/* ============================================
   WORKSHOPS SECTION
   ============================================ */
.workshops-section {
  padding: var(--spacing-xxl) 0;
  background: var(--white);
}

.workshop-card {
  height: 100%;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

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

.workshop-details {
  margin-top: var(--spacing-md);
}

.workshop-details .badge {
  margin-bottom: var(--spacing-xs);
}

.workshop-stats {
  background: var(--light-gray);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
}

.stat-item h3 {
  font-family: var(--font-primary);
  font-weight: 700;
  color: var(--primary-color);
  font-size: 2.5rem;
  margin-bottom: var(--spacing-xs);
}

/* ============================================
   PRESS SECTION
   ============================================ */
.press-section {
  padding: var(--spacing-xxl) 0;
  background: var(--light-gray);
}

.press-card {
  height: 100%;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

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

.press-date {
  color: var(--primary-color);
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--spacing-xs);
}

/* ============================================
   RESOURCES SECTION
   ============================================ */
.resources-section {
  padding: var(--spacing-xxl) 0;
}

.resource-card {
  height: 100%;
  transition: all var(--transition-normal);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

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

.resource-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
  padding: var(--spacing-xxl) 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.contact-form-container {
  background: rgba(255,255,255,0.95);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(10px);
}

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

.form-control,
.form-select {
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  transition: all var(--transition-fast);
  background: rgba(255,255,255,0.9);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(0,102,255,0.25);
  background: var(--white);
}

.contact-info {
  margin-top: var(--spacing-xl);
}

.contact-item {
  padding: var(--spacing-md);
}

.contact-icon {
  font-size: 2rem;
  color: var(--secondary-color);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--dark-gray) !important;
  color: var(--white);
  padding: var(--spacing-xxl) 0 var(--spacing-lg) 0;
}

.footer h5,
.footer h6 {
  color: var(--white);
  font-family: var(--font-primary);
  margin-bottom: var(--spacing-md);
}

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

.footer a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

.social-links a {
  display: inline-block;
  padding: var(--spacing-xs) var(--spacing-sm);
  margin-right: var(--spacing-sm);
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  text-decoration: none;
  color: var(--white);
}

.social-links a:hover {
  background: var(--primary-color);
  transform: translateY(-2px);
  color: var(--white);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.bg-primary { background: var(--primary-gradient) !important; }
.bg-secondary { background: var(--secondary-gradient) !important; }

.shadow-soft { box-shadow: var(--shadow-md); }
.shadow-strong { box-shadow: var(--shadow-lg); }

.rounded-organic { border-radius: var(--radius-organic); }
.rounded-soft { border-radius: var(--radius-lg); }

/* ============================================
   SUCCESS PAGE STYLES
   ============================================ */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--hero-gradient);
  text-align: center;
}

.success-content {
  background: rgba(255,255,255,0.95);
  padding: var(--spacing-xxl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(10px);
  max-width: 600px;
  margin: var(--spacing-lg);
}

.success-icon {
  font-size: 4rem;
  color: var(--secondary-color);
  margin-bottom: var(--spacing-lg);
  animation: successPulse 2s infinite;
}

@keyframes successPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* ============================================
   PRIVACY & TERMS PAGES
   ============================================ */
.privacy-page,
.terms-page {
  padding-top: 100px;
  padding-bottom: var(--spacing-xxl);
}

.privacy-content,
.terms-content {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--spacing-xl);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.privacy-content h2,
.terms-content h2 {
  color: var(--primary-color);
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-md);
}

.privacy-content h3,
.terms-content h3 {
  color: var(--dark-gray);
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-sm);
}

/* ============================================
   ABOUT PAGE STYLES
   ============================================ */
.about-hero {
  padding: var(--spacing-xxl) 0;
  background: var(--hero-gradient);
  color: var(--white);
  text-align: center;
}

.team-section {
  padding: var(--spacing-xxl) 0;
  background: var(--light-gray);
}

.team-member {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.team-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto var(--spacing-md);
  border: 4px solid var(--primary-color);
}

/* ============================================
   CONTACTS PAGE STYLES
   ============================================ */
.contacts-hero {
  padding: var(--spacing-xxl) 0;
  background: var(--primary-gradient);
  color: var(--white);
  text-align: center;
}

.contact-details {
  padding: var(--spacing-xxl) 0;
}

.contact-card {
  background: var(--white);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.contact-card .contact-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  
  .hero-section {
    background-attachment: scroll;
    padding: var(--spacing-xl) 0;
  }
  
  .mission-section {
    background-attachment: scroll;
  }
  
  .contact-section {
    background-attachment: scroll;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .methodology-step {
    margin-bottom: var(--spacing-md);
  }
  
  .contact-form-container {
    padding: var(--spacing-lg);
  }
  
  .btn {
    width: 100%;
    margin-bottom: var(--spacing-sm);
  }
  
  .hero-buttons .btn {
    display: block;
    margin-bottom: var(--spacing-sm);
  }
}

@media (max-width: 576px) {
  .container {
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
  }
  
  .card-content {
    padding: var(--spacing-md);
  }
  
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .hero-section p {
    font-size: 1rem;
  }
}

/* ============================================
   LOADING & TRANSITION STATES
   ============================================ */
.page-transition {
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition-slow);
}

.page-transition.loaded {
  opacity: 1;
  transform: translateY(0);
}

/* Scroll reveal animations */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

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

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

/* Focus styles for accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 25px rgba(0,0,0,0.5);
  }
}