@import url("https://fonts.googleapis.com/css2?family=Almarai:wght@300;400;700;800&display=swap");
:root {
  --main-color: #0b5da7;
  --second-color: #242122;
  --third-color: #b8b9bc;
  --fourth-color: #dbe2e2;
  --white-color: #ffffff !important;
  --black-color: #000000;
  --placeholder-color: #a1a1a1;
  --background: linear-gradient(135deg, var(--main-color), #0099ff);
  --background-hover: linear-gradient(90deg, var(--main-color), #0099ff);
  --shadow: 0 4px 10px rgba(11, 93, 167, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
a {
  text-decoration: none;
  color: inherit;
  
}
body {
  font-family: "Almarai", sans-serif;
}
html,
body {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

.main-color {
  color: var(--main-color);
}
.fourth-color {
  color: var(--fourth-color);
}
.fifth-color {
  color: var(--fifth-color);
}
.six-color {
  color: var(--six-color);
}

.btn-send {
  background: var(--background);
  transition: all 0.3s ease-in;
  color: var(--fourth-color) !important;
  padding: 6px 24px;
  border-radius: 24px;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 15px;
  box-shadow: var(--shadow);
}
.btn-send:hover {
  background: var(--background-hover);
  color: var(--fourth-color) !important;
}
.shadow-main {
  box-shadow: var(--shadow); /* شفافية 40% */
}
.bg-main {
  background-color: var(--main-color);
}
.bg-second {
  background-color: #0099ff;
}
.bg {
  background: var(--background);
}

/* Text shadow باستخدام اللون الرئيسي */
.text-shadow-main {
  text-shadow: 2px 2px 5px rgba(11, 93, 167, 0.6); /* شفافية 60% */
}
.section-title {
  position: relative;
  &::before {
    content: attr(data-text);
    position: absolute;
    top: -15px; /* نزول بسيط للأسفل عشان يبان خلف العنوان */
    inset-inline-end: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(40px, 10vw, 100px); /* Responsive font-size */
    font-weight: 900;
    color: var(--main-color);
    opacity: 0.06; /* خفيف جدًا */
    white-space: nowrap;
    z-index: 1;
    pointer-events: none;
    text-transform: uppercase;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  }
  &::after {
    content: "";
    width: 60px;
    height: 3px;
    background-color: var(--second-color);
    display: block;
    margin: 8px auto 0;
    border-radius: 2px;
  }
}
/*  
##################################################
#                  SOCIAL ICONS                  #
##################################################
*/
.social-icon {
  inset-inline-end: 0 !important;
  margin-inline-end: 16px;
  margin-bottom: 50px;
  width: fit-content;
  height: fit-content;
}

.social-icon a {
  padding: 0.8rem;
  border-radius: 100%;
  margin: 0.5rem;
  text-decoration: none;
  border: 1px solid var(--white-color);
  width: 50px;
  height: 50px;
  font-size: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease;
}

.social-icon a:hover {
  transform: translateY(-5px) scale(1.05);
  filter: brightness(1.1);
}
.back-to-top {
  position: fixed;
  bottom: 50px;
  right: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  background: var(--background);
  color: var(--white-color);
  border-radius: 50%;
  border: 1px solid var(--white-color);
  font-size: 25px;
  text-decoration: none;
  display: none;
  transition: opacity 0.3s ease, transform 0.3s ease, filter 0.3s ease;
  z-index: 9999;
  cursor: pointer;
  justify-content: center;
  align-items: center;
}

.back-to-top:hover {
  background: var(--background-hover);
  transform: translateY(-5px) scale(1.05);
}

.back-to-top.show {
  display: flex;
}

/*  
##################################################
#                  LOADING                       #
##################################################
*/
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--white-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loader-container {
  position: relative;
  width: 220px;
  height: 220px;
  display: flex;
  justify-content: center;
  align-items: center;
}

@keyframes pulse {
  0% {
    transform: scale(0.9);
    opacity: 1;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.6;
  }

  100% {
    transform: scale(0.9);
    opacity: 1;
  }
}

.loading-text h1 {
  font-size: 4rem !important;
}
.pulse-circle img {
  width: 250px;
}

/*  
##################################################
#                   Navbar                       #
##################################################
*/
.header {
  width: 100%;
  z-index: 999;
  background-color: var(--white-color);
  box-shadow: var(--shadow);
  transition: all 0.5s ease;
}
.navbar .footer-social {
  display: flex;
  gap: 10px;
}
.navbar .footer-social .social-btn i {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--six-color);
  color: var(--white-color);
  transition: all 0.3s ease;
}
.navbar .footer-social .social-btn i:hover {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--second-color);
  color: var(--white-color);
  transition: all 0.3s ease;
}

.nav-item {
  position: relative;
  width: 100%;
  text-wrap: nowrap;
}

.navbar-nav .nav-link {
  position: relative;
  text-decoration: none;
  font-size: 1rem;
  width: 100%;
  color: var(--second-color);
  display: block;
  padding: 5px 20px;
  transition: color 0.4s ease-in-out;
  z-index: 5 !important;
}

.navbar-nav .nav-link::before {
  content: "";
  position: absolute;
  top: 50%;
  inset-inline-start: 0;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--fourth-color);
  border-radius: 50%;
  transition: all 0.3s ease-in-out;
  z-index: 1;
}

.navbar-nav .nav-link:hover::before,
.navbar-nav .nav-link.active::before {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  background: var(--background);
  z-index: -1;
}
.navbar-nav .nav-link:hover {
  color: var(--white-color) !important;
}
.navbar-nav .nav-link.active {
  color: var(--white-color) !important;
}

/*  
##################################################
#                     Home                       #
##################################################
*/

.hero {
  transition: all 0.3s;
  position: relative;
}

.hero-content h1 {
  font-size: 2.8rem;
  line-height: 1.4;
  color: var(--white-color) !important;
}
.hero-content p {
  font-size: 1.6rem;
  line-height: 1.4;
  color: var(--white-color) !important;
}

.hero .item {
  position: relative;
  height: calc(100vh - 100px);
  overflow: hidden;
}
.hero .item img {
  height: 100%;
  object-fit: cover;
}
.hero .item .overlay {
  position: absolute;
  background-color: hsla(208, 88%, 35%, 0.14);
  inset: 0;
}
.hero-slider-pages {
  width: 100%;
  height: 100%;
}

.hero-slider .text-slider {
  position: absolute !important;
  top: 50% !important;
  inset-inline-start: 50% !important;
  z-index: 2 !important;
  transform: translate(-50%, -50%) !important;
}
.hero-slider .text-slider h1 {
  font-size: 4rem;
  color: var(--second-color);
  font-weight: bold !important;
}
.hero .owl-nav {
  display: flex;
  position: absolute;
  top: 50%;
  width: 100%;
  padding: 0 20px;
  justify-content: space-between;
  align-items: center;
  /* margin: 0 auto; */
  z-index: 99;
}

.hero:hover .owl-nav {
  transition: all 0.3s;
}
.hero .owl-nav .owl-prev {
  background: var(--fourth-color) !important;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  transition: all 0.3s;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.hero:hover .owl-nav .owl-prev {
  transition: all 0.3s;
}
.hero .owl-nav .owl-prev:hover {
  background: var(--background) !important;
  color: var(--white-color) !important;
  transform: scale(1.1);
}
.hero .owl-nav .owl-next {
  background: var(--fourth-color) !important;
  width: 50px;
  height: 50px;
  border-radius: 50px;
  transition: all 0.3s;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.hero:hover .owl-nav .owl-next {
  transition: all 0.3s;
}
.hero .owl-nav .owl-next:hover {
  background: var(--background) !important;
  color: var(--white-color) !important;
  transform: scale(1.1);
}
.hero .owl-nav .owl-prev > span,
.hero .owl-nav .owl-next > span {
  font-size: 50px !important;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--main-color);
  margin-bottom: 5px !important;
}
.hero .owl-nav .owl-prev:hover:hover > span,
.hero .owl-nav .owl-next:hover > span {
  color: var(--white-color) !important;
}
.hero .owl-nav .owl-prev > span {
  margin: 0px auto;
}

.hero .owl-nav .owl-next > span {
  margin-left: 0px;
}

.hero-pages .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 50, 100, 0.5);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-content  h1 {
  font-size: 3rem;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.hero-content  p {
  font-size: 1.25rem;
  max-width: 700px;
  margin: auto;
  line-height: 1.8;
}

/*  
##################################################
#                  About Us                      #
##################################################
*/
.about {
  background: linear-gradient(135deg, #f8fbfd, #ffffff);
}
.about img{
  height: 500px;
}
.about .section-title,
.vision .section-title,
.mission .section-title,
.values .section-title {
  position: relative;
  &::before {
    content: attr(data-text);
    position: absolute;
    top: -10px;
    inset-inline-start: 0;
    margin-inline-start: -10px;
    transform: translateY(-50%);
    font-size: clamp(40px, 10vw, 100px);
    font-weight: 900;
    color: var(--main-color);
    opacity: 0.06;
    white-space: nowrap;
    z-index: 1;
    pointer-events: none;
    text-transform: uppercase;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  }
  &::after {
    content: "";
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--second-color);
    display: block;
    margin: 8px auto 0;
    border-radius: 2px;
  }
}

/*  
##################################################
#                  Doctor                      #
##################################################
*/

.doctor-card {
  background: var(--white-color);
  transition: transform 0.3s, box-shadow 0.3s;
}

.doctor-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(11, 93, 167, 0.25);
}
.doctor-card img {
  box-shadow: 0 4px 12px rgba(11, 93, 167, 0.2);
}
.doctor-card .card-title {
  font-size: 1.25rem;
}

/*  
##################################################
#                  Services                      #
##################################################
*/
.services {
  background: linear-gradient(135deg, #f8fbfd, #ffffff);
}

.service-card {
  position: relative;
  overflow: visible;
  background: #ffffff;
  transition: all 0.3s ease-in-out;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(11, 93, 167, 0.25);
}
.service-card p {
  height: 60px;
}

.service-img {
  width: 100%;
  height: 250px;

  padding: 25px;

  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: -80px;
}

.service-img img {
  width: 100%;
  height: 100%;
  border-radius: 25px;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(11, 93, 167, 0.2);
  transition: all 0.5s ease;
}
.service-card:hover img {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(11, 93, 167, 0.25);
}

/*  
##################################################
#              Patient Info                      #
##################################################
*/

/* Modern card */
.card-modern {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 25px;
  padding: 3rem 2rem;
  transition: transform 0.3s, box-shadow 0.3s;
  overflow: hidden;
  position: relative;
}
.card-modern:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Icon inside card */
.card-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 10rem;
  color: rgba(0, 123, 255, 0.08);
  pointer-events: none;
  transition: transform 0.3s;
}
.card-modern:hover .card-icon {
  transform: translate(-50%, -50%) scale(1.1);
}

/* Card text */
.card-title {
  font-weight: 600;
  font-size: 1.25rem;
  position: relative;
  z-index: 1;
  color: var(--main-color);
}
.card-text {
  font-size: 0.95rem;
  color: #555;
  position: relative;
  z-index: 1;
}

/*  
##################################################
#                   Appointment                  #
##################################################
*/
.appointment {
  position: relative;
}
.appointment::before {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: 100%;

  background-image: url("../images/bg1.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  z-index: -1;
}
.appointment::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: 100%;
  background-color: hsla(0, 0%, 100%, 0.6);
  z-index: -1;
}
.appointment .section-title {
  position: relative;

  &::before {
    content: attr(data-text);
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(40px, 10vw, 100px);
    font-weight: 900;
    color: var(--main-color);
    opacity: 0.1; /* خفيف جدًا */
    white-space: nowrap;
    z-index: 1;
    pointer-events: none;
    text-transform: uppercase;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  }
  &::after {
    content: "";
    width: 60px;
    height: 3px;
    background-color: var(--second-color);
    display: block;
    margin: 8px auto 0;
    border-radius: 2px;
  }
}
.appointment .card {
  background: #ffffff;
  transition: transform 0.3s, box-shadow 0.3s;
}
.appointment .card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}
.appointment form {
  position: relative;
  z-index: 9 !important;
  background-color: var(--white-color);
}
/* Form labels and inputs */
.appointment .form-label {
  font-weight: 600;
}
.appointment .form-control {
  border-radius: 15px;
}
/*  
##################################################
#                  Testimonials                  #
##################################################
*/

.testimonials .card {
  background: #fff;
  border-radius: 20px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.testimonials .card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Stars */
.testimonials .stars i {
  margin: 0 2px;
}
/*  
##################################################
#                      Blog                      #
##################################################
*/

.blog .card {
  border-radius: 25px;
  transition: transform 0.3s, box-shadow 0.3s;
  overflow: hidden;
}
.blog .card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}
.blog .card img {
  border-radius: 25px;
  height: 350px;
  object-fit: cover;
  overflow: hidden;
}

.blog .card .blog-img::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  pointer-events: none;
  z-index: 6;
}

