* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    --bg_body: rgb(15, 23, 41);
    --bg_nav_border: rgb(34, 48, 68);
    --bg_nav_2: rgb(19, 27, 48);
    --bg_3: #162239;
    --gradient-2: linear-gradient(90deg, #0ea5ea, #0bd1d1 51%, #0ea5ea);

    --text_body: #7d91b0;
    --text_body_2: #fff;
    --text_nav: #fff;
}

body {
    font-family: 'Noto Sans', sans-serif;
    background: var(--bg_body);
    color: var(--text_body);
    position: relative;
    overflow-x: hidden;
}

body.light {
    --bg_body: #ffffff;
    --bg_nav_border: rgb(222, 220, 220);
    --bg_nav_2: #f6f6f6;
    --bg_3: #eee;
    --gradient-2: linear-gradient(90deg, #0ea5ea, #0bd1d1 51%, #0ea5ea);
    /* ----------------------------------------- */
    --text_body: #7d91b0;
    --text_body_2: #7d91b0;
    --text_nav: #fff;
}

a {
    text-decoration: none;
    color: var(--text_body);
}

img {
    width: 100%;
    height: 100%;
    transition: .4s;
}

/* nav */
nav {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translate(-50%, 0);
    width: 520px;
    height: 60px;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bg_nav_2);
    box-shadow: 0 2px 3px 0 rgba(0, 0, 0, .1);
    z-index: 999;
    border: 1px solid var(--bg_nav_border);
    backdrop-filter: blur(10px);
}

nav .container {
    display: flex;
    justify-content: space-between;
    width: 500px;
    margin: 0 auto;
    height: 50px;
    align-items: center;
}

nav a {
    font-size: 15px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    text-transform: uppercase;
    color: var(--text_body_2);
    text-decoration: none;
    height: 80%;
    position: relative;
    z-index: 1;
    border-radius: 8px;
    transition: .3s;
    cursor: pointer;
}

nav a i {
    position: absolute;
    font-size: 1.3rem;
    visibility: hidden;
}

nav a.active {
    background: var(--gradient-2);
    color: var(--text_nav);
    cursor: pointer;
}

nav a::after {
    content: '';
    transition: .2s;
    cursor: pointer;
}

nav a:not(.active):hover:after {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translate(-50%, 0);
    width: 6px;
    height: 6px;
    rotate: 45deg;
    background: var(--gradient-2);
    border: 1px solid var(--text_body_2);
    cursor: pointer;
}

nav a span {
    cursor: pointer;
}

.moon {
    position: fixed;
    bottom: 10px;
    right: 10px;
    width: 50px;
    height: 50px;
    background: var(--bg_nav_2);
    border-radius: 50%;
    box-shadow: 0 2px 3px 0 rgba(0, 0, 0, .1);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border: 1px solid var(--bg_nav_border);
    transition: .3s;
}

.active {
    transition: .3s;
}

.moon.active {
    bottom: 10px;
    right: 70px;
    cursor: pointer;
}

.moon i {
    position: absolute;
    cursor: pointer;
    z-index: 999;
    color: var(--text_body_2);
    font-size: 1.3rem;
    width: 100%;
    height: 100%;
    background: var(--bg_nav_2);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.moon i.active {
    opacity: 0;
}
/* end nav */

/* section */
section {
    margin: 120px 30px 0;
}
/* end section */

/* home */
.home .container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row-reverse;
    gap: 3.5rem;
    margin-top: 10rem;
}

.home-swiper {
    margin: initial;
}

.home-images {
    width: 450px;
}

.swiper-wrapper {
    display: flex;
    justify-content: space-between;
}

.swiper-slide {
    width: 280px !important;
    display: flex;
    justify-content: center;
}

.home-article,
.home-img {
    width: 250px;
    height: 300px;
    transition: scale .4s;
    cursor: pointer;
}

.home-img {
    border-radius: 5px;
    background: var(--bg_nav_2);
}

.home-article {
    scale: .8;
}

.swiper-slide-active,
.swiper-slide-duplicate-active {
    scale: 1;
}
/* end home */

/* text home title */
.text-home-title {
    display: flex;
    flex-direction: column;
    height: 350px;
    width: 50%;
    justify-content: space-between;

}

.text-home-title .data-home p {
    font-size: 2.8rem;
    color: var(--text_body_2);
}

.text-home-title .data-home p span {
    background-image: var(--gradient-2);
    font-weight: bold;
    display: inline-block;
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
}
/* end text home title */

