@import "https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@100;200;300;400;500;600;700;800;900&display=swap";

/*
    color1: #35155D     rgb(53, 21, 93)
    color2: #512B81     rgb(81, 43, 129)
    color3: #4477CE     rgb(68, 119, 206)
    color4: #8CABFF     rgb(140, 171, 255)
*/

:root {
    --color-primary: #35155D;
    --color2: #512B81;
    --color3: #4477CE;
    --colo4: #8CABFF;

    --color-white: #ffffff;
    --color-text: #4d4d4d;
    --color-text-white: #d2d2d2;
    --color-black: #000;

    --color-bg-light: rgba(81, 43, 129, 0.1);

    --color-success: green;
    --color-info: #1539cf;
    --color-warning: #FDC93D;
    --color-danger: red;

    --transition: 0.5s ease;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
}

body {
    font-family: Roboto-Slab, sans-serif;
    font-size: 18px;
    font-weight: 250;
    position: relative;
}

h1 {
    font-family: Helvetica, sans-serif;
    font-size: 4.5em;
    margin: 20px 10px;
}

span {
    font-size: 0.9em;
}

h6 {

}

.sectpad {
    padding: 12vh 8vw;
}

.title {
    text-align: center;
    margin-bottom: 10vh;
}

.title h2 {
    line-height: 2em;
    font-size: 2em;
}

.show {
    display: initial;
}

.hide {
    display: none;
}


/*============ Navigation ============*/
nav {
    display: flex;
    justify-content: space-between;
    padding: 1vw 5vw;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.15);
    align-items: center;
    position: fixed;
    background-color: var(--color-white);
    width: 100%;
    overflow-x: visible !important;
}

nav img {
    width: 15vw;
    height: 6vw;
    cursor: pointer;
}

nav .navigation img {
    width: 30px;
    height: 30px;
}

nav .navigation {
    display: flex;
}

nav .navigation ul {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
}

nav .navigation ul li {
    padding: 2vh 1vw;

}

nav .navigation ul li:hover {
    background-color: var(--color-info);
    color: var(--color-white);
}

nav .navigation ul li a {
    color: var(--color-text);
}

nav .navigation ul li a:hover {
    color: var(--color-white);
}

#menu-btn {
    width: 30px;
    height: 30px;
    display: none;
}

#close-btn {
    display: none;
}


/*=========== Hero/Home ===================*/
section#home {
    color: var(--color-white);
    width: 100%;
    height: 100vh;
    background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.7)), url('../images/profile-bg.jpg');
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 7vh;
}

section#home p {
    font-family: Helvetica, sans-serif;
    font-size: 20px;
    font-weight: bold;
}

section#home .buttons {
    margin-top: 50px;
}

section#home a {
    color: var(--color-white);
    font-size: 1.5rem;
    padding: 10px 30px;
    background-color: var(--color-info);
    border-radius: 5px;
    transition: var(--transition);
}

section#home a:hover {
    color: var(--color-info);
    background-color: var(--color-white);
}


/*========== Professional =============*/
section#pro {
    justify-content: center;
    text-align: center;
    align-items: center;
}

section#pro .content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-row-gap: 50px;
    justify-content: center;
}

section#pro .item {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    flex-grow: 1;
    margin-bottom: 10vh;
}

section#pro .item img {
    width: 20%;
    height: auto;
    margin-bottom: 5vh;
    justify-self: center;
}

section#pro .item .details h3 {
    margin-bottom: 20px;
}

section#pro .item .details p {
    color: var(--color-text);
}


/*=========== Projects/Jobs ============*/
section#projects {
    background-color: var(--color-bg-light);
    display: flex;
    flex-direction: column;
}

.job-wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
}

.job {
    width: 300px;
    margin: 1vw;
    padding: 10px;
    justify-content: center;
    transition: var(--transition);
}

.job:hover {
    border-radius: 5px;
    background-color: var(--color-white);
}

.job img {
    width: 100%;
}


/*=========== Frameworks Section =============*/
.card-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    grid-gap: 5vh 5vw;
}

.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 5px;
    border-radius: 10px;
    transition: var(--transition);
}

.card:hover {
    background-color: var(--color-bg-light);
}

.card-icon {
    margin-bottom: 20px;
}

.card-icon img {
    width: 25%;
    height: auto;
}

.card-details h3 {
    margin-bottom: 10px;
}

.card-details p {
    color: var(--color-text);
    font-weight: 500;
}


/*========== More Skills ============*/
section#more {
    background-color: var(--color-bg-light);
}


/*========== Contact ===========*/
section#contact {
    display: flex;
    flex-direction: column;
    justify-content: center;

}

section#contact .content {
    justify-content: center;
}

section#contact .content ul {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-bottom: 2px solid var(--color-bg-light);
}

section#contact ul li {
    padding: 10px 0;
    font-size: 30px;
    border-top: 2px solid var(--color-bg-light);
    align-items: center;
    transition: var(--transition);
}

section#contact ul li:hover {
    background-color: var(--color-bg-light);
}

section#contact ul li a img {
    height: 30px;
}


/*========== footer ===========*/
footer {
    display: flex;
    flex-direction: row;
    color: var(--color-white);
    background-color: var(--color-primary);
    padding: 30px 10px;
    align-items: center;
}

footer .social {
    width: 40%;
}

footer .social ul {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

footer .social ul li {
    padding: 0 20px;
}

footer .social ul li a img {
    width: 30px;
    height: 30px;
    align-self: center;
}

.copyright {
    width: 60%;
    text-align: left;
}

/*========= back to top button =========*/
.totop {
    bottom: 50px;
    right: 50px;
    position: fixed;
    display: initial;
    transition: var(--transition);
    z-index: 99;
}

.totop img {
    width: 30px;
    height: 30px;
    position: absolute;
}


/*=========== Media Queries ===========*/
@media (max-width: 769px) {
    /* hero section */
    h1 {
        font-size: 35px;
    }
    #menu-btn {
        display: initial;
    }
    #close-btn {
        display: initial;
        background-color: var(--color-white);
        padding: 5px;
        border-radius: 0 5px 5px 0;
    }
    nav img {
        width: 35vw;
        height: auto;
    }
    nav .navigation ul {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        right: -220px;
        width: 220px;
        height: 100vh;
        background-color: rgba(68, 119, 206, 0.55);
        backdrop-filter: blur(4.5px);
        border: 1px solid rgba(255, 255, 255, 0.28);
        position: absolute;
        transition: var(--transition);
        /*z-index: 98;*/
    }
    .active {
        right: 0 !important;
    }

    nav .navigation ul li {
        padding: 20px 40px 20px 40px;
        width: 100%;
    }
    nav .navigation ul li:hover {
        background-color: var(--color-text);
    }
    nav .navigation ul li a {
        color: var(--color-white);
    }

    section#home {
        height: 70vh;
    }
    section#home p {
        font-size: 18px;
    }

}




