:root {
  /* Primary colors - Split complementary scheme */
  --primary-color: #5141E2; /* Vibrant purple */
  --primary-dark: #3927A7;
  --primary-light: #8074FF;
  --secondary-color: #E25B41; /* Orange-red complementary */
  --secondary-dark: #B3452F;
  --secondary-light: #FF8E74;
  --accent-color: #41E279; /* Green - split complement */
  --accent-dark: #2FA75B;
  --accent-light: #74FFA8;

  /* Neutral colors */
  --neutral-dark: #1A1A2E;
  --neutral-medium: #4A4A6A;
  --neutral-light: #7C7C9C;
  --neutral-lighter: #E5E5F0;
  --white: #FFFFFF;
  --black: #000000;

  /* Typography */
  --heading-font: 'Space Grotesk', sans-serif;
  --body-font: 'DM Sans', sans-serif;
  --h1-size: clamp(2.5rem, 5vw, 3.5rem);
  --h2-size: clamp(2rem, 4vw, 2.8rem);
  --h3-size: clamp(1.5rem, 3vw, 2rem);
  --h4-size: clamp(1.25rem, 2vw, 1.5rem);
  --body-size: 1rem;
  --small-size: 0.875rem;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Border radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-full: 50%;
}

/* Base styles */
html {
  scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
}

h1 {
  font-size: var(--h1-size);
}

h2 {
  font-size: var(--h2-size);
}

h3 {
  font-size: var(--h3-size);
}

h4 {
  font-size: var(--h4-size);
}

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

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

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

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

/* Button styles */
.btn, 
button, 
input[type="submit"] {
  display: inline-block;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.5rem 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: var(--radius-md);
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  z-index: -1;
  transition: width 0.3s ease;
}

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

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

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
  background-color: var(--secondary-dark);
  border-color: var(--secondary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

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

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

.btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

section {
  padding: var(--space-lg) 0;
}

/* Header & Navigation */
header {
  background-color: var(--white);
  transition: all var(--transition-medium);
}

.navbar {
  padding: var(--space-sm) 0;
}

.navbar-brand h1 {
  margin-bottom: 0;
  font-size: 1.5rem;
  color: var(--primary-color);
}

.nav-link {
  font-weight: 500;
  color: var(--neutral-dark);
  position: relative;
  padding: 0.5rem 1rem !important;
  margin: 0 0.25rem;
}

.nav-link:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: all var(--transition-medium);
  transform: translateX(-50%);
}

.nav-link:hover:after {
  width: 80%;
}

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

/* Hero Section */
#hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding-top: 80px; /* Account for fixed header */
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

#hero h1 {
  margin-bottom: var(--space-md);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

#hero p {
  font-size: 1.25rem;
  max-width: 800px;
  margin: 0 auto var(--space-md);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Services/Courses Section */
.card {
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

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

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

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

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

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

.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: var(--space-md);
}

.card-footer {
  border-top: none;
  background: transparent;
  padding: var(--space-sm) var(--space-md);
  margin-top: auto;
}

.form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Methodology Section */
.accordion-button {
  font-weight: 600;
  padding: var(--space-md);
}

.accordion-button:not(.collapsed) {
  color: var(--primary-color);
  background-color: rgba(81, 65, 226, 0.05);
  box-shadow: none;
}

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

/* Team Section */
.team-member img {
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
  transition: transform var(--transition-medium);
}

.team-member:hover img {
  transform: scale(1.02);
}

/* Resources Section */
#resources .card {
  background-color: var(--white);
  border: none;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-medium);
}

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

#resources .card-body {
  padding: var(--space-md);
}

/* Projects Section */
#projects .card {
  overflow: hidden;
}

#projects .image-container {
  height: 250px;
}

#projects .badge {
  font-size: 0.8rem;
  padding: 0.4rem 0.6rem;
}

/* Testimonials Section */
#testimonials {
  background-color: var(--neutral-lighter);
}

