* {
    margin: 0;
    padding: 0;
    font-family: 'poppins', sans-serif;
    user-select: none;
    box-sizing: border-box;
}

:root {
    --primary-color: #000007;
    --secondary-color: #fff;
    --info-color: #333;
    --input: #262626;
    --pink: #ff004f;
    --icon: #ababab;
    --abdullah: #000007;
    --color-headings: #0077FF;
}

.dark-theme {
    --primary-color: #fff;
    --secondary-color: #000007;
    --info-color: #1c2331 ;
    --input: #808080;
    --pink: #005f60;
    --icon: #808080;
    --abdullah: #1c2331;
    --color-headings: #3694FF;
}

body {
    width: 100vw;
    background: var(--primary-color) !important;
    color: var(--secondary-color);
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

input[type=checkbox] {
    height: 0;
    width: 0;
    visibility: hidden;
}

label {
    cursor: pointer;
    text-indent: -9999px;
    width: 52px;
    height: 27px;
    background: grey;
    float: right;
    border-radius: 100px;
    position: relative;
}

label:after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 90px;
    transition: 0.3s;
}

input:checked+label {
    background: var(--color-headings);
}

input:checked+label:after {
    left: calc(100% - 5px);
    transform: translateX(-100%);
}

label:active:after {
    width: 45px;
}

html.transition,
html.transition *,
html.transition *:before,
html.transition *:after {
    transition: all 750ms !important;
    transition-delay: 0 !important;
}

/* header */

/* The styling for the original header background */
#header {
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7) url(image/background.avif);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-blend-mode: darken;
    background-attachment: fixed;
  }
  
  /* The styling for the new header background */
  #header.new-background {
    background: rgba(0, 0, 0, 0.7)url(image/background1.jpg);
    background-size: 100% 100%;
    background-attachment: fixed;
  }

.container {
    padding: 10px 5%;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: -110px;
    height: 10vh;
}

nav .logo {
    width: 250px;
    cursor: pointer;
}

nav ul li {
    display: inline-block;
    list-style-type: none;
    margin: 10px 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    cursor: pointer;
    position: relative;
}

nav ul li a::after {
    content: '';
    width: 0;
    height: 3px;
    background: #ff0015;
    position: absolute;
    left: 0;
    bottom: -6px;
    border-radius: 50rem;
    transition: .5s;
}

nav ul li a:hover::after {
    width: 100%;
}

.header-text {
    margin-top: 35%;
    margin-left: 5%;
    font-size: 35px;
    color: #abababab;
}

.header-text h1 {
    font-size: 50px;
    margin-top: 20px;
    color: #ffff;
}

.header-text h1 span {
    color: #2f0bfc;
}

/*About Me*/

#about {
    padding: 80px 0;
    color: var(--secondary-color);
}

#about .row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.about-col-1 {
    flex-basis: 35%;
}

.about-col-1 img {
    width: 100%;
    border-radius: 15px;
    height: 450px;
    object-fit: cover;
    box-shadow: 1px -1px 9px 3px var(--secondary-color);
    -webkit-box-shadow: 1px -1px 9px 3px var(--secondary-color);
    -moz-box-shadow: 1px -1px 9px 3px var(--secondary-color);
    margin-top: 50px;
    background-color: var(--abdullah);
}

.about-col-2 {
    flex-basis: 60%;
}

.about-col-2 h1 {
    font-size: 40px;
    font-weight: 600;
}

.about-col-2 p {
    text-align: justify;
    line-height: 1.5;
    font-size: 15px;
}

#about .tab {
    height: 250px;
}

.tab-titles {
    display: flex !important;
    margin: 20px 0 40px !important;
    transition: ease-in 1s fade;
}

.tab-titles p a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: ease-in 1s fade;
}

.tab-links,
.tab-links:focus {
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    margin-right: 30px;
    padding: 0px 15px;
    transition: ease-in 1s fade;
}

.tab-links::after {
    content: '' !important;
    width: 0 !important;
    height: 3px !important;
    background: #ff0015 !important;
    position: absolute !important;
    left: 0 !important;
    bottom: -8px !important;
    border-radius: 50rem !important;
    transition: .5s all !important;
}

.tab-links.active-link::after {
    width: 50% !important;
    margin-left: 25%;
}

.tab-content ul li {
    list-style-type: none;
    margin: 5px 0;
}

.tab-content ul li span {
    color: #f8075796;
    font-weight: bold;
    font-size: 14px;
}

.tab-content {
    display: none;
}


.tab-content.active-tab {
    display: block;
}


/* --------------services------------- */

#services {
    padding: 30px 0;
}

