/* google fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');

/* general */
* {
    margin: 0;
    padding: 0;
    text-decoration: none;
    list-style: none;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    height: 100%;
}

.max__width {
    max-width: 1400px;
    margin-inline: auto;
    padding-inline: 100px;
}

.flex {
    display: flex;
}

.custom__hover:hover {
    transform: translateY(-10px);
}

.heading {
    color: navy;
    text-align: center;
    padding: 15px;
    font-size: 2rem;
    text-transform: uppercase;
}

/* header */
.header__container {
    justify-content: space-between;
    align-items: center;
    padding-block: 20px;
    background-color: black;
}

.header__logo img {
    width: 50px;
    transition: 0.4s ease-in;
}

.navbar__link {
    position: relative;
    display: block;
    text-transform: uppercase;
    padding: 10px 20px;
    font-weight: 600;
    transition: 0.5s;
    z-index: 1;
    overflow: hidden;
    color: white;
}

.navbar__link:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: scaleY(2);
    opacity: 0;
    transition: 0.3s;
}

.navbar__link:after {
    content: '';
    position: absolute;
    top: 2px;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    transform: scale(0);
    opacity: 0;
    transition: 0.3s;
    z-index: -1;
}

.navbar__link:hover {
    color: black;
}

.navbar__link:hover:before {
    transform: scaleY(1);
    opacity: 1;
}

.navbar__link:hover:after {
    transform: scaleY(1);
    opacity: 1;
}

.social__media__links__list {
    gap: 15px;
}

.social__media__link {
    color: white;
}

.fa-brands {
    font-size: 20px;
    transition: 0.4s ease-in;
}

/* mobile header */
.mobile__header__container {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding-inline: 20px;
    padding-block: 15px;
    background-color: black;
}

.mobile__navbar {
    position: fixed;
    left: 0;
    /* transform: translate(-50%, -50%); */
    bottom: 0;
    display: none;
    z-index: 9999;
}

.mobile__navbar__list {
    justify-content: space-around;
    width: 100vw;
    text-align: center;
    background-color: black;
    padding-block: 10px;
}

.mobile__navbar__link {
    color: white;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.mobile__navbar__list a {
    color: white !important;
}

@media screen and (max-width: 768px) {
    .header__container {
        display: none;
    }

    .mobile__header__container,
    .mobile__navbar {
        display: flex;
    }
}

/* about */
.about-container {
    display: flex;
    justify-content: space-between;
    box-sizing: border-box;
    padding: 50px 10%;
}

.about-image {
    padding: 5px;
    display: flex;
    justify-content: center;
}

.about-image img {
    border-radius: 30px 0;
}

.about-content {
    padding: 5%;
    text-align: justify;
    box-sizing: border-box;
}

.about-content a {
    color: black;
}

.address span {
    color: black;
}

.email,
.phone,
.address {
    color: navy;
    padding: 6px 0;
}

/* responsive about */
@media screen and (max-width:900px) {
    .about-container {
        flex-direction: column;
        padding: 20px 0;
    }

    .about-image {
        display: flex;
        justify-content: center;
        padding: 0;
        box-sizing: border-box;
        border: none;
    }

    .about-image img {
        width: 90%;
        padding: 0;
        box-sizing: border-box;
    }

}

/* skills */
#skills {
    background-color: rgba(0, 0, 0, 0.899);
    margin: 2% 0;
}

#skills h2 {
    color: white;
}

.skills-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.skills-content {
    position: relative;
    width: 900px;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.skills-content .card {
    position: relative;
    width: 250px;
    background: linear-gradient(0deg, #1b1b1b, #222, #1b1b1b);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px;
    border-radius: 4px;
    text-align: center;
    overflow: hidden;
    transform: 0.5s;
    margin: 20px;
}

.skills-content .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, .5);
}

.percent {
    position: relative;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    box-shadow: inset 0 0 50px #000;
    background: #222;
    z-index: 1000;
}

