/** Color codes:

#242424

#3E3E3E

#2C5782

#3870A9

#4E8AC6

**/

* {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

:root {
    --white: #d1d0c7;
    --main-red: #be3144;
    --main-blue: #45567d;
    --main-gray: #303841;
}


body {
    font-size: 1.5vw;
    font-weight: 200;
    background-color: #254361;
}

ul {
    list-style: none;
}
  
a {
    text-decoration: none;
}

h2 {
    font-size: 2vw;
    font-weight: 600;
}

h3 {
    font-size: 1.8vw;
    font-weight: 400;
}

.navbar {
    padding-left: 1vw;;
    backdrop-filter: blur(5px);
    display: flex;  
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 7%;
    position: fixed;
    z-index: 10;
}

.navbar a{
    color: var(--white);
}

.navbar img{
    filter: invert(95%) sepia(15%) saturate(102%) hue-rotate(15deg) brightness(88%) contrast(87%);
    height: 3vh;
}

.navbar img:hover{
    filter: invert(50%);
}
.nav-items {
    display: flex;
    margin-right: 1vw;
}

.nav-items a {
    height: 100%;
    padding: 1vw;
    font-size: 1.5vw;
}

.nav-items a:hover {
    filter: invert(20%);
    text-decoration: underline;
}

.hero { 
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    background-color: #000;
    color: var(--white);
    background-image: linear-gradient(70deg, #0c1218 0%, #2f5275 100%);
}

.hero div {
    margin: 2vw;
}

.hero-name {
    align-items: center;
    width: 30%;
}

.names {
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.names-container {
    align-self: center;
}

.hero-name h1 {
    font-size: 6vw;
    text-align:end;
}

.social-icons {
    margin-top: 2vh;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2vw;
    height: 8vh;
}

.social-icon{
    position: absolute;
    filter: invert(95%) sepia(15%) saturate(102%) hue-rotate(15deg) brightness(88%) contrast(87%);
    width: 2.5vw;
    height: 2.5vw;
    transition-duration: 0.2s;

}

.social-icon:hover {
    transition-duration: 0.2s;
    transform: scale(1.4);
    filter: invert(50%);
}

.hero-image {
    width: 30%;
    display: flex;
    justify-content: center;
}

.hero-image img {
    width: 25vw;
}

.hero-role {
    width: 30%;
}

.header {
    margin-bottom: 3vh;
    font-weight: 5vw;
    font-size: 2vw;
}

.intro {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    background-color: #1b354e;
}

.container{
    color: var(--white);
    padding: 5vw;
}

.skills {
    height: 100vh;
    width: 100%;
    background-color: #2b67a0;
}

.experience {
    height: 100%;
    width: 100%;
    background-color: #1d344b;
    position: relative;
}

.experience-container{
    width: 100%;
    height: 100%;
}

.line{
    margin-bottom: 5vw;
    position: absolute;
    top: 9vw;
    bottom: 0;
    left: 50%;
    width: 2px;
    background-color: transparent;
    border-left: 2px dotted var(--white);
    transform: translateX(-50%);

}

.experience-flex{
    display: flex;
    justify-content: space-between;
}

.experience-type{
    flex: 1;
    display: flex;
    padding: 1vw;
    align-items: center;
    justify-content: flex-end;

}

.experience-type:nth-of-type(2){
    justify-content: flex-start;
}

.experience-entry{
    flex:1;
    position: relative;
    width: 30vw;
    border: 1px solid var(--white);
    border-radius: 2vw;
    padding: 1vw;
    
}

.experience-entry ul {
    list-style: inside;
    font-size: 1vw;
    margin-top: 1vw;
    margin-bottom: 1vw;
}

.right{
    margin-left: 6vw;
}

.left{
    margin-right: 6vw;

}

.duration {
    display: flex;
    justify-content: space-between;
    font-size: 1.2vw;
}
.project-tile {
    height: 100%;
    width: 100%;
    background-color: #222f3b;
}

.cards{
    margin-top: 3vw;
    justify-content: center;    
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    height: 100%;
    gap: 2vw;
}

.card {
    position: relative;
    width: 25vw;
    height: 25vw;
    padding-top: 1vw;
    border-radius: 15px;
    background-color: #1e2933;
    overflow: hidden;
}

.project-name{
    padding-bottom: 0.5vw;
    display: block;
    color: #549ec4;
    text-align: center;
    border-bottom: 1px solid black;
}

.project-image{
    display: block;
    margin-top: 0.5vh;
   /* background-color: red;*/
    width: 100%;
    height: 100%;
}

.project-image img {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 100%;
    overflow: hidden;
    -webkit-transform: translateY(-50%) translateX(-50%);
}

.project-description{
    text-align: center;
    position: absolute;
    padding: 1vw 0.5vw 0 0.5vw;
    top: 0;
    left: 0;
    transition: 0.4s;
    opacity: 0;
    height: 100%;
    border-radius: 15px;
}

.project-description:hover{
    transition: 0.6s;
    opacity: 100%;
    background-color: rgba(16, 16, 26, 0.7);
    backdrop-filter: blur(10px);
}
