* {
    padding: 0;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    /* box-sizing: border-box;  */

}

html {
    scroll-behavior: smooth;
    margin-top: -5px;
    overflow-x: hidden;
    overflow: auto;
    padding: 0%;
}

body {
    background-color: black;
    color: white;
    margin-top: 14px;
}
  


#header {
    /* width: 100%; */
    min-height: 100vh;
    background-image: url(MTXX_MH20240114_112109321.jpg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

#loader {
    display: none;
    background: black url(loading.webp) no-repeat center;
    height: 100vh;
    width: 100%;
    background-size: 18rem;
    position: fixed;
    z-index: 100;
}

.container {
    margin: 10px 5%;
    padding-top: 40px;
    /* border: 3px solid red; */
}


#logo {
    font-size: 60px;
    margin-left: 12px;
}

.red {
    color: red;
}

.navbar {
    background-color: rgb(6, 6, 6);
    display:flex;
    flex: 1;
    flex-wrap: wrap;
    align-items: center;
    min-width: 100%;
    justify-content:space-between;
    position: fixed;
    margin: -9.5px 0px;
    /* padding: 5px -7px; */
    z-index: 2222;
    opacity: 0.92;
}

nav ul li {
    display: inline-block;
    list-style: none;
    margin: 10px 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;

}

nav ul li a::before{
    content: '';
    width: 0%;
    height: 3px;
    background-color: red;
    position: absolute;
    left: 0;
    bottom: -5px;
    transition: 0.5s;
}
nav ul li a:hover::before{
    color: red;
    width: 100%;
}

.header-text {
    position: absolute;
    top: 34%;
    /* margin-top: 35% */

}

.header-text h1 {
    /* margin-top: 10px; */
    font-size: 300%;
}

.btn2 {
    margin: 5px 0%;
    display: block;
    border: 1px solid #ff004F;
    width: fit-content;
    text-decoration: none;
    padding: 5px 20px;
    border-radius: 5px;
    color: white;
    background-color: #ff004f;
    font-size: 1.3rem;
    transition: background 0.5s;
}

/* --------------------------------------------------About---------------------------------------------- */
/* #about {
    border: 2px solid white; 
} */

.heading {
    font-size: 50px;
    margin-bottom: 1.5%;
    color: white;
}

#row {
    display: flex;
    justify-content: center;
    margin: 3.5% 0px;
}

#col1 {
    width: 30%;
}

#col1 img {
    width: 100%;
}

#col2 {
    width: 65%;
    margin-left: 5%;
    /* border: 2px solid red; */

}

#col2 h1 {
    margin: 18px 0px;
}

#col2 p {
    font-weight: 50;
    color: #ababab;
}

/* --------adding underline animation to TABS-------- */
#tab {
    position: relative;
    margin-top: 22px;
    /* border: 2px solid white; */
}

#tab ul li {
    display: inline-block;
    list-style: none;
    margin-top: 20px;
    margin-bottom: 20px;
    margin-left: 15%;
    cursor: pointer;
}

ul li {
    color: white;
    text-decoration: none;
    font-size: 18px;
    position: relative;
}

.link {
    font-size: 1.45rem;
}

.link::after {
    content: '';
    /* width: 100%; */
    height: 3px;
    background-color: #e40952;
    position: absolute;
    animation: tablink 2s 0.5ms forwards;
    left: 0;
    bottom: -5px;
}

.link::after {
    content: "";
}

@keyframes tablink {
    from {
        width: 0%;
    }

    to {
        width: 100%;
    }
}

/* -----------style for skills info----------- */
#skills {

    /* position: absolute; */
    /* height:40vh ; */
    width: 100%;
    /* border: 2px solid yellow; */
    display: flex;

}


/* --------horizontal skill bar-------------- */
#left {
    /* border: 2px solid violet; */
    width: 50%;
}

.skill-name {
    font-size: 18px;
    font-weight: 700;
    margin: 4% 0;
}

.skill-bar {
    height: 14px;
    background-color: #282828;
    border-radius: 4px;
}

.skill-per {
    height: 14px;
    background-image: linear-gradient(to right, #e91e63, #673ab7);
    position: relative;
    border-radius: 4px;
    animation: fill 2.5s 0.3ms;
}

.skill-per::before {
    content: attr(per);
    position: absolute;
    font-size: 14px;
    color: black;
    background-color: aliceblue;
    border-radius: 2px;
    padding: 1px 3px;
    right: -5px;
    top: -21px;
    /* transform: translateX(50%); */
}

.skill-per::after {
    content: "";
    /* position: absolute; */
    /* transform: translateX(50%) rotate(45deg); */
}

.fa-brands {
    color: #673ab7;
    font-size: 25px;
}

@keyframes fill {
    from {
        width: 0%;
    }

    to {
        width: 100%;
    }
}

/* ------------circular skill bars------------ */
#right {
    /* border: 5px solid rgb(185, 112, 112); */
    width: 50%;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

#circular {
    margin: 5%;
    height: max-content;
    /* border: 1px solid red;    */
}

