@font-face {
    font-family: sansita-one;
    src: url("/frontend/fonts/SansitaOne.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

:root {
    --bg: #100028;
    --cl: #19004a;
    --bl: #000;
    --ff: #fff;
    --cc: #ccc;
}

*,
*::after,
*::before {
    margin: 0;
    padding: 0;
    outline: 0;
    border: none;
    text-decoration: none !important;
    list-style: none;
    box-sizing: border-box;
    transition: all 0.2s ease-in-out;
}

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

::-webkit-scrollbar-track {
    background: var(--ff);
}

::-webkit-scrollbar-thumb {
    background: var(--bg);
    border-radius: 20px;
}

img,
video {
    width: 100%;
}

body {
    overflow: hidden;
    overflow-y: auto;
    font-family: "Cairo", sans-serif;
    background: var(--bg);
    position: relative;
    z-index: 0;
}

.main {
    position: relative;
    z-index: 9;
    overflow: hidden;
}

.container {
    max-width: 1280px;
    margin: auto;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

.alert {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999999;
    max-width: 280px;
}

.hasVerifiedEmail {
    width: 100%;
    height: 100%;
    min-height: 80vh;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: auto;
    text-align: center;
    gap: 10px;
    color: var(--bs-danger);
    font-weight: bold;
}

textarea {
    resize: none;
    height: 150px;
}

.table-active {
    --bs-table-color-state: var(--ff);
    --bs-table-bg-state: var(--bg);
}

.table {
    --bs-table-border-color: var(--bg);
    --bs-table-striped-bg: var(--bg);
    --bs-table-active-bg: var(--bg);
    --bs-table-hover-bg: var(--bg);
}

.pagination {
    --bs-pagination-color: var(--ff);
    --bs-pagination-bg: var(--bg);
    --bs-pagination-border-width: 1px;
    --bs-pagination-border-color: var(--cl);
    --bs-pagination-border-radius: 0.375rem;

    --bs-pagination-hover-color: var(--ff);
    --bs-pagination-hover-bg: var(--cl);
    --bs-pagination-hover-border-color: var(--cl);

    --bs-pagination-focus-color: var(--ff);
    --bs-pagination-focus-bg: var(--cl);
    --bs-pagination-focus-box-shadow: 0 0 0 0.25rem rgba(166, 165, 142, 0.25);

    --bs-pagination-active-color: var(--ff);
    --bs-pagination-active-bg: var(--cl);
    --bs-pagination-active-border-color: var(--cl);

    --bs-pagination-disabled-color: var(--cc);
    --bs-pagination-disabled-bg: var(--bg);
    --bs-pagination-disabled-border-color: var(--cl);

    direction: ltr;
}

.text-custom {
    color: var(--bg);
}
.text-custom2 {
    color: var(--cl);
}
.text-justify {
    text-align: justify;
}

.border-bottom-color {
    border-bottom-color: var(--cl) !important;
}
.style_title {
    font-family: sansita-one, sans-serif;
    border-bottom: 1px solid var(--ff);
    width: fit-content;
}

.login {
    width: 100%;
    max-width: 500px;
    margin: auto;
    background: var(--cl);
    color: var(--cc);
    padding: 15px;
    border-radius: 10px;

    .click_eye {
        cursor: pointer;
    }

    .input-group {
        background: var(--bg);
    }

    .form-control,
    .form-select,
    .input-group-text {
        background: transparent;
        border: 0 !important;
        color: var(--cc);
        border-radius: 0 !important;
    }

    .form-control:focus,
    .form-select:focus {
        box-shadow: none;
        border: 0 !important;
    }

    .form-control::placeholder,
    .form-select::placeholder {
        color: var(--cc);
    }

    .btn {
        background: var(--bg);
        color: var(--cc);
        border: 0 !important;
        border-radius: 0 !important;

        &:hover {
            opacity: 0.7 !important;
        }
    }
}

.section_main {
    min-height: 75vh;
    display: flex;
}

.img_blog {
    position: relative;
    width: 100px;
    height: 100px;
    overflow: hidden;
    border-radius: 50%;
}

.img_blog input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0;
    cursor: pointer;
}

.img_blog input[type="file"] {
    border: 0;
    border-radius: 0;
    padding: 0;
    margin-top: 0;
}

.img_blog img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 5px;
    border-radius: 50%;
}

.img_blog .upload {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 30px;
    height: 30px;
    background: var(--bg);
    color: #fff;
    border-radius: 50%;
    padding: 5px;
    cursor: pointer;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.img_blog .upload:hover {
    opacity: 0.7;
}

.navbar_logo_site {
    max-width: 100px;
}
nav.bg-transparent {
    padding-top: 2%;
}
nav .navbar-toggler hr {
    border-color: var(--bg);
    opacity: 1;
}

nav.bg-dark {
    background-color: var(--bg) !important;
}

.bg-custom {
    background: var(--bg);
}

.bg-custom-bg {
    background: var(--cl);
    color: var(--ff);

    &:hover {
        background: var(--cl);
        color: var(--ff);
        opacity: 0.7;
    }
}

a.nav-link.active {
    border-bottom: 1px solid var(--ff);
}

nav .offcanvas {
    background-color: var(--bg) !important;
    color: var(--ff);
}

.cursor-pointer {
    cursor: pointer;
}

canvas#neuralCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.custom-header-section {
    min-height: 75vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.custom-header-section .container {
    position: relative;
    z-index: 2;
}

.custom-header-section::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 75%;
    max-width: 1280px;
    height: 100%;
    transform: translate(-50%, -50%);
    z-index: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    pointer-events: none;
    opacity: 0.7;
    animation: bg-header 4s infinite alternate;
}
.background-header-ar::after {
    background-image: url("../images/custom-header-ar.webp");
}
.background-header-en::after {
    background-image: url("../images/custom-header.webp");
}

@keyframes bg-header {
    0% {
        transform: translate(-50%, -50%);
    }
    100% {
        transform: translate(-50%, -55%);
    }
}

.cursor {
    color: #f00;
    animation: blink 0.7s infinite;
    font-weight: bold;
}

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

.slider_programming {
    max-width: 800px;
}

.slider_programming .swiper-slide {
    max-width: 35px;
    fill: var(--ff);
}

.about-info i {
    top: 0;
    font-size: 18px;
    line-height: 0;
}

body.lang_en .about-info i {
    left: -25px;
}

body.lang_ar .about-info i {
    right: -25px;
}
.number_ar {
    direction: ltr;
    unicode-bidi: embed;
}

.skills {
    .progress {
        margin-top: 3px;
        border-radius: 10px;
        height: 3px;
        background: var(--cl);
    }
    .progress-bar {
        width: 0%;
        transition: width 2s ease;
    }

    .bg-html {
        background-color: #e44d26;
    }
    .bg-css {
        background-color: #264de4;
    }
    .bg-sass {
        background-color: #cf649a;
    }
    .bg-js {
        background-color: #f7df1e;
        color: #000;
    }
    .bg-ts {
        background-color: #007acc;
    }
    .bg-jquery {
        background-color: #0769ad;
    }
    .bg-bootstrap {
        background-color: #563d7c;
    }
    .bg-react {
        background-color: #61dafb;
        color: #000;
    }
    .bg-redux {
        background-color: #764abc;
    }
    .bg-next {
        background-color: #000;
    }
    .bg-rnative {
        background-color: #61dafb;
    }
    .bg-python {
        background-color: #3776ab;
    }
    .bg-php {
        background-color: #8892be;
    }
    .bg-laravel {
        background-color: #ff2d20;
    }
    .bg-mysql {
        background-color: #00758f;
    }
    .bg-git {
        background-color: #f1502f;
    }
    .bg-github {
        background-color: #333;
    }
}

.swiper {
    width: 100%;
}

.myReviewSwiper {
    width: 95% !important;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--ff);
}

