/* Start variables */
:root {
    --main-color: #C04000;
    /* Keeping accent color */
    --main-color-alt: #1787e0;
    --main-transition: 0.3s;
    --section-padding: 100px;
    --section-background: #121212;
    /* Dark background */
    --section-background-alt: #1a1a1a;
    --gold: rgb(255, 215, 0);
    /* Slightly lighter dark background */
    --black: black;
}

.light-mode {
    --main-color: #2196f3;
    --section-background: #ececec;
    --section-background-alt: white;
    --gold: inherit;
    --black: white;
}

* {
    user-select: none;
}

/* End variables */
/* Start Global Rules */
* {
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Cairo", sans-serif;
    direction: rtl;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    margin: 0 auto;
    padding: 0 15px;
}

.special-heading {
    color: var(--main-color);
    margin: 0 auto;
    margin-bottom: 80px;
    font-size: 30px;
    font-weight: 800;
    text-transform: uppercase;
    width: fit-content;
    padding: 10px 20px;
    border: 2px solid black;
    position: relative;
    transition-duration: var(--main-transition);
    z-index: 1;

    &::after {
        content: "";
        display: block;
        position: absolute;
        width: 15px;
        height: 15px;
        border-radius: 50%;
        right: -30px;
        top: 50%;
        transform: translateY(-50%);
        background-color: var(--main-color);
        /* transition-duration:var(--main-transition); */
    }

    &::before {
        content: "";
        display: block;
        position: absolute;
        width: 15px;
        height: 15px;
        border-radius: 50%;
        left: -30px;
        top: 50%;
        transform: translateY(-50%);
        background-color: var(--main-color);
        /* transition-duration:var(--main-transition); */
    }

    &:hover::after {
        right: 0;
        width: 50%;
        height: 100%;
        border-radius: 0;
        z-index: -1;
        transition: right 0.3s, width 0.2s 0.3s, height 0.2s 0.3s, border-radius 0.2s 0.3s;

    }

    &:hover::before {
        left: 0;
        width: 55%;
        height: 100%;
        border-radius: 0;
        z-index: -1;
        transition: left 0.3s, width 0.2s 0.3s, height 0.2s 0.3s, border-radius 0.2s 0.3s;
    }

    /* &:hover {
        color: var(--black);
        border-color: var(--black);
        transition-delay: 0.5s;
    } */
}

body.light-mode .special-heading {
    color: black;
}

body .special-heading-active {
    color: var(--black) !important;
    border-color: var(--black);
    transition-delay: 0.5s;

    &::after {
        right: 0;
        width: 50%;
        height: 100%;
        border-radius: 0;
        z-index: -1;
        transition: right 0.3s, width 0.2s 0.3s, height 0.2s 0.3s, border-radius 0.2s 0.3s;

    }

    &::before {
        left: 0;
        width: 55%;
        height: 100%;
        border-radius: 0;
        z-index: -1;
        transition: left 0.3s, width 0.2s 0.3s, height 0.2s 0.3s, border-radius 0.2s 0.3s;
    }

}

.spikes {
    /* margin-top: 100px; */
    position: relative;
}

.spikes::after {
    background-size: 40px;
    content: "";
    position: absolute;
    width: 100%;
    height: 40px;
    z-index: 2;
    background-image: linear-gradient(135deg, var(--section-background-alt) 25%, transparent 25%);
}

.spikes::before {
    background-size: 40px;
    content: "";
    position: absolute;
    width: 100%;
    height: 40px;
    z-index: 2;
    background-image: linear-gradient(225deg, var(--section-background-alt) 25%, transparent 25%);
}

.dots {
    background-image: url("../images/dots.png");
    position: absolute;
    background-repeat: no-repeat;
    height: 186px;
    width: 204px;
}

.dots-top {
    top: 200px;
    right: 0;
}

.dots-bottom {
    bottom: 200px;
    left: 0;
}

/* small */
@media (min-width: 768px) {
    .container {
        width: 750px;
    }
}

/* medium */
@media (min-width: 992px) {
    .container {
        width: 970px;
    }
}

/* large */
@media (min-width: 1200px) {
    .container {
        width: 1170px;
    }
}

/* End global rules */
/* start header  */
body>header {
    /* background-color: white;
    box-shadow: 0 0 10px #ddd; */
    width: 100%;
    z-index: 8;
    left: 0;
    top: 0;
    position: absolute;
    background-color: #0000007d;
}

