@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Vollkorn:wght@600&display=swap');

:root {
  --background-colour: rgb(16, 14, 14);
  --border-colour: rgb(255, 255, 255, 0.1);
  --hover-colour: rgb(0, 153, 255);
}

body {
  background-color: var(--background-colour);
  display: flex;
  flex-direction: column;
  height: 100svh;
  margin: 0;
}

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

* {
  box-sizing: border-box;
  -ms-overflow-style: none;
  scrollbar-width: none;
  overflow-y: scroll;
}

h1, h2, h3, h4, a {
  font-family: Ubuntu, sans-serif;
  letter-spacing: 0.1em;
  color: white;
}

p, span {
  font-family: Vollkorn, serif;
  letter-spacing: 0.04em;
  color: white;
}

h1 {
  font-size: 2.8rem;
}

h2 {
  font-size: 2.5em;
}

h2 span {
  font-family: Ubuntu, sans-serif;
}

h3 {
  padding-top: 1rem;
  font-size: 1.8em;
}

h4 {
  font-size: 1.2rem;
  font-style: italic;
}

a {
  font-size: 1.5rem;
  text-decoration: none;
}

#about-info a {
  font-size: 1em;
  font-family: Vollkorn, serif;
  color: var(--hover-colour);
  text-decoration: underline;
}

i {
  display: flex;
  justify-content: center;
  align-items: center;
}

.strong-highlight {
  color: var(--hover-colour);
}

address a {
  font-size: 1.25em;
  font-family: Vollkorn, serif;
  color: var(--hover-colour);
  text-decoration: underline;
}

a:hover {
  color: var(--hover-colour);
}

a.clicked {
  color: var(--hover-colour);
}

/* nav */

nav {
  display: flex;
  border-bottom: 1px solid var(--border-colour);
  min-height: 120px;
  z-index: 2;
}

#nav-logo {
  flex-basis: calc(100% / 4);
  border-left: none;
}

.nav-png {
  height: 100px;
  max-width: 100px;
}

#nav-links {
  gap: 6rem;
  flex-grow: 1;
  justify-content: flex-end;
}

.nav-section {
  padding: 2rem 3rem;
  display: flex;
  gap: 1rem;
  border-left: 1px solid var(--border-colour);
  align-items: center;
  justify-content: center;
}

#nav-button i {
  font-size: 1.5em;
}

#nav-button span {
  font-size: 1.5em;
  font-family: Ubuntu, sans-serif;
}

#nav-button { 
  align-items: center;
  background-color: transparent;
  border: none;
  color: white;
  cursor: pointer;
  display: none;
  gap: 0.8rem;
  height: 100%;
  justify-content: center;
  outline: none;
  padding: 0 3rem;
  position: relative;
  z-index: 3;
}

#nav-toggle-button > span,
#nav-toggle-button > i { 
  display: inline-block;
  height: 1rem;
  line-height: 1rem;
}

#nav-button:hover, #nav-button:hover > span {
  color: var(--hover-colour) !important;
}

/* main */
main {
  flex-grow: 1;
  scroll-behavior: smooth;
}

/* main - about */
#typing-effect-original {
  margin: 0;
}

#about-content {
  display: flex;
  min-height: 100%;
  margin-inline: auto;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

#about-section { 
  display: flex;
  flex-direction: column;
  max-width: 75rem;
  text-align: left;
  padding: 20px;
}

#about-short-greeting {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#about-contact {
  display: flex;
  gap: 1em;
  align-items: center;
}

.mail {
  font-size: 3.5em; 
  padding-left: 20px;
  border-left: 1px solid var(--border-colour);
  color: white;
}

.linkedin {
  font-size: 4em;
  padding-right: 10px;
}

#about-png {
  max-width: 300px;
  height: auto;
  border-radius: 50%;
  border: 10px solid var(--border-colour);
}

#about-section p {
  margin-top: 2rem;
  font-size: 1.25em;
  line-height: 1.7em;
}

#about-info {
  font-style: italic;
  border: 1px solid var(--border-colour);
  margin-top: 2rem;
}

#about-info p {
  padding: 4rem;
  margin: 0;
}

/* main - projects */
#main-content {
  display: flex;
  min-height: 100%;
  margin-inline: auto;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  border-top: 1px solid var(--border-colour);
}

#main-section {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  max-width: 75rem;
  padding: 20px;
  gap: 2rem;
}

#main-section a {
  font-size: 1em;
}

.project-image {
  max-width: 300px;
  height: auto;
}

a h4 {
  font-size: 1em;
}

a p {
  font-size: 0.9em;
}

.project-card {
  border: 1px solid var(--border-colour);
  flex-basis: calc(100% / 4);
  max-width: 100%;
  max-height: 400px;
  display: flex;
  flex-direction: column;
  padding: 2rem;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: var(--hover-colour);
  margin-top: 1.5rem;
}

.tech-stack i {
  font-size: 2.25em;
}

.github-card {
  align-items: center;
  justify-content: center;
  text-align: center;
}

.github {
  font-size: 10em;
  color: white;
}

.github-card h2 {
  margin-bottom: 0;
}

@media(max-width: 1404px) {
  #about-section { 
    max-width: 60rem;
  }

  #about-styling h2{
    font-size: 1.8em;
  }

  #about-styling p{
    font-size: 1em;
  }

  #about-styling h3{
    font-size: 1.6em;
  }

  .linkedin {
    font-size: 3em;
  }

  .mail {
    font-size: 2.5em;
  }

  #about-section p {
    font-size: 1em;
  }

  #about-png {
    max-width: 230px;
    border: 6px solid var(--border-colour);
  }
  
  #main-section {
    max-width: 60rem;
  }
  
  .tech-stack i {
    font-size: 2em;
  }
}

