/* Color Palette - Dark Green with Lime Accents */
:root {
  --dark-green: #0a1f1a;
  --dark-green-800: #0d2821;
  --dark-green-900: #071511;
  --lime-400: #a3e635;
  --lime-300: #bef264;
}

body {
  background-color: var(--dark-green);
  color: white;
}

.bg-dark-green {
  background-color: var(--dark-green);
}

.bg-dark-green-800 {
  background-color: var(--dark-green-800);
}

.bg-dark-green-900 {
  background-color: var(--dark-green-900);
}

.text-lime-400 {
  color: var(--lime-400);
}

.text-dark-green {
  color: var(--dark-green);
}

.bg-lime-400 {
  background-color: var(--lime-400);
}

.bg-lime-300 {
  background-color: var(--lime-300);
}

.border-lime-400 {
  border-color: var(--lime-400);
}

.hover\:bg-lime-300:hover {
  background-color: var(--lime-300);
}

.hover\:text-lime-400:hover {
  color: var(--lime-400);
}

.hover\:text-lime-300:hover {
  color: var(--lime-300);
}

.hover\:border-lime-400:hover {
  border-color: var(--lime-400);
}

.border-lime-400\/20 {
  border-color: rgba(163, 230, 53, 0.2);
}

.border-lime-400\/30 {
  border-color: rgba(163, 230, 53, 0.3);
}

.border-lime-900\/20 {
  border-color: rgba(54, 83, 20, 0.2);
}

.bg-lime-400\/10 {
  background-color: rgba(163, 230, 53, 0.1);
}

/* Cookie Popup Styles */
.cookie-popup {
  position: fixed;
  bottom: -100%;
  left: 0;
  right: 0;
  background: var(--dark-green-800);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
  padding: 1.5rem;
  z-index: 9999;
  transition: bottom 0.4s ease;
  border-top: 2px solid rgba(163, 230, 53, 0.2);
}

.cookie-popup.active {
  bottom: 0;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
}

/* Mobile Menu Styles */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.mobile-menu.active {
  max-height: 500px;
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--lime-400);
  color: var(--dark-green);
  border: none;
  border-radius: 50%;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.scroll-to-top.active {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background: var(--lime-300);
  transform: translateY(-3px);
}

/* Form Error Styles */
.error-message {
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Service Card Flip Effect */
.service-card {
  perspective: 1000px;
  transition: all 0.3s ease;
  min-height: 320px;
}

.service-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.service-card.flipped .service-card-inner {
  transform: rotateY(180deg);
}

.service-card-front,
.service-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.service-card-back {
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Stats Card Animation */
.stats-card {
  transition: all 0.3s ease;
}

.stats-card:hover {
  transform: scale(1.05);
}

/* Team Card Styles */
.team-card {
  transition: all 0.3s ease;
}

/* Case Card Styles */
.case-card {
  transition: all 0.3s ease;
  cursor: pointer;
}

/* Why Card Parallax */
.why-card {
  transition: all 0.3s ease;
}

/* Gradient Radial */
.bg-gradient-radial {
  background: radial-gradient(circle, var(--color-from), var(--color-to));
}

/* Animation Classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--dark-green-900);
}

::-webkit-scrollbar-thumb {
  background: var(--lime-400);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--lime-300);
}

/* Focus Styles for Accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 2px solid var(--lime-400);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .cookie-popup,
  .scroll-to-top,
  header,
  footer {
    display: none;
  }
}

/* Loading Animation */
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.loading {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Image Lazy Loading Placeholder */
img {
  background: var(--dark-green-800);
}

/* Responsive Typography */
@media (max-width: 640px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.75rem;
  }
  h3 {
    font-size: 1.5rem;
  }
}

/* Accessibility - Screen Reader Only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  a {
    text-decoration: underline;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .service-card-inner,
  .stats-card,
  .team-card,
  .case-card,
  .why-card {
    transition: none !important;
    transform: none !important;
  }
}

/* Backdrop Blur Support */
@supports (backdrop-filter: blur(10px)) {
  header {
    backdrop-filter: blur(10px);
    background-color: rgba(10, 31, 26, 0.8);
  }
}

/* Card Hover Glow Effect */
.service-card:hover,
.case-card:hover,
.why-card:hover,
.team-card:hover {
  box-shadow: 0 0 30px rgba(163, 230, 53, 0.3);
}

/* Form Input Focus Glow */
input:focus,
textarea:focus {
  box-shadow: 0 0 20px rgba(163, 230, 53, 0.2);
}

/* Button Hover Scale */
button:hover,
a.bg-lime-400:hover {
  transform: scale(1.02);
}

button,
a.bg-lime-400 {
  transition: all 0.3s ease;
}
