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

:root {
    --main-color: #EEF5FF;
    --second-color: #B4D4FF;
    --third-color: #86B6F6;
    --fourth-color: #176B87;
    --whiteColor: #fff;
    --boxShadow: rgba(0, 0, 0, 0.3) 0px 19px 38px, rgba(0, 0, 0, 0.22) 0px 15px 12px;
    --fontSizeDesktop: 1.5rem
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--main-color);
    color: var(--third-color);
    background-image: url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%2386b6f6' fill-opacity='0.34' fill-rule='evenodd'%3E%3Cpath d='M5 0h1L0 6V5zM6 5v1H5z'/%3E%3C/g%3E%3C/svg%3E");
    font-family: "Nunito", sans-serif;
    font-size: var(--fontSizeDesktop);
}

.stop-scrolling {
    height: 100%;
    overflow: hidden;
}

/* Arrow up */
.arrowUp {
    opacity: 0;
    position: fixed;
    cursor: pointer;
    height: 50px;
    width: 50px;
    bottom: 30px;
    right: 30px;
    z-index: 101;
    transition: opacity 0.5s;
}

.showArrow {
    opacity: 1;
}

.arrowUp i {
    font-size: 2rem;
    cursor: pointer;
}

.arrowUp i:hover {
    transform: scale(1.3);
}

/* Navbar  */
nav {
    background-color: var(--second-color);
    margin: 0;
    position: fixed;
    width: 100vw;
    top: 0px;
    left: 0px;
    text-transform: uppercase;
    z-index: 3;

}

nav ul {
    display: flex;
    justify-content: space-around;
    list-style-type: none;
}

nav ul li:hover {
    transform: scale(1.3);
    transition-duration: .6s;
}

nav a {
    text-decoration: none;
    color: var(--whiteColor);
}

.disabled {
    pointer-events: none;
    color: var(--second-color);
}

.moreNavs {
    position: fixed;
    bottom: 40px;
    right: 0;
    z-index: 100;
}



.moreNavs ul {
    list-style-type: none;
}

.moreNavs a {
    text-decoration: none;
    color: var(--second-color);
}

.moreNavs ul li {
    cursor: pointer;
    text-transform: uppercase;
    color: #fff;
    margin: 40px 0;
    transform: translateX(100%);
    transition: transform 0.4s ease-in;
}

.moreNavs.show {
    transform: translateX(-100%);
    transition: transform 0.8s ease-in-out;
    transition-delay: 0.3s;
}

.moreNavs li:hover {
    text-shadow: 1px 1px 2px var(--third-color);
    transition-duration: .6s;
}


/* Section */
.content {
    transform-origin: top right;
    transition: transform 0.5s linear;
}

.content.showMore {
    transform: rotate(20deg);
    border: 5px solid var(--second-color);
}

.content>div {
    width: 95vw;
    height: 100vh;
}

/* Home  section*/
.home {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    justify-items: center;
}

.homeInfo {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.homeInfo h1 {
    font-size: 4rem;
    margin-top: 0;
    margin-bottom: 1rem;
}

.homeInfo p.homeWelcome {
    margin: 0;
}

.homeInfo p {
    font-size: var(--fontSizeDesktop);
}

.btn {
    align-self: center;
}

/* CSS button */
.homeButton {
    cursor: pointer;
    align-self: center;
    --b: 3px;
    /* border thickness */
    --s: .45em;
    /* size of the corner */
    --color: var(--third-color);

    padding: calc(.5em + var(--s)) calc(.9em + var(--s));
    color: var(--color);
    --_p: var(--s);
    background:
        conic-gradient(from 90deg at var(--b) var(--b), #0000 90deg, var(--color) 0) var(--_p) var(--_p)/calc(100% - var(--b) - 2*var(--_p)) calc(100% - var(--b) - 2*var(--_p));
    transition: .3s linear, color 0s, background-color 0s;
    outline: var(--b) solid #0000;
    outline-offset: .6em;
    font-size: var(--fontSizeDesktop);

    border: 0;

    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.homeButton:hover,
.homeButton:focus-visible {
    --_p: 0px;
    outline-color: var(--color);
    outline-offset: .05em;
}

.homeButton:active {
    background: var(--color);
    color: #fff;
}




.profilePhoto img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
}

.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 300px 60vh;
}

.about h2 {
    grid-column: span 2;
    justify-self: center;
    align-self: center;
}

.about p {
    max-width: 700px;
    padding: 0 50px;
    margin-top: 0;
}

.about .navigationButtonsContainer {
    display: flex;
    flex-direction: column;
    /* justify-content: start; */
    gap: 110px;
    align-content: start;
}

.navigationButtonsContainer a {
    align-self: flex-start;
}

.about .navigationButtonsContainer button {
    width: 300px;
}

/* Portfolio section */
.portfolio {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 50vh;
}

.portfolio h2 {
    position: relative;
    bottom: 20px;
}

.portfolioContainer {
    display: flex;
    gap: 10px;
}

.portfolioContainer .project {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--whiteColor);
    height: 80vh;
    border-radius: 50px;
    cursor: pointer;
    flex: 0.5;
    margin: 10px;
    position: relative;
    transition: flex 0.7s ease-in;
}

