@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=swap");

:root {
  --main-color: #000000;
  --second-color: #ff3231;
  --white-color: #ffffff;
  --background-color: rgba(192, 192, 192, 0.4);
  --box-shadow: rgba(17, 17, 26, 0.1) 0px 4px 16px,
    rgba(17, 17, 26, 0.05) 0px 8px 32px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  text-decoration: none;
  color: inherit;
}
ul li {
  list-style: none;
}

body {
  font-family: "Oswald", sans-serif;
}

html,
body {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

::-webkit-scrollbar {
  width: 6px;
}

/* ::-webkit-scrollbar-track {
  background: transparent;
} */

::-webkit-scrollbar-thumb {
  background-color: var(--second-color);
  border-radius: 4px;
}

.text-main {
  color: var(--main-color);
}

.text-second {
  color: var(--second-color) !important;
}
.bg-main {
  background-color: var(--main-color);
}
/* Button */
.btn-send {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border: none;
  border-radius: 0px;
  background: linear-gradient(
    135deg,
    var(--main-color) 20%,
    var(--second-color) 100%
  );
  font-size: 18px;
  font-weight: 600;
  text-transform: capitalize;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.5s ease;
  z-index: 1;
  white-space: nowrap;
  color: var(--white-color);
  i {
    background-color: var(--white-color);
    color: var(--main-color);
    padding: 10px;
    transition: all 0.3s ease;
  }
  &:hover {
    background: linear-gradient(
      -135deg,
      var(--main-color) 20%,
      var(--second-color) 100%
    );
    color: var(--white-color);
    i {
      transform: translateX(10px);
      color: var(--second-color);
    }
  }
}

/* Header Section */
.header-title {
  p {
    width: 75%;
  }
}
.header-section {
  background-color: var(--main-color);

  width: fit-content;

  h2 {
    font-size: 3.5rem;
    font-weight: bold;
    color: var(--white-color);
    padding: 10px 15px !important;
    font-style: italic;
    text-transform: uppercase;
  }
}

/*  
##################################################
#                  SOCIAL ICONS                  #
##################################################
*/
.social-icon {
  inset-inline-start: 0 !important;
  margin-inline-start: 16px;
  margin-bottom: 50px;
  width: fit-content;
  height: fit-content;
  z-index: 99 !important;
  a {
    background: linear-gradient(
      135deg,
      var(--main-color) 20%,
      var(--second-color) 100%
    );
    color: var(--white-color);
    padding: 0.8rem;
    border-radius: 0px;
    margin: 0.5rem;
    text-decoration: none;
    width: 50px;
    height: 50px;

    font-size: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.5s ease;
    &:hover {
      background: linear-gradient(
        -135deg,
        var(--main-color) 20%,
        var(--second-color) 100%
      );
      color: var(--white-color);
      transform: translateY(-5px) scale(1.05);
    }
  }
}

.back-to-top {
  position: fixed;
  bottom: 50px;
  inset-inline-end: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  background: linear-gradient(
    135deg,
    var(--main-color) 20%,
    var(--second-color) 100%
  );
  color: var(--white-color);
  border-radius: 0px;

  font-size: 25px;
  text-decoration: none;
  display: none;
  transition: transform 0.5s ease;
  z-index: 99;
  cursor: pointer;
  justify-content: center;
  align-items: center;
  &:hover {
    background: linear-gradient(
      -135deg,
      var(--main-color) 20%,
      var(--second-color) 100%
    );
    color: var(--white-color);
    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;
  }
  .loading-text h1 {
    font-size: 4rem !important;
  }

  .pulse-circle img {
    width: 250px;
  }
}

/*  
##################################################
#                   Navbar                       #
##################################################
*/

.navbar {
  width: 100%;
  padding: 15px 0;
  position: fixed;
  top: 0;
  left: 0;

  transition: all 0.4s ease;
  z-index: 999;

  .nav-link {
    color: var(--white-color) !important;
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;

    &::after {
      content: "";
      position: absolute;
      bottom: -4px;
      left: 50%;
      width: 0;
      height: 2px;
      background: var(--second-color);
      transition: all 0.3s ease;
      transform: translateX(-50%);
      box-shadow: 0 0 8px var(--main-color);
    }

    &:hover,
    &.active {
      color: var(--main-color);
      &::after {
        width: 60%;
      }
    }
  }

  .btn-lang {
    background: var(--second-color);
    color: var(--white-color);
    border-radius: 10px;
    padding: 10px 24px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;

    &:hover {
      background: var(--white-color);
      color: var(--main-color);
      box-shadow: 0 0 15px var(--main-color);
      transform: translateY(-2px);
    }
  }

  .navbar-toggler {
    border: none;
    i {
      font-size: 1.8rem;
      transition: all 0.3s;
    }
  }
}

/* عند التمرير */
.navbar.scrolled {
  background: rgba(11, 12, 16, 0.95);
  box-shadow: var(--box-shadow);

  .navbar-brand img {
    filter: brightness(1);
  }

  .nav-link {
    color: var(--white-color);
    &:hover {
      color: var(--main-color);
    }
  }
}

/* Offcanvas للموبايل */
.offcanvas {
  .nav-link {
    color: var(--main-color) !important;
    font-size: 1rem;
    padding: 10px 0;
    transition: all 0.3s ease;
    &::after {
      content: "";
      position: absolute;
      bottom: -4px;
      left: 0%;
      width: 0;
      height: 2px;
      background: var(--second-color);
      transition: all 0.3s ease;
      transform: translateX(-50%);
      box-shadow: 0 0 8px var(--main-color);
    }
    &:hover {
      color: var(--second-color) !important;
      transform: translateX(8px);
    }
  }

  .social {
    i {
      color: var(--main-color);
      background: var(--third-color);
      border-radius: 50%;
      width: 40px;
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: 0.3s;
      &:hover {
        background: var(--main-color);
        color: var(--second-color);
        box-shadow: 0 0 15px var(--main-color);
      }
    }
    img {
      transition: all 0.4s ease;
      &:hover {
        transform: translateY(-10px);
      }
    }
  }
  .navbar-brand img {
    filter: brightness(1) invert(0) !important;
  }
  .list-contact {
    a {
      transition: all 0.3s ease;
      &:hover {
        color: var(--second-color);
      }
    }
  }
}
.fixed {
  .navbar {
    box-shadow: var(--box-shadow);
    background: var(--white-color) !important;
    .nav-link {
      color: var(--main-color) !important;
      &:hover {
        color: var(--second-color) !important;
      }
    }
    .navbar-brand img {
      filter: brightness(1) invert(0) !important;
    }
    .navbar-toggler {
      color: var(--white-color);
      i {
        color: var(--main-color) !important;
      }
    }
  }
}
.fixed-top {
  .navbar-brand img {
    filter: brightness(0) invert(1);
  }
  .navbar-toggler i {
    color: var(--white-color);
  }
}
/*  
##################################################
#                     Home                       #
##################################################
*/

.hero {
  position: relative;
  color: #fff;
  overflow: hidden;

  .swiper {
    .swiper-slide {
      height: 100vh;
      position: relative;
      overflow: hidden;
      img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }
      /* الفيديو */
      /* video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        filter: brightness(0.85) contrast(1.1) saturate(1.05);
        transition: transform 9s cubic-bezier(0.25, 1, 0.3, 1);
      } */

      /* تأثير التكبير البطيء عند الفعالية */
      &.swiper-slide-active video {
        transform: scale(1.08);
      }

      /* طبقة تدرج ناعم وأنيق */
      &::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 1;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
      }

      /* صندوق النص */
      .text-box {
        position: absolute;
        bottom: auto;
        top: 40%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 2;
        text-align: center;
        border-top-right-radius: 10px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0٤);
        opacity: 0;
        transition: all 1.2s cubic-bezier(0.25, 1, 0.3, 1);
        opacity: 0;
        transition: all 1s ease;
      }

      /* ظهور سلس للنص عند تفعيل السلايد */
      &.swiper-slide-active .text-box {
        transform: translateX(-50%);
        opacity: 1;
      }

      .text-box h2 {
        font-size: clamp(4rem, 2vw, 2rem);
        font-weight: 600;
        text-transform: capitalize;
        color: #fff;
        letter-spacing: 1px;
        line-height: 1.5;
        margin-bottom: 15px;
      }
      .text-box p {
        font-size: clamp(1.5rem, 2vw, 1rem);
        color: #fff;
        letter-spacing: 1px;
        line-height: 1.2;
        margin-bottom: 15px;
      }
    }
  }
}
.hero-mobile {
  .swiper {
    .swiper-slide {
      height: 60vh;
      position: relative;
      overflow: hidden;
      img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }
      /* الفيديو */
      /* video {
          width: 100%;
          height: 100%;
          object-fit: cover;
          object-position: center;
          filter: brightness(0.85) contrast(1.1) saturate(1.05);
          transition: transform 9s cubic-bezier(0.25, 1, 0.3, 1);
        } */

      /* تأثير التكبير البطيء عند الفعالية */
      &.swiper-slide-active video {
        transform: scale(1.08);
      }

      /* طبقة تدرج ناعم وأنيق */
      &::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 1;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
      }

      /* صندوق النص */
      .text-box {
        position: absolute;
        bottom: auto;
        top: 40%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 2;
        text-align: center;
        width: 100%;
        border-top-right-radius: 10px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0٤);
        opacity: 0;
        transition: all 1s ease;
        padding: 0 5px;
      }

      /* ظهور سلس للنص عند تفعيل السلايد */
      &.swiper-slide-active .text-box {
        transform: translateX(-50%);
        opacity: 1;
      }

      .text-box h2 {
        font-size: 2.2rem;
        font-weight: 600;
        text-transform: capitalize;
        color: #fff;
        letter-spacing: 1px;
        line-height: 1.5;
        margin-bottom: 15px;
      }
      .text-box p {
        font-size: clamp(1.5rem, 2vw, 1rem);
        color: #fff;
        letter-spacing: 1px;
        line-height: 1.2;
        margin-bottom: 15px;
      }
    }
  }
}
.hero-pages .overlay {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: hsla(0, 0%, 0%, 0.4);
}
/*  
##################################################
#                    About Us                    #
##################################################
*/

