/* ==== CSS Variables ==== */
:root {
  /* Triad Color Scheme */
  --primary-color: #3273dc;
  --primary-dark: #255cad;
  --primary-light: #5e90e5;
  
  --secondary-color: #dc3264;
  --secondary-dark: #b32550;
  --secondary-light: #e5608e;
  
  --tertiary-color: #32dc64;
  --tertiary-dark: #28ad50;
  --tertiary-light: #60e58e;
  
  /* Neutral Colors */
  --dark: #2c3e50;
  --light: #f5f7fa;
  --gray: #95a5a6;
  --gray-light: #ecf0f1;
  --gray-dark: #7f8c8d;
  
  /* Typography */
  --heading-font: 'Oswald', sans-serif;
  --body-font: 'Nunito', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 5rem;
  
  /* Transitions */
  --transition-fast: 0.3s ease;
  --transition-medium: 0.5s ease;
  --transition-slow: 0.8s ease;
  
  /* Shadows */
  --shadow-small: 0 2px 5px rgba(0,0,0,0.1);
  --shadow-medium: 0 5px 15px rgba(0,0,0,0.07);
  --shadow-large: 0 10px 25px rgba(0,0,0,0.05);
  
  /* Border Radius */
  --radius-small: 3px;
  --radius-medium: 5px;
  --radius-large: 10px;
  --radius-round: 50%;
}

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

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

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

p {
  margin-bottom: var(--spacing-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;
}

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

.mb-0 {
  margin-bottom: 0;
}

.mb-1 {
  margin-bottom: var(--spacing-xs);
}

.mb-2 {
  margin-bottom: var(--spacing-sm);
}

.mb-3 {
  margin-bottom: var(--spacing-md);
}

.mb-4 {
  margin-bottom: var(--spacing-lg);
}

.mb-5 {
  margin-bottom: var(--spacing-xl);
}

.mt-0 {
  margin-top: 0;
}

.mt-1 {
  margin-top: var(--spacing-xs);
}

.mt-2 {
  margin-top: var(--spacing-sm);
}

.mt-3 {
  margin-top: var(--spacing-md);
}

.mt-4 {
  margin-top: var(--spacing-lg);
}

.mt-5 {
  margin-top: var(--spacing-xl);
}

/* ==== Navigation ==== */
.navbar {
  background-color: white;
  box-shadow: var(--shadow-medium);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: background-color var(--transition-medium), box-shadow var(--transition-medium);
}

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

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

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

.navbar-brand .title {
  color: var(--primary-color);
  margin-bottom: 0;
}

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

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(44, 62, 80, 0.7), rgba(0, 0, 0, 0.4));
}

.hero .title,
.hero .subtitle,
.hero p {
  color: white !important;
  position: relative;
  z-index: 2;
}

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

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

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

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

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

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

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

.card-image {
  width: 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-medium);
}

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

.card-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card .title {
  color: var(--dark);
  transition: color var(--transition-fast);
}

.card:hover .title {
  color: var(--primary-color);
}

.card .subtitle {
  color: var(--secondary-color);
}

.card .content {
  flex-grow: 1;
}

/* ==== Section Styles ==== */
.section {
  padding: var(--spacing-xl) 0;
}

.section .title {
  position: relative;
  display: inline-block;
  margin-bottom: var(--spacing-md);
}

.section .title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
  transition: width var(--transition-medium);
}

.section .title.is-2.has-text-centered::after {
  left: 50%;
  transform: translateX(-50%);
}

.section:hover .title::after {
  width: 100px;
}

.section.has-background-light {
  background-color: var(--gray-light) !important;
}

/* ==== Vision Section ==== */
#vision .content p {
  margin-bottom: var(--spacing-md);
}

#vision .image {
  border-radius: var(--radius-medium);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
}

/* ==== Case Studies Section ==== */
#case-studies .card {
  margin-bottom: var(--spacing-md);
}

#case-studies .card-image {
  height: 225px;
}

#case-studies .card-content .title {
  font-size: 1.5rem;
}

/* ==== Behind The Scenes Section ==== */
#behind-scenes .image {
  border-radius: var(--radius-medium);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
}

#behind-scenes .content p {
  margin-bottom: var(--spacing-md);
}

/* ==== Innovation Section ==== */
#innovation .card-image {
  height: 225px;
}

/* ==== Testimonials Section ==== */
.custom-slider {
  position: relative;
  overflow: hidden;
  padding: 0 var(--spacing-md);
}

.slider-container {
  display: flex;
  transition: transform var(--transition-medium);
}

.slide {
  flex: 0 0 100%;
  padding: 0 var(--spacing-sm);
}

.slider-controls {
  display: flex;
  justify-content: center;
  margin-top: var(--spacing-md);
}

