:root {
  /* Tetrad Color Scheme */
  --primary-color: #00a8cc; /* Blue */
  --secondary-color: #cc5c00; /* Orange */
  --tertiary-color: #cc009e; /* Magenta */
  --quaternary-color: #5ccc00; /* Green */
  
  /* Dark variants */
  --primary-dark: #0082a0;
  --secondary-dark: #a54a00;
  --tertiary-dark: #a00080;
  --quaternary-dark: #4aa000;
  
  /* Light variants */
  --primary-light: #8fe1f5;
  --secondary-light: #ffd3a9;
  --tertiary-light: #ffa0e5;
  --quaternary-light: #d0ff9e;
  
  /* Neutral colors */
  --text-dark: #222222;
  --text-medium: #555555;
  --text-light: #ffffff;
  --background-light: #f8f9fa;
  --background-medium: #e9ecef;
  --background-dark: #333333;
  
  /* Shadows and effects */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
  
  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --radius-round: 50%;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 4rem;
  
  /* Typography */
  --font-heading: 'Archivo Black', sans-serif;
  --font-body: 'Roboto', sans-serif;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Container */
  --container-width: 1200px;
  --container-padding: 2rem;
}

/* 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(--background-light);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  margin-bottom: var(--space-md);
  color: var(--text-dark);
}

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 2.8rem;
}

h3 {
  font-size: 2rem;
}

h4 {
  font-size: 1.5rem;
}

p {
  margin-bottom: var(--space-md);
  color: var(--text-medium);
}

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;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-lg);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  margin: var(--space-sm) auto 0;
  border-radius: var(--radius-sm);
}

.section-subtitle {
  text-align: center;
  max-width: 800px;
  margin: -1rem auto var(--space-xl);
  color: var(--text-medium);
  font-size: 1.1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-medium);
  font-family: var(--font-body);
  font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(1px);
}

.primary-btn {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.primary-btn:hover {
  background-color: var(--primary-dark);
  color: var(--text-light);
}

.secondary-btn {
  background-color: var(--secondary-color);
  color: var(--text-light);
}

.secondary-btn:hover {
  background-color: var(--secondary-dark);
  color: var(--text-light);
}

/* Forms */
input, textarea, select {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: var(--space-md);
  border: 1px solid #ddd;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  transition: border var(--transition-fast);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary-color);
}

label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 500;
}

button, input[type="submit"] {
  cursor: pointer;
}

/* Animation Utilities */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.active {
  opacity: 1;
  transform: translateY(0);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  backdrop-filter: blur(10px);
  transition: background-color var(--transition-medium);
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
}

.logo a {
  color: var(--text-dark);
  text-decoration: none;
}

.logo h1 {
  margin: 0;
  font-size: 1.8rem;
}

.desktop-nav ul {
  display: flex;
  list-style: none;
}

.desktop-nav li {
  margin-left: var(--space-lg);
}

.desktop-nav a {
  color: var(--text-dark);
  position: relative;
  font-weight: 500;
}

.desktop-nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary-color);
  transition: width var(--transition-medium);
}

.desktop-nav a:hover::after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.mobile-menu-toggle span {
  width: 30px;
  height: 3px;
  background-color: var(--text-dark);
  margin: 3px 0;
  border-radius: 3px;
  transition: all var(--transition-medium);
}

.mobile-nav {
  display: none;
  background-color: var(--background-light);
  padding: var(--space-md);
}

.mobile-nav ul {
  list-style: none;
}

.mobile-nav li {
  margin-bottom: var(--space-md);
}

.mobile-nav a {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 1.1rem;
}

/* Hero Section */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--text-light);
  padding: 160px 0 100px;
  text-align: center;
}

.hero-overlay {
  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.5));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1, .hero h2, .hero p {
  color: var(--text-light);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero h1 {
  margin-bottom: var(--space-sm);
}

.hero h2 {
  font-size: 2rem;
  margin-bottom: var(--space-lg);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: var(--space-xl);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Research Section */
.research {
  padding: var(--space-xl) 0;
  background-color: var(--background-light);
}

.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.card {
  display: flex;
  flex-direction: column;
  background-color: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

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

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

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

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

.card-content {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}

.card-content h3 {
  margin-bottom: var(--space-md);
  color: var(--text-dark);
}

.progress-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  padding: var(--space-sm);
  display: flex;
  align-items: center;
}

.progress-bar {
  display: block;
  height: 5px;
  background-color: var(--primary-color);
  border-radius: var(--radius-sm);
}

.progress-text {
  color: var(--text-light);
  margin-left: var(--space-sm);
  font-weight: 500;
  font-size: 0.9rem;
}

.animated-icon {
  margin-top: var(--space-md);
  font-size: 2rem;
  color: var(--primary-color);
  transition: transform var(--transition-medium);
}

.card:hover .animated-icon {
  transform: scale(1.1) rotate(10deg);
}

/* External Resources Section */
.external-resources {
  padding: var(--space-xl) 0;
  background-color: var(--background-medium);
  position: relative;
  overflow: hidden;
}

.external-resources::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background-color: rgba(0, 168, 204, 0.1);
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  top: -100px;
  left: -100px;
  z-index: 0;
}

.external-resources::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background-color: rgba(92, 204, 0, 0.1);
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  bottom: -200px;
  right: -100px;
  z-index: 0;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
  position: relative;
  z-index: 1;
}

