:root {
  /* Color Palette */
  --primary-color: #5b86e5;
  --primary-dark: #36589e;
  --primary-light: #c1d3fe;
  
  --secondary-color: #f9c270;
  --secondary-dark: #e6a43e;
  --secondary-light: #ffefd0;
  
  --accent-color: #7bc9a0;
  --accent-dark: #4a9d74;
  --accent-light: #d6f0e3;
  
  --dark-color: #2d3748;
  --dark-light: #4a5568;
  
  --light-color: #f8f9fa;
  --light-dark: #e9ecef;
  
  --success-color: #48bb78;
  --danger-color: #e53e3e;
  --warning-color: #f6ad55;
  --info-color: #4299e1;
  
  /* Gradients */
  --primary-gradient: linear-gradient(135deg, var(--primary-color), #8e70f9);
  --secondary-gradient: linear-gradient(135deg, var(--secondary-color), #ffaa5a);
  --accent-gradient: linear-gradient(135deg, var(--accent-color), #50c9c3);
  
  /* Overlay */
  --overlay-dark: rgba(0, 0, 0, 0.5);
  --overlay-light: rgba(255, 255, 255, 0.8);
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 4rem;
  
  /* Border Radius */
  --border-radius-sm: 0.25rem;
  --border-radius: 0.5rem;
  --border-radius-lg: 1rem;
  --border-radius-xl: 2rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1), 0 5px 10px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.1), 0 10px 20px rgba(0, 0, 0, 0.05);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Animation Timing */
  --animation-timing: cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'DM Sans', sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
  background-color: var(--light-color);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.5rem;
}

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

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

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

.section-title {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  position: relative;
  color: var(--dark-color);
}

.section-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--dark-light);
}

html {
  overflow-x: hidden;
}

.min-vh-80 {
  min-height: 80vh;
}

/* Button Styles */
.btn, 
button, 
input[type='submit'] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  vertical-align: middle;
  border: 1px solid transparent;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

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

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

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

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

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

.btn-outline-light:hover, 
.btn-outline-light:focus {
  color: var(--dark-color);
  background-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);
}

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

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

/* Header Styles */
.header {
  box-shadow: var(--shadow);
  background-color: var(--light-color);
}

.navbar {
  padding: 1rem 0;
}

.navbar-brand img {
  max-height: 50px;
}

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

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

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

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

/* Hero Section */
.hero-section {
  position: relative;
  padding: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: white;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, var(--overlay-dark), rgba(0, 0, 0, 0.3));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 4rem 1rem;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s var(--animation-timing) both;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  animation: fadeInUp 1s var(--animation-timing) 0.2s both;
}

.hero-content .btn {
  animation: fadeInUp 1s var(--animation-timing) 0.4s both;
}

/* Statistics Section */
.statistics-section {
  background-color: var(--light-color);
  padding: 5rem 0;
}

.stat-card {
  padding: 2rem;
  text-align: center;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  height: 100%;
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.stat-icon {
  margin-bottom: 1.5rem;
}

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

.stat-text {
  font-size: 1rem;
  color: var(--dark-light);
}

.graph-card {
  padding: 2rem;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  height: 100%;
}

.graph-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--dark-color);
}

.graph-container {
  margin-bottom: 1.5rem;
  text-align: center;
}

.graph-description {
  font-size: 0.95rem;
  color: var(--dark-light);
}

/* Innovation Section */
.innovation-section {
  padding: 5rem 0;
  background-color: var(--light-dark);
}

.innovation-content {
  padding: 2rem;
  height: 100%;
}

