/*HomePage > Background Section
================================
*/
html,
body {
  overflow-x: hidden;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.home-page {
  font-family: calibri;
  overflow-x: hidden;
  /* background: linear-gradient(to right, #000, #02183b);*/
  background-color: #011430;
  color: white;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 20;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: white;
}
header {
  position: fixed;
  top: 0;
  left: 0;
  height: 85px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 60px;
  z-index: 10;
  color: white;
}

.navbar-header {
  height: 81px;
  background: linear-gradient(to right, #000, #03214e, #000);
}
nav ul {
  display: flex;
  gap: 24px;
  list-style: none;
  margin-left: -11%;
}
nav ul li {
  position: relative;
  width: fit-content;
}
nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: normal;
  border-bottom: 2px solid transparent;
  padding: 9px;
}
nav ul li:hover > a {
  color: #068ad9;
}
.dropdown {
  position: absolute;
  top: 31px;
  left: 0;
  background-color: rgba(237, 237, 237, 0.2);
  display: none;
  flex-direction: column;
  min-width: 150px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: fadeIn 0.3s ease-in-out;
}

.dropdown a {
  position: relative;
  color: white;
  padding: 8px 7px;
  text-align: center;
  text-decoration: none;
  font-size: 19px;
  font-family: Calibri;
}

.dropdown a:not(:last-child)::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 15px;
  right: 15px;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.2);
}

.dropdown a:hover {
  color: #068ad9;
  border-radius: 10px;
}
nav ul li:hover .dropdown {
  display: flex;
}
.nav-separator {
  height: 33px;
  align-self: center;
}

.search-lang {
  display: flex;
  gap: 20px;
  align-items: center;
}
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.hero video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.bg-layer {
  position: absolute;
  top: -1%;
  left: -4.2%;
  width: 52%;
  height: 101%;
  object-fit: cover;
  z-index: 1;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

.content {
  position: relative;
  z-index: 2;
  color: white;
  padding: 100px 60px 40px 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-section img {
  height: 73px;
}

.dynamic-title {
  font-family: calibri;
  font-size: 55px;
  margin-top: 20px;
  animation: fadeIn 1s ease-in-out;
}

.viewbox-background {
  position: absolute;
  top: 75%;
  left: 49%;
  width: 53%;
  height: 27%;
  z-index: 1;
  background: url(Assets/Images/HomePage/stats-background.webp) no-repeat center
    center;
  background-size: 94% 104%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.viewboxx {
  left: 11%;
  top: 0%;
  position: relative;
  z-index: 2;
  max-width: 100%;
}

.abi {
  overflow: visible;
  position: relative;
  width: 672.706px;
  height: 137.485px;
}

#abi {
  fill: transparent;
  stroke: rgba(30, 88, 164, 1);
  stroke-width: 1px;
  stroke-linejoin: miter;
  stroke-linecap: butt;
  stroke-miterlimit: 4;
  shape-rendering: auto;
}

.stats-label {
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  font-weight: normal;
  fill: white;
}

.stats-number {
  font-family: "Montserrat", sans-serif;
  font-size: 40px;
  font-weight: normal;
  fill: #068ad9;
}
.stats-separator {
  stroke: rgb(171, 167, 167);
  stroke-width: 1px;
}
.slide-in {
  animation: slideIn 0.2s ease-out forwards;
}

.slide-out {
  animation: slideOut 0.3s ease-in forwards;
}

@keyframes slideOut {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-20px);
  }
}

@keyframes slideIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* @media screen and (max-width: 1535px) {
  .viewbox-background {
    top: 73%;
    left: 42%;
    width: 61%;
    height: 25%;
    min-height: 96px;
  }

  .viewboxx {
    max-width: 95%;
  }
} */

@media (max-width: 1535px) {
  .logo-section-nav img {
    width: 140px !important;
    height: 25px !important;
  }
  .logo-section-nav a {
    margin-left: -13% !important;
  }
  .logo-section-nav span {
    font-size: 24px !important;
  }
}
@media (max-width: 1024px) {
  .abi {
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: auto;
    top: 85%;
  }
  .hero {
    height: 80vh;
  }
}

