:root{
  --dark: black;
  --color-1: white;
  --color-2: #003249;
  --color-2-light: #00324988;
  --color-3: #0d5c63;
  --color-4: #247b7b;
  --color-5: #004346;
  --color-5-light: #00434688;
}

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,body,#navbar{
  min-width: 480px;
}

body{
  overflow-x: hidden;
}

h1,h2,h3,p{
  color: white;
  font-family: Bahnschrift,sans-serif;
}

.project-header{
  display: flex;
  flex-direction: column;
  height: auto;
  width: 100%;
  gap: 15px;
  padding-top: 20px;
  margin-bottom: 20px;
}

.section-title{
  display: inline-block;
  width: auto;
  margin-left: auto;
  margin-right: auto;
  border-bottom: 4px solid var(--color-3);
}

.section-title-text{
  font-size: 4rem;
}

.section-subtitle{
  display: inline-block;
  width: auto;
  margin-left: auto;
  margin-right: auto;
}

.section-subtitle-text{
  text-align: center;
  font-size: clamp(2rem, 1.248rem + 1.57vw, 2.5rem);
}

/*NAVBAR*/
.nav-link{
  text-decoration: none;
  color: white;
  font-size: 1.5rem;
  font-family: arial;
  font-weight: 100;
  letter-spacing: 2px;
  padding: 12.5px;
  border-radius: 5px;
  background-color: var(--color-3);
  transition: transform 2s ease;
}

.nav-link:hover{
  background-color: var(--color-5);
  transform: scale(1.1);
  box-shadow: 0 0 5px 5px var(--color-4);
}

.nav-link:active{
  background-color: var(--color-3);
}

#navbar{
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  height: 90px;
  width: 100%;
  position: fixed;
  z-index: 1;
  background-color: var(--color-2);
  border-bottom: 4px solid var(--color-3);
}

/*WELCOME SECTION*/

#empty-space{
  height: 94px;
  width: 100%;
}

#welcome-section{
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(100vh - 94px);
  width: 100%;
  background: linear-gradient(
    45deg,
    var(--color-2),
    var(--color-1)
  );
  border-bottom: 2px solid white;
}

#welcome-container{
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 30px;
  height: 315px;
  width: 75%;
  padding: 10px;
  border-radius: 5%;
  animation: shine 5s ease-in-out infinite 0ms;
}

@keyframes shine{
  0%{
    background-color: var(--color-2-light);
  }
  50%{
    background-color: var(--color-5-light);
  }
  100%{
    background-color: var(--color-2-light);
  }
}

#welcome-section h1,#welcome-section h2{
  font-family: Cascadia Code,sans-serif;
  color: var(--color-1);
}

#welcome-section h1{
  display: inline;
  height: auto;
  width: auto;
  font-size: clamp(1.5rem, 0.667rem + 2.78vw, 2rem);
}

#h1-main{
  font-size: clamp(3rem, -0.333rem + 11.11vw, 5rem);
}

#text-animation{
  animation: text 10s ease-in-out infinite 0ms;
}

@keyframes text{
  0%{
    color: white;
  }
  50%{
    color: #c0fdfb;
    font-size: clamp(3.5rem, 0.167rem + 11.11vw, 5.5rem);
    font-weight: 800;
  }
  100%{
    color: white;
  }
}

#welcome-section h2{
  font-size: clamp(1.3rem, 0.133rem + 3.89vw, 2rem);
}

#empty-nav-space-1{
  position: absolute;
  height: 90px;
  width: 200px;
  bottom: 0;
}

/*PROJECT SECTION*/

#projects{
  height: auto;
  width: 100%;
  background: linear-gradient(
    var(--color-4),
    var(--color-5)
  );
  border-bottom: 2px solid white;
}

.project-tile{
  display: grid;
  grid-template-columns: 50% 50%;
  grid-template-rows: 50% 50%;
  height: clamp(40.625rem, 26.517rem + 29.35vw, 50rem);
  width: clamp(41.25rem, -9.54rem + 105.68vw, 75rem);
  border: 2px solid #ffffff10;
  margin-left: auto;
  margin-right: auto;
  padding: 15px;
}

.project{
  background-color: var(--color-2);
  border-radius: 2%;
  margin: 10px;
  transition: transform 0.5s ease-in-out 0ms;
}

.one{
  grid-area: 1 / 1 / 2 / 2;
}

.two{
  grid-area: 1 / 2 / 2 / 3;
}

.three{
  grid-area: 2 / 1 / 3 / 2;
}

.four{
  grid-area: 2 / 2 / 3 / 3;
}

