/* Global Variables */
:root {
  /* Primary Colors */
  --primary-color: #2a4365;
  --primary-light: #3c5c8d;
  --primary-dark: #1a365d;
  
  /* Secondary Colors */
  --secondary-color: #718096;
  --secondary-light: #a0aec0;
  --secondary-dark: #4a5568;
  
  /* Accent Colors */
  --accent-color: #3182ce;
  --accent-light: #4299e1;
  --accent-dark: #2b6cb0;
  
  /* Neutral Colors */
  --neutral-100: #f7fafc;
  --neutral-200: #edf2f7;
  --neutral-300: #e2e8f0;
  --neutral-400: #cbd5e0;
  --neutral-500: #a0aec0;
  --neutral-600: #718096;
  --neutral-700: #4a5568;
  --neutral-800: #2d3748;
  --neutral-900: #1a202c;
  
  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.15);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-shadow: rgba(0, 0, 0, 0.1);
  
  /* Fonts */
  --heading-font: 'Manrope', sans-serif;
  --body-font: 'Rubik', sans-serif;
  
  /* Transitions */
  --transition-fast: 0.3s ease;
  --transition-medium: 0.5s ease;
  --transition-slow: 0.8s ease;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 2rem;
  --radius-full: 9999px;
}

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

body {
  font-family: var(--body-font);
  color: var(--neutral-800);
  background-color: var(--neutral-100);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--neutral-900);
}

p {
  margin-bottom: 1.5rem;
}

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

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

.section {
  padding: 5rem 0;
  position: relative;
}

.section-title {
  position: relative;
  margin-bottom: 1.5rem;
  color: var(--primary-dark);
  font-weight: 800;
}

.section-subtitle {
  color: var(--secondary-color);
  margin-bottom: 3rem;
  font-weight: 400;
}

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

.glassmorphism:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Button Styles */
.button {
  font-family: var(--heading-font);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.button::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.1);
  z-index: -2;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-fast);
}

.button:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

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

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

.button.is-outlined.is-light {
  border-color: var(--neutral-100);
  color: var(--neutral-100);
}

.button.is-outlined.is-light:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Navbar Styles */
.navbar {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all var(--transition-fast);
}

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

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

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

.navbar-menu.is-active {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Hero Section */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  transform: scale(1.05);
  transition: transform 2s ease;
}

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

.hero-title, .hero-subtitle, .hero-text {
  color: #FFFFFF !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  font-weight: 800;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.hero-text {
  font-size: 1.2rem;
  max-width: 600px;
  margin-bottom: 2rem;
}

.hero-waves {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1;
  line-height: 0;
}

.hero-waves svg {
  width: 100%;
  height: auto;
}

/* Services Section */
.services-section {
  background-color: var(--neutral-100);
  padding-top: 6rem;
  padding-bottom: 6rem;
}

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

.card-image {
  width: 100%;
  overflow: hidden;
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  text-align: center;
}

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

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

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

.progress-container {
  margin-top: auto;
  padding-top: 1.5rem;
}

.progress-bar {
  height: 8px;
  background-color: var(--neutral-300);
  border-radius: var(--radius-full);
  position: relative;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: var(--width, 0%);
  background-color: var(--primary-color);
  border-radius: var(--radius-full);
  transition: width 1.5s ease;
}

.progress-bar[data-value="95"]::before {
  --width: 95%;
}

.progress-bar[data-value="90"]::before {
  --width: 90%;
}

.progress-bar[data-value="85"]::before {
  --width: 85%;
}

.progress-text {
  position: absolute;
  right: 0;
  top: -20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-color);
}

.progress-label {
  font-size: 0.8rem;
  color: var(--neutral-600);
}

/* Case Studies / Timeline Section */
.case-studies-section {
  background-color: var(--neutral-200);
  position: relative;
}

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

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background-color: var(--primary-light);
  transform: translateX(-50%);
}

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

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

.timeline-content {
  width: 45%;
  margin-left: auto;
  position: relative;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: 0;
  margin-right: auto;
}

/* External Resources Section */
.external-resources-section {
  background-color: var(--neutral-100);
}

/* Sustainability Section */
.sustainability-section {
  background-color: var(--neutral-200);
  position: relative;
}

.sustainability-section .card-image {
  height: 250px;
}

/* FAQ Section */
.faq-section {
  background-color: var(--neutral-100);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.faq-question:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.faq-toggle {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  transition: transform var(--transition-fast);
}

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

.faq-answer p {
  padding-bottom: 1.5rem;
}

/* Events Calendar Section */
.events-section {
  background-color: var(--neutral-200);
  position: relative;
}

.events-carousel {
  position: relative;
  overflow: hidden;
  padding: 2rem;
}

.events-carousel-inner {
  display: flex;
  transition: transform var(--transition-medium);
}

.events-carousel-item {
  flex: 0 0 100%;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity var(--transition-medium), transform var(--transition-medium);
  display: none;
}

.events-carousel-item.active {
  opacity: 1;
  transform: scale(1);
  display: block;
}

.event-card {
  display: flex;
  padding: 1.5rem;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-lg);
}

