:root {
    --header-height:6rem;
  
    /*========== Colors ==========*/
    --hue: 174;
    --sat: 63%;
    --first-color: hsl(var(--hue), var(--sat), 40%);
    --first-color-alt: hsl(var(--hue), var(--sat), 36%);
    --title-color: hsl(var(--hue), 12%, 15%);
    --text-color: hsl(var(--hue), 8%, 35%);
    --body-color: hsl(var(--hue), 100%, 99%);
    --container-color: #FFF;
  
    /*========== Font and typography ==========*/
    --body-font: 'Cairo', sans-serif;
    --h1-font-size: 1.5rem;
    --normal-font-size: .938rem;
    --tiny-font-size: .625rem;
  
    /*========== z index ==========*/
    --z-tooltip: 10;
    --z-fixed: 100;
  }
  
  @media screen and (min-width: 968px) {
    :root {
      --h1-font-size: 2.25rem;
      --normal-font-size: 1rem;
    }
  }
html,body{
    margin: 0;
    font-family: var(--body-font);
    background-color: var(--body-color);
    color: var(--text-color);
    padding: 0;
    overflow-x: hidden; /* منع التمرير الأفقي */
    width: 100%;
}


  img {
    max-width: 100%;
    height: auto;
  }

  /*=============== HEADER ===============*/
  .header {
    position: fixed;
    top: 10px;
    left: 5%;
    width: 90%;
    background-image: linear-gradient(to top, #88031f, #ad072a); 
    z-index: var(--z-fixed);
    transition: 0.4s;
    border-radius: 35px; 

}


/*=============== NAV ===============*/
.nav {
height: var(--header-height);

display: flex;
margin-top: 0;
justify-content: space-around;
align-items: center;
}

.nav__img {
width:15%;
}

.nav__logo {
color: var(--title-color);
font-weight: 600;
}

@media screen and (max-width: 767px) {
.nav__menu {
position: fixed;
bottom: 0;
left:2.5%;
background-image: linear-gradient(to top, #88031f, #ad072a); /* تدرج لوني أفقي */
box-shadow: 0 -1px 12px hsla(var(--hue), var(--sat), 15%, 0.15);
width: 95%;
height: 8rem;
padding: 0 1rem;
display: grid;
align-content: center;
border-radius: 1.25rem 1.25rem 0 0;
transition: .4s;
}
i {
font-size: 3rem !important;
}
.nav__img {
width: 20%;
}
}

.nav__list, 
.nav__link {
display: flex;
}

.nav__link {
flex-direction: column;
align-items: center;
row-gap: 4px;
color: var(--container-color);
font-weight: 600;
}

.nav__list {
justify-content: space-around;
}

.nav__name {
font-size: var(--tiny-font-size);
}

.nav__icon {
font-size: 1.5rem;
}

/*Active link*/
.active-link {
position: relative;
color: var(--secondary-color);
transition: .3s;
}


/* Change background header */
.scroll-header {
box-shadow: 0 1px 12px hsla(var(--hue), var(--sat), 15%, 0.15);
}

/*=============== MEDIA QUERIES ===============*/
/* For small devices */
/* Remove if you choose, the minimalist design */
@media screen and (max-width: 320px) {
.nav__name {
display: none;
}
}

/* For medium devices */
@media screen and (min-width: 576px) {
.nav__list {
justify-content: center;
column-gap: 3rem;
}
}

@media screen and (min-width: 767px) {
body {
margin: 0;
}
.section {
padding: 7rem 0 2rem;
}
.nav {
height: calc(var(--header-height) + 3.5rem); /* 4.5rem */
}

.nav__icon {
display: none;
}
.nav__name {
font-size: var(--normal-font-size);
/* display: block; */ /* Minimalist design, visible labels */
}
.nav__link:hover {
color: var(--secondary-color);
}

/* First design, remove if you choose the minimalist design */
.active-link::before {
content: '';
position: absolute;
bottom: -.75rem;
width: 4px;
height: 4px;
background-color: var(--secondary-color);
border-radius: 50%;
}
}
/*========== Colors ==========*/
:root {
--hue-color: 348; /* اللون الأحمر */
--text-gradient: linear-gradient(hsl(var(--hue-color), 85%, 43%), hsl(var(--hue-color), 85%, 20%));

/*========== Font and typography ==========*/
--bigger-font-size: 3.5rem;
--smaller-font-size: .75rem;

/*========== Font weight ==========*/
--font-medium: 500;

/*========== Margenes Bottom ==========*/
--mb-2-5: 2.5rem;

/*========== Colors for general use ==========*/
--rich-black-fogra-29: hsl(210, 26%, 7%);
--deep-saffron: #b91717;
--dark-orange: hsl(28, 100%, 58%);
--white: hsl(0, 0%, 100%);
--black: hsl(0, 0%, 0%);
--sonic-silver: hsl(0, 0%, 47%);

/*========== Font families ==========*/
--ff-shadows-into-light: 'Shadows Into Light', cursive;
--ff-roboto: 'Cairo', sans-serif;
--ff-rubik: 'Cairo', sans-serif;

/*========== Font sizes ==========*/
--fs-1: 3.2rem;
--fs-2: 2.2rem;
--fs-3: 1.8rem;
--fs-4: 1.4rem;
--fs-5: 1.2rem;

/*========== Font weights ==========*/
--fw-500: 500;
--fw-600: 600;
--fw-700: 700;

/*========== Spacing ==========*/
--section-padding: 60px;

/*========== Shadows ==========*/
--shadow-1: 0 1px 4px hsla(0, 0%, 0%, 0.2);
--shadow-2: 0 4px 10px hsla(0, 0%, 0%, 0.1), 0 2px 4px hsla(0, 0%, 0%, 0.1);

/*========== Transitions ==========*/
--transition-1: 0.25s ease;
--transition-2: 0.5s ease;

/*========== Clip paths ==========*/
--clip-path-1: polygon(0 40%, 100% 0%, 100% 100%, 0 100%);
--clip-path-2: polygon(0 0%, 100% 0%, 100% 100%, 0 100%);
}

/*========== Global Styles ==========*/
li {
list-style: none;
}

:focus-visible {
outline-offset: 4px;
}

::selection {
background-color: var(--deep-saffron);
color: var(--white);
}

/*========== Section Titles ==========*/
.section__title {
font-size: var(--bigger-font-size);
text-align: center;
margin-bottom: var(--mb-2-5);
}

.section__title-gradient {
background: var(--text-gradient);
color: transparent;
-webkit-background-clip: text;
background-clip: text;
font-weight: 800;
}

/*========== Specs Section ==========*/
.specs__container {
position: relative;
}

.specs__content {
row-gap: 1.5rem;
}

.specs__data {
display: grid;
row-gap: .25rem;
}

.specs__icon {
font-size: 3rem !important;
color: var(--secondary-color);
}

.specs__title {
font-size: 2rem;
font-weight: var(--font-medium);
color: #000;
}

.specs__subtitle {
font-size: 1.8rem !important;
}

.specs__data:nth-child(1), .specs__data:nth-child(4) {
margin-left: 3rem;
}
html[lang="ar"] .specs__data:nth-child(1), .specs__data:nth-child(4) {
  margin-right: 3rem;
  }
.specs__img {
width: 250px;
position: absolute;
top: 2rem;
right: -4rem;
left: auto;
}
html[lang="ar"] .specs__img {
  left: -4rem;
  right: auto;
  }
.grids {
display: grid;
}

/*========== Media Queries ==========*/

/* For small devices */
@media screen and (max-width: 340px) {
.section__title {
font-size: var(--fs-1);
}
}

/* For medium devices */
@media screen and (min-width: 500px) {
.specs__img {
position: initial;
}

.specs__container {
grid-template-columns: repeat(2, 1fr);
justify-items: center;
align-items: center;
}
}

/* For medium to large devices */
@media screen and (min-width: 767px) {
.sections {
padding: 6rem 0 2rem;
}

.specs__img {
width: 450px;
}
}

/* For large devices */
@media screen and (min-width: 1024px) {
.containers {
margin-left: auto;
margin-right: auto;
}

.sponsor__img {
width: 100px;
}
}

/* For larger than 550px screen */
@media (min-width: 390px) {
.containerss {
max-width: 550px;
width: 100%;
margin-inline: auto;
}

.promo-card .card-text {
font-size: 1.7rem !important;
}

.has-scrollbar > li {
min-width: calc(50% - 5px);
}
}

@media (min-width: 300px) {
.promo-card .card-text {
font-size: 1.9rem !important;
}
}

@media (min-width: 768px) {
.containerss {
max-width: 720px;
}
}

/* For larger than 992px screen */
@media (min-width: 992px) {
:root {
--section-padding: 120px;
}

.containerss {
max-width: 960px;
}

.has-scrollbar > li {
min-width: calc(33.33% - 6.66px);
}
}

/* For larger than 1200px screen */
@media (min-width: 1200px) {
.containerss {
max-width: 1200px;
}

.promo .promo-item {
min-width: calc(25% - 7.5px);
}

.promo-card .card-text {
font-size: 1.5rem !important;
}
}

/*========== Promo Card ==========*/
.promo-card {
position: relative;
background-color: var(--white);
text-align: center;
padding: 40px 30px;
box-shadow: var(--shadow-2);
z-index: 1;
height: 400px;
overflow: hidden;
border-radius: 10px;
}

.promo-card .card-title,
.promo-card .card-text {
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-box-orient: vertical;
}

.promo-card .card-text {
color: var(--sonic-silver);
}

.promo-card .card-title {
font-size: 2.5rem !important;
margin-bottom: 5px;
color: var(--black);
}

.promo-card::after {
content: "";
position: absolute;
inset: 0;
background-color: var(--deep-saffron);
border-radius: 90% 90% 0 0;
transform: scaleY(0.2);
transform-origin: bottom;
z-index: -1;
transition: transform 0.4s ease, opacity 0.3s ease;
opacity: 1;
}

.promo-card:hover::after {
transform: scaleY(1);
opacity: 1;
border-radius: 10px;
}

.promo-card .card-icon i {
margin-inline: auto;
color: #b91717;
margin-bottom: 10px;
}

.promo-card:hover .card-icon i {
color: var(--white);
}

.promo-card:hover :is(.card-title, .card-text) {
color: var(--white);
}

.promo-card .card-banner {
max-width: max-content;
margin-inline: auto;
aspect-ratio: 1 / 1;
}

.promo-item {
min-width: 100%;
scroll-snap-align: start;
}

/*========== Scrollbar Styles ==========*/
.has-scrollbar {
display: flex;
gap: 10px;
overflow-x: auto;
scroll-snap-type: inline mandatory;
padding-block-end: 40px;
}

.has-scrollbar::-webkit-scrollbar {
height: 12px;
}

.has-scrollbar::-webkit-scrollbar-button {
width: calc(25% - 40px);
}

.has-scrollbar::-webkit-scrollbar-track {
outline: 2px solid var(--deep-saffron);
border-radius: 50px;
}

.has-scrollbar::-webkit-scrollbar-thumb {
border: 3px solid var(--cultured);
border-radius: 50px;
}

::-webkit-scrollbar-thumb {
background-color: var(--deep-saffron);
}