@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300&family=Rubik+Doodle+Shadow&family=Whisper&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Dosis:wght@500&display=swap');


* {
    padding: 0;
    margin: 0;
    text-decoration: none;
    box-sizing: border-box;
    scroll-behavior: smooth;
    scrollbar-width: none;

}



#all-elements {
    display: none;
}

/* preloader */
.center {
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #000000;

}

.ring {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
    animation: ring 2s linear;
    -webkit-animation: ring 2s linear infinite;
}

@keyframes ring {
    0% {
        transform: rotate(0deg);
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        box-shadow: 1px 5px 2px #e60000;
    }

    50% {
        transform: rotate(180deg);
        -webkit-transform: rotate(180deg);
        -moz-transform: rotate(180deg);
        -ms-transform: rotate(180deg);
        -o-transform: rotate(180deg);
        box-shadow: 1px 5px 2px #18b413;
    }

    100% {
        transform: rotate(360deg);
        -webkit-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        box-shadow: 1px 5px 2px blue;
    }
}

.ring:before {
    position: absolute;
    content: '';
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
}

.center span {
    color: gray;
    font-size: 15px;
    font-family: "Poppins";
    text-transform: uppercase;
    line-height: 200px;
    animation: text 3s ease-in-out infinite;
    -webkit-animation: text 3s ease-in-out infinite;
}

@keyframes text {
    50% {
        color: black;
    }
}

body {
    font-family: 'Arial', 'Times New Roman', Times, serif;
    background-color: black;
}

/***********************************************************
                            navigation bar
**************************************************************/
nav {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    height: 70px;
    color: white;
    width: 90%;
    max-width: 1200px;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: all 0.3s ease;
}

nav:hover {
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(255, 0, 0, 0.15);
}

label.logo {
    color: white;
    font-size: 28px;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    order: 1;
}

.logo span {
    background-clip: text;
    color: transparent;
    background-image: linear-gradient(to right, red, white);
    -webkit-background-clip: text;
    -moz-background-clip: text;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    padding: 8px 0;
    position: relative;
    transition: 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
    color: white;
}

/* underline (red) effect nav bar */
nav ul li a::after {
    content: "";
    height: 2px;
    width: 0%;
    background: red;
    display: block;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

/* nav bar responsive */
.checkbtn {
    font-size: 24px;
    color: white;
    cursor: pointer;
    display: none;
    order: 2;
}

#check {
    display: none;
}

/* end navigation bar */
/***********************************************************
                header section
**************************************************************/
.container2 {
    color: white;
    padding: 0 7%;
    margin-top: 10%;
}

#header {
    align-items: center;
    grid-gap: 1rem;
    min-height: 69vh;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 5px;
}

.first-col {
    display: grid;
    flex-basis: 1%;
}

.second-col {
    flex-basis: 45%;
}

.third-col {
    flex-basis: 50%;
}


.icon-in-hero .social-media {
    text-align: left !important;
    justify-content: left;
    display: grid !important;
    padding: 0;

}

.icon-in-hero .social-media li {
    justify-content: center;
    margin-bottom: 8px;
}

.container2 .header p {
    font-size: 30px;
    transition: font-size 0.5s ease;
}

.container2 .header h1 {
    font-size: 35px;
    transition: font-size 0.5s ease;

}

.container2 .header h1 span {
    color: red;
}

/* downlod cv */
div.cv {
    margin-top: 20px;
    background: linear-gradient(red, black);
    width: fit-content;
    border: 1px solid rgb(124, 54, 54);
    padding: 14px 20px;
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 0 30px 0 rgb(187, 35, 30);
}

div.cv p {
    font-size: 20px !important;
    font-weight: 900;
}

div.cv p a {
    color: white;
}

div.cv:hover {
    background: linear-gradient(black, red);
}

/*end downlod cv */
#header .home-img {
    width: 410px;
    height: 410px;
    opacity: 0;
    animation: zoomin 1s ease forwards, loopRoll 4s ease-in-out infinite;
    -webkit-animation: zoomin 1s ease forwards, loopRoll 4s ease-in-out infinite;
    animation-delay: 0.5s, 2s;
}