.swiper-button-next {
    right: 0;
    left: auto;
}

.swiper-button-prev {
    left: 0;
    right: auto;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 18px;
    line-height: 0;
    color: var(--cl2);
}

.description-html p {
    margin-bottom: 0;
}

.project-item {
    padding: 3px;
}

.project-item::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--cl);
    opacity: 0.3;
    z-index: 0;
}

.project-content {
    bottom: -100%;
    left: 0;
    transition: all 0.3s ease-in-out;
    background: #00000060;
    z-index: 1;
}

.project-content p {
    background: #00000090;
    margin-bottom: 0 !important;
}

.project-item:hover .project-content {
    bottom: 0;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    color: var(--ff);
    cursor: pointer;
    z-index: 9;
}

.bg-image {
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    max-width: 500px;
    opacity: 0.8;
}

.loading_website {
    #particles {
        animation: partciles 4s ease-in-out infinite;
    }
    #animatedStop {
        animation: umbral 4s infinite;
    }
    #bounce {
        animation: bounce 4s ease-in-out infinite;
        translate: 0px 36px;
    }
    #bounce2 {
        animation: bounce2 4s ease-in-out infinite;
        translate: 0px 46px;
        animation-delay: 0.5s;
    }
}

.blogs {
    .card {
        transition: all 0.5s ease-in-out;
        aspect-ratio: 1 / 1;
    }
    .hover-image {
        transition: all 0.5s ease-in-out;
        background-size: cover;
        background-position: center;
        opacity: 0.1;
    }
    .card:hover .hover-image {
        opacity: 0.3 !important;
        transform: scale(1.1);
    }
}

.proposalBlogSlider,
.myTags {
    max-width: 90% !important;
}

.myTags .swiper-slide.active {
    position: relative;
    margin-top: 10px;
    margin-bottom: 10px;
}

.myTags .swiper-slide.active::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid var(--ff);
}

@keyframes bounce {
    0%,
    100% {
        translate: 0px 36px;
    }
    50% {
        translate: 0px 46px;
    }
}

@keyframes bounce2 {
    0%,
    100% {
        translate: 0px 46px;
    }
    50% {
        translate: 0px 56px;
    }
}

@keyframes umbral {
    0% {
        stop-color: #100028;
    }
    50% {
        stop-color: #1000287f;
    }
    100% {
        stop-color: #100028;
    }
}
@keyframes partciles {
    0%,
    100% {
        translate: 0px 16px;
    }
    50% {
        translate: 0px 6px;
    }
}

pre {
    direction: ltr;
    max-width: fit-content;
    padding: 10px;
    border: 1px solid var(--ff);
    border-radius: 5px;
}

@media (max-width: 768px) {
    a.navbar_logo_site_sm {
        max-width: 70px;
    }
    .custom-font-sm {
        font-size: 80% !important;
    }
    .custom-font-11 {
        font-size: 11px !important;
    }
    .custom-header-section::after {
        width: 100%;
    }
    .play-icon {
        font-size: 1.5rem;
    }
    .proposalBlogSlider,
    .myTags {
        max-width: 80% !important;
    }
}
