:root {
  font-family: Inter, sans-serif;
  font-feature-settings: 'liga' 1, 'calt' 1; /* fix for Chrome */
}
@supports (font-variation-settings: normal) {
  :root { font-family: InterVariable, sans-serif; }
}

html {
  font-size: 12px;
  background-color: #E3F2FD;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
}

h1 {
  font-size: 108px;
  line-height: 1;
  margin-top: 0;
  margin-bottom: 15px;
  /*text-shadow: 2px 2px 4px;*/
  color: #151E3F;
}

h2 {
  font-size: 48px;
  margin: 0;
  /*text-shadow: #4C4B63 2px 2px 4px;*/
  color: #151E3F
}

h3 {
  font-size: 30px;
  margin: 0;
  /*text-shadow: #4C4B63 2px 2px 4px;*/
  color: #151E3F
}

p {
  font-size: 18px;
  list-style-type: none;
  color: #4C4B63
}

a {
  color: #5386E4;
  text-decoration: none;
}

.uppernavbar {
  position: fixed;
  width: 100%;
  margin: 0;
  padding: 0;
  box-shadow: #4C4B63 2px 1px 10px;
  display: flex;
  flex-direction: row;
  background-color: #E3F2FD;
  list-style-type: none;
  font-size: 18px; 
  z-index: 1000;
}

.uppernavbar .name {
  display: grid;
  align-content: center;
  padding: 12px;
  margin-right: auto;
  /*text-shadow: #4C4B63 1px 1px 1px;*/
}

.uppernavbar .navbarcenter{
  display: flex;
  flex-direction: row;
  margin-left: auto;
  margin-right: auto;
}

.uppernavbar a {
  text-align: center;
  padding: 12px;
  padding-left: 20px;
  padding-right: 20px;
  position: relative;
  transition: transform 0.1s linear;
}

.uppernavbar a:hover {
  transform: scale(1.07);
}

.uppernavbar a.resume {
  margin-left: auto;
  color: #E71D36;
  padding-left: 10px;
  padding-right: 30px;
}

.rightnavbar {
  list-style-type: none;
  font-size: 18px;
  position: fixed;
  top: 40%;
  opacity: 0.5;
  transition: opacity 0.5s;
}

.rightnavbar:hover {
  opacity: 1;
  transition: opacity 0.5s;
}

.page {
  width: 100%;
  min-height: 100vh;
}

#homepage {
  display: grid;
  grid-template-columns: 20% 60% 20%;
  grid-template-rows: 30% 40% 30%;
  place-items: center;
}

.nameplate {
  grid-column-start: 2;
  grid-column-end: 3;
  grid-row-start: 2;
  grid-row-end: 3;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border: #5386E4 4px solid;
  border-radius: 80px;
}

.nameplatetext {
  width: fit-content;
  height: fit-content;
}

#about {
  display: grid;
  grid-template-columns: 15% 42% 6% 22% 15%;
  grid-template-rows: 10% 10% 70% 10%;
  align-items: center;
}

.title {
  grid-column-start: 3;
  grid-column-end: 5;
  grid-row-start: 2;
  grid-row-end: 3;
  line-height: 1;
}

.title.about {
  margin-bottom: 50px;
}

.text {
  grid-column-start: 2;
  grid-column-end: 3;
  grid-row-start: 3;
  grid-row-end: 4;
}

.portrait {
  border: #5386E4 5px solid;
  border-radius: 8px;
  grid-column-start: 4;
  grid-column-end: 5;
  grid-row-start: 3;
  grid-row-end: 4;
  place-self: center;
  width: 250px;
  height: 390px;
}

.emaillink {
  grid-column: 1/6;
  grid-row: 4/5;
  width: fit-content;
  height: fit-content;
  align-self: start;
  justify-self: center;
}

#experience {
  display: grid;
  grid-template-columns: 15% 20% 14% 4% 14% 20% 15%;
  grid-template-rows: 10% 10% 60% 10% 10%;
  align-items: stretch;
}

.experiencetitle {
  grid-column-start: 3;
  grid-column-end: 4;
  grid-row-start: 2;
  grid-row-end: 3;
  text-align: left;
  margin-bottom: 3%;
}

.skillstitle {
  grid-column-start: 5;
  grid-column-end: 6;
  grid-row-start: 2;
  grid-row-end: 3;
  text-align: right;
  margin-bottom: 3%;
}

