:root {
  /* Tetrad color scheme */
  --primary: #ff4d55;
  --primary-dark: #d83640;
  --secondary: #4d8aff;
  --secondary-dark: #3a6cc7;
  --tertiary: #55ff4d;
  --tertiary-dark: #40d838;
  --quaternary: #ff4dff;
  --quaternary-dark: #d838d8;
  
  /* Neutral colors */
  --dark: #222222;
  --dark-medium: #333333;
  --medium: #666666;
  --light-medium: #999999;
  --light: #f5f5f5;
  --white: #ffffff;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary), var(--quaternary));
  --gradient-secondary: linear-gradient(135deg, var(--secondary), var(--tertiary));
  --gradient-dark: linear-gradient(135deg, rgba(0,0,0,0.8), rgba(0,0,0,0.5));
  
  /* Shadows */
  --shadow-sm: 0 2px 5px rgba(0,0,0,0.1);
  --shadow-md: 0 5px 15px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
  
  /* Typography */
  --font-heading: 'Raleway', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;
  
  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;
}

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

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

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

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

a {
  color: var(--secondary);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--secondary-dark);
  text-decoration: none;
}

/* Brutalist Design Elements */
.brutalist-border {
  border: 4px solid var(--dark);
  box-shadow: 8px 8px 0 var(--dark);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brutalist-border:hover {
  transform: translate(-4px, -4px);
  box-shadow: 12px 12px 0 var(--dark);
}

.bg-noise {
  position: relative;
}

.bg-noise::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAFZSURBVGhD7ZmhjsMwDIb7unu/l7vDnuDegHuEvgntEfoGfYTt3jDNjKaJbMVJJuxH9UnVmsSu/0ZuT6dJkiRJkmylrutD+CjP0J3qZ3iHnoXvNJ/CtzBHvUIvME/i1LbTQM9QuErUCePUttNAz1AoEXXCOLXtNNAz5EtEnTBObTsN9Ay5ElEnjFPbTgM9Q7ZE1Anj1LbTQM+QKRF1wji17TTQM/QvkZ7n0nOQnifTs7GezfWfEf5Z47+X+HeE/+7Bvwfx70v4dz/8+yP+PSb/Pi2Eh4bw8Bge2n+G9nAWEMOD8BguFcKFdLjcEB+AxIeQ8UF0fBgfX0jEl3LxBzPxR1fx5YX48lp8AS++BFlFoaScQFBSKCknkJQUSsoJJCWFknICSUmhpJxAUlIoKSeQlBRKygkkJYWSMo1zrpFIu14Cn1Ao2h2JX6FwlTAePGVbpJFEkiRJkvxfTtMPYniPksLNRv4AAAAASUVORK5CYII=');
  opacity: 0.05;
  pointer-events: none;
}

/* Layout Components */
.section {
  padding: var(--space-lg) 0;
  position: relative;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

/* Header & Navigation */
.header {
  position: fixed;
  width: 100%;
  z-index: 1000;
}

.navbar {
  background-color: var(--white);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.navbar-brand .logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.navbar-item {
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
}

.navbar-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--gradient-primary);
  transition: width 0.3s ease, left 0.3s ease;
}

.navbar-item:hover::after {
  width: 100%;
  left: 0;
}

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

.navbar-burger:hover {
  background-color: transparent;
}

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

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-dark);
  z-index: 1;
}

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

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

.hero .title {
  font-size: 3.5rem;
  margin-bottom: var(--space-sm);
  line-height: 1.1;
}

.hero .subtitle {
  font-size: 2rem;
  margin-bottom: var(--space-md);
}

.hero-description {
  font-size: 1.25rem;
  max-width: 600px;
  margin-bottom: var(--space-md);
}

.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Principles Section */
.principles-section {
  background-color: var(--light);
  position: relative;
  overflow: hidden;
}

