@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200;0,300;0,400;1,200;1,300;1,400&display=swap');
:root {
    --yellow: #f9ca24;
}

* {
    font-family: 'Nunito', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    outline: none;
    border: none;
    text-transform: capitalize;
    transition: all .2s linear;
}

*::selection {
    background: var(--yellow);
    color: #333;
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

html::-webkit-scrollbar {
    width: 1.4rem;
}

html::-webkit-scrollbar-track {
    background: #222;
}

html::-webkit-scrollbar-thumb {
    background: var(--yellow);
}

body {
    /* background: #111; */
    background: black;
    overflow-x: hidden;
    padding-left: 35rem;
}

section {
    min-height: 100vh;
    padding: 1rem;
}

.btn {
    display: block;
    padding: .7rem 3rem;
    background-color: #333;
    color: #fff;
    margin-top: 3rem;
    font-size: 2rem;
    border-radius: 5rem;
}

.btn i {
    padding: 0 .5rem;
    font-size: 1.8rem;
}

.btn:hover {
    background: var(--yellow);
}

.heading {
    text-align: center;
    margin: 0 6rem;
    font-size: 4rem;
    padding: 1rem;
    border-bottom: .1rem solid #fff4;
    color: #fff;
}

.heading span {
    color: var(--yellow);
}


/* header style start */

header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    height: 100%;
    width: 35rem;
    /* background: #1a1a1a; */
    background: var(--yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-flow: column;
    text-align: center;
    box-shadow: 0 2rem 4rem green;
    border-radius: 10px;
}

header:hover {
    margin-left: 20px;
}

header .user img {
    height: 17rem;
    width: 17rem;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: .7rem solid var(--yellow);
}

header .user .name {
    font-size: 3.5rem;
    color: #111;
}

header .user .post {
    font-size: 3rem;
    color: green;
    font-style: italic;
    font-weight: bold;
}

header .navbar {
    width: 100%;
}

header .navbar ul {
    list-style: none;
    padding: 1rem 3rem;
}

header .navbar ul a {
    display: block;
    padding: 1rem;
    margin: 1.5rem 0;
    background: #333;
    color: #fff;
    font-size: 2rem;
    border-radius: 5rem;
}

header .navbar ul a:hover {
    background: red;
    margin-left: 20px;
}


/* header style end */


/* menu is start */

#menu {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: #333;
    color: #fff;
    cursor: pointer;
    font-size: 2.5rem;
    padding: 1rem 1.5rem;
    z-index: 1000;
    border-radius: 5px;
    display: none;
    box-shadow: 0 2rem 4rem rgba(255, 255, 255, .2);
}


/* menu is end */


/* home section css start */

.Home {
    display: flex;
    justify-content: center;
    flex-flow: column;
    padding: 0 9rem;
}

.Home h3 {
    position: relative;
    margin: 20px 0 0;
    font-size: 5rem;
    font-weight: 900;
    color: #fff;
    z-index: 2;
    overflow: hidden;
}

.Home p:before {
    content: '';
    position: absolute;
    left: 120%;
    width: 100%;
    height: 15%;
    background: linear-gradient(90deg, transparent 0%, #000 5%, #000 100%);
    animation: animate 6s linear forwards;
    animation-delay: 3.5s;
}

@keyframes animate {
    0% {
        left: 100%
    }
    100% {
        left: -100%;
    }
}

video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 3;
    pointer-events: none;
    mix-blend-mode: screen;
}

.Home h1 {
    font-size: 5rem;
    color: #fff;
}

.Home h1 span {
    color: var(--yellow);
}

.Home p {
    font-size: 2rem;
    color: #eee;
    padding: 1rem 0;
    margin-bottom: 50px;
}

.about_btn button {
    border: 2px solid green;
    font-size: 20px;
    font-weight: bold;
    padding: 1rem;
    border-radius: 5rem;
    background: #000;
    color: #fff;
}

.about_btn button:hover {
    background: red;
}

.about_btn i {
    padding: 0 .5rem;
    font-size: 1.8rem;
}

.Home .share {
    position: absolute;
    left: 44%;
    bottom: 0rem;
    transform: translateX(-50%);
    display: flex;
    padding: 1rem;
    border-radius: 2rem;
    background: rgba(255, 245, 245, 0.1);
    box-shadow: 0 1rem 2rem rgb(255 255 255 / 20%);
}

.Home .share a {
    background: rgba(255, 255, 255, .1);
    box-shadow: 0 1rem 2rem rgba(8, 8, 8, 0.2);
    padding: 2rem;
    margin: .5rem;
    color: #fff;
    font-size: 3rem;
    border-radius: 50%;
    align-items: center;
}

.Home .share a:hover {
    /* background: rgba(255, 255, 255, .5);
    color: #555; */
    background: var(--yellow);
    color: #333;
}

.About .row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding: 1rem 0;
}

.About .row .info {
    flex: 1 1 48rem;
    padding: 2rem 1rem;
    padding-left: 6rem;
}

.About .row .info h3 {
    font-size: 2rem;
    color: var(--yellow);
    padding: 1rem 0;
    font-weight: normal;
}

.About .row .info h3 span {
    color: #eee;
    padding: 0 .5rem;
}

.About .row .counter {
    flex: 1 1 50rem;
    padding: 2rem 1rem;
    display: flex;
    flex-wrap: wrap;
}

.About .row .counter .box {
    width: 20rem;
    background: #222;
    text-align: center;
    padding: 2rem;
    margin: 2rem;
    border-radius: 10px;
}