@keyframes zoomin {
    0% {
        opacity: 0;
        transform: scale(0);
        -webkit-transform: scale(0);
        -moz-transform: scale(0);
        -ms-transform: scale(0);
        -o-transform: scale(0);
    }

    100% {
        opacity: 1;
        transform: scale(1);
        -webkit-transform: scale(1);
        -moz-transform: scale(1);
        -ms-transform: scale(1);
        -o-transform: scale(1);
    }
}

@keyframes loopRoll {
    0% {
        transform: translateY(0);
        -webkit-transform: translateY(0);
        -moz-transform: translateY(0);
        -ms-transform: translateY(0);
        -o-transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
        -webkit-transform: translateY(-10px);
        -moz-transform: translateY(-10px);
        -ms-transform: translateY(-10px);
        -o-transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
        -webkit-transform: translateY(0);
        -moz-transform: translateY(0);
        -ms-transform: translateY(0);
        -o-transform: translateY(0);
    }
}

#header .home-img .glowing-circle {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#header .home-img .glowing-circle::after {
    content: '';
    position: absolute;
    width: 380px;
    height: 380px;
    background: rgb(0, 0, 0);
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
}

.glowing-circle .image {
    position: relative;
    width: 380px;
    height: 380px;
    z-index: 1;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
    overflow: hidden;

}

#header .home-img .glowing-circle .image img {
    max-width: 350px;
    object-fit: cover;
    background: rgb(0, 0, 0);
    margin-top: -11px;
    margin-left: 20px;
}

#header .home-img .glowing-circle span {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(red, rgba(75, 73, 73, 0.37));
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
}

#header .home-img .glowing-circle span:nth-child(1) {
    filter: blur(20px);
    -webkit-filter: blur(20px);
}

/* end header section */


/********************************************************************************
                                    about
*********************************************************************************/
#about {
    padding: 80px 0;
    color: gray;
    min-height: 100vh;

}

#about h1 {
    font-size: 30px;
    text-align: center;
    margin-bottom: 20px;
    color: #fff;

}

.title-color {
    background-clip: text;
    color: transparent;
    background-image: linear-gradient(to right, red, white);
    -webkit-background-clip: text;
    -moz-background-clip: text;
    -ms-background-clip: text;
}

.row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.about-col1 {
    flex-basis: 35%;
    /*column wdith*/
}

.about-col1 img {
    width: 100%;
    border-radius: 5%;
    -webkit-border-radius: 5%;
    -moz-border-radius: 5%;
    -ms-border-radius: 5%;
    -o-border-radius: 5%;
}

.about-col2 {
    flex-basis: 60%;
    /*column wdith*/
    font-family: Poppins;
}

.about-col2 p {
    margin-bottom: 10px;
    color: #fff;
}

.row2 {
    color: #fff;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.col2-subcol {
    flex-basis: 55%;
}

.col2-subco2 {
    flex-basis: 35%;
}

.col2-subco2 ul li a {
    color: white;
}

.col2-subcol h3,
.col2-subco2 h3 {
    margin-bottom: 10px;
}

.col2-subcol .ousl {
    font-size: 14px;
    font-style: italic;
    color: grey;
}

.col2-subcol .text {
    display: flex;
    font-size: 14px;
}

.about-col2 .workingxp {
    margin: 10px 0;
}

/* *******************************************************************************
                                    Skills section
***********************************************************************************/

.skills-container {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    padding: 60px 40px;
    margin-bottom: 10%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    width: 100%;
}

.skill-h2 {
    text-align: center;
    width: 100%;
    margin: 60px 0 20px;
}

.skill-h2 h1 {
    font-size: 30px;
    color: #fff;
}

.skill-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transition: 0.5s;
}

.skill-card:hover::before {
    left: 100%;
}

.skill-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(194, 188, 188, 0.3);
    box-shadow: 0 15px 30px rgba(255, 0, 0, 0.1);
}

.skill-card img {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
    transition: transform 0.3s ease;
}

.skill-card:hover img {
    transform: scale(1.1);
}

