* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html,
body {
  height: auto;
}

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 2.4rem;
}

h3 {
  font-size: 1.9rem;
}

h4 {
  font-size: 1.5rem;
}

p {
  font-size: 1.5em;
}

a {
  color: #F3F4F4;
  text-decoration: none;
}

body {
  min-height: 100%;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  color: bisque;
}

.header {
  padding: 1%;
  width: 100%;
  align-items: center;
  display: flex;
  justify-content: space-between;
  background-color: #072330;
}

#logo {
  font-size: 3em;
  text-decoration: none;
  display: flex;
  align-items: center;
  padding: 2% 5%;
  font-weight: bolder;
}

.nav {
  width: 50%;
}

.nav-links a {
  display: inline-block;
  text-decoration: none;
  font-size: 1.4em;
  transition: transform 0.3s ease, color 0.2s ease;
}

.nav-links:hover a {
  opacity: 0.1;
}

.nav-links a:hover {
  transform: scale(1.5);
  opacity: 1;
  text-decoration: underline;
}

.nav-links {
  list-style: none;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  width: 100%;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5%;
  background-color: #061E29;
  flex: 1;
}

.hero-left,
.hero-right {
  width: 50%;
}

.hero-left h1 {
  font-size: 4.5em;
}

.hero-right {
  display: flex;
  justify-content: center;
}

.hero-img {
  width: 55%;
  background-color: rgba(95, 149, 152, 0.1);
  border-radius: 10%;
}

.sect {
  background-color: #061E29;
}

.sect p {
  text-align: center;
  margin: 5%;
}

.misc {
  display: flex;
  justify-content: space-evenly;
  background-color: #061E29;
  padding: 5%;
}

.misc h3 {
  color: beige;
  transition: transform 0.3s ease, color 0.2s ease;
}

.misc h3:hover {
  transform: scale(1.5);
}

.about {
  padding: 5%;
  background-color: #061E29;
}

.about div {
  margin: 2%;
}

.about h1 {
  text-align: center;
}

.about p {
  text-align: justify;
}

.projects {
  background-color: #061E29;
}

.project-card {
  background-color: #0c2530;
  margin: 5%;
  border: solid black 0.15em;
}

.projects h2,
p {
  margin: 5%;
}

.project-header {
  text-align: center;
}

.projects p {
  font-size: 1.4em;
  text-align: justify;
}

.project-content {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}

.project-content div {
  margin: 2%;
}

.project-img img {
  width: 13em;
  border: solid black 0.3em;
}

.project-footer h3 {
  text-align: center;
  font-size: 2em;
}

.project-download {
  display: flex;
  justify-content: space-evenly;
  margin: 5%;
}

.project-download img {
  width: 7em;
  transition: transform 0.3s ease, color 0.2s ease;
}

.project-download img:hover {
  transform: scale(1.3);
}

#timeline-title {
  text-align: center;
  margin: 5%;
}

.contact-container {
  background-color: #061E29;
  overflow-x: hidden;
}

.contact {
  margin: 5%;
  text-align: center;
}

.contact-info {
  padding: 5%;
}

.contact-info h2,
a {
  text-align: center;
}

.contact-cv {
  text-align: center;
}

.contact-container a p {
  transition: transform 0.2s ease;
}

.contact-container a p:hover {
  transform: scale(1.3);
}

.footer {
  display: flex;
  background-color: #051923;
  justify-content: center;
}

.footer img {
  width: 5em;
}

.footer a {
  display: flex;
  justify-content: center;
}

/* For mobile devices */
@media (max-width: 900px) {
  .header {
    justify-content: center;
  }

  #logo {
    text-align: center;
  }

  .nav {
    display: none;
  }

  .hero {
    flex-direction: column;
    align-items: flex-start;
    min-height: auto;
  }

  .hero-left,
  .hero-right {
    width: 100%;
  }

  .hero-left {
    text-align: center;
  }

  .hero-right {
    justify-content: center;
    margin-top: 5%;
  }

  .hero-img {
    width: min(280px, 80vw);
  }

  .hero-left h1 {
    font-size: 4em;
  }

  .misc {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .misc h3 {
    margin: 5%;
  }

  .misc h3:hover {
    transform: scale(1.3);
  }

  .misc a {
    margin: 5%;
  }

  .project-footer {
    display: none;
  }

  .project-content {
    display: block;
    text-align: center;
  }

  .contact p {
    text-align: justify;
  }

  .contact, .contact-info {
    margin: 5%;
  }

  .contact-info {
    padding: 0;
  }
}