@media(max-width: 1100px) {
  #about-section { 
    max-width: 45rem;
  }

  #about-styling h2{
    font-size: 1.5em;
  }

  #about-styling p{
    font-size: 1em;
  }

  #about-styling h3{
    font-size: 1.4em;
  }

  address a {
    font-size: 1em;
  }

  .linkedin {
    font-size: 2em;
  }

  .mail {
    font-size: 1.5em;
  }

  #about-section p {
    font-size: 1em;
  }

  #about-info p {
    padding: 3rem;
  }

  #main-section {
    max-width: 45rem;
  }
  
  #main-section a {
    font-size: 0.75em;
  }

  .project-image {
    max-width: 250px;
    height: auto;
  }
  
  .tech-stack {
    font-size: 0.63rem;
  }
}

@media(max-width: 900px) {
  .nav-png {
    height: 60px;
    max-width: 60px;
  }

  .nav-section a {
    font-size: 1em;
  }

  #about-section { 
    max-width: 35rem;
  }

  #about-styling h2{
    font-size: 1em;
  }

  #about-styling h3{
    font-size: 0.9em;
  }

  address a {
    font-size: 0.7em;
  }

  .linkedin {
    font-size: 1.6em;
    padding-right: 0;
  }

  .mail {
    font-size: 1.4em;
    padding-left: 15px;
  }

  #about-section p {
    font-size: 0.75em;
  }

  #about-png {
    max-width: 150px;
    border: 6px solid var(--border-colour);
  }

  #main-section {
    display: flex;
    flex-direction: column;
    max-width: 35rem;
  }

  .project-card > a {
    display: flex;
  }

  .project-image {
    max-width: 125px;
    height: auto;
  }

  a h4 {
    font-size: 1em;
    margin-top: 0.5rem;
  }
  
  a p {
    font-size: 0.9em;
    margin: 0;
  }
  
  .tech-stack {
    margin-top: 0;
    font-size: 0.75rem;
    max-width: 7.5rem;
    justify-content: center;
    align-items: center;
  }

  .github-card {
    align-items: center;
    justify-content: space-around;
  }

  .github {
    font-size: 6.5em;
    color: white;
  }
  
  .github-card h2 {
    font-size: 1.75em;
  }

  #github-msg {
    max-width: 15rem;
  }
}

@media(max-width: 682px) {
  nav {
    justify-content: space-between;
  }

  nav[data-toggled="true"] > #nav-links {
    transform: translateY(0%)
  }

  nav[data-transitionable="true"] > #nav-links {
    transition: transform 400ms ease;
  }

  #nav-logo {
    border-right: 1px solid var(--border-colour);
    flex-basis: calc(100% * 0.33);
  }

  #nav-links {
    background-color: var(--background-colour);
    flex-direction: column;
    height: 100vh;
    width: 100vw;
    position: fixed;
    transform: translateY(-100%);
    justify-content: center;
  }

  #nav-button {
    display: flex;
  }
  
  .nav-section {
    padding: 1rem;
    display: flex;
    gap: 1rem;
  } 
  
  .nav-section a {
    font-size: 1.5em;
  }

  #about-content {
    height: auto;
  }

  #about-section { 
    max-width: 27rem;
    position: relative;
  }

  #about-short-greeting {
    flex-direction: column;
    margin: 0;
    justify-content: center;
    align-items: center;
    position: relative;
  }

  #about-png {
    max-width: 115px;
    position: absolute;
    top: 40%;
    left: 85%;
    transform: translateX(-50%);
    z-index: 1;
  }

  #about-styling h2{
    font-size: 1.3em;
  }

  #about-styling h3{
    font-size: 1.1em;
  }

  address a {
    font-size: 0.9em;
  }

  .linkedin {
    font-size: 1.7em;
    padding-right: 0;
  }

  .mail {
    font-size: 1.6em;
    padding-left: 15px;
  }

  #about-styling p {
    font-size: 0.9em;
  }

  #about-info p{
    font-size: 0.8em;
  }
}

@media(max-width: 480px) {
  #about-section { 
    max-width: 22rem;
  }

  #about-styling h2{
    font-size: 1em;
  }

  #about-styling h3{
    font-size: 0.8em;
  }

  address a {
    font-size: 0.75em;
  }

  #about-png {
    max-height: 80px;
    max-width: 80px;
    top: 42.5%;
    left: 85%;
  }

  .linkedin {
    font-size: 1.8em;
    padding-right: 0;
  }

  .mail {
    font-size: 1.5em;
    padding-left: 15px;
  }

  #about-styling p {
    font-size: 0.9em;
  }

  #about-info p{
    font-size: 0.75em;
    padding: 2rem;
  }

  .github {
    font-size: 4em;
  }
  
  .github-card h2 {
    font-size: 1.2em;
  }

  #github-msg {
    max-width: 10rem;
  }
}

@media(max-width: 380px) {
  .linkedin {
    font-size: 1.7em;
  }

  #about-png {
    max-height: 75px;
    max-width: 75px;
  }
}

@media(max-width: 320px) {
  #about-png {
    top: 55%;
    left: 85%;
  }

  .github {
    font-size: 3em;
  }
  
  .github-card h2 {
    font-size: 1em;
    margin-left: 0.5rem;
  }

  #github-msg {
    max-width: 7.5rem;
  }
}