:root {
  /* Tetrad color scheme */
  --primary-color: #3B82F6;
  --primary-color-dark: #2563EB;
  --primary-color-light: #60A5FA;
  
  --secondary-color: #F59E0B;
  --secondary-color-dark: #D97706;
  --secondary-color-light: #FBBF24;
  
  --tertiary-color: #10B981;
  --tertiary-color-dark: #059669;
  --tertiary-color-light: #34D399;
  
  --quaternary-color: #8B5CF6;
  --quaternary-color-dark: #7C3AED;
  --quaternary-color-light: #A78BFA;
  
  /* Neutral colors */
  --dark-color: #1F2937;
  --medium-color: #4B5563;
  --light-color: #F3F4F6;
  --white-color: #FFFFFF;
  
  /* Glassmorphism */
  --glass-background: rgba(255, 255, 255, 0.15);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-shadow: rgba(0, 0, 0, 0.1);
  
  /* Transitions */
  --transition-fast: 0.3s ease;
  --transition-medium: 0.5s ease;
  --transition-slow: 0.8s ease;
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--dark-color);
  line-height: 1.3;
}

p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: var(--medium-color);
}

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

/* Typography Refinements */
.title {
  margin-bottom: 1.5rem;
}

.subtitle {
  color: var(--medium-color);
  margin-bottom: 2rem;
}

/* Buttons */
.button {
  transition: all var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

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

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

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

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

.pulse-button {
  position: relative;
  box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
  }
}

/* Glassmorphism */
.glassmorphism {
  background: var(--glass-background);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: 0 4px 30px var(--glass-shadow);
  padding: 2rem;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.glassmorphism:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 40px var(--glass-shadow);
}

/* Header & Navigation */
.navbar {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  transition: all var(--transition-medium);
}

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

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

.logo-container img {
  max-height: 50px;
}

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

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%);
  z-index: 1;
}

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

.hero-content {
  text-align: center;
}

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

/* Services Section */
.services-section {
  background-color: var(--light-color);
}

.services-section .card {
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-medium);
}

.services-section .card:hover {
  transform: translateY(-10px);
}

.services-section .card-image {
  width: 100%;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
}

.services-section .image-container {
  width: 100%;
  height: 220px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

.services-section .card-content {
  flex-grow: 1;
  padding: 1.5rem;
}

.services-section .card-content h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* Features Section */
.features-section {
  background: linear-gradient(135deg, var(--light-color) 0%, #E5E7EB 100%);
}

.feature-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 2rem;
}

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

/* Methodology Section */
.methodology-section {
  position: relative;
}

.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  width: 4px;
  background-color: var(--primary-color-light);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
  border-radius: 4px;
}

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

.timeline-marker {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--primary-color);
  left: 50%;
  margin-left: -10px;
  z-index: 2;
  box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.3);
  transition: all var(--transition-fast);
}

.timeline-item:hover .timeline-marker {
  background-color: var(--primary-color-dark);
  box-shadow: 0 0 0 8px rgba(59, 130, 246, 0.3);
}

.timeline-content {
  width: 45%;
  margin-left: 55%;
  padding: 2rem;
  position: relative;
}

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

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

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

.resource-links li {
  margin-bottom: 1rem;
}

.resource-links a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
  display: inline-block;
  padding: 0.5rem 0;
}

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

/* Testimonials Section */
.testimonials-section {
  background: linear-gradient(135deg, #E5E7EB 0%, var(--light-color) 100%);
}

.testimonial-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1.5rem;
  border: 4px solid var(--white-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

.testimonial-stars {
  color: var(--secondary-color);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-style: italic;
  margin-top: 1rem;
}

/* FAQ Section */
.faq-section {
  background-color: var(--light-color);
}

.accordion {
  margin-bottom: 1.5rem;
  overflow: hidden;
}

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

.accordion-header:hover {
  background-color: rgba(0, 0, 0, 0.03);
}

.accordion-icon {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
}

.accordion-content {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-medium);
}

.accordion.is-active .accordion-content {
  padding: 0 1.5rem 1.5rem;
}

/* Mission Section */
.mission-section {
  position: relative;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: var(--white-color);
}

.mission-section .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(31, 41, 55, 0.8) 0%, rgba(31, 41, 55, 0.6) 100%);
  z-index: 1;
}

