:root {
  /* Primary colors */
  --primary-color: #6a4de0;
  --primary-dark: #5038c0;
  --primary-light: #8b74e8;
  
  /* Secondary colors */
  --secondary-color: #ff7b54;
  --secondary-dark: #e56a45;
  --secondary-light: #ff9776;
  
  /* Accent colors */
  --accent-color: #30d8c4;
  --accent-dark: #25b8a7;
  --accent-light: #4feadc;
  
  /* Neutral colors */
  --dark-color: #333333;
  --dark-light: #555555;
  --light-color: #f8f9fa;
  --light-dark: #e9ecef;
  
  /* Text colors */
  --text-dark: #222222;
  --text-light: #ffffff;
  --text-muted: #6c757d;
  
  /* Shadows for neumorphism */
  --nm-shadow-light: 8px 8px 16px rgba(200, 200, 200, 0.25);
  --nm-shadow-dark: -8px -8px 16px rgba(255, 255, 255, 0.15);
  --nm-shadow-inset: inset 4px 4px 8px rgba(200, 200, 200, 0.25), 
                     inset -4px -4px 8px rgba(255, 255, 255, 0.15);
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  --gradient-secondary: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
  --gradient-accent: linear-gradient(135deg, var(--accent-color), var(--accent-light));
  --gradient-dark: linear-gradient(135deg, var(--dark-color), var(--dark-light));
  --gradient-light: linear-gradient(135deg, var(--light-color), var(--light-dark));
  
  /* Border radius */
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 20px;
  
  /* Transitions */
  --transition-fast: 0.3s ease;
  --transition-normal: 0.5s ease;
  --transition-slow: 0.8s ease;
}

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

body {
  font-family: 'Lato', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--light-color);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.title {
  position: relative;
  z-index: 1;
}

.title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.subtitle {
  color: var(--text-muted);
}

/* Button Styles */
.button {
  position: relative;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  overflow: hidden;
  z-index: 1;
}

.button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-100%);
  transition: transform var(--transition-normal);
  z-index: -1;
}

.button:hover {
  transform: translateY(-5px);
  box-shadow: var(--nm-shadow-light);
}

.button:hover::before {
  transform: translateX(0);
}

.button.is-primary {
  background: var(--gradient-primary);
  border: none;
  font-weight: 600;
  letter-spacing: 0.5px;
}

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

.button.is-light {
  background: var(--light-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

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

.button.is-dark {
  background: var(--dark-color);
  color: var(--text-light);
}

.button.is-fullwidth {
  display: block;
  width: 100%;
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background-color var(--transition-fast);
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-item img {
  max-height: 2.5rem;
}

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

.navbar-menu.is-active {
  box-shadow: 0 8px 16px rgba(10, 10, 10, 0.1);
}

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

.navbar-item:hover, .navbar-item:focus {
  color: var(--primary-color) !important;
  background-color: transparent !important;
}

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

.hero-body {
  display: flex;
  align-items: center;
  min-height: 90vh;
}

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

.hero .buttons {
  margin-top: 2rem;
}

.phone-mockup {
  position: relative;
  transform: perspective(1000px) rotateY(-15deg);
  transition: transform var(--transition-normal);
  box-shadow: var(--nm-shadow-light);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
}

.phone-mockup:hover {
  transform: perspective(1000px) rotateY(0deg) translateY(-10px);
}

.phone-mockup img {
  border-radius: var(--border-radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-light);
  font-size: 2rem;
  animation: bounce 2s infinite;
}

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

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

.section:nth-child(odd) {
  background-color: var(--light-color);
}

.section:nth-child(even) {
  background-color: var(--light-dark);
}

/* Neumorphism Card Design */
.card {
  background: var(--light-color);
  border-radius: var(--border-radius-md);
  box-shadow: var(--nm-shadow-light), var(--nm-shadow-dark);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
}

.card-image {
  width: 100%;
  height: 240px;
  overflow: hidden;
}

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

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

.card-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  text-align: center;
}

.card .title {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.card .subtitle {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

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

.card .button {
  margin-top: auto;
}

/* Image Containers */
.image-container {
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--nm-shadow-light);
  transition: transform var(--transition-normal);
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.image-container:hover {
  transform: translateY(-5px);
}

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

/* About Section */
.about-section {
  background-color: var(--light-color);
}

/* Vision Section */
.vision-section {
  background-color: var(--light-dark);
}

/* Research Section */
.research-section {
  background-color: var(--light-color);
}

.timeline-container {
  margin-top: 4rem;
}

.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
}

.timeline-item:nth-child(even) {
  justify-content: flex-end;
}

.timeline-marker {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary-color);
  z-index: 1;
  box-shadow: 0 0 0 4px var(--light-color);
}

.timeline-content {
  width: 45%;
  padding: 1.5rem;
  background: var(--light-color);
  border-radius: var(--border-radius-md);
  box-shadow: var(--nm-shadow-light), var(--nm-shadow-dark);
}

.timeline-content .heading {
  color: var(--primary-color);
  font-weight: bold;
  margin-bottom: 0.5rem;
}

/* Events Section */
.events-section {
  background-color: var(--light-dark);
}

/* Resources Section */
.resources-section {
  background-color: var(--light-color);
}

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

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

/* Sustainability Section */
.sustainability-section {
  background-color: var(--light-dark);
}

/* Switch Toggle for Sustainability Section */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
  margin-right: 15px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: var(--transition-fast);
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: var(--transition-fast);
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--primary-color);
}