#circular h4 {
    margin: 10px;
    align-self: center;
}

.outer {
    height: 120px;
    width: 120px;
    border-radius: 50%;
    position: relative;
    /* border: 1px solid red;   */
    display: flex;
    align-items: center;
    justify-content: center;
    /* margin: 3%; */
    -webkit-box-shadow: 2px -2px 3px 0px rgba(224, 126, 126, 1);
    -moz-box-shadow: 2px -2px 3px 0px rgba(224, 126, 126, 1);
    box-shadow: 2px -2px 3px 0px rgba(224, 126, 126, 1);
}

.inner {
    height: 90px;
    width: 90px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    /* border: 10px solid red;  */
    -webkit-box-shadow: inset 4px -4px 4px 0px rgba(224, 126, 126, 1);
    -moz-box-shadow: inset 4px -4px 4px 0px rgba(224, 126, 126, 1);
    box-shadow: inset 4px -4px 4px 0px rgba(224, 126, 126, 1);
}

.number {
    color: aliceblue;
    font-size: 1.1rem;
}

#circular h4 {
    margin: auto;
    margin-bottom: 4%;
}

circle {
    fill: none;
    stroke: url(#gc);
    stroke-width: 15px;
    stroke-dasharray: 330;
    stroke-dashoffset: 330;
    animation: c1anm 2s 0.5ms forwards;
}

svg {
    position: absolute;
}

@keyframes c1anm {
    100% {
        stroke-dashoffset: 132;
    }
}


/* ------------------styling for education info---------------------------- */
#education {
    display: none;
    /* border: 2px solid white; */
    padding: 20px;
}


/* ----------------------styling for experience info----------------- */
#experience {
    display: none;
    /* border: 2px solid white; */
    padding: 20px;
}

/* ---------------------------------------SERVICES---------------------------------------------------------- */
#services {
    padding: 3% 0px;
    /* border: 2px solid red; */
    /* height: 85vh; */
}

.service-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 5%;
}

.service-list div {
    background-color: #262626;
    border-radius: 10px;
    padding: 20px;
    font-size: 14.5px;
    transition: background 0.5s, trnsform 0.5s;
}

.service-list div h2 {
    margin-bottom: 4%;
    font-size: 30px;
}

.service-list div a {
    margin-top: 4%;
    display: inline-block;
    color: white;
    text-decoration: none;
    font-size: 18px;
}

.service-list div:hover {
    background: #ff004f;
    transform: translateY(-14px);
}

.service-list div i {
    color: white;
    font-size: xx-large;
    margin-bottom: 4%;

}

.service-list p {
    color: #ababab;
}

/* ----------------------------------my projects--------------------------------------------------------*/
#projects {
    padding: 2% 0;
    /* border: 2px solid white; */
}

.project-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 5%;
    /* border: 3px solid green; */
}

.project-list div {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    /* border: 3px solid red; */
}

.project-list div img {
    /* border: 2px solid white; */
    /* display: block; */
    width: 100%;
    height: 100%;
    border-radius: 10px;
    transition: transform 0.5s;
}

.project-list div.layer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0px 0px;
    border-radius: 10px;
    position: absolute;
    bottom: 0px;
    left: 0px;
    color: white;
    background: linear-gradient(rgba(0, 0, 0, 0.6), #ff004F);
    height: 0%;
    width: 100%;
    overflow: hidden;
    transition: height 0.5s;
    text-wrap: balance;
}

.layer h3 {
    margin-bottom: 20px;
}

.layer a {
    margin-top: 20px;
    background-color: white;
    height: 50px;
    width: 50px;
    border-radius: 50%;
    line-height: 50px;
    font-size: 1.5rem;

}

.project-list div:hover img {
    transform: scale(1.15);
}

.project-list div:hover div.layer {
    height: 100%;
}

.btn {
    display: block;
    border: 1px solid #ff004F;
    width: fit-content;
    text-decoration: none;
    margin: 2.5% auto;
    padding: 5px 20px;
    border-radius: 5px;
    color: white;
    font-size: 1.3rem;
    position: relative;
}

/* .spn{
    position: absolute;
    left: 0%;
    bottom: 0%;
    height: 100%;
    width: 0%;
    background-color: #ff004F;
    z-index: -1;
    transition: 0.5s;
}
.btn:hover .spn{
    width: 100%;
}  */
.btn::before {
    content: "";
    height: 100%;
    width: 0%;
    position: absolute;
    left: 0;
    top: 0px;
    color: white;
    background-color: #ff004F;
    transition: width 0.5s;
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

/* ----------------------------------------------contact------------------------------------------------------------------------ */
#contact {
    /* border: 4px solid red  ; */
    padding: 2% 0;
}

