/* Custom Styles for Nox Landing Page */

/* Custom Animations */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(79, 70, 229, 0.6);
  }
}

@keyframes slideInFromLeft {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInFromRight {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeInUp {
  0% {
    transform: translateY(30px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes scaleIn {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Utility Classes */
.floating {
  animation: float 3s ease-in-out infinite;
}

.pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

.slide-in-left {
  animation: slideInFromLeft 0.8s ease-out;
}

.slide-in-right {
  animation: slideInFromRight 0.8s ease-out;
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.scale-in {
  animation: scaleIn 0.5s ease-out;
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, #4f46e5 0%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* CTA Button Styles */
.cta-gradient {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  transition: all 0.3s ease;
}

.cta-gradient:hover {
  background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(79, 70, 229, 0.3);
}

/* Card Hover Effects */
.hover-card {
  transition: all 0.3s ease;
}

.hover-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Navigation Link Hover Effect */
.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #4f46e5 0%, #10b981 100%);
  transition: width 0.3s ease;
}

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

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

/* Statistics Counter Animation */
.counter-animation {
  transition: all 0.5s ease;
}

.counter-animation.animate {
  transform: scale(1.1);
  color: #4f46e5;
}

/* FAQ Accordion Styles */
.faq-item {
  transition: all 0.3s ease;
}

.faq-item:hover {
  background-color: rgba(79, 70, 229, 0.05);
}

.faq-button {
  transition: all 0.3s ease;
}

.faq-button:hover {
  background-color: rgba(79, 70, 229, 0.1);
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-button.active .faq-icon {
  transform: rotate(180deg);
}

/* Loading Animation */
.loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #4f46e5;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Success Message Animation */
.success-message {
  animation: slideInFromRight 0.5s ease-out;
}

/* Mobile Menu Styles */
.mobile-menu {
  transition: all 0.3s ease;
  transform: translateY(-100%);
  opacity: 0;
}

.mobile-menu.active {
  transform: translateY(0);
  opacity: 1;
}

/* Parallax Effect */
.parallax {
  transform: translateZ(0);
  will-change: transform;
}

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

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #4f46e5 0%, #10b981 100%);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #4338ca 0%, #059669 100%);
}

/* Print Styles */
@media print {
  .no-print {
    display: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.4;
  }

  .container {
    max-width: none;
    margin: 0;
    padding: 0;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .gradient-text {
    background: #000;
    -webkit-text-fill-color: #000;
  }

  .cta-gradient {
    background: #000;
    color: #fff;
  }
}

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

  .floating,
  .pulse-glow {
    animation: none;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #1a1a1a;
    color: #ffffff;
  }

  .bg-white {
    background-color: #2d2d2d;
  }

  .text-dark {
    color: #ffffff;
  }

  .text-gray-600 {
    color: #cccccc;
  }
}

/* Focus Styles for Accessibility */
*:focus {
  outline: 2px solid #4f46e5;
  outline-offset: 2px;
}

/* Skip to Content Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #4f46e5;
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
}

.skip-link:focus {
  top: 6px;
}

/* Custom Focus Ring */
.focus-ring:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.5);
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #4f46e5;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Error States */
.error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.error-message {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Success States */
.success {
  border-color: #10b981 !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1) !important;
}

.success-message {
  color: #10b981;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Responsive Typography */
@media (max-width: 640px) {
  .text-4xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
  }

  .text-5xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }

  .text-6xl {
    font-size: 2.5rem;
    line-height: 2.75rem;
  }
}

/* Custom Selection */
::selection {
  background: rgba(79, 70, 229, 0.3);
  color: #000;
}

::-moz-selection {
  background: rgba(79, 70, 229, 0.3);
  color: #000;
}

.nav-link:focus {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}

/* Social Media Icon Hover Colors */
.bg-white\/10:hover .fa-twitter {
  color: #1da1f2 !important;
}
.bg-white\/10:hover .fa-linkedin-in {
  color: #0077b5 !important;
}
.bg-white\/10:hover .fa-facebook-f {
  color: #1877f3 !important;
}
.bg-white\/10:hover .fa-instagram {
  background: linear-gradient(45deg, #fd5, #e1306c, #c13584, #833ab4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

/* Arrow hover direction for Contact Sales Team (LTR/RTL) */
.group:hover .arrow-move {
  transform: translateX(-0.25rem); /* left in LTR */
}
[dir="rtl"] .group:hover .arrow-move {
  transform: translateX(0.25rem); /* right in RTL */
}

.section-badge {
  display: inline-block;
  background: linear-gradient(90deg, #ede9fe 0%, #c7d2fe 100%);
  color: #4f46e5;
  font-size: 1.15rem;
  font-weight: 700;
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  box-shadow: 0 2px 12px 0 rgba(79, 70, 229, 0.07);
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
  transition: background 0.3s, color 0.3s;
}
