:root {
  /* color system */

  /* --bg-dark-color:#090057; */
  --primary-color: #ffffff;
  --primary-color2: #f5f5f5;
  --primary-color3: #f7f7fa;
  --secondary-color1: #3d63ea;
  --secondary-color2: #f9f9ff;
  --secondary2-color: #57007b;
  --shadow-color1: #0000001a;
  --shadow-color2: #7f96e93b;
  --font-color1: #1a202c;
  --font-color2: #2d3748;
  --font-color3: #4a5568;
  --font-color4: #718096;
  --font-color5: #fafafa;
  --danger-color: #bd0707;
  --white: white;
  --Black: black;

  /* font size */

  --font-52: 52px;
  --font-48: 48px;
  --font-40: 40px;
  --font-36: 36px;
  --font-32: 32px;
  --font-28: 28px;
  --font-24: 24px;
  --font-18: 18px;
  --font-16: 16px;
  --font-14: 14px;

  /* border-radius */
  --round-4: 4px;
  --round-8: 8px;
  --round-16: 16px;
  --round-24: 24px;
  --round-28: 28px;
  --round-32: 32px;
  --round-full: 50%;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: "Roboto", sans-serif;
  background-color: var(--bg-primary-color2);
  overflow-x: hidden;
}

#about, #home, #service {
  scroll-margin-top: 80px;
}

ul {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: inherit;
  font: inherit;
}

.container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20%;
}

section {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 36px 0;
}

img {
  display: block;
}

.graduation {
  background: #007bff;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ///////////////// components /////////////// */

.btn {
  padding: 14px 24px;
  border-radius: var(--round-8);
  border: none;
  background-color: transparent;
  cursor: pointer;
  text-transform: capitalize;
}

.primary-btn {
  /* background-image: linear-gradient(
    90deg,
    var(--secondary-color1),
    var(--secondary2-color)
  ); */
  /* color: var(--font-color5); */
  background-color: var(--font-color5);
  box-shadow: 0 4px 14px 0 var(--shadow-color1);
  color: var(--font-color1);
}

.btn:hover {
  transform: scalex(1.05);
  box-shadow: 0 4px 14px 0 var(--secondary-color1);
  color: var(--secondary-color1);
}

.navbar-toggler {
  display: none;
}

.navbar-toggler-icon {
  color: var(--font-color1);
}

.secondary-btn {
  color: var(--secondary-color1);
}

.logout-btn {
  border: none;
  color: var(--danger-color);
  display: none;
}

header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 12px;
  margin-bottom: 32px;
}

header h2 {
  position: relative;
  font-size: var(--font-32);
  width: fit-content;
  text-transform: capitalize;
}

header h2::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  transform: translate(50%, 50%);
  width: 100%;
  height: 4px;
  border-radius: 8px;
  background: #007bff;
  transform: scalex(0.5);
  transition: 1s;
}

header h2:hover::after {
  transform: scaleX(1);
}

.icon-card {
  position: relative;
  display: flex;
  align-items: center;
  /* justify-content: center; */
  gap: 16px;
  font-size: var(--font-18);
  color: #007bff;
  text-shadow:
    1px 1px 0 #ffffff,
    2px 2px 0 #dbdfe3,
    3px 3px 2px rgba(0,0,0,0.3);
  transition: transform 0.2s ease, text-shadow 0.2s ease;
  cursor: pointer;
}

.icon-card:hover {
  transform: translateY(-2px);
  text-shadow:
    2px 2px 0 #ffffff,
    3px 3px 3px rgba(0,0,0,0.4),
    0 0 10px rgba(0,123,255,0.6);
}

.icon-card i {
  font-size: var(--font-24);
}

.icon-card h3 {
  margin: 0;
  font-size: 13px;
  color: #222;
}

.icon-card a {
  font-size: var(--font-16);
  color: var(--font-color3);
}

/*//////////// end components //////////*/
/*//////////// navbar //////////*/
.navbar {
  display: flex;
  justify-content: center;
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 18px 0;
  background-color: var(--primary-color);
  box-shadow: 0 4px 20px 0 var(--shadow-color1);
}

.nav-list ul {
  display: flex;
  gap: 32px;
  align-items: center;
  font-size: var(--font-16);
  font-weight: 500;
  text-transform: capitalize;
  color: var(--font-color2);
}

