:root {
  /* Tetrad color scheme */
  --primary-color: #2e8b57; /* Emerald/Green */
  --primary-dark: #1e6e3e;
  --primary-light: #4fb37a;
  --secondary-color: #8b2e57; /* Purple/Magenta */
  --secondary-light: #b34f7a;
  --secondary-dark: #6e1e3e;
  --accent1-color: #578b2e; /* Lime Green */
  --accent1-light: #7ab34f;
  --accent1-dark: #3e6e1e;
  --accent2-color: #2e578b; /* Blue */
  --accent2-light: #4f7ab3;
  --accent2-dark: #1e3e6e;
  
  /* Neutral colors */
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --black: #000000;
  
  /* Font families */
  --font-heading: 'Manrope', sans-serif;
  --font-body: 'Rubik', sans-serif;
  
  /* Font sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  
  /* Spacing */
  --spacing-0: 0;
  --spacing-1: 0.25rem;
  --spacing-2: 0.5rem;
  --spacing-3: 0.75rem;
  --spacing-4: 1rem;
  --spacing-5: 1.25rem;
  --spacing-6: 1.5rem;
  --spacing-8: 2rem;
  --spacing-10: 2.5rem;
  --spacing-12: 3rem;
  --spacing-16: 4rem;
  --spacing-20: 5rem;
  
  /* Border radius */
  --radius-sm: 0.125rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --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);
  
  /* Transitions */
  --transition-default: all 0.3s ease;
  --transition-slow: all 0.5s ease;
  --transition-fast: all 0.15s ease;
}

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

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

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

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition-default);
}

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

img {
  max-width: 100%;
  height: auto;
}

/* Font Classes */
.font-manrope {
  font-family: var(--font-heading);
}

.font-rubik {
  font-family: var(--font-body);
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-4);
}

/* Button Styles */
.btn,
button,
input[type="submit"] {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover,
button:hover,
input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn:active,
button:active,
input[type="submit"]:active {
  transform: translateY(0);
}

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

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

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

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

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}

.btn-outline:hover {
  background-color: var(--white);
  color: var(--primary-color);
}

/* Header Styles */
header {
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
}

.hamburger-line {
  width: 100%;
  height: 2px;
  background-color: var(--gray-800);
  transition: var(--transition-default);
}

.mobile-menu {
  top: 100%;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 40;
}

/* Hero Section */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--white);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));
  z-index: 1;
}

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

/* Mission and Vision Sections */
.image-container {
  position: relative;
  overflow: hidden;
  transition: transform 0.5s ease;
}

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

/* Methodology Section */
.timeline {
  position: relative;
}
/* 
.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  height: 100%;
  width: 2px;
  background-color: var(--primary-light);
  transform: translateX(-50%);
} */

.timeline-item {
  margin-bottom: var(--spacing-16);
}

/* Statistics Section */
.stat-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.counter {
  display: inline-block;
}

/* Case Studies and Portfolio Sections */
.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

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

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

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

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

/* Research Section */
.research-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Partners Section */
.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-logo img {
  filter: grayscale(100%);
  transition: filter 0.3s ease, transform 0.3s ease;
  max-height: 60px;
}

.partner-logo:hover img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

/* Contact Section */
input, 
textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, 
textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.2);
}

/* Footer Styles */
footer {
  background-color: var(--gray-900);
  color: var(--white);
}

footer a {
  color: var(--gray-400);
  transition: var(--transition-default);
}

footer a:hover {
  color: var(--white);
}

/* Success Page */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Privacy and Terms Pages */
.privacy-content,
.terms-content {
  padding-top: 40px;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

.animate-fadeInUp {
  animation: fadeInUp 0.8s ease forwards;
}

.animate-fadeIn {
  animation: fadeIn 1s ease forwards;
}

.animate-bounce {
  animation: bounce 2s infinite;
}

/* Utilities */
.text-center {
  text-align: center;
}

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

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

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

.bg-secondary {
  background-color: var(--secondary-color);
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
  .timeline::before {
    left: 0;
  }
  
  .container {
    padding: 0 var(--spacing-4);
  }
  
  .hero {
    text-align: center;
  }
  
  .card {
    margin-bottom: var(--spacing-8);
  }
}

/* Custom styles for specific sections not covered by Tailwind */
.sustainability-section {
  position: relative;
  overflow: hidden;
}

.sustainability-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(46, 139, 87, 0.9), rgba(31, 94, 59, 0.8));
  z-index: 0;
}

.sustainability-content {
  position: relative;
  z-index: 1;
}

/* Read more links */
.read-more {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition-default);
}

.read-more:hover {
  color: var(--primary-dark);
}

.read-more::after {
  content: "→";
  display: inline-block;
  margin-left: 0.25rem;
  transition: transform 0.3s ease;
}

.read-more:hover::after {
  transform: translateX(4px);
}

/* Social media links in footer */
.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: var(--gray-400);
  transition: var(--transition-default);
}

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