/* Custom styles for NeuralCortex website */

.nav-link {
  @apply text-gray-600 hover:text-green-600 px-3 py-2 rounded-md text-sm font-medium transition-all duration-300;
}

.nav-link.active {
  @apply text-green-600 font-semibold;
}

.mobile-nav-link {
  @apply text-gray-600 hover:text-green-600 px-3 py-2 rounded-md text-base font-medium transition-all duration-300 hover:bg-green-50;
}

html {
  scroll-behavior: smooth;
}

/* Added comprehensive animation keyframes */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes slideRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes bounce {
  0%,
  20%,
  53%,
  80%,
  100% {
    transform: translateY(0);
  }
  40%,
  43% {
    transform: translateY(-10px);
  }
  70% {
    transform: translateY(-5px);
  }
  90% {
    transform: translateY(-2px);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes ping {
  75%,
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

@keyframes starTwinkle {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}

@keyframes bounceSoft {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* Enhanced animation classes with new effects */
.animate-fade-in {
  animation: fadeIn 0.8s ease-out;
}

.animate-fade-in-delay {
  animation: fadeIn 0.8s ease-out 0.2s both;
}

.animate-slide-up {
  animation: slideUp 0.8s ease-out;
}

.animate-slide-up-delay {
  animation: slideUp 0.8s ease-out 0.3s both;
}

.animate-slide-up-delay-2 {
  animation: slideUp 0.8s ease-out 0.6s both;
}

.animate-slide-up-delay-3 {
  animation: slideUp 0.8s ease-out 0.9s both;
}

.animate-slide-down {
  animation: slideDown 0.8s ease-out;
}

.animate-slide-left {
  animation: slideLeft 0.8s ease-out;
}

.animate-slide-right {
  animation: slideRight 0.8s ease-out;
}

.animate-counter {
  animation: slideUp 0.8s ease-out, pulse 2s ease-in-out 1s infinite;
}

.animate-counter-delay {
  animation: slideUp 0.8s ease-out 0.2s both, pulse 2s ease-in-out 1.2s infinite;
}

.animate-counter-delay-2 {
  animation: slideUp 0.8s ease-out 0.4s both, pulse 2s ease-in-out 1.4s infinite;
}

.animate-counter-delay-3 {
  animation: slideUp 0.8s ease-out 0.6s both, pulse 2s ease-in-out 1.6s infinite;
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-float-delay {
  animation: float 6s ease-in-out infinite 2s;
}

.animate-float-delay-2 {
  animation: float 6s ease-in-out infinite 4s;
}

.animate-gradient-text {
  background: linear-gradient(-45deg, #22c55e, #16a34a, #15803d, #166534);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease infinite;
}

.animate-ping-slow {
  animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.animate-ping-delay {
  animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite 1s;
}

.animate-star-twinkle {
  animation: starTwinkle 2s ease-in-out infinite;
}

.animate-bounce-subtle {
  animation: bounceSoft 2s ease-in-out infinite;
}

.animate-bounce-subtle-delay {
  animation: bounceSoft 2s ease-in-out infinite 0.5s;
}

.animate-bounce-subtle-delay-2 {
  animation: bounceSoft 2s ease-in-out infinite 1s;
}

.animate-pulse-soft {
  animation: pulse 3s ease-in-out infinite;
}

/* Form focus styles */
input:focus,
textarea:focus,
select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
  border-color: #22c55e;
}

button,
.btn {
  transition: all 0.3s ease-in-out;
}

button:hover,
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-hover {
  transition: all 0.3s ease-in-out;
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.gradient-text {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

::-webkit-scrollbar {
  width: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.2), transparent);
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.mobile-menu-open #mobile-menu-drawer {
  transform: translateX(0);
}

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

/* Responsive typography */
@media (max-width: 640px) {
  h1 {
    font-size: 2rem;
    line-height: 1.2;
  }

  h2 {
    font-size: 1.75rem;
    line-height: 1.3;
  }

  .text-xl {
    font-size: 1.125rem;
  }
}

@media print {
  .no-print {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
  }
}
.bg-about {
    position: relative;
    background-image: url("img/future.jpg");
    background-size: cover;
}

.bg-about::before {
    content: "";
    position: absolute;
    inset: 0; /* shorthand for top:0; right:0; bottom:0; left:0 */
    background: rgb(22 163 74 / 48%);
    z-index: 0;
}

.bg-about > * {
    position: relative;
    z-index: 1; /* ensures text sits above overlay */
}


.bg-transform{
    position: relative;
    background-image: url("img/about-furture.jpg");
    background-size: cover;
}

.bg-innovation{
    position: relative;
    background-image: url("img/innovation.jpg");
    background-size: cover;
}



.bg-product {
    position: relative;
    background-image: url("img/products/products.jpg");
    background-size: cover;
}

.bg-product::before {
    content: "";
    position: absolute;
    inset: 0; /* shorthand for top:0; right:0; bottom:0; left:0 */
    background: rgb(22 163 74 / 48%);
    z-index: 0;
}

.bg-product > * {
    position: relative;
    z-index: 1; /* ensures text sits above overlay */
}


.bg-contact {
    position: relative;
    background-image: url("img/contact.jpg");
    background-size: cover;
}

.bg-contact::before {
    content: "";
    position: absolute;
    inset: 0; /* shorthand for top:0; right:0; bottom:0; left:0 */
    background: rgb(22 163 74 / 48%);
    z-index: 0;
}

.bg-contact > * {
    position: relative;
    z-index: 1; /* ensures text sits above overlay */
}