#services .services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 30px;
    margin-top: 50px;
    color: var(--secondary-color);
}



.sub-title {
    font-size: 40px;
    font-weight: 600;
    color: var(--secondary-color);
}

.services-list .list {
    background: var(--info-color);
    padding: 40px;
    font-size: 13px;
    font-weight: 300;
    border-radius: 10px;
    transition: background 0.8s, transform 0.5s !important;
}

.services-list .list i {
    font-size: 50px;
    margin-bottom: 30px;
    color: #fff;
}

.services-list .list h2 {
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 15px;
    color: #fff;
}

.services-list .list p {
    color: #fff;
}

.services-list .list2 h2 {
    font-size: 28px;
}

.services-list .list .learn-more-btn {
    text-decoration: none;
    color: var(--primary-color);
    font-size: 12px;
    margin-top: 20px;
    display: inline-block;
}

.services-list .list:hover {
    cursor: default;
    background: var(--pink);
    transform: translateY(-10px);
}

.learn-more-btn {
    cursor: pointer;
    color: #abababab !important;
}

#more1 {
    display: none;
}

#more2 {
    display: none;
}

#more3 {
    display: none;
}

/* --------------portfolio------------------ */

#portfolio {
    padding: 50px 0;
}

.work-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 30px;
    overflow: hidden;
    margin-top: 50px;
}

.work-list .work img {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
    transition: transform .5s;
}

.work {
    position: relative;
    width: 100%;
    display: none;
    overflow: hidden;
}

.work .layer {
    width: 100%;
    height: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)10%, var(--pink));
    position: absolute;
    left: 0;
    bottom: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    text-align: center;
    font-size: 14px;
    color: #fff;
    transition: height 0.5s;
}

.layer h3 {
    font-weight: 500;
    margin-bottom: 20px;
}

.layer a {
    margin-top: 20px;
    color: var(--pink);
    text-decoration: none;
    font-size: 15px;
    line-height: 40px;
    background: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-align: center;
}

.work:hover img {
    transform: scale(1.1);
}

.work:hover .layer {
    height: 100%;
}

.load-more {
    display: block;
    margin: 50px auto;
    width: fit-content;
    border: 1px solid var(--pink);
    padding: 14px 50px;
    border-radius: 6px;
    text-decoration: none;
    color: var(--secondary-color);
    justify-content: center;
    transition: .5s;
}

.load-more:hover {
    background: var(--pink);
    color: #fff;
}

/* --------------contact------------------ */
#contact {
    color: var(--secondary-color);
    position: relative;
}

.contect-left {
    width: 35%;
    float: left;
}

.contect-right {
    width: 60%;
    float: left;
}

.contect-left p {
    margin-top: 30px;
}

.contect-left p i {
    color: var(--pink);
    margin-right: 15px;
    font-size: 25px;
}

.social-icon {
    margin-top: 30px;
}

.social-icon a {
    text-decoration: none;
    font-size: 30px;
    margin-right: 15px;
    color: var(--icon);
    border-radius: 50%;
    display: inline-block;
    transition: .5s;
}

.social-icon a:hover {
    color: var(--pink);
    transform: translateY(-5px);
}

.cv {
    display: inline-block;
    margin: 50px auto;
    background: var(--pink);
    width: fit-content;
    border: 3px solid var(--pink);
    padding: 14px 50px;
    border-radius: 6px;
    text-decoration: none;
    color: #fff;
    transition: .5s;
}

.contact-right form {
    width: 100%;
}

form input,
form textarea {
    width: 100%;
    border: 0;
    outline: none;
    background: var(--input);
    padding: 15px;
    margin: 15px 0;
    color: #fff;
    font-size: 18px;
    border-radius: 5px;
}

form input::placeholder,
form textarea::placeholder {
    background: transparent;
    color: #e6e6e69c;
}

form .cv.btn {
    padding: 14px 60px;
    font-size: 18px;
    margin-top: 20px;
    cursor: pointer;
}

.copyright {
    width: 100%;
    text-align: center;
    padding: 25px 0;
    background: var(--info-color);
    position: absolute;
    color: #fff;
    margin-top: 500px;
    font-weight: 500;
}

.copyright i {
    color: #ff004fc2;
}

/* ------------------------css for small screen-------------------- */
nav .fas {
    display: none;
}