@media (max-width: 768px) {
  html,
  body {
    overflow-x: hidden;
  }
  header {
    padding: 15px 20px;
    justify-content: space-around;
    gap: 0%;
    max-width: 100%;
  }
  .logo-section-nav a {
    margin-left: -10% !important;
  }
  .dropdown {
    top: 8px;
    left: 113%;
  }
  [dir="rtl"] .dropdown {
    right: 113%;
  }

  .hero {
    height: 60vh;
  }

  .content {
    position: relative;
    z-index: 2;
    color: white;
    left: -19%;
    top: 2%;
    padding: 100px 60px 0px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
  }

  .logo-section {
    justify-content: center;
  }

  .dynamic-title {
    font-size: 28px;
    margin-top: 20px;
    text-align: center;
  }

  .logo-section img {
    margin-left: -15%;
    height: 27px !important;
    width: 138px !important;
  }

  .viewbox-background {
    top: 83%;
    left: 37%;
    width: 77%;
    height: 17%;
    min-height: 96px;
  }

  .viewboxx {
    max-width: 95%;
    top: -3%;
    left: 3%;
  }

  .abi {
    width: 100%;
    height: auto;
  }

  .stats-number {
    font-size: 24px;
  }

  .stats-label {
    font-size: 12px;
  }

  .hamburger {
    display: flex;
  }
  .lang-toggle {
    display: none;
  }
  nav {
    position: absolute;
    top: 85px;
    left: 0;
    width: 100%;
  }

  #nav-menu {
    display: none;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.95);
    gap: 20px;
    padding: 20px;
    margin-left: 0%;
    width: 100%;
  }

  #nav-menu.active {
    display: flex;
  }

  .search-lang {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 65vh;
  }

  .dynamic-title {
    font-size: 22px;
  }

  .logo-section img {
    height: 30px;
  }

  .viewbox-background {
    top: 83%;
    left: 37%;
    width: 77%;
    height: 5%;
    min-height: 96px;
  }

  .viewboxx {
    max-width: 95%;
    top: -3%;
    left: 3%;
  }

  .abi {
    width: 73%;
  }

  .stats-number {
    font-size: 40px;
  }

  .stats-label {
    font-size: 20px;
  }
}

/*
  Arabic CSS
*/

[dir="rtl"] #main-nav-menu {
  margin-right: 10%;
  direction: rtl;
}

[dir="rtl"] .dropdown a {
  padding: 3px 6px;
  direction: ltr;
  font-size: 17px;
  font-family: "Cairo";
}
[dir="rtl"] .dropdown {
  min-width: 158px;
}
[dir="rtl"] .dynamic-title {
  font-family: "Cairo";
  font-weight: 600;
}

[dir="rtl"] .stats-label {
  font-family: "Cairo", sans-serif;
}

