:root {
  --primary: #2D2753;
  --secondary: #5A6BAC;
  --tertiary: #CED7F8;
  --lilac: rgba(206, 215, 248, 0.2);
  --white: #FFFFFF;
  --gray: #4E4D4D;
  --dark-gray: #92929D;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  line-height: 1.6;
  color: #333;
}

html[dir="rtl"] body {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
}

main {
  flex: 1;
}

header {
  z-index: 1000;
  position: sticky;
  top: 0;
}

nav {
  padding: 2rem 9rem;
  z-index: 1001;
  background-color: var(--primary);
}

.text-justify {
  text-align: justify;
}

.nav-link {
  color: var(--white) !important;
  font-weight: 400;
  opacity: 50%;
  text-transform: capitalize !important;
}

.nav-link:hover {
  color: var(--white) !important;
  opacity: 100%;
  text-decoration: none;
  background-size: 100% 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-inline: 4px;
}


.nav-link.active {
  color: var(--white) !important;
  opacity: 100%;
  text-decoration: none;
  background-image: linear-gradient(to right, var(--tertiary), var(--tertiary));
  background-size: 100% 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-inline: 4px;
  font-weight: bold;
}


footer {
  background-color: var(--primary);
  padding: 15px;
  text-align: center;
  color: var(--white);
  font-weight: 400;
  font-size: small;
  bottom: 0;
  border: none;
}


footer .btn-link {
  background-color: var(--gray);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
}

footer .btn-link:hover {
  background-color: var(--white);
  color: var(--gray);
}

.navbar-border {
  border: 20px solid transparent;
  border-image: url('assets/images/border-image.svg');
}

.navbar-toggler {
  border-color: white;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='white' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.container {
  padding-inline: 5rem !important;
}

.btn-main-dark {
  color: var(--white);
  background-color: var(--primary);
  border-radius: 0.7rem;
}

.btn-main-dark:hover {
  color: var(--primary);
  background-color: var(--white);
  border: 1px solid var(--primary);
}

.btn-main {
  color: var(--white);
  background-color: var(--secondary);
  border-radius: 0.7rem;
}

.btn-main:hover {
  border: 1px solid var(--white);
}

.btn-outline {
  color: var(--secondary);
  background-color: var(--white);
  border: 1px solid var(--secondary);
  border-radius: 0.7rem;
}

.btn-outline:hover {
  color: var(--white);
  background-color: var(--secondary);
  border: none;
}

.btn-outline-secondary {
  color: var(--primary);
  border: 2.35px solid var(--primary);
  border-radius: 0.7rem;
}

.btn-outline-secondary:hover {
  color: var(--white);
  background-color: var(--primary);
  border: 2.35px solid var(--primary) !important;
}

.btn-outline-dark {
  color: var(--white);
  background-color: transparent;
  border: 1px solid var(--white);
  border-radius: 0.7rem;
}

.btn-outline-dark:hover {
  color: var(--primary);
  background-color: var(--tertiary);
}

.btn-outline-dark:hover {
  color: var(--primary);
  background-color: var(--tertiary);
  border: none;
}

.btn-tertiary {
  background-color: var(--tertiary);
  color: var(--primary);
  border-radius: 0.7rem;
}

.btn-tertiary:hover {
  border: 1px solid var(--white);
}

.request-btn::before {
  content: "\F1EF";
  font-family: "bootstrap-icons";
  display: inline-block;
  margin-right: 8px;
  vertical-align: middle;
}

.decore-1 {
  animation: rotate360 15s linear infinite;
  width: 21rem;
  left: -14rem;
  top: 30rem;
  position: absolute;
}

.text-truncate {
  width: 100% !important;
}

@keyframes rotate360 {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}



.decore-2 {
  animation: rotate-360 15s linear infinite;
  width: 21rem;
  position: absolute;
  top: 10rem;
  right: -11rem;

}

@keyframes rotate-360 {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(-360deg);
  }
}

