:root {
  /* Color palette */
  --primary: #212529;
  --primary-light: #343a40;
  --primary-dark: #121416;
  --secondary: #495057;
  --light: #f8f9fa;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;
  --dark: #212529;
  --white: #ffffff;
  --black: #000000;
  
  /* Shadows */
  --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
  
  /* Typography */
  --font-family-heading: 'Manrope', sans-serif;
  --font-family-body: 'Rubik', sans-serif;
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Border radius */
  --border-radius-sm: 0.25rem;
  --border-radius: 0.5rem;
  --border-radius-lg: 1rem;
  --border-radius-xl: 2rem;
  --border-radius-blob: 40% 60% 70% 30% / 40% 50% 60% 50%;
}

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

body {
  font-family: var(--font-family-body);
  color: var(--gray-800);
  line-height: 1.7;
  overflow-x: hidden;
  background-color: var(--white);
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-family: var(--font-family-heading);
  font-weight: var(--font-weight-bold);
  margin-bottom: 1rem;
  line-height: 1.2;
}

p {
  margin-bottom: 1.5rem;
}

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

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

section {
  position: relative;
  padding: 5rem 0;
}

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

/* Buttons */
.btn {
  font-family: var(--font-family-heading);
  font-weight: var(--font-weight-medium);
  border-radius: var(--border-radius);
  padding: 0.75rem 1.5rem;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background-color: rgba(255, 255, 255, 0.1);
  transition: height var(--transition-normal);
  z-index: -1;
}

.btn:hover::after {
  height: 100%;
}

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

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

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

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

.btn-light:hover {
  background-color: var(--gray-200);
  border-color: var(--gray-200);
  color: var(--primary-dark);
}

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

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

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

header.scrolled {
  background-color: var(--white);
  box-shadow: var(--shadow);
}

.navbar {
  padding: 1rem 0;
}

.navbar-brand h1 {
  margin-bottom: 0;
}

.navbar-nav .nav-link {
  position: relative;
  margin-left: 1rem;
  padding: 0.5rem 0;
  font-weight: var(--font-weight-medium);
  color: var(--primary);
}

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

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

.navbar-nav .nav-link.btn {
  padding: 0.5rem 1.5rem;
}

.navbar-nav .nav-link.btn::after {
  display: none;
}

/* Hero Section */
#hero {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

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

/* Statistics Section */
#statistics .card {
  border-radius: var(--border-radius-lg);
  transition: transform var(--transition-normal);
}

#statistics .card:hover {
  transform: translateY(-10px);
}

#statistics .display-4 {
  font-weight: var(--font-weight-bold);
}

/* Vision Section */
#vision .rounded-4 {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
}

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

#vision .position-relative:hover img {
  transform: scale(1.05);
}

#vision .rounded-circle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Community Section */
#community .card {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

#community .card-image {
  overflow: hidden;
  height: 250px;
}

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

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

/* Awards Section */
#awards {
  color: var(--white);
}

#awards .card {
  transition: transform var(--transition-normal);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#awards .card:hover {
  transform: translateY(-10px);
}

#awards .card-image {
  margin-bottom: 1.5rem;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#awards .card-image img {
  max-height: 100%;
  margin: 0 auto;
}

/* Testimonial Carousel */
.testimonial {
  text-align: center;
}

.carousel-control-prev, 
.carousel-control-next {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}

.carousel-control-prev {
  left: -50px;
}

.carousel-control-next {
  right: -50px;
}

/* Resources Section */
#resources .card {
  border-radius: var(--border-radius-lg);
  height: 100%;
  transition: transform var(--transition-normal);
}

#resources .card:hover {
  transform: translateY(-10px);
}

#resources .rounded-circle {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Contact Section */
#contact .card {
  border-radius: var(--border-radius-lg);
}

#contact .rounded-circle {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#contact form .form-control {
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius);
}

#contact form .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.25rem rgba(33, 37, 41, 0.1);
}

/* Footer */
footer {
  padding: 5rem 0 2rem;
}

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

footer a:hover {
  color: var(--gray-400);
}

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

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

footer .form-control:focus {
  background-color: rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

/* Biomorphic Shapes */
.shape-blob {
  animation: morphing 15s ease-in-out infinite;
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: var(--border-radius-blob);
  position: absolute;
  transition: all var(--transition-slow);
}

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

/* Cookie Consent */
.cookie-consent {
  background-color: rgba(0, 0, 0, 0.9);
  color: var(--white);
  position: fixed;
  bottom: 0;
  width: 100%;
  padding: 1rem 0;
  z-index: 9999;
}

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

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

/* Utilities */
.rounded-4 {
  border-radius: var(--border-radius-lg);
}

.overflow-hidden {
  overflow: hidden;
}

/* Parallax Effect */
.parallax {
  transform: translateZ(0);
  transition: transform var(--transition-slow);
}

.parallax-slow {
  transform: translateY(var(--parallax-offset, 0));
}

/* Social Links */
.social-link {
  transition: opacity var(--transition-fast);
  font-weight: var(--font-weight-medium);
  margin-right: 1rem;
}

.social-link:hover {
  opacity: 0.8;
}

/* Media Queries */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: var(--white);
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-top: 1rem;
  }
  
  .navbar-nav .nav-link {
    margin-left: 0;
    padding: 0.5rem;
  }
  
  .navbar-nav .nav-link::after {
    display: none;
  }
  
  #hero {
    min-height: 100vh;
  }
  
  .carousel-control-prev, .carousel-control-next {
    display: none;
  }
}

@media (max-width: 767.98px) {
  section {
    padding: 3rem 0;
  }
  
  #hero {
    padding: 0;
  }
  
  .display-3 {
    font-size: 2.5rem;
  }
  
  .display-4 {
    font-size: 2rem;
  }
  
  .display-5 {
    font-size: 1.5rem;
  }
  
  .lead {
    font-size: 1rem;
  }
}

/* Animation for elements */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-normal), transform var(--transition-normal);
}

.fade-in.active {
  opacity: 1;
  transform: translateY(0);
}

/* Card containers with images */
.card-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card-image-container {
  height: 200px;
  width: 100%;
  overflow: hidden;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

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

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

/* Success page styles */
.success-content {
  text-align: center;
  max-width: 600px;
  padding: 3rem;
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}

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

/* Read more links */
.read-more {
  display: inline-flex;
  align-items: center;
  font-weight: var(--font-weight-medium);
  color: var(--primary);
  margin-top: 1rem;
}

.read-more:after {
  content: '→';
  margin-left: 0.5rem;
  transition: transform var(--transition-fast);
}

.read-more:hover:after {
  transform: translateX(5px);
}

/* Item cards with centered content */
.item, .testimonial, .team-member, .product-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Fix for images in cards */
.card img {
  margin: 0 auto;
}