@media only screen and (max-width:949px) {
    input[type="checkbox"] {
        margin-top: -15px;
        margin-right: -400px;
    }

    .header-text h1 {
        margin-top: 60%;
        font-size: 35px;
    }

    nav img {
        margin-left: -50px;
    }

    nav .fas {
        display: block;
        font-size: 25px;
        cursor: pointer;
        color: #fff;
    }

    #sidemenu {
        background: var(--pink);
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        padding-top: 50px;
        z-index: 2;
        transition: .5s;
    }

    #sidemenu.active{
        right: 0;
        transition: .5s ;
    }

    nav ul li {
        display: block;
        margin: 25px;

    }

    nav ul .fas {
        position: absolute;
        top: 25px;
        left: 20px;
        cursor: pointer;
    }

    nav .fa-bars {
        margin-right: 50px;
        margin-top: -20px;
    }

    .sub-title {
        font-size: 40px;
    }

    .about-col-1,
    .about-col-2 {
        flex-basis: 100%;
    }

    .about-col-1 {
        margin-bottom: 30px;
    }

    .about-col-1 {
        font-size: 14px;
    }

    .tab-links {
        font-size: 16px;
        margin-right: 20px;
    }

    .contect-left,
    .contact-right {
        width: 100%;
    }

    form input,
    form textarea {
        width: 168%;
    }

    .copyright {
        margin-top: 850px;
    }

    label {
        cursor: pointer;
        text-indent: -9999px;
        width: 52px;
        height: 27px;
        background: grey;
        float: right;
        border-radius: 100px;
        position: relative;
        margin-right: -250px;
        margin-top: -20px;
    }
}

#myBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    width: 10%;
    align-items: center;
    right: 30px;
    z-index: 99;
    font-size: 18px;
    margin-right: 50px;
    border: none;
    outline: none;
    background-color: var(--pink);
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 10px;
    transition: opacity 1s;
}

#myBtn:hover {
    background-color: #555;
}


#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
  }
  
  #video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }


#loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    font-size: 48px;
    font-weight: bold;
}

#loader span {
    display: inline-block;
}

#loader .a,
#loader .b {
    font-size: 60px;
    font-weight: bold;
    text-align: center;
    margin: 0 -5px;
    background: transparent;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: glowing 2s ease-in-out infinite, updown 2s ease-in-out infinite;
}

@keyframes glowing {
    0% {
      text-shadow: 0 0 5px #fff, 0 0 15px #005f60, 0 0 50px #1c2331, 0 0 25px #900C3F ;
    }
    100% {
      text-shadow: 0 0 5px #fff, 0 0 15px #005f60, 0 0 20px #1c2331, 0 0 50px #900C3F ;
    }
  }

@keyframes updown {

    0%,
    100% {
        transform: translateX(150px);
    }

    50% {
        transform: translateX(-150px);
    }
}

#loader span:nth-child(1) {
    animation-delay: 0s;
}

#loader span:nth-child(2) {
    animation-delay: 0.1s;
}

#loader span:nth-child(3) {
    animation-delay: 0.2s;
}

#loader span:nth-child(4) {
    animation-delay: 0.3s;
}

#loader span:nth-child(5) {
    animation-delay: 0.4s;
}

#loader span:nth-child(6) {
    animation-delay: 0.5s;
}

#loader span:nth-child(7) {
    animation-delay: 0.6s;
}

#loader span:nth-child(8) {
    animation-delay: 0.7s;
}

#msg {
    color: #61b752;
    margin-top: -10px;
    display: block;
}


section#skills{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    text-align: left;
    height: 50vh;
}


.wrap{
    margin-top: 50px;
    width: 70%;
}

.bar{
    color: #fff;
    letter-spacing: 1px;
    font-weight: 500;
    font-size: 16px;
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
    width: 100%;
}
.bar .thumb{
    position: relative;
    display: inline-block;
    width: 100%;
    height: 10px;
    background-color: #262626;
    border-radius: 60px;
    margin-top: 20px;
}
.bar span{
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(to left, #ff0057, #ffeb3b);
    border-radius: 50px;
    transition: all 1s;
}


.bar abbr{
    width: 50px;
    display: inline-block;
    height: 35px;
    border-radius: 50px;
    text-align: center;
    line-height: 35px;
    position: absolute;
    top: 30px;
    margin-left: -5px;
    z-index: 1;
    background: linear-gradient(to left, #ff0057, #ffe007);
    box-shadow: 0 5px 30px rgb(255 0 87 / 50%), 0 5px 30px rgb(255 255 59 / 50%);
}

.bar .java{
    width: 50%;
}
.bar .javas{
    left: 50%;
}
.bar .htmls{
    width: 80%;
}
.bar .html{
    left: 80%;
}
.bar .css{
    width: 90%;
}
.bar .cs{
    left: 90%;
}

.bar .words{
    width: 40%;
}
.bar .word{
    left :40%;
}