@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
    scroll-behavior: smooth;
    scroll-padding-top: 2rem;
    font-family: sans-serif;
}

:root {
    --main-color: #033a80;
    --bg-color: #fff;
    --text-color: #070510;
    --border-color: black;
    --hover: hsl(260, 100%, 51%);
    --big-font: 3.2rem;
    --medium-font: 1.8rem;
    --p-font: 0.941rem;
}

section {
    padding: 50px;
}

body.active {
    --text-color: #fff;
    --bg-color: #070510;
    --border-color: grey;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
}

*::selection {
    color: var(--bg-color);
    background: var(--main-color);
}

.title {
    position: relative;
    text-align: center;
    font-size: 50px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 500;
    padding-bottom: 30px;
    text-transform: uppercase;
}

/* navbar */
header {
    position: fixed;
    width: 100%;
    top: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-color);
    padding: 13px 10%;
    transition: 0.2s;
    box-shadow: -3px -3px 7px #ffffff73, 2px 2px 5px rgba(94, 104, 121, 0.288);
}

header.shadow {
    box-shadow: 0 0 4px rgb(14 55 54 / 15%);
}

.logo {
    width: 200px;
    cursor: pointer;
}

.navbar {
    display: flex;
}

.navbar {
    display: flex;
    list-style-type: none;
    user-select: none;
    float: right;
    margin: 10px 20px;
}

.navbar a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: bold;
}

.navbar li {
    position: relative;
    pointer-events: all;
    margin: 10px 20px;
}


.navbar a::before {
    position: absolute;
    content: "";
    width: 0;
    height: 2.5px;
    background: red;
    left: 50%;
    bottom: -10px;
    border-radius: 5px;
}

.navbar li:hover a::before {
    width: 100%;
    left: 0;
    transition: 0.2s all;
}

#menu-icon {
    font-size: 24px;
    cursor: pointer;
    z-index: 10001;
    display: none;
}

#darkmode {
    font-size: 22px;
    cursor: pointer;
}

/* home */
.home {
    display: grid;
    grid-template-columns: 2.2fr 1fr 0fr;
    align-items: center;
    position: relative;
    width: 100%;
    min-width: 100vh;
    padding: 150px 10%;
    padding-left: 15%;
    padding-bottom: 10px;
}

.home-img {
    margin-top: 80px;
    order: 3;
}

.home-img img {
    width: 70%;
    border-radius: 50%;
    box-shadow: 4px 4px 4px 4px var(--border-color);
}

.home-text span {
    color: tomato;
    font-size: 50px;
}

.home-text h1 {
    font-size: 50px;
    color: var(--text-color);
    margin-bottom: 20px;
}

.home-text p {
    color: var(--text-color);
    line-height: 22px;
}

.btncv {
    padding: 12px 30px;
    text-decoration: none;
    font-weight: bold;
    color: var(--bg-color);
    background-color: var(--text-color);
    display: inline-block;
    margin: 30px 0;
    border-radius: 5px;
    font-size: 25px;
    letter-spacing: 1.5px;
    transition: 0.6s ease;
}

.btncv:hover {
    transform: scale(1.2);
    z-index: 1;
    background-color: #555;
    border: 1px solid black;
}

/* about */
.about-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* gap: 1rem; */
    margin-top: 2rem;
    align-items: center;
    padding-left: 100px;
    padding-right: 100px;
}

/* .about-img {
    width: 90%;
    align-items: center;
    display: flex;
}

.about-img img {
    position: relative;
    height: 100%;
    right: 10%;
    bottom: 0;
}

.about-img .bgcolor {
    bottom: 10px;
    left: 25%;
    width: 60%;
}

.about-img .selfpic {
    right: 25%;
    width: 37%;
} */

.about-img {
    margin-top: 80px;
}

.about-img img {
    width: 30%;
    margin-left: 30%;
    border-radius: 25% 75% / 50%;
    box-shadow: -1px -2px 4px 2px var(--border-color);
}


.about-text p {
    font-weight: 400;
    text-align: justify;
}

.about-text {
    font-size: 17px;
}

/* skill */
.myskill {
    align-items: center;
    flex-direction: column;
    justify-content: space-around;
    display: flex;
    margin: auto;
    overflow: hidden;
    width: 90%;
    padding-bottom: 20px;
}

.skills-container {
    width: 100%;
    padding-left: 115px;
}

.HTML {
    position: relative;
    margin: 2.9rem 0;
    width: 90%;
    height: 0.5rem;
    background-color: yellow;
    border-radius: 12px;
    box-shadow: 2px -11px 9px 5px rgb(232 235 162 / 35%);
}

.html-name {
    color: rgb(245, 177, 7);
    ;
    left: 0;
    position: absolute;
    bottom: 10px;
}

