/* ===== Footer Styling ===== */
@import '/css/global.css';

* {
  margin: 0;
}

.footer {
  background: #0a0a0a;
  color: #ccc;
  padding: 60px 20px 30px;
  font-family: 'Poppins', sans-serif;
  /* margin-top: 20px; */
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer h3,
.footer h4 {
  color: #fff;
  margin-bottom: 15px;
  font-weight: 600;
}

.footer p {
  line-height: 1.6;
  font-size: 14px;
}

.footer-links ul,
.footer-services ul,
.footer-social ul {
  list-style: none;
  padding: 0;
}

.footer-links li,
.footer-services li {
  margin: 8px 0;
}

.footer-links a,
.footer-services a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover,
.footer-services a:hover {
  color: #00dbde;
}

.footer-social ul {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

/* Individual Icon Link styling */
.social-media a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #f0f0f000;
  color: #ccc;
  text-decoration: none;
  font-size: 16px;
  transition: all 0.3s ease;
  border: 2px #ccc solid;
}

/* Hover Effects */
.social-media a:hover {
  background-color: var(--accent-pink);
}

.footer-bottom {
  text-align: center;
  padding-top: 25px;
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
  color: #aaa;
}

.developer-of-web a{
  position: relative;
  z-index: 1199;
  width: fit-content;
}

.footer-bottom p {
  margin: 5px 0;
}

@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-social ul {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/*  */
/* ===== Floating Buttons (WhatsApp & Scroll To Top) ===== */
.floating-buttons {
  position: fixed;
  bottom: 15px;
  display: flex;
  flex-direction: row-reverse;
  gap: 15px;
  z-index: 100;
  padding: 0 20px;
  width: 100%;
  justify-content: space-between;
}

/* WhatsApp Floating Button */
.whatsapp-btn {
  background: #f5f8f6;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: #4CAF50;
  font-size: 24px;
}

.whatsapp-btn img {
  width: 20px;
  height: 20px;
  max-width: 30px;
  max-height: 30px;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(37, 211, 102, 0.5);
}

/* Scroll to Top Button */
#scrollTopBtn {
  display: none;
  background: #00dbde;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: background 0.3s, transform 0.3s;
}

#scrollTopBtn:hover {
  background: #65e09e;
  transform: scale(1.1);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .floating-buttons {
    gap: 12px;
  }

  .whatsapp-btn,
  #scrollTopBtn,
  #open-chat,
  .toggle-btn {
    width: 30px !important;
    height: 30px !important;
  }

  #open-chat,
  .toggle-btn,
  .whatsapp-btn {
    font-size: 16px !important;
    padding: 0 !important;
  }

  #scrollTopBtn {
    font-size: 1em;
  }
}

/* Footer subscribe form */
.footer-form {
  margin-top: 20px;
}

.footer-form h4 {
  margin-bottom: 10px;
  font-size: 16px;
}

.footer-form form {
  display: flex;
  max-width: 400px;
  margin: 0 auto;
}

.footer-form input[type="email"] {
  padding: 8px;
  width: calc(100% - 92.9px);
  border: none;
  border-radius: 4px 0 0 4px;
  font-size: 14px;
}

.footer-form input[type="email"]:focus {
  outline: none;
}

.footer-form button {
  padding: 8px 12px;
  border: none;
  background: var(--accent-pink);
  color: #fff;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s;
}

.footer-form button:hover {
  background: #65e09e;
}

.footer-bottom a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-bottom a:hover {
  color: #ffffff;
}

.msg-buttons {
  display: flex;
  gap: 12px;
  position: fixed;
  right: 20px;
  bottom: 20px;
}

.legal-pages a {
  margin: 0 10px;
}


/*  */
/* ======== chat.css ======== */
#chat-box {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 320px;
  max-width: 90%;
  background: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  font-family: Arial, sans-serif;
  display: none;
  overflow: hidden;
  /* display: flex; */
  flex-direction: column;
  height: 80vh;
  max-height: 400px;
}

#chat-box .chat-box-header {
  background: #4CAF50;
  color: white;
  padding: 10px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#chat-box .chat-box-header span {
  cursor: pointer;
}

#chat-messages {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Hide default scrollbar, small thin scrollbar */
#chat-messages::-webkit-scrollbar {
  width: 4px;
  height: 2px;
}

#chat-messages::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.message {
  display: flex;
  align-items: flex-start;
  gap: 5px;
}

.message.bot {
  justify-content: flex-start;
}

.message.user {
  justify-content: flex-end;
}

.message img {
  padding: 2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  position: relative;
  border: 2px solid #4CAF50;
}

/* Base bubble */
.bubble {
  max-width: 220px;
  padding: 8px 12px;
  font-size: 14px;
  line-height: 1.3;
  word-wrap: break-word;
  position: relative;
  border-radius: 15px;
}

/* Bot bubble (left) with tail */
.bubble.bot {
  background: #e0e0e0;
  color: #000;
  border-top-left-radius: 0;
}

.bubble.bot::before {
  content: "";
  position: absolute;
  top: 0px;
  left: -12px;
  width: 0;
  height: 0;
  border-top: 0px solid transparent;
  border-right: 13px solid #e0e0e0;
  border-bottom: 12px solid transparent;
}

/* User bubble (right) with tail */
.bubble.user {
  background: #4CAF50;
  color: white;
  border-top-right-radius: 0;
}

.bubble.user::after {
  content: "";
  position: absolute;
  top: 0px;
  right: -12px;
  width: 0;
  height: 0;
  border-top: 0px solid transparent;
  border-left: 13px solid #4CAF50;
  border-bottom: 12px solid transparent;
}


#chat-input-container {
  display: flex;
  border-top: 1px solid #ddd;
}

#chat-input {
  flex: 1;
  padding: 8px;
  border: none;
  outline: none;
  font-size: 14px;
}

#chat-input::placeholder {
  color: #999;
}

#chat-input-container button {
  background: #4CAF50;
  color: white;
  border: none;
  padding: 0 12px;
  cursor: pointer;
  transition: 0.2s;
}

#chat-input-container button:hover {
  background: #45a049;
}

#open-chat {
  background: #4CAF50;
  color: white;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  font-weight: bold;
  font-size: 24px;
  height: 40px;
  width: 40px;
}

/* Hide class */
.ai-btn.hidden {
  display: none;
}

/* Toggle button style */
.toggle-btn {
  background: #4CAF50;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  color: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
}

.toggle-btn:hover {
  background: #45a049;
  transform: scale(1.05);
}

/* Start subscribe button result */
.toast {
  padding: 12px 18px;
  border-radius: 6px;
  font-size: 14px;
  margin-top: 10px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.success {
  background: #d4edda;
  color: #155724;
}

.toast.error {
  background: #f8d7da;
  color: #721c24;
}

/* End subscribe button result */
/* Animated Typing Dots */
.typing-loader {
  display: flex;
  gap: 4px;
  padding: 4px 0;
}

.typing-loader span {
  width: 6px;
  height: 6px;
  background-color: #888;
  border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out both;
}

.typing-loader span:nth-child(1) { animation-delay: -0.32s; }
.typing-loader span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1.0); }
}