/* cv */
.data-cv {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.data-cv .exp {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
}

.data-cv .exp span:nth-child(1) {
    font-size: 4.5rem;
    background-image: var(--gradient-2);
    font-weight: bold;
    display: inline-block;
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
}

.data-cv .exp span:nth-child(2) {
    display: inline-block;
}

.data-cv .cv {
    padding: 15px 20px;
    cursor: pointer;
    font-size: 1.1rem;
    background-image: var(--gradient-2);
    background-size: 200%;
    background-position: left;
    border-radius: 5px;
    transition: .3s;
}

.data-cv .cv a {
    color: var(--text_nav);
    cursor: pointer;
}

.data-cv .cv a i {
    margin-left: 10px;
    font-size: 1.5rem;
}

.cv:is(:hover, :focus-visible) {
    background-position: right;
}
/* end cv */

/* about */
.about .container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.about .container .data {
    width: 500px;
    margin-top: 3rem;
}

.about .information {
    margin-top: 1.5rem;
    display: none;
    transition: .3s;
}

.about .information.active {
    display: block;
}

.about .container .data ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

.name {
    margin-right: 2rem;
}

.about .container .data ul li {
    display: flex;
    font-size: .9rem;
    align-items: center;
    gap: .6rem;
    margin-top: .7rem;
}

.about .container .data ul li p {
    color: var(--text_body);
    font-size: .9rem;
    border-left: 2px solid #0bd1d1;
    background: var(--bg_3);
    border-radius: 5px;
    padding: 4px 10px;
}

.about .container .data ul li a {
    color: var(--text_body);
    font-size: .9rem;
    border-left: 2px solid #0bd1d1;
    background: var(--bg_3);
    border-radius: 5px;
    padding: 4px 10px;
    cursor: pointer;
}

.about .container .data ul li i {
    color: var(--text_body_2);
    font-size: 1rem;
}

.about .title {
    font-size: 1.3rem;
    color: var(--text_body_2);
    background-image: var(--gradient-2);
    font-weight: bold;
    display: inline-block;
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    margin-bottom: .7rem;
}

.about .container .data .text {
    color: var(--text_body_2);
    line-height: 1.9;
    font-size: .9rem;
    text-align: justify;
    margin-top: .5rem;
}

.about .container .images {
    position: relative;
    margin-top: 4rem;
}

.about .container .images img {
    width: 250px;
    height: 300px;
    object-fit: cover;
    border: 3px solid var(--bg_nav_2);
    border-radius: .5rem;
    cursor: pointer;
    /* rotate: -10deg; */
    transition: .3s;
}

.about .container .images .bg1 {
    position: absolute;
    left: -80px;
    top: -20px;
    width: 250px;
    height: 300px;
    object-fit: cover;
    border-radius: .5rem;
    background-color: var(--bg_nav_2);
    cursor: pointer;
    rotate: -15deg;
    z-index: -1;
    transition: .3s;
}

.about .container .images .bg2 {
    position: absolute;
    left: -40px;
    top: -10px;
    width: 250px;
    height: 300px;
    object-fit: cover;
    border-radius: .5rem;
    background-color: var(--bg_3);
    cursor: pointer;
    rotate: -10deg;
    z-index: -1;
    transition: .3s;
}

.about .btn {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.about .btn .btn {
    padding: 15px 20px;
    cursor: pointer;
    font-size: 1.1rem;
    background-image: var(--gradient-2);
    background-size: 200%;
    background-position: left;
    border-radius: 5px;
    transition: .3s;
    margin-top: 2rem;
    color: var(--text_nav);
}

.linkedin {
    font-size: 2rem;
    color: var(--text_body_2);
    background: var(--bg_3);
    border: 1px solid var(--bg_nav_border);
    border-radius: 5px;
    padding: 5px 10px;
    margin-top: 2rem;
    transition: .3s;
    cursor: pointer;
}

.linkedin:hover {
    color: var(--text_nav);
    background: #0bd1d1;
}

.linkedin i {
    cursor: pointer;
}

.about-btn .btn:is(:hover, :focus-visible) {
    background-position: right;
}

.about-project-ptn {
    font-size: 1.2rem;
    color: var(--text_body_2);
    border: 1px solid var(--bg_nav_border);
    font-weight: bold;
    border-radius: 5px;
    padding: 10px 20px;
}
/* end about */

/* skills */
section.skills {
    margin: 120px 30px 0;
    margin-bottom: 5rem;
}

.skills .cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    width: 800px;
    margin: 2rem auto;
}

.skills .title {
    margin-top: 2rem;
    text-align: center;
}

.skills .title h3 {
    font-size: 1.5rem;
    color: var(--text_body_2);
    margin-bottom: .3rem;
}

.skills .title p {
    font-size: .8rem;
}

.skills-card {
    padding: 10px;
    background-color: var(--bg_nav_2);
    display: flex;
    justify-content: center;
    gap: 1rem;
    align-items: center;
    font-size: 1rem;
    color: var(--text_body_2);
    border-radius: 10px;
    border: 1px solid var(--bg_nav_border);
    transition: .3s;
}

.skills-card:hover {
    border: 1px solid #0bd1d1;
    transform: translateY(-5px);
}

.skills-card span {
    font-size: .8rem;
    color: var(--text_body);
}

.skills .border {
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.skills-card img {
    width: 25px;
    height: 25px;
}

.edcation {
    margin: 4rem 0;
}

.edcation h3 {
    font-size: 2rem;
    color: var(--text_body_2);
    background-image: var(--gradient-2);
    font-weight: bold;
    display: inline-block;
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    width: 100%;
    text-align: center;
}

.bg-education {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, 0);
    width: 3px;
    height: 100%;
    background: var(--bg_nav_2);
    border: 1px solid var(--bg_nav_border);
}

.bg-education span {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--bg_nav_2);
    transition: .3s;
    border: 1px solid var(--bg_nav_border);
    transition: .3s;
}