.dropdown-menu {
  width: auto !important;
  min-width: 30vw !important;
  white-space: nowrap;
  padding: 0;
  border: none;
}

.navbar .dropdown-item {
  color: var(--primary) !important;
  font-weight: 500 !important;
  padding: 0.5rem 1rem !important;
}

.navbar .dropdown-item:active,
.navbar .dropdown-item.active {
  background-color: var(--secondary) !important;
  color: var(--white) !important;
}

.navbar .dropdown-item:hover {
  background-color: var(--tertiary) !important;
}

.dropdown-item {
  text-align: start !important;
}

#languageToggle {
  width: 17px;
  height: 17px;
  background-size: contain;
  background-repeat: no-repeat;
  background-color: transparent;
  border: none;
  cursor: pointer;
}

.text-container {
  z-index: 100;
  width: 100%;
  height: 100vh;
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
  justify-content: center;
  align-items: center;
  font-size: 96px;
  color: var(--primary);
  font-weight: 700;
  user-select: none;
  text-shadow: 1px 1px rgba(0, 0, 0, 0.1);
}

:root {
  --color-bg1: rgb(211, 169, 233);
  --color-bg2: #FFFFFF;
  --color1: 18, 113, 255;
  --color2: 221, 74, 255;
  --color3: 100, 220, 255;
  --color4: 200, 50, 50;
  --color5: 180, 180, 50;
  --color-interactive: 140, 100, 255;
  --circle-size: 80%;
  --blending: soft-light;
}

