:root {
  --main-font-color: #333;
  --link-color: #323649;
  --highlight-color: #001fff;
  --transition-duration: 0.3s;
  --background-gradient-primary: linear-gradient(53deg, #c7e3e9, #ecf4ec);
  --background-gradient-secondary: linear-gradient(45deg, #6788e2, #ece6e6);
  --background-gradient-tertiary: linear-gradient(60deg, #ecd2e5, #c6eeee);
}

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

body {
  font-family: system-ui, sans-serif;
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--main-font-color);
  line-height: 1.6;
}

a {
  color: var(--link-color);
}

ul {
  list-style-type: none;
}

img {
  vertical-align: middle;
  max-width: 100%;
  height: auto;
  font-style: italic;
  background-repeat: no-repeat;
  background-size: cover;
}

.primary-navigation {
  display: flex;
  justify-content: center;
  margin-top: 8%;
  font-weight: 600;
}

.nav-list {
  width: 80%;
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 44px;
  font-family: Aileen;
}

.nav-link {
  font-size: 1.375rem;
  letter-spacing: 1px;
  text-decoration: none;
  font-weight: 400;
  transition: color var(--transition-duration) ease;
}

.nav-link:hover,
.nav-link:focus {
  color: #303f9f;
}

.nav-link[aria-current="page"] {
  text-decoration: line-through;
}

.case-hero-wrap .landing-case-weatherapp,
.case-hero-wrap .landing-case-todoapp,
.case-hero-wrap .landing-case-onlineshopapp {
  transition: box-shadow var(--transition-duration), opacity 200ms,
    transform 300ms;
}

.landing-intro-bio p {
  display: block;
  width: 80%;
  margin: 8% auto;
  font-size: 1.875rem;
  color: #323649;
  padding-right: 43%;
  letter-spacing: normal;
}

.case-hero-wrap {
  margin: auto;
  opacity: 0;
  transform: translateY(10vh);
}

.case-hero-wrap.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 2s ease, transform 2s ease;
}

.case-hero-wrap.full {
  max-width: 80%;
}

.case-hero-wrap .landing-case-weatherapp,
.case-hero-wrap .landing-case-todoapp,
.case-hero-wrap .landing-case-onlineshopapp {
  width: 100%;
  height: 500px;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px #fff;
  opacity: 1;
  transition: box-shadow 0.3s, opacity 200ms, transform 300ms;
  transform-style: preserve-3d;
  transform: translateX(0px) translateY(0px) translateZ(0px) scaleX(1) scaleY(1)
    scaleZ(1);
}

.case-hero-wrap .landing-case-weatherapp:hover,
.case-hero-wrap .landing-case-todoapp:hover,
.case-hero-wrap .landing-case-onlineshopapp:hover {
  box-shadow: inset 0 0 0 40px #fff;
  transform: scaleX(1.05) scaleY(1.1);
}

.case-hero-wrap .landing-case-weatherapp {
  background-image: url("assets/iphone-weatherapp-dark.png"),
    var(--background-gradient-primary);
  background-position: 50% 35%, 0 0;
  background-size: 35%, auto;
  background-repeat: no-repeat, repeat;
}

.case-hero-wrap .landing-case-todoapp {
  background-image: url("assets/iphone-todoapp-dark.png"),
    url("assets/iphone-todoapp-light.png"), var(--background-gradient-secondary);
  background-position: 80% 35%, 20% 35%, 0 0;
  background-size: 35%, 35%, auto;
  background-repeat: no-repeat, no-repeat, repeat;
}

.case-hero-wrap .landing-case-onlineshopapp {
  background-image: url("assets/macbook-onlineshopapp-light.png"),
    var(--background-gradient-tertiary);
  background-position: 50% 50%, 0 0;
  background-size: 30%, auto;
  background-repeat: no-repeat, repeat;
}

.case-hero-wrap h3 {
  margin: 20px auto 0px auto;
  font-size: 1.375rem;
  font-weight: 400;
}

.case-hero-wrap h4 {
  margin: 0px auto 6% auto;
  font-size: 1.125rem;
  font-weight: 400;
  color: rgba(91, 94, 110, 0.59);
  text-align: left;
}

footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 8% auto;
  max-width: 80%;
}

