:root {
  /* Primary Colors */
  --primary-color: #3a86ff;
  --primary-dark: #2563eb;
  --primary-light: #60a5fa;
  
  /* Secondary Colors */
  --secondary-color: #fb5607;
  --secondary-dark: #e04d06;
  --secondary-light: #ff7a38;
  
  /* Neutral Colors */
  --neutral-100: #f8fafc;
  --neutral-200: #f1f5f9;
  --neutral-300: #e2e8f0;
  --neutral-400: #cbd5e1;
  --neutral-500: #94a3b8;
  --neutral-600: #64748b;
  --neutral-700: #475569;
  --neutral-800: #334155;
  --neutral-900: #1e293b;
  --neutral-950: #0f172a;
  
  /* Accent Colors */
  --accent-color: #8338ec;
  --accent-dark: #6d30c7;
  --accent-light: #9d5aff;
  
  /* Functional Colors */
  --success-color: #10b981;
  --warning-color: #fbbf24;
  --error-color: #ef4444;
  --info-color: #3b82f6;
  
  /* Typography */
  --heading-font: 'Archivo Black', sans-serif;
  --body-font: 'Roboto', sans-serif;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-xxl: 5rem;
  
  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 300ms ease;
  --transition-slow: 500ms ease;
  --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* --------------------
   Global Styles
-------------------- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  color: var(--neutral-800);
  background-color: var(--neutral-100);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  color: var(--neutral-900);
  margin-bottom: var(--space-md);
  line-height: 1.2;
}

p {
  margin-bottom: var(--space-md);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-normal);
}

a:hover {
  color: var(--primary-dark);
}

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

/* Section styles */
section {
  padding: var(--space-xl) 0;
  position: relative;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: var(--space-lg);
  position: relative;
  z-index: 1;
  text-align: center;
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--neutral-600);
  margin-bottom: var(--space-xl);
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-divider {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  margin: 0 auto var(--space-lg);
  border-radius: var(--radius-full);
}

/* Button styles */
.btn,
button,
input[type='submit'] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  text-align: center;
  transition: all var(--transition-bounce);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
  box-shadow: var(--shadow-md);
}

.btn:hover,
button:hover,
input[type='submit']:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn:active,
button:active,
input[type='submit']:active {
  transform: translateY(-1px);
}

.btn-primary,
.btn-primary:hover {
  background-color: var(--primary-color);
  color: white;
}

.btn-secondary,
.btn-secondary:hover {
  background-color: var(--secondary-color);
  color: white;
}

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

.btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Card styles */
.card {
  background-color: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-bounce), box-shadow var(--transition-normal);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.card-image {
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-image img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

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

.card-content {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
}

.card p {
  color: var(--neutral-700);
  margin-bottom: var(--space-md);
}

/* --------------------
   Header & Navigation
-------------------- */
.header-nav {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  padding: 1rem 0;
  transition: all var(--transition-normal);
  z-index: 1000;
}

.header-nav.scrolled {
  padding: 0.5rem 0;
  background-color: rgba(255, 255, 255, 0.98);
}

.navbar-brand {
  font-family: var(--heading-font);
  font-size: 1.75rem;
  color: var(--primary-color);
  transition: color var(--transition-normal);
}

.navbar-brand:hover {
  color: var(--primary-dark);
}

.nav-link {
  font-weight: 500;
  color: var(--neutral-800);
  padding: 0.5rem 1rem;
  transition: color var(--transition-normal);
  position: relative;
}

.nav-link:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background-color: var(--primary-color);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition-bounce);
}

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

.nav-link:hover:after {
  transform: scaleX(1);
}

/* --------------------
   Hero Section
-------------------- */
.hero-section {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 10rem 0 8rem;
  display: flex;
  align-items: center;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4));
  z-index: 1;
}

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

.hero-title {
  font-size: 3.5rem;
  margin-bottom: var(--space-sm);
  color: white;
}

.hero-subtitle {
  font-size: 1.75rem;
  margin-bottom: var(--space-lg);
  color: var(--neutral-100);
  font-weight: 300;
}