/* ==============================
   HomePage > Flagship Section
================================ */
.flagship-section {
  color: white;
  padding: 70px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;

  /* responsive height instead of fixed */
  min-height: 60vh;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Background images */
.bg-image {
  position: absolute;
  background-size: contain; /* better scaling on mobile */
  background-repeat: no-repeat;
  background-position: center;
  width: 100%;
  height: 80%;
  pointer-events: none;
  z-index: -1;
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s ease-out;
  filter: blur(53px);
}

/* Adjust positions for different blobs */

.left-bg {
  top: -5%;
  left: -24%;
  height: 114%;
  width: 57%;
  transform: translate(-50px, -50%);
  background-image: url(Assets/Images/HomePage/Flagship/BlueshadeLeft2.webp);
}

.right-bg {
  top: -8%;
  left: 78%;
  height: 100%;
  width: 36%;
  transform: translateY(-50%);
  background-image: url("Assets/Images/HomePage/Flagship/BlueshadeRight2.webp");
}

.center-bg-2 {
  top: 51%;
  right: 60%;
  width: 24%;
  height: 55%;
  background-image: url(Assets/Images/HomePage/Flagship/PolygonCenter2.webp);
  filter: blur(15px);
}

/* Animations */
.show {
  opacity: 1;
  transform: translate(0, 0);
}
.hidden {
  opacity: 0;
  transform: translateY(40px);
  transition: all 2s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Title */
.flagship-title {
  font-size: clamp(1.8rem, 4vw, 3rem); /* scales with screen */
  font-family: Calibri, sans-serif;
  margin-bottom: 20px;
  padding-top: 4%;
  transition-delay: 0.2s;
}

/* Content */
.flagship-content {
  transition-delay: 0.6s;
  padding-top: 1%;
  width: 90%;
  max-width: 1100px;
}
.flagship-content p {
  font-size: clamp(1rem, 2.5vw, 1.75rem); /* scales nicely */
  margin: 15px auto;
  line-height: 1.5;
  font-family: Calibri, sans-serif;
}

/* Arrow animation */
.slide-in-arrow {
  position: absolute;
  left: -150px;
  top: 6%;
  width: 34%;
  max-width: 35%;
  height: auto;
  opacity: 0;
  transition: all 9s ease-out;
}
.slide-in-arrow.show {
  left: -5%;
  opacity: 1;
}

/* ===============================
   Responsive Breakpoints
================================= */

/* Tablets */
@media (max-width: 1024px) {
  .flagship-section {
    padding: 50px 15px;
  }
  .slide-in-arrow {
    top: 10%;
    width: 40%;
  }
  .left-bg {
    left: -30%;
    width: 70%;
  }
  .right-bg {
    left: 70%;
    width: 40%;
  }
}

/* Large Mobiles (landscape) */
@media (max-width: 768px) {
  .flagship-section {
    padding: 40px 15px;
    min-height: 50vh;
  }
  .flagship-title {
    font-size: clamp(2.4rem, 5vw, 2.4rem);
  }
  .slide-in-arrow {
    width: 50%;
    top: 15%;
  }
  .left-bg,
  .right-bg,
  .center-bg-1,
  .center-bg-2 {
    display: none; /* hide extra blobs on small screens */
  }
}

/* Small Mobiles (portrait) */
@media (max-width: 480px) {
  .flagship-section {
    padding: 30px 10px;
    min-height: 40vh;
  }
  .flagship-title {
    font-size: 2.4rem;
  }
  .flagship-content p {
    font-size: 1.4rem;
  }
  .slide-in-arrow {
    display: none; /* remove if too cluttered */
  }
}

/*
 Arabic CSS
*/
[dir="rtl"] .flagship-title {
  font-family: "Cairo", sans-serif;
  font-weight: 600;
}

[dir="rtl"] .flagship-content p {
  line-height: 1.9;
  font-family: "Cairo", sans-serif;
  direction: rtl;
}

/*HomePage > Our Companies Section
================================
*/
body {
  margin: 0;
  /*background: linear-gradient(to right, #000, #02183b);*/
  background-color: #011430;
  color: white;
  font-family: "Segoe UI", sans-serif;
}

.our-companies-section {
  padding-top: 60px;
  padding-right: 60px;
  padding-left: 60px;
}

.our-companies-title {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 60px;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}

.our-companies-title.show {
  opacity: 1;
  transform: translateY(0);
}

.companies-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 60px;
}

.company-info {
  margin-top: 181px;
  margin-left: 0%;
  flex: 1;
  max-width: 570px;
  z-index: 1;
}

.company-info h2,
.company-info p {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.show-title h2,
.show-title p {
  opacity: 1;
}

.company-info h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.company-info p {
  font-size: 1.1rem;
  line-height: 1.7;
}

.card-stack-container {
  position: relative;
  width: 620px;
  height: 430px;
  perspective: 1000px;
  flex-shrink: 0;
  margin-top: 100px;
  padding-right: 150px;
  margin-right: 4%;
  padding-bottom: 100px;
  padding-top: 50px;
  transform: none;
}

.card-stack {
  position: relative;
  width: 105%;
  height: 122%;
  transform: none;
}

.card-stack:not(.visible) .card {
  opacity: 0 !important;
  transform: translate3d(120px, 120px, 0) scale(0.9) !important;
}

.card-stack.visible {
  animation: fadeInUpCard 2s ease forwards;
}

@keyframes fadeInUpCard {
  from {
    transform: translate3d(120px, 120px, 0);
    opacity: 0;
  }
  to {
    transform: translate3d(80px, 0, 0);
    opacity: 1;
  }
}

.card {
  clip-path: polygon(
    0% 0%,
    90% 0%,
    95% 5%,
    100% 5%,
    100% 100%,
    10% 100%,
    5% 100%,
    0% 100%
  );
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  will-change: transform, opacity;
  transition: transform 0.7s ease, opacity 0.7s ease;
  filter: drop-shadow(0 0 2px rgba(0, 123, 255, 0.15));
  backdrop-filter: blur(2px);
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card span {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.7);
  padding: 10px;
  padding-left: 15px;
  color: white;
  font-size: 1.3rem;
}

.custom-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10;
}

.custom-arrow svg polygon {
  transition: stroke 0.3s ease;
}

.custom-arrow:hover svg polygon {
  stroke: #00ccff;
}

.custom-arrow.left {
  left: -50px;
}

.custom-arrow.right {
  right: -92px;
}

.bg-image2 {
  position: absolute;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  width: 100%;
  height: 80%;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s ease-out;
  filter: blur(53px);
}

.top-bg2 {
  top: 184%;
  height: 34%;
  width: 130%;
  left: -15%;
  transform: translateX(-50%);
  background-image: url(Assets/Images/HomePage/OurCompanies/Blueshade.webp);
}

.left-bg2 {
  top: 191%;
  left: -25%;
  height: 109%;
  width: 57%;
  z-index: -1;
  transform: translate(-50px, -50%);
  background-image: url(Assets/Images/HomePage/OurCompanies/BlueshadeLeft2.webp);
}

.right-bg2 {
  top: 173%;
  left: 80%;
  height: 140%;
  width: 36%;
  transform: translateY(-50%);
  background-image: url(Assets/Images/HomePage/OurCompanies/BlueshadeRight2.webp);
}

.center-bg-2-2 {
  top: 263%;
  right: 59%;
  width: 21%;
  height: 21%;
  background-image: url(Assets/Images/HomePage/OurCompanies/PolygonCenter1.webp);
  filter: blur(15px);
}

.hidden {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 992px) {
  .left-bg2,
  .right-bg2,
  .top-bg2,
  .center-bg-2-2 {
    display: none; /* hide extra blobs on small screens */
  }
  .companies-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .custom-arrow.left {
    left: 0;
  }
  .custom-arrow.right {
    right: 0;
  }
  .companies-wrapper {
    flex-direction: column;
  }

  .card-stack-container {
    order: 1;
  }

  .company-info {
    order: 2;
  }
}

@media (max-width: 1200px) {
  .our-companies-section {
    padding-top: 58px;
    padding-right: 15px;
    padding-left: 15px;
    min-height: 111vh;
  }
  .card-stack-container {
    width: 500px;
    height: 380px;
    padding-right: 80px;
    padding-bottom: 50px;
  }

  .company-info {
    margin-top: 0%;
    max-width: 100%;
  }

  .card-stack {
    width: 100%;
    height: 100%;
    transform: translateX(80px);
  }

  .custom-arrow.left {
    left: -30px;
  }
  .custom-arrow.right {
    right: -30px;
  }
}

@media (max-width: 768px) {
  .our-companies-title {
    font-size: 2.4rem;
  }
  .companies-wrapper {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0px;
  }

  .company-info {
    margin-top: 0%;
    max-width: 100%;
  }

  .company-info h2 {
    font-size: 2rem;
  }

  .company-info p {
    font-size: 1.2rem;
    line-height: 1.4;
  }

  .card-stack-container {
    width: 90vw;
    max-width: 400px;
    height: auto;
    padding: 0;
    transform: translateX(-115px);
    margin-left: 10%;
    margin-top: 2%;
    margin-bottom: 30%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .card-stack {
    width: 100%;
    height: auto;
    min-height: 250px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: none;
  }

  .custom-arrow {
    top: auto;
    bottom: -70px;
    transform: none;
  }

  .custom-arrow.left {
    left: 56%;
  }
  .custom-arrow.right {
    right: 10%;
  }
}

@media (max-width: 480px) {
  .companies-wrapper {
    flex-direction: column;
    align-items: normal;
    text-align: center;
    gap: 0px;
  }

  .company-info {
    margin-top: 0%;
    max-width: 100%;
  }

  .company-info h2 {
    font-size: 2rem;
  }

  .card-stack-container {
    width: 90vw;
    max-width: 400px;
    height: auto;
    padding: 0;
    transform: translateX(-115px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .card-stack {
    width: 100%;
    height: auto;
    min-height: 250px;
    transform: none;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .custom-arrow {
    top: auto;
    bottom: -70px;
    transform: none;
  }

  .custom-arrow.left {
    left: 56%;
  }
  .custom-arrow.right {
    right: 10%;
  }
}

/*
Arabic CSS
*/
[dir="rtl"] body {
  font-family: "Cairo", sans-serif;
}
[dir="rtl"] .our-companies-title {
  font-family: "Cairo", sans-serif;
  font-weight: 600;
}

[dir="rtl"] .company-info {
  direction: rtl;
}

[dir="rtl"] .company-info h2 {
  font-size: 2.1rem;
}

/* Homepage : Our History Section
  ================================
  */
.our-history-section {
  padding: 100px 60px;
}

#history-title {
  opacity: 0;
  transform: rotate(-10deg) scale(0.8);
  transition: all 1s ease;
  text-align: center;
  margin-bottom: 40px;
  font-family: calibri;
  font-size: clamp(30px, 5vw, 60px);
  color: white;
}

#history-title.show {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

#hexagon-shape {
  position: relative;
  opacity: 0;
  transform: rotate(-30deg) scale(0.8);
  transition: all 1s ease;
  margin-left: 57%;
  max-width: 1px;
  z-index: 1;
}

#hexagon-shape.show {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

#new-shape {
  opacity: 0;
  transform: translateX(-200px) rotate(-20deg);
  transition: all 1s ease;
}

#new-shape.show {
  opacity: 1;
  transform: translateX(0) rotate(0);
}

.wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 60px;
  padding: 20px;
}

