:root {
  /* Primary color palette - Split-complementary scheme */
  --primary-color: #4a7aff;
  --primary-dark: #3558b3;
  --primary-light: #6b92ff;
  --secondary-color: #ff7a4a;
  --secondary-dark: #d86035;
  --secondary-light: #ff9470;
  --tertiary-color: #4aff7a;
  --tertiary-dark: #35b350;
  --tertiary-light: #70ff9d;

  /* Neutral colors */
  --dark: #222222;
  --dark-gray: #444444;
  --medium-gray: #777777;
  --light-gray: #f0f0f0;
  --white: #ffffff;

  /* Glassmorphism variables */
  --glass-bg: rgba(255, 255, 255, 0.15);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-shadow: rgba(0, 0, 0, 0.1);
  --glass-blur: 10px;

  /* Typography */
  --title-font: 'Oswald', sans-serif;
  --body-font: 'Nunito', sans-serif;

  /* Transitions */
  --transition-fast: 0.3s ease;
  --transition-medium: 0.5s ease;
  --transition-slow: 0.8s ease;

  /* Spacing */
  --section-spacing: 5rem;
  --element-spacing: 2rem;
}

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

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

h1, h2, h3, h4, h5, h6, .title, .subtitle {
  font-family: var(--title-font);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.5rem;
}

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

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

img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

/* Buttons */
.button {
  transition: all var(--transition-fast);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.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);
  color: var(--white);
}

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

.button.is-outlined {
  border-width: 2px;
}

.button.is-rounded {
  border-radius: 9999px;
}

/* Navbar */
.navbar {
  backdrop-filter: blur(var(--glass-blur));
  background-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all var(--transition-medium);
}

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

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

.navbar-burger {
  height: 3.25rem;
  width: 3.25rem;
}

/* Hero Section */
.hero {
  position: relative;
  margin-top: -3.25rem;
  padding-top: 3.25rem;
}

.hero.is-fullheight {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.section-parallax {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%);
  z-index: 1;
}

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

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

.hero .title {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.hero .subtitle {
  font-size: 2rem;
  margin-bottom: 2rem;
}

/* Glassmorphism Cards */
.glassmorphism {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: 0 8px 32px var(--glass-shadow);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  overflow: hidden;
}

.glassmorphism:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px var(--glass-shadow);
}

