@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@400;700&display=swap");

:root {
  --fs-h1: 5rem;
  --fs-h2: 3rem;
  --fs-h3: 1.55rem;
  --fs-h4: 1.2rem;
  --fs-p: 1.5rem;
  --fs-list: 1.2rem;

  --border-radius: 18px;
  --border-radius-small: 8px;

  --color-primary: #859398;
  --color-secondary: #283048;
  --color-background-dark-gray: rgb(16, 16, 18);
  --color-background-light-gray: #f6f6f9;
}

* {
  padding: 0;
  margin: 0;
}

html {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

body, button {
  font-family: 'Oswald', sans-serif;
  background-color: var(--color-background-dark-gray);
}

body::-webkit-scrollbar {
  display: none;
}

section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 2rem;
}

h1 {
  font-size: var(--fs-h1);
}

h2 {
  font-size: var(--fs-h2);
  margin-bottom: 3rem;
}

h3 {
  font-size: var(--fs-h3);
}

h4 {
  font-size: var(--fs-h4);
}

p {
  font-size: var(--fs-p);
}

a {
  color: black;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul {
  list-style-type: none;
  font-size: var(--fs-list);
}

.display-none {
  display: none;
}

.Button {
  display: flex;
  padding: 0.625rem 1.5rem;
  border-radius: var(--border-radius-small);
  border: 1px solid var(--color-secondary);
  background-color: white;
  margin-top: 2rem;
  cursor: pointer;
  align-items: center;
}

.Button:hover {
  background-color: var(--color-background-light-gray);
  box-shadow: -1px 1px 0 0 var(--color-secondary);
  transform: translate(1px, -1px);
}

.Button.disabled {
  opacity: 0.5;
  text-decoration: none;
  cursor: default;
  box-shadow: none;
  transform: none;
}

/*header*/

#header {
  display: flex;
  position: fixed;
  background-color: rgba(0, 0, 0, .4);
  backdrop-filter: blur(10px); 
  width: 100%;
  min-height: 3.2rem;
  z-index: 2;
  justify-content: space-between;
  align-items: center;
}

  #header li {
    display: flex;
    float: left;
  }
    
  #header a {
    color: var(--color-background-light-gray);
    text-align: center;
    font-size: 1.15rem;
    padding: 0.6rem 1.2rem;
  }

  #header.alt:not(.active) {
    background: none;
    backdrop-filter: none; 
  }

  #header.alt:not(.active) #nav-name {
    opacity: 0;
  }

#menu-mobile {
  display: flex;
  width: 20%;
}

#nav-name {
  font-size: 2rem;
  color: white;
  transition: opacity 0.5s ease;
  margin-left: 1rem;
  align-self: center;
}

.nav-label {
  display: none;
  padding: 16px 16px;
}

.nav-label:hover {
  cursor: pointer;
}

.nav-icon, .nav-icon:before,
.nav-icon:after {
  background: #f2f2f2;
  content: '';
  display: block;
  height: 2px;
  width: 18px;
  position: absolute;
  transition: transform 0.2s ease-out, background 0.2s ease-out;
}

.nav-icon {
  position: relative;
}

.nav-icon:before {
  top: -5px;
}

.nav-icon:after {
  top: 5px;
}

#header.active .nav-icon {
  background: transparent;
}

#header.active .nav-icon:before {
  transform: translateY(5px) rotate(45deg);
}

#header.active  .nav-icon:after {
  transform: translateY(-5px) rotate(-45deg);
}

#menu-mobile.active {
  border-bottom: solid 1px black;
}

@media screen and (max-width: 720px) {
  .nav-label {
    display: block;
  }

  #menu-mobile {
    width: 100%;
    justify-content: space-between;
  }

  #header {
    flex-direction: column;
  }

  #header li {
    float: none;
    opacity: 0;
    margin-top: -100%;
    transition: margin-top 0.5s ease-in-out 0.2s, opacity 0.4s;
  }

  #header.active li {
    opacity: 1;
    margin-top: 0;
    border-top: solid 1px rgba(0, 0, 0, 0.08);
    transition: margin-top 0.4s ease-in-out 0s, opacity 0.4s ease-in-out 0.4s;
  }
  
  #header ul {
    width: 100%;
  }

  #header a {
    width: 100%;
    font-size: 1.5rem;
    padding: 1rem 0;
  }
}