.active {
  color: var(--secondary-color1);
  font-weight: bold;
}


.nav-list ul a:hover {
  color: var(--secondary-color1);
}

.nav-list i {
  display: inline-block;
}

.nav-list {
  display: flex;
}

.buttons {
  display: flex;
  gap: 12px;
}


/*//////////////////end navbar//////////////// */
/*//////////////////hero section//////////////// */

.hero-section .info .header {
  color: var(--font-color2);
  font-size: var(--font-52);
  margin-bottom: 16px;
}

.hero-section {
  position: relative;
  top: -20px;
  max-height: 750px;
}

.p-hero {
  color: var(--font-color2);
  font-size: var(--font-18);
  margin-bottom: 24px;
  line-height: 24px;
}

.hero-section .btn i {
  color: var(--font-color1);
  margin-left: 8px;
}

.hero-section .icon {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  border-radius: var(--round-full);
  transition: 1s;
}

body[dir="rtl"] .hero-section .icon {
  right: auto;
  left: 24px;
}

/* home icone  */

.hero-section .icon:hover i {
  text-shadow: 8px 8px 40px var(--secondary-color1);
}

.hero-section .icon:hover {
  border-color: var(--secondary-color1);
}

.hero-section .icon i {
  font-size: var(--font-32);
}

/*//////////////////end hero section//////////////// */
/*//////////////////servise section//////////////// */
.service-section {
  background-color: var(--secondary-color2);
}

.service-cards {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.service-cards .card {
  border-radius: 16px;
}

.service-cards .card .img i {
  font-size: var(--font-40);
  color: var(--secondary-color1);
  margin-bottom: 24px;

}

.service-cards .card:hover .info h3 {
  color: var(--secondary-color1);
}

.service-cards .card:hover .info p {
  color: var(--font-color3);
}

.service-cards .card:hover .inner-card {
  border: 1px solid var(--secondary-color1);
}

.service-cards .card:hover .inner-card {
  box-shadow: 0 4px 30px 0 var(--shadow-color2);
}

.service-cards .card .inner-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: var(--font-color5);
  border-radius: var(--round-16);
  padding: 16px;
  min-height: 400px;
  text-align: left;
  box-shadow: 0 4px 30px 0 var(--shadow-color1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-cards .card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px var(--shadow-color1);
}

.service-section .card .info h3 {
  font-size: var(--font-18);
  color: var(--font-color2);
  padding: 8px 0;
}

.service-section .card .info p {
  font-size: var(--font-14);
  color: var(--font-color4);
  line-height: 162%;
}

.inner-card .img {
  font-size: var(--font-32);
}

.mobile-icons {
  display: flex;
  gap: 10px;
  align-items: center;

}

.mobile-icons i {
  font-size: var(--font-28);
  /* align-items: center; */
}

/*//////////////////end servise section//////////////// */
/*//////////////////about section//////////////// */
.decoration {
  width: 100px;
  height: 4px;
  border-radius: var(--round-4);
  background: #007bff;
  margin-bottom: 40px;
}

.about-section .info,
.location {
  border-radius: var(--round-4);
}

.location {
  margin-top: 20px;
  max-width: 90%;
  gap: 0;
}

.about-section .info h2 {
  font-size: var(--font-32);
  color: var(--font-color1);
  margin-bottom: 12px;
}

.vision,
.mission {
  font-size: 20px !important;
}

.about-pragraph {
  margin-top: 5px;
}

.about-section .info p {
  font-size: var(--font-18);
  color: var(--font-color4);
  line-height: 162%;
  margin-bottom: 16px;
}

/*//////////////////end about section//////////////// */
/*//////////////////slider section//////////////// */

.slider-container {
  width: 100%;
  overflow: hidden;
}

.logo {
  width: 350px;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
}

.about-section .slider-container .titel {
  width: 15%;
  margin-left: 10%;
  margin-bottom: 32px;
}

/* style slider */
.logos-slider {
  position: relative;
  overflow: hidden;
  padding: 40px 0;
  white-space: nowrap;
}

.logos-track {
  display: flex;
  align-items: center;
  gap: 50px;
}

.logos-track img {
  height: 80px;
  width: auto;
  object-fit: contain;
  display: block;
  border-radius: var(--round-4);
  transition: transform 0.3s ease;
}

.logos-track img:hover {
  transform: scale(1.1);
}

/*//////////////////end slider section//////////////// */
/*//////////////////footer section//////////////// */

.footer {
  background-color: var(--secondary-color2);
}


.footer .titel {
  margin-bottom: 12px;
}

.footer .titel {
  color: var(--font-color3);
}

.footer .info {
  color: var(--font-color4);
  line-height: 160%;
}

/* icone style */

.footer .icons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
}

