:root {
  /* Color scheme variables */
  --primary-color: #a68bd5; /* Pastel Purple */
  --primary-dark: #8065b0;
  --secondary-color: #f9c6d3; /* Pastel Pink */
  --secondary-dark: #e5a1b3;
  --tertiary-color: #b8e0d2; /* Pastel Mint */
  --tertiary-dark: #95c7b5;
  --accent-color: #ffd699; /* Pastel Orange */
  --accent-dark: #e5bf86;
  --background-light: #f9f9f9;
  --background-alt: #f2f2f7;
  --text-dark: #333333;
  --text-medium: #555555;
  --text-light: #777777;
  --white: #ffffff;
  --shadow: rgba(0, 0, 0, 0.08);
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  --gradient-overlay: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
  
  /* Border radius for biomorphic design */
  --radius-small: 8px;
  --radius-medium: 16px;
  --radius-large: 24px;
  
  /* Animation timing */
  --transition-fast: 0.3s ease;
  --transition-medium: 0.5s ease;
  --transition-slow: 0.8s ease;
}

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

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

h1, h2, h3, h4, h5, h6, .title, .subtitle {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: var(--text-dark);
}

p {
  margin-bottom: 1.5rem;
  color: var(--text-medium);
}

/* Navigation styles */
.navbar {
  transition: background-color var(--transition-fast);
  padding: 0.5rem 0;
  background-color: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 2px 10px var(--shadow);
}

.navbar-item {
  color: var(--text-dark);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.navbar-item:hover {
  color: var(--primary-color) !important;
  background-color: transparent !important;
}

.navbar-burger {
  color: var(--text-dark);
}

/* Hero section styles */
.hero {
  position: relative;
  overflow: hidden;
}

.hero.is-fullheight {
  min-height: 100vh;
}

.parallax-bg {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

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

.hero .title,
.hero .subtitle,
.hero p {
  color: var(--white) !important;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Button styles */
.button {
  border-radius: var(--radius-small);
  font-weight: 500;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 6px var(--shadow);
}

.button.is-primary {
  background-color: var(--primary-color);
  border-color: transparent;
}

.button.is-primary:hover,
.button.is-primary:focus {
  background-color: var(--primary-dark);
  border-color: transparent;
}

.button.is-primary.is-outlined {
  background-color: transparent;
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.button.is-primary.is-outlined:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

.button.is-rounded {
  border-radius: 2rem;
}

/* Section styles */
.section {
  padding: 5rem 1.5rem;
}

.section:nth-child(even) {
  background-color: var(--background-alt);
}

.title.is-2 {
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
}

.title.is-2:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--primary-color);
  border-radius: var(--radius-small);
}

/* Card styles */
.card {
  border-radius: var(--radius-medium);
  overflow: hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  margin-bottom: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 8px 16px var(--shadow);
}

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

.card-image {
  width: 100%;
  position: relative;
  overflow: hidden;
}

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

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

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

.card .title {
  color: var(--text-dark);
  margin-bottom: 1rem;
}

/* Timeline styles */
.timeline {
  position: relative;
  margin: 2rem auto;
  padding: 2rem 0;
}

.timeline:before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background: var(--primary-color);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  padding: 0 2rem;
}

.timeline-marker {
  position: absolute;
  top: 0;
  left: 50%;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary-color);
  transform: translateX(-50%);
  z-index: 2;
  box-shadow: 0 0 0 4px var(--background-light);
}

.timeline-content {
  position: relative;
  width: 45%;
  margin-left: auto;
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--radius-medium);
  box-shadow: 0 4px 8px var(--shadow);
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: 0;
  margin-right: auto;
}

.timeline-content .heading {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Carousel styles */
.carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 2rem 0;
}

.carousel-content {
  display: flex;
  justify-content: center;
}

.carousel-item {
  width: 100%;
  padding: 0 1rem;
  display: none;
}

.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 5px var(--shadow);
  transition: background var(--transition-fast);
  z-index: 10;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: var(--primary-color);
  color: var(--white);
}

.carousel-prev {
  left: 10px;
}

.carousel-next {
  right: 10px;
}