.event-date {
  flex: 0 0 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color);
  color: white;
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-right: 1.5rem;
  text-align: center;
}

.event-date .day {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
}

.event-date .month {
  font-size: 0.9rem;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

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

.event-location {
  color: var(--neutral-600);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.event-description {
  margin-bottom: 1.5rem;
}

.events-carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1.5rem;
}

.carousel-control {
  background-color: var(--primary-color);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border: none;
  font-size: 1.2rem;
  margin: 0 0.5rem;
  transition: background-color var(--transition-fast);
}

.carousel-control:hover {
  background-color: var(--primary-dark);
}

.carousel-indicators {
  display: flex;
  margin: 0 1rem;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--neutral-400);
  margin: 0 0.25rem;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.indicator.active {
  background-color: var(--primary-color);
}

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

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

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

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

.contact-form .label {
  color: var(--neutral-700);
  font-weight: 500;
}

.contact-form .input,
.contact-form .textarea,
.contact-form .select select {
  background-color: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--neutral-300);
  transition: all var(--transition-fast);
}

.contact-form .input:focus,
.contact-form .textarea:focus,
.contact-form .select select:focus {
  box-shadow: 0 0 0 2px var(--primary-light);
  border-color: var(--primary-light);
}

/* Footer */
.footer {
  background-color: var(--neutral-800);
  color: var(--neutral-300);
  padding: 5rem 0 2rem;
}

.footer h3 {
  color: white;
  margin-bottom: 1.5rem;
}

.footer p {
  color: var(--neutral-400);
}

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

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

.footer-links a {
  color: var(--neutral-400);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: white;
}

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

.social-links a {
  color: var(--neutral-400);
  transition: color var(--transition-fast);
  display: inline-block;
  margin-right: 1rem;
}

.social-links a:hover {
  color: white;
}

.language-selector .buttons {
  display: flex;
  gap: 0.5rem;
}

.copyright {
  border-top: 1px solid var(--neutral-700);
  padding-top: 2rem;
}

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(45, 55, 72, 0.95);
  color: white;
  padding: 1rem;
  z-index: 9999;
  display: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.cookie-content p {
  margin: 0;
  padding-right: 2rem;
}

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

.success-container {
  text-align: center;
  padding: 3rem;
  background-color: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 600px;
}

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

/* Static Pages (Privacy, Terms) */
.static-page {
  padding-top: 100px;
  padding-bottom: 5rem;
}

.static-page .container {
  max-width: 800px;
}

.static-page h1 {
  margin-bottom: 2rem;
}

.static-page h2 {
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
}

/* Responsive Styles */
@media screen and (max-width: 1023px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.5rem;
  }
  
  .timeline::before {
    left: 20px;
  }
  
  .timeline-marker {
    left: 20px;
  }
  
  .timeline-content {
    width: calc(100% - 50px);
    margin-left: 50px !important;
  }
  
  .timeline-item:nth-child(even) .timeline-content {
    margin-right: 0;
  }
  
  .event-card {
    flex-direction: column;
  }
  
  .event-date {
    margin-right: 0;
    margin-bottom: 1rem;
    align-self: flex-start;
  }
}

@media screen and (max-width: 768px) {
  .section {
    padding: 4rem 0;
  }

  .navbar.is-fixed-top {
    position: relative !important;
  }

  .footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  body {
    padding-top: 0 !important;
  }

  .static-page {
    padding-top: 60px;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .card-content {
    padding: 1.5rem;
  }
  
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-content p {
    padding-right: 0;
    margin-bottom: 1rem;
  }
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 1s ease forwards;
}

.slide-up {
  animation: slideUp 0.8s ease forwards;
}

.slide-in-left {
  animation: slideInLeft 0.8s ease forwards;
}

.slide-in-right {
  animation: slideInRight 0.8s ease forwards;
}

.zoom-in {
  animation: zoomIn 0.8s ease forwards;
}

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

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

@keyframes slideInLeft {
  from { 
    opacity: 0;
    transform: translateX(-50px);
  }
  to { 
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes zoomIn {
  from { 
    opacity: 0;
    transform: scale(0.9);
  }
  to { 
    opacity: 1;
    transform: scale(1);
  }
}

/* Utility Classes */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

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

.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.font-light { font-weight: 300; }

.text-white { color: white; }
.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }
.text-accent { color: var(--accent-color); }

strong {
  color: inherit !important;
}

.static-page .column {
  margin-left: auto;
  margin-right: auto;
}