:root {
  /* Triadic color scheme */
  --primary-color: #4361EE;
  --primary-dark: #2541c9;
  --primary-light: #738bff;
  --secondary-color: #EE4343;
  --secondary-dark: #c92525;
  --secondary-light: #ff7373;
  --tertiary-color: #43EE61;
  --tertiary-dark: #25c943;
  --tertiary-light: #73ff91;

  /* Neutral colors */
  --bg-color: #f5f7fa;
  --card-bg: #ffffff;
  --text-color: #333344;
  --text-light: #666677;
  --text-dark: #111122;
  --border-color: #e0e4e8;

  /* Shadow values for neuromorphism */
  --shadow-light: rgba(255, 255, 255, 0.8);
  --shadow-dark: rgba(184, 194, 215, 0.25);
  --shadow-distance: 10px;
  --shadow-blur: 20px;
  --shadow-spread: 0;
  --inner-shadow: inset 2px 2px 5px var(--shadow-dark), inset -2px -2px 5px var(--shadow-light);

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 5rem;

  /* Typography */
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-md: 1rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 2rem;
  --font-size-3xl: 2.5rem;
  --font-size-4xl: 3rem;

  /* Border Radius */
  --border-radius-sm: 0.25rem;
  --border-radius-md: 0.5rem;
  --border-radius-lg: 1rem;
  --border-radius-xl: 2rem;

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

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

body {
  font-family: var(--font-body);
  font-size: var(--font-size-md);
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-dark);
  margin-top: 0;
}

h1 {
  font-size: clamp(var(--font-size-2xl), 5vw, var(--font-size-4xl));
}

h2 {
  font-size: clamp(var(--font-size-xl), 4vw, var(--font-size-3xl));
}

h3 {
  font-size: clamp(var(--font-size-lg), 3vw, var(--font-size-2xl));
}

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

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;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

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

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.section-header h2 {
  margin-bottom: var(--spacing-xs);
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: var(--border-radius-sm);
}

.section-header p {
  color: var(--text-light);
  font-size: var(--font-size-lg);
  max-width: 700px;
  margin: var(--spacing-md) auto;
}

/* Button Styles */
.btn, 
button, 
input[type='submit'] {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius-md);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--font-size-md);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
  outline: none;
  box-shadow: 6px 6px 12px var(--shadow-dark), -6px -6px 12px var(--shadow-light);
}

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

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

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

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

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

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

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

.tertiary-btn:hover {
  background-color: var(--tertiary-dark);
  color: white;
}

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

/* Card Styles */
.card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius-lg);
  box-shadow: 6px 6px 12px var(--shadow-dark), -6px -6px 12px var(--shadow-light);
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  margin-bottom: var(--spacing-md);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 10px 10px 20px var(--shadow-dark), -10px -10px 20px var(--shadow-light);
}

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

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

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

.card-content {
  padding: var(--spacing-md);
  width: 100%;
  text-align: center;
}

.card-content h3 {
  margin-bottom: var(--spacing-sm);
}

.card-content p {
  color: var(--text-light);
}

/* Grid layouts */
.grid {
  display: grid;
  gap: var(--spacing-md);
}

.services-grid,
.team-grid,
.case-studies-grid,
.partners-grid,
.news-grid,
.research-grid,
.resources-grid {
  display: grid;
  gap: var(--spacing-md);
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

@media (max-width: 768px) {
  .services-grid,
  .team-grid,
  .case-studies-grid,
  .partners-grid,
  .news-grid,
  .research-grid,
  .resources-grid {
    grid-template-columns: 1fr;
  }
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(245, 247, 250, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all var(--transition-normal);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-sm) 0;
}

.logo a {
  display: flex;
  align-items: center;
  color: var(--text-dark);
  font-weight: 700;
  font-size: var(--font-size-xl);
  text-decoration: none;
}

.logo h1 {
  margin: 0;
  font-size: var(--font-size-xl);
}

.desktop-nav ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}

.desktop-nav ul li {
  margin-left: var(--spacing-md);
}

.desktop-nav ul li a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
}

.desktop-nav ul li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--primary-color);
  transition: width var(--transition-normal);
}

.desktop-nav ul li a:hover {
  color: var(--primary-color);
}

.desktop-nav ul li a:hover::after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--text-dark);
  border-radius: 3px;
  transition: all var(--transition-normal);
}

