:root {
  /* Primary colors */
  --color-primary: #2e7d32;
  --color-primary-light: #4caf50;
  --color-primary-dark: #1b5e20;
  --color-secondary: #0277bd;
  --color-secondary-light: #29b6f6;
  --color-secondary-dark: #01579b;
  --color-accent: #ff6f00;
  --color-accent-light: #ffa726;
  
  /* Neutral colors */
  --color-white: #ffffff;
  --color-light: #f5f5f5;
  --color-gray-light: #e0e0e0;
  --color-gray: #9e9e9e;
  --color-gray-dark: #616161;
  --color-dark: #212121;
  --color-black: #000000;
  
  /* Text colors */
  --text-primary: #263238;
  --text-secondary: #455a64;
  --text-light: #eceff1;
  
  /* Gradient backgrounds */
  --gradient-primary: linear-gradient(120deg, var(--color-primary-light), var(--color-primary-dark));
  --gradient-secondary: linear-gradient(120deg, var(--color-secondary-light), var(--color-secondary-dark));
  --gradient-accent: linear-gradient(120deg, var(--color-accent-light), var(--color-accent));
  --gradient-overlay: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-xxl: 4rem;
  
  /* Borders */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 12px;
  --border-width: 1px;
  
  /* Shadows */
  --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.1);
  
  /* Animation */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* Base styles */
html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Merriweather', serif;
  color: var(--text-primary);
  line-height: 1.6;
  background-color: var(--color-light);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  margin-top: 0;
  line-height: 1.3;
  color: var(--text-primary);
}

h1 {
  font-size: 2.5rem;
  margin-bottom: var(--space-lg);
}

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

h3 {
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
}

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

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

a:hover, a:focus {
  color: var(--color-secondary-dark);
  text-decoration: underline;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

section {
  padding: var(--space-xl) 0;
}

/* Buttons */
.btn, 
button, 
input[type='submit'] {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: all var(--transition-medium);
  box-shadow: var(--shadow-sm);
}

.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);
  box-shadow: var(--shadow-sm);
}

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

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

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

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

/* Read more links */
.read-more {
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: transform var(--transition-fast);
}

.read-more:after {
  content: "→";
  margin-left: var(--space-xs);
  transition: transform var(--transition-fast);
}

.read-more:hover {
  color: var(--color-accent-light);
  text-decoration: none;
}

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

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

.section-title:after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: var(--gradient-accent);
  margin: var(--space-sm) auto 0;
  border-radius: var(--border-radius-sm);
}

.section-description {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-xl);
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.7;
}

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

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-primary);
  text-decoration: none;
}

.logo span {
  color: var(--color-primary);
  margin-right: 4px;
}

.main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--space-lg);
}

.main-nav a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  padding: var(--space-xs) 0;
  position: relative;
  transition: color var(--transition-fast);
}

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

.main-nav a:hover {
  color: var(--color-primary);
}

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

.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
}