.our-history-title {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 60px;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}

#aqa {
  width: 210%;
  max-width: 924px;
  position: relative;
}

.aqb {
  width: 100%;
  height: 100%;
}

#aqb {
  fill: rgba(101, 101, 101, 0.31);
  stroke: #707070;
}

.aqc,
.aqd {
  fill: transparent;
  stroke: white;
  stroke-width: 1px;
  width: 36px;
  height: 33px;
  cursor: pointer;
  position: absolute;
  top: 81%;
}

.aqc {
  left: 41.5%;
  transform: rotate(-90deg);
}

.aqd {
  left: 50%;
  transform: rotate(90deg);
}

#aqe,
#aqf {
  position: absolute;
  width: 60%;
  left: 50%;
  bottom: 55%;
  transform: translateX(-50%);
  text-align: center;
  font-family: Poppins, sans-serif;
  font-weight: bold;
  font-size: clamp(24px, 6vw, 64px);
  color: white;
}

#aqe {
  top: 5%;
}

#aqf {
  font-size: clamp(24px, 6vw, 64px);
}
#year-image {
  position: absolute;
  transform: translateX(-50%);
  max-height: 30%;
  text-align: center;
}

#year-image img {
  max-width: 100%;
  max-height: 180px;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.4s ease;
}
#aqg {
  position: absolute;
  top: 56%;
  width: 80%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-family: Calibri, sans-serif;
  font-size: clamp(14px, 2vw, 20px);
  color: white;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-height: 30%;
  overflow-y: auto;
  padding-right: 10px;
}