body.light-mode>header {
    background-color: #ffffff7d;
}

body>header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

body>header .container ul.main-nav {
    display: flex;
}

body>header .container ul.main-nav>li>a {
    display: block;
    text-transform: capitalize;
    /* color: #534e4e; */
    color: #b9b9b9;
    font-size: 18px;
    padding: 30px 20px;
    position: relative;
    transition-duration: var(--main-transition);
}

body.light-mode>header .container ul.main-nav>li>a {
    color: black;
}

body>header .container ul.main-nav>li>a:last-child:hover {
    background-color: #00000066;
    color: var(--main-color);
}

body.light-mode>header .container ul.main-nav>li>a:last-child:hover {
    background-color: #ffffff5c;
}

body>header .container ul.main-nav>li>a:after {
    content: "";
    position: absolute;
    height: 4px;
    width: 0%;
    background-color: var(--main-color);
    top: 0;
    right: 0;
    transition-duration: var(--main-transition);
}

body>header .container ul.main-nav>li>a:hover::after {
    width: 100%;
}

body>header .container ul.main-nav .others {
    display: flex;
    align-items: center;
}

body>header .container ul.main-nav .others a::after {
    height: 0;
}

body>header .container ul.main-nav .others>a {
    padding: 0;
    /* background-color: blue; */
    width: 40px;
    height: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

body>header .container ul.main-nav .others>a:hover div::after {
    width: 0;
}

body>header .container ul.main-nav .others>a div {
    width: 100%;
    height: 6px;
    background-color: rgb(68, 6, 68);
    position: relative;
}

body>header .container ul.main-nav .others>a div::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background-color: purple;
    transition-duration: 0.3s;
    width: 100%;
}

body>header .container .logo {
    /* display: block;
    color: var(--main-color);
    font-size: 26px;
    text-transform: capitalize;
    font-weight: bold;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center; */
    width: 58px;
    animation: rotate 10s linear infinite;
}

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

    10% {
        transform: rotate(360deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes rotate-mode {
    0% {
        transform: rotate(0deg) translate(-10px, -50%);
    }

    3% {
        transform: rotate(10deg) translate(-10px, -50%);
    }

    6% {
        transform: rotate(0deg) translate(-10px, -50%);
    }

    9% {
        transform: rotate(10deg) translate(-10px, -50%);
    }

    12% {
        transform: rotate(0deg) translate(-10px, -50%);
    }
    15% {
        transform: rotate(10deg) translate(-10px, -50%);
    }

    18% {
        transform: rotate(0deg) translate(-10px, -50%);
    }

    100%{
        transform: rotate(0deg) translate(-10px, -50%);
    }
}

body>header .container .mode {
    transform: translate(-10px, -50%);
    width: 30px;
    cursor: pointer;
    animation: rotate-mode 7s linear infinite;
}

@media (max-width:767px) {
    body>header .container {
        flex-direction: column;
    }

    body>header .container .logo {
        padding-top: 5px;
        /* padding-bottom: 10px; */
    }

    body>header .container ul.main-nav>li>a {
        font-size: 12px;
        padding: 10px;
        text-align: center;
    }

    body>header .container .mode {
        position: absolute;
        transform: translate(-10px, -66%);
        top: 50%;
    }

}

body>header .second-nav {
    position: absolute;
    left: 0;
    display: flex;
    width: 100%;
    background-color: var(--black);
    top: 83px;
    padding: 15px 30px;
    gap: 30px;
    align-items: center;
    border-bottom: 3px solid var(--main-color);
    z-index: 2;
    transform: translateY(30px);
    opacity: 0;
    /* transition-duration: 0.3s; */
    transition: opacity 0.3s, transform 0.3s;
    z-index: -1;
    top: -1000000px;
    /* display: none; */
}

body>header .second-nav .links-container {
    display: flex;
    gap: 40px;
    flex-grow: 1;
}

body>header .second-nav .links-container .links {
    width: 50%;
}

body>header .second-nav .links-container a {
    color: var(--main-color);
    text-transform: capitalize;
    font-weight: bold;
    padding: 15px 0;
    font-size: 18px;
    display: block;
    position: relative;
}

body>header .second-nav .links-container a::before {
    content: "";
    width: 0%;
    height: 100%;
    position: absolute;
    right: 0;
    top: 0;
    background-color: var(--section-background);
    z-index: -1;
    transition-duration: var(--main-transition);
}

body.light-mode>header .second-nav .links-container a::before {
    background-color: #fafafa;
}

body>header .second-nav .links-container a:hover::before {
    width: 100%;
}

body>header .second-nav .links-container li:not(:last-child) {
    border-bottom: 1px solid #272525;
}

body.light-mode>header .second-nav .links-container li:not(:last-child) {
    border-bottom: 1px solid #777;
}


body>header .second-nav .links-container a i {
    padding-left: 8px;
    padding-right: 10px;
}

body>header .second-nav img {
    width: 500px;
}

/* i minipulate this class with */
.showHeaderMenu {
    transform: translateY(0px) !important;
    opacity: 1 !important;
    z-index: 2 !important;
    display: flex !important;
    top: 83px !important;

}

@media(max-width:992px) {
    body>header .second-nav .photo {
        display: none;
    }

    .showHeaderMenu {
        top: 120px !important;
    }
}

@media(max-width:767px) {
    body>header .second-nav .links-container {
        flex-direction: column;
        gap: 0;
    }

    body>header .second-nav .links-container .links {
        width: 100%;
    }

    body>header .second-nav .links-container .links:not(:last-child) li:last-child {
        border-bottom: 1px solid #272525;
    }

    body.light-mode>header .second-nav .links-container .links:not(:last-child) li:last-child {
        border-bottom: 1px solid #777;
    }
}

@media(max-width:1200px) {
    body>header .second-nav img {
        width: 300px;
    }
}




/* end header   */

/* start landing page */
.landing {
    /* height: calc(100vh - 81px); */
    height: calc(100vh);
    background-color: white;
    position: relative;
    background-image: url("../images/aborateb.jpg");
    background-size: cover;
    /* Ensures the image covers the entire element */
    background-position: center;
    /* Centers the image */
    background-repeat: no-repeat;
    /* Prevents the image from repeating */
    /* clip-path: polygon(0 0%, 100% 0, 100% 74%, 0 94%); */

}

.landing::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 80%);
    /* Black see-through */

}