.c-row {
    /* border: 2px solid green; */
    display: flex;
    justify-content: space-between;

}

.contact-left p {

    margin: 15px 5px;
}

.contact-left p i {
    color: #ff004F;
    margin-right: 15px;
    font-size: 24px;
}

.social-icons {
    margin: 28px 0px;
}

.social-icons a {
    text-decoration: none;
    margin-right: 15px;
}

.social-icons a i {
    color: white;
}

.social-icons a i:hover {
    color: #ff004f;
    transform: translateY(-5px);
}

.contact-right form input,
textarea {
    width: 90%;
    outline: none;
    background-color: #262626;
    color: white;
    font-size: 1rem;
    margin-bottom: 1.9%;
    padding: 10px;
    border: 0;
    border-radius: 5px;
}

#map {
    margin: 30px auto;
    width: 97%;
}

.cp {
    /* border: 2px solid red; */
    background-color: #262626;
    padding: 1%;
    text-align: center;
    margin-bottom: -2%;
    /* margin-top: 0%; */
    /* position: relative; */
    /* bottom: -21px; */
}

.contact-right {
    /* border: 2px solid yellow; */
    width: 60%;
    overflow: hidden;
}

#header nav i {
    display: none;
}



/* ---------------------------------media queries---------------------------------------------------------- */
@media only screen and (max-width:600px) {
    #header {
        /* width: calc(100% + 28%); */
        /* height: calc(100vh + 15vh); */
        background-image: url(WhatsApp\ Image\ 2024-01-14\ at\ 7.43.01\ PM.jpeg);
        background-size: cover;
        background-position: center;
        background-attachment: fixed;
    }

    #logo {
        font-size: 40px;
    }

    .header-text {
        font-size: 16px;
        margin-top: -25%;
    }

    .header-text h1 {
        margin-top: 15px;
        font-size: 26px;
    }

    .btn2 {
        margin: 10px 0px;
        padding: 5px 5px;
        font-size: 15px;
        transition: background 0.5s;
    }

    #menu {
        z-index: 100;
        padding-top: 33px;
    }

    #header nav i {
        display: block;
        font-size: 25px;
        margin-right: 12px;
    }

    #header nav ul {
        background-color: #ff004F;
        position: fixed;
        right: -200px;
        top: 0px;
        width: 200px;
        height: 100vh;
        padding-top: 50px;
        transition: right 0.5s;
        z-index: 2;
    }

    #header nav ul i {
        position: absolute;
        top: 15px;
        left: 22px;
    }

    #header nav ul li {
        display: inline-block;
        margin: 28px;
        font-size: 25px;
        z-index: 1000;
    }

    nav ul li a::before {
        background-color: white;
    }

    /* ---------------------------About--------------------------------------- */
    #about {
        /* width: calc(100% + 24%); */
        margin: 5vh 0px;
    }

    .heading {
        font-size: 30px;
        margin-bottom: 25px;
    }

    #row {
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 4% 0px;
        flex-direction: column;
        /* width: 50vh; */
    }

    #col1 {
        width: 100%;
    }

    #col1 img {
        width: 60%;
        margin: 0px auto;
        display: block;
    }

    #col2 {
        width: 100%;
    }

    #col2 p {
        font-size: 18px;
    }

    #tab ul li {
        margin: 3%;
    }

    #skills {
        flex-direction: column;
        justify-content: center;
    }

    #left {
        width: 90%;
    }

    #right {
        width: 100%;
    }

    /* ------------------------my services------------------------------------- */
    #services {
        /* border: 2px solid white; */
        /* width: calc(100% + 16%); */
        margin: 6vh 0px;
        padding: 15px;
    }

    .service-list div h2 {
        margin-bottom: 4%;
        font-size: 20px;
    }

    /* -----------------------my projects---------------------------- */
    #projects {
        /* width: calc(100% + 16%); */
        margin: 6vh 0px;
        padding: 15px;
    }

    .btn {
        margin-top: 6vh;
    }

    .layer a {
        margin-top: 11px;
    }

    .layer h3 {
        margin-bottom: 12px;
    }

    /* ---------------------------contact me------------------------------ */
    #contact {
        /* width: calc(100% + 16%); */
        padding: 20px;
        position: relative;
    }

    .c-row {
        flex-direction: column;
    }

    .contact-right {
        width: 100%;
    }

    .cp {
        position: absolute;
        left: 0px;
        bottom: 0px;
        width: calc(100%);

    }

}