/* ==========================================================================
   Chatbot Styles
   ========================================================================== */

body.modal-open .chatbot-toggle {
  display: none;
  z-index: 100 !important;
}

/*------------------ Floating Chatbot Button-------------------- */
.chatbot-toggle {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: white;
  border-radius: 50px;
  padding: 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.4s ease;
  z-index: 9999;
  border: none;
  min-width: 80px;
  height: 80px;
  overflow: visible;
}

.chatbot-toggle:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
  padding: 18px 30px 18px 18px;
  gap: 12px;
  min-width: auto;
}

.chatbot-toggle span {
  font-size: 18px;
  color: #161616;
  font-weight: 400;
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  transition:
    max-width 0.4s ease,
    opacity 0.3s ease;
  opacity: 0;
  padding-right: 5px;
}

.chatbot-toggle:hover span {
  max-width: 250px;
  opacity: 1;
}

.chatbot-toggle.hidden {
  opacity: 0;
  visibility: hidden;
  transform: scale(0) translateY(20px);
  pointer-events: none;
  transition: all 0.3s ease;
}

.robot-icon {
  width: 55px;
  height: 55px;
  background: transparent;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  padding: 0;
  overflow: visible;
}

.robot-icon img {
  width: 120%;
  height: 120%;
  object-fit: contain;
}

.robot-icon::before,
.robot-face,
.robot-eye,
.robot-antenna {
  display: none;
}

/*----------------- Chat Window ----------*/
.chatbot-window {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 380px;
  height: 600px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  transform: scale(0) translateY(50px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 9998;
}

.chatbot-window.active {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Chat Header */
.chat-header {
  background: #0066cc;
  color: white;
  padding: 25px 20px;
  border-radius: 20px 20px 0 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
  position: relative;
}

.header-top {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.chat-header-content {
  display: flex;
  align-items: flex-start;
  gap: 0;
  flex-direction: column;
}

.header-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  min-height: 50px;
  background: #fafafa;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.header-icon img {
  width: 60%;
  height: 60%;
  object-fit: contain;
}

.chat-title {
  width: 100%;
}

.chat-title h3 {
  font-size: 32px;
  font-weight: 400;
  margin-bottom: 10px;
  line-height: 1.2;
}

.chat-title h3 {
  font-size: 48px;
  line-height: 60px;
  letter-spacing: 0;
  font-weight: 600;
}

.chat-title p {
  font-size: 14px;
  opacity: 0.95;
  line-height: 20px;
  font-weight: 400;
}

.close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 32px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
  line-height: 1;
}

.close-btn:hover {
  transform: rotate(90deg);
}

/* -----------Chat Messages--------- */
.chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  background: #f5f7fa;
}

.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 10px;
}

.message {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  animation: messageSlide 0.3s ease;
}

@keyframes messageSlide {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message.user {
  flex-direction: row-reverse;
}

.message-avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  flex-shrink: 0;
}

.message-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.message-content {
  max-width: 70%;
}

.message-bubble {
  background: white;
  padding: 12px 16px;
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  font-size: 14px;
  line-height: 1.5;
  color: #2d3748;
}

.message.user .message-bubble {
  background: #0066cc;
  color: white;
}

.message-time {
  font-size: 11px;
  color: #a0aec0;
  margin-top: 4px;
  padding: 0 8px;
}

/* Typing Indicator */
.typing-indicator {
  display: none;
  gap: 10px;
  margin-bottom: 20px;
  animation: messageSlide 0.3s ease;
}

.typing-indicator.active {
  display: flex;
}

.typing-dots {
  background: white;
  padding: 12px 16px;
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  gap: 4px;
}

.typing-dot {
  width: 8px;
  height: 8px;
  background: #cbd5e0;
  border-radius: 50%;
  animation: typing 1.4s infinite;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.7;
  }

  30% {
    transform: translateY(-10px);
    opacity: 1;
  }
}

/* Chat Input */
.chat-input {
  padding: 15px 20px;
  background: white;
  border-radius: 0 0 20px 20px;
  border-top: 1px solid #e2e8f0;
}

.input-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f7fafc;
  border-radius: 30px;
  padding: 10px 15px;
}

.input-icons {
  display: flex;
  gap: 10px;
  align-items: center;
}

.input-icon {
  width: 24px;
  height: 24px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
  color: #718096;
}

.input-icon:hover {
  opacity: 1;
}