.landing .container {
    align-items: center;
    display: flex;
    justify-content: flex-start;
    height: 100%;
    position: relative;
}

/* .landing img {
    width: 1200px;
    max-width: 100%;
    position: relative;
    animation: landing-image 3s infinite linear alternate;

} */

/* @keyframes landing-image {
    0% {
        top: 0px;
    }

    33% {
        top: 20px;
    }

    100% {
        top: 45px;

    }

    /* 100% {
        top: 70px;
    } 

} */

.landing .text {
    position: relative;
    top: 100px;
    height: fit-content;
    width: 80%;
    transform: translateY(-50%);

}

.landing h1 {
    font-size: 70px;
    color: #751175;
    margin-bottom: 30px;
}

body.light-mode .landing h1 {
    color: purple;
}


.landing p {
    font-size: 30px;
    color: #666;
    margin-top: 5px;
    color: #793a79;
}

body.light-mode .landing p {
    color: rgb(184, 133, 184);
}


@media (max-width:992px) {
    .landing .image {
        display: none;
    }

    .landing .text {
        /* top: 190px; */
        justify-content: center;
        align-items: center;
        text-align: center;
        width: 100%;
        transform: translateY(-30%);
    }

    .landing .text h1 {
        font-size: 60px;
        line-height: 1.4em;
    }

}

.landing span a {
    display: block;
    width: fit-content;
    color: var(--main-color);
    position: absolute;
    bottom: 50px;
    left: 50%;
    z-index: 2;
    position: relative;
    animation: landing-span 2s infinite;
    font-weight: bold;
}

@keyframes landing-span {

    0%,
    10%,
    20%,
    50%,
    80%,
    100% {
        /* transform: translateY(0); */
        bottom: 50px;
    }

    40%,
    60% {
        /* transform: translateY(-15px); */
        bottom: 70px;
    }

}

/* end landing page */
/* start articles */
.articles {
    padding: var(--section-padding) 0;
    background-color: var(--section-background-alt);

}

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

.articles .container .card {
    box-shadow: 0 2px 15px rgb(0 0 0 / 10%);
    border-radius: 5px;
    overflow: hidden;
    transition-duration: var(--main-transition);
    background-color: rgba(102, 102, 102, .2);
}