.mobile-nav {
  display: none;
  padding: var(--spacing-md) 0;
}

.mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav ul li {
  margin-bottom: var(--spacing-sm);
}

.mobile-nav ul li a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
  display: block;
  padding: var(--spacing-xs) 0;
}

.mobile-nav ul li a:hover {
  color: var(--primary-color);
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .mobile-nav.active {
    display: block;
  }
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -2;
}

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

.hero-content {
  max-width: 800px;
  z-index: 1;
  animation: fadeInUp 1s ease-out;
}

.hero-content h1 {
  color: white;
  margin-bottom: var(--spacing-sm);
  font-size: clamp(var(--font-size-2xl), 6vw, var(--font-size-4xl));
}

.hero-content h2 {
  color: white;
  margin-bottom: var(--spacing-md);
  font-size: clamp(var(--font-size-lg), 4vw, var(--font-size-2xl));
  font-weight: 500;
}

.hero-content p {
  color: white;
  font-size: clamp(var(--font-size-md), 3vw, var(--font-size-lg));
  margin-bottom: var(--spacing-lg);
}

.hero-cta {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

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

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

.mission-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--spacing-lg);
}

.mission-image {
  flex: 1;
  min-width: 300px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 10px 10px 20px var(--shadow-dark), -10px -10px 20px var(--shadow-light);
}

.mission-image img {
  width: 100%;
  height: auto;
  transition: transform var(--transition-slow);
}

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

.mission-text {
  flex: 2;
  min-width: 300px;
}

.mission-text h3 {
  margin-bottom: var(--spacing-md);
  color: var(--primary-color);
}

/* Services Section */
.services {
  background-color: var(--bg-color);
  position: relative;
}

.services::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top left, var(--primary-light) 0%, transparent 30%),
              radial-gradient(circle at bottom right, var(--tertiary-light) 0%, transparent 30%);
  opacity: 0.1;
  z-index: -1;
}

/* Team Section */
.team {
  background-color: var(--bg-color);
}

.team-grid .card {
  text-align: center;
}

.team-grid .card-image {
  height: 300px;
  width: 300px;
  border-radius: 50%;
  margin: var(--spacing-md) auto 0;
  overflow: hidden;
}

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

.team-grid .position {
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: var(--spacing-sm);
}

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

.case-studies::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at bottom left, var(--secondary-light) 0%, transparent 30%),
              radial-gradient(circle at top right, var(--primary-light) 0%, transparent 30%);
  opacity: 0.1;
  z-index: -1;
}

/* Research Section */
.research {
  background-color: var(--bg-color);
}

.research-grid {
  display: grid;
  gap: var(--spacing-lg);
}

.research-item {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  align-items: center;
  background-color: var(--card-bg);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-md);
  box-shadow: 6px 6px 12px var(--shadow-dark), -6px -6px 12px var(--shadow-light);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.research-item:hover {
  transform: translateY(-5px);
  box-shadow: 10px 10px 20px var(--shadow-dark), -10px -10px 20px var(--shadow-light);
}

.research-image {
  flex: 1;
  min-width: 300px;
  border-radius: var(--border-radius-md);
  overflow: hidden;
}

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

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

.research-content {
  flex: 2;
  min-width: 300px;
}

.research-content h3 {
  margin-bottom: var(--spacing-sm);
  color: var(--primary-color);
}

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

.resource-item {
  background-color: var(--card-bg);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-md);
  box-shadow: 6px 6px 12px var(--shadow-dark), -6px -6px 12px var(--shadow-light);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.resource-item:hover {
  transform: translateY(-5px);
  box-shadow: 10px 10px 20px var(--shadow-dark), -10px -10px 20px var(--shadow-light);
}

.resource-item h3 {
  margin-bottom: var(--spacing-md);
  color: var(--primary-color);
  text-align: center;
}

.resource-item ul {
  padding-left: var(--spacing-md);
}

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

.resource-item a {
  color: var(--text-color);
  transition: color var(--transition-fast);
  text-decoration: none;
  display: inline-block;
  position: relative;
}

.resource-item a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: var(--primary-color);
  transition: width var(--transition-normal);
}

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

.resource-item a:hover::after {
  width: 100%;
}

/* News Section */
.news {
  background-color: var(--bg-color);
}

.news-grid .card-content .date {
  color: var(--text-light);
  font-size: var(--font-size-sm);
  margin-bottom: var(--spacing-sm);
}