.resource-card {
  background-color: white;
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: transform var(--transition-medium);
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.resource-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  color: var(--primary-color);
}

.resource-card h3 {
  margin-bottom: var(--space-sm);
}

.resource-card p {
  margin-bottom: var(--space-md);
}

.resource-card a {
  color: var(--primary-color);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  transition: color var(--transition-fast);
}

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

/* Blog Section */
.blog {
  padding: var(--space-xl) 0;
  background-color: var(--background-light);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-lg);
}

.blog-card {
  background-color: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-medium);
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.blog-card .card-image {
  height: 200px;
  width: 100%;
}

.blog-card .card-content {
  padding: var(--space-lg);
  text-align: center;
}

.blog-date {
  display: block;
  margin-bottom: var(--space-sm);
  color: var(--text-medium);
  font-size: 0.9rem;
}

.read-more {
  display: inline-block;
  margin-top: var(--space-md);
  color: var(--primary-color);
  font-weight: 600;
  position: relative;
  padding-right: 20px;
}

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

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

/* Events Section */
.events {
  padding: var(--space-xl) 0;
  background-color: var(--background-medium);
  position: relative;
  overflow: hidden;
}

.events::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background-color: rgba(204, 0, 158, 0.1);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  top: -150px;
  right: -150px;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.event-card {
  background-color: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.event-date {
  background-color: var(--primary-color);
  color: white;
  text-align: center;
  padding: var(--space-sm) var(--space-md);
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

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

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

.event-image {
  position: relative;
  width: 100%;
  height: 200px;
}

.event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-content {
  padding: var(--space-lg);
  text-align: center;
}

.event-location {
  color: var(--text-medium);
  margin-bottom: var(--space-md);
  font-style: italic;
}

/* Team Section */
.team {
  padding: var(--space-xl) 0;
  background-color: var(--background-light);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
}

.team-card {
  background-color: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-medium);
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

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

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

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

.team-card .card-content {
  padding: var(--space-lg);
  text-align: center;
}

.team-position {
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: var(--space-md);
}

.social-links {
  display: flex;
  justify-content: center;
  margin-top: var(--space-md);
}

.social-link {
  margin: 0 var(--space-sm);
  color: var(--text-medium);
  transition: color var(--transition-fast);
}

.social-link:hover {
  color: var(--primary-color);
}

/* Contact Section */
.contact {
  padding: var(--space-xl) 0;
  background-color: var(--background-medium);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background-color: rgba(204, 92, 0, 0.1);
  border-radius: 40% 60% 60% 40% / 60% 30% 70% 40%;
  bottom: -250px;
  left: -100px;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.info-item {
  display: flex;
  align-items: flex-start;
}

.info-item .icon {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-right: var(--space-md);
}

.info-content h3 {
  margin-bottom: var(--space-xs);
  font-size: 1.2rem;
}

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

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

/* Gallery Section */
.gallery {
  padding: var(--space-xl) 0;
  background-color: var(--background-light);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-md);
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 200px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-medium);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Footer */
.footer {
  background-color: var(--background-dark);
  color: var(--text-light);
  padding: var(--space-xl) 0 var(--space-md);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-logo h2 {
  color: var(--text-light);
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}

.footer-logo p {
  color: #aaa;
}

.footer-links-column h3 {
  color: var(--text-light);
  margin-bottom: var(--space-lg);
  font-size: 1.2rem;
}

.footer-links-column ul {
  list-style: none;
}

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

.footer-links-column a {
  color: #aaa;
  transition: color var(--transition-fast);
}

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

.footer-newsletter h3 {
  color: var(--text-light);
  margin-bottom: var(--space-md);
  font-size: 1.2rem;
}

.footer-newsletter p {
  color: #aaa;
  margin-bottom: var(--space-md);
}

.newsletter-form {
  display: flex;
  gap: var(--space-sm);
}

.newsletter-form input {
  flex: 1;
  margin-bottom: 0;
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: #aaa;
  font-size: 0.9rem;
}

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

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

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

.success-message p {
  max-width: 600px;
  margin: 0 auto var(--space-lg);
}

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

.privacy-content, .terms-content {
  max-width: 800px;
  margin: 0 auto;
  background-color: white;
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.privacy-content h2, .terms-content h2 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-lg);
}

.privacy-content h2:first-child, .terms-content h2:first-child {
  margin-top: 0;
}

/* Media Queries */
@media (max-width: 992px) {
  h1 {
    font-size: 2.8rem;
  }
  
  h2 {
    font-size: 2.2rem;
  }
  
  .desktop-nav {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .mobile-nav.active {
    display: block;
  }
  
  .footer-content {
    gap: var(--space-lg);
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form input {
    margin-bottom: var(--space-sm);
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
  
  .hero {
    padding: 140px 0 80px;
  }
  
  .hero h2 {
    font-size: 1.6rem;
  }
  
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
  
  .contact-form-container {
    padding: var(--space-lg);
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .container {
    padding: 0 var(--space-md);
  }
  
  .hero {
    padding: 120px 0 60px;
  }
  
  .card-content, .event-content {
    padding: var(--space-md);
  }
}

/* Icon styles - these would typically be replaced by an icon font or SVG */
[class^="icon-"] {
  display: inline-block;
  width: 1em;
  height: 1em;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Cookie consent styles */
#cookie-consent {
  border-top: 3px solid var(--primary-color);
}

#accept-cookies {
  background-color: var(--primary-color) !important;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

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