.articles .container .card.show {
    transform: translateY(-10px);
    box-shadow: 0 2px 15px rgb(0 0 0 / 20%);
}


.articles .container .text {
    height: 100px;
    padding: 20px;
    border-bottom: 1px solid #4d4d4e;
    color: var(--main-color);
}

body.light-mode .articles .container .text {
    border-bottom: 1px solid #e6e6e7;
    color: rgb(65, 2, 65);
}


.articles .container .text p {
    color: #777;
    margin-top: 10px;
}

.articles .container .image {
    aspect-ratio: 4/3;
}

.articles .container img {
    max-width: 100%;
    width: 100%;
    height: 100%;
}

.articles .container .more {
    padding: 20px;
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    color: var(--main-color);
    font-weight: bold;
}



/* end articles */
/* start gallery */
.gallery {
    background-color: var(--section-background);
    padding: var(--section-padding) 0;
}

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

.gallery .container .card {
    border: 10px solid var(--black);
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

/* .gallery .container .card img {
    transform: scale(1.1) rotate(5deg);
}

.gallery .container .card::before {
    animation: gallery-image 0.5s linear;
} */
.gallery .container .card {
    aspect-ratio: 1/1;

}

.gallery .container .card img {
    max-width: 100%;
    width: 100%;
    height: 100%;
    box-shadow: 0 2px 15px rgb(0 0 0 / 10%);
    transition-duration: var(--main-transition);
    position: relative;
}

.gallery .container .card::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    width: 0%;
    height: 0%;
    background-color: rgb(0 0 0 / 20%);
    z-index: 5;
    transition-duration: var(--main-transition);
}

body.light-mode .gallery .container .card::before {
    background-color: rgb(255 255 255 / 20%);
}

.gallery .card .prices {
    position: absolute;
    font-size: 30px;
    font-weight: bold;
    bottom: 10px;
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: space-evenly;
    display: none;
    justify-content: center;

}

.gallery .card .title {
    font-size: 30px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    width: 100%;
    text-align: center;
    display: none;
    justify-content: center;
}

.gallery .card.show .title,
.gallery .card.show .prices {
    color: var(--main-color);
    display: flex;
    justify-content: space-evenly;
    opacity: 80%;
}

.gallery .card.show img {
    transform: scale(1.1) rotate(5deg);

}

.gallery .card.show::before {
    animation: gallery-image 0.5s linear;
}



@keyframes gallery-image {

    0%,
    40% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        width: 200%;
        height: 200%;
    }
}

@media (max-width:992px) {

    .gallery .card .title,
    .gallery .card .prices {
        font-size: 24;
    }

}

/* end gallery */
/* start features */
.features {
    padding: var(--section-padding) 0;
    background-color: var(--section-background-alt);
}

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

.features .container .card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid black;
    height: fit-content;
    cursor: pointer;
    background-color: #272626;
}

body.light-mode .features .container .card {
    border: 1px solid #ccc;
    background-color: inherit;

}

/* .features .container .card:hover .image::after {
    clip-path: polygon(0 70%, -30% 15%, 100% 100%, 0% 100%);
} */
.features .container .card.show .image::after {
    /* background-color: #1a1a1a50; */
    opacity: .5;
    /* transition: 2s; */
    clip-path: polygon(0 70%, -100% 105%, 100% 100%, 0% 100%);
}

.features .container .card .image {
    display: grid;
    position: relative;
    overflow: hidden;
    aspect-ratio: 1/1;
}

.features .container .card .image img {
    max-width: 100%;
    width: 100%;
    height: 100%;
}


.features .container .card .image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(166, 255, 0, 0.3);
    z-index: 5;
}

.features .container .card .image::after {
    content: "";
    position: absolute;
    top: 51%;
    left: -5px;
    width: 104%;
    height: 50%;
    /* background-color:#212121; */
    background-color: #272626;
    z-index: 6;
    /* clip-path: polygon(0 70%, 110% 0, 100% 100%, 0% 100%); */
    clip-path: polygon(0 80%, 200% 0, 100% 100%, 0% 100%);

    transition-duration: .5s;
}

body.light-mode .features .container .card .image::after {
    background-color: white;
}