.hero-text {
  font-size: 1.25rem;
  margin-bottom: var(--space-xl);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--neutral-200);
}

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

/* --------------------
   Mission Section
-------------------- */
.mission-section {
  background-color: white;
  position: relative;
  overflow: hidden;
}

.mission-image-container {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.mission-image-container img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

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

.mission-content {
  padding: var(--space-lg);
}

.mission-content h3 {
  font-size: 2rem;
  margin-bottom: var(--space-md);
}

.progress-indicators {
  margin-top: var(--space-lg);
}

.progress-item {
  margin-bottom: var(--space-md);
}

.progress-item span {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 500;
}

.progress {
  height: 8px;
  background-color: var(--neutral-300);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar {
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: var(--radius-full);
  transition: width 1s ease-in-out;
}

/* --------------------
   Case Studies Section
-------------------- */
.case-studies-section {
  background-color: var(--neutral-100);
  position: relative;
}

.case-study-card {
  height: 100%;
}

.case-study-card .card-image {
  height: 230px;
}

.case-study-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------
   Testimonials Section
-------------------- */
.testimonials-section {
  background-color: white;
}

.testimonial-card {
  text-align: center;
  padding: var(--space-lg);
  height: 100%;
}

.testimonial-card .card-image {
  margin-bottom: var(--space-md);
}

.testimonial-card .card-image img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border: 4px solid var(--neutral-200);
  margin: 0 auto;
}

.testimonial-card h4 {
  font-size: 1.25rem;
  margin-bottom: var(--space-xs);
}

.testimonial-position {
  color: var(--neutral-600);
  font-size: 0.9rem;
  margin-bottom: var(--space-md);
}

/* --------------------
   Accolades Section
-------------------- */
.accolades-section {
  background-color: var(--neutral-100);
  position: relative;
}

.accolade-item {
  padding: var(--space-lg);
  background-color: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-bounce);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.accolade-icon {
  margin-bottom: var(--space-md);
  width: 100px;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.accolade-icon img {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.accolade-item h4 {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
  text-align: center;
}

.accolade-item p {
  color: var(--neutral-600);
  font-size: 0.9rem;
  text-align: center;
}

/* --------------------
   Resources Section
-------------------- */
.resources-section {
  background-color: white;
}

.resource-card {
  background-color: var(--neutral-100);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  height: 100%;
}

.resource-card h3 {
  font-size: 1.5rem;
  margin-bottom: var(--space-lg);
  text-align: center;
}

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

.resource-list li {
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--neutral-300);
}

.resource-list li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.resource-list a {
  display: block;
  color: var(--neutral-800);
  transition: color var(--transition-normal);
}

.resource-list a:hover {
  color: var(--primary-color);
}

.resource-list h4 {
  font-size: 1.1rem;
  margin-bottom: var(--space-xs);
  transition: color var(--transition-normal);
}

.resource-list a:hover h4 {
  color: var(--primary-color);
}

.resource-list p {
  color: var(--neutral-600);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* --------------------
   Community Section
-------------------- */
.community-section {
  background-color: var(--neutral-100);
}

.community-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.community-card .card-image {
  height: 200px;
}

.community-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.community-card .card-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.community-card .card-content a {
  margin-top: auto;
}

/* --------------------
   FAQ Section
-------------------- */
.faq-section {
  background-color: white;
}

.accordion-item {
  border: none;
  background-color: transparent;
  margin-bottom: var(--space-md);
}

.accordion-button {
  background-color: var(--neutral-100);
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-sm);
  font-weight: 600;
  color: var(--neutral-900);
  padding: 1.25rem;
  transition: all var(--transition-normal);
}

.accordion-button:not(.collapsed) {
  color: var(--primary-color);
  background-color: var(--neutral-100);
  box-shadow: var(--shadow-md);
}

.accordion-button:focus {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%233a86ff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
  padding: 1.5rem;
  background-color: white;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-sm);
}

/* --------------------
   Contact Section
-------------------- */
.contact-section {
  background-color: var(--neutral-100);
  position: relative;
}

.contact-info {
  background-color: white;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-lg);
  height: 100%;
}