.bg-education span.active {
    background-color: #0bd1d1;
}

.bg-education span:nth-child(1) {
    top: 20%;
    left: 50%;
    transform: translate(-50%, -10%);
}

.bg-education span:nth-child(1)::after {
    content: "";
    position: absolute;
    right: 15px;
    top: 7px;
    width: 80px;
    height: 2px;
    background: var(--bg_nav_2);
    border: 1px solid var(--bg_nav_border);
    transition: .3s;
}

.bg-education span:nth-child(2) {
    top: 80%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.bg-education span:nth-child(2)::after {
    content: "";
    position: absolute;
    right: 15px;
    top: 7px;
    width: 80px;
    height: 2px;
    background: var(--bg_nav_2);
    border: 1px solid var(--bg_nav_border);
    transition: .3s;
}

.bg-education span:nth-child(3) {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -30%);
}

.bg-education span:nth-child(3)::after {
    content: "";
    position: absolute;
    left: 15px;
    top: 7px;
    width: 80px;
    height: 2px;
    background: var(--bg_nav_2);
    border: 1px solid var(--bg_nav_border);
    transition: .3s;
}

.education-cards {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.education-card-all {
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    position: relative;
}

.education-card-all .education-card {
    background-color: var(--bg_nav_2);
    border: 1px solid var(--bg_nav_border);
    border-radius: 10px;
    padding: 15px 30px;
    width: 400px;
    height: 100%;
    transition: .3s;
}

.education-card-all .education-card:hover {
    border: 1px solid #0bd1d1;
}

.card-2 {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.education-card {
    display: flex;
    flex-direction: column;
}

.educ-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.education-card h2 {
    font-size: 1.2rem;
    color: var(--text_body_2);
    margin-bottom: .3rem;
}

.education-card p {
    font-size: .7rem;
}

.education-card h4 {
    font-size: .9rem;
    color: var(--text_body_2);
    margin-bottom: .3rem;
    margin-top: .5rem;
}

.education-card span {
    font-size: .9rem;
    margin-top: 0.5rem;
}

.education-card .education-btn-cert {
    margin-top: .8rem;
    padding: 8px 10px;
    cursor: pointer;
    font-size: 1.1rem;
    background-image: var(--gradient-2);
    background-size: 200%;
    background-position: left;
    border-radius: 5px;
    color: var(--text_nav);
    transition: .3s;
    text-align: center;
    width: 140px;
}

.education-card .education-btn-cert i {
    margin-left: 5px;
}

.education-card .education-btn-cert:hover {
    background-position: right;
}

.certificate-active2 {
    position: fixed;
    left: 50%;
    top: 50px;
    transform: translate(-50%, 0);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: .5rem;
    background-color: var(--bg_nav_2);
    border-radius: 10px;
    border: 1px solid var(--bg_nav_border);
    transition: .3s;
    width: 700px;
    height: 500px;
}

.certificate-active1 {
    scale: 0;
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    position: fixed;
    top: 0;
    right: 0;
    background-color: var(--bg_body);
    width: 100%;
    height: 100%;
    z-index: 999;
}

.body-scroll {
    overflow: hidden;
}

.certificate-active1.active {
    scale: 1;
    opacity: 1;
    visibility: visible;
}

.certificate-active2 .certificate-close {
    position: absolute;
    top: 15px;
    right: 30px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 1.3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg_body);
    cursor: pointer;
}
/* end skills */

/* portfolio */
.col-12 {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

#filter-buttons button {
    border: none;
    outline: none;
    background: none;
    width: 70px;
    height: 45px;
    border-top-right-radius: 10px;
    border-bottom-left-radius: 10px;
    border-bottom: 2px solid transparent;
    color: var(--text_body_2);
    background: var(--bg_3);
    transition: .3s;
    cursor: pointer;
}

#filter-buttons button:hover {
    border-bottom: 2px solid #0bd1d1;
}