.rotating-container {
  width: 45vw;
  max-width: 834px;
  aspect-ratio: 834 / 722;
  position: relative;
  margin-left: -50px;
}

#aie {
  width: 95%;
  height: 100%;
  position: absolute;
  transform-origin: center;
  transition: transform 0.5s ease;
}

.year-box {
  position: absolute;
  width: 100px;
  height: 40px;
  text-align: center;
  font-family: Poppins, sans-serif;
  font-weight: bold;
  font-size: 40px;
  color: white;
}

.year-1998 {
  top: -12%;
  left: 13%;
  transform: rotate(0deg);
  font-family: calibri;
}

.year-2007 {
  top: 13%;
  left: -10%;
  transform: rotate(30deg);
  font-family: calibri;
}

.year-2012 {
  top: 46%;
  left: -18%;
  transform: rotate(0deg);
  font-family: calibri;
}

.year-2019 {
  top: 80%;
  left: -11%;
  transform: rotate(-30deg);
  font-family: calibri;
}

.year-2021 {
  top: 106%;
  left: 11%;
  transform: rotate(-60deg);
  font-family: calibri;
}

.svg {
  position: absolute;
  fill: transparent;
  stroke-width: 1px;
  transform-origin: center;
  transition: transform 0.5s ease;
  width: 100%;
  height: 100%;
}

#hex1 {
  stroke: rgba(28, 82, 154, 1);
  transform: rotate(0deg);
}

#hex2 {
  stroke: white;
  transform: rotate(30deg);
}

