/* ===== CSS Variables ===== */
:root {
  /* Triadic Color Scheme */
  --primary-color: #3b5fd9; /* Primary blue */
  --primary-dark: #2a4bbf;
  --primary-light: #6b85e6;
  --secondary-color: #d93b5f; /* Secondary red */
  --secondary-dark: #b32545;
  --secondary-light: #e66b85;
  --tertiary-color: #5fd93b; /* Tertiary green */
  --tertiary-dark: #45b325;
  --tertiary-light: #85e66b;
  
  /* Neutral colors */
  --dark: #222222;
  --dark-gray: #444444;
  --medium-gray: #777777;
  --light-gray: #eeeeee;
  --white: #ffffff;
  
  /* Text colors */
  --text-dark: #333333;
  --text-medium: #555555;
  --text-light: #ffffff;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  --gradient-secondary: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
  --gradient-tertiary: linear-gradient(135deg, var(--tertiary-color), var(--tertiary-dark));
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
  
  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --radius-round: 50%;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;
  
  /* Typography */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Merriweather', serif;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/* ===== Base Styles ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--white);
  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);
  color: var(--dark);
}

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

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

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

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

ul {
  list-style-type: none;
}

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

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

/* ===== Button Styles ===== */
.button, button, input[type="submit"] {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--white) !important;
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: transform var(--transition-medium), box-shadow var(--transition-medium), background-color var(--transition-fast);
  text-align: center;
  box-shadow: var(--shadow-md);
}

.button:hover, button:hover, input[type="submit"]:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  background-color: var(--primary-dark);
}

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

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

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

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

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

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

.button.is-light {
  background-color: var(--white);
  color: var(--primary-color) !important;
  border: 1px solid var(--light-gray);
}

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

.button.is-rounded {
  border-radius: 2rem;
}

.button.is-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.animate-button {
  position: relative;
  overflow: hidden;
}

.animate-button::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateX(-100%);
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.animate-button:hover::after {
  transform: translateX(0);
}

/* ===== Header Styles ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-md);
  transition: background-color var(--transition-medium);
}

.navbar {
  padding: 1rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent !important;
}

.navbar-brand {
  display: flex;
  align-items: center;
}

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

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

.navbar-burger {
  display: none;
  cursor: pointer;
  width: 3.25rem;
  height: 3.25rem;
  position: relative;
}

.navbar-burger span {
  background-color: var(--text-dark);
  display: block;
  height: 2px;
  width: 24px;
  position: absolute;
  left: calc(50% - 12px);
  transition: transform var(--transition-medium), opacity var(--transition-medium);
}

.navbar-burger span:nth-child(1) {
  top: calc(50% - 8px);
}

.navbar-burger span:nth-child(2) {
  top: calc(50%);
}

.navbar-burger span:nth-child(3) {
  top: calc(50% + 8px);
}

.navbar-burger.is-active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.navbar-burger.is-active span:nth-child(2) {
  opacity: 0;
}

.navbar-burger.is-active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.navbar-menu {
  display: flex;
  flex-grow: 1;
  justify-content: flex-end;
}

.navbar-end {
  display: flex;
  align-items: center;
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--white);
  overflow: hidden;
}

.hero-body {
  flex-grow: 1;
  display: flex;
  align-items: center;
  z-index: 2;
}

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

.hero-foot {
  padding-bottom: 2rem;
  z-index: 2;
}

.arrow-down {
  animation: float 2s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
}

/* ===== Mission Section ===== */
.mission-section {
  background-color: var(--white);
}

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

.mission-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-slow);
}

.mission-image:hover {
  transform: scale(1.02);
}

.mission-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  margin: 0 auto;
}

/* ===== Services Section ===== */
.services-section {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.service-card {
  height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  display: flex;
  flex-direction: column;
}

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

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

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

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

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

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

/* ===== Statistics Section ===== */
.statistics-section {
  background-color: var(--light-gray);
  padding: var(--space-lg) 0;
}

.stat-widget {
  text-align: center;
  padding: var(--space-md);
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-medium);
  height: 100%;
}

.stat-widget:hover {
  transform: translateY(-5px);
}

.stat-icon {
  color: var(--primary-color);
  margin-bottom: var(--space-sm);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
  color: var(--secondary-color);
  font-family: var(--font-heading);
}

.stat-label {
  font-size: 1rem;
  color: var(--text-medium);
  font-family: var(--font-heading);
}

/* ===== Projects Section ===== */
.projects-section {
  background-color: var(--white);
}

.project-card {
  height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  display: flex;
  flex-direction: column;
}

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

/* ===== Innovation Section ===== */
.innovation-section {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.feature-box {
  text-align: center;
  padding: var(--space-md);
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-medium);
  height: 100%;
}

.feature-box:hover {
  transform: translateY(-5px);
}