/*
.timeline {
  color: #4C4B63;
  font-size: 12px;
  position: relative;
  list-style-type: none;
  line-height: 1;
  grid-column: 2/4;
  grid-row: 3/4
}

.timeline:before {
  background-color: #5386E4;
  width: 2px;
  content: '';
  position: absolute;
  top: 190px;
  bottom: 0px;
  left: 25px;
}

.events {
  position: relative;
}

.event {
  display: flex;
  margin-bottom: 10px;
}

.event .marker {
  fill: #5386E4;
  position: relative;
  left: -20px;
  top: 6px;
} 

.job {
  list-style-type: none;
  margin-bottom: 30px;
  margin-left: 10px;
}

.jobtitle {
  line-height: 1;
  color: #151E3F;
  text-shadow: none;
}

.jobsubtitle {
  line-height: 1;
  font-size: 18px;
  color: #4C4B63;
  margin: 0;
}

.jobdate {
  line-height: 1;
  margin: 0;
  font-size: 24px;
  color: #151E3F;
}

.jobtext {
  font-size: 18px;
  line-height: 1;
  margin-top: 10px;
}

.content {
  font-size: 18px;
  line-height: 1;
}
  */

.experience{ 
  grid-column: 2/4;
  grid-row: 2/4;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.job {
  padding: 30px;
  border: #5386E4 2px solid;
  border-radius: 10px;
  background-color: #D9EEFC;
}

.jobtitle {
  line-height: 1;
  color: #151E3F;
  text-shadow: none;
}

.jobsubtitle {
  line-height: 1;
  font-size: 18px;
  color: #4C4B63;
  margin: 0;
}

.jobdescription{
  font-size: 18px;
}

.jobskills {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: left;
}

.jobskill:not(:last-child){
  padding-right: clamp(0px, 1vw, 5px)
}

.jobskill p{
  margin: 0;
  padding: 4px;
  border: #5386E4 2px solid;
  border-radius: 10px;
  background-color: #E3F2FD;
  font-size: clamp(8px, 2vw, 12px);
}

.skills {
  grid-column: 5/7;
  grid-row: 2/4;
  text-align: right;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.skill {
  margin-bottom: 15px;
}

.skilltitle {
  font-size: 24px;
  text-shadow: none;
  color: #151E3F;
  margin-bottom: 10px;
}
.icon-wrapper {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.icon {
  width: fit-content;
  height: fit-content;
  border: #5386E4 2px solid;
  border-radius: 8px;
  padding: 5px;
  display: block;
  background-color: #D9EEFC;
}

.icon-wrapper::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #4C4B63;
  color: #FAFAFA;
  padding: 8px 12px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  margin-bottom: 8px;
}

.icon-wrapper:hover::after {
  opacity: 1;
}

.linkedinlink {
  grid-column: 1/8;
  grid-row: 5/6;
  width: fit-content;
  height: fit-content;
  align-self: start;
  justify-self: center;
}

#projects {
  display: grid;
  grid-template-columns: 10% 25% 2.5% 25% 2.5% 25% 10%;
  grid-template-rows: 8.75% 10% 30% 2.5% 30% 10% 8.75%;
  align-items: center;
}

.projectspagetitle {
  grid-column-start: 2;
  grid-column-end: 3;
  grid-row-start: 2;
  grid-row-end: 3;
  text-align: left;
}

.card1 {
  grid-column-start: 2;
  grid-column-end: 3;
  grid-row-start: 3;
  grid-row-end: 4;
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease;
}

.card1:hover{
  transform: scale(1.03);
}

.pma {
  border: #5386E4 4px solid;
  border-radius: 8px;
  width: 100%;
  height: 100%;
}

.card2 {
  grid-column-start: 4;
  grid-column-end: 5;
  grid-row-start: 3;
  grid-row-end: 4;
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease;
}

.card2:hover{
  transform: scale(1.03);
}

.crypto {
  border: #5386E4 4px solid;
  border-radius: 8px;
  width: 100%;
  height: 100%;
}

.card3 {
  grid-column-start: 6;
  grid-column-end: 7;
  grid-row-start: 3;
  grid-row-end: 4;
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease;
}

.card3:hover{
  transform: scale(1.03);
}

.movie {
  border: #5386E4 4px solid;
  border-radius: 8px;
  width: 100%;
  height: 100%;
}

.projtitle {
  line-height: 1;
  font-size: clamp(1rem, 1.75vw, 3rem);
  color: #151E3F;
  text-shadow: none;
}

.desc1 {
  grid-column: 2/3;
  grid-row: 5/6;
  width: 100%;
  height: 100%;
}

.desc2 {
  grid-column: 4/5;
  grid-row: 5/6;
  width: 100%;
  height: 100%;
}

.desc3 {
  grid-column: 6/7;
  grid-row: 5/6;
  width: 100%;
  height: 100%;
}

.projectskills {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: left;
  padding-bottom: 18px;
}

.projlink {
  margin-left: auto;
}

.projskill:not(:last-child){
  padding-right: clamp(0px, 1vw, 5px)
}

.projskill p{
  margin: 0;
  padding: 4px;
  border: #5386E4 2px solid;
  border-radius: 10px;
  background-color: #E3F2FD;
  font-size: clamp(8px, 2vw, 12px);
}

.githublink {
  grid-column: 1/8;
  grid-row: 7/8;
  font-size: 20px;
  align-self: start;
  justify-self: center;
}