.mission-section .container {
  position: relative;
  z-index: 2;
}

.mission-content {
  padding: 3rem;
  color: #000;
}

.mission-content .title {
  margin-bottom: 2rem;
}

.mission-content p {
  font-size: 1.1rem;
}

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

.contact-form {
  height: 100%;
}

.contact-form .field {
  margin-bottom: 1.5rem;
}

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

.contact-form .input,
.contact-form .textarea,
.contact-form .select select {
  background-color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: all var(--transition-fast);
}

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

.contact-info {
  height: 100%;
}

.contact-item {
  display: flex;
  margin-bottom: 1.5rem;
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-right: 1rem;
  min-width: 30px;
}

.map-container {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
}

/* Partners Section */
.partners-section {
  background-color: var(--white-color);
}

.partner-logo {
  text-align: center;
  padding: 1.5rem;
  transition: transform var(--transition-fast);
}

.partner-logo:hover {
  transform: scale(1.1);
}

.partner-logo img {
  max-width: 100%;
  height: auto;
  filter: grayscale(100%);
  transition: filter var(--transition-fast);
}

.partner-logo:hover img {
  filter: grayscale(0%);
}

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

.footer-logo {
  margin-bottom: 1.5rem;
}

.footer-title {
  color: var(--white-color);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

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

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

.footer-links a {
  color: var(--light-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

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

.social-links a {
  color: var(--light-color);
  text-decoration: none;
  margin-bottom: 0.8rem;
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cookie Consent */
.cookie-consent {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1rem;
  background-color: rgba(31, 41, 55, 0.9);
  backdrop-filter: blur(10px);
  color: var(--white-color);
  z-index: 9999;
}

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

.cookie-content p {
  margin: 0;
  color: var(--white-color);
}

.cookie-content a {
  color: var(--primary-color-light);
}

/* Modal */
.modal-content {
  max-width: 500px;
  margin: 0 auto;
}

/* Success Page */
.success-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--light-color) 0%, #E5E7EB 100%);
}

.success-container {
  text-align: center;
  padding: 3rem;
  max-width: 600px;
}

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

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

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

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

.content-page h2 {
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

/* Responsive Adjustments */
@media screen and (max-width: 1023px) {
  .timeline::before {
    left: 30px;
  }
  
  .timeline-marker {
    left: 30px;
    margin-left: 0;
  }
  
  .timeline-content {
    width: calc(100% - 80px);
    margin-left: 80px;
  }
  
  .timeline-item:nth-child(even) .timeline-content {
    margin-left: 80px;
    margin-right: 0;
  }
  
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-content button {
    margin-top: 1rem;
  }
}

@media screen and (max-width: 768px) {
  section {
    padding: 3rem 0;
  }
  
  .title.is-1 {
    font-size: 2.5rem;
  }
  
  .title.is-2 {
    font-size: 2rem;
  }
  
  .title.is-3 {
    font-size: 1.75rem;
  }
  
  .contact-info {
    margin-top: 2rem;
  }
}

/* Animation Classes */
.fade-in {
  animation: fadeIn var(--transition-medium);
}

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

.scale-in {
  animation: scaleIn var(--transition-medium);
}

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

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

@keyframes scaleIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Dynamic color transitions */
.dynamic-bg {
  background: linear-gradient(45deg, 
    var(--primary-color) 0%, 
    var(--secondary-color) 25%, 
    var(--tertiary-color) 50%, 
    var(--quaternary-color) 75%, 
    var(--primary-color) 100%);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Extra utility classes */
.text-shadow {
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.box-shadow {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

.has-text-primary {
  color: var(--primary-color) !important;
}

.has-text-secondary {
  color: var(--secondary-color) !important;
}

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

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

.read-more {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition-fast);
  position: relative;
  padding-right: 1.5rem;
}

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

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

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