/* Features Page Styles */

/* Force light mode for features page */
body {
  color-scheme: light;
}

html {
  scroll-behavior: smooth;
}

/* Override any conflicting scroll behavior */
* {
  scroll-behavior: inherit;
}

.nav-link {
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  display: block;
  font-size: 0.75rem;
  cursor: pointer;
  border: none;
  background: none;
  text-align: left;
  width: 100%;
}

.nav-link:hover {
  background-color: rgba(59, 130, 246, 0.1);
  transform: translateX(2px);
}

.nav-link.active {
  color: #2563eb !important;
  font-weight: 600;
  background-color: rgba(59, 130, 246, 0.15);
  transform: translateX(3px);
}

.nav-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 12px;
  background: linear-gradient(to bottom, #2563eb, #3b82f6);
  border-radius: 1px;
  animation: slideIn 0.3s ease-out;
}

.dark .nav-link:hover {
  background-color: rgba(96, 165, 250, 0.1);
}

.dark .nav-link.active {
  color: #60a5fa !important;
  background-color: rgba(96, 165, 250, 0.15);
}

.dark .nav-link.active::before {
  background: linear-gradient(to bottom, #60a5fa, #93c5fd);
}

/* Section animations */
.feature-section {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-section.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.feature-section.animate-in .feature-content {
  animation: fadeInUp 0.8s ease-out;
}

.feature-section.animate-in .feature-image {
  animation: fadeInScale 0.8s ease-out 0.2s both;
}

/* Navigation menu animations */
.nav-menu {
  animation: slideInLeft 0.5s ease-out;
}

/* Keyframe animations */
@keyframes slideIn {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    width: 3px;
    opacity: 1;
  }
}

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

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

/* Ensure SVG icons render correctly in light mode */
svg {
  filter: none !important;
  -webkit-filter: none !important;
}

/* Force proper color rendering for SVG elements */
svg path {
  fill: inherit;
  stroke: inherit;
}

/* Smooth scroll enhancement */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: auto;
  }
}
