:root {
  --bg: #0a1a2e;
  --fg: #f0f4f8;
  --muted: #8b9cb5;
  --accent: #78B824;
  --accent-dark: #5A952C;
  --primary: #10284C;
  --card: rgba(16, 40, 76, 0.6);
  --border: rgba(120, 184, 36, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', sans-serif;
  background: #060e1a;
  color: var(--fg);
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 10%, rgba(90, 149, 44, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(16, 40, 76, 0.3) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 90% 70%, rgba(120, 184, 36, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, #060e1a 0%, #0a1a2e 40%, #071222 100%);
  pointer-events: none;
  z-index: -1;
}

.font-display {
  font-family: 'Space Grotesk', sans-serif;
}

/* Background Grid */
.bg-grid {
  background-image:
    linear-gradient(rgba(120, 184, 36, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 184, 36, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Gradient Orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  pointer-events: none;
}

.orb-1 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(90, 149, 44, 0.3) 0%, rgba(120, 184, 36, 0.08) 40%, transparent 70%);
  top: -250px;
  right: -250px;
  opacity: 0.6;
  animation: float 20s ease-in-out infinite;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(16, 40, 76, 0.5) 0%, rgba(90, 149, 44, 0.1) 40%, transparent 70%);
  bottom: 20%;
  left: -150px;
  opacity: 0.5;
  animation: float 15s ease-in-out infinite reverse;
}

@media (max-width: 768px) {
  .orb {
    display: none;
  }
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* Card Hover */
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: 0 20px 40px rgba(120, 184, 36, 0.15);
}

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

.feature-icon {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Button Styles */
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(120, 184, 36, 0.4);
}

.btn-secondary {
  border: 2px solid var(--accent);
  transition: all 0.3s ease;
}

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

/* Stats Counter */
.stat-number {
  background: linear-gradient(135deg, var(--fg) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Particles */
.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
}

/* Floating Elements */
.float-element {
  animation: floatElement 6s ease-in-out infinite;
}

@keyframes floatElement {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

/* Typing Animation */
.typing-container {
  display: inline-block;
}

.typing-text {
  border-right: 3px solid var(--accent);
  animation: blink 0.8s step-end infinite;
  padding-right: 4px;
}

@keyframes blink {
  50% { border-color: transparent; }
}

/* Focus States */
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

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

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-dark);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* Expertise Section */
.expertise-card {
  background: var(--card);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.expertise-card:hover {
  border-color: var(--accent);
  box-shadow: 0 20px 40px rgba(120, 184, 36, 0.15);
}

.expertise-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

/* Case Card */
.case-card {
  background: var(--card);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.case-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

/* Neural Network Animation */
.neural-node {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.neural-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0.3;
  transform-origin: left center;
}

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