/* Root Variables for Color Scheme */
:root {
  /* Tetrad color scheme */
  --primary: #6b4de6;
  --primary-dark: #5234c4;
  --primary-light: #8c70f4;
  --secondary: #e64d9b;
  --secondary-dark: #c4347e;
  --secondary-light: #f470b8;
  --tertiary: #4de6b4;
  --tertiary-dark: #34c490;
  --tertiary-light: #70f4cb;
  --quaternary: #e6b44d;
  --quaternary-dark: #c4902f;
  --quaternary-light: #f4d070;

  /* Neutral colors */
  --white: #ffffff;
  --light-grey: #f8f9fa;
  --mid-grey: #dee2e6;
  --dark-grey: #343a40;
  --black: #212529;

  /* Shadow colors for neuromorphic design */
  --shadow-light: rgba(255, 255, 255, 0.5);
  --shadow-dark: rgba(94, 104, 121, 0.3);
  
  /* Typography */
  --heading-font: 'Archivo Black', sans-serif;
  --body-font: 'Roboto', sans-serif;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 3rem;
  --space-xl: 4rem;
  
  /* Transition timings */
  --transition-fast: 0.2s;
  --transition-normal: 0.3s;
  --transition-slow: 0.5s;
  
  /* Border radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
}

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

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

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

/* Adaptive Typography */
@media screen and (min-width: 320px) {
  html {
    font-size: calc(16px + 0.5vw);
  }
}

@media screen and (min-width: 1200px) {
  html {
    font-size: 22px;
  }
}

/* Neuromorphic Card Design */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: 
    8px 8px 16px var(--shadow-dark),
    -8px -8px 16px var(--shadow-light);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  margin-bottom: var(--space-md);
}

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

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

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

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

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

/* Navigation */
.navbar {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all var(--transition-normal);
}

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

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

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

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

/* Hero Section */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
}

.hero-body {
  z-index: 1;
  padding: var(--space-xl) 0;
}

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

.hero p {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.scroll-down {
  display: inline-block;
  margin-bottom: var(--space-md);
  animation: bounce 2s infinite;
  color: var(--white);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-20px);
  }
  60% {
    transform: translateY(-10px);
  }
}

/* Buttons */
.button {
  font-family: var(--body-font);
  font-weight: 500;
  transition: all var(--transition-normal);
  border: none;
  box-shadow: 
    4px 4px 8px var(--shadow-dark),
    -4px -4px 8px var(--shadow-light);
}

.button:hover, 
.button:focus {
  transform: translateY(-2px);
  box-shadow: 
    6px 6px 10px var(--shadow-dark),
    -6px -6px 10px var(--shadow-light);
}

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

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

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

.button.is-light:hover {
  background-color: var(--light-grey);
}

/* Vision Section */
#vision .title {
  color: var(--primary);
}

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

.vision-card .image {
  height: 250px;
  overflow: hidden;
}

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

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

/* Services Section */
#services .title {
  color: var(--secondary);
}

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

.service-card .image {
  height: 200px;
  overflow: hidden;
}

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

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

.service-card .button {
  margin-top: auto;
  background-color: var(--secondary);
  color: var(--white);
}

.service-card .button:hover {
  background-color: var(--secondary-dark);
}

/* Webinars Section */
#webinars .title {
  color: var(--tertiary);
}

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

.webinar-card .image {
  height: 225px;
  overflow: hidden;
}

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

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

.webinar-date {
  color: var(--tertiary);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.webinar-details {
  margin-top: var(--space-sm);
  border-top: 1px solid var(--mid-grey);
  padding-top: var(--space-sm);
}

.webinar-card .button {
  background-color: var(--tertiary);
  color: var(--white);
}

.webinar-card .button:hover {
  background-color: var(--tertiary-dark);
}

/* Behind the Scenes Section */
#behind-scenes .title {
  color: var(--quaternary);
}

#behind-scenes .card .image {
  height: 225px;
  overflow: hidden;
}

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

#behind-scenes .card:hover img {
  transform: scale(1.05);
}

/* Resources Section */
#resources .title {
  color: var(--primary);
}

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

.resource-card .image {
  height: 200px;
  overflow: hidden;
}

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

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

.resource-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
}

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

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

.resource-links a::after {
  content: " →";
  opacity: 0;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  display: inline-block;
}

.resource-links a:hover::after {
  opacity: 1;
  transform: translateX(4px);
}

/* Success Stories Section */
#success-stories .title {
  color: var(--secondary);
}

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

.testimonial-card .media-left .image {
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 
    4px 4px 8px var(--shadow-dark),
    -4px -4px 8px var(--shadow-light);
}

