/* Variables */
:root {
  /* Color scheme */
  --primary-color: #3a7d44;
  --primary-dark: #2c5e33;
  --primary-light: #4a9d55;
  --secondary-color: #6fae7f;
  --secondary-dark: #559267;
  --secondary-light: #8cc99a;
  --accent-color: #ffb347;
  --accent-dark: #e69c32;
  --accent-light: #ffc670;
  
  /* Neutral colors */
  --background-color: #f8f9fa;
  --dark-background: #1a2026;
  --text-color: #333333;
  --text-light: #777777;
  --border-color: #e2e8f0;
  
  /* Gradients */
  --primary-gradient: linear-gradient(120deg, var(--primary-color), var(--secondary-color));
  --dark-overlay: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7));
  
  /* Shadows */
  --card-shadow: 0 4px 20px rgba(0,0,0,0.08);
  --hover-shadow: 0 10px 25px rgba(0,0,0,0.12);
  
  /* Transitions */
  --transition-fast: 0.3s ease;
  --transition-medium: 0.5s ease;
  
  /* Border radius */
  --radius-small: 4px;
  --radius-medium: 8px;
  --radius-large: 16px;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  
  /* Typography */
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--space-sm);
}

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

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

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

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

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

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

.mb-1 {
  margin-bottom: var(--space-xs);
}

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

.mb-3 {
  margin-bottom: var(--space-md);
}

.mb-4 {
  margin-bottom: var(--space-lg);
}

/* Header */
.navbar {
  transition: background-color var(--transition-medium);
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.navbar-item {
  font-family: var(--font-heading);
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: color var(--transition-fast);
}

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

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

/* Buttons */
.button {
  font-family: var(--font-heading);
  font-weight: 500;
  transition: all var(--transition-fast);
}

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

.button.is-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--card-shadow);
}

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

.button.is-light:hover {
  color: var(--primary-dark);
  background-color: #f8f8f8;
  transform: translateY(-2px);
  box-shadow: var(--card-shadow);
}

.button.is-rounded {
  border-radius: 30px;
}

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

.button.is-outlined:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--card-shadow);
}

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

/* Hero section */
.hero {
  position: relative;
  overflow: hidden;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
}

.hero-body {
  position: relative;
  z-index: 2;
  padding: 4rem 1.5rem;
}

.hero .title, 
.hero .subtitle {
  color: white;
  margin-bottom: var(--space-md);
}

.hero .title.is-1 {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.hero .subtitle.is-3 {
  font-weight: 400;
  margin-bottom: var(--space-lg);
}

.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Cards */
.card {
  background: white;
  border-radius: var(--radius-medium);
  box-shadow: var(--card-shadow);
  margin-bottom: var(--space-md);
  overflow: hidden;
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

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

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

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

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

.card .title {
  color: var(--text-color);
  margin-bottom: var(--space-sm);
}

.card p {
  color: var(--text-light);
  margin-bottom: var(--space-md);
}

.card .button {
  margin-top: auto;
}

/* About section */
#about {
  padding: var(--space-lg) 0;
}

#about .title {
  color: var(--text-color);
  margin-bottom: var(--space-md);
}

#about .is-size-5 {
  color: var(--text-light);
  max-width: 800px;
  margin: 0 auto var(--space-md);
}

/* Workshops section */
#workshops {
  padding: var(--space-lg) 0;
  background-color: #f4f7f4;
}

#workshops .card {
  height: 100%;
}

.accordion {
  margin-bottom: var(--space-sm);
  border-radius: var(--radius-medium);
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.accordion-header {
  background-color: white;
  padding: var(--space-sm) var(--space-md);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-medium);
}

.accordion-header p {
  margin-bottom: 0;
  font-weight: 500;
}

.accordion-body {
  display: none;
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 var(--radius-medium) var(--radius-medium);
  background-color: white;
}

.accordion-content {
  padding: var(--space-md);
}

/* Research section */
#research {
  padding: var(--space-lg) 0;
}

#research .card {
  height: 100%;
}

/* Customer Stories section */
#stories {
  padding: var(--space-lg) 0;
  background-color: #f4f7f4;
}

#stories .card {
  text-align: center;
  height: 100%;
}

#stories .card-image {
  padding: var(--space-sm);
}

#stories .card-image figure {
  height: 300px;
  width: 300px;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
}

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