.features .container .card .text {
    padding: 10px 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.features .container .card .text h2 {
    color: #868484;
    margin-bottom: 30px;
    font-size: 40px;
    font-weight: bold;
    position: relative;
    width: fit-content;
}

body.light-mode .features .container .card .text h2 {
    color: inherit;
}

.features .container .card .text h2::after {
    content: "";
    position: absolute;
    background-color: blue;
    height: 4px;
    width: 80%;
    left: 10%;
    bottom: -10px;
}

.features .container .card .text p {
    font-size: 20px;
    color: #777;
    line-height: 1.8;
    margin: 10px 0;
}

/* .features .container .card a {
    display: block;
    padding: 10px 30px;
    border: 3px solid blue;
    border-radius: 5px;
    font-size: 22px;
    font-weight: bold;
    color: blue;
    margin: 30px 0;
    transition-duration: var(--main-transition);
    position: relative;
    background: linear-gradient(to right, blue 50%, white 50%);
    background-position: right;
    background-size: 210% 110%;
} */


/* coloring the first child */
.features .container .card.red a {
    background-image: linear-gradient(to right, #f44036 50%, white 50%);
    border: 3px solid #f44036;
    color: #f44036;
}

.features .container .card.red .text h2::after {
    background-color: #f44036;
}

.features .container .card.red .image::before {
    background-color: rgba(199, 77, 70, 0.1);

}

.features .card.red .prices {
    color: #f44036;
}

/* finish coloring the first child */
/* coloring the second child */
.features .container .card.green a {
    background-image: linear-gradient(to right, #009688 50%, white 50%);
    border: 3px solid #009688;
    color: #009688;
}

.features .container .card.green .text h2::after {
    background-color: #009688;
}

.features .container .card.green .image::before {
    background-color: rgba(0, 150, 136, 0.1);
}

.features .card.green .prices {
    color: #009688;
}

/* finish coloring the second child */
/* coloring the third child */
.features .container .card.blue a {
    background-image: linear-gradient(to right, #03a9f4 50%, white 50%);
    border: 3px solid #03a9f4;
    color: #03a9f4;
}

.features .container .card.blue .text h2::after {
    background-color: #03a9f4;
}

.features .container .card.blue .image::before {
    background-color: rgba(3, 169, 244, 0.1);
}

.features .card.blue .prices {
    color: #03a9f4;
}

/* finish coloring the third child */
.features .container .card:hover a {
    color: white;
    background-position: left;
}

.features .container img {
    max-width: 100%;
}

.features .card .prices {
    /* position: absolute; */
    color: var(--main-color);
    font-size: 30px;
    font-weight: bold;
    bottom: 10px;
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: space-evenly;
    opacity: 50%;
    margin-bottom: 10px;
    opacity: 0;
}

.features .card.show .prices {
    opacity: .8;
}

/* end features */
/* start TEAM MEMBERS */
.members {
    padding: var(--section-padding) 0;
    background-color: var(--section-background-alt);
}

.members .container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, auto));
    justify-content: center;
    gap: 30px;
}

.members .container .card {
    position: relative;
    display: flex;
    justify-content: flex-end;
}


.members .container .image {
    aspect-ratio: 1/1;
    position: absolute;
    z-index: 2;
    max-width: 285px;
    top: 46%;
    right: 0;
    transform: translate(0, -50%);
    overflow: hidden;
    cursor: pointer;
}

.members .container img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    border-radius: 10px;
    transition-duration: var(--main-transition);
}

.members .container .back {
    height: 430px;
    background-color: var(--section-background);
    width: 285px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    cursor: pointer;
}

body.light-mode .members .container .back {
    background-color: #e6e6e7;
}

.members .container .back::before {
    left: 0;
    border-radius: 10px;
    top: 0;
    content: "";
    position: absolute;
    width: 0;
    height: 100%;
    background-color: rgba(102, 102, 102, 0.3);
    transition-duration: var(--main-transition);
}

.members .container .back .text {
    text-transform: capitalize;
    color: rgb(61, 59, 59);
}

body.light-mode .members .container .back .text {
    color: inherit;
}

.members .container .back h3 {
    font-size: 22px;
    color: var(--main-color);
    margin-bottom: 10px;
}

.members .container .back p {
    color: #b9b9b9;
}