.html-bar {
    color: rgb(245, 177, 7);
    right: 0;
    position: absolute;
    bottom: 10px;
}

.CSS {
    position: relative;
    margin: 2.9rem 0;
    width: 80%;
    height: 0.5rem;
    background-color: #7952b3;
    border-radius: 12px;
    box-shadow: 2px -11px 9px 5px rgb(255 193 247 / 33%)
}

.css-name {
    color: rgb(245, 177, 7);
    left: 0;
    position: absolute;
    bottom: 10px;
}

.css-bar {
    color: rgb(245, 177, 7);
    right: 0;
    position: absolute;
    bottom: 10px;
}

.JavaScript {
    position: relative;
    margin: 2.9rem 0;
    width: 70%;
    height: 0.5rem;
    background-color: #61dafb;
    border-radius: 12px;
    box-shadow: 2px -11px 9px 5px rgb(192 236 235 / 33%);
}

.js-name {
    color: rgb(245, 177, 7);
    left: 0;
    position: absolute;
    bottom: 10px;
}

.js-bar {
    color: rgb(245, 177, 7);
    right: 0;
    position: absolute;
    bottom: 10px;
}

.Reactjs {
    position: relative;
    margin: 2.9rem 0;
    width: 85%;
    height: 0.5rem;
    background-color: #e54c21;
    border-radius: 12px;
    box-shadow: 2px -11px 9px 5px rgb(243 174 174 / 33%);
}

.Rjs-name {
    color: rgb(245, 177, 7);
    left: 0;
    position: absolute;
    bottom: 10px;
}

.Rjs-bar {
    color: rgb(245, 177, 7);
    right: 0;
    position: absolute;
    bottom: 10px;
}

.Nodejs {
    position: relative;
    margin: 2.9rem 0;
    width: 75%;
    height: 0.5rem;
    background-color: #00a0e4;
    border-radius: 12px;
    box-shadow: 2px -11px 9px 5px rgb(150 143 217 / 33%);
}

.Njs-name {
    color: rgb(245, 177, 7);
    left: 0;
    position: absolute;
    bottom: 10px;
}

.Njs-bar {
    color: rgb(245, 177, 7);
    right: 0;
    position: absolute;
    bottom: 10px;
}

.Expressjs {
    position: relative;
    margin: 2.9rem 0;
    width: 71%;
    height: 0.5rem;
    background-color: #961ae8;
    border-radius: 12px;
    box-shadow: 2px -4px 9px 5px rgba(132, 62, 159, 0.33);
}

.Ejs-name {
    color: rgb(245, 177, 7);
    left: 0;
    position: absolute;
    bottom: 10px;
}

.Ejs-bar {
    color: rgb(245, 177, 7);
    right: 0;
    position: absolute;
    bottom: 10px;
}

.MongoDB {
    position: relative;
    margin: 2.9rem 0;
    width: 88%;
    height: 0.5rem;
    background-color: #08f9a1;
    border-radius: 12px;
    box-shadow: 2px -11px 9px 5px rgba(125, 228, 100, 0.33);
}

.mDB-name {
    color: rgb(245, 177, 7);
    left: 0;
    position: absolute;
    bottom: 10px;
}

.mDB-bar {
    color: rgb(245, 177, 7);
    right: 0;
    position: absolute;
    bottom: 10px;
}

.Postgresql {
    position: relative;
    margin: 2.9rem 0;
    width: 82%;
    height: 0.5rem;
    background-color: #6f1030;
    border-radius: 12px;
    box-shadow: 2px -11px 9px 5px rgba(217, 143, 171, 0.33);
}

.psql-name {
    color: rgb(245, 177, 7);
    left: 0;
    position: absolute;
    bottom: 10px;
}

.psql-bar {
    color: rgb(245, 177, 7);
    right: 0;
    position: absolute;
    bottom: 10px;
}

.Python {
    position: relative;
    margin: 2.9rem 0;
    width: 75%;
    height: 0.5rem;
    background-color: #f132bb;
    border-radius: 12px;
    box-shadow: 2px -11px 9px 5px rgb(244 197 235 / 33%)
}

.py-name {
    color: rgb(245, 177, 7);
    left: 0;
    position: absolute;
    bottom: 10px;
}

.py-bar {
    color: rgb(245, 177, 7);
    right: 0;
    position: absolute;
    bottom: 10px;
}

.Cplus2 {
    position: relative;
    margin: 2.9rem 0;
    width: 85%;
    height: 0.5rem;
    background-color: #fdb101;
    border-radius: 12px;
    box-shadow: 2px -11px 9px 5px rgb(243 212 176 / 33%);
}

.cplus2-name {
    color: rgb(245, 177, 7);
    left: 0;
    position: absolute;
    bottom: 10px;
}

.cplus2-bar {
    color: rgb(245, 177, 7);
    right: 0;
    position: absolute;
    bottom: 10px;
}