.prev-button,
.next-button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--radius-round);
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  cursor: pointer;
  margin: 0 var(--spacing-xs);
  transition: background-color var(--transition-fast);
}

.prev-button:hover,
.next-button:hover {
  background-color: var(--primary-dark);
}

.media-left .image.is-64x64 {
  overflow: hidden;
  border-radius: var(--radius-round);
  border: 3px solid var(--primary-light);
}

/* ==== Events Section ==== */
#events .card-image {
  height: 225px;
}

#events .button {
  margin-top: var(--spacing-sm);
}

/* ==== Contact Section ==== */
#contact .card {
  height: 100%;
}

#contact .card-image {
  height: 300px;
}

#contact form .field:not(:last-child) {
  margin-bottom: var(--spacing-sm);
}

#contact .label {
  font-weight: 600;
}

#contact .input,
#contact .textarea,
#contact .select select {
  border-radius: var(--radius-small);
  transition: border-color var(--transition-fast);
}

#contact .input:focus,
#contact .textarea:focus,
#contact .select select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(50, 115, 220, 0.25);
}

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

.footer .title {
  color: white;
}

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

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

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

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

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

.footer .social-links {
  margin-bottom: var(--spacing-sm);
}

.footer .social-links a {
  color: var(--gray-light);
  margin-right: var(--spacing-xs);
  transition: color var(--transition-fast);
}

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

.footer .input {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.1);
  color: white;
}

.footer .input::placeholder {
  color: var(--gray);
}

/* ==== Cookie Consent ==== */
#cookie-consent {
  background-color: rgba(0, 0, 0, 0.9);
  color: white;
  padding: var(--spacing-md);
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  text-align: center;
}

#accept-cookies {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 8px 15px;
  margin-top: var(--spacing-xs);
  cursor: pointer;
  border-radius: var(--radius-small);
  transition: background-color var(--transition-fast);
}

#accept-cookies:hover {
  background-color: var(--primary-dark);
}

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

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

.success-message {
  margin-bottom: var(--spacing-md);
}

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

.privacy-page .content,
.terms-page .content {
  padding: var(--spacing-md);
}

/* ==== Responsive Adjustments ==== */
@media screen and (max-width: 768px) {
  .section {
    padding: var(--spacing-lg) 0;
  }
  
  .hero .title {
    font-size: 2.5rem !important;
  }
  
  .hero .subtitle {
    font-size: 1.5rem !important;
  }
  
  .card {
    margin-bottom: var(--spacing-md);
  }
  
  .columns.is-vcentered {
    flex-direction: column-reverse;
  }
  
  .column {
    padding: var(--spacing-sm);
  }
  
  .footer .column {
    margin-bottom: var(--spacing-md);
  }
}

/* ==== Animation Styles ==== */
.animate__animated {
  animation-duration: 1s;
}

/* Enhance existing Animate.css animations */
.animate__fadeInUp {
  animation-name: fadeInUp;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* ==== Slider Scripts ==== */
.slider-container {
  display: flex;
  transition: transform 0.5s ease;
}

.slide {
  flex: 0 0 100%;
  padding: 0 15px;
}

/* ==== Additional Animations ==== */
.card, .button, .navbar-item {
  transition: all var(--transition-medium);
}

/* Specific animations for elements */
.image img {
  transition: transform var(--transition-medium);
}

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

/* Read more links styling */
.read-more {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 600;
  margin-top: var(--spacing-xs);
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.read-more:hover {
  color: var(--primary-dark);
  transform: translateX(5px);
}

.read-more:after {
  content: " →";
  opacity: 0;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.read-more:hover:after {
  opacity: 1;
  transform: translateX(3px);
}

/* Style for inputs and form elements */
.input, .textarea, .select select {
  border-radius: var(--radius-small);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.input:focus, .textarea:focus, .select select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(50, 115, 220, 0.25);
}

/* Enhance button styles */
.button {
  font-weight: 600;
  letter-spacing: 0.5px;
}

.button.is-primary {
  background: linear-gradient(to right, var(--primary-color), var(--primary-light));
  border: none;
}

.button.is-primary:hover {
  background: linear-gradient(to right, var(--primary-dark), var(--primary-color));
}

/* Style for section transitions */
.section {
  position: relative;
  overflow: hidden;
}

/* Make sure all cards have consistent height */
.card {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card-content {
  width: 100%;
}

/* Center images in cards */
.card-image {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.card-image img {
  margin: 0 auto;
}

/* Testimonial profile images */
.media-left .image {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Social links in footer */
.social-links a {
  display: inline-block;
  margin-right: 10px;
  font-weight: 600;
  color: var(--gray-light);
  transition: color var(--transition-fast), transform var(--transition-fast);
}

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