:root {
  /* Primary colors */
  --primary-color: #4a90e2;
  --primary-dark: #3a75c4;
  --primary-light: #72aefd;
  
  /* Secondary/accent colors */
  --accent-color: #ff6b6b;
  --accent-dark: #e45a5a;
  --accent-light: #ff8e8e;
  
  /* Neutral colors */
  --neutral-100: #ffffff;
  --neutral-200: #f8f9fa;
  --neutral-300: #e9ecef;
  --neutral-400: #ced4da;
  --neutral-500: #adb5bd;
  --neutral-600: #6c757d;
  --neutral-700: #495057;
  --neutral-800: #343a40;
  --neutral-900: #212529;
  
  /* Typography */
  --heading-font: 'Manrope', sans-serif;
  --body-font: 'Rubik', sans-serif;
  
  /* 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.1);
  
  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-round: 50%;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-xxl: 5rem;
  
  /* Container max widths */
  --container-max-width: 1200px;
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  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-fast);
}

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

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

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

.text-white {
  color: var(--neutral-100) !important;
}

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

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

.mb-0 {
  margin-bottom: 0 !important;
}

.mb-2 {
  margin-bottom: var(--space-sm) !important;
}

.mb-4 {
  margin-bottom: var(--space-md) !important;
}

.mb-6 {
  margin-bottom: var(--space-lg) !important;
}

.mt-4 {
  margin-top: var(--space-md) !important;
}

.mt-6 {
  margin-top: var(--space-lg) !important;
}

.py-6 {
  padding-top: var(--space-lg) !important;
  padding-bottom: var(--space-lg) !important;
}

/* Buttons */
.button {
  transition: all var(--transition-normal);
  font-weight: 500;
  letter-spacing: 0.5px;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

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

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

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

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

/* Header/Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar {
  min-height: 70px;
}

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

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

.navbar-burger {
  height: 70px;
}

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

.hero-body {
  position: relative;
  z-index: 2;
  padding: var(--space-xxl) var(--space-md);
}

.hero .title,
.hero .subtitle,
.hero p {
  color: white !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero .buttons {
  margin-top: var(--space-lg);
}

/* Statistics section */
.statistics-section {
  background-color: var(--neutral-200);
  padding: var(--space-xl) 0;
}

.stat-box {
  background-color: var(--neutral-100);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal);
  height: 100%;
}

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

.stat-box .icon {
  margin-bottom: var(--space-md);
  color: var(--primary-color);
}

.counter {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: var(--space-sm);
}

/* History section */
.history-section {
  padding: var(--space-xl) 0;
}

.history-section .image-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.history-section img {
  transition: transform var(--transition-slow);
  width: 100%;
  height: 400px;
  object-fit: cover;
}

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

/* Portfolio/Services section */
.portfolio-section {
  padding: var(--space-xl) 0;
}

.card {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

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

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

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

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

.card .title {
  margin-bottom: var(--space-md);
}

/* External resources section */
.external-resources-section {
  padding: var(--space-xl) 0;
}

.resource-box {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal);
  height: 100%;
}

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

.resource-box a {
  color: var(--primary-color);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.resource-box a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Pricing section */
.pricing-section {
  padding: var(--space-xl) 0;
}

.pricing-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal);
  background-color: var(--neutral-100);
  height: 100%;
  position: relative;
  border: 1px solid var(--neutral-300);
  display: flex;
  flex-direction: column;
}

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

.pricing-card.is-featured {
  border-color: var(--primary-color);
  transform: scale(1.05);
  z-index: 1;
}

.pricing-card.is-featured:hover {
  transform: scale(1.05) translateY(-10px);
}

.ribbon {
  position: absolute;
  top: 20px;
  right: -30px;
  transform: rotate(45deg);
  width: 150px;
  background-color: var(--accent-color);
  color: white;
  text-align: center;
  line-height: 30px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.pricing-header {
  background-color: var(--neutral-200);
  padding: var(--space-lg);
  text-align: center;
  border-bottom: 1px solid var(--neutral-300);
}

.price {
  margin: var(--space-md) 0;
}

.currency {
  font-size: 1.5rem;
  font-weight: 600;
  vertical-align: top;
  position: relative;
  top: 0.6rem;
}

.amount {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.period {
  font-size: 1rem;
  color: var(--neutral-600);
}

.pricing-features {
  padding: var(--space-lg);
  flex: 1;
}

.pricing-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pricing-features li {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--neutral-300);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features i {
  margin-right: var(--space-sm);
  color: var(--primary-color);
}

.pricing-features .disabled {
  color: var(--neutral-500);
}

.pricing-features .disabled i {
  color: var(--neutral-500);
}

.pricing-footer {
  padding: var(--space-lg);
  text-align: center;
}

/* Success Stories/Testimonials section */
.success-stories-section {
  padding: var(--space-xl) 0;
}

.testimonial-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.testimonial-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto var(--space-md);
  border: 3px solid var(--primary-color);
}

.testimonial-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: var(--space-md);
  position: relative;
}

.testimonial-text::before {
  content: '"';
  font-size: 3rem;
  position: absolute;
  top: -20px;
  left: -10px;
  color: var(--neutral-300);
  font-family: var(--heading-font);
  opacity: 0.5;
}

.testimonial-author {
  margin-bottom: var(--space-sm);
  text-align: center;
}

.testimonial-author .name {
  font-weight: 600;
  margin-bottom: 0;
}

.testimonial-author .position {
  color: var(--neutral-600);
  font-size: 0.9rem;
}

.testimonial-rating {
  color: #FFD700;
  text-align: center;
}

/* Events section */
.events-section {
  padding: var(--space-xl) 0;
}