/* Partners Section */
.partners {
  background-color: var(--bg-color);
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--spacing-md);
}

.partner-item {
  background-color: var(--card-bg);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-md);
  box-shadow: 6px 6px 12px var(--shadow-dark), -6px -6px 12px var(--shadow-light);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.partner-item:hover {
  transform: translateY(-5px);
  box-shadow: 10px 10px 20px var(--shadow-dark), -10px -10px 20px var(--shadow-light);
}

.partner-item img {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-bottom: var(--spacing-sm);
}

.partner-item h3 {
  margin: 0;
  font-size: var(--font-size-md);
}

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

.contact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, var(--tertiary-light) 0%, transparent 30%),
              radial-gradient(circle at bottom left, var(--primary-light) 0%, transparent 30%);
  opacity: 0.1;
  z-index: -1;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
}

@media (max-width: 992px) {
  .contact-content {
    grid-template-columns: 1fr;
  }
}

.contact-info {
  background-color: var(--card-bg);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-md);
  box-shadow: 6px 6px 12px var(--shadow-dark), -6px -6px 12px var(--shadow-light);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.contact-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-md);
}

.contact-item h3 {
  margin-bottom: var(--spacing-sm);
  color: var(--primary-color);
}

.map-container {
  width: 100%;
  border-radius: var(--border-radius-md);
  overflow: hidden;
}

.contact-form-container {
  background-color: var(--card-bg);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-md);
  box-shadow: 6px 6px 12px var(--shadow-dark), -6px -6px 12px var(--shadow-light);
}

.contact-form-container h3 {
  text-align: center;
  margin-bottom: var(--spacing-md);
  color: var(--primary-color);
}

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

.form-group label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  background-color: var(--bg-color);
  font-family: var(--font-body);
  font-size: var(--font-size-md);
  transition: all var(--transition-fast);
  box-shadow: var(--inner-shadow);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2), var(--inner-shadow);
}

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

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer-column h3 {
  color: white;
  margin-bottom: var(--spacing-md);
  position: relative;
  display: inline-block;
}

.footer-column h3::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-logo h2 {
  color: white;
  margin-bottom: var(--spacing-sm);
}

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

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

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

.footer-column a:hover {
  color: var(--primary-light);
}

.social-links {
  margin-top: var(--spacing-md);
}

.social-links a {
  display: inline-block;
  margin-right: var(--spacing-md);
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--transition-fast);
}

.social-links a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--font-size-sm);
}

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

.success-content {
  max-width: 600px;
  padding: var(--spacing-lg);
  background-color: var(--card-bg);
  border-radius: var(--border-radius-lg);
  box-shadow: 10px 10px 20px var(--shadow-dark), -10px -10px 20px var(--shadow-light);
  animation: fadeInUp 1s ease-out;
}

.success-content h1 {
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
}

/* Privacy and Terms Pages */
.content-page {
  padding-top: 100px;
  padding-bottom: var(--spacing-xl);
}

.content-container {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--card-bg);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-lg);
  box-shadow: 10px 10px 20px var(--shadow-dark), -10px -10px 20px var(--shadow-light);
}

.content-container h1 {
  color: var(--primary-color);
  margin-bottom: var(--spacing-lg);
  text-align: center;
}

.content-container h2 {
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
  color: var(--text-dark);
}

/* Animations */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Media Queries */
@media (max-width: 1200px) {
  :root {
    --spacing-xl: 4rem;
  }
}

@media (max-width: 992px) {
  :root {
    --spacing-xl: 3rem;
    --spacing-lg: 2.5rem;
  }
  
  .mission-content {
    flex-direction: column;
  }
  
  .mission-image, .mission-text {
    width: 100%;
  }
}

@media (max-width: 768px) {
  :root {
    --spacing-lg: 2rem;
    --spacing-md: 1.5rem;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-cta .btn {
    width: 100%;
    text-align: center;
  }
  
  .research-item {
    flex-direction: column;
  }
  
  .research-image, .research-content {
    width: 100%;
  }
}

@media (max-width: 576px) {
  :root {
    --spacing-md: 1.25rem;
    --spacing-sm: 0.75rem;
  }
  
  .section-header h2 {
    font-size: var(--font-size-xl);
  }
  
  .section-header p {
    font-size: var(--font-size-md);
  }
}