/* Base Variables */
:root {
  /* Color Palette - Split-Complementary */
  --primary: #4a6fa5;
  --primary-dark: #3a5a8c;
  --primary-light: #6789bd;
  --secondary: #a56a4a;
  --secondary-dark: #8c5a3a;
  --secondary-light: #bd8c6a;
  --accent: #4aa577;
  --accent-dark: #3a8c63;
  --accent-light: #6abd9a;
  
  /* Neutral Colors */
  --white: #ffffff;
  --light-gray: #f5f7fa;
  --gray: #e0e0e0;
  --dark-gray: #707070;
  --black: #333333;
  
  /* Typography */
  --heading-font: 'Manrope', sans-serif;
  --body-font: 'Rubik', sans-serif;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  
  /* Animation */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Borders & Shadows */
  --border-radius: 8px;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
}

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

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

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

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

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

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

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

/* Layout & Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-xl) 0;
}

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

.navbar {
  padding: var(--space-sm) 0;
}

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

.navbar-item {
  font-weight: 500;
  padding: var(--space-sm) var(--space-md);
  position: relative;
}

.navbar-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width var(--transition-medium);
}

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

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

.hero-body {
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding-top: 80px;
}

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

.hero .button {
  margin: 0 var(--space-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

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

/* Buttons */
.button {
  font-family: var(--heading-font);
  font-weight: 500;
  letter-spacing: 0.5px;
  border-radius: var(--border-radius);
  transition: all var(--transition-fast);
}

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

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

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

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

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

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

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

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

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

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

.card-content h3 {
  margin-bottom: var(--space-sm);
}

.card-content .subtitle {
  color: var(--dark-gray);
  margin-bottom: var(--space-sm);
}

/* Projects Section */
#projects .columns {
  margin-top: var(--space-lg);
}

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

.progress-container {
  margin-top: var(--space-md);
}

.progress {
  height: 8px;
  border-radius: var(--border-radius);
  background-color: var(--gray);
}

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

.progress-container span {
  display: block;
  text-align: right;
  font-size: 0.9rem;
  color: var(--dark-gray);
  margin-top: var(--space-xs);
}

/* Statistics Section */
#statistics {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--white);
}

.stat-box {
  text-align: center;
  padding: var(--space-lg);
  transition: transform var(--transition-medium);
}

.stat-box:hover {
  transform: translateY(-10px);
}

.stat-box .title.is-1 {
  font-size: 3.5rem;
  margin-bottom: var(--space-sm);
}

.stat-box .subtitle {
  font-weight: 400;
}

/* Testimonials Section */
#testimonials .card {
  padding: var(--space-md);
}

.media-left .image {
  margin-right: var(--space-md);
}

.stars {
  color: var(--secondary);
  font-size: 1.2rem;
  margin-top: var(--space-sm);
}

/* Resources Section */
#resources .card .button {
  align-self: flex-start;
}

/* Clientele Section */
.client-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-top: var(--space-lg);
}

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

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

.client-logo img {
  max-height: 80px;
  max-width: 100%;
}

/* FAQ Section */
.faq-container {
  margin-top: var(--space-lg);
}

.faq-item {
  margin-bottom: var(--space-md);
  border-bottom: 1px solid var(--gray);
  padding-bottom: var(--space-md);
}

.faq-question {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding-right: 30px;
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--primary);
  transition: transform var(--transition-fast);
}

.faq-item.active .faq-question::after {
  content: '-';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-medium);
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

/* Careers Section */
.job-offer {
  padding: var(--space-md);
  border: 1px solid var(--gray);
  border-radius: var(--border-radius);
  margin-bottom: var(--space-md);
  transition: background-color var(--transition-fast);
}

.job-offer:hover {
  background-color: var(--light-gray);
}

.job-offer h4 {
  margin-bottom: var(--space-sm);
}

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

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

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

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

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

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

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

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

.input, .textarea, .select select {
  border-radius: var(--border-radius);
  border: 1px solid var(--gray);
  padding: var(--space-sm);
  transition: border-color var(--transition-fast);
}

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

.checkbox input {
  margin-right: var(--space-xs);
}

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

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

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

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

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

.footer a {
  color: var(--light-gray);
  transition: color var(--transition-fast);
}

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

.social-links a {
  display: inline-block;
  margin-right: var(--space-md);
  font-weight: 500;
}

.footer-bottom {
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.success-content {
  max-width: 600px;
  padding: var(--space-xl);
}

/* Privacy & Terms Pages */
.privacy-page, .terms-page {
  padding-top: 100px;
}

.privacy-content, .terms-content {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
}

/* Responsive Styles */
@media screen and (max-width: 1023px) {
  .navbar-menu {
    box-shadow: none;
  }
  
  .hero-body {
    padding: 120px 0 var(--space-xl);
  }
  
  .stat-box .title.is-1 {
    font-size: 2.5rem;
  }
}

@media screen and (max-width: 768px) {
  .section {
    padding: var(--space-lg) 0;
  }
  
  .hero .buttons {
    flex-direction: column;
  }
  
  .hero .button {
    margin: var(--space-xs) 0;
    width: 100%;
  }
  
  .image-container {
    height: 200px;
  }
  
  .stat-box {
    margin-bottom: var(--space-md);
  }
  
  .contact-info, .contact-form {
    padding: var(--space-md);
  }
  
  .social-links a {
    margin-right: var(--space-sm);
  }
}

/* Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.slide-in-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.slide-in-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Additional Utility Classes */
.has-text-primary {
  color: var(--primary) !important;
}

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

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

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

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

.has-background-accent {
  background-color: var(--accent) !important;
}

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

.is-rounded {
  border-radius: 50%;
}

/* JavaScript Interaction Classes */
.navbar-burger {
  margin-left: auto;
}

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

.navbar-menu.is-active {
  box-shadow: var(--shadow-md);
}