.about-section {
  position: relative;
  overflow: hidden;
  z-index: 0;



  .image-wrapper {
    position: relative;
    border-radius: 0px;
    box-shadow: 0 0 25px rgba(255, 50, 49, 0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease;

    &:hover {
      transform: scale(1.03);
      box-shadow: 0 0 30px rgba(255, 50, 49, 0.5);
    }

    .play-btn {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      background: var(--second-color);
      color: var(--white-color);
      border: none;
      border-radius: 50%;
      width: 80px;
      height: 80px;
      font-size: 28px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.3s ease;
      box-shadow: 0 0 25px rgba(255, 50, 49, 0.6);
      z-index: 2;

      &:hover {
        transform: translate(-50%, -50%) scale(1.1);
        box-shadow: 0 0 40px rgba(255, 50, 49, 0.9);
      }

      &::before,
      &::after {
        content: "";
        position: absolute;
        border: 10px solid rgba(255, 50, 49, 0.7);
        border-radius: 50%;
        width: 100%;
        height: 100%;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
        animation: pulse 1s infinite ease;
        z-index: 1;
      }

      &::after {
        animation-delay: 0.9s;
      }
    }
  }
}

.about-list li {
  font-size: 18px;
}
@keyframes pulse {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0.7;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0.3;
  }
  100% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
  }
}