/* project */
.project-container {
    justify-content: center;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
    flex-wrap: wrap;
}

.project1 {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    display: flex;
    overflow: hidden;
    width: 20rem;
    margin: 1rem;
    background: #f1def5b3;
    border-radius: 1.5rem;
    padding: 3rem 1rem 2rem 1rem;
    text-align: center;
}

.p1-img {
    bottom: 1rem;
    height: 12rem;
    position: relative;
}

.p1-img img {
    border-radius: 1rem;
}

.p1-name {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: black;
    font-family: 'Poppins', sans-serif;
}

.p1-detail {
    line-height: 20px;
    font-size: .9rem;
    color: black;
    font-family: 'Poppins', sans-serif;
}

.p1-link {
    justify-content: space-around;
    display: flex;
    padding-top: 10px;
}

.p1-github {
    text-decoration: none;
    margin-left: 0 .5rem;
    font-size: 1rem;
    color: #7c00ff;
    cursor: pointer;
    padding: 0.75rem 1.2rem;
    border: 1px solid #d21cff;
    border-radius: 0.4rem;
    background: transparent;
    font-family: 'Poppins', sans-serif;
    margin-top: 1rem;
    margin: 0 1rem;
}

.p1-livelink {
    text-decoration: none;
    color: #ff0000;
    margin-left: 0 .5rem;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.75rem 1.2rem;
    border: 1px solid #ffac00;
    border-radius: 0.4rem;
    background: transparent;
    font-family: 'Poppins', sans-serif;
}

.project2 {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    display: flex;
    overflow: hidden;
    width: 20rem;
    margin: 1rem;
    background: #f1def5b3;
    border-radius: 1.5rem;
    padding: 3rem 1rem 2rem 1rem;
    text-align: center;
}

.p2-img {
    bottom: rem;
    height: 14rem;
    position: relative;
}

.p2-img img {
    border-radius: 1rem;
}

.p2-name {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: black;
    font-family: 'Poppins', sans-serif;
}

.p2-detail {
    line-height: 20px;
    font-size: .9rem;
    color: black;
    font-family: 'Poppins', sans-serif;
}

.p2-link {
    justify-content: space-around;
    display: flex;
    padding-top: 10px;
}

.p2-github {
    text-decoration: none;
    margin-left: 0 .5rem;
    font-size: 1rem;
    color: #7c00ff;
    cursor: pointer;
    padding: 0.75rem 1.2rem;
    border: 1px solid #d21cff;
    border-radius: 0.4rem;
    background: transparent;
    font-family: 'Poppins', sans-serif;
    margin-top: 1rem;
    margin: 0 1rem;
}

.p2-livelink {
    text-decoration: none;
    color: #ff0000;
    margin-left: 0 .5rem;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.75rem 1.2rem;
    border: 1px solid #ffac00;
    border-radius: 0.4rem;
    background: transparent;
    font-family: 'Poppins', sans-serif;
}

.project3 {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    display: flex;
    overflow: hidden;
    width: 20rem;
    margin: 1rem;
    background: #f1def5b3;
    border-radius: 1.5rem;
    padding: 3rem 1rem 2rem 1rem;
    text-align: center;
}

.p3-img {
    bottom: 1rem;
    height: 11rem;
    position: relative;
}

.p3-img img {
    border-radius: 1rem;
}

.p3-name {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: black;
    font-family: 'Poppins', sans-serif;
}

.p3-detail {
    line-height: 20px;
    font-size: .9rem;
    color: black;
    font-family: 'Poppins', sans-serif;
}

.p3-link {
    justify-content: space-around;
    display: flex;
    padding-top: 10px;
}

.p3-github {
    text-decoration: none;
    margin-left: 0 .5rem;
    font-size: 1rem;
    color: #7c00ff;
    cursor: pointer;
    padding: 0.75rem 1.2rem;
    border: 1px solid #d21cff;
    border-radius: 0.4rem;
    background: transparent;
    font-family: 'Poppins', sans-serif;
    margin-top: 1rem;
    margin: 0 1rem;
}

.p3-livelink {
    text-decoration: none;
    color: #ff0000;
    margin-left: 0 .5rem;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.75rem 1.2rem;
    border: 1px solid #ffac00;
    border-radius: 0.4rem;
    background: transparent;
    font-family: 'Poppins', sans-serif;
}

/* contact */
.contact {
    width: 100%;
    height: 100%;
    padding-top: 50px;
}

.contact-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    max-width: 900px;
}

.form-horizontal {
    max-width: 400px;
    font-family: 'Lato';
    font-weight: 400;
}

.filling {
    width: 100%;
    padding-bottom: 10px;
}

.form-control,
textarea {
    max-width: 400px;
    background-color: #fff;
    color: black;
    letter-spacing: 1px;
    border: 1px solid black;
}

