@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro&display=swap');

* {
    margin: 0%;
    padding: 0%;
    box-sizing: border-box;
    font-family: 'Source Sans Pro', sans-serif, Arial, Helvetica;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    background-color: #e9e9e9;
}

a {
    text-decoration: none;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(158 158 158 / 86%);
    position: fixed;
    top: 0%;
    left: 0%;
    width: 100%;
    padding: 20px;
    transition: 1s;
    animation: slideFromRight 2s ease-in-out .3s;
    z-index: 5;
}

.top {
    background: transparent;
}

.main-header {
    color: #0c103a;
    cursor: pointer;
}

.main-header span {
    color: #362a9c;
}

.navbar li {
    display: inline-block;
    list-style: none;
    padding: 10px;
}

.navbar li a {
    text-decoration: none;
    color: #0c103a;
}

.navbar li:hover {
    background-color: #180c4c;
    cursor: pointer;
    transition: .7s ease-in-out;
}

.navbar li:hover a {
    color: #fff;
}

#menu-bar,
.menu-wrapper {
    display: none;
}

.modal-wrapper {
    background-color: rgba(0, 0, 0, .9);
    position: fixed;
    top: 0%;
    left: 0;
    height: 100vh;
    width: 100vw;
    align-items: center;
    justify-content: center;
    display: none;
    z-index: 10;
}

.modal {
    animation: fadeIn 1s ease-in-out;
}

.modal-form {
   background-color: #f0f0f0;
   padding: 15px;
   border-radius: 4px;
}

.modal-form div {
    margin-bottom: 20px;
}

.modal-form .form-title {
    margin-bottom: 16px;
    text-align: center;
}

.modal-form div > input, textarea {
    padding: 10px;
    width: 100%;
    border-radius: 4px;
    border: none;
    outline: none;
    transition: box-shadow .3s ease-in-out;
}

.modal-form input:focus,
textarea:focus {
    box-shadow: 1px 2px 5px 5px rgba(40, 88, 221, 0.144);
}

.modal-form textarea {
    resize: none;
}

.modal-form button {
    padding: 10px;
    border: none;
    background-color: #180c4c;
    border-radius: 4px;
    color: #fff;
    width: 100%;
}

.modal-form button:hover {
    cursor: pointer;
    transform: scale(.98);
}

.portfolio {
    margin-top: 90px;
    margin-bottom: 70px;
    padding: 30px;
    /* background-color: #e8e7e7; */
    animation: fadeIn 3s ease-in-out;
    transition: all 2s ease-in;
}

.portfolio.slide-right {
    animation: slideRight 4s ease-in-out forwards;
}

.services,
.skills,
.projects {
    margin-bottom: 100px;
}

.portfolio-wrapper {
    color: #0c103a;
    display: flex;
    flex-direction: column;
}

.profile-wrapper {
    padding: 20px 30px;
    margin-bottom: 40px;
    border-radius: 10px;
    animation: slideFromLeft 2.5s ease-in-out;
}

.profile {
    display: flex;
    justify-content: space-around;
}

.profile p,
.services-item p {
    color: #110835;
}

.profile-image {
    margin-bottom: 30px;
    margin-right: 50px;
}

.profile-image img {
    object-fit: cover;
    height: 200px;
    width: 200px;
    border-radius: 50%;
}

.profile-info {
    background-color: #fff;
    padding: 20px 30px 50px;
    border-radius: 5px;
    box-shadow: 1px 3px 4px 4px rgb(0 0 0 / 20%);
    align-items: center;
}

.profile-info > div:first-child p {
    line-height: 35px;
}

.profile-info > div:first-child p:first-child {
    font-weight: bold;
    font-size: 35px;
    margin-bottom: 20px;
    text-shadow: 3px 3px rgba(0, 0, 0, 0.171);
}

.contact {
    margin-top: 50px;
}

.contact p {
    margin-bottom: 15px;
}

.view-projects {
    cursor: pointer;
    padding: 13px;
    margin-top: 20px;
    margin-left: 20px;
    background-color: none;
    color: #131961;;
    border: 2px solid #1e0e5f;
    border-radius: 4px;
    box-shadow: -1px 2px 6px 6px rgba(0, 0, 0, 0.131);
}

.contact .fa-arrow-down {
    font-size: 15px;
    margin-left: 10px;
    animation: slideDown 1s ease-in-out infinite;
}

/* Skills */
.skills {
    padding: 30px;
}

.skills-items {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 30px;
}

.skills-item {
    padding: 50px 30px;
    border-radius: 0 10px;
    text-align: center;
    background-color: #fff;
    box-shadow: 1px 3px 4px 4px rgb(0 0 0 / 20%);
    transform: scale(0);
    opacity: 0;
    transition: all .2s ease-in-out;
}

.skills-items,
.projects-items {
    margin: 0 30px 40px;
}

