@import url("https://fonts.googleapis.com/css2?family=Alata&family=Josefin+Sans:ital,wght@0,100..700;1,100..700&display=swap");
/* https://piccalil.li/blog/a-more-modern-css-reset/ */
/* Box sizing rules */
*,
*::before,
*::after {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

/* Prevent font size inflation */
html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

/* Remove default margin in favour of better control in authored CSS */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin-block-end: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role=list],
ol[role=list] {
  list-style: none;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  line-height: 1.5;
}

/* Set shorter line heights on headings and interactive elements */
h1,
h2,
h3,
h4,
button,
input,
label {
  line-height: 1.1;
}

/* Balance text wrapping on headings */
h1,
h2,
h3,
h4 {
  text-wrap: balance;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
  color: currentColor;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

/* Make sure textareas without a rows attribute are not tiny */
textarea:not([rows]) {
  min-height: 10em;
}

/* Anything that has been anchored to should have extra scroll margin */
:target {
  scroll-margin-block: 5ex;
}

/* Primary */
body {
  font-family: "Alata", sans-serif;
}

h1,
h2,
h3 {
  font-family: "Josefin Sans", sans-serif;
  font-weight: 300;
}

h2,
h3 {
  color: hsl(0, 0%, 0%);
}

.headlines {
  font-size: 2.5rem;
}

.sidebar-list {
  font-family: "Josefin Sans", sans-serif;
  font-weight: 300;
  font-size: 1.5rem;
  text-transform: uppercase;
}

.about {
  text-align: center;
}

.title {
  text-align: center;
  text-transform: uppercase;
  font-size: 2rem;
}

.subtitle {
  color: hsl(0, 0%, 55%);
  font-size: 1rem;
}

.projects-button {
  text-transform: uppercase;
  letter-spacing: 0.5rem;
  font-weight: 400;
}

.card h3 {
  color: hsl(0, 0%, 100%);
  text-transform: uppercase;
  font-size: 1.5rem;
}

.copyright {
  font-family: "Josefin Sans", sans-serif;
  color: hsl(0, 0%, 55%);
}

body {
  background-color: hsl(0, 0%, 100%);
  color: hsl(0, 0%, 100%);
  overflow-x: hidden;
}

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

ol,
li {
  list-style: none;
}

button {
  background-color: inherit;
  border: none;
}

header {
  position: absolute;
  z-index: 10;
  width: 100%;
  top: 0;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
@media only screen and (min-width: 37.5rem) {
  header {
    padding-inline: 2rem;
    left: 50%;
    transform: translate(-50%);
  }
}
@media only screen and (min-width: 64rem) {
  header {
    max-width: 78rem;
    padding-block: 3rem;
  }
}

footer {
  background-color: hsl(0, 0%, 0%);
}

.hero-banner {
  position: relative;
  background-image: url("../images/mobile/image-hero.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 100svh;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-block-end: 6rem;
}
.hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.3);
}
.hero-banner .container {
  position: relative;
}
.hero-banner .container .headlines {
  max-width: 370px;
  border: 1px solid hsl(0, 0%, 100%);
  padding: 1.5rem;
}
@media only screen and (min-width: 37.5rem) {
  .hero-banner {
    background-image: url("../images/desktop/image-hero.jpg");
    background-position: center;
    min-height: 75svh;
  }
  .hero-banner .container .headlines {
    margin-inline-start: 2rem;
  }
}
@media only screen and (min-width: 64rem) {
  .hero-banner {
    min-height: 90svh;
  }
  .hero-banner .container {
    max-width: 78rem;
    width: 100%;
  }
  .hero-banner .container .headlines {
    max-width: 550px;
    font-size: 4rem;
  }
}

.navbar {
  display: none;
}
.navbar .nav-link::after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  background-color: hsl(0, 0%, 100%);
  margin: auto;
  transition: 0.3s ease-in-out;
}
@media only screen and (min-width: 48rem) {
  .navbar {
    display: block;
  }
  .navbar .nav-list {
    display: flex;
    align-items: center;
    column-gap: 1.5rem;
  }
}