.percent .number {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.percent .number h2 {
    color: #777;
    font-weight: 700;
    font-size: 40px;
    transition: 0.5s;
}

.card:hover .percent .number h2 {
    color: #fff;
    font-size: 60px;
}

.percent .number h2 span {
    font-size: 24px;
    color: #777;
}

.card:hover .percent .number h2 span {
    color: #fff;
    transition: 0.5s;
}

.text {
    position: relative;
    color: #777;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: 0.5s;
}

.card:hover .text {
    color: #fff;
}

svg {
    position: relative;
    width: 150px;
    height: 150px;
    z-index: 1000;
}

svg circle {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: #191919;
    stroke-width: 10;
    stroke-linecap: round;
    transform: translate(5px, 5px);
}

svg circle:nth-child(2) {
    stroke-dasharray: 440;
    stroke-dashoffset: 440;
}

.card:nth-child(1) svg circle:nth-child(2) {
    stroke-dashoffset: calc(440 - (440 * 80) / 100);
    stroke: #00ff43;
}

.card:nth-child(2) svg circle:nth-child(2) {
    stroke-dashoffset: calc(440 - (440 * 70) / 100);
    stroke: #00a1ff;
}

.card:nth-child(3) svg circle:nth-child(2) {
    stroke-dashoffset: calc(440 - (440 * 60) / 100);
    stroke: #ff04f7;
}

.card:nth-child(4) svg circle:nth-child(2) {
    stroke-dashoffset: calc(440 - (440 * 65) / 100);
    stroke: #00ff43;
}

.card:nth-child(5) svg circle:nth-child(2) {
    stroke-dashoffset: calc(440 - (440 * 70) / 100);
    stroke: #00a1ff;
}

.card:nth-child(6) svg circle:nth-child(2) {
    stroke-dashoffset: calc(440 - (440 * 80) / 100);
    stroke: #ff04f7;
}

/* resume */
.my-resume-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 80%;
    margin: 20px auto;
}

.my-resume-container>* {
    flex: 1;
}

.my-left-conteriner {
    padding-right: 20px;
    border-right: 4px solid navy;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.my-right-conteriner {
    padding-left: 20px;
}

.text-box {
    padding: 20px 30px;
    background: #fff;
    position: relative;
    border-radius: 6px;
    font-size: 15px;
}

.text-box h2 {
    font-weight: 600;
    color: navy;
}

.text-box small {
    display: inline-block;
    margin: 15px 5px 10px 0;
    padding: 6px;
    background: rgba(128, 128, 128, 0.06);
}

.text-box p {
    margin: 10px 0;
}

/* responsive */
@media screen and (max-width: 600px) {
    .my-resume-container {
        flex-direction: column;
        margin: 0;
        width: 100%;
    }

    .my-left-conteriner {
        width: 100%;
        border-right: none;
        align-items: flex-start;
        padding: 0;
    }

    .my-right-conteriner {
        width: 100%;
        padding: 0;
    }

    .text-box {
        padding: 10px 20px;
    }

    .text-box small {
        margin-bottom: 10px;
    }
}

/* portfolio */
#projects {
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.9);
    text-align: center;
    max-width: 1400px;
    margin: 20px auto;

}

.project-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

#projects h2 {
    color: white;
}

.project {
    margin-bottom: 40px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.9);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
    max-width: 350px;
}

.project-image {
    width: 100%;
    max-width: 350px;
    height: 200px;
}

.project-info {
    padding: 10px;
    text-align: left;
}

.project-info p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    text-align: justify;
}

.project-buttons {
    margin-top: 20px;
    display: flex;
}

.btn {
    padding: 10px 20px;
    margin-right: 10px;
    text-decoration: none;
    color: white;
    border-radius: 5px;
    transition: background-color 0.3s;
    font-size: 14px;
}

.btn-demo {
    background-color: #007bff;
}

.btn:hover {
    opacity: 0.8;
}

/* contact */
.contact-content {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    text-align: center;
    margin-bottom: 20px;
}

.contact-box {
    width: 300px;
    padding: 20px 30px;
    border-radius: 10px;
    background-color: navy;
    color: white;
}

.contact-content i {
    padding: 15px;
    font-size: 40px;
}

.contact-content i:hover {
    transform: translateY(-10px);
}

.contact-content a {
    color: white;
}

.contact-content .title {
    margin-bottom: 8px;
    font-weight: bold;
}

/* responsive contact */
@media screen and (max-width: 700px) {
    .contact-content {
        flex-direction: column;
        gap: 10px;
    }
}

/* footer */
.footer-container {
    background-color: #BAD7E9;
    color: #45505b;
    font-size: 14px;
    text-align: center;
    padding: 30px 0;
}

.footer-container h3 {
    font-size: 26px;
    font-weight: 700;
    position: relative;
    padding: 0;
    margin: 0 0 15px 0;
    font-family: "Raleway", sans-serif;
}

.footer-container p {
    font-size: 15;
    font-style: italic;
    padding: 0;
    margin: 0 0 40px 0;
}

.copyright {
    margin: 0 0 5px 0;
}

@media screen and (max-width: 700px) {
    .footer-container h3 {
        margin: 0;
    }

    .copyright {
        margin-bottom: 40px;
    }
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    overflow: hidden;
    text-align: center;
    background: #fff;
}

#preloader:before {
    content: "GMD";
    font-size: 47px;
    font-weight: 700;
    color: #0563bb;
    padding: 10px;
    position: fixed;
    top: calc(50% - 30px);
    left: calc(50% - 30px);
    border: 6px solid #0563bb;
    border-top-color: #fff;
    border-bottom-color: #fff;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    -webkit-animation: animate-preloader 1.5s linear infinite;
    animation: animate-preloader 1.5s linear infinite;
}

@-webkit-keyframes animate-preloader {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes animate-preloader {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}