.project h2,
.project a {
    display: none;
}


.portfolioContainer .project img {
    width: 100%;
    height: 100%;
    border-radius: 50px;
    margin: 0;
    object-fit: cover;
}

.project.active {
    flex: 15
}

.project.active img {
    object-fit: fill;
    height: 80%;
}

.project.active h2,
.project.active a {
    display: contents;
}

.project button {
    margin-bottom: 10px;
}

/* SKills section */
.skills {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.skillsContainer {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    max-width: 1200px;
    justify-items: center;
    gap: 10px;
}

.skill {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.skill h3 {
    text-align: center;
}

.skill>img {
    width: 63px;
    height: 64px;
    object-fit: cover;
}

.circleIcon>img {
    height: 70px;
    width: 70px;
    border-radius: 30px;
}

.largeIcon>img {
    object-fit: fill;
    width: 90px;
}

/* Contact */
.contact {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--fontSizeDesktop);
}

.contact h2 {
    text-align: center;
    margin: 0;
}

.contact form {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #fdfdfd;
    padding: 20px;
    border-radius: 20px;
    width: 500px;
    height: 500px;
    box-shadow: var(--boxShadow);

}

.contact form .submitBtn {
    font-family: "Nunito", sans-serif;
    font-size: var(--fontSizeDesktop);
    margin: 10px 0px;
    cursor: pointer;
    color: var(--whiteColor);
    background-color: var(--second-color);
    border: 0;
    border-radius: 10px;
    padding: 10px;
    outline: none;
}

.contact form .submitBtn:active {
    filter: brightness(1.1);
}

.contact form input {
    height: 30px;
    border: 2px solid var(--third-color);
    padding: 2px;
    color: var(--third-color);
    font-weight: bold;
    outline: none;

}

.contact form select {
    height: 36px;
    border: 2px solid var(--third-color);
    padding: 2px;
    color: var(--third-color);
    font-weight: bold;
    background-color: #fff;
    outline: none;
}

.contact form select:active {
    border: 2px solid var(--third-color);

}

.contact form textarea {
    resize: vertical;
    border: 2px solid var(--third-color);
    color: var(--third-color);
    font-weight: bold;
    background-color: #fff;
    outline: none;
}


.contact ul {
    display: flex;
    justify-content: space-between;
    width: 400px;
    margin: 0;
}

.contact ul li {
    width: fit-content;
    font-size: 1.2rem;
    list-style-type: none;

}

.contact ul li a {
    text-decoration: none;
    color: #fff;
    width: 80px;
    height: 80px;
    background-color: #fff;
    text-align: center;
    line-height: 80px;
    font-size: 35px;
    margin-bottom: 10px;
    display: block;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    border: 3px solid #fff;
    z-index: 1;
    box-shadow: var(--boxShadow);

}

.contact li a .icon {
    position: relative;
    color: var(--third-color);
    transition: .5s;
    z-index: 3;
}

.contact ul li:hover .icon {
    color: var(--whiteColor);
    transform: rotateY(360deg);
}

.contact ul li a:before {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: #55acee;
    transition: .5s;
    z-index: 2;
}

.contact li a:hover:before {
    top: 0;
}

.contact li:nth-child(3) a:before {
    background: #3b5999;
}

ul li:nth-child(1) a:before {
    background: black;
}


/* Media Query */
@media screen and (max-width:750px) {
    :root {
        --fontSizeDesktop: 1rem
    }

    .home {
        display: flex;
        flex-direction: column;
    }

    .homeInfo h1 {
        font-size: 2rem;
    }

    .content>div {
        height: auto;
        position: relative;
        top: 90px;
        gap: 15px;
    }

    .portfolio h2 {
        top: 30px;
    }

    .contact {
        margin-top: 40px;
    }

    .contact form {
        width: 90%;

    }

    .contact ul {
        width: 80%;
        margin-bottom: 80px;
        padding: 0;
    }


}