.skill-card p {
    color: #fff;
    margin: 10px 0 5px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.skill-level {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* *******************************************************************************
                                    Skills section end
***********************************************************************************/



/********************************************************************************
                                projects section
**********************************************************************************/
#projects {
    margin-top: 60px;
    background-color: rgb(28, 27, 27);
    border-radius: 20px 10px;
    box-shadow: 0 1px 20px 10px rgba(99, 98, 98, 0.3);
}

.projects {
    background-color: black;
    padding: 32px 20px;
    margin-top: 20px;

}

#projects .projects-title {
    font-size: 30px;
    text-align: center;
    margin-bottom: 10px;
}

#projects .project-pic {
    object-fit: cover;
    margin-bottom: 10px;
    width: 95%;
    height: 60%;
    border: 1px solid rgb(29, 28, 28);
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
    box-shadow: 0 0 10px 0 rgba(199, 194, 194, 0.5);
}

#projects .projects-container {
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    /*add new section in correct align*/
    display: flex;
}

.project-box .projects-links {
    margin-top: 10px;
}

#projects .animation-box .project-box {
    position: relative;
    text-align: center;
    width: 21.875rem;
    background-color: black;
    border-radius: 11px;
    margin: 25px;
    padding: 5px 0;
    margin-bottom: 25px;
    z-index: 2;
}

#projects .project-box p {
    padding: 5px;
    padding-bottom: 10px;
    width: 300px;

}

#projects .project-box a {
    color: #fff;
    opacity: 0.5;
    transition: 0.5s;
    -webkit-transition: 0.5s;
    -moz-transition: 0.5s;
    -ms-transition: 0.5s;
    -o-transition: 0.5s;
}

#projects .project-box a:hover {
    opacity: 1;
}

#projects .animation-box:hover {
    box-shadow: 0 0 15px 0 rgb(124, 54, 54);
    transition: 0.5s;
    -webkit-transition: 0.5s;
    -moz-transition: 0.5s;
    -ms-transition: 0.5s;
    -o-transition: 0.5s;
}

/* animation */
.animation-box {
    position: relative;
    width: 21.875rem;
    display: flex;
    padding: 20px;
    margin: 25px;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    overflow: hidden;
    border-radius: 20px;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    -ms-border-radius: 20px;
    -o-border-radius: 20px;
}

.animation-box::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 140%;
    background: linear-gradient(rgb(235, 39, 39), rgb(7, 7, 7), #663030);
    animation: animate;
    -webkit-animation: animate 10s infinite;
}

.animation-box::after {
    content: '';
    border-radius: 11px;
    position: absolute;
    background: #000;
    inset: 4px;

}

@keyframes animate {
    0% {
        transform: rotate(0deg);
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        -o-transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
        -webkit-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);
    }
}

/* end of projects section */
/*****************************************************************************************************
                                            contact me section
******************************************************************************************************/

.contact-me {
    margin-top: 60px;
    position: relative;
    min-height: 90vh;
    padding: 0 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: rgb(28, 27, 27);
    border-radius: 20px 10px;
    box-shadow: 0 1px 20px 10px rgba(99, 98, 98, 0.3);
}

.contact-me .contact-details {
    max-width: 800px;
    text-align: center;
}

.contact-me .contact-details h2 {
    font-size: 30px;
}

.contact-me .contact-details p {
    font-weight: 300;
}

.container-contact {
    width: 100%;
    display: flex;
    margin-top: 30px;
}

.container-contact .contact-info {
    width: 50%;
    display: flex;
    flex-direction: column;
}

#emailError {
    color: red;
    font-size: 15px;
}

.container-contact .contact-info .box {
    position: relative;
    padding: 20px 0;
    display: flex;
}

.container-contact .contact-info .box .icon {
    min-width: 60px;
    height: 60px;
    color: #000;
    font-size: 22px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
}

.container-contact .contact-info .box .text {
    display: flex;
    margin-left: 20px;
    font-size: 16px;
    flex-direction: column;
    font-weight: 300;
}

.container-contact .contact-info .box .text h3 {
    font-weight: 800;
    color: #0ca118;
}

.contact-form {
    width: 40%;
    padding: 40px;
    background: #fff;
    color: #000;
    border-radius: 1%;
    -webkit-border-radius: 1%;
    -moz-border-radius: 1%;
    -ms-border-radius: 1%;
    -o-border-radius: 1%;
}