#filter-buttons button.active {
    border-bottom: 2px solid #0bd1d1;
}

#filterable-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-top: 2.5rem;
    margin-bottom: 6rem;
}

#filterable-cards .card {
    width: 20rem;
    border: 1px solid var(--bg_nav_border);
    border-radius: 10px;
    transition: .3s;
    background-color: var(--bg_nav_2);
    padding: 10px;
    position: relative;
    overflow: hidden;
}

#filterable-cards .card:hover {
    border: 1px solid #0bd1d1;
    transform: translateY(-5px);
}

#filterable-cards .card img {
    border-radius: 10px;
    width: 100%;
    height: 12rem;
}

#filterable-cards .card.show {
    display: block;
    animation: filterable-cards .4s ease-in-out;
}

@keyframes filterable-cards {
    0% {
        transform: scale(0)
    }

    100% {
        transform: scale(1)
    }
}

#filterable-cards .card.hide {
    display: none;
}

.card-body {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.card-title {
    color: var(--text_body_2);
    margin-left: 10px;
}

.card-text {
    font-size: .8rem;
    margin-left: 10px;
    margin-bottom: 10px;
}

.portfolio-btn {
    position: absolute;
    left: 50%;
    top: -30px;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--bg_nav_2);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: .3s;
    cursor: pointer;
}

.portfolio-btn i {
    font-size: 1.5rem;
    color: var(--text_body_2);
    cursor: pointer;
}

#filterable-cards .card:hover .portfolio-btn {
    top: 35%;
}
/* end portfolio */

/* contact */
.contact-container {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-bottom: 5rem;
    margin-top: 11rem;
}

.contact-container .contact-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 3rem;
}

.contact-title-frist h3 {
    font-size: 1.8rem;
    color: var(--text_body_2);
}

.contact-title-frist p {
    margin-top: 1rem;
    font-size: .9rem;
    color: var(--text_body);
}

.contact-icon {
    display: flex;
    gap: 1rem;
}

.contact-icon a {
    width: 50px;
    height: 50px;
    background: var(--bg_nav_2);
    border: 1px solid var(--bg_nav_border);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    transition: .3s;
}

.contact-icon a:hover {
    border: 1px solid #0bd1d1;
    transform: translateY(-5px);
}

.contact-icon a i {
    color: var(--text_body_2);
    font-size: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-group {
    display: flex;
    gap: 1rem;
}

.contact-input {
    border-radius: 10px;
    border: none;
    outline: none;
    padding: 10px;
    font-size: 1rem;
    background-color: var(--bg_nav_2);
    border: 1px solid var(--bg_nav_border);
    color: var(--text_body_2);
}

.contact-input:focus {
    border: 1px solid #0bd1d1;
}

.contact-input::placeholder {
    color: var(--text_body);
}

.contact-input:autofill {
    transition: background-color 4000s, color 4000s;
}

.contact-area {
    height: 10rem;
    width: 100%;
    resize: none;
    border-radius: 10px;
}

.contact-button {
    padding: 13px 20px;
    cursor: pointer;
    font-size: 1.1rem;
    background-image: var(--gradient-2);
    background-size: 200%;
    background-position: left;
    border-radius: 10px;
    transition: .3s;
    margin-top: .5rem;
    color: var(--text_nav);
    border: none;
    outline: none;
}

.contact-button:hover {
    background-position: right;
}
/* end contact */

/* PAGE TRANSITION / bg page */
.bg.active {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: var(--gradient-2);
    animation: ahmed .7s forwards ease-in-out;
}

.bg.active::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background: #0b66c1;
    animation: ahmed2 .7s forwards ease-in-out;
}

@keyframes ahmed {
    0% {
        height: 100%;
        z-index: 999;
    }

    100% {
        height: 0;
        z-index: 999;
    }
}

@keyframes ahmed2 {
    0% {
        height: 100%;
        z-index: 999;
    }

    100% {
        height: 0;
        z-index: 999;
    }
}
/* PAGE TRANSITION / end bg page */

/* webkit */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background-color: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: #0bd1d1;
    border-radius: 8px;
}