.testimonial-card .media-left .image img {
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-card .title {
  color: var(--secondary);
  margin-bottom: 0.25rem;
}

.testimonial-card .subtitle {
  color: var(--dark-grey);
  opacity: 0.8;
}

.testimonial-card .content {
  font-style: italic;
  position: relative;
}

.testimonial-card .content::before {
  content: """;
  font-size: 4rem;
  line-height: 1;
  position: absolute;
  top: -0.5rem;
  left: -0.5rem;
  color: var(--secondary-light);
  opacity: 0.3;
  font-family: var(--heading-font);
}

/* Clientele Section */
#clientele .title {
  color: var(--tertiary);
}

.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  padding: var(--space-sm);
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all var(--transition-normal);
}

.client-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* Contact Section */
#contact .title {
  color: var(--quaternary);
}

.contact-card, 
.contact-info-card {
  height: 100%;
}

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

.input, 
.textarea, 
.select select {
  background: var(--light-grey);
  border: 1px solid var(--mid-grey);
  border-radius: var(--radius-sm);
  transition: all var(--transition-normal);
  box-shadow: 
    inset 2px 2px 5px var(--shadow-dark),
    inset -2px -2px 5px var(--shadow-light);
}

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

#contact .button {
  background-color: var(--quaternary);
  color: var(--white);
}

#contact .button:hover {
  background-color: var(--quaternary-dark);
}

.map-container {
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 
    4px 4px 8px var(--shadow-dark),
    -4px -4px 8px var(--shadow-light);
}

.map-container img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

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

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

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

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

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

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

.social-links a {
  display: inline-flex;
  align-items: center;
  margin-right: var(--space-sm);
}

.social-links a::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 5px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.social-links li:nth-child(1) a::before {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23dee2e6' d='M504 256C504 119 393 8 256 8S8 119 8 256c0 123.78 90.69 226.38 209.25 245V327.69h-63V256h63v-54.64c0-62.15 37-96.48 93.67-96.48 27.14 0 55.52 4.84 55.52 4.84v61h-31.28c-30.8 0-40.41 19.12-40.41 38.73V256h68.78l-11 71.69h-57.78V501C413.31 482.38 504 379.78 504 256z'/%3E%3C/svg%3E");
}

.social-links li:nth-child(2) a::before {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23dee2e6' d='M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z'/%3E%3C/svg%3E");
}

.social-links li:nth-child(3) a::before {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='%23dee2e6' d='M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z'/%3E%3C/svg%3E");
}

.social-links li:nth-child(4) a::before {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='%23dee2e6' d='M416 32H31.9C14.3 32 0 46.5 0 64.3v383.4C0 465.5 14.3 480 31.9 480H416c17.6 0 32-14.5 32-32.3V64.3c0-17.8-14.4-32.3-32-32.3zM135.4 416H69V202.2h66.5V416zm-33.2-243c-21.3 0-38.5-17.3-38.5-38.5S80.9 96 102.2 96c21.2 0 38.5 17.3 38.5 38.5 0 21.3-17.2 38.5-38.5 38.5zm282.1 243h-66.4V312c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 54.9V416h-66.4V202.2h63.7v29.2h.9c8.9-16.8 30.6-34.5 62.9-34.5 67.2 0 79.7 44.3 79.7 101.9V416z'/%3E%3C/svg%3E");
}

.copyright {
  margin-top: var(--space-lg);
  font-size: 0.9rem;
  opacity: 0.7;
}

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

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

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

/* About, Terms, Privacy Pages */
.content-page {
  padding-top: 100px; /* Prevent content from being hidden under fixed header */
}

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

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

.fade-in {
  animation: fadeIn var(--transition-slow) ease-out;
}

/* Media Queries */
@media screen and (max-width: 768px) {
  .card {
    margin-bottom: var(--space-md);
  }
  
  .testimonial-card .media {
    flex-direction: column;
    text-align: center;
  }
  
  .testimonial-card .media-left {
    margin: 0 auto var(--space-sm);
  }
  
  .client-logo {
    height: 80px;
  }
  
  .section {
    padding: var(--space-lg) var(--space-sm);
  }
  
  .hero-body {
    padding: var(--space-xl) var(--space-sm);
  }
}

/* Additional Utility Classes */
.mt-auto {
  margin-top: auto;
}

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

.full-width {
  width: 100%;
}

.centered-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.btn-read-more {
  font-weight: 500;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  transition: all var(--transition-normal);
}

.btn-read-more::after {
  content: "→";
  margin-left: 0.5rem;
  transition: transform var(--transition-fast);
}

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

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

.title:not(.is-spaced)+.subtitle {
  margin-top: 0;
}

.title.is-4  {
  margin-bottom: 0;
}

@media (max-width: 576px) {
  .title.is-4  {
    font-size: 16px;
  }
}