.send-button {
    margin-top: 15px;
    height: 34px;
    width: 400px;
    overflow: hidden;
    transition: all .2s ease-in-out;
}

.alt-send-button {
    width: 400px;
    height: 34px;
    transition: all .2s ease-in-out;
}

.send-text {
    display: block;
    margin-top: 10px;
    font: 700 12px 'Lato', sans-serif;
    letter-spacing: 2px;
}

.alt-send-button:hover {
    transform: translate3d(0px, -29px, 0px);
}

.direct-contact-container {
    max-width: 400px;
}

.contact-list {
    list-style-type: none;
    margin-left: -30px;
    padding-right: 20px;
}

.list-item {
    line-height: 4;
    color: #f1a644;
}

.contact-text {
    font: 300 18px 'Lato', sans-serif;
    letter-spacing: 1.9px;
    color: var(--text-color);
}

.place {
    margin-left: 62px;
}

.phone {
    margin-left: 56px;
}

.gmail {
    margin-left: 53px;
}

.contact-text a {
    color: var(--text-color);
    text-decoration: none;
    transition-duration: 0.2s;
}

.contact-text a:hover {
    color: #2b00ff;
    text-decoration: none;
}

.social-media-list {
    position: relative;
    font-size: 22px;
    text-align: center;
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

.social-media-list a span {
    color: var(--bg-color);
}

.social-media-list a {
    position: relative;
    display: inline-block;
    height: 60px;
    width: 60px;
    margin: 10px 3px;
    line-height: 60px;
    border-radius: 50%;
    color: var(--bg-color);
    background-color: var(--text-color);
    cursor: pointer;
    transition: all .2s ease-in-out;
}

.social-media-list a:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    opacity: 0;
    box-shadow: 0 0 0 1px var(--bg-color);
    transition: all .2s ease-in-out;
}

.social-media-list a:hover {
    background-color: var(--bg-color);
    border: 1px solid var(--text-color);
}

.social-media-list a:hover:after {
    opacity: 1;
    transform: scale(1.12);
    transition-timing-function: cubic-bezier(0.37, 0.74, 0.15, 1.65);
}

.social-media-list a:hover span {
    color: var(--text-color);
}

.direct-contact-container hr {
    border-color: var(--text-color);
}

/* footer */
footer {
    background: #111;
    padding: 15px 23px;
    color: #fff;
    text-align: center;
}

footer span {
    color: white;
}

footer span a {
    color: rgb(28, 206, 75);
    text-decoration: none;
}

footer span a:hover {
    text-decoration: underline;
}

@media (max-width: 991px) {
    header {
        padding: 18px 4%;
    }

    section {
        padding: 50px 4%;
    }
}

@media (max-width: 881px) {
    :root {
        --big-font: 2.7rem;
        --medium-font: 1.4rem;
    }
}

@media (max-width: 768px) {
    :root {
        --big-font: 2.4rem;
        --medium-font: 1.2rem;
    }

    header {
        padding: 11px 4%;
    }

    #menu-icon {
        display: initial;
        color: var(--text-color);
    }

    header .navbar {
        position: absolute;
        top: -500px;
        left: 0;
        right: 0;
        display: flex;
        flex-direction: column;
        background: var(--bg-color);
        box-shadow: 0 4px 4px rgb(0 0 0 / 10%);
        transition: 0.2s ease;
        text-align: center;
    }

    .navbar.active {
        top: 100%;
    }

    .navbar a {
        padding: 1.5rem;
        display: block;
        background: var(--bg-color);
    }

    #darkmode {
        position: absolute;
        top: 1.4rem;
        right: 2rem;
    }

    .scroll-down {
        display: none;
    }

    .home {
        grid-template-columns: 0.5fr 3fr;
    }

    .home-text {
        grid-column: 1/3;
        padding-left: 1.4rem;
    }

    .home-img {
        order: initial;
    }

    .about-container {
        grid-template-columns: 1fr;
    }

    .about-img {
        display: flex;
        justify-content: center;
    }

    .skills-container {
        grid-template-columns: 1fr;
    }

    .skills-img img {
        padding-left: 0;
    }

    .skills-img {
        padding-top: 2rem;
        display: flex;
        justify-content: center;
    }

    .contact-form form {
        width: 300px;
    }

    .contact-button {
        margin-left: 25%;
    }
}

@media (max-width: 340px) {
    :root {
        --big-font: 1.7rem;
        --medium-font: 1.1rem;
    }

    .home-text span {
        font-size: 1rem;
    }

    .home-text h2 {
        font-size: 0.9rem;
        font-weight: 500;
    }

    .information .info-box span {
        font-size: 1rem;
    }

    .contact-form form {
        width: 300px;
    }

    .contact-button {
        margin-left: 25%;
    }
}