/* Carousel Animation */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-160px * 6 - 3rem * 5));
  }
}

.carousel-track {
  animation: scroll 30s linear infinite;
  width: fit-content;
}

.carousel-track:hover {
  animation-play-state: paused;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.dark ::-webkit-scrollbar-track {
  background: #171717;
}

::-webkit-scrollbar-thumb {
  background: #dc143c;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #8b0000;
}

/* Pulse Animation for Background Elements */
@keyframes pulse {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.05);
  }
}

.animate-pulse {
  animation: pulse 4s ease-in-out infinite;
}

/* Neon Text Effect with Gradient */
.neon-text {
  background: linear-gradient(135deg, rgba(227, 47, 36, 1) 0%, rgba(14, 95, 169, 1) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 2px;
  transition: all 0.3s ease;
  filter: drop-shadow(0 0 8px rgba(227, 47, 36, 0.5)) drop-shadow(0 0 12px rgba(14, 95, 169, 0.5));
  line-height: 1.2;
  display: inline-block;
  padding-bottom: 4px;
}

.dark .neon-text {
  background: linear-gradient(135deg, rgba(227, 47, 36, 1) 0%, rgba(14, 95, 169, 1) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 10px rgba(227, 47, 36, 0.6)) drop-shadow(0 0 15px rgba(14, 95, 169, 0.6));
}

.neon-text:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 12px rgba(227, 47, 36, 0.7)) drop-shadow(0 0 18px rgba(14, 95, 169, 0.7));
}

.dark .neon-text:hover {
  filter: drop-shadow(0 0 15px rgba(227, 47, 36, 0.8)) drop-shadow(0 0 20px rgba(14, 95, 169, 0.8));
}

/* Neon Text Effect for Hero Title */
.neon-text-hero {
  background: linear-gradient(135deg, rgba(227, 47, 36, 1) 0%, rgba(14, 95, 169, 1) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 1px;
  filter: drop-shadow(0 0 8px rgba(227, 47, 36, 0.5)) drop-shadow(0 0 12px rgba(14, 95, 169, 0.5));
}

.dark .neon-text-hero {
  background: linear-gradient(135deg, rgba(227, 47, 36, 1) 0%, rgba(14, 95, 169, 1) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 10px rgba(227, 47, 36, 0.6)) drop-shadow(0 0 15px rgba(14, 95, 169, 0.6));
}

/* Typewriter Effect */
#typewriter {
  color: rgba(227, 47, 36, 1);
  border-right: 2px solid rgba(227, 47, 36, 1);
  padding-right: 4px;
  animation: blink-cursor 1s infinite;
}

@keyframes blink-cursor {
  0%, 50% {
    border-color: rgba(227, 47, 36, 1);
  }
  51%, 100% {
    border-color: transparent;
  }
}

.dark #typewriter {
  color: rgba(227, 47, 36, 1);
  border-right-color: rgba(227, 47, 36, 1);
}

.dark #typewriter + span {
  color: rgba(227, 47, 36, 1);
}

/* Navbar Styles */
.nav-link {
  position: relative;
}

.nav-underline {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg, rgba(227, 47, 36, 1), rgba(14, 95, 169, 1));
  transition: transform 0.3s ease;
  border-radius: 2px;
}

.nav-link:hover .nav-underline {
  transform: translateX(-50%) scaleX(1);
}

.nav-link:hover {
  background: rgba(227, 47, 36, 0.05);
}

.dark .nav-link:hover {
  background: rgba(227, 47, 36, 0.1);
}

.nav-link-cta {
  position: relative;
  overflow: hidden;
}

.nav-link-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.nav-link-cta:hover::before {
  left: 100%;
}

.nav-link.active {
  color: rgba(227, 47, 36, 1);
  font-weight: 600;
}

.dark .nav-link.active {
  color: rgba(227, 47, 36, 1);
}

.nav-link.active .nav-underline {
  transform: translateX(-50%) scaleX(1);
}

/* Footer Styles */
.footer-link {
  transition: all 0.3s ease;
}

.footer-link:hover {
  transform: translateX(4px);
}

.footer-contact-link {
  transition: all 0.3s ease;
}

.footer-contact-link:hover {
  transform: translateX(4px);
}

.footer-contact-link svg {
  transition: transform 0.3s ease;
}

.footer-contact-link:hover svg {
  transform: scale(1.1);
}

.footer-social-link {
  position: relative;
  overflow: hidden;
}

.footer-social-link::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease;
}

.footer-social-link:hover::before {
  width: 100%;
  height: 100%;
}

/* Floating Chatbot Widget */
#chatbotWidget {
  animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#chatbotWindow {
  animation: slideInUp 0.3s ease-out;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

#chatbotToggle {
  position: relative;
  box-shadow: 0 10px 25px rgba(227, 47, 36, 0.3);
}

#chatbotToggle:hover {
  box-shadow: 0 15px 35px rgba(227, 47, 36, 0.4);
}

/* Responsive chatbot */
@media (max-width: 640px) {
  #chatbotWidget {
    bottom: 1rem;
    left: 1rem;
  }
  
  #chatbotWindow {
    width: calc(100vw - 2rem);
    max-width: 20rem;
    height: 24rem;
  }
  
  #chatbotToggle {
    width: 3.5rem;
    height: 3.5rem;
  }
}

/* Mountains Container - ensure seamless blend */
.mountains-container {
  background: rgb(23 23 23);
}

.dark .mountains-container {
  background: rgb(10 10 10);
}

/* Ensure mountains SVG blends with footer */
.mountains-container svg {
  mix-blend-mode: normal;
}