.chat-input input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 15px;
  padding: 8px 10px;
  color: #2d3748;
}

.chat-input input::placeholder {
  color: #cbd5e0;
}

.send-btn {
  background: #0066cc;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.send-btn:hover {
  background: #0052a3;
  transform: scale(1.05);
}

.send-btn svg {
  width: 20px;
  height: 20px;
  fill: white;
}

/* ==========================================================================
   Navbar
   ========================================================================== */

.navbar {
  z-index: 1000;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.desktop-nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.desktop-nav-links .nav-link {
  color: #161616;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0;
  transition: color 0.2s;
}

.desktop-nav-links .nav-link:hover {
  color: #ff5500;
}

.navbar-container {
  background-color: rgba(250, 250, 250, 0.04);
  height: 80px;
  backdrop-filter: blur(60px);
}

/* Header Button */
.header-btn {
  width: 158px;
  height: 48px;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.75rem 1.5rem;
  color: #ffffff;
  background-color: #ff5500;
  border: 1px solid #ff5500;
  border-radius: 2444px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  z-index: 10;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0;
  white-space: nowrap;
}

.header-btn:hover {
  color: #ff5500;
  border-color: #ff5500;
  background-color: transparent;
}

/* Button Effect */
.header-btn::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 10px;
  height: 10px;
  background-color: #ffffff;
  border-radius: 50%;
  transform: translate(-50%, 50%) scale(0);
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: -1;
}

.header-btn:hover::after {
  transform: translate(-50%, -50%) scale(60);
}

/* Arrow SVG Color */
.header-btn .btn-arrow svg path {
  fill: #ffffff;
  transition: fill 0.3s ease-in-out;
}

.header-btn .btn-arrow svg {
  width: 100%;
  max-width: 30px;
  max-height: 12px;
  margin-left: 3px;
  display: flex;
  justify-content: center;
}

.header-btn:hover .btn-arrow svg path {
  fill: #ff5500;
}

/* Hamburger Button */
.navbar-toggler {
  outline: none !important;
  box-shadow: none !important;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative; /* important */
  z-index: 1060;
}

/* Hamburger Icon */
.hamburger {
  width: 24px;
  height: 16px;
  margin-top: 6px;
  position: relative;
  left: 10px;
  cursor: pointer;
  z-index: 10;
}

.hamburger-line {
  opacity: 0;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #161616;
  border-radius: 2px;
  transition: transform 0.3s ease-in-out;
}

.hamburger::before {
  top: 0px;
}

.hamburger::after {
  bottom: 7px;
}