input:focus + .slider {
  box-shadow: 0 0 1px var(--primary-color);
}

input:checked + .slider:before {
  transform: translateX(26px);
}

.switch-label {
  position: absolute;
  left: 70px;
  top: 8px;
  white-space: nowrap;
}

/* Webinars Section */
.webinars-section {
  background-color: var(--light-color);
}

/* Careers Section */
.careers-section {
  background-color: var(--light-dark);
}

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

.contact-section .field {
  margin-bottom: 1.5rem;
}

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

.contact-section .input,
.contact-section .textarea,
.contact-section .select select {
  background-color: var(--light-color);
  border: 2px solid var(--light-dark);
  border-radius: var(--border-radius-sm);
  box-shadow: var(--nm-shadow-inset);
  transition: border-color var(--transition-fast);
}

.contact-section .input:focus,
.contact-section .textarea:focus,
.contact-section .select select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.125em rgba(106, 77, 224, 0.25);
}

.contact-section .button {
  margin-top: 1rem;
}

.contact-info {
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.info-item {
  margin-bottom: 2rem;
}

.info-item h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

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

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

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

.footer .title::after {
  display: none;
}

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

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

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

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

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

.social-links a {
  margin-right: 10px;
  color: var(--light-dark);
  transition: color var(--transition-fast);
}

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

/* Success Page */
.success-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: var(--gradient-light);
}

.success-content {
  text-align: center;
  padding: 3rem;
  background-color: var(--light-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--nm-shadow-light), var(--nm-shadow-dark);
  max-width: 600px;
  width: 90%;
}

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

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

.page-content .container {
  background-color: var(--light-color);
  border-radius: var(--border-radius-md);
  box-shadow: var(--nm-shadow-light);
  padding: 2rem;
}

/* Cookie Consent */
#cookie-consent {
  border-top: 4px solid var(--primary-color);
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
}

#accept-cookies {
  transition: background-color var(--transition-fast);
}

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

/* Media Queries */
@media screen and (max-width: 1023px) {
  .timeline::before {
    left: 30px;
  }
  
  .timeline-item,
  .timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-left: 60px;
  }
  
  .timeline-marker {
    left: 30px;
  }
  
  .timeline-content {
    width: 100%;
  }
  
  .hero-body {
    min-height: 70vh;
  }
}

@media screen and (max-width: 768px) {
  .section {
    padding: 3rem 1rem;
  }
  
  .title {
    font-size: 1.75rem !important;
  }
  
  .subtitle {
    font-size: 1.25rem !important;
  }
  
  .hero .title {
    font-size: 2rem !important;
  }
  
  .hero .subtitle {
    font-size: 1.5rem !important;
  }
  
  .card {
    margin-bottom: 2rem;
  }
  
  .phone-mockup {
    transform: none;
    margin-top: 2rem;
  }
  
  .phone-mockup:hover {
    transform: translateY(-10px);
  }
  
  .image-container {
    margin-top: 2rem;
  }
}

/* Animation Keyframes */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Utility Classes */
.has-background-gradient-primary {
  background: var(--gradient-primary);
}

.has-background-gradient-secondary {
  background: var(--gradient-secondary);
}

.has-background-gradient-accent {
  background: var(--gradient-accent);
}

.has-text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.is-rounded {
  border-radius: var(--border-radius-md);
}

.is-rounded-lg {
  border-radius: var(--border-radius-lg);
}

.is-shadow-nm {
  box-shadow: var(--nm-shadow-light), var(--nm-shadow-dark);
}

.is-shadow-nm-inset {
  box-shadow: var(--nm-shadow-inset);
}

.has-animation-fade {
  animation: fadeIn var(--transition-normal);
}

.has-animation-slide {
  animation: slideUp var(--transition-normal);
}

.has-animation-pulse {
  animation: pulse 2s infinite;
}

/* Read More Links */
.read-more {
  color: var(--primary-color);
  font-weight: 600;
  position: relative;
  display: inline-block;
  padding-right: 1.5rem;
  transition: transform var(--transition-fast);
}

.read-more::after {
  content: '→';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: transform var(--transition-fast);
}

.read-more:hover {
  transform: translateX(5px);
  text-decoration: none !important;
}

.read-more:hover::after {
  transform: translate(5px, -50%);
}

/* Ensure proper spacing for titles */
.title:not(:first-child) {
  margin-top: 2rem;
}

/* Style for figure captions */
figcaption {
  font-style: italic;
  text-align: center;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* Ensure images don't overflow their containers */
img {
  max-width: 100%;
  height: auto;
}