.card {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.card-image {
  width: 100%;
  height: 240px;
  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 {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-content .title {
  margin-bottom: 1rem;
}

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

/* Section Styling */
.section {
  padding: 5rem 1.5rem;
  position: relative;
}

.section:nth-child(odd) {
  background-color: var(--light-gray);
  background-image: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
}

.section .title.is-2 {
  position: relative;
  display: inline-block;
  margin-bottom: 3rem;
  color: var(--dark);
}

.section .title.is-2:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

/* Features Section */
.feature-section .card {
  margin-bottom: 2rem;
  text-align: center;
}

.feature-section .card-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.feature-section .card-content .title {
  color: var(--dark);
}

/* Services Section */
.services-section .card {
  margin-bottom: 2rem;
}

.services-section .card-content {
  padding: 2rem;
}

.services-section .title {
  color: var(--dark);
}

/* Research Section */
.research-section .content {
  height: 100%;
}

.research-section .image-container {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.research-section .image-container img {
  max-height: 600px;
  object-fit: cover;
}

.accordion-container {
  margin-top: 2rem;
}

.accordion {
  margin-bottom: 1rem;
}

.accordion-header button {
  width: 100%;
  text-align: left;
  border-radius: 8px;
  padding: 1rem;
  background-color: var(--primary-color);
  color: var(--white);
  font-weight: 600;
  transition: background-color var(--transition-fast);
}

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

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

.accordion-content {
  padding: 1rem;
  background-color: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: 0 0 8px 8px;
}

/* Innovation Section */
.innovation-section .info-card {
  height: 100%;
}

.innovation-section .info-card ul {
  padding-left: 1rem;
}

.innovation-section .info-card li {
  margin-bottom: 0.75rem;
}

/* Workshops Section */
.workshops-section .card {
  margin-bottom: 2rem;
}

.workshops-section .tag {
  margin-right: 0.5rem;
}

/* Events Section */
.events-section .card {
  margin-bottom: 2rem;
}

.events-section .card-content p.mb-3 {
  font-weight: 600;
  color: var(--primary-color);
}

/* Behind the Scenes Section */
.behind-scenes-section .image-container {
  height: 100%;
  display: flex;
  justify-content: center;
}

.behind-scenes-section .image-container img {
  max-height: 600px;
}

.timeline {
  margin-top: 2rem;
  position: relative;
}

.timeline:before {
  content: '';
  position: absolute;
  top: 0;
  left: 7px;
  height: 100%;
  width: 2px;
  background: var(--primary-color);
}

.timeline-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 2rem;
}

.timeline-marker {
  position: absolute;
  top: 5px;
  left: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary-color);
  border: 2px solid var(--white);
}

.timeline-content .title {
  margin-bottom: 0.5rem;
}

/* Careers Section */
.careers-section .card {
  margin-bottom: 2rem;
  height: 100%;
}

/* Contact Section */
.contact-section .content {
  height: 100%;
}

.contact-section form .input,
.contact-section form .textarea,
.contact-section form .select select {
  background-color: rgba(255, 255, 255, 0.8);
  transition: background-color var(--transition-fast), box-shadow var(--transition-fast);
  border: 1px solid var(--light-gray);
}

.contact-section form .input:focus,
.contact-section form .textarea:focus,
.contact-section form .select select:focus {
  background-color: var(--white);
  box-shadow: 0 0 0 2px rgba(74, 122, 255, 0.25);
}

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

.contact-info {
  margin-top: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.contact-item .icon {
  margin-right: 1rem;
}

.map-container {
  margin-top: 2rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-links {
  margin-top: 2rem;
}

.social-links .buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Footer */
.footer {
  background-color: var(--dark);
  color: var(--white);
  padding: 4rem 1.5rem 2rem;
}

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

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

.footer ul li {
  margin-bottom: 0.75rem;
}

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

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

.footer .social-links a {
  display: inline-block;
  margin-right: 1rem;
  color: var(--light-gray);
  font-weight: 600;
  transition: color var(--transition-fast);
}

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

.footer .content.has-text-centered {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cookie Consent */
#cookie-consent {
  background-color: rgba(0, 0, 0, 0.85);
  color: var(--white);
  padding: 15px;
  text-align: center;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  backdrop-filter: blur(5px);
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.15);
}

#accept-cookies {
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 8px 20px;
  margin-top: 10px;
  cursor: pointer;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color var(--transition-fast);
}

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

/* Animations */
.animate-element {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-medium), transform var(--transition-medium);
}

.animate-element.animated {
  opacity: 1;
  transform: translateY(0);
}

.animate-section {
  position: relative;
}

/* Success Page */
.success-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
}

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

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

.success-message .title {
  color: var(--dark);
  margin-bottom: 1.5rem;
}

.success-message p {
  color: var(--dark-gray);
  margin-bottom: 2rem;
}

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

.privacy-page .content, .terms-page .content {
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  padding: 2rem;
}

.privacy-page h2, .terms-page h2 {
  color: var(--dark);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.privacy-page p, .terms-page p {
  color: var(--dark-gray);
  margin-bottom: 1.5rem;
}

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

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

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

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

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

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

.has-shadow {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

/* Media Queries */
@media screen and (max-width: 768px) {
  .hero .title {
    font-size: 2.5rem;
  }
  
  .hero .subtitle {
    font-size: 1.5rem;
  }
  
  .section {
    padding: 3rem 1rem;
  }
  
  .timeline:before {
    left: 6px;
  }
  
  .timeline-marker {
    width: 12px;
    height: 12px;
  }
  
  .timeline-item {
    padding-left: 25px;
  }
}

@media screen and (max-width: 480px) {
  .hero .title {
    font-size: 2rem;
  }
  
  .hero .subtitle {
    font-size: 1.25rem;
  }
  
  .button.is-large {
    font-size: 1rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}