@font-face {
  font-family: "avenir_lt_pro35_light";
  src: url("../fonts/avenirltprolight-webfont.woff2") format("woff2"),
    url("../fonts/avenirltprolight-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

:root {
  font-family: "avenir_lt_pro35_light", Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;

  --background-clr: #111111;
  --background-clr-shade: #000000;
  --text-clr: rgb(245, 245, 245);
  --accent-clr: #dd4c20;
  --accent-clr-highlight: #f74e1a;

  color-scheme: dark;
  color: var(--text-clr);
  background-color: var(--background-clr);

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Global */
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

section:not(#hero) {
  scroll-margin-top: 8rem;
  margin-bottom: 15vh;
}

html {
  scroll-behavior: smooth;
}

em {
  color: var(--accent-clr);
}

h2 {
  font-size: 4rem;
}

/* Buttons */
button,
.anchorBtn {
  border-radius: 8px;
  border: 1px solid var(--accent-clr);
  padding: 0.6em 1.2rem;
  font-size: 1em;
  font-weight: 500;
  font-family: inherit;
  background-color: transparent;
  color: var(--accent-clr);
  cursor: pointer;
  transition: border-color 0.25s;
}

button:hover,
.anchorBtn:hover {
  border-color: var(--accent-clr-highlight);
  background-color: var(--accent-clr-highlight);
  color: var(--text-clr);
}

button:focus,
button:focus-visible,
.anchorBtn:focus,
.anchorBtn:focus-visible {
  outline: 4px auto -webkit-focus-ring-color;
}

.anchorBtn {
  padding-left: 1.1rem;
}

/* END OF GLOBAL SECTION */

/* Header */
a {
  font-weight: 500;
  color: var(--text-clr);
  text-decoration: inherit;
}

a:hover {
  color: var(--accent-clr-highlight);
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;

  padding: 1rem 0;
  border-bottom: 1px solid var(--text-clr);
  background-color: var(--background-clr);

  position: sticky;
  top: 0;
  z-index: 1;
}

header > nav > *:not(:last-child) {
  margin-right: 1rem;
}

header img {
  max-height: 5rem;
}

/* Hero section */
#hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: calc(100vh - 2rem - 5rem - 1px);
  /* 100vh - header pad top+bot - header img - header border */
}

#hero > img {
  max-width: 600px;
  border-radius: 50%;
  min-width: 0;
}

#hero p {
  max-width: 60ch;
  margin-bottom: 1rem;
}

#enterSymbol {
  font-size: 1.4em;
}
/* END OF HERO SECTION */

/* Projects Section */
#projects > h2 {
  margin-bottom: 2rem;
}

.gridContainer {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-gap: 1rem;
}

.project {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  border: 1px solid var(--text-clr);
  border-radius: 0.5rem;
  padding: 2rem;

  background-color: var(--background-clr-shade);
  box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.137);
}

.project > .links {
  padding-top: 0.5rem;
  border-top: 1px solid var(--accent-clr);
}

.project:hover,
.project:hover .links {
  border-color: var(--accent-clr-highlight);
}

.project > img {
  border: 1px solid var(--text-clr);
  border-radius: 0.5rem;
  min-width: 0;
}

.links {
  display: flex;
  gap: 1rem;
  margin-top: auto;
  align-items: center;
}

.links img {
  max-height: 1.6rem;
}

.links img:hover {
  transform: scale(1.05);
}

.githubProfileLink {
  text-align: center;
  margin: 1.5rem;
}

#githubImg {
  aspect-ratio: 16/8;
  border-color: transparent;
}
/* END OF PROJECT SECTION */

/* About me Section */
#about #aboutLinks img {
  max-height: 3rem;
}

#about p {
  max-width: 60ch;
  margin-bottom: 1rem;
}

#about > .flexContainer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

#about > .flexContainer > img {
  filter: invert(0.935);
  min-width: 0;
  margin-bottom: 1rem;
}
/* END OF ABOUT ME SECTION */

/* Technologies Section */
#tech .flexContainer {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.techItem {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--text-clr);
  border-radius: 0.5rem;
  padding: 0.4rem 0.8rem;
  gap: 0.4rem;
}

.techItem > img {
  height: 1.8rem;
}

.techItem > h3 {
  font-size: 1.1rem;
}
/* END OF Tech section */

/* Contact section */
form {
  display: flex;
  flex-direction: column;
  max-width: 40rem;
  margin: 0 auto;
  border: 1px solid var(--text-clr);
  border-radius: 0.5rem;
  padding: 2rem;
}

form > button {
  border-radius: 0.2rem;
}

form > textarea {
  resize: vertical;
  margin-bottom: 0.6rem;
}

form > label {
  margin-top: 0.4rem;
}

#contact > h2 {
  text-align: center;
}
/* End of Contact section */

/* Footer */
footer {
  padding: 1rem;
  border-top: 1px solid var(--text-clr);
}

footer > .links {
  justify-content: center;
  margin: 0;
}

footer > .links img {
  max-height: 1.3rem;
}
/* End of section footer */

/* MEDIA QUERIES */
@media (max-width: 800px) {
  body {
    padding: 0 1.5rem;
  }

  h2 {
    text-align: center;
    font-size: 2.6rem;
  }

  #tech > .flexContainer {
    justify-content: center;
  }

  #about > .flexContainer {
    flex-direction: column;
    max-width: 60ch;
    margin: 0 auto;
  }

  #about .links {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  header img {
    max-height: 3rem;
  }

  header a {
    font-size: 0.9rem;
  }

  h2 {
    font-size: 2rem;
  }

  #hero {
    height: calc(100vh - 2rem - 3rem - 1px);
    /* 100vh - header pad top+bot - header img - header border */
  }

  #hero {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  #hero img {
    max-width: 300px;
  }

  section:not(#hero) {
    scroll-margin-top: 6rem;
  }
}

@media (max-width: 400px) {
  header img {
    max-height: 2rem;
  }

  header a {
    font-size: 0.8rem;
  }

  header > nav > *:not(:last-child) {
    margin-right: 0.4rem;
  }

  #hero img {
    max-width: 80vw;
  }

  footer {
    font-size: 0.8rem;
  }

  #hero {
    height: calc(100vh - 2rem - 2rem - 1px);
    /* 100vh - header pad top+bot - header img - header border */
  }

  .gridContainer {
    grid-template-columns: 1fr;
  }
}