@media (max-width: 1024px) {
  .top-bg3,
  .left-bg3,
  .right-bg3,
  .center-bg-1-3,
  .center-bg-2-3 {
    display: none; /* hide extra blobs on small screens */
  }
  #history-title {
    font-size: 2.4rem;
  }
  .wrapper {
    flex-direction: column;
    align-items: center;
  }

  #hexagon-shape {
    margin-left: 0;
    max-width: none;
    width: 90%;
    transform: rotate(0deg) scale(1);
  }

  #new-shape {
    width: 117%;
    transform: translateX(0) rotate(0);
  }
  #aqa {
    width: auto;
  }

  .rotating-container {
    width: 80vw;
  }

  #aie {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .wrapper {
    gap: 80px;
  }
  .our-history-section {
    padding: 50px 20px;
  }

  #aqg {
    font-size: clamp(12px, 3vw, 18px);
  }

  .rotating-container {
    width: 90vw;
    margin-left: 0px;
    margin-top: 9%;
  }

  .year-box {
    width: 70px;
    height: 30px;
    font-size: clamp(21px, 3vw, 16px);
  }

  .year-1998,
  .year-2007,
  .year-2012,
  .year-2019,
  .year-2021 {
    font-size: 20px;
  }

  .aqc,
  .aqd {
    width: 30px;
    height: 25px;
  }
}

.bg-image3 {
  position: absolute;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  width: 100%;
  height: 80%;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s ease-out;
  filter: blur(53px);
}

.top-bg3 {
  top: 289%;
  left: 0%;
  height: 34%;
  transform: translateX(-50%);
  background-image: url("Assets/Images/HomePage/OurHistory/Blueshade.webp");
}

.left-bg3 {
  top: 308%;
  left: -28%;
  height: 81%;
  width: 60%;
  transform: translate(-50px, -50%);
  background-image: url(Assets/Images/HomePage/OurHistory/BlueshadeLeft2.webp);
}

.right-bg3 {
  top: 290%;
  left: 66%;
  height: 130%;
  width: 40%;
  transform: translateY(-50%);
  background-image: url(Assets/Images/HomePage/OurHistory/BlueshadeRight2.webp);
}

.center-bg-1-3 {
  top: 314%;
  right: 48%;
  width: 22%;
  height: 22%;
  background-image: url(Assets/Images/HomePage/OurHistory/PolygonCenter1.webp);
  filter: blur(20px);
}

.center-bg-2-3 {
  top: 351%;
  right: 76%;
  width: 23%;
  height: 19%;
  background-image: url(Assets/Images/HomePage/OurHistory/Polygon26.webp);
  filter: blur(14px);
}

.hidden {
  opacity: 0;
  transform: translateY(40px);
  transition: all 2s cubic-bezier(0.25, 1, 0.5, 1);
}

.show {
  opacity: 1;
  transform: translateY(0);
}

.hexagon-bg {
  position: absolute;
  top: 24%;
  right: 0%;
  left: 75px;
  height: 52%;
  width: auto;
  object-fit: contain;
  z-index: -1;
  opacity: 0.17;
  pointer-events: none;
}

/*
  Arabic CSS
*/

[dir="rtl"] #history-title {
  font-family: "Cairo";
  font-weight: 600;
  font-size: 3.1rem;
}
[dir="rtl"] #aqg {
  direction: rtl;
  font-family: "Cairo";
}

/* Homepage : Latest New Section
================================
*/

.latestnews-section {
  display: inline-grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  justify-content: center;
  align-content: start;
  margin-bottom: 15%;
  max-width: 52%;
}

.latestnews-wrapper {
  position: relative;
  z-index: 2;
}

#latestnews-title {
  position: absolute;
  top: 29%;
  left: 8%;
  font-family: calibri;
  font-size: 55px;
  color: #fff;
  opacity: 0;
  transform: translateX(-100px);
  transition: all 0.8s ease-out;
  z-index: 10;
  line-height: 1.2;
}

#latestnews-title .line1 {
  display: block;
}

#latestnews-title .line2 {
  display: block;
  padding-left: 93%;
}

#latestnews-title.show {
  opacity: 1;
  transform: translateX(0);
}

#card1-content,
#card2-content,
#card3-content {
  position: relative;
  width: 336.009px;
  height: 275.746px;
  top: 60%;
  overflow: visible;
}
#card1-content {
  left: 165%;
}
#card2-content {
  left: 146%;
}
#card3-content {
  left: 127%;
}

#card1,
#card2,
#card3 {
  fill: transparent;
  stroke: rgba(112, 112, 112, 1);
  stroke-width: 1px;
}

.card1,
.card2,
.card3 {
  overflow: visible;
  position: relative;
  width: 86%;
  height: 83%;
  left: 0.001px;
  top: 0;
}

#card1-img,
#card2-img,
#card3-img {
  position: absolute;
  width: 78.5%;
  height: 55%;
  left: 4%;
  top: 8.26px;
}