.mobile-nav-toggle span {
  display: block;
  height: 3px;
  background-color: var(--text-primary);
  border-radius: 3px;
  transition: all var(--transition-fast);
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--color-white);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.hero-content {
  padding: var(--space-xxl) 0;
  max-width: 800px;
  margin: 0 auto;
  z-index: 1;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: var(--space-lg);
  color: var(--color-white);
  animation: fadeInDown 1s ease;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: var(--space-xl);
  color: var(--color-white);
  animation: fadeInUp 1s ease;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  animation: fadeIn 1.5s ease;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

/* Case Studies Section */
.case-studies-section {
  background-color: var(--color-light);
  padding: var(--space-xxl) 0;
}

.carousel-container {
  position: relative;
  margin: var(--space-lg) 0;
}

.case-studies-carousel {
  display: flex;
  gap: var(--space-lg);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: var(--space-md) 0;
}

.case-studies-carousel::-webkit-scrollbar {
  display: none;
}

.case-studies-carousel .card {
  flex: 0 0 calc(33.333% - var(--space-lg));
  scroll-snap-align: start;
  background-color: var(--color-white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.case-studies-carousel .card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

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

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

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

.case-studies-carousel .card-content {
  padding: var(--space-lg);
  flex: 1;
  text-align: center;
}

.case-studies-carousel .card-content h3 {
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.carousel-controls {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.carousel-controls button {
  background-color: var(--color-white);
  border: var(--border-width) solid var(--color-gray-light);
  color: var(--text-primary);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-medium);
}

.carousel-controls button:hover {
  background-color: var(--color-primary-light);
  border-color: var(--color-primary-light);
  color: var(--color-white);
}

.carousel-controls span {
  font-size: 1.5rem;
  line-height: 1;
}

/* Behind the Scenes Section */
.behind-scenes-section {
  background-color: var(--color-white);
  padding: var(--space-xxl) 0;
}

.behind-scenes-content {
  display: flex;
  gap: var(--space-xl);
  align-items: center;
  margin-top: var(--space-xl);
}

.behind-scenes-content .image-column {
  flex: 1;
  text-align: center;
  position: relative;
}

.behind-scenes-content .image-column img {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 100%;
  transition: transform var(--transition-slow);
}

.behind-scenes-content .image-column:hover img {
  transform: scale(1.02) rotate(1deg);
}

.behind-scenes-content .text-column {
  flex: 1;
}

.behind-scenes-content .text-column h3 {
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.behind-scenes-content .text-column p {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

/* Clientele Section */
.clientele-section {
  background-color: var(--color-light);
  padding: var(--space-xxl) 0;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

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

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

.client-card .image-container {
  width: 150px;
  height: 150px;
  margin-bottom: var(--space-md);
  overflow: hidden;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.client-card .image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0 auto;
}

.client-card h3 {
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.client-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Resources Section */
.resources-section {
  background-color: var(--color-white);
  padding: var(--space-xxl) 0;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.resource-card {
  background-color: var(--color-light);
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg);
  transition: transform var(--transition-medium);
}

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

.resource-card h3 {
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  position: relative;
}

.resource-card h3:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 50px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: var(--border-radius-sm);
}

.resource-card ul {
  padding-left: var(--space-lg);
  margin: 0;
}

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

.resource-card a {
  color: var(--color-secondary);
  transition: color var(--transition-fast);
  text-decoration: none;
}

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

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

.research-content {
  display: flex;
  gap: var(--space-xl);
  align-items: center;
  margin-top: var(--space-xl);
}

.research-content .text-column {
  flex: 2;
}

.research-content .text-column.is-two-thirds {
  flex: 2;
}

.research-content .text-column h3 {
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.research-content .text-column p {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.research-content .image-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.research-content .image-column img {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 100%;
  margin-bottom: var(--space-lg);
}

.research-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-md);
  width: 100%;
}

.stat-item {
  text-align: center;
  background-color: var(--color-white);
  padding: var(--space-md);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-medium);
}

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

.stat-number {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}

.stat-label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Community Section */
.community-section {
  position: relative;
  padding: var(--space-xxl) 0;
  color: var(--color-white);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.community-section .section-title, 
.community-section .section-description {
  color: var(--color-white);
}

.community-content {
  display: flex;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.community-text {
  flex: 1;
}

.community-text h3 {
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.community-text p {
  color: var(--color-light);
  margin-bottom: var(--space-md);
}

.community-gallery {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.gallery-item {
  overflow: hidden;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
}

.gallery-item:first-child {
  grid-column: span 2;
}

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

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

/* Contact Section */
.contact-section {
  background-color: var(--color-white);
  padding: var(--space-xxl) 0;
}

.contact-content {
  display: flex;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.contact-info {
  flex: 1;
}

.contact-info h3 {
  margin-bottom: var(--space-lg);
}

.info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--space-md);
}

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

.animated-icon {
  display: inline-block;
  width: 30px;
  height: 30px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-right: var(--space-md);
  position: relative;
}

.icon-location:before {
  content: "📍";
  font-size: 1.5rem;
}

.icon-phone:before {
  content: "📱";
  font-size: 1.5rem;
}

.icon-email:before {
  content: "✉️";
  font-size: 1.5rem;
}

.icon-clock:before {
  content: "🕒";
  font-size: 1.5rem;
}

.map-container {
  margin-top: var(--space-lg);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

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

.contact-form-container {
  flex: 1;
}

.contact-form-container h3 {
  margin-bottom: var(--space-lg);
}

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

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

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: var(--space-md);
  border: var(--border-width) solid var(--color-gray-light);
  border-radius: var(--border-radius-md);
  background-color: var(--color-white);
  transition: border-color var(--transition-fast);
  font-family: 'Merriweather', serif;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-primary-light);
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.contact-form textarea {
  resize: vertical;
}

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

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

.footer-column h3 {
  color: var(--color-white);
  margin-bottom: var(--space-md);
  font-size: 1.25rem;
  position: relative;
}

.footer-column h3:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 40px;
  height: 3px;
  background: var(--gradient-accent);
}

.footer-column p {
  color: var(--color-gray);
  font-size: 0.95rem;
}

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

.footer-column ul li {
  margin-bottom: var(--space-sm);
}

.footer-column ul a {
  color: var(--color-gray);
  transition: color var(--transition-fast);
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-column ul a:hover {
  color: var(--color-white);
  text-decoration: none;
}

.social-links {
  display: flex;
  flex-direction: column;
}

.social-links a {
  color: var(--color-gray);
  padding: var(--space-xs) 0;
  display: flex;
  align-items: center;
  transition: color var(--transition-fast);
}

.social-links a:before {
  margin-right: var(--space-sm);
  font-size: 1.25rem;
  transition: transform var(--transition-fast);
}

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

.social-links a:hover:before {
  transform: scale(1.2);
}

.social-links li:nth-child(1) a:before {
  content: "📘";
}

.social-links li:nth-child(2) a:before {
  content: "📱";
}

.social-links li:nth-child(3) a:before {
  content: "📷";
}

.social-links li:nth-child(4) a:before {
  content: "🔗";
}

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

.footer-bottom p {
  color: var(--color-gray);
  font-size: 0.9rem;
  margin: 0;
}

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

.success-content {
  max-width: 600px;
  padding: var(--space-xl);
  background-color: var(--color-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}

.success-content h1 {
  color: var(--color-primary);
  margin-bottom: var(--space-lg);
}

.success-content p {
  margin-bottom: var(--space-lg);
}

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

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

.privacy-content, .terms-content {
  background-color: var(--color-white);
  padding: var(--space-xl);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
}

/* Responsive styles */
@media screen and (max-width: 1024px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .behind-scenes-content,
  .research-content,
  .community-content,
  .contact-content {
    flex-direction: column;
  }
  
  .community-gallery {
    margin-top: var(--space-lg);
  }
}

@media screen and (max-width: 768px) {
  .mobile-nav-toggle {
    display: flex;
  }
  
  .main-nav {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background-color: var(--color-white);
    padding: var(--space-lg) 0;
    box-shadow: var(--shadow-md);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-medium);
  }
  
  .main-nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .main-nav ul {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: 1.1rem;
  }
  
  .hero-cta {
    flex-direction: column;
    gap: var(--space-md);
  }
  
  .case-studies-carousel .card {
    flex: 0 0 calc(100% - var(--space-md));
  }
  
  .clients-grid {
    grid-template-columns: 1fr;
  }
  
  .community-gallery {
    grid-template-columns: 1fr;
  }
  
  .gallery-item:first-child {
    grid-column: auto;
  }
}

@media screen and (max-width: 480px) {
  .container {
    padding: 0 var(--space-md);
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .research-stats {
    grid-template-columns: 1fr;
  }
}