.contact-form h2 {
    font-size: 25px;

}

.contact-form .inputBox {
    position: relative;
    width: 100%;
    margin-top: 10px;
}

.contact-form .inputBox input,
.contact-form .inputBox textarea {
    width: 100%;
    padding: 5px 0;
    margin: 10px 0;
    font-size: 16px;
    border: none;
    border-bottom: 2px solid #333;
    outline: none;
    resize: none;
    /*user cannot change size*/
}

.contact-form .inputBox span {
    position: absolute;
    left: 0;
    padding: 5px 0;
    margin: 10px 0;
    pointer-events: none;
    transition: 0.5s;
    -webkit-transition: 0.5s;
    -moz-transition: 0.5s;
    -ms-transition: 0.5s;
    -o-transition: 0.5s;
    color: #666;
}

.contact-form .inputBox input:focus~span,
.contact-form .inputBox input:valid~span,
.contact-form .inputBox textarea:focus~span,
.contact-form .inputBox textarea:valid~span {
    color: #666;
    font-size: 12px;
    transform: translateY(-20px);
    -webkit-transform: translateY(-20px);
    -moz-transform: translateY(-20px);
    -ms-transform: translateY(-20px);
    -o-transform: translateY(-20px);
}

.contact-form .inputBox input[type="submit"] {
    width: 100px;
    background: #000cd4;
    color: #fff;
    border: none;
    cursor: pointer;
    padding: 10px;
    font-size: 18px;
    border-radius: 5%;
    -webkit-border-radius: 5%;
    -moz-border-radius: 5%;
    -ms-border-radius: 5%;
    -o-border-radius: 5%;
}

/* -------------------footer----------------------------------*/
footer {
    background-color: #000;
    margin-top: auto;

}

.footer {
    width: 100%;
    padding: 70px 30px 20px;
}

.social-media {

    padding: 20px 0;
    display: flex !important;
    display: block;
    text-align: center;
    align-self: center;
    justify-content: center;
    background: transparent;
}

.social-media li {

    align-items: center;
    justify-content: center;
    font-size: 10px;
    position: relative;
    display: flex;
    color: gray;
    font-size: 30px;
    height: 50px;
    width: 50px;
    background: black;
    line-height: 60px;
    border-radius: 50%;
    margin: 0 15px;
    cursor: pointer;
    transition: .5s;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
    -webkit-transition: .5s;
    -moz-transition: .5s;
    -ms-transition: .5s;
    -o-transition: .5s;
}

.social-media li i {
    text-align: center;
}

.social-media li:before {
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    height: inherit;
    width: inherit;
    border-radius: 50%;
    transform: scale(0.9);
    z-index: -1;
    transition: .5s;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
    -webkit-transform: scale(0.9);
    -moz-transform: scale(0.9);
    -ms-transform: scale(0.9);
    -o-transform: scale(0.9);
    -webkit-transition: .5s;
    -moz-transition: .5s;
    -ms-transition: .5s;
    -o-transition: .5s;
}

.social-media li a {
    text-decoration: none;
    color: inherit;
}

.social-media a:hover {
    text-decoration: none;
    color: inherit;
}

.social-media li:hover:before {
    filter: blur(3px);
    transform: scale(1.2);
    -webkit-transform: scale(1.2);
    -moz-transform: scale(1.2);
    -ms-transform: scale(1.2);
    -o-transform: scale(1.2);
    -webkit-filter: blur(3px);
}

.social-media li:nth-child(1):hover {
    color: black;
    box-shadow: 0 0 15px white;
    text-shadow: 0 0 15px white
}

.social-media li:nth-child(2):hover {
    color: #0077b5;
    box-shadow: 0 0 15px 6px #0077b5;
    text-shadow: 0 0 15px #0077b5;
}

.social-media li:nth-child(3):hover {
    color: red;
    box-shadow: 0 0 15px red;
    text-shadow: 0 0 15px red;
}

footer .footernav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    font-family: "Poppins";
}

