/* Base styles, ensuring Exo 2 is default */
body {
  font-family: 'Exo 2', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #0e1b4f;
  /* Exact dark navy color from screenshots */
  color: #e0e7ff;
  /* Exact light text color from screenshots */
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}


/* Gradient Overlay for more depth */
body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 10% 20%, rgba(204, 214, 39, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(0, 224, 255, 0.1) 0%, transparent 40%);
  pointer-events: none;
  z-index: -1;
}

/* Product Card specific styles for hover glow and transform */
.product-card {
  background-color: rgba(14, 27, 79, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(204, 214, 39, 0.1);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
}

.product-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  /* Yellow-green glow background */
  background: radial-gradient(circle, rgba(204, 214, 39, 0.2) 0%, transparent 50%);
  transform: scale(0);
  opacity: 0;
  transition: transform 0.5s ease-out, opacity 0.5s ease-out;
  z-index: -1;
}

.product-card:hover::before {
  transform: scale(1);
  opacity: 1;
}

.product-card:hover {
  transform: translateY(-12px) scale(1.03);
  /* Updated shadow for a stronger glow effect */
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6),
    0 0 35px rgba(204, 214, 39, 0.5);
  border-color: #ccd627;
}

/* Keyframes for text typing animation (Not used in the final markup, but kept) */
@keyframes typing {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

@keyframes blink-caret {

  from,
  to {
    border-color: transparent;
  }

  50% {
    border-color: #ccd627;
  }
}

.typing-effect {
  overflow: hidden;
  white-space: nowrap;
  border-right: .15em solid #ccd627;
  animation:
    typing 3.5s steps(40, end),
    blink-caret .75s step-end infinite;
  width: 0;
  animation-fill-mode: forwards;
}

.no-caret {
  border-right: none;
}

/* Initial hidden state for scroll animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Decorative elements for Hero Section */
.hero-decoration-base {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.6;
  animation: floatAndPulse 15s infinite ease-in-out alternate;
  pointer-events: none;
  z-index: -1;
}

.hero-decoration-1 {
  width: 200px;
  height: 200px;
  background-color: rgba(204, 214, 39, 0.2);
  top: 10%;
  left: 15%;
  animation-delay: 0s;
}

.hero-decoration-2 {
  width: 150px;
  height: 150px;
  background-color: rgba(0, 224, 255, 0.2);
  bottom: 5%;
  right: 10%;
  animation-delay: 5s;
}

.hero-decoration-3 {
  width: 100px;
  height: 100px;
  background-color: rgba(204, 214, 39, 0.15);
  top: 50%;
  left: 80%;
  transform: translateY(-50%);
  animation-delay: 10s;
}

@keyframes floatAndPulse {
  0% {
    transform: translateY(0px) scale(1);
    opacity: 0.6;
  }

  50% {
    transform: translateY(20px) scale(1.05);
    opacity: 0.8;
  }

  100% {
    transform: translateY(0px) scale(1);
    opacity: 0.6;
  }
}

/* For subtle grid pattern overlay */
.hero-grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(0deg, transparent 24%, rgba(0, 224, 255, 0.05) 25%, rgba(0, 224, 255, 0.05) 26%, transparent 27%, transparent 74%, rgba(0, 224, 255, 0.05) 75%, rgba(0, 224, 255, 0.05) 76%, transparent 77%, transparent), linear-gradient(90deg, transparent 24%, rgba(0, 224, 255, 0.05) 25%, rgba(0, 224, 255, 0.05) 26%, transparent 27%, transparent 74%, rgba(0, 224, 255, 0.05) 75%, rgba(0, 224, 255, 0.05) 76%, transparent 77%, transparent);
  background-size: 60px 60px;
  opacity: 0.2;
  z-index: -2;
  animation: panGrid 60s linear infinite;
}

@keyframes panGrid {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 60px 60px;
  }
}


/* Keyframe for button glow (Not used in the final markup, but kept) */
@keyframes buttonGlow {
  0% {
    box-shadow: 0 0 10px rgba(204, 214, 39, 0.4);
  }

  50% {
    box-shadow: 0 0 25px rgba(204, 214, 39, 0.8), 0 0 40px rgba(204, 214, 39, 0.6);
  }

  100% {
    box-shadow: 0 0 10px rgba(204, 214, 39, 0.4);
  }
}

.hero-button-glow {
  animation: buttonGlow 3s infinite ease-in-out;
}

/* For animated connecting lines (like a circuit board - Not used in the final markup, but kept) */
.circuit-line {
  position: absolute;
  height: 2px;
  width: 0;
  animation: drawLine 3s ease-out forwards;
  transform-origin: left center;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
}