.skills li {
    margin-bottom: 15px;
}

.skills-title,
.projects-title {
    margin-bottom: 40px;
    text-align: center;
}

.skills-title > h3,
.projects-title > h3 {
    padding-bottom: 10px;
    font-size: 36px;
}

.skills-title > div,
.projects-title > div {
    height: 2px;
    width: 7%;
    margin: auto;
    text-align: center;
    background-color: blue;
}

.skills-item.show {
    transform: scale(1);
    opacity: 1;
}

.skills-item:hover {
    transform: scale(.98);
}

.skills-item > p {
    margin-bottom: 20px;
    font-size: 25px;
}

.skills-item i {
    font-size: 100px;
}

.skills-item .fa-html5 {
    color: #ea2020;
}

.skills-item .fa-css3 {
    color: #3939e0;
}

.skills-item .fa-js {
    color: yellow;
}

.skills-item .fa-github {
    color: black;
}

.fa-check {
    margin-right: 10px;
}

/* Projects */
#projects {
    padding: 30px;
}

.projects-items {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 30px; 
}

.project-item {
    box-shadow: 1px 3px 4px 4px rgb(0 0 0 / 20%);
    opacity: 0;
    transform: scale(0);
    transition: all .3s ease-in-out;
}

.project-item.show {
    opacity: 1;
    transform: scale(1);
}

.project-description {
    color: #000;
    padding: 20px 20px 30px;
    background-color: #fff;
    border-top: 5px solid #0d42ee;
}

.project-description p {
    margin-bottom: 10px;
}

.project-description > div a {
    background-color: #0d42ee;
    color: #fff;
    padding: 10px 30px;
    border-radius: 10px;
    box-shadow: 2px 4px 6px 3px rgb(0 0 0 / 29%);
}

.project-description > div a:first-child {
    margin-right: 10px;
}

.project-description > div a:nth-child(2) {
    background-color: #fff;
    color: #0d42ee;
    border: 1px solid #0d42ee;
}

.project-item:hover {
    transform: scale(1.02);
    box-shadow: 2px 4px 6px 6px rgb(0 0 0 / 25%);
}

.project-img {
    width: 300px;
    height: 300px;
}

.project-item img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.project-info {
    margin-bottom: 30px;
}

.project-info span {
    color: #0c103a;
    font-weight: bold;
}

.to-top {
    position: fixed;
    bottom: 30px;
    right: 20px;
    height: 40px;
    width: 40px;
    display: none;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    border-radius: 50%;
    background-color: rgba(8, 8, 41, 0.801);
    color: #fff;
    opacity: 0;
    z-index: 10;
    transition: opacity .7s ease-in-out;
}

.to-top.show-top {
    opacity: 1;
}

footer {
    background-color: #969696;
    color: #0c103a;
    text-align: center;
    margin-top: 40px;
    padding: 20px 0px;
}

.socials .fab {
    color: #fff;
    font-size: 25px;
}

.socials li {
    cursor: pointer;
    display: inline-block;
    margin-right: 10px;
    padding: 13px 16px; 
    background-image: linear-gradient(45deg, #0a092e7e, #0d42ee);
    border-radius: 50%;
    transition: all .3s ease-in-out;
}

.socials li:hover {
    transform: scale(1.1);
}

.socials div {
    margin-bottom: 10px;
}

.socials p {
    margin-bottom: 15px;
}

@keyframes slideDown {
    0% {
        transform: translateY(-6px);
        
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        
        opacity: 1;
    }
}

@keyframes slideRight {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(100%);
    }
}

@keyframes slideFromRight {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

@keyframes slideFromLeft {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes motion {
    100% {
        border-radius: 23px 0;
    }
}

@media (min-width: 501px) and (max-width: 768px) {
    header,
    .profile {
        flex-direction: column;
    }

    .profile {
        align-items: center;
    }i

    .services-items {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .skills-items, 
    .projects-items {
        grid-template-columns: repeat(2,1fr);
    }

    .to-top {
        display: flex;
    }
}

@media (max-width:500px) {
    header {
        display: flex;
        align-items: center;
    }

    .main-header h1 {
        font-size: 25px;
    }

    .navbar {
        display: none;
    }

    #menu-bar {
        display: block;
        padding: 5px 8px;
        cursor: pointer;
        background-color: #180c4c;
        border-radius: 4px;
        border: none;
    }

    #menu-bar .fa {
        font-size: 25px;
        font-weight: bold;
        color: #fff;
    }

    .menu-wrapper {
        display: block;
    }

    .profile {
        flex-direction: column;
        align-items: center;
    }

    .services {
        padding: 20px 0;
        margin-bottom: 20px;
    }

    #projects {
        padding: 20px 0;
    }

    .services-items,
    .skills-items,
    .projects-items {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .to-top {
        display: flex;
    }
}