.footer .icons .icon-card .fab {
  font-size: var(--font-40);
}

.footer .icons .icon-card .fa-facebook {
  color: #1877F2;
}

.footer .icons .icon-card .fa-linkedin {
  color: #0A66C2;
}

.footer .icons .icon-card .fa-whatsapp {
  color: #25D366;
}

.footer-link {
  font-size: 15px !important;
}

/*//////////////////end about section//////////////// */
/*//////////////////copyrights section//////////////// */
.copyrights {
  padding: 8px 0;
}

.copyrights p {
  text-align: center;
  color: var(--font-color4);
}

/*//////////////////end copyrights section//////////////// */


.containerChat {
  max-width: 1200px;
  width: 100%;
  text-align: center;
  color: white;
}

/* تنسيق الأيقونة بدون دائرة زرقاء */
#chat-icon {
  color: #007BFF !important;
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 42px;
  height: 55PX;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none !important;
  transition: all 0.3s ease;
  z-index: 10000;
  border: none;
  animation: float 3s ease-in-out infinite;
}

/* RTL positioning for chat icon */
body[dir="rtl"] #chat-icon {
  left: auto;
  right: 30px;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

#chat-icon:hover {
  transform: scale(1.15);
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* نافذة الشات */
#chat-window {
  position: fixed;
  bottom: 120px;
  left: 30px;
  width: 380px;
  height: 550px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.3);
  display: none;
  flex-direction: column;
  z-index: 10001;
  border: 1px solid #e0e0e0;
  overflow: hidden;
}

/* RTL positioning for chat window */
body[dir="rtl"] #chat-window {
  left: auto;
  right: 30px;
}

.chat-header {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
  padding: 18px;
  border-radius: 15px 15px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  direction: ltr;
}

/* RTL support for chat header */
body[dir="rtl"] .chat-header,
#chat-window[dir="rtl"] .chat-header {
  direction: rtl;
  flex-direction: row-reverse;
}

.chat-header button {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.chat-header button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  background: #f8f9fa;
  display: flex;
  flex-direction: column;
  direction: ltr;
}

/* RTL support for chat messages container */
body[dir="rtl"] .chat-messages,
#chat-window[dir="rtl"] .chat-messages {
  direction: rtl;
}

.message {
  margin-bottom: 15px;
  padding: 12px 18px;
  border-radius: 18px;
  max-width: 85%;
  line-height: 1.4;
  word-wrap: break-word;
  animation: messageAppear 0.3s ease-out;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

@keyframes messageAppear {
  from {
      opacity: 0;
      transform: translateY(10px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

.user-message {
  background: #007BFF;
  color: white;
  margin-left: auto;
  margin-right: 0;
  border-bottom-right-radius: 5px;
  border-bottom-left-radius: 18px;
  flex-direction: row;
  align-self: flex-end;
}

body[dir="rtl"] .user-message,
#chat-window[dir="rtl"] .user-message {
  margin-left: 0;
  margin-right: auto;
  border-bottom-right-radius: 18px;
  border-bottom-left-radius: 5px;
  /* flex-direction: row-reverse; */
  align-self: flex-start;
}

.bot-message {
  background: white;
  color: #333;
  margin-right: auto;
  margin-left: 0;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 18px;
  border: 1px solid #e0e0e0;
  flex-direction: row;
  align-self: flex-start;
}

body[dir="rtl"] .bot-message,
#chat-window[dir="rtl"] .bot-message {
  margin-right: 0;
  margin-left: auto;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 5px;
  flex-direction: row;
  align-self: flex-end;
}

.message-avatar {
  width: 24px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: transparent !important;
  order: 0;
}

.user-avatar {
  background: transparent;
}

.message-content {
  flex: 1;
  direction: ltr;
  text-align: left;
  word-wrap: break-word;
}

/* RTL support for message content */
body[dir="rtl"] .message-content,
#chat-window[dir="rtl"] .message-content {
  direction: rtl;
  text-align: right;
}

/* LTR support for English messages even in RTL mode */
body[dir="rtl"] .message-content[dir="ltr"],
#chat-window[dir="rtl"] .message-content[dir="ltr"] {
  direction: ltr;
  text-align: left;
}

