
body {
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  scroll-behavior: smooth;
}

*, *::before, *::after {
  box-sizing: inherit;
}

/* Custom spacing utility */
.section-spacing {
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .section-spacing {
    padding: 6rem 0;
  }
}

/* Navigation enhancements */
nav {
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.95);
}

nav a {
  position: relative;
  transition: all 0.3s ease;
}

nav a:hover {
  transform: translateY(-1px);
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 50%;
  background-color: #7DB04D;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

nav a:hover::after {
  width: 100%;
}

/* Button enhancements */
.btn-primary {
  background: linear-gradient(135deg, #7DB04D 0%, #6a9a42 100%);
  box-shadow: 0 4px 15px rgba(125, 176, 77, 0.3);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(125, 176, 77, 0.4);
}

.btn-secondary {
  border: 2px solid #7DB04D;
  background: transparent;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: #7DB04D;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(125, 176, 77, 0.3);
}

.btn-accent {
  background: linear-gradient(135deg, #F1C144 0%, #e6b73a 100%);
  box-shadow: 0 4px 15px rgba(241, 193, 68, 0.3);
  transition: all 0.3s ease;
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(241, 193, 68, 0.4);
}

/* Card enhancements */
.card {
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

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

/* Project cards */
.project-card {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #7DB04D, #F1C144);
  transition: left 0.3s ease;
}

.project-card:hover::before {
  left: 0;
}

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

/* Team member cards */
.team-member img {
  transition: all 0.3s ease;
  border: 3px solid transparent;
}

.team-member:hover img {
  border-color: #7DB04D;
  transform: scale(1.05);
}

/* Partner logos */
.partner-logo {
  filter: grayscale(100%);
  transition: all 0.3s ease;
}

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

/* Form enhancements */
.form-input {
  transition: all 0.3s ease;
  border: 2px solid #e5e7eb;
}

.form-input:focus {
  border-color: #7DB04D;
  box-shadow: 0 0 0 3px rgba(125, 176, 77, 0.1);
  outline: none;
}

/* Gradient backgrounds */
.gradient-green-yellow {
  background: linear-gradient(135deg, #7DB04D 0%, #F1C144 100%);
}

.gradient-overlay {
  position: relative;
}

.gradient-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(125, 176, 77, 0.9) 0%, rgba(241, 193, 68, 0.9) 100%);
  z-index: 1;
}

.gradient-overlay > * {
  position: relative;
  z-index: 2;
}

/* Animation utilities */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

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

.animate-pulse-slow {
  animation: pulse 3s ease-in-out infinite;
}

/* Status badges */
.status-ongoing {
  background: linear-gradient(135deg, #F4A300 0%, #e6930a 100%);
  color: white;
}

.status-completed {
  background: linear-gradient(135deg, #F1C144 0%, #e6b73a 100%);
  color: #333333;
}

.status-featured {
  background: linear-gradient(135deg, #7DB04D 0%, #6a9a42 100%);
  color: white;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .section-spacing {
    padding: 3rem 0;
  }
  
  .mobile-stack {
    flex-direction: column;
  }
  
  .mobile-center {
    text-align: center;
  }
  
  .mobile-full-width {
    width: 100%;
  }
}

/* Print styles */
@media print {
  nav, footer {
    display: none;
  }
  
  .section-spacing {
    padding: 1rem 0;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .card {
    border: 2px solid #000;
  }
  
  .btn-primary, .btn-secondary, .btn-accent {
    border: 2px solid #000;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  body {
    scroll-behavior: auto;
  }
}

/* Focus styles for accessibility */
a:focus, button:focus, input:focus, textarea:focus {
  outline: 2px solid #7DB04D;
  outline-offset: 2px;
}

/* Loading states */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #7DB04D;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #7DB04D;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #6a9a42;
}

/* Selection styles */
::selection {
  background-color: #7DB04D;
  color: white;
}

::-moz-selection {
  background-color: #7DB04D;
  color: white;
}