.circuit-line.line-1 {
  background-color: rgba(204, 214, 39, 0.3);
  top: 20%;
  left: 5%;
  transform: rotate(20deg);
  animation-delay: 1s;
}

.circuit-line.line-2 {
  background-color: rgba(0, 224, 255, 0.3);
  bottom: 10%;
  right: 15%;
  transform: rotate(-30deg);
  animation-delay: 1.5s;
}

.circuit-line.line-3 {
  background-color: rgba(204, 214, 39, 0.3);
  top: 60%;
  left: 30%;
  transform: rotate(50deg);
  animation-delay: 2s;
}

@keyframes drawLine {
  0% {
    width: 0;
    opacity: 0;
  }

  50% {
    width: 150px;
    opacity: 1;
  }

  100% {
    width: 150px;
    opacity: 0.3;
  }
}

/* Chatbot panel refinements */
#chatbot-modal {
  width: 20rem;
  max-width: 22rem;
  height: 26.25rem;
  max-height: calc(100vh - 10rem);
  right: 2rem;
  bottom: 6rem;
}

.chatbot-panel {
  display: flex;
  flex-direction: column;
  background: rgba(8, 16, 45, 0.95);
  border: 1px solid rgba(204, 214, 39, 0.7);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(16, 192, 252, 0.2);
  backdrop-filter: blur(16px);
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(204, 214, 39, 0.35);
  background: linear-gradient(90deg, rgba(12, 25, 68, 0.9), rgba(10, 18, 52, 0.9));
}

#chat-body {
  flex: 1;
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: radial-gradient(circle at top, rgba(16, 192, 252, 0.08), transparent 55%), #050b26;
}

.message-wrapper {
  display: flex;
  width: 100%;
}

.message-wrapper.user {
  justify-content: flex-end;
}

.message-wrapper.bot {
  justify-content: flex-start;
}

.message-bubble {
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  max-width: 85%;
  line-height: 1.4;
  font-size: 0.9rem;
  background: #1b2147;
  color: #f5f7ff;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  word-break: break-word;
}

.message-bubble.bot {
  border-color: rgba(204, 214, 39, 0.25);
}

.message-bubble.user {
  background: linear-gradient(135deg, #3f8bff, #2563eb);
  border-color: rgba(59, 130, 246, 0.4);
  color: #ffffff;
}

.chat-input-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(204, 214, 39, 0.2);
  background: rgba(5, 11, 38, 0.95);
}

.chat-input-row input {
  flex: 1;
  background: rgba(14, 24, 65, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 0.65rem 1rem;
  color: #e0e7ff;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input-row input:focus {
  border-color: #10c0fc;
  box-shadow: 0 0 0 3px rgba(16, 192, 252, 0.2);
}

.chat-input-row button {
  background: #ccd627;
  color: #0a1030;
  border: none;
  border-radius: 999px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chat-input-row button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(204, 214, 39, 0.35);
}

#chatbot-toggle {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quick-replies {
  background: rgba(22, 30, 73, 0.95);
  border-radius: 1rem;
  padding: 0.65rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  border: 1px solid rgba(204, 214, 39, 0.2);
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.35);
}

.quick-replies button {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(37, 99, 235, 0.5));
  border: 1px solid rgba(37, 99, 235, 0.4);
  color: #dbeafe;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.quick-replies button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 15px rgba(37, 99, 235, 0.35);
}

.message-link {
  color: #10c0fc;
  text-decoration: underline;
  word-break: break-all;
}

.message-link:hover {
  color: #40d7ff;
}

@media (max-width: 640px) {
  #chatbot-modal {
    width: calc(100% - 2rem);
    max-width: none;
    left: 1rem;
    right: 1rem;
    bottom: 5.5rem;
    height: auto;
    max-height: calc(100vh - 7rem);
  }

  .chatbot-panel {
    border-radius: 1.75rem;
  }

  .chat-header h3 {
    font-size: 1rem;
  }

  .message-bubble {
    max-width: 100%;
  }

  .chat-input-row {
    flex-wrap: wrap;
    padding: 0.85rem;
  }

  .chat-input-row input {
    width: 100%;
  }

  .chat-input-row button {
    width: 42px;
    height: 42px;
  }

  #chatbot-toggle {
    bottom: 1rem !important;
    right: 1rem !important;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 420px) {
  #chatbot-modal {
    left: 0.75rem;
    right: 0.75rem;
    width: calc(100% - 1.5rem);
    bottom: 5rem;
  }

  .quick-replies {
    gap: 0.4rem;
  }

  .quick-replies button {
    flex: 1 1 calc(50% - 0.4rem);
    text-align: center;
  }
}