/*home section*/

#home-section{
  flex-direction: row;
  text-align: right;
  background-color: black;
  box-shadow: 0 30px 20px rgba(0, 0, 0, 0.87);
  color: var(--color-primary);
}
  #home-section img {
    pointer-events: none;
    background: linear-gradient(to top, var(--color-primary), #283048);
    max-width: 26rem;
    border-radius: var(--border-radius);
    margin: 4rem 4rem;
    transition: opacity 1s ease-in-out;
    transition-delay: 0.5s;
  }

  #home-section h1{
    transition: opacity 0.8s ease, transform 0.8s ease, filter 0.25s ease;
    transform: translateX(0);
    transition-delay: 1.25s;
    filter: blur(0);
    opacity: 1;
  }

  #home-section h2 {
    transition: opacity 0.8s ease, transform 0.8s ease, filter 0.25s ease;
    transform: translateX(0);
    transition-delay: 1.5s;
    filter: blur(0);
    opacity: 1;
  }

  #home-section.hidden img {
    opacity: 0;
  }

  #home-section.hidden h1 {
    opacity: 0;
    transform: translateX(0.25em);
    filter: blur(2px);
  }

  #home-section.hidden h2 {
    opacity: 0;
    transform: translateX(0.25em);
    filter: blur(2px);
  }

@media screen and (max-width: 720px) {
  #home-section{
    flex-direction: column-reverse;
    text-align: center;
  }
}

/*About me section*/

#about-me-section {
  color: var(--color-primary);
}
  
#about-me-text {
  max-width: 64rem;
  background-color: black;
  padding: 2rem;
  border-radius: var(--border-radius);
}

/*Project section*/

#projects-section {
  background-color: white;
}

.project {
  max-width: 68rem;
  width: 100%;
}

.project-image {
  position: absolute;
  margin-left: 0;
  transition: margin 0.6s;
}

.project-image.left  {
  margin-left: -100%;
}

.project-image.right {
  margin-left: 100%;
}

.project-text {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

#project-code {
  align-self: center;
  font-size: 1.2rem;
  color: rgb(78, 149, 139);
}

#project-description {
  width: 40rem
}

#project-image-border {
  width: 100%;
  border-radius: var(--border-radius);
  background-color: black;
  padding: 0.5rem 0.4rem;
}

#project-image-inner-border {
  display: flex;
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  align-items: center;
  padding: 29.2% 0;
}

  #project-image-inner-border img {
    width: 100%;
    max-height: 100%;
    object-fit: contain;
  }

.project-buttons {
  display: flex;
  margin-top: 1rem;
  justify-content: space-between;
}

.project-buttons div {
  display: flex;
  align-items: center;
}

.project-buttons .Button {
  margin: 0 1rem;
}

@media screen and (max-width: 560px) {
  #project-description {
    width: 24rem
  }
}

/* skills section */

#skills-section {
  min-height: 60vh;
  background-color: var(--color-background-light-gray);
}

#skills-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 2rem;
}

.skills-column {
  background-color: white;
  padding: 1rem 1.7rem;
  margin: 1rem 0;
  border-radius: var(--border-radius);
}

.next-skill {
  margin-top: 1rem;
}

@media screen and (max-width: 980px) {
  #skills-container {
    grid-template-columns: 1fr;
  }
}

/*Contact section*/

#contact-section {
  background-color: white;
  min-height: 30vh;
}

#contact-container {
  display: flex;
}

.contact {
    display: flex;
    flex-direction: column;
    background-color: var(--color-background-light-gray);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    margin: 0 1rem;
    font-size: 1.2rem;
}

/*footer*/

footer {
  color: var(--color-primary);
  text-align: center;
  padding: 0.5rem 0;
}

/*Screen sizing*/

@media screen and (max-width: 1920px) {
  :root {
    font-size: 14px;
  }
}

@media screen and (max-width: 1680px) {
  :root {
    font-size: 12px;
  }
}

@media screen and (max-width: 1280px) {

  :root {
    font-size: 10px;
  }
}

@media screen and (max-width: 980px) {
  :root {
    font-size: 10px;
  }

  #contact-container {
    grid-template-columns: 1fr;
  }
}