@keyframes moveInCircle {
  0% {
    transform: rotate(0deg);
  }

  50% {
    transform: rotate(180deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes moveVertical {
  0% {
    transform: translateY(-50%);
  }

  50% {
    transform: translateY(50%);
  }

  100% {
    transform: translateY(-50%);
  }
}

@keyframes moveHorizontal {
  0% {
    transform: translateX(-50%) translateY(-10%);
  }

  50% {
    transform: translateX(50%) translateY(10%);
  }

  100% {
    transform: translateX(-50%) translateY(-10%);
  }
}


.gradient-bg {
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
  background: linear-gradient(40deg, var(--color-bg1), var(--color-bg2));
  top: -72px;
  left: 0;
  border-bottom-left-radius: 10rem;
  border-bottom-right-radius: 10rem;

  svg {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
  }


  .gradients-container {
    filter: url(#goo) blur(40px);
    width: 100%;
    height: 100%;
  }

  .g1 {
    position: absolute;
    background: radial-gradient(circle at center, rgba(var(--color1), 0.8) 0, rgba(var(--color1), 0) 50%) no-repeat;
    mix-blend-mode: var(--blending);

    width: var(--circle-size);
    height: var(--circle-size);
    top: calc(50% - var(--circle-size) / 2);
    left: calc(50% - var(--circle-size) / 2);

    transform-origin: center center;
    animation: moveVertical 30s ease infinite;

    opacity: 1;
  }

  .g2 {
    position: absolute;
    background: radial-gradient(circle at center, rgba(var(--color2), 0.8) 0, rgba(var(--color2), 0) 50%) no-repeat;
    mix-blend-mode: var(--blending);

    width: var(--circle-size);
    height: var(--circle-size);
    top: calc(50% - var(--circle-size) / 2);
    left: calc(50% - var(--circle-size) / 2);

    transform-origin: calc(50% - 400px);
    animation: moveInCircle 20s reverse infinite;

    opacity: 1;
  }

  .g3 {
    position: absolute;
    background: radial-gradient(circle at center, rgba(var(--color3), 0.8) 0, rgba(var(--color3), 0) 50%) no-repeat;
    mix-blend-mode: var(--blending);

    width: var(--circle-size);
    height: var(--circle-size);
    top: calc(50% - var(--circle-size) / 2 + 200px);
    left: calc(50% - var(--circle-size) / 2 - 500px);

    transform-origin: calc(50% + 400px);
    animation: moveInCircle 40s linear infinite;

    opacity: 1;
  }

  .g4 {
    position: absolute;
    background: radial-gradient(circle at center, rgba(var(--color4), 0.8) 0, rgba(var(--color4), 0) 50%) no-repeat;
    mix-blend-mode: var(--blending);

    width: var(--circle-size);
    height: var(--circle-size);
    top: calc(50% - var(--circle-size) / 2);
    left: calc(50% - var(--circle-size) / 2);

    transform-origin: calc(50% - 200px);
    animation: moveHorizontal 40s ease infinite;

    opacity: 0.7;
  }

  .g5 {
    position: absolute;
    background: radial-gradient(circle at center, rgba(var(--color5), 0.8) 0, rgba(var(--color5), 0) 50%) no-repeat;
    mix-blend-mode: var(--blending);

    width: calc(var(--circle-size) * 2);
    height: calc(var(--circle-size) * 2);
    top: calc(50% - var(--circle-size));
    left: calc(50% - var(--circle-size));

    transform-origin: calc(50% - 800px) calc(50% + 200px);
    animation: moveInCircle 20s ease infinite;

    opacity: 1;
  }

  .interactive {
    position: absolute;
    background: radial-gradient(circle at center, rgba(var(--color-interactive), 0.8) 0, rgba(var(--color-interactive), 0) 50%) no-repeat;
    mix-blend-mode: var(--blending);

    width: 100%;
    height: 100%;
    top: -50%;
    left: -50%;

    opacity: 0.7;
  }
}

.page-header {
  color: var(--primary);
  padding: 1.2rem;
  margin-bottom: 2rem;
  background-color: var(--tertiary);
  font-size: xx-large;
  font-weight: 700;
  text-align: center;
  position: relative;
}

.border-image {
  height: 13rem;
  width: 100%;
  object-fit: cover;
  opacity: 70%;
  border-bottom-left-radius: 10rem;
  border-bottom-right-radius: 10rem;
}

.modal-title {
  font-size: x-large;
  font-weight: bold;
  color: var(--primary);
}

.modal-body {
  p {
    font-weight: 500;
    color: var(--primary);
  }
}
.chat-btn {
  position: fixed;
  top: 80vh;
  right: 20px;
  z-index: 1000;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--tertiary);
  color: var(--primary);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.chat-btn:hover {
  background-color: var(--secondary);
  color: var(--white);
  transform: scale(1.05);
}

.offcanvas.offcanvas-end {
  width: 380px;
  display: flex;
  flex-direction: column;
}

.offcanvas-body {
  padding: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.chat-header {
  background-color: var(--primary);
  color: white;
  flex-shrink: 0;
}

.chat-messages {
  height: 77vh;
  overflow-y: auto;
  padding: 15px;
  background-color: #f8f9fa;
  flex: 1;
  min-height: 0;
}

.message {
  max-width: 80%;
  margin-bottom: 15px;
  clear: both;
}

.message.sender {
  float: right;
  background-color: var(--tertiary);
  border-radius: 18px 18px 0 18px;
}

.message.receiver {
  float: left;
  background-color: #ffffff;
  border-radius: 18px 18px 18px 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.message-content {
  padding: 12px 15px;

  p{
    margin-bottom: 0rem;
  }
}

.message-time {
  font-size: 0.7rem;
  color: #6c757d;
  margin-top: 5px;
  text-align: right;
}

#sendMessageBtn{
  background-color: var(--primary);
  color: var(--white);
  border: none;
}

.chat-input {
  border-top: 1px solid #dee2e6;
  padding: 15px;
  background-color: white;
  flex-shrink: 0;
  margin-top: auto;
}

.input-group {
  margin-bottom: 0;
}

@media (max-width: 576px) {
  .offcanvas.offcanvas-end {
    width: 100%;
  }

  .chat-btn {
    top: auto;
    bottom: 20px;
    right: 20px;
  }
}