footer .footernav ul li a {
    color: gray;
    text-decoration: none;
    margin: 20px;
    transition: 0.5s;
    -webkit-transition: 0.5s;
    -moz-transition: 0.5s;
    -ms-transition: 0.5s;
    -o-transition: 0.5s;
}

footer .footernav ul li a:hover {
    color: white;
}

footer .footer-bottom {
    color: gray;
    font-size: 12px;
    margin: 25px;
    padding-bottom: 20px;
    align-items: center;
    text-align: center;
    font-family: "Poppins";
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transition: all 1s cubic-bezier(0.5, 0, 0, 1);
    filter: blur(10px);
}

.reveal-bottom {
    transform: translateY(100px);
}

.reveal-left {
    transform: translateX(-100px);
}

.reveal-right {
    transform: translateX(100px);
}

.reveal-scale {
    transform: scale(0.8);
}

.reveal.active {
    opacity: 1;
    transform: translate(0) scale(1);
    filter: blur(0);
}

.hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.show {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll To Top Button */
#scrollToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(255, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 0, 0, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

#scrollToTop.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#scrollToTop:hover {
    background: rgba(255, 0, 0, 0.8);
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.4);
}

#scrollToTop:active {
    transform: scale(0.9);
}

@media (max-width: 768px) {
    #scrollToTop {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

/* media query */
@media (max-width: 13840.9px) and (min-width: 2000px) {
    .container {
        max-width: 1420px;
        text-align: center;
        margin: auto;
    }

    nav {
        position: fixed;
        max-width: fit-content;
    }

    #header {
        min-height: auto;
    }

    #about {
        min-height: 0;
    }

    #skills {
        min-height: 0;

    }

    .contact-me {
        min-height: 30vh;
    }

}

@media (max-width: 1233.9px) and (min-width: 1025px) {
    label.logo {
        padding-left: 10px;
        padding-right: 0;
    }

    nav ul {
        margin-right: 10%;
    }
}

@media (max-width: 1024px) {
    nav {
        width: 100%;
        top: 0;
        border-radius: 0;
    }

    nav ul {
        margin-right: 5%;
    }

    nav ul li a {
        font-size: 14px;
    }

    #projects .project-box p {
        font-size: 13px;
    }

    .container2 .header h1 {
        font-size: 190%;
    }

    .container2 .header p {
        font-size: 120%;
    }

    .contact-form {
        width: 50%;
    }
}

@media (max-width: 912px) {

    #projects .projects-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 852.9px) {

    nav {
        width: 100%;
        top: 0;
        left: 0;
        transform: none;
        background: transparent;
        border: none;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        padding: 20px 40px;
        justify-content: flex-end;
    }

    .icon-in-hero .social-media {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        margin: 20px 0 !important;
        padding: 0 !important;
    }

    .icon-in-hero .social-media li {
        margin: 0 10px !important;
    }

    label.logo {
        opacity: 0;
        visibility: hidden;
        transition: 0.4s ease;
        z-index: 1010;
        position: fixed;
        top: 20px;
        left: 25px;
    }

    #check:checked ~ label.logo {
        opacity: 1;
        visibility: visible;
    }

    nav ul {
        position: fixed;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        top: 0;
        left: 100%;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: all .6s cubic-bezier(0.85, 0, 0.15, 1);
        z-index: 1005;
    }

    nav ul li {
        margin: 20px 0;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.4s ease;
    }

    #check:checked ~ ul {
        left: 0;
    }

    #check:checked ~ ul li {
        opacity: 1;
        transform: translateY(0);
        transition-delay: 0.3s;
    }

    #check:checked ~ ul li:nth-child(2) { transition-delay: 0.4s; }
    #check:checked ~ ul li:nth-child(3) { transition-delay: 0.5s; }
    #check:checked ~ ul li:nth-child(4) { transition-delay: 0.6s; }
    #check:checked ~ ul li:nth-child(5) { transition-delay: 0.7s; }

    .checkbtn {
        display: block;
        font-size: 28px;
        z-index: 1011;
        background: rgba(255, 255, 255, 0.1);
        padding: 8px 12px;
        border-radius: 12px;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    nav ul li a.active::after {
        width: 40%;
    }

    nav ul li a:hover::after {
        width: 40%;
    }

    .container2 .header h1 {
        font-size: 140%;
    }

    .header {
        display: block;
    }

    div.cv {
        margin-left: 25%;
    }

    .second-col {
        display: grid;
        text-align: center;
        align-items: center;
        justify-content: center;
    }

    .third-col {
        display: none;
    }

    .about-col1 img {
        display: none;
    }

    .row {
        display: block;
    }

    .contact-form {
        width: 50%;
        padding: 50px;
    }

    .container-contact {
        flex-direction: column;
    }

    .container-contact .contact-info {
        margin-bottom: 40px;
    }

    .container-contact .contact-info,
    .container-contact .contact-form {
        width: 100%;
    }

    #projects {
        background-color: #000;
        box-shadow: none;
    }

    .contact-me {
        margin-top: 80px;
        background-color: #000;
        box-shadow: none;
        padding: 0 10px;
    }
}