#testimonials .card {
  padding: var(--space-md);
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

#testimonials .rounded-circle {
  border: 3px solid var(--primary-light);
  box-shadow: var(--shadow-sm);
}

#testimonials .bi-star-fill,
#testimonials .bi-star-half {
  color: #FFD700;
}

/* Careers Section */
#careers .card {
  height: 100%;
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-medium);
}

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

#careers .bi-check-circle-fill {
  font-size: 1.2rem;
}

/* Contact Section */
#contact .card {
  border: none;
  border-radius: var(--radius-md);
  height: 100%;
}

#contact .bg-primary {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
}

#contact .form-control,
#contact .form-select {
  padding: 0.75rem;
  border-color: var(--neutral-lighter);
  transition: all var(--transition-fast);
}

#contact .form-control:focus,
#contact .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(81, 65, 226, 0.1);
}

/* Footer */
footer {
  background-color: var(--neutral-dark);
  color: var(--white);
  padding: var(--space-lg) 0 var(--space-md);
}

footer a {
  color: var(--white);
  transition: color var(--transition-fast);
}

footer a:hover {
  color: var(--primary-light);
  text-decoration: none;
}

footer h3 {
  margin-bottom: var(--space-sm);
  color: var(--white);
}

footer .input-group .form-control {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

footer .input-group .btn {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

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

/* Cookie Consent */
#cookie-consent {
  background-color: rgba(26, 26, 46, 0.95);
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Success Page */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-md);
}

.success-page .card {
  max-width: 600px;
  margin: 0 auto;
  padding: var(--space-lg);
  box-shadow: var(--shadow-lg);
  border: none;
}

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

/* Privacy and Terms Pages */
.privacy-page,
.terms-page {
  padding-top: 100px;
  padding-bottom: var(--space-lg);
}

.privacy-page h1,
.terms-page h1 {
  margin-bottom: var(--space-md);
}

.privacy-page h2,
.terms-page h2 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

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

@keyframes morphing {
  0% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
  50% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
  }
  100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
}

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

.morph-shape {
  animation: morphing 8s ease-in-out infinite;
}

/* Utilities */
.text-primary {
  color: var(--primary-color) !important;
}

.text-secondary {
  color: var(--secondary-color) !important;
}

.text-accent {
  color: var(--accent-color) !important;
}

.bg-primary {
  background-color: var(--primary-color) !important;
}

.bg-secondary {
  background-color: var(--secondary-color) !important;
}

.bg-accent {
  background-color: var(--accent-color) !important;
}

.bg-light {
  background-color: var(--neutral-lighter) !important;
}

.bg-dark {
  background-color: var(--neutral-dark) !important;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  :root {
    --h1-size: clamp(2rem, 4vw, 3rem);
    --h2-size: clamp(1.8rem, 3vw, 2.5rem);
    --h3-size: clamp(1.3rem, 2.5vw, 1.8rem);
    --h4-size: clamp(1.1rem, 2vw, 1.3rem);
  }
  
  .navbar-collapse {
    background-color: var(--white);
    padding: var(--space-sm);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
  }
  
  .nav-link {
    padding: var(--space-sm) !important;
  }
  
  #hero {
    text-align: center;
  }
}

@media (max-width: 768px) {
  section {
    padding: var(--space-md) 0;
  }
  
  .card {
    margin-bottom: var(--space-md);
  }
}

@media (max-width: 576px) {
  :root {
    --space-md: 1.5rem;
    --space-lg: 3rem;
  }
  
  .btn {
    display: block;
    width: 100%;
    margin-bottom: var(--space-xs);
  }
  
  .d-flex.justify-content-center.gap-3 {
    flex-direction: column;
  }
}

/* Print styles */
@media print {
  header,
  footer,
  #contact,
  .btn {
    display: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
    background: #fff;
  }
  
  a {
    text-decoration: underline;
    color: #000;
  }
}