footer .column {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

footer .column.left .content-wrapper {
  margin-right: auto;
}

footer .column.center .content-wrapper {
  margin-left: auto;
  margin-right: auto;
}

footer .column.right .content-wrapper {
  margin-left: auto;
}

footer .column .header {
  margin-top: 10px;
  color: #323649;
}

footer .column .subheader {
  margin-top: 5px;
  color: #5b5e6e;
}

footer .column .subheader a {
  color: #5b5e6e;
  cursor: pointer;
}

.about p .highlight,
.about p a {
  color: var(--highlight-color);
}

.about {
  width: 80%;
  margin: 64px auto 0px auto;
}

.about p {
  display: block;
  max-width: 60%;
  font-size: 1.5rem;
  text-align: left;
  text-decoration: none;
}

.about p .highlight {
  font-size: 1.5rem;
  font-weight: 400;
}

.about p a {
  font-size: 1.25rem;
  cursor: pointer;
}

@media only screen and (max-width: 1400px) {
  .case-hero-wrap .landing-case-weatherapp,
  .case-hero-wrap .landing-case-onlineshopapp {
    background-size: 45%, auto;
  }
  .case-hero-wrap .landing-case-todoapp {
    background-size: 40%, 40%, auto;
  }
}

@media only screen and (max-width: 1024px) {
  .landing-intro-bio p {
    padding-right: 35%;
  }
  .case-hero-wrap .landing-case-weatherapp,
  .case-hero-wrap .landing-case-onlineshopapp {
    background-size: 50%, auto;
  }
  .about p {
    max-width: 80%;
    font-size: 1.25rem;
  }
}

@media only screen and (max-width: 768px) {
  .landing-intro-bio p {
    padding-right: 30%;
  }
  .case-hero-wrap .landing-case-weatherapp {
    height: 350px;
    background-size: 65%, auto;
  }
  .case-hero-wrap .landing-case-onlineshopapp {
    height: 400px;
    background-size: 65%, auto;
  }
  .case-hero-wrap .landing-case-todoapp {
    height: 700px;
    background-size: 65%, 65%, auto;
    background-position: 40% 80%, 60% 20%, 0 0;
  }
  .case-hero-wrap .landing-case-todoapp:hover,
  .case-hero-wrap .landing-case-weatherapp:hover,
  .case-hero-wrap .landing-case-onlineshopapp:hover {
    box-shadow: inset 0 0 0 20px #fff;
  }
  footer {
    grid-template-columns: 1fr;
    width: 90%;
  }
  footer .column {
    display: unset;
  }
  .about p {
    max-width: 90%;
    font-size: 1.125rem;
  }
}

@media only screen and (max-width: 650px) {
  .case-hero-wrap .landing-case-weatherapp {
    height: 250px;
  }
  .case-hero-wrap .landing-case-onlineshopapp {
    height: 350px;
  }
}

@media only screen and (max-width: 620px) {
  .case-hero-wrap .landing-case-todoapp {
    height: 550px;
  }
}

@media only screen and (max-width: 480px) {
  .landing-intro-bio p {
    font-size: 1.375rem;
    padding-right: 25%;
  }
  .case-hero-wrap .landing-case-weatherapp,
  .case-hero-wrap .landing-case-onlineshopapp {
    background-size: 70%, auto;
  }
  .case-hero-wrap .landing-case-todoapp {
    background-size: 60%, 60%, auto;
  }
  .case-hero-wrap h3 {
    font-size: 1.125rem;
  }
  .case-hero-wrap h4,
  footer .column .header,
  footer .column .subheader {
    font-size: 0.875rem;
  }
}

@media only screen and (max-width: 400px) {
  .case-hero-wrap .landing-case-todoapp {
    background-size: 80%, 80%, auto;
  }
}