.innovation-content h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.innovation-image {
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

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

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

/* Portfolio Section */
.portfolio-section {
  padding: 5rem 0;
  background-color: var(--light-color);
}

.portfolio-card {
  height: 100%;
  overflow: hidden;
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

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

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

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

.card-content {
  padding: 1.5rem;
  flex-grow: 1;
  text-align: center;
}

.card-content h4 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

.card-content p {
  font-size: 0.95rem;
  color: var(--dark-light);
  margin-bottom: 1.5rem;
}

/* Team Section */
.team-section {
  padding: 5rem 0;
  background-color: var(--light-dark);
}

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

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

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

.team-position {
  font-size: 1rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.team-social {
  margin-top: 1rem;
}

.team-social .social-link {
  display: inline-block;
  margin-right: 1rem;
  color: var(--primary-color);
  font-weight: 500;
  transition: color var(--transition);
}

.team-social .social-link:hover {
  color: var(--primary-dark);
}

/* Resources Section */
.resources-section {
  padding: 5rem 0;
  background-color: var(--light-color);
}

.resource-card {
  height: 100%;
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  overflow: hidden;
}

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

.resource-card .card-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

.resource-card .card-text {
  font-size: 0.95rem;
  color: var(--dark-light);
  margin-bottom: 1.5rem;
}

/* FAQ Section */
.faq-section {
  padding: 5rem 0;
  background-color: var(--light-dark);
}

.accordion-item {
  border: none;
  background-color: transparent;
  margin-bottom: 1rem;
}

.accordion-button {
  background-color: white;
  box-shadow: var(--shadow-sm);
  border-radius: var(--border-radius) !important;
  font-weight: 600;
  color: var(--dark-color);
  padding: 1.25rem;
}

.accordion-button:not(.collapsed) {
  color: var(--primary-color);
  background-color: white;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: transparent;
}

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

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

.contact-info {
  padding: 2rem;
  height: 100%;
}

.contact-info h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--dark-color);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.contact-list li {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.contact-list li i {
  margin-right: 1rem;
  color: var(--primary-color);
}

.contact-social {
  margin-top: 2rem;
}

.contact-social .social-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--light-dark);
  color: var(--dark-color);
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: background-color var(--transition), color var(--transition);
}

.contact-social .social-link:hover {
  background-color: var(--primary-color);
  color: white;
}

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

.contact-form-container h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--dark-color);
}

.contact-form .form-control,
.contact-form .form-select {
  padding: 0.75rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--light-dark);
  transition: border-color var(--transition), box-shadow var(--transition);
}

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

/* Footer */
.footer {
  padding-top: 5rem;
  padding-bottom: 2rem;
  background-color: var(--dark-color);
  color: white;
}

.footer-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: white;
}

.footer p {
  color: rgba(255, 255, 255, 0.7);
}

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

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition);
}

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

.footer-social .social-link {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition);
  text-decoration: none;
}

.footer-social .social-link:hover {
  color: white;
}

.footer-form .form-control {
  background-color: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
}

.footer-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.footer hr {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 2rem 0;
}

.copyright {
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0;
}

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: white;
  box-shadow: var(--shadow-lg);
  padding: 1rem;
  z-index: 1000;
  display: none;
}

.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.cookie-content p {
  margin-bottom: 0;
  margin-right: 1rem;
}

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

.success-content {
  max-width: 600px;
}

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

/* Privacy & Terms Pages */
.content-page {
  padding-top: 100px;
  padding-bottom: 5rem;
}

.content-page .container {
  max-width: 800px;
}

.content-page h1 {
  margin-bottom: 2rem;
}

.content-page h2 {
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 40px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

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

.animate-fadeIn {
  animation: fadeIn 1s var(--animation-timing) both;
}

.animate-fadeInUp {
  animation: fadeInUp 1s var(--animation-timing) both;
}

/* Media Queries */
@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .nav-link {
    margin-left: 0;
    padding: 0.5rem;
  }
  
  .nav-link::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-content p {
    margin-right: 0;
    margin-bottom: 1rem;
  }
}

@media (max-width: 576px) {
  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
  
  .contact-social .social-link {
    display: block;
    margin-bottom: 0.5rem;
  }
}