.event-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.event-date {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  text-align: center;
  margin-bottom: var(--space-md);
}

.event-date .day {
  font-size: 1.5rem;
  font-weight: 700;
  display: block;
}

.event-date .month {
  font-size: 0.9rem;
  text-transform: uppercase;
}

.event-details {
  margin-top: var(--space-md);
}

.event-details p {
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
}

.event-details i {
  margin-right: var(--space-sm);
  color: var(--primary-color);
}

/* Blog section */
.blog-section {
  padding: var(--space-xl) 0;
}

.blog-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.blog-date {
  color: var(--neutral-600);
  font-size: 0.9rem;
  margin-bottom: var(--space-sm);
}

.blog-excerpt {
  margin-bottom: var(--space-md);
}

.blog-card .button {
  align-self: flex-start;
}

/* Contact section */
.contact-section {
  padding: var(--space-xl) 0;
}

.contact-info {
  margin-bottom: var(--space-lg);
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-md);
}

.contact-item .icon {
  margin-right: var(--space-md);
  color: var(--primary-color);
  font-size: 1.5rem;
}

.contact-item p {
  margin-bottom: 0;
}

.social-links {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--neutral-200);
  color: var(--primary-color);
  transition: all var(--transition-normal);
}

.social-link:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

.contact-form-container {
  background-color: var(--neutral-100);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
}

.contact-form .input,
.contact-form .textarea,
.contact-form .select select {
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  border-color: var(--neutral-400);
}

.contact-form .input:focus,
.contact-form .textarea:focus,
.contact-form .select select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

.contact-form .checkbox a {
  text-decoration: underline;
}

/* Footer */
.footer {
  background-color: var(--neutral-800);
  color: var(--neutral-300);
  padding: var(--space-xl) 0 var(--space-md);
}

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

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

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-links a {
  color: var(--neutral-400);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--neutral-100);
}

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

.footer .social-links a {
  color: var(--neutral-300);
  margin-right: var(--space-md);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.footer .social-links a:hover {
  color: var(--neutral-100);
  text-decoration: underline;
}

.newsletter-form .input {
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  border-color: var(--neutral-700);
  background-color: var(--neutral-700);
  color: var(--neutral-100);
}

.newsletter-form .input::placeholder {
  color: var(--neutral-500);
}

.newsletter-form .button {
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.copyright {
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 1px solid var(--neutral-700);
  text-align: center;
  color: var(--neutral-500);
  font-size: 0.9rem;
}

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

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

.success-page .title {
  margin-bottom: var(--space-md);
}

.success-page .subtitle {
  margin-bottom: var(--space-lg);
  max-width: 600px;
}

/* Privacy & Terms pages */
.privacy-page,
.terms-page {
  padding-top: 100px;
  padding-bottom: var(--space-xl);
}

.privacy-page .container,
.terms-page .container {
  max-width: 800px;
}

.privacy-page h2,
.terms-page h2 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
  color: var(--neutral-800);
}

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

/* Cookie consent */
#cookieConsent {
  background-color: rgba(0, 0, 0, 0.8) !important;
  color: white !important;
}

#acceptCookies {
  background-color: var(--primary-color) !important;
  color: white !important;
  border: none !important;
  padding: 10px 20px !important;
  border-radius: var(--radius-md) !important;
  cursor: pointer !important;
  transition: background-color var(--transition-fast) !important;
}

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

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .container {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }
  
  .hero-body {
    padding: var(--space-xl) var(--space-md);
  }
  
  .hero .title {
    font-size: 2rem !important;
  }
  
  .hero .subtitle {
    font-size: 1.25rem !important;
  }
  
  .pricing-card.is-featured {
    transform: scale(1);
  }
  
  .pricing-card.is-featured:hover {
    transform: translateY(-10px);
  }
  
  .contact-info {
    margin-bottom: var(--space-xl);
  }
  
  .footer {
    text-align: center;
  }
  
  .footer .social-links {
    justify-content: center;
  }
  
  .footer-links {
    margin-bottom: var(--space-lg);
  }
}

/* Animations */
@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%;
  }
}

.bio-shape {
  animation: morphing 8s ease-in-out infinite;
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  transition: all 1s ease-in-out;
}

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

.bio-image {
  position: relative;
  overflow: hidden;
}

.bio-image::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background: linear-gradient(
    45deg,
    rgba(var(--primary-color-rgb), 0.3),
    rgba(var(--accent-color-rgb), 0.3)
  );
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: morphing 10s ease-in-out infinite alternate;
  z-index: -1;
}

/* Read more links */
.read-more {
  display: inline-block;
  font-weight: 500;
  color: var(--primary-color);
  position: relative;
  padding-right: 24px;
  transition: all var(--transition-normal);
}

.read-more::after {
  content: '→';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: transform var(--transition-normal);
}

.read-more:hover {
  color: var(--primary-dark);
  padding-right: 28px;
}

.read-more:hover::after {
  transform: translateY(-50%) translateX(4px);
}

/* Additional styles for other elements */
.accordion {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--space-md);
}

.accordion-header {
  background-color: var(--neutral-200);
  padding: var(--space-md);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color var(--transition-fast);
}

.accordion-header:hover {
  background-color: var(--neutral-300);
}

.accordion-icon {
  transition: transform var(--transition-fast);
}

.accordion.is-active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  padding: var(--space-md);
  background-color: var(--neutral-100);
  display: none;
}

.accordion.is-active .accordion-content {
  display: block;
}

/* Ensure images in cards are centered */
.card-image figure {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0;
}

.card-image img {
  margin: 0 auto;
}

/* Apply text-shadow to ensure readability on image backgrounds */
[style*="background-image"] .title,
[style*="background-image"] .subtitle,
[style*="background-image"] p {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}