#card1-title,
#card2-title,
#card3-title {
  position: absolute;
  left: 9%;
  top: 64%;
  width: 280px;
  height: 24px;
  font-family: Montserrat;
  font-style: normal;
  font-weight: lighter;
  font-size: 20px;
  color: #fff;
}

#card4-content {
  position: relative;
  width: 66%;
  height: 89.1%;
  left: 51%;
  top: 40%;
  overflow: visible;
}

#card4 {
  fill: transparent;
  stroke: rgba(112, 112, 112, 1);
  stroke-width: 1px;
}

.card4 {
  overflow: visible;
  position: absolute;
  width: 198%;
  height: 107%;
  left: 79%;
  top: 0;
}

#card4-img {
  position: absolute;
  width: 191%;
  height: 72%;
  left: 82.532%;
  top: 2.5%;
}

#card4-title {
  position: absolute;
  left: 92%;
  top: 85%;
  width: 141%;
  height: 100%;
  font-family: Montserrat;
  font-style: normal;
  font-weight: lighter;
  font-size: 20px;
  color: #fff;
}

#card5-content {
  position: relative;
  width: 66%;
  height: 275.746px;
  left: 77%;
  top: 34%;
  overflow: visible;
}

#card5 {
  fill: transparent;
  stroke: rgba(112, 112, 112, 1);
  stroke-width: 1px;
}

.card5 {
  overflow: visible;
  position: absolute;
  width: 199%;
  height: 107%;
  left: 82%;
  top: 0;
}

#card5-img {
  position: absolute;
  width: 192%;
  height: 65%;
  left: 85.532%;
  top: 8%;
}

#card5-title {
  position: absolute;
  left: 125%;
  top: 83%;
  width: 141%;
  height: 100%;
  font-family: Montserrat;
  font-style: normal;
  font-weight: lighter;
  font-size: 20px;
  color: #fff;
}

.bg-image4 {
  position: absolute;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  width: 100%;
  height: 80%;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s ease-out;
  filter: blur(53px);
}

.top-bg4 {
  top: 66px;
  left: -18%;
  height: 32%;
  width: 135%;
  transform: translateX(-50%);
  background-image: url(Assets/Images/HomePage/LatestNews/Blueshade.webp);
}
.left-bg4 {
  top: 33%;
  left: -29%;
  height: 60%;
  width: 60%;
  transform: translate(-50px, -50%);
  background-image: url("Assets/Images/HomePage/LatestNews/BlueshadeLeft2.webp");
}

.right-bg4 {
  top: -8%;
  left: 78%;
  height: 123%;
  width: 36%;
  transform: translateY(-50%);
  background-image: url("Assets/Images/HomePage/LatestNews/BlueshadeRight2.webp");
}

.center-bg-2-4 {
  top: 39%;
  right: 73%;
  width: 19%;
  height: 19%;
  background-image: url(Assets/Images/HomePage/LatestNews/Polygon26.webp);
  filter: blur(15px);
}

.hidden {
  opacity: 0;
  transform: translateY(40px);
  transition: all 2s cubic-bezier(0.25, 1, 0.5, 1);
}

