/* Custom styles for Newtrition 4 U */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Hero gradient */
.hero-gradient {
  background: linear-gradient(135deg, #0f766e 0%, #115e59 30%, #1e293b 70%, #0f172a 100%);
}

/* Subtle pattern overlay for hero */
.hero-bg-pattern {
  background-image: radial-gradient(circle at 25% 25%, rgba(45, 212, 191, 0.15) 0%, transparent 50%),
                    radial-gradient(circle at 75% 75%, rgba(13, 148, 136, 0.1) 0%, transparent 50%);
}

/* Fixed navbar */
.nav-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.nav-scrolled {
  background-color: rgba(15, 23, 42, 0.95) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #2dd4bf;
  transition: width 0.2s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Mobile menu */
.mobile-nav-link {
  border-left: 3px solid transparent;
  padding-left: 12px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.mobile-nav-link:hover {
  border-left-color: #2dd4bf;
  color: #fff;
}

/* Scroll indicator */
.scroll-indicator {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
  40% { transform: translateY(-8px) translateX(-50%); }
  60% { transform: translateY(-4px) translateX(-50%); }
}

/* Reveal animations */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Card hover effects */
.card {
  will-change: transform, box-shadow;
}

/* Feature card hover */
.feature-card {
  will-change: transform;
}

.feature-card:hover {
  transform: translateY(-4px);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .scroll-indicator {
    animation: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  html {
    scroll-behavior: auto;
  }
  .card, .feature-card {
    transition: none;
  }
}

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

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

::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}