.info-item {
  display: flex;
  margin-bottom: var(--space-lg);
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-icon {
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  margin-right: var(--space-md);
  flex-shrink: 0;
}

.info-content {
  flex-grow: 1;
}

.info-content h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-xs);
}

.info-content p {
  color: var(--neutral-600);
  margin-bottom: 0;
}

.contact-form-container {
  background-color: white;
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-lg);
}

.form-label {
  font-weight: 500;
  color: var(--neutral-800);
}

.form-control, .form-select {
  border: 1px solid var(--neutral-300);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  transition: all var(--transition-normal);
}

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

/* --------------------
   Footer Section
-------------------- */
.footer-section {
  background-color: var(--neutral-900);
  color: var(--neutral-300);
  padding: var(--space-xl) 0 var(--space-md);
}

.footer-section h3, .footer-section h4 {
  color: white;
  margin-bottom: var(--space-lg);
}

.social-links {
  margin-top: var(--space-md);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.social-links a {
  color: var(--neutral-300);
  transition: color var(--transition-normal);
  font-weight: 500;
}

.social-links a:hover {
  color: white;
}

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

.footer-links li {
  margin-bottom: var(--space-md);
}

.footer-links a {
  color: var(--neutral-400);
  transition: color var(--transition-normal), transform var(--transition-normal);
  display: inline-block;
}

.footer-links a:hover {
  color: white;
  transform: translateX(5px);
}

.newsletter-form .input-group {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.newsletter-form .form-control {
  border-right: none;
}

.newsletter-form .btn {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.legal-links {
  margin-top: var(--space-lg);
  display: flex;
  gap: var(--space-md);
}

.legal-links a {
  color: var(--neutral-500);
  font-size: 0.9rem;
  transition: color var(--transition-normal);
}

.legal-links a:hover {
  color: white;
}

.footer-bottom {
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 1px solid var(--neutral-800);
}

.footer-bottom p {
  margin-bottom: 0;
  color: var(--neutral-500);
  font-size: 0.9rem;
}

/* --------------------
   Cookie Consent
-------------------- */
.cookie-consent-popup {
  position: fixed;
  bottom: 20px;
  left: 20px;
  max-width: 400px;
  background-color: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  padding: var(--space-lg);
  z-index: 9999;
  display: none;
}

.cookie-content {
  text-align: center;
}

.btn-accept-cookies {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  margin-top: var(--space-md);
  cursor: pointer;
  transition: all var(--transition-bounce);
}

.btn-accept-cookies:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* --------------------
   Additional Pages
-------------------- */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.privacy-page, .terms-page {
  padding-top: 100px;
}

.privacy-content, .terms-content {
  background-color: white;
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-lg);
}

/* --------------------
   Responsive Styles
-------------------- */
@media (max-width: 1199.98px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    font-size: 1.5rem;
  }
  
  .section-title {
    font-size: 2.25rem;
  }
}

@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .hero-text {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .mission-content {
    padding: var(--space-md) 0;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: var(--space-sm);
    align-items: center;
  }
  
  .hero-buttons .btn {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 767.98px) {
  section {
    padding: var(--space-lg) 0;
  }
  
  .hero-section {
    padding: 8rem 0 6rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  .card-content {
    padding: var(--space-md);
  }
  
  .contact-form-container {
    padding: var(--space-lg);
  }
  
  .info-item {
    flex-direction: column;
    text-align: center;
  }
  
  .info-icon {
    margin-right: 0;
    margin-bottom: var(--space-sm);
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: 1.75rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .accordion-button {
    padding: 1rem;
    font-size: 0.9rem;
  }
  
  .accordion-body {
    padding: 1rem;
  }
  
  .cookie-consent-popup {
    left: 10px;
    right: 10px;
    max-width: none;
  }
}

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

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

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease forwards;
}

.animate-bounce {
  animation: bounce 1s ease infinite;
}