.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .latestnews-section {
    grid-template-columns: 1fr;
  }

  #card1-content,
  #card2-content,
  #card3-content,
  #card4-content,
  #card5-content {
    left: 0 !important;
    top: 0 !important;
    margin: 0 auto;
  }

  .card1,
  .card2,
  .card3,
  .card4,
  .card5 {
    left: 0 !important;
    width: 100% !important;
    height: auto !important;
  }

  #card1-img,
  #card2-img,
  #card3-img,
  #card4-img,
  #card5-img {
    width: 100% !important;
    left: 0 !important;
    height: auto !important;
  }

  #card1-title,
  #card2-title,
  #card3-title,
  #card4-title,
  #card5-title {
    left: 5% !important;
    top: 70% !important;
    width: 90% !important;
    font-size: 16px;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(100px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-animate {
  opacity: 0;
  transform: translateY(100px);
  transition: all 1s ease-out;
}

.card-animate.show {
  opacity: 1;
  transform: translateY(0);
}
/* Tablet screens (max-width: 1024px) */
@media (max-width: 1024px) {
  .latestnews-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px; /* مسافة بين الكروت */
  }

  #card1-content {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    left: 0 !important;
    top: 0 !important;
    margin: 0 auto;
  }
  #card2-content {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    left: 0 !important;
    top: 0 !important;
    margin: 0 auto;
  }
  #card3-content {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    left: 0 !important;
    top: 0 !important;
    margin: 0 auto;
  }
  #card4-content {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    left: 0 !important;
    top: 0 !important;
    margin: 0 auto;
  }
  #card5-content {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    left: 0 !important;
    top: 0 !important;
    margin: 0 auto;
  }

  .card1 {
    width: 100% !important;
    height: auto !important;
  }
  .card2 {
    width: 100% !important;
    height: auto !important;
  }
  .card3 {
    width: 100% !important;
    height: auto !important;
  }
  .card4 {
    width: 100% !important;
    height: auto !important;
  }
  .card5 {
    width: 100% !important;
    height: auto !important;
  }

  #card1-img {
    width: 100% !important;
    height: auto !important;
    left: 0 !important;
    top: 0 !important;
  }
  #card2-img {
    width: 100% !important;
    height: auto !important;
    left: 0 !important;
    top: 0 !important;
  }
  #card3-img {
    width: 100% !important;
    height: auto !important;
    left: 0 !important;
    top: 0 !important;
  }
  #card4-img {
    width: 100% !important;
    height: auto !important;
    left: 0 !important;
    top: 0 !important;
  }
  #card5-img {
    width: 100% !important;
    height: auto !important;
    left: 0 !important;
    top: 0 !important;
  }

  #card1-title {
    position: relative !important;
    left: 0 !important;
    top: 10px !important;
    text-align: center;
    width: 100% !important;
    font-size: 18px;
  }
  #card2-title {
    position: relative !important;
    left: 0 !important;
    top: 10px !important;
    text-align: center;
    width: 100% !important;
    font-size: 18px;
  }
  #card3-title {
    position: relative !important;
    left: 0 !important;
    top: 10px !important;
    text-align: center;
    width: 100% !important;
    font-size: 18px;
  }
  #card4-title {
    position: relative !important;
    left: 0 !important;
    top: 10px !important;
    text-align: center;
    width: 100% !important;
    font-size: 18px;
  }
  #card5-title {
    position: relative !important;
    left: 0 !important;
    top: 10px !important;
    text-align: center;
    width: 100% !important;
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .top-bg4,
  .bg-image4,
  .left-bg4,
  .right-bg4,
  .center-bg-2-4 {
    display: none;
  }
  .latestnews-section {
    max-width: 100%;
    gap: 20px;
    padding: 0 10px;
    margin-bottom: 32%;
    margin-top: 70%;
  }

  #latestnews-title {
    top: -8%;
    left: 3%;
    font-size: 3rem;
  }

  .card4 {
    height: 150% !important;
  }
  .card5 {
    height: 171% !important;
  }
  #card4-img {
    height: 105% !important;
  }
  #card5-img {
    height: 96% !important;
  }
  #card1-title,
  #card2-title,
  #card3-title {
    font-size: 23px;
    margin-top: -20%;
  }

  #card4-title {
    font-size: 23px;
    margin-top: 45%;
    top: 65px !important;
  }

  #card5-title {
    font-size: 23px;
    margin-top: 45%;
    top: 51px !important;
  }

  #card1-content {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    left: 0 !important;
    margin-top: 14%;
  }
  #card2-content {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    left: 0 !important;
    margin-top: 14%;
  }
  #card3-content {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    left: 0 !important;
    margin-top: 14%;
  }
  #card4-content {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    left: 0 !important;
    margin-top: 14%;
  }

  #card5-content {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    left: 0 !important;
    margin-top: 27%;
  }
}

@media (max-width: 480px) {
}

/*
  Arabic CSS:
  =============
*/

[dir="rtl"] #latestnews-title .line1 {
  margin-top: 31%;
}

[dir="rtl"] #latestnews-title {
  font-family: "Cairo";
  font-weight: 600;
  font-size: 3rem;
  top: 22%;
}

[dir="rtl"] #card1-title {
  left: 0%;
  top: 63%;
  text-align: center;
  font-family: "Cairo";
  font-size: 19px;
}

[dir="rtl"] #card2-title {
  left: 0%;
  top: 63%;
  text-align: center;
  font-family: "Cairo";
  font-size: 19px;
}
[dir="rtl"] #card3-title {
  left: 0%;
  top: 63%;
  text-align: center;
  font-family: "Cairo";
  font-size: 19px;
}

[dir="rtl"] #card4-title {
  top: 82%;
  font-family: "Cairo";
  text-align: center;
}

[dir="rtl"] #card5-title {
  top: 80%;
  font-family: "Cairo";
  text-align: center;
}