.About .row .counter .box span {
    font-size: 4rem;
    color: var(--yellow);
}

.About .row .counter .box h3 {
    font-size: 2rem;
    color: #fff;
}

.Education .box-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 1rem 0;
    padding-left: 3rem;
}

.Education .box-container .box {
    width: 27rem;
    margin: 4rem 1rem;
    padding-left: 4rem;
    border-left: .2rem solid #fff;
    position: relative;
}

.Education .box-container .box span {
    font-size: 1.3rem;
    background: #222;
    color: #fff;
    border-radius: 5rem;
    padding: .5rem 2.5rem;
}

.Education .box-container .box h3 {
    font-size: 2rem;
    color: #fff;
    padding-top: 1.5rem;
}

.Education .box-container .box p {
    font-size: 1.4rem;
    color: #fff;
    padding: 1rem 0;
}

.Education .box-container .box i {
    position: absolute;
    top: -1.5rem;
    left: -2.5rem;
    height: 5rem;
    width: 5rem;
    border-radius: 50%;
    line-height: 5rem;
    text-align: center;
    font-size: 2rem;
    color: #fff;
    background: var(--yellow);
}

.Portfolio .box-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding: 2rem 0;
    box-shadow: 0 2rem 4rem #fff;
    border-radius: 20px;
}

.Portfolio .box-container .box {
    height: 20rem;
    width: 26rem;
    border-radius: 1rem;
    margin: 2rem;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 2rem 4rem green;
}

.Portfolio .box-container .box img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.Portfolio .box-container .box:hover img {
    transform: scale(1.2);
}

.Contact .row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.Contact .row .content {
    flex: 1 1 30rem;
    padding: 4rem;
    padding-bottom: 0;
}

.Contact .row form {
    flex: 1 1 45rem;
    padding: 2rem;
    margin: 2rem;
    margin-bottom: 4rem;
    box-shadow: 0 2rem 4rem #fff;
    border-radius: 20px;
}

.Contact .row form:hover {
    transform: scale(1.1);
}

.Contact .row form .box {
    padding: 1.5rem;
    margin: 1rem 0;
    background: #3333;
    color: #fff;
    text-transform: none;
    font-size: 1.7rem;
    width: 100%;
    border-radius: 20px;
}

.Contact .row form .box::placeholder {
    text-transform: capitalize;
}

.Contact .row form .message {
    height: 15rem;
    resize: none;
}

.Contact .row .content .title {
    text-transform: uppercase;
    color: #fff;
    font-size: 3rem;
    padding-bottom: 2rem;
}

.Contact .row .content h3 span {
    color: var(--yellow);
}

.Contact .row .content .info h3 {
    display: flex;
    align-items: center;
    font-size: 2rem;
    color: #eee;
    padding: 1rem 0;
    font-weight: normal;
}

.Contact .row .content .info h3 i {
    padding-right: 1rem;
    color: var(--yellow);
}

.top img {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    border: 5px solid var(--yellow);
}

.top {
    position: fixed;
    bottom: 7.5rem;
    right: 2rem;
    z-index: 100;
    display: none;
}


/* home section css end */


/* media queries */

@media (max-width:1200px) {
    html {
        font-size: 55%;
    }
    .Home {
        padding: 1rem 4rem;
    }
}

@media (max-width:991px) {
    header {
        left: -120%;
    }
    #menu {
        display: block;
    }
    header.toggle {
        left: 0;
    }
    body {
        padding: 0;
    }
}

@media (max-width:768px) {
    html {
        font-size: 50%;
    }
}

@media (max-width:400px) {
    header {
        width: 100vw;
    }
    .Home {
        width: 100%;
    }
    .About .row .counter .box {
        width: 100%;
    }
    .Education .box-container .box {
        width: 100%;
    }
    .Portfolio .box-container .box {
        width: 100%;
    }
    .Contact .row form {
        margin: 3rem 0;
    }
    .Home p:before {
        height: 30%;
    }
    .Home .about_btn button {
        display: none;
    }
}

@media (max-width:410px) {
    header {
        width: 100vw;
    }
    .Home {
        width: 100%;
    }
    .Home .btn {
        display: none;
    }
    .Home .share {
        margin-bottom: 0rem;
    }
    .Home p:before {
        height: 30%;
    }
    .about_btn button {
        margin-bottom: 80px;
    }
}

@media (max-width:380px) {
    header {
        width: 100vw;
    }
    .Home {
        width: 100%;
    }
    .Home .share {
        margin-bottom: 0rem;
    }
    .Home p:before {
        height: 30%;
    }
    .about_btn button {
        margin-bottom: 80px;
    }
}

@media (max-width:310px) {
    header {
        width: 100vw;
    }
    .Home {
        width: 100%;
    }
    .Home .about_btn button {
        margin-bottom: 80px;
        /* display: none; */
    }
    .Home .share {
        margin-bottom: -2rem;
    }
    .Home p:before {
        height: 35%;
    }
}

@media (max-width:300px) {
    header {
        width: 100vw;
    }
    .Home {
        width: 100%;
    }
    .Home .about_btn button {
        margin-bottom: 80px;
        /* display: none; */
    }
    .Home .share {
        margin-bottom: -2rem;
    }
    .Home p:before {
        height: 35%;
    }
}

@media (max-width:280px) {
    header {
        width: 100vw;
    }
    .Home {
        width: 100%;
    }
    .Home .about_btn button {
        display: none;
    }
    .Home .share {
        margin-bottom: -2rem;
    }
    .Home p:before {
        height: 40%;
    }
}