.blog .card:hover .blog-img::before {
  animation: shine 1.5s;
  overflow: hidden;
}

@keyframes shine {
  from {
    left: -75%;
  }

  to {
    left: 125%;
  }
}
.blog .read-more {
  transition: transform 0.3s;
}
.blog .read-more:hover {
  transform: translateX(5px);
  color: #0099ff;
}
/*  
##################################################
#                   Contact                      #
##################################################
*/

.contact-hero .contact-form input,
.contact-hero .contact-form textarea {
  border-radius: 0.75rem;
}

.icon-circle {
  width: 50px;
  height: 50px;
  background: #e6f6f0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.contact-card h5 {
  position: relative;
  font-size: 1.5rem;
}
.contact-card ul li i {
  color: #fff;
  font-size: 1.4rem;
}
.contact-card ul li {
  color: #fff;
  font-size: 1rem;
}
.contact-hero a {
  transition: all 0.3s ease;
}
.contact-hero a:hover {
  color: var(--main-color);
}
/*  
##################################################
#                    Footer                      #
##################################################
*/
footer {
  font-size: 15px;
  background: #f7f7f7;
}
.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--second-color);
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  position: relative;
  padding-right: 5px;
}

.footer-links a {
  position: relative;
  text-decoration: none;
  font-size: 1rem;
  width: fit-content;
  color: var(--second-color);
  display: block;
  padding: 5px 20px;
  transition: color 0.4s ease-in-out;
  z-index: 5 !important;
}

.footer-links a::before {
  content: "";
  position: absolute;
  top: 50%;
  inset-inline-start: 0;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--fourth-color);
  border-radius: 50%;
  transition: all 0.4s ease-in-out;
  z-index: 1;
}

.footer-links a:hover::before,
.footer-links a.active::before {
  width: 100%;
  height: 100%;
  border-radius: 20px; /* زر بزوايا ناعمة */
  background: var(--background);
  z-index: -1; /* يخلي النص فوق */
}
.footer-links i {
  color: var(--main-color);
}
.footer-links a:hover,
.footer-links a:hover i {
  color: var(--white-color) !important;
}
.footer-links a.active {
  color: var(--white-color) !important;
}
/* Social buttons */
.social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;

  color: var(--main-color);
  transition: 0.3s;
  border: 1px solid var(--fourth-color);
}

.social:hover {
  background: var(--background);
  color: #fff;
  transform: translateY(-3px);
}
