* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #1a1a1a;
  color: #fff;
  min-block-size: 100vh;
  direction: rtl;
  font-family: "Tajawal", sans-serif;
}

body.hide-scroll {
  overflow: hidden;
}

.preloader {
  position: fixed;
  inset: 0;
  background: #1a1a1a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader {
  width: 60px;
  height: 60px;
  border: 6px solid #333;
  border-top: 6px solid #00c8ff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

.loading-text {
  font-size: 20px;
  color: #fff;
  font-family: "Cairo", sans-serif;
  animation: blink 1.2s infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.container {
  inline-size: 100%;
  max-inline-size: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}
.header-bar {
  position: relative;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(129, 127, 127, 0.2);
  box-shadow: 0 -3px 15px rgb(249 238 238 / 40%);
  display: flex;
  align-items: center;
  border-radius: 40px;
  padding: 4px 12px;
}

.header {
  inline-size: 100%;
  padding: 15px 0;
  position: relative;
  z-index: 10;
  background-image: url("./images/خلفية.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-svg-container {
  inline-size: 42px;
  block-size: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-svg {
  inline-size: 90%;
  block-size: 69px;
  margin-inline-start: 3px;
  margin-block-end: 6px;
}
.qawem {
  font-size: 40px;
  font-weight: bold;
  color: #ffffff;
  font-family: "Reem Kufi", sans-serif;
}
.nav-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 50px;
  z-index: 2;
}

.nav-center a {
  font-family: "Actor", sans-serif;
  text-decoration: none;
  color: #f5f5f5;
  font-size: 28px;
  transition: color 0.3s;
}

.nav-center a:hover {
  color: #00c8ff;
}
.start-container {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
}
.start-btn {
  font-family: "Actor", sans-serif;
  background: linear-gradient(to bottom, #d85c1a, #93380f);
  color: #fff !important;
  padding: 12px 36px;
  text-decoration: none;
  border-radius: 20px;
  font-size: 18px;
  font-weight: bold;
  border: 1px solid #000;
  box-shadow: inset 0 3px 4px rgb(255 255 255 / 40%),
    inset 0 -2px 4px rgba(0, 0, 0, 0.6);
  transition: 0.3s;
}
.start-btn:hover {
  background: linear-gradient(to bottom, #e0671f);
  box-shadow: inset 0 -4px 2px rgb(255 255 255 / 30%),
    inset 0 -2px 4px rgba(0, 0, 0, 0.6);
}
.menu-toggle i {
  font-size: 28px;
  color: #fff;
  transition: transform 0.3s;
}

.hero {
  text-align: center;
  padding: 3rem 1rem;
  z-index: -1;
}

.section-title {
  text-align: center;
  font-size: 3.5rem;
  margin-block-end: 5rem;
  margin-block-start: 4%;
  color: #fff;
}
.section-text {
  text-align: center;
  margin-block-end: 5rem;
  font-size: 30px;
}
.section-sub {
  font-size: 1.2rem;
  margin-block-end: 2rem;
  color: #ccc;
}

.philosophy {
  margin-block-end: 15%;
}
.features {
  margin-block-end: 10%;
}

.highlight {
  color: #00c8ff;
}
.highlight2 {
  color: #ac4d13;
}

.bg-img {
  position: relative;
  padding: 4rem 2rem;
  text-align: center;
  overflow: hidden;
}

.bg-img::before,
.bg-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

.bg-img::before {
  background-image: url("./images/philosophy1.png");
  z-index: -2;
  opacity: 0.9;
}

.bg-img::after {
  background-image: url("./images/philosophy2.png");
  z-index: -1;
  opacity: 0.95;
  background-position: 70% center;
}

.feature-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-block-start: 2rem;
}

.nav-btn-circle {
  inline-size: 50px;
  block-size: 50px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(to bottom, #d85c1a, #93380f);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-btn-main {
  background: linear-gradient(110deg, var(--orange), var(--blue));
  padding: 15px 60px;
  color: white;
  border: none;
  border-radius: 25px;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: inset 2px 2px 5px rgb(255 255 255 / 92%),
    inset -5px -5px 10px rgb(255 255 255 / 70%), 0 0 25px -8px rgb(18 138 171),
    0 0 25px -8px rgb(184 247 255 / 66%), 0 4px 8px rgb(241 148 89 / 82%),
    0 15px 30px rgba(0, 0, 0, 0.5);
}

.sub-video-container {
  inline-size: 100%;
  max-inline-size: 1000px;
  margin: 2rem auto 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.6);
  background: #000;
}

.sub-video-container video {
  inline-size: 100%;
  block-size: auto;
  border-radius: 20px;
  display: block;
  cursor: pointer;
}

.video-controls {
  margin-block-start: 10px;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.feature-nav .nav-btn-circle.disabled {
  opacity: 0;
  pointer-events: none;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  color: #fff;
  cursor: pointer;
}

.scroll-top-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 9999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(180deg, #ff8a3d, #d85c1a);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45),
    inset 0 2px 6px rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  cursor: pointer;
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease, transform 300ms cubic-bezier(0.2, 0.9, 0.3, 1);
}

.scroll-top-btn.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.scroll-top-btn.click-anim {
  animation: pressPulse 420ms cubic-bezier(0.2, 0.9, 0.3, 1);
}

.scroll-top-btn .fa-arrow-up {
  display: inline-block;
  transition: transform 320ms ease;
}
.scroll-top-btn.click-anim .fa-arrow-up {
  transform: translateY(-8px) scale(1.08);
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
@keyframes pressPulse {
  0% {
    transform: scale(1);
  }
  30% {
    transform: scale(0.92);
  }
  60% {
    transform: scale(1.04);
  }
  100% {
    transform: scale(1);
  }
}

.footer {
  background: linear-gradient(180deg, #111 0%, #0a0a0a 100%);
  color: #ddd;
  padding: 50px 20px 20px;
  font-family: "Cairo", sans-serif;
  position: relative;
  overflow: hidden;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: auto;
}

.footer-col h2.footer-logo {
  font-family: "Reem Kufi", sans-serif;
  font-size: 28px;
  color: #00c8ff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-col h2.footer-logo img {
  width: 36px;
  height: auto;
  display: block;
}

.footer-col h3 {
  color: #fff;
  margin-bottom: 15px;
  font-size: 20px;
}

.footer-col p {
  font-size: 16px;
  line-height: 1.8;
  color: #bbb;
  margin: 0 30px;
}

.footer-links-grid {
  display: block;
}

.footer-links-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links-grid li {
  margin: 8px 0;
}

.footer-links-grid li::before {
  content: "›";
  margin-left: 8px;
  color: #00c8ff;
  font-weight: bold;
}

.footer-links-grid a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links-grid a:hover {
  color: #00c8ff;
  padding-right: 5px;
  transform: scale(1.05);
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #222;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  color: #ddd;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: #00c8ff;
  color: #111;
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 200, 255, 0.3);
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 2px solid transparent;
  border-image: linear-gradient(90deg, #d85c1a, #00c8ff) 1;
  font-size: 14px;
  color: #aaa;
  animation: fadeUp 1.2s ease forwards;
  opacity: 0;
}

.footer-bottom span {
  color: #00c8ff;
  font-weight: bold;
}

@keyframes fadeUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 992px) {
  .section-title {
    font-size: 2.5rem;
    margin-block-end: 3rem;
  }
  .section-text {
    font-size: 1.3rem;
    line-height: 1.8;
  }
  .section-sub {
    font-size: 1rem;
  }
  .nav-center a {
    font-size: 20px;
  }
  .start-btn {
    font-size: 17px;
  }
  .qawem {
    font-size: 37px;
  }
}
@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
    margin-block-end: 2rem;
  }
  .section-text {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-block-end: 2.5rem;
  }
  .section-sub {
    font-size: 0.9rem;
  }
  .section-title {
    font-size: 1.8rem;
  }
  .nav-btn-main {
    padding: 10px 16px;
    font-size: 1rem;
  }
  .sub-video-container {
    inline-size: 95%;
    margin: 1.5rem auto 0 auto;
  }
  .bg-img::after {
    background-size: 70%;
    background-position: center bottom;
  }

  .header-bar {
    justify-content: space-between;
  }

  .nav-center {
    flex-direction: column;
    gap: 15px;
    background: linear-gradient(110deg, var(--orange), var(--blue));
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 1rem;
    text-align: center;
    border-radius: 5%;
    margin-top: 15px;
    box-shadow: inset 2px 2px 5px rgb(255 255 255 / 92%),
      inset -5px -5px 10px rgb(255 255 255 / 70%), 0 0 25px -8px rgb(18 138 171),
      0 0 25px -8px rgb(184 247 255 / 66%), 0 4px 8px rgb(241 148 89 / 82%),
      0 15px 30px rgba(0, 0, 0, 0.5);

    opacity: 0;
    transform: translateY(-20px);
    visibility: hidden;
    transition: all 0.4s ease;
  }

  .nav-center.show {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
  }

  .menu-toggle {
    display: block;
    margin-right: auto;
  }

  .nav-center .start-container {
    margin-top: 20px;
    width: 100%;
  }

  .nav-center .start-btn {
    display: block;
    width: 100%;
    padding: 14px 0;
    font-size: 18px;
    border-radius: 10px;
  }

  .bg-img::before {
    background-size: 50%;
    background-position: 33% center;
  }

  .bg-img::after {
    background-size: 33%;
    background-position: 63% center;
  }

  .start-container {
    position: relative;
    left: 0;
    top: 0;
    transform: none;
  }
  .scroll-top-btn {
    right: 16px;
    bottom: 20px;
    width: 50px;
    height: 50px;
    font-size: 18px;
  }
  #nav-menu {
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
  }

  #nav-menu.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
}
@media (max-width: 768px) {
  .footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-col h2.footer-logo {
    justify-content: center;
    font-size: 34px;
  }

  .footer-col h2.footer-logo img {
    width: 50px;
    height: auto;
  }

  .footer-col p {
    margin: 10px 0 0 0;
    font-size: 18px;
  }

  .footer-col h3 {
    text-align: center;
    font-size: 22px;
  }

  .footer-links-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .footer-links-grid ul {
    text-align: center;
  }

  .social-links {
    justify-content: center;
    margin-top: 10px;
    flex-wrap: wrap;
    gap: 15px;
  }

  .social-links a {
    width: 45px;
    height: 45px;
    font-size: 20px;
  }
}

.social-links a:hover i.fa-facebook {
  background: #1da1f2;
  color: #fff;
}
.social-links a:hover i.fa-twitter {
  background: #1da1f2;
  color: #fff;
}
.social-links a:hover i.fa-instagram {
  background: #e4405f;
  color: #fff;
}
.social-links a:hover i.fa-youtube {
  background: #ff0000;
  color: #fff;
}
.footer {
  background: #222;
  color: #fff;
  padding: 40px 20px;
  font-family: "Tajawal", sans-serif;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  max-width: 1200px;
  margin: auto;
}

.footer-logo h2 {
  color: var(--main-color);
  margin: 0 0 10px;
}

.footer-links h3,
.footer-social h3 {
  margin-bottom: 15px;
  font-size: 18px;
  color: var(--main-color);
}

.footer-links-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links-grid li {
  margin: 5px 0;
}

.footer-links-grid a {
  color: #ccc;
  text-decoration: none;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .footer-links-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
  }

  .footer-links-grid ul {
    display: flex;
    gap: 15px;
    padding: 0;
    margin: 0;
    list-style: none;
  }

  .footer-links-grid li {
    display: inline-block;
    margin: 0;
  }
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #444;
  color: #fff;
  font-size: 18px;
  transition: all 0.3s ease;
}

.social-links a:hover {
  transform: scale(1.1);
}

.social-links a:hover i {
  color: #fff;
}

.social-links a:hover .fa-facebook {
  background: #1da1f2;
}
.social-links a:hover .fa-twitter {
  background: #1da1f2;
}
.social-links a:hover .fa-instagram {
  background: #e4405f;
}
.social-links a:hover .fa-youtube {
  background: #ff0000;
}
.social-links a:hover i.fa-facebook {
  background: #1da1f2;
  color: #fff;
  border-radius: 50%;
  padding: 10px;
}
.social-links a:hover i.fa-twitter {
  background: #1da1f2;
  color: #fff;
  border-radius: 50%;
  padding: 10px;
}
.social-links a:hover i.fa-instagram {
  background: #e4405f;
  color: #fff;
  border-radius: 50%;
  padding: 10px;
}
.social-links a:hover i.fa-youtube {
  background: #ff0000;
  color: #fff;
  border-radius: 50%;
  padding: 10px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid #444;
  font-size: 14px;
  color: #aaa;
}
.social-links a {
  text-decoration: none;
}
.articles {
  padding: 100px 0;
  background-color: #292828;
  position: relative;
}

.articles .main-title {
  text-align: center;
  font-size: 30px;
  font-weight: bold;
  margin-bottom: 50px;
  position: relative;
  z-index: 1;
  color: #fff;
}

.articles .container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
}

.articles .box {
  background: #2a2a2a;
  border-radius: 6px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.articles .box:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  background: linear-gradient(145deg, #3d3d3d, #2a2a2a);
}

.articles .box img {
  width: 100%;
  max-width: 100%;
  display: block;
}

.articles .content {
  padding: 20px;
}

.articles .content h3 {
  margin: 0 0 10px;
  font-size: 20px;
  color: var(--play-button-orange);
}

.articles .content p {
  margin: 0;
  color: var(--play-button-orange);
  line-height: 1.6;
  font-size: 14px;
}

.articles .info {
  padding: 15px 20px;
  border-top: 1px solid #444;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.articles .info a {
  color: #00c8ff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

.articles .info a:hover {
  color: #00c8ff;
}

.articles .info i {
  color: #00c8ff;
  transition: transform 0.3s;
}

.articles .box:hover .info i {
  transform: translateX(5px);
}

.spikes {
  position: relative;
  height: 30px;
  background: #2b2828;
}

.spikes::after {
  content: "";
  position: absolute;
  right: -3px;
  left: 0px;
  top: 18px;
  height: 51px;
  background-image: linear-gradient(88deg, transparent 25%, #00c8ff73 25%),
    linear-gradient(293deg, #2a2a2a 25%, transparent 25%);
  background-size: 30px 30px;
}
.articles .box .info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 12px;
}

.articles .box .info a {
  color: #00cfff;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s;
}

.articles .box .info i {
  color: #00cfff;
  font-size: 14px;
  margin: 0 10px;
  transition: 0.3s;
}

.articles .box .info:hover a,
.articles .box .info:hover i {
  color: #ff6600;
}

.articles .box .info:hover i {
  transform: translateX(4px);
}
.articles .container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
  align-items: stretch;
}

.articles .box {
  display: flex;
  flex-direction: column;
  background: #2a2a2a;
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
}

.articles .box img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.articles .content {
  padding: 20px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.articles .content h3 {
  margin: 0 0 10px;
  font-size: 20px;
  color: #fff;
}
.articles .content p {
  margin: 0;
  color: #bbb;
  line-height: 1.6;
  font-size: 14px;
}
.articles .info {
  padding: 15px 20px;
  border-top: 1px solid #444;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
}
.articles .info a {
  color: #00cfff;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
}
.articles .info i {
  color: #00cfff;
  transition: transform 0.3s;
}
.articles .box:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgb(0 200 255 / 17%);
}
.articles .box:hover .info i {
  transform: translateX(6px);
}
@media (max-width: 768px) {
  .articles .box img {
    height: 120px;
  }
}
.articles .main-title {
  text-transform: uppercase;
  margin: 0 auto 78px;
  border: 5px solid var(--play-button-orange);
  padding: 10px 20px;
  font-size: 36px;
  width: fit-content;
  position: relative;
  z-index: 1;
  background: linear-gradient(110deg, var(--orange), var(--blue));
  border-radius: 20px;
}
@media (min-width: 992px) {
  .footer-container .footer-col:nth-child(2) {
    border-right: 1px solid #444;
    padding-right: 159px;
    margin-right: -148px;
  }
}
@media (min-width: 992px) {
  .footer-container .footer-col:nth-child(2) {
    border-left: 1px solid #444;
    padding-left: 159px;
    margin-left: -148px;
  }
}