.chat-input-containerChat {
  padding: 20px;
  border-top: 1px solid #e0e0e0;
  background: white;
  border-radius: 0 0 15px 15px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-direction: row;
}

/* RTL support for input container */
body[dir="rtl"] .chat-input-containerChat,
#chat-window[dir="rtl"] .chat-input-containerChat {
  flex-direction: row;
}

.chat-input {
  flex: 1;
  padding: 12px 18px;
  border: 2px solid #e0e0e0;
  border-radius: 25px;
  outline: none;
  font-size: 14px;
  transition: border-color 0.3s ease;
  direction: ltr;
  text-align: left;
}

/* RTL support for chat input */
body[dir="rtl"] .chat-input,
#chat-window[dir="rtl"] .chat-input {
  direction: rtl;
  text-align: right;
}

.chat-input:focus {
  border-color: #007bff;
}

.send-button {
background: #007bff;
color: white;
border: none;
padding: 12px 15px;
border-radius: 25px;
cursor: pointer;
font-size: 16px;
transition: background 0.3s ease;
display: flex;
align-items: center;
justify-content: center;
width: 45px;
height: 45px;
}

.send-button:hover {
background: #0056b3;
transform: scale(1.05);
}

.typing-indicator {
  display: none;
  margin-right: auto;
  margin-left: 0;
  background: white;
  padding: 10px 15px;
  border-radius: 18px;
  border: 1px solid #e0e0e0;
  color: #666;
  font-style: italic;
  align-items: center;
  gap: 10px;
  flex-direction: row;
  max-width: 85%;
}

/* RTL support for typing indicator */
body[dir="rtl"] .typing-indicator,
#chat-window[dir="rtl"] .typing-indicator {
  margin-right: 0;
  margin-left: auto;
  flex-direction: row;
}

.typing-dots {
  display: inline-block;
}

.typing-dots span {
  animation: typing 1.4s infinite;
  display: inline-block;
}

.typing-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {
  0%, 60%, 100% { opacity: 0.3; }
  30% { opacity: 1; }
}

/* للموبايل - أحجام أصغر */
@media (max-width: 768px) {
  #chat-icon {
      width: 42px;
      height: 55PX;
      bottom: 20px;
      left: 20px;
  }

  body[dir="rtl"] #chat-icon {
      left: auto;
      right: 20px;
  }
  
  #chat-window {
      width: 90vw;
      height: 70vh;
      bottom: 90px;
      left: 5vw;
      right: 5vw;
  }

  body[dir="rtl"] #chat-window {
      left: 5vw;
      right: 5vw;
  }
  
  h1 {
      font-size: 2.2rem;
  }
  
  p {
      font-size: 1rem;
  }
  
  .message {
      max-width: 90%;
  }
}

/* للشاشات الصغيرة جداً */
@media (max-width: 480px) {
  #chat-icon {
      width: 42px;
      height: 55PX;
      font-size: 35px;
      bottom: 15px;
      left: 15px;
  }

  body[dir="rtl"] #chat-icon {
      left: auto;
      right: 15px;
  }
  
  #chat-window {
      height: 65vh;
  }
  
  .chat-input {
      font-size: 16px;
  }
  
  .message {
      max-width: 95%;
      padding: 10px 12px;
  }
  
  .message-avatar {
      width: 24px;
      height: 30px;
  }
}

/* تصميم الموقع الأساسي */
.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.feature {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 25px;
  width: 250px;
  transition: transform 0.3s;
}

.feature:hover {
  transform: translateY(-5px);
}

.feature h3 {
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.feature p {
  font-size: 0.9rem;
  margin-bottom: 0;
  opacity: 0.8;
}

.x-icon {
color: #007BFF !important;
font-size: 40px !important;
}

