/* ainsens Custom Styles & Animations */

:root {
  --forest-green: #0F2E22;
  --teal-accent: #14B8A6;
  --teal-dark: #0D9488;
  --slate-ink: #1E293B;
}

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
}

/* Subtle futuristic grid pattern for hero */
.hero-grid-bg {
  background-image:
    linear-gradient(to right, rgba(94, 234, 212, 0.14) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(94, 234, 212, 0.14) 1px, transparent 1px);
  background-size: 42px 42px;
}

/* Glassmorphism telemetry cards */
.glass-card {
  background: rgba(15, 46, 34, 0.68);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(94, 234, 212, 0.28);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

/* Floating animations for hero telemetry badges */
@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

.floating-slow {
  animation: floatSlow 4.5s ease-in-out infinite;
}

.floating-delayed {
  animation: floatSlow 5.2s ease-in-out 1.1s infinite;
}

/* Scroll reveal utility (Intersection Observer) */
.reveal-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Crop preset tab buttons */
.crop-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #E2E8F0;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.crop-btn:hover {
  background: rgba(20, 184, 166, 0.25);
  color: #FFFFFF;
}

.crop-btn.active {
  background: #14B8A6;
  color: #FFFFFF;
  border-color: #5EEAD4;
  box-shadow: 0 0 18px rgba(20, 184, 166, 0.4);
}

/* Interactive parameter cards */
.param-card {
  transition: all 0.2s ease;
  cursor: pointer;
}

.param-card.active {
  background-color: #0F2E22;
  color: #FFFFFF;
  border-color: #14B8A6;
  box-shadow: 0 10px 24px -8px rgba(15, 46, 34, 0.35);
}

.param-card.active .param-sub {
  color: #5EEAD4;
}

/* Scroll-scrubbed product showcase milestones */
.showcase-milestone {
  opacity: 0.55;
}

.showcase-milestone.active {
  opacity: 1;
  background: rgba(20, 184, 166, 0.14);
  border-color: rgba(94, 234, 212, 0.55);
  box-shadow: 0 10px 28px -10px rgba(20, 184, 166, 0.35);
}