.icon-container {
  color: var(--primary-color);
  margin-bottom: var(--space-sm);
}

/* ===== Insights Section ===== */
.insights-section {
  background-color: var(--white);
}

.insight-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: var(--space-md);
}

.insight-map img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  margin: 0 auto;
}

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

.external-resources {
  margin-top: var(--space-lg);
}

.resource-card {
  padding: var(--space-md);
  background-color: var(--light-gray);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  transition: transform var(--transition-medium);
}

.resource-card:hover {
  transform: translateY(-5px);
}

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

.resource-card .description {
  font-size: 0.9rem;
  color: var(--text-medium);
}

/* ===== Testimonials Section ===== */
.testimonials-section {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--white);
}

.testimonial-card {
  height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-medium);
  display: flex;
  flex-direction: column;
  text-align: center;
}

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

.testimonial-avatar {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-md);
  border-radius: var(--radius-round);
  overflow: hidden;
  border: 3px solid var(--primary-color);
}

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

.testimonial-text {
  font-style: italic;
  position: relative;
  padding: 0 var(--space-md);
}

.testimonial-text::before,
.testimonial-text::after {
  content: '"';
  font-size: 2rem;
  color: var(--primary-light);
  position: absolute;
}

.testimonial-text::before {
  top: -10px;
  left: 0;
}

.testimonial-text::after {
  bottom: -20px;
  right: 0;
}

.testimonial-author {
  font-weight: 700;
  color: var(--primary-color);
}

.testimonial-position {
  font-size: 0.9rem;
  color: var(--text-medium);
}

/* ===== Press Section ===== */
.press-section {
  background-color: var(--light-gray);
}

.press-card {
  height: 100%;
  padding: var(--space-md);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  background-color: var(--white);
  transition: transform var(--transition-medium);
}

.press-card:hover {
  transform: translateY(-5px);
}

.press-date {
  font-size: 0.9rem;
  color: var(--medium-gray);
}

/* ===== Contact Section ===== */
.contact-section {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

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

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--space-md);
}

.contact-item i {
  color: var(--primary-color);
  margin-right: var(--space-md);
}

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

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

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

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

.label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--text-dark);
}

.input,
.textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.input:focus,
.textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(59, 95, 217, 0.2);
}

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

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

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

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

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

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

.social-links a {
  color: var(--light-gray);
  transition: color var(--transition-fast);
  display: inline-block;
  margin-bottom: var(--space-xs);
}

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

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

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

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

.terms-content,
.privacy-content {
  background-color: var(--white);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* ===== Cookie Consent ===== */
#cookieConsent {
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
}

#acceptCookies {
  background-color: var(--tertiary-color);
  color: var(--white);
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

#acceptCookies:hover {
  background-color: var(--tertiary-dark);
}

/* ===== Animation Classes ===== */
.parallax-element {
  transition: transform var(--transition-slow);
}

/* ===== Utility Classes ===== */
.is-centered {
  text-align: center;
}

.mt-6 {
  margin-top: 3rem;
}

.mb-6 {
  margin-bottom: 3rem;
}

.mb-5 {
  margin-bottom: 2.5rem;
}

.mb-4 {
  margin-bottom: 1.5rem;
}

.mb-3 {
  margin-bottom: 1rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mr-3 {
  margin-right: 1rem;
}

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

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

/* ===== Responsive Styles ===== */
@media screen and (max-width: 1023px) {
  .navbar-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: var(--shadow-md);
    padding: var(--space-md);
  }
  
  .navbar-menu.is-active {
    display: block;
  }
  
  .navbar-burger {
    display: block;
  }
  
  .navbar-end {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .navbar-item {
    padding: var(--space-sm) 0;
    width: 100%;
  }
  
  .columns.is-multiline {
    display: flex;
    flex-wrap: wrap;
  }
  
  .column {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: var(--space-md);
  }
}

@media screen and (min-width: 768px) and (max-width: 1023px) {
  .column.is-half, 
  .column.is-one-third, 
  .column.is-one-quarter {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media screen and (max-width: 767px) {
  :root {
    --space-lg: 3rem;
    --space-xl: 5rem;
  }
  
  .hero {
    text-align: center;
  }
  
  .hero-body .title {
    font-size: 2.5rem;
  }
  
  .hero-body .subtitle {
    font-size: 1.5rem;
  }
  
  .service-card,
  .project-card,
  .testimonial-card {
    margin-bottom: var(--space-md);
  }
  
  .contact-form {
    padding: var(--space-md);
  }
  .navbar-brand {
    width: 100%;
  }

  .hero-body {
    padding: 120px 0 40px !important;
  }
  .section {
    padding: 3rem 0 !important;
  }
  .columns.is-multiline {
    flex-direction: column !important;
  }
}

.hero.is-fullheight {
  height: max-content;
}