:root {
  /* Neo-brutalist tetrad color scheme */
  --primary-color: #0F59A4;
  --primary-dark: #0A3D6F;
  --primary-light: #3283D1;
  
  --secondary-color: #A40F59;
  --secondary-dark: #6F0A3D;
  --secondary-light: #D13283;
  
  --tertiary-color: #59A40F;
  --tertiary-dark: #3D6F0A;
  --tertiary-light: #83D132;
  
  --quaternary-color: #A4590F;
  --quaternary-dark: #6F3D0A;
  --quaternary-light: #D18332;
  
  /* Neutrals */
  --neutral-50: #f8f9fa;
  --neutral-100: #e9ecef;
  --neutral-200: #dee2e6;
  --neutral-300: #ced4da;
  --neutral-400: #adb5bd;
  --neutral-500: #6c757d;
  --neutral-600: #495057;
  --neutral-700: #343a40;
  --neutral-800: #212529;
  --neutral-900: #0a0a0a;
  
  /* Fonts */
  --font-heading: 'Inter', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  
  /* Shadows and Effects */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 15px 30px rgba(0, 0, 0, 0.18);
  
  --transition-fast: 0.2s ease;
  --transition-medium: 0.35s ease;
  --transition-slow: 0.5s ease;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Z-index levels */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
}