/*  
##################################################
#                  Services                      #
##################################################
*/

.card-content {
  box-shadow: var(--box-shadow);
  transition: all 0.5s ease;
  position: relative;
  overflow: hidden;

  &:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(255, 50, 49, 0.3);
  }
  p {
    color: #c2c2c2;
  }
  .card-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: all 0.6s ease;
    filter: brightness(90%);

    &:hover {
      transform: scale(1.1);
      filter: brightness(50%);
    }
  }

  .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;

    .card-content:hover & {
      opacity: 1;
    }
  }
}
.sidebar {
  li {
    a {
      transition: all 0.3s ease;
      &:hover {
        color: var(--second-color) !important;
        transform: translateX(10px);
      }
    }
  }
}
/*  
##################################################
#                 projects                       #
##################################################
*/

.projects-section {
  color: var(--white-color);

  position: relative;

  .project-card {
    height: 600px;
    cursor: pointer;

    img {
      transition: all 0.6s ease;
      filter: brightness(80%);
    }

    .overlay {
      background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
      backdrop-filter: blur(20px);

      transition: all 0.4s ease;
    }

    &:hover img {
      transform: scale(1.1);
      filter: brightness(60%);
    }

    &:hover .overlay {
      background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    }
  }

  .swiper-navigation {
    position: absolute;
    inset-inline-end: 0;
    width: 125px !important;
    .swiper-button-next,
    .swiper-button-prev {
      color: var(--white-color);
      background-color: var(--main-color);
      width: 50px;
      height: 50px;
      border-radius: 0px !important;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.3s ease;
      z-index: 10;
      /* margin: 0 10px !important; */
    }
    .swiper-button-next svg,
    .swiper-button-prev svg {
      width: 12px;
    }
    .swiper-button-next:hover,
    .swiper-button-prev:hover {
      background-color: var(--main-color);
      color: #fff;
      transform: scale(1.1);
    }

    .swiper-button-next::after,
    .swiper-button-prev::after {
      font-size: 12px;
      font-weight: bold;
    }
  }

  .swiper-pagination {
    font-weight: bold;
    color: var(--main-color);
    font-size: 22px;
  }
  .swiper-pagination-fraction {
    inset-inline-start: 0 !important;
    width: fit-content !important;
    bottom: 0 !important;
    top: 0 !important;
  }
}