.project-image.project1{
  display: block;
  width: 98%;
  background: url(https://i.ibb.co/fGrRK02b/projectimage-1.png);
  height: clamp(15rem, 9.827rem + 10.76vw, 18.438rem);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 2%;
  margin-left: auto;
  margin-right: auto;
  margin-top: 5px;
}

.project-image.project2{
  display: block;
  width: 98%;
  background: url(https://i.ibb.co/SwWXVQZg/projectimage-2.png);
  height: clamp(15rem, 9.827rem + 10.76vw, 18.438rem);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 2%;
  margin-left: auto;
  margin-right: auto;
  margin-top: 5px;
}

.project-image.project3{
  display: block;
  width: 98%;
  background: url(https://i.ibb.co/cSkchxbg/projectimage-3.png);
  height: clamp(15rem, 9.827rem + 10.76vw, 18.438rem);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 2%;
  margin-left: auto;
  margin-right: auto;
  margin-top: 5px;
}

.project-image.project4{
  display: block;
  width: 98%;
  background: url(https://i.ibb.co/S4nRPJkF/projectimage-4.png);
  height: clamp(15rem, 9.827rem + 10.76vw, 18.438rem);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 2%;
  margin-left: auto;
  margin-right: auto;
  margin-top: 5px;
}

.project-title{
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  height: calc(100% - clamp(15rem, 9.827rem + 10.76vw, 18.438rem) - 10px);
  margin-left: auto;
  margin-right: auto;
  width: 95%;
}

.project-title-text{
  font-size: clamp(1.2rem, -0.004rem + 2.5vw, 2rem);
  text-align: center;
}

#title-pj3{
  font-size: clamp(1rem, -0.505rem + 3.13vw, 2rem);
}

.Icon-arrow{
  height: clamp(1.2rem, -0.004rem + 2.5vw, 2rem);
  width: auto;
  border-radius: 50%;
  box-shadow: 0 0 5px 5px var(--color-3);
  opacity: 0%;
  transition: opacity 0.9s ease;
}

.Icon-arrow.right{
  margin-left: 10px;
}

.Icon-arrow.left{
  margin-right: 10px;
}

.project:hover{
  transform: scale(1.01);
}

.project:hover .Icon-arrow{
  opacity: 100%;
}

#profile-link{
  margin-left: auto;
  margin-right: auto;
  margin-top: 40px;
}

#empty-nav-space-2{
  position: relative;
  height: 90px;
  width: 200px;
  bottom: 0;
  margin-left: auto;
  margin-right: auto;
}

/*CONTACT SECTION*/

#contact{
  width: 100%;
  height: auto;
  background: linear-gradient(
    var(--color-2),
    var(--color-5) 60%
  );
  border-bottom: 2px solid white;
}

#contact-list{
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-evenly;
  gap: 5px;
  height: auto;
  width: 80%;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

.contact{
  display: flex;
  flex-direction: row;
  gap: 5px;
  width: fit-content;
  background-color: var(--color-3);
  padding: 10px;
  border-radius: 5px;
  border: 2px solid var(--color-2);
  transition: transform 1s ease-in-out;
  text-decoration: none;
}

.contact:hover{
  cursor: pointer;
  transform: scale(1.1);
}

.contact-icon{
  height: 2rem;
}

.contact-link{
  font-size: 2rem;
}

/*FOOTER*/

footer{
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-2);
  height: 75px;
  width: 100%;
}

footer p{
  font-size: 1.5rem;
}

/*MEDIA*/

@media(prefers-reduced-motion: no-preference){
  *{
    scroll-behavior: smooth
  };
}

@media(max-width:768px){
  /*PROJECTS*/
  .project-tile{
    display: grid;
    grid-template-columns: 100%;
    grid-template-rows: 25% 25% 25% 25%;
    height: 1300px;
    width: 90%;
  }
  .project-image{
    height: 240px;
  }
  .one{
  grid-area: 1 / 1 / 2 / 2;
  }

  .two{
  grid-area: 2 / 1 / 3 / 2;
  }

  .three{
  grid-area: 3 / 1 / 4 / 2;
  }

  .four{
  grid-area: 4 / 1 / 5 / 2;
  }

  .project-title-text{
  font-size: 1.5rem;
  }

  #title-pj3{
    font-size: 1.3rem;
  }

  /*CONTACT*/
  #contact-list{
  justify-content: center;
  }
  /*FOOTER*/
  footer p{
  font-size: clamp(1rem, 0.167rem + 2.78vw, 1.5rem);
  }
}