/* Form styles */
.input,
.textarea,
.select select {
  border-radius: var(--radius-small);
  border: 1px solid #ddd;
  box-shadow: none;
  transition: border var(--transition-fast);
}

.input:focus,
.textarea:focus,
.select select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(166, 139, 213, 0.2);
}

.select:after {
  border-color: var(--primary-color) !important;
}

.label {
  color: var(--text-dark);
  font-weight: 500;
}

/* Box styles */
.box {
  border-radius: var(--radius-medium);
  box-shadow: 0 6px 12px var(--shadow);
  transition: transform var(--transition-fast);
}

.box:hover {
  transform: translateY(-5px);
}

/* Footer styles */
.footer {
  background-color: var(--text-dark);
  color: var(--white);
  padding: 4rem 1.5rem 2rem;
}

.footer .title {
  color: var(--white);
}

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

.footer ul li {
  margin-bottom: 0.5rem;
}

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

.footer a:hover {
  color: var(--white);
  text-decoration: underline;
}

.social-links {
  display: flex;
  flex-direction: column;
}

.social-links a {
  margin-bottom: 0.5rem;
}

/* Image styles */
.image {
  overflow: hidden;
  border-radius: var(--radius-small);
}

.image img {
  transition: transform var(--transition-medium);
}

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

/* Press section styles */
.media {
  align-items: center;
}

.media-left {
  margin-right: 1.5rem;
}

/* About and Mission section styles */
.content ul {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.content ul li {
  margin-bottom: 0.5rem;
}

/* Utility classes */
.has-text-centered {
  text-align: center;
}

.mb-6 {
  margin-bottom: 3rem !important;
}

.mt-5 {
  margin-top: 2.5rem !important;
}

.mt-6 {
  margin-top: 3rem !important;
}

.info-block {
  background-color: rgba(184, 224, 210, 0.2);
  padding: 1.5rem;
  border-radius: var(--radius-medium);
  border-left: 4px solid var(--tertiary-color);
}

/* ScrollReveal animations */
.reveal {
  visibility: hidden;
}

/* Cookie popup styles */
#cookiePopup {
  transition: opacity var(--transition-medium);
}

#acceptCookies {
  transition: background-color var(--transition-fast);
}

#acceptCookies:hover {
  background-color: var(--primary-dark);
}

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

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

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

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

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

/* Read more links */
.read-more {
  color: var(--primary-color);
  font-weight: 500;
  position: relative;
  transition: color var(--transition-fast);
}

.read-more:after {
  content: '→';
  margin-left: 5px;
  transition: transform var(--transition-fast);
  display: inline-block;
}

.read-more:hover {
  color: var(--primary-dark);
}

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

/* Responsive adjustments */
@media screen and (max-width: 1023px) {
  .timeline:before {
    left: 30px;
  }
  
  .timeline-marker {
    left: 30px;
  }
  
  .timeline-content {
    width: calc(100% - 80px);
    margin-left: 80px !important;
  }
  
  .timeline-item:nth-child(even) .timeline-content {
    margin-right: 0;
  }
}

@media screen and (max-width: 768px) {
  .section {
    padding: 3rem 1rem;
  }
  
  .navbar-menu {
    background-color: var(--white);
    box-shadow: 0 8px 16px var(--shadow);
  }
  
  .navbar-menu.is-active {
    display: block;
  }
  
  .hero .title {
    font-size: 2.5rem !important;
  }
  
  .hero .subtitle {
    font-size: 1.5rem !important;
  }
  
  .carousel-prev,
  .carousel-next {
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }
}

/* Additional biomorphic styling */
.bio-shape {
  position: absolute;
  border-radius: 50%;
  background: var(--primary-color);
  opacity: 0.1;
  z-index: -1;
}

.bio-shape-1 {
  width: 300px;
  height: 300px;
  top: -150px;
  right: -100px;
  border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%;
}

.bio-shape-2 {
  width: 200px;
  height: 200px;
  bottom: -100px;
  left: -50px;
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}

/* Background image overlay to ensure text readability */
[style*="background-image"] {
  position: relative;
}

[style*="background-image"]::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: var(--gradient-overlay);
  z-index: 1;
}

/* Ensure content is always above the overlay */
[style*="background-image"] > * {
  position: relative;
  z-index: 2;
}