#stories .card-content {
  text-align: left;
}

#stories .card-content p {
  font-style: italic;
}

/* Resources section */
#resources {
  padding: var(--space-lg) 0;
}

#resources .card {
  text-align: center;
  height: 100%;
}

/* Community section */
#community {
  padding: var(--space-lg) 0;
  background-color: #f4f7f4;
}

#community .card {
  height: 100%;
}

/* Awards section */
#awards {
  padding: var(--space-lg) 0;
}

#awards .card {
  text-align: center;
}

#awards .image {
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Careers section */
#careers {
  padding: var(--space-lg) 0;
  background-color: #f4f7f4;
}

#careers .card {
  height: 100%;
}

#careers ul {
  margin-left: var(--space-md);
}

/* Case Studies section */
#case-studies {
  padding: var(--space-lg) 0;
}

#case-studies .card {
  height: 100%;
}

#case-studies .columns {
  align-items: center;
}

/* Behind the Scenes section */
#behind-scenes {
  padding: var(--space-lg) 0;
  background-color: #f4f7f4;
}

#behind-scenes .card {
  height: 100%;
}

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

#contact .card {
  height: 100%;
}

#contact .field {
  margin-bottom: var(--space-sm);
}

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

#contact .input, 
#contact .textarea, 
#contact .select select {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-medium);
  transition: border-color var(--transition-fast);
}

#contact .input:focus, 
#contact .textarea:focus, 
#contact .select select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 1px var(--primary-light);
}

/* Footer */
.footer {
  padding: var(--space-lg) 0;
  background-color: var(--dark-background);
}

.footer h3 {
  margin-bottom: var(--space-md);
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-md) 0;
}

.footer ul li {
  margin-bottom: var(--space-xs);
}

.footer ul li a {
  color: var(--text-light);
  transition: color var(--transition-fast);
}

.footer ul li a:hover {
  color: white;
}

.footer .social-links a {
  margin-right: var(--space-sm);
  color: var(--text-light);
  transition: color var(--transition-fast);
  line-height: 2;
}

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

.footer hr {
  opacity: 0.1;
  margin: var(--space-md) 0;
}

.footer .input {
  border: none;
  border-radius: var(--radius-medium);
}

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

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

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

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .hero .title.is-1 {
    font-size: 2.5rem;
  }
  
  .hero .subtitle.is-3 {
    font-size: 1.5rem;
  }
  
  .section {
    padding: 3rem 1.5rem;
  }
  
  #stories .card-image figure {
    height: 200px;
    width: 200px;
  }
}

@media screen and (max-width: 480px) {
  .hero .title.is-1 {
    font-size: 2rem;
  }
  
  .hero .subtitle.is-3 {
    font-size: 1.25rem;
  }
  
  .section {
    padding: 2rem 1rem;
  }
  
  .button.is-medium {
    font-size: 0.9rem;
  }
  
  #stories .card-image figure {
    height: 150px;
    width: 150px;
  }
}

/* Animation styles */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

.fade-in {
  animation: fadeIn var(--transition-medium) forwards;
}

.slide-up {
  animation: slideUp var(--transition-medium) forwards;
}

/* Particle animation */
@keyframes particleMove {
  0% {
    transform: translateY(0) translateX(0);
  }
  100% {
    transform: translateY(-20px) translateX(20px);
  }
}

.particle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  animation: particleMove 15s infinite alternate ease-in-out;
}

/* Enhanced button styles */
.button {
  position: relative;
  overflow: hidden;
}

.button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

.button:hover::after {
  animation: ripple 1s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  100% {
    transform: scale(20, 20);
    opacity: 0;
  }
}

/* ScrollReveal animations */
.sr-item {
  visibility: hidden;
}

/* Custom accent elements */
.accent-line {
  width: 50px;
  height: 3px;
  background-color: var(--accent-color);
  margin: 0 auto var(--space-md);
  border-radius: 3px;
}

.accent-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--accent-color);
  border-radius: 50%;
  margin-right: 5px;
}

/* Additional card styling for uniform height */
.card-equal-height {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-equal-height .card-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-equal-height .button {
  margin-top: auto;
}

/* Special link styles */
.read-more {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 500;
  position: relative;
  padding-right: 20px;
}

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

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

.read-more:hover::after {
  transform: translate(5px, -50%);
}