/* Base Styles */
html, body {
  font-family: var(--font-body);
  color: var(--neutral-800);
  line-height: 1.6;
  scroll-behavior: smooth;
  background-color: var(--neutral-50);
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.section-title {
  position: relative;
  margin-bottom: 2rem;
  font-weight: 700;
  color: var(--neutral-800);
}

.section-subtitle {
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

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

a:hover, a:focus {
  color: var(--primary-dark);
  text-decoration: underline;
}

p {
  margin-bottom: 1.5rem;
  color: var(--neutral-700);
}

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

.text-muted {
  color: var(--neutral-500) !important;
}

/* Layout Containers */
.container {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Buttons */
.btn {
  display: inline-block;
  font-weight: 600;
  text-align: center;
  vertical-align: middle;
  user-select: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: var(--radius-md);
  transition: all var(--transition-medium);
  text-transform: none;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(1px);
  box-shadow: var(--shadow-sm);
}

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

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

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

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

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

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

.btn-outline-secondary {
  color: var(--secondary-color);
  border-color: var(--secondary-color);
  background-color: transparent;
}

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

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

.btn-outline-light:hover, .btn-outline-light:focus {
  color: var(--neutral-800);
  background-color: white;
  border-color: white;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
  border-radius: var(--radius-md);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
}

/* Header & Navigation */
.header {
  background-color: white;
  box-shadow: var(--shadow-sm);
  z-index: var(--z-sticky);
  transition: background-color var(--transition-medium), box-shadow var(--transition-medium);
}

.navbar {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.navbar-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--neutral-800);
}

.navbar-brand h1 {
  font-size: 1.5rem;
  margin-bottom: 0;
}

.nav-link {
  font-weight: 500;
  color: var(--neutral-700);
  padding: 0.5rem 1rem;
  transition: color var(--transition-fast);
}

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

/* Hero Section */
.hero {
  position: relative;
  padding: 10rem 0 6rem;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  color: white;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  margin-bottom: 2rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* About Section */
.about {
  position: relative;
  padding: 5rem 0;
}

.about .image-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: rotate(-2deg);
  transition: transform var(--transition-medium);
}

.about .image-container:hover {
  transform: rotate(0deg) scale(1.02);
}

.about .image-container img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.timeline {
  position: relative;
  margin-top: 2rem;
  padding-left: 1.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 7px;
  width: 2px;
  background-color: var(--primary-color);
}

.timeline-item {
  position: relative;
  margin-bottom: 1.5rem;
}

.timeline-dot {
  position: absolute;
  left: -1.5rem;
  top: 0.3rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--primary-color);
}

.timeline-content {
  padding-left: 1rem;
}

.timeline-content h5 {
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

/* Projects Section */
.projects {
  padding: 5rem 0;
}

.projects .card {
  border: none;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.projects .card-image {
  width: 100%;
  height: 240px;
  overflow: hidden;
}

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

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

.projects .card-title {
  color: var(--neutral-800);
  margin-bottom: 0.75rem;
}

.projects .card-text {
  color: var(--neutral-600);
  margin-bottom: 1.25rem;
}

/* External Resources Section */
.external-resources {
  padding: 5rem 0;
  background-color: var(--neutral-100);
}

.resource-card {
  text-align: center;
}

.resource-card .card-image {
  height: 200px;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

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

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

.resource-card h3 {
  color: var(--neutral-800);
  margin-bottom: 0.75rem;
}

.resource-card p {
  color: var(--neutral-600);
  margin-bottom: 1.25rem;
}

/* Webinars Section */
.webinars {
  padding: 5rem 0;
}

.webinars .card {
  border: none;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.webinars .card-image {
  width: 100%;
  height: 240px;
  overflow: hidden;
}

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

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

.webinars .card-title {
  color: var(--neutral-800);
  margin-bottom: 0.5rem;
}

.webinars .date {
  color: var(--secondary-color);
  font-weight: 500;
  margin-bottom: 1rem;
}

.webinars .card-text {
  color: var(--neutral-600);
  margin-bottom: 1.25rem;
}

/* Team Section */
.team {
  padding: 5rem 0;
}

.team-card {
  border: none;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.team-card .card-image {
  width: 100%;
  height: 300px;
  overflow: hidden;
}

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

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

.team-card h3 {
  color: var(--neutral-800);
  margin-bottom: 0.25rem;
}

.team-card .position {
  color: var(--primary-color);
  font-weight: 500;
}

.team-card .bio {
  color: var(--neutral-600);
  font-size: 0.95rem;
}

/* FAQ Section */
.faq {
  padding: 5rem 0;
}

.accordion-item {
  border: none;
  background-color: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-medium);
}

.accordion-item:hover {
  box-shadow: var(--shadow-md);
}

.accordion-button {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--neutral-800);
  background-color: white;
  border-radius: var(--radius-md) !important;
  padding: 1.25rem 1.5rem;
}

.accordion-button:not(.collapsed) {
  color: var(--primary-color);
  background-color: rgba(15, 89, 164, 0.05);
}

.accordion-button:focus {
  box-shadow: none;
  border-color: rgba(15, 89, 164, 0.1);
}

.accordion-body {
  padding: 1.5rem;
  color: var(--neutral-600);
}

/* Contact Section */
.contact {
  padding: 5rem 0;
  background-color: var(--neutral-100);
}

.contact-info {
  margin-bottom: 2.5rem;
}

.contact-info .icon {
  color: var(--primary-color);
  font-size: 1.25rem;
}

.contact-form {
  background-color: white;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
}

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

.form-control, .form-select {
  padding: 0.75rem 1rem;
  border: 1px solid var(--neutral-300);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 0.25rem rgba(15, 89, 164, 0.15);
}

.map {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.map img {
  width: 100%;
  height: auto;
}

/* Footer */
.footer {
  background-color: var(--neutral-800);
  color: var(--neutral-300);
  padding-top: 4rem;
  padding-bottom: 2rem;
}

.footer h3 {
  color: white;
  font-size: 1.125rem;
}

.footer p {
  color: var(--neutral-400);
}

.footer a {
  color: var(--neutral-300);
  transition: color var(--transition-fast);
}

.footer a:hover {
  color: white;
  text-decoration: none;
}

.social-links li {
  margin-bottom: 0.75rem;
}

.social-links a {
  display: inline-block;
  color: var(--neutral-300);
  font-weight: 500;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

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

hr {
  border-color: rgba(255, 255, 255, 0.1);
}

/* Modal Styles */
.modal-content {
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
}

.modal-header {
  border-bottom: 1px solid var(--neutral-200);
  padding: 1.25rem 1.5rem;
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  border-top: 1px solid var(--neutral-200);
  padding: 1.25rem 1.5rem;
}

/* Success Page */
.success-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: 2rem;
}

.success-container {
  max-width: 600px;
  padding: 3rem;
  background-color: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.success-icon {
  color: var(--tertiary-color);
  font-size: 4rem;
  margin-bottom: 2rem;
}

.success-title {
  color: var(--neutral-800);
  margin-bottom: 1rem;
}

.success-message {
  color: var(--neutral-600);
  margin-bottom: 2rem;
}

/* Privacy & Terms Pages */
.privacy-page, .terms-page {
  padding-top: 100px;
  padding-bottom: 4rem;
}

.privacy-container, .terms-container {
  max-width: 800px;
  margin: 0 auto;
}

.privacy-title, .terms-title {
  color: var(--neutral-800);
  margin-bottom: 2rem;
}

.privacy-content, .terms-content {
  color: var(--neutral-700);
}

.privacy-content h2, .terms-content h2 {
  color: var(--neutral-800);
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}

.privacy-content p, .terms-content p {
  margin-bottom: 1.5rem;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: white;
    padding: 1rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    margin-top: 1rem;
  }
  
  .hero {
    padding: 8rem 0 5rem;
  }
  
  .about .image-container {
    margin-bottom: 2rem;
  }
}

@media (max-width: 767.98px) {
  .hero {
    padding: 7rem 0 4rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.125rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .projects .card-image, 
  .webinars .card-image, 
  .team-card .card-image {
    height: 220px;
  }
  
  .contact-form {
    margin-top: 3rem;
  }
}

@media (max-width: 575.98px) {
  .hero {
    padding: 6rem 0 3rem;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .projects .card-image, 
  .webinars .card-image, 
  .team-card .card-image {
    height: 200px;
  }
  
  .timeline {
    padding-left: 1.25rem;
  }
  
  .timeline-dot {
    width: 14px;
    height: 14px;
  }
}

/* Animation Utilities */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes slideRight {
  from { transform: translateX(-20px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

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

.animate-slide-up {
  animation: slideUp 0.8s ease forwards;
}

.animate-slide-right {
  animation: slideRight 0.8s ease forwards;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

.success-container {
  margin-left: auto;
  margin-right: auto;
  margin-top: 40px;
  margin-bottom: 40px;
}