@media (max-width: 1024px) {
    #skills .inner {
        grid-template-columns: repeat(2, 1fr);
        padding: 2rem 50px;
    }
}

@media (max-width:952.9px) and (min-width: 853.1px) {
    nav ul {
        font-size: 10%;
        margin-right: -0%;
    }
}

@media (max-width: 800px) {
    .container2 .header h1 {
        font-size: 120%;
    }

    div.cv {
        width: 60%;
    }

    div.cv p {
        font-size: 15px !important;
    }

}

@media (max-width:753.9px) {
    .skills-container {
        padding: 40px 20px;
        gap: 20px;
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    }

    .skill-card {
        padding: 20px 10px;
    }

    .skill-card img {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 540px) {
    .skills-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .skill-card {
        width: 100%;
    }

    #projects .projects-container {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
    }

    footer .footernav ul {
        flex-direction: column;
        align-items: center;
    }

    footer .footernav ul li {
        padding: 10px;
    }

    .home-img {
        display: none;
    }

    #header {
        grid-template-columns: repeat(1, 1fr);
        text-align: center;
        align-items: center;
    }

    div.cv {
        width: 50%;
        align-items: center;
        display: grid;
        align-items: center;
        justify-content: center;
        text-align: center;
        margin-left: 25%;
    }

    div.header {
        display: grid;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .contact-me {
        padding: 10px;
    }

    .contact-details p {
        font-size: 15px;
    }

    .contact-me .contact-details h2 {
        font-size: 20px;
        margin-top: 20px;
        margin-bottom: 5px;
    }

    .container-contact .contact-info {
        margin-bottom: 40px;
    }

    .contact-form h2 {
        font-size: 20px;
        text-align: center;
    }

    .contact-info .box .icon {
        min-width: 50px !important;
        height: 50px !important;
    }

    .contact-info .box .text h3 {
        font-size: 13px;
    }

    .contact-info .box .text {
        font-size: 12px !important;
    }

    .container-contact .contact-form {
        width: 100%;
        padding: 40px 25px 30px 25px;
    }

    .contact-form .inputBox span {
        font-size: 15px;
    }

    .contact-form .inputBox input,
    .contact-form .inputBox textarea {
        font-size: 15px;
    }

    .contact-form .inputBox input[type="submit"] {
        width: 100%;
    }

    .about-col2 p {
        font-size: 13px;
    }

    .row2 {
        display: block;
    }

    .col2-subcol .text {
        font-size: 13px;
    }

    .col2-subco2 li,
    .col2-subcol .ousl {
        font-size: 13px;
    }

    .col2-subco2 h3 {
        margin-top: 10px;
    }

}

@media (max-width: 430.9px) {
    .skill-card {
        width: calc(50% - 20px);
        min-width: 140px;
    }
}

@media (max-width: 375.9px) {
    #projects .project-box {
        width: 100%;
        margin: auto;
        margin-bottom: 10px;
    }

    .container2 {
        padding-left: 30px;
    }

    .skill-card {
        width: calc(50% - 15px);
    }

}

@media (max-width: 375px) {
    .skill-card {
        width: calc(50% - 15px);
        min-width: 130px;
    }
}



/*end media query  */