.members .container .back .social {
    color: #b9b9b9;
    width: calc(100% - 285px);
    display: flex;
    flex-direction: column;
    left: 0px;
    position: absolute;
    top: 46%;
    transform: translateY(-50%);
    align-items: center;
}

body.light-mode .members .container .back .social {
    color: #777;
}

.members .container .card.hide .back .social {
    opacity: 0;
}


.members .container .back .social div {
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    width: 100%;
    text-align: center;

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

.members .container .card.hide img {
    filter: grayscale(100%);
}

.members .container .card.hide h3 {
    color: #777;
}

.members .container .card.hide p {
    color: #777;
}

.members .container .card.hide .back::before {
    width: 285px;
}

@media(max-width:767px) {
    .members .container .back {
        width: 100%;
    }

    .members .container .card.hide .back::before {
        width: 100%;
    }
}

/* end TEAM MEMBERS */
/* start services */
.services {
    padding: var(--section-padding) 0;
    background-color: var(--section-background);
}

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

.services .container .card {
    display: flex;
    flex-direction: column;
    background-color: white;
    box-shadow: 0 2px 15px rgb(0 0 0 / 20%);
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    transition-duration: var(--main-transition);
    cursor: pointer;
}

/* //////////// */

.services .container .card.show {
    transform: translateY(-10px);
}

.services .container .card.show::before {
    width: 100%;
}

.services .container .card.show .bottom .number span {
    position: relative;
    left: 0;
    transition: 0.5s;
}

.services .container .card.show .bottom a span {
    position: relative;
    left: 0;
    transition: 0.5s;
}

/* //////////// */

.services .container .card::before {
    position: absolute;
    content: "";
    background-color: var(--main-color);
    width: 0%;
    height: 2px;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    transition-duration: var(--main-transition);
}

.services .container .card .top {
    color: #d5d5d5;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    aspect-ratio: 4/3;
    height: 100%;
}

.services .container .card .top img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.services .container .card .bottom {
    color: var(--main-color);
    width: 100%;
    height: 50px;
    display: flex;
    justify-content: space-between;
    position: relative;
}

.services .container .card .bottom::before {
    content: "";
    z-index: 10;
    position: absolute;
    height: 100%;
    width: 30%;
    background-color: #292525;
    right: 20%;
    top: 0;
    clip-path: polygon(25% 0%, 100% -3%, 75% 103%, 0% 100%);

}

body.light-mode .services .container .card .bottom::before {
    background-color: #d5d5d5;
}

.services .container .card .bottom .number {
    color: var(--black);
    position: relative;
    font-size: 30px;
    background-color: var(--main-color);
    display: flex;
    justify-content: center;
    align-items: center;
    justify-content: flex-start;
    width: 30%;
    padding: 0 20px;
    font-weight: bold;
}

.services .container .card .bottom .number span {
    position: relative;
    left: -576px;
    transition: 0.5s;
}

.services .container .card .bottom a {
    background-color: black;
    display: flex;
    padding: 0 10px;
    justify-content: flex-end;
    align-items: center;
    width: 70%;
}

body.light-mode .services .container .card .bottom a {
    background-color: #f9f9f9;
}

.services .container .card .bottom a span {
    font-size: 15px;
    position: relative;
    left: -576px;
    transition: 0.5s;
}

/* end services */
/* how it works */
.works {
    padding: var(--section-padding) 0;
    background-color: var(--section-background);
}

.works .container {
    display: flex;
    gap: 100px;
}

.works .container>img {
    max-width: 100%;
    width: 370px;
}

.works .container .cards {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.works .container .cards .card {
    display: flex;
    gap: 30px;
    background-color: #f6f5f5;
    padding: 30px;
    justify-content: center;
    align-items: center;
    border: 2px solid white;
    border-radius: 5px;
    position: relative;
}

.works .container .cards .card:hover::before {
    width: 100%;
    height: 100%;
}

.works .container .cards .card::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    height: 0%;
    width: 0%;
    background-color: red;
    background-color: rgba(102, 102, 102, 0.3);
    transition-duration: var(--main-transition);
}

.works .container .card .text {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.works .container .card .text h3 {
    font-size: 22px;
}

.works .container .card .text p {
    color: #777;
    font-size: 18px;
    line-height: 1.8;
}

.works .container .card img {
    width: 64px;
}

@media (max-width:992px) {
    .works .container {
        flex-direction: column;
        align-items: center;
    }

    .works .container .card {
        flex-direction: column;
    }

}

/* how it works */
/* start videos */
.videos {
    padding: var(--section-padding) 0;
    background-color: var(--section-background-alt);
}

.videos .container .holder {
    display: flex;
    border: 1px solid black;
}

body.light-mode .videos .container .holder {
    border: 1px solid #ddd;
}

.videos .container .left {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    flex-shrink: 0;
}

.videos .container .left .top {
    display: flex;
    justify-content: space-between;
    background-color: var(--section-background);
    padding: 20px;
    color: var(--gold);
    font-weight: bold;
}

body.light-mode .videos .container .left .top {
    background-color: #f4f4f4;
    color: inherit;
}

.videos .container .left ul {
    overflow: auto;
    height: 80vh;
    direction: ltr;
    /* Ensures scrollbar is on the right */
}

.videos .container .left ul::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.videos .container .left ul::-webkit-scrollbar-track {
    background-color: #1a1818;
}

body.light-mode .videos .container .left ul::-webkit-scrollbar-track {
    background-color: #f0f0f0;
}

.videos .container .left ul::-webkit-scrollbar-thumb {
    background-color: rgb(12, 10, 10);
    border-radius: 5px;
}

body.light-mode .videos .container .left ul::-webkit-scrollbar-thumb {
    background-color: #808080;
}


.videos .container .left li {
    color: #b9b9b9;
    padding: 20px;
    text-align: right;
    cursor: pointer;
}

body.light-mode .videos .container .left li {
    color: rgb(61, 59, 59);
}

/* body.light-mode .videos .container .left li {
    color: inherit;
} */

/* .videos .container .left li:hover {
    background-color: #fafafa;
    color: var(--main-color);
} */

.videos .container .left li.show {
    background-color: var(--section-background);
    color: var(--main-color);
}

body.light-mode .videos .container .left li.show {
    background-color: #fafafa;
}

.videos .container .left li:not(:last-child) {
    border-bottom: 1px solid #444;
}

body.light-mode .videos .container .left li:not(:last-child) {
    border-bottom: 1px solid #ddd;
}


.videos .container .left li span {
    color: #777;
    display: block;
    margin-top: 10px;
}

.videos .container .right {
    display: flex;
    flex-direction: column;
    background-color: #111111;
    padding: 10px;
    justify-content: space-between;
    overflow: hidden;
    width: 80%;
}

body.light-mode .videos .container .right {
    background-color: #e2e2e2;
}

.videos .container .right .image {
    overflow: hidden;
    aspect-ratio: 12 / 9;
    width: 100%;
    height: 80%;
}

.videos .container .right .bar {
    background-color: #1a1a1a;
    padding: 20px;
    overflow: hidden;
    /* color: rgb(61, 59, 59); */
    color: rgba(255, 217, 0, 0.664);
}

body.light-mode .videos .container .right .bar {
    background-color: white;
    color: inherit;
}

.videos .container .right .bar div {
    display: inline-block;
    transition: 0.3s linear;
}

.videos img {
    max-width: 100%;
    transition: 0.3s linear;
    width: 100%;
    height: 100%;
}

@media(max-width:992px) {
    .videos .holder {
        flex-direction: column;
    }

    .videos .right {
        gap: 20px;
    }

    .videos .container .right {
        width: 100%;
        height: 100%;
    }

    .videos .container .left ul {
        height: 30vh;
    }
}

/* end videos */
/* start footer */
.footer * {
    user-select: text;
}

.footer {
    padding-top: 70px;
    background-color: #191919;
}

.footer .container {
    display: flex;
    flex-direction: column;
}

.footer .container .top {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    column-gap: 40px;
    row-gap: 50px;
    color: #b9b9b9;
}

.footer .container .top .one {
    display: flex;
    flex-direction: column;
}

.footer .container .top .one .title {
    font: 50px bold;
    color: var(--main-color);
    margin-bottom: 20px;
}

body.light-mode .footer .container .top .one .title {
    color: white;
}

.footer .container .top .one .icons {
    display: flex;
    gap: 10px;
}

.footer .container .one .icons a {
    display: flex;
    width: 45px;
    height: 45px;
    background-color: #313131;
    justify-content: center;
    align-items: center;
    transition-duration: var(--main-transition);
}

.footer .container .one .icons a:nth-child(1):hover {
    background-color: blue;
}

.footer .container .one .icons a:nth-child(2):hover {
    background-color: #075E54;
}

/* .footer .container .one .icons a:nth-child(3):hover {
    background-color: red;
} */

.footer .container .one p {
    line-height: 2;
    margin-top: 8px;
}

.footer .container li a {
    display: block;
    font-size: 16px;
    padding: 15px 0;
    width: 100%;
}

.footer .container li:not(:last-child) a {
    border-bottom: 1px solid #b9b9b9;
}

.footer .container li a:hover {
    padding-left: 15px;
}

.footer .container li a::before {
    font-family: "Font Awesome 5 Free";
    content: "\F100     ";
    font-weight: 900;
    margin-right: 10px;
    color: var(--main-color);
    margin-right: 15px;
}

.footer .three {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    line-height: 1.8;
    gap: 20px;
    align-items: flex-start;
}

.footer .three>div {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.footer .three i {
    color: var(--main-color);
    font-size: 25px;
}

.footer .three .info {
    display: flex;
    flex-direction: column;
}



.footer .container .four {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.footer .container img {
    border: 3px solid var(--black);
    width: fit-content;
    width: 78px;
    height: 78px;
    max-width: 100%;
}

.footer .bottom {
    color: #b9b9b9;
    padding: 25px;
    display: flex;
    justify-content: center;
    font-size: 18;
    font-weight: bold;
    text-transform: capitalize;
    border-top: 1px solid #444;
    margin-top: 30px;
    text-align: center;
}

body.light-mode .footer .bottom {
    color: white;
}

@media (max-width:767px) {
    .footer .container .top .one {
        align-items: center;
        text-align: center;
    }

    .footer .three>div {
        flex-direction: column;
        text-align: center;
        width: 100%;
    }
}

/* end footer */
/* start menu */
.menu-container {
    position: fixed;
    top: 10%;
    left: 50%;
    width: 80%;
    transform: translateX(-50%);
    height: 80vh;
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;

}

.menu {
    max-width: 100%;
    max-height: 100%;
    box-shadow: 0 2px 15px rgb(0 0 0 / 90%);
    aspect-ratio: 44/61;
    position: relative;
}

.menu img {
    height: 100%;
    width: 100%;
    display: none;
}

.menu span {
    font-size: 80px;
    color: var(--main-color);
    font-weight: bold;
    position: absolute;
    top: 50%;
    cursor: pointer;
    width: fit-content;
    display: none;

    &:hover {
        color: #d6520f;
    }

    &:active {
        color: #88360d;
    }

    &:first-child {
        transform: translate(-100%, -50%);
        left: 0px;
    }

    &:last-child {
        right: 0;
        transform: translate(100%, -50%);
    }
}

body.light-mode .menu span {
    &:hover {
        color: #1787e0;
    }

    &:active {
        color: #1b5483;
    }
}

@media (max-width: 992px) {
    .menu span {
        font-size: 50px !important;
        -webkit-tap-highlight-color: transparent;
    }
}

/* end menu */

/* Start design */
.design {
    padding: 100px 0;
    height: 600px;
    background-image: url("../images/separator.jpeg");
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.design::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(0 0 0 / 60%);
}

.design .text {
    padding: 50px;
    background-color: rgb(15 116 143 / 70%);
    z-index: 2;
    /* flex: 1; */
}

.design .text h2 {
    color: #111111;
    font-size: 24px;
    text-transform: uppercase;
    margin-bottom: 40px;
}

body.light-mode .design .text h2 {
    color: white;
}

.design .text ul {
    color: #111111;
    font-weight: bold;
}

body.light-mode .design .text ul {
    color: white;
}

.design .text ul li {
    padding: 15px 0;
}

.design .text ul li::before {
    font-family: "Font Awesome 5 Free";
    content: "\f1fd";
    font-weight: 900;
    margin-left: 20px;
    position: relative;
    top: 1px;
    display: inline-block;
    animation: beat 1s infinite;
    /* To add the fa-beat effect */
}

@keyframes beat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

@media (max-width:767px) {
    .design .text {
        flex: 1;
        padding: 50px 40px;

        &h2 {
            font-size: 22px;
        }
    }

    .design .image {
        display: none;
    }

    .design {
        background-image: url("../images/separatorAlternative.jpeg");
    }
}

/* end design */