.principles-card {
  height: 100%;
  border: none;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.principles-card .card-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

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

.principles-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

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

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

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

.service-card {
  height: 100%;
  border: none;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: var(--space-md);
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.service-card .card-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

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

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

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

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

.progress-container {
  width: 100%;
  margin-top: var(--space-sm);
}

.progress {
  height: 10px;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress.is-primary {
  background-color: rgba(77, 138, 255, 0.2);
}

.progress.is-primary::-webkit-progress-value {
  background: var(--gradient-primary);
}

.progress.is-primary::-moz-progress-bar {
  background: var(--gradient-primary);
}

.progress-text {
  display: block;
  font-size: 0.8rem;
  color: var(--medium);
  text-align: right;
  margin-top: 5px;
}

/* Why Us Section */
.why-us-section {
  background-color: var(--light);
  position: relative;
}

.why-us-text {
  font-size: 1.1rem;
  margin-bottom: var(--space-md);
}

.accordion-container {
  width: 100%;
  margin-top: var(--space-md);
}

.accordion-item {
  margin-bottom: var(--space-sm);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background-color: var(--white);
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) var(--space-md);
  background-color: var(--white);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.accordion-header h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--dark-medium);
}

.accordion-header .icon {
  font-size: 1.5rem;
  color: var(--primary);
  transition: transform 0.3s ease;
}

.accordion-header.active .icon {
  transform: rotate(45deg);
}

.accordion-content {
  padding: 0 var(--space-md);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-content p {
  padding-bottom: var(--space-sm);
}

.image-container {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.image-container img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

/* Success Stories Section */
.success-stories-section {
  background-color: var(--white);
  position: relative;
}

.success-card {
  height: 100%;
  border: none;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.success-card .card-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

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

.success-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

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

.success-card .title {
  color: var(--tertiary-dark);
  margin-bottom: var(--space-sm);
  text-align: center;
}

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

.resource-card {
  height: 100%;
  border: none;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

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

.resource-card .title {
  color: var(--quaternary-dark);
  margin-bottom: var(--space-sm);
  text-align: center;
}

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

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

/* Testimonials Section */
.testimonials-section {
  background-color: var(--light);
  position: relative;
}

.testimonial-card {
  height: 100%;
  border: none;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

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

.testimonial-image {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: var(--space-sm);
  box-shadow: var(--shadow-sm);
}

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

.testimonial-card .title {
  color: var(--primary);
  margin-bottom: 5px;
  text-align: center;
}

.testimonial-card .subtitle {
  color: var(--medium);
  margin-bottom: var(--space-sm);
  text-align: center;
}

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

.rating {
  color: var(--primary);
  font-size: 1.2rem;
}

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

.contact-card {
  border: none;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

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

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

.label {
  color: var(--dark-medium);
  font-weight: 600;
}

.input,
.textarea {
  border: 2px solid var(--light-medium);
  border-radius: var(--radius-sm);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input:focus,
.textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(255, 77, 85, 0.2);
}

.button {
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--radius-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.button.is-primary {
  background: var(--gradient-primary);
  border: none;
}

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

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

.button.is-outlined.is-white:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.map-card {
  margin-top: var(--space-md);
  border: none;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.map-container {
  width: 100%;
  height: 450px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.contact-info {
  margin-top: var(--space-sm);
}

.contact-info p {
  margin-bottom: 0.5rem;
}

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

.footer .title {
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.footer p {
  color: var(--light);
}

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

.social-links a {
  color: var(--light);
  margin-right: var(--space-xs);
  transition: color 0.3s ease;
  text-decoration: none;
}

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

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

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

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

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

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

.sitemap a {
  color: var(--light);
  transition: color 0.3s ease;
  text-decoration: none;
}

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

.copyright {
  color: var(--light-medium);
  font-size: 0.9rem;
}

/* Cookie Popup */
.cookie-popup {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  color: var(--white);
  padding: var(--space-md);
  z-index: 9999;
}

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

.cookie-content p {
  margin: 0;
  margin-right: var(--space-md);
}

/* Success Page */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--light);
}

.success-content {
  text-align: center;
  padding: var(--space-lg);
  background-color: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-width: 600px;
  width: 100%;
}

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

.success-title {
  color: var(--dark);
  margin-bottom: var(--space-sm);
}

.success-message {
  color: var(--medium);
  margin-bottom: var(--space-md);
}

/* Privacy & Terms Pages */
.page-content {
  padding-top: 100px;
  padding-bottom: var(--space-lg);
}

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

.page-content h1 {
  margin-bottom: var(--space-md);
  color: var(--primary);
}

.page-content h2 {
  margin-top: var(--space-md);
  margin-bottom: var(--space-sm);
  color: var(--secondary);
}

.page-content p {
  margin-bottom: var(--space-sm);
}

/* Read More Links */
.read-more {
  display: inline-block;
  font-weight: 600;
  color: var(--secondary);
  text-decoration: none;
  position: relative;
  padding-right: 20px;
  transition: color 0.3s ease;
}

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

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

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

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.aos-animate {
  animation: fadeIn 0.8s ease forwards;
}

/* Particle Animation */
@keyframes particle-animation {
  0% {
    opacity: 0;
    transform: translateY(0) translateX(0);
  }
  25% {
    opacity: 1;
  }
  75% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-200px) translateX(100px);
  }
}

.particle {
  position: absolute;
  width: 5px;
  height: 5px;
  background-color: var(--white);
  border-radius: 50%;
  opacity: 0;
  animation: particle-animation 5s linear infinite;
}

/* Responsive Adjustments */
@media (max-width: 1023px) {
  .hero .title {
    font-size: 2.5rem;
  }
  
  .hero .subtitle {
    font-size: 1.5rem;
  }
  
  .navbar-menu {
    background-color: var(--white);
    box-shadow: var(--shadow-lg);
  }
  
  .columns.is-multiline > .column {
    padding: var(--space-sm);
  }
  
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-content p {
    margin-right: 0;
    margin-bottom: var(--space-sm);
  }
}

@media (max-width: 768px) {
  .hero .title {
    font-size: 2rem;
  }
  
  .hero .subtitle {
    font-size: 1.2rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .section {
    padding: var(--space-md) 0;
  }
  
  .principles-card .card-image,
  .service-card .card-image,
  .success-card .card-image {
    height: 180px;
  }
  
  .contact-info {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero .title {
    font-size: 1.8rem;
  }
  
  .hero .subtitle {
    font-size: 1.1rem;
  }
  
  .buttons {
    flex-direction: column;
  }
  
  .button {
    width: 100%;
    margin-bottom: var(--space-xs);
  }
  
  .button + .button {
    margin-left: 0;
  }
  
  .principles-card .card-image,
  .service-card .card-image,
  .success-card .card-image {
    height: 150px;
  }
  
  .testimonial-image {
    width: 80px;
    height: 80px;
  }
}