@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Signika+Negative:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Gothic+A1:wght@100;200;300;400;500;600;700;800;900&display=swap');

:root {
    --halfyellow: rgba(255, 208, 87, .7);
    --yellow: #FFD057;
    --grey: #e0e0e0;
    scroll-behavior: smooth;
    overflow: hidden;
}

body {
    background-image: url("./UI/bg_portfolio.webp");
    background-size: cover;
}

html {
    scroll-behavior: smooth;
}

* {
    font-family: 'Bebas Neue', cursive;
    color: rgba(255, 208, 87, 1);
    padding: 0%;
    margin: 0%;
    font-weight: 400;
    font-size: 40px;
}

hr {
    size: 1px;
    border: dashed.5px;
    color: rgb(245, 236, 187);
}

header {
    display: flex;
    width: 100%;
    height: 15vh;
    margin-top: 2%;
    align-items: center;
    justify-content: space-evenly;
}

.logo,
.links {
    display: flex;
}

img {
    flex: 1;
    margin-right: 0;
}

nav ul {
    width: 600px;
}

/*logo*/
.logo img {
    width: 130px;
    border-radius: 100px;
}

/*logo animation*/
img {
    opacity: 0;
    animation: img 3s ease-out forwards;
}

@keyframes img {
    to {
        opacity: 1;
    }
}

/*navbar*/

li {
    flex: 2;
    flex-direction: flex-end;
    justify-content: space;
    text-align: center;
    list-style: none;
}

li a {
    margin: 0%;
    justify-content: center;
    font-size: 24px;
    font-family: 'Gothic A1', sans-serif;
    text-decoration: none;
    color: rgba(255, 208, 87, .75)
}

.links li a:hover {
    color: rgba(255, 208, 87, 1);
    text-shadow: 0px 0px 40px rgba(255, 208, 87, 1);
}

/*Animating Navbar for page loading*/
li.A {
    opacity: 0;
    transform: translateY(-5rem);
    animation: head 1s ease-out forwards;
}

@keyframes head {
    to {
        transform: translate(0);
        opacity: 1;
    }
}

li.B {
    opacity: 0;
    transform: translateY(-5rem);
    animation: head 1.2s ease-out forwards;
}

@keyframes head {
    to {
        transform: translate(0);
        opacity: 1.4;
    }
}

li.C {
    opacity: 0;
    transform: translateY(-5rem);
    animation: head 1.6s ease-out forwards;
}

@keyframes head {
    to {
        transform: translate(0);
        opacity: 1;
    }
}

li.D {
    opacity: 0;
    transform: translateY(-5rem);
    animation: head 1.9s ease-out forwards;
}

@keyframes head {
    to {
        transform: translate(0);
        opacity: 1;
    }
}

/*Main*/

.main {
    display: flex;
    width: 100vw;
    justify-content: space-evenly;
    align-items: center;
    margin: 3.8% 0%;
}

.left {
    width: 43%;
    transform: translateX(-5rem);
    animation: right .6s ease-out forwards;
}
.left h1{
    font-size: 1.8em;
    color: var(--yellow);
    transform: translateX(-5rem);
    animation: left 1s ease-out forwards;
}

@keyframes left {
    to {
        transform: translate(0);
        opacity: 1;
    }
}

.right img{
    width: 80%;
    background: rgba(255, 255, 255, 0.29);
    border-radius: 100%;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(1.5px);
    -webkit-backdrop-filter: blur(6.8px);
    transform: translateX(5rem);
    animation: left 1s ease-out forwards;
}
@keyframes right {
    to {
        transform: translate(0);
        opacity: 1;
    }
}

.main p{
    font-weight: 100;
    font-family: 'Montserrat', sans-serif;
    text-align: justify;
    color: var(--grey);
}





/*Copy rights footer*/
.cc{
    margin-bottom: -1;
}
.cc p {
    padding: 10px;
    background-color: #222;
    color: #fff;
    text-align: center;
    font-size: 21px;
}


@media screen and (width < 1200px) {
    body{
        width: 750px;
    }

    .img{
        margin-right: 0;
    }

    header{
        justify-content: center;
    }

    .logo{
        margin: 0;
        padding: 0;
    }

    nav ul{
        flex-direction: column;
        padding: 2% 0%;
    }

    .main{
        display: block;
        padding: 2%;
    }
}