/*  
##################################################
#                  Contact                       #
##################################################
*/
.contact-info-section::before {
  content: "";
  position: absolute;
  background-color: #00000058;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.contact-card-item {
  backdrop-filter: blur(20px);
  position: relative !important;
  z-index: 3 !important;
  transition: all 0.3s ease;
  &:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 255, 255, 0.3) !important;
  }
}

.contact-social-link {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);

  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white-color) !important;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(20px);
  &:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
  }
}

/*  
##################################################
#                    News                        #
##################################################
*/
.news-card {
  transition: all 0.3s ease;
}
.news-card img {
  height: 300px !important;
}
.news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}
.news-image img {
  transition: transform 0.4s ease;
}
.news-card:hover .news-image img {
  transform: scale(1.08);
}
.line-clamp-2,
.line-clamp-3 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}
.line-clamp-2 {
  -webkit-line-clamp: 2;
}
.line-clamp-3 {
  -webkit-line-clamp: 3;
}
.shadow-hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}
.shadow-hover:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}
.trending-news a p {
  transition: all 0.3s ease;
}
.trending-news a p:hover {
  color: var(--second-color) !important;
}
/*  
##################################################
#                  Footer                        #
##################################################
*/
footer {
  position: relative;
  

  &::before {
    content: "";
    position: absolute;
    background-color: hsla(0, 0%, 100%, 0.95);
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
  }
  h5 {
    background-color: var(--main-color);
    color: var(--white-color);

    width: fit-content;
    position: relative;
    padding: 10px 15px !important;
    font-style: italic;
  }

  p {
    font-size: 16px;
  }

  .footer-links {
    a {
      position: relative;
      text-decoration: none;
      font-size: 1rem;
      width: fit-content;
      color: var(--black-color);
      display: block;
      padding: 6px 0;
      transition: all 0.2s ease;
      z-index: 5 !important;

      i {
        color: var(--main-color);
      }

      &:hover,
      &:hover i {
        color: var(--second-color) !important;
        font-weight: 600;
      }

      &.active {
        color: var(--main-color) !important;
      }
    }
  }

  .copyright {
    a {
      transition: all 0.3s ease;

      &:hover {
        color: var(--second-color) !important;
      }
    }
  }

  .footer-social {
    .social {
      i {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: var(--third-color) !important;
        color: var(--main-color) !important;
        transition: all 0.4s ease;

        &:hover {
          background-color: var(--main-color) !important;
          color: var(--second-color) !important;
          transform: translateY(-10px);
        }
      }
      img {
        transition: all 0.4s ease;
        &:hover {
          transform: translateY(-10px);
        }
      }
    }
  }

  .links {
    li {
      a {
        transition: all 0.4s ease-in-out;

        &:hover {
          color: var(--second-color);
        }
      }
    }
  }
}