.navbar-toggler[aria-expanded="true"] .hamburger::before {
  transform: translateY(3.5px) rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .hamburger::after {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* Modal Styles */
.custom-modal .modal-dialog {
  width: 100%;
  height: 90vh;
  max-width: 100%;
  margin: 0;
  padding: 0;
  position: relative;
  top: 50px;
  right: auto;
  border-radius: 20px 0 20px 20px;
  transform-origin: top right;
  animation: slideInFromCorner 0.4s ease-out forwards;
}

.hamburger::before {
  top: 0px;
}

.hamburger::after {
  bottom: 7px;
}

/* When ACTIVE → Make X shape */
.navbar-toggler.active .hamburger::before {
  transform: translateY(3.5px) rotate(45deg);
}

.navbar-toggler.active .hamburger::after {
  transform: translateY(-3.5px) rotate(-45deg);
}

@keyframes slideInFromCorner {
  from {
    opacity: 0;
    transform: scale(0.1) translateX(50px) translateY(-50px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateX(0) translateY(0);
  }
}

@keyframes slideOutToCorner {
  from {
    opacity: 1;
    transform: scale(1) translateX(0) translateY(0);
  }

  to {
    opacity: 0;
    transform: scale(0.1) translateX(50px) translateY(-50px);
  }
}

/* When modal is closing */
.custom-modal.closing .modal-dialog {
  animation: slideOutToCorner 0.4s ease-out forwards !important;
}

.custom-modal.fade .modal-dialog {
  transition: all 0.5s ease-out;
}

.custom-modal .modal-content {
  position: relative;
  border-radius: 20px 0 20px 20px;
  overflow: hidden;
  background: transparent !important;
  backdrop-filter: blur(40px); /* main blur */
  height: 100%;
}

.modal-backdrop.show {
  display: none !important;
  opacity: 0 !important;
}

.modal.show {
  background-color: transparent !important;
}

body.modal-open {
  overflow: hidden;
  padding-right: var(--bs-scrollbar-width) !important;
}

.navbar-container.modal-open {
  padding-right: var(--bs-scrollbar-width) !important;
}
.custom-modal .modal-dialog .modal-content {
  opacity: 1;
  border-radius: 20px 0 20px 20px;
  height: 100%;
  background-color: transparent;
  backdrop-filter: blur(68px) !important;
}
.custom-modal .modal-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url(images/menu.png);
  background-size: cover;
  background-position: center;
  opacity: 0.35; /* visible image */
  z-index: -2;
}

.custom-modal .modal-content::after {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(20px);
  z-index: -1;
}

.custom-modal .modal-dialog {
  content: "";
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  background: rgba(255, 255, 255, 0.15);
}

.modal-box {
  height: 100%;
}

.custom-modal .modal-body {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 40px;
  position: relative;
  overflow: hidden;
}

.modal-close-btn {
  position: absolute;
  top: 0;
  right: 0;
  padding: 5px 20px;
  font-size: 32px;
  font-weight: 600;
  cursor: pointer;
}

.modal-nav-link {
  font-size: 80px;
  font-weight: 400;
  line-height: 95px;
  letter-spacing: 0;
  color: #161616 !important;
  text-transform: uppercase;
  margin-bottom: 35px;
  display: block;
  transition: color 0.2s;
  text-decoration: none;
  font-family: "Poiret One", sans-serif;
}
.modal-nav-link:hover {
  color: #ff5500 !important;
}

ul.list-unstyled.text-start {
  margin: 0;
}

.list-unstyled li:last-child a {
  margin-bottom: 0;
}

.custom-modal .btn-close {
  width: 5px;
  height: 2px;
  opacity: 1;
  padding: 0.5rem;
  font-size: 1.5rem;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

/* Extra large devices (large desktops, 1200px and down) */
@media (max-width: 1200px) {
  .desktop-nav-links .nav-link {
    font-size: 13px;
  }

  .desktop-nav-links {
    gap: 14px;
  }

  .header-btn {
    width: 145px;
    height: 44px;
    font-size: 13px;
    padding: 0.6rem 1.2rem;
  }

  .navbar .container {
    padding-inline: 16px;
  }

  .navbar-brand .logo-image {
    max-height: 36px;
  }
}

/* Specific breakpoint for 1024px to 992px */
@media (max-width: 1024px) and (min-width: 992px) {
  .desktop-nav-links .nav-link {
    font-size: 12px;
  }

  .desktop-nav-links {
    gap: 10px;
  }

  .header-btn {
    width: 135px;
    height: 40px;
    font-size: 12px;
  }

  .navbar-brand .logo-image {
    max-height: 32px;
  }
}

/* Large devices (desktops, 992px and down) */
@media (max-width: 992px) {
  .desktop-nav-links .nav-link {
    font-size: 13px;
  }

  .desktop-nav-links {
    gap: 14px;
  }

  .header-btn {
    width: 145px;
    height: 44px;
    font-size: 13px;
    padding: 0.6rem 1.2rem;
  }

  .navbar .container {
    padding-inline: 16px;
  }

  .navbar-brand .logo-image {
    max-height: 36px;
  }

  .custom-modal .modal-dialog {
    width: 85vw;
    height: 85vh;
    max-width: 85vw;
    top: 50px;
    right: 1px;
  }
  .navbar-nav {
    text-align: center;
    margin-top: 1rem;
  }

  .navbar-nav .nav-item {
    margin-bottom: 0.5rem;
  }

  .navbar-nav .nav-link svg {
    width: 14px;
    height: 14px;
    margin-right: 4px;
  }
}

/* Specific breakpoint for 992px to 768px */

@media (max-width: 992px) and (min-width: 768px) {
  .navbar-container {
    height: auto;
    min-height: 70px;
  }

  .navbar .container {
    padding: 0 20px !important;
    flex-wrap: nowrap;
  }

  .desktop-nav-links {
    display: flex !important;
    gap: 12px !important;
    flex-direction: row;
  }

  .desktop-nav-links .nav-link {
    font-size: 13px !important;
    white-space: nowrap;
  }

  .header-btn {
    width: 140px !important;
    height: 40px !important;
    font-size: 13px !important;
    padding: 8px 16px !important;
    margin-right: 15px;
  }

  .navbar-brand .logo-image {
    max-height: 35px !important;
  }

  .navbar-toggler {
    margin-left: 0;
  }
}

/* Medium devices (tablets, 768px and down) */

@media (max-width: 768px) {
  .custom-modal .modal-content {
    width: 100%;
    height: 100%;
    position: relative;
    display: inline-block;
  }

  .custom-modal .modal-body {
    margin-left: 5rem;
  }

  @media (max-width: 575px) {
    .navbar-brand svg {
      width: 100px;
    }

    .btn.btn-primary {
      font-size: 0.8rem;
      padding: 0.375rem 0.75rem;
    }
  }
}

/* Small devices (phones, 576px and down) */
@media (max-width: 576px) {
  .d-flex.justify-content-center.align-items-center.ms-auto {
    gap: 0 !important;
  }
  .desktop-nav-links {
    display: none !important;
  }

  .navbar-toggler {
    display: block !important;
  }

  .header-top {
    margin-bottom: 0;
  }

  .modal-nav-link {
    font-size: 36px;
    line-height: 48px;
    padding: 0;
    margin: 25px;
  }

  .custom-modal .modal-body {
    margin-left: 0 !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  .custom-modal .modal-body {
    padding: 1rem 2rem;
  }

  .modal-nav-link {
    font-size: 3rem;
  }
  .robot-icon {
    width: 45px;
    height: 45px;
  }
  .robot-icon img {
    width: 95%;
    height: 95%;
    object-fit: contain;
  }
  .chatbot-toggle {
    min-width: 50px;
    height: 50px;
  }

  .send-btn {
    position: absolute;
    right: 7px;
  }

  .input-wrapper {
    padding: 10px 15px !important;
    width: 18rem;
  }
  .chat-input input {
    font-size: 12px;
    padding: 5px 10px;
  }
  .send-btn {
    width: 30px;
    height: 30px;
  }
  .send-btn svg {
    width: 17x;
    height: 17px;
  }
}

/* Extra small devices (phones, 414px and down) */
@media (max-width: 414px) {
  .chatbot-window {
    width: calc(100% - 20px);
    height: calc(100vh - 100px);
    bottom: 10px;
    right: 10px;
    border-radius: 15px;
  }

  .navbar {
    height: 60px;
    justify-content: space-between;
  }

  .header-btn {
    font-size: 12px;
    line-height: 17px;
    width: 138px;
    height: 40px;
  }

  .hamburger {
    height: 18px;
    margin-top: 5px;
  }

  .custom-modal .modal-dialog {
    width: calc(100vw - 30px);
    height: calc(100vh - 30px);
    max-width: calc(100vw - 30px);
    margin: 15px auto;
  }

  .custom-modal .modal-content {
    border-radius: 25px 0px 25px 25px;
  }

  .custom-modal .modal-content::after {
    border-radius: 25px 0px 25px 25px;
  }

  .custom-modal .btn-close {
    width: 30px;
    height: 30px;
    font-size: 1.2rem;
    opacity: 0.8;
    padding: 0;
  }

  .custom-modal .modal-body {
    padding-top: 20px !important;
    margin-left: 40px;
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 80px;
    padding-left: 2.5rem;
  }

  .modal-nav-link {
    font-size: 36px !important;
    line-height: 48px;
    letter-spacing: 0;
    margin-bottom: 35px;
    font-weight: 400;
  }

  .custom-modal .modal-body ul {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .custom-modal .modal-body li {
    margin-bottom: 0;
  }
  .robot-icon {
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 380px) {
  .navbar-brand .logo-image {
    max-height: 26px;
  }

  .chatbot-window {
    width: calc(100% - 20px);
    height: calc(100vh - 100px);
    bottom: 10px;
    right: 10px;
  }
  .robot-icon {
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 360px) {
  .header-btn {
    font-size: 10px;
    line-height: 10px;
    width: 114px;
    height: 30px;
  }

  .navbar-brand .logo-image {
    max-height: 25px;
  }

  .navbar-container {
    height: 64px;
  }

  .chatbot-window {
    width: calc(100% - 20px);
    height: calc(100vh - 100px);
    bottom: 10px;
    right: 10px;
  }
  .robot-icon {
    width: 45px;
    height: 45px;
  }
  .input-wrapper {
    padding: 10px 15px !important;
    width: 15rem;
  }
  .chat-input input {
    font-size: 12px;
    padding: 5px 10px;
  }
  .chatbot-window.active {
    background: transparent;
  }
}