.sidebar {
  opacity: 0;
  transform: translateX(-100%);
  position: absolute;
  z-index: 999;
  top: 1.5rem;
  width: 100%;
  height: 100svh;
  background-color: hsl(0, 0%, 0%);
  margin: -1.5rem;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  transition: all 0.5s;
  visibility: hidden;
}
.sidebar .sidebar-header {
  position: absolute;
  top: 1.5rem;
  width: calc(100% - 3rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sidebar .sidebar-list {
  display: flex;
  flex-direction: column;
  align-items: start;
  row-gap: 1rem;
}
.sidebar .sidebar-list .sidebar-link::after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  margin-inline: auto;
  background-color: hsl(0, 0%, 100%);
  transition: 0.3s ease-in-out;
}
@media only screen and (min-width: 37.5rem) {
  .sidebar {
    top: 2rem;
    margin: -2rem;
    padding-block: 5rem 2rem;
    padding-inline: 2rem;
    height: 75svh;
  }
  .sidebar .sidebar-header {
    top: 2rem;
    width: calc(100% - 4rem);
  }
}

.about {
  position: relative;
  padding-inline: 1.5rem;
  margin-block-end: 6rem;
}
.about .illustration {
  margin-inline: auto;
}
.about .container {
  padding-inline: 1rem;
}
.about .container .title {
  margin-block: 2.5rem 1rem;
}
@media only screen and (min-width: 37.5rem) {
  .about {
    padding-inline: 2.5rem;
  }
}
@media only screen and (min-width: 48rem) {
  .about .container {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: hsl(0, 0%, 100%);
    max-width: 500px;
    text-align: left;
    padding-inline: 4rem 2rem;
  }
  .about .container .title {
    text-align: left;
    font-size: 2.5rem;
  }
}
@media only screen and (min-width: 64rem) {
  .about {
    max-width: 78rem;
    margin-inline: auto;
  }
  .about .illustration {
    margin-inline: 0;
  }
  .about .container {
    padding-block-start: 2rem;
  }
  .about .container .title {
    text-align: left;
    font-size: 2.5rem;
  }
}
@media only screen and (min-width: 78rem) {
  .about .container {
    max-width: 625px;
    padding-inline: 8rem 2rem;
    padding-block-start: 3rem;
  }
  .about .container .title {
    text-align: left;
    font-size: 3.5rem;
  }
}

.projects {
  padding-inline: 1.5rem;
  margin-block-end: 6rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  row-gap: 1.5rem;
}
.projects .title {
  margin-block-end: 2rem;
}
.projects .card-list {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  justify-content: center;
  align-items: center;
  row-gap: 1.5rem;
}
@media only screen and (min-width: 37.5rem) {
  .projects {
    padding-inline: 2.5rem;
  }
}
@media only screen and (min-width: 48rem) {
  .projects .flex-row-between {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-block-end: 2rem;
  }
  .projects .flex-row-between .title {
    margin-block-end: 0;
  }
  .projects .flex-row-between .button-tablet {
    display: block;
  }
  .projects .card-list {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 1.5rem;
  }
}
@media only screen and (min-width: 64rem) {
  .projects {
    max-width: 78rem;
    margin-inline: auto;
  }
  .projects .card-list {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media only screen and (min-width: 78rem) {
  .projects .card-list {
    grid-template-columns: repeat(4, 1fr);
  }
}

.hamburger-button {
  cursor: pointer;
}

.close-button {
  cursor: pointer;
}

.projects-button {
  padding: 1rem 2rem;
  border: 1px solid hsl(0, 0%, 0%);
  cursor: pointer;
  transition: 0.3s ease-in-out;
}

.button-tablet {
  display: none;
}

@media only screen and (min-width: 48rem) {
  .hamburger-button {
    display: none;
  }
  .button-mobile {
    display: none;
  }
}
.card {
  position: relative;
  width: 100%;
  height: 120px;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  align-items: end;
}
.card::before {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  content: "";
  display: block;
  height: 100%;
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
  transition: background-color 0.3s ease-in-out;
}
.card h3 {
  position: absolute;
  width: 175px;
  padding-block: 3rem 1rem;
  padding-inline: 1rem;
  transition: 0.3s ease-in-out;
}
.card.card-deep-earth {
  background-image: url("../images/mobile/image-deep-earth.jpg");
}
.card.card-night-arcade {
  background-image: url("../images/mobile/image-night-arcade.jpg");
}
.card.card-soccer-team {
  background-image: url("../images/mobile/image-soccer-team.jpg");
}
.card.card-the-grid {
  background-image: url("../images/mobile/image-grid.jpg");
}
.card.card-from-above {
  background-image: url("../images/mobile/image-from-above.jpg");
}
.card.card-pocket-borealis {
  background-image: url("../images/mobile/image-pocket-borealis.jpg");
}
.card.card-the-curiosity {
  background-image: url("../images/mobile/image-curiosity.jpg");
}
.card.card-fisheye {
  background-image: url("../images/mobile/image-fisheye.jpg");
}

@media only screen and (min-width: 48rem) {
  .card {
    height: 480px;
  }
  .card h3 {
    width: 100%;
    font-size: 2rem;
    padding-inline: 2.5rem;
    padding-block-end: 1.5rem;
  }
  .card.card-deep-earth {
    background-image: url("../images/desktop/image-deep-earth.jpg");
  }
  .card.card-night-arcade {
    background-image: url("../images/desktop/image-night-arcade.jpg");
  }
  .card.card-soccer-team {
    background-image: url("../images/desktop/image-soccer-team.jpg");
  }
  .card.card-the-grid {
    background-image: url("../images/desktop/image-grid.jpg");
  }
  .card.card-from-above {
    background-image: url("../images/desktop/image-from-above.jpg");
  }
  .card.card-pocket-borealis {
    background-image: url("../images/desktop/image-pocket-borealis.jpg");
  }
  .card.card-the-curiosity {
    background-image: url("../images/desktop/image-curiosity.jpg");
  }
  .card.card-fisheye {
    background-image: url("../images/desktop/image-fisheye.jpg");
  }
}
footer .container {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  justify-items: center;
  align-items: center;
  padding: 2.5rem;
  margin-inline: auto;
}
footer .footer-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 1rem;
  margin-block: 1.5rem;
}
footer .footer-nav .footer-link::after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  background-color: hsl(0, 0%, 100%);
  margin: auto;
  transition: 0.3s ease-in-out;
}
@media only screen and (min-width: 48rem) {
  footer .container {
    grid-template-columns: none;
    grid-template-areas: "img social-icon" "footer-nav copyright";
    justify-content: space-between;
    justify-items: start;
    row-gap: 2rem;
  }
  footer .container img {
    grid-area: img;
  }
  footer .container .footer-nav {
    grid-area: footer-nav;
    flex-direction: row;
    justify-content: start;
    column-gap: 1.5rem;
    margin-block: 0;
  }
  footer .container .social-icon-list {
    grid-area: social-icon;
    margin-block: 0;
    justify-self: end;
  }
  footer .container .copyright {
    grid-area: copyright;
  }
}
@media only screen and (min-width: 64rem) {
  footer .container {
    max-width: 78rem;
  }
}

.social-icon-list {
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: 1rem;
  margin-block-end: 1.5rem;
}
.social-icon-list .social-icon::after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  margin-block-start: 0.5rem;
  background-color: hsl(0, 0%, 100%);
  transition: 0.3s ease-in-out;
}

.sidebar.active {
  opacity: 1;
  transform: translateX(0%);
  visibility: visible;
}

.nav-link:focus {
  border: none;
  outline: none;
}

.nav-link:focus::after {
  width: 50%;
}

.footer-nav .footer-link:focus {
  border: none;
  outline: none;
}

.footer-nav .footer-link:focus::after {
  width: 50%;
}

.social-icon:focus {
  border: none;
  outline: none;
}

.social-icon:focus::after {
  width: 100%;
}

.nav-link:hover::after {
  width: 50%;
}

.sidebar-list .sidebar-link:hover::after {
  width: 50%;
}

.projects-button:hover {
  background-color: hsl(0, 0%, 0%);
  color: hsl(0, 0%, 100%);
}

.card:hover::before {
  background-image: none;
  background-color: rgba(255, 255, 255, 0.75);
}

.card:hover h3 {
  color: hsl(0, 0%, 0%);
}

.footer-nav .footer-link:hover::after {
  width: 50%;
}

.social-icon:hover::after {
  width: 100%;
}

/*# sourceMappingURL=main.css.map */
