:root {
  --background-color: #f6f6f6;
  --contrast-lighter: rgba(0, 0, 0, 0.45);
  --contrast-light: rgba(0, 0, 0, 0.64);
  --contrast-mid: rgba(0, 0, 0, 0.78);
  --contrast-dark: #1d1d1d;
  --accent-color: #d5fd44;
  --accent-color-2: #58b863;
}

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

* ::before,
* ::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 3px;
}

input,
button,
select,
textarea {
  font-family: inherit;
}

h1,
h2,
h3 {
  font-family: "Roboto", sans-serif;
  font-weight: 300;
  line-height: 1.3em;
  letter-spacing: 0em;
}

h1 {
  font-size: clamp(1.428rem, 1.5362rem + 1.4971vw, 2.8414rem);
  color: var(--contrast-dark);
}

h1 span {
  font-weight: 400;
  background-image: linear-gradient(
    to top,
    var(--accent-color) 45%,
    transparent 40%
  );
}

body {
  background: var(--background-color);
  font-family: "Inter", sans-serif;
  font-weight: 300;
  font-size: 1rem;
  letter-spacing: 0.06em;
  line-height: 1.5;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

footer {
  border-top: 1px solid oklch(from var(--contrast-dark) l c h / 0.1);
  color: var(--contrast-light);
  padding: 3em;
  padding-bottom: 7em;
  font-family: "inter", sans-serif;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 300;
}

.button,
.button-2 {
  border: 1px solid transparent;
  transition: all 0.3s ease 0s;
  text-decoration: none;
  text-wrap: nowrap;
  letter-spacing: 0.06em;
  border-radius: 32px;
}

.button:hover,
.button-2:hover {
  border: 1px solid var(--contrast-light);
  box-shadow: 0px 0px 0px 0px transparent;
}

.button:hover {
  color: var(--accent-color);
}

.button {
  background: linear-gradient(
    90deg,
    var(--contrast-dark),
    #312f2f 50%,
    var(--contrast-dark)
  );
  box-shadow: 20px 0px 0px 0px var(--accent-color);
  padding: clamp(0.75rem, calc(0.659rem + 0.455vw), 1rem)
    clamp(1.5rem, calc(1.318rem + 0.909vw), 2rem);
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(0.75rem, calc(0.85rem + 0.275vw), 1.125rem);
  font-weight: 500;
}

.button-2 {
  background: var(--accent-color);
  box-shadow: 20px 0px 0px 0px var(--contrast-dark);
  padding: clamp(0.5rem, calc(0.413rem + 0.435vw), 0.875rem)
    clamp(1.25rem, calc(1.134rem + 0.58vw), 1.75rem);
  color: var(--contrast-dark);
  font-size: clamp(0.75rem, calc(0.75rem + 0.275vw), 1.125rem);
  font-weight: 600;
}

.card {
  border: 1px solid lightgrey;
  border-radius: 12px;
  padding: clamp(1rem, calc(0.5rem + 4.091vw), 2.25rem);
  background-image: linear-gradient(-120deg, #eaeaea 0%, #fff 100%);
  box-shadow: 0px 8px 40px 0px rgba(0, 0, 0, 0.14);
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
}

.card:hover {
  box-shadow: 0px 12px 32px 0px rgba(0, 0, 0, 0.18);
  transform: scale(1.01);
}

/* Navigation Bar */

nav {
  position: fixed;
  bottom: 0;
  z-index: 1;
  width: 100%;

  border-radius: 28px 28px 0px 0px;
  border: 1px solid oklch(from var(--accent-color-2) l c h / 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75em;
  padding: clamp(0.25rem, calc(0.377rem + 1.364vw), 1.5rem);
  background-color: #fff;

  backdrop-filter: blur(12px);
  box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.12);
  text-wrap: nowrap;
  transition: all 0.3s ease-in-out;
}

nav.nav-hidden {
  transform: translate(0%, 100%);
}

ul {
  display: flex;
  gap: clamp(1.25em, calc(0.72em + 4.242vw), 3em);
}

li {
  list-style: none;
  position: relative;
}

nav a {
  text-decoration: none;
  color: var(--contrast-light);
  font-weight: 300;
  display: flex;
  justify-content: center;
  padding: 0.25em;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: clamp(0.75rem, calc(0.574rem + 0.506vw), 1rem);
}

nav a:hover {
  color: var(--accent-color-2);
}

.nav-brand a {
  display: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

nav address {
  display: none;
  color: var(--contrast-mid);
  font-weight: 300;
  margin-left: auto;
  font-size: clamp(0.75rem, calc(0.574rem + 0.506vw), 1rem);
}

.nav-meta svg {
  display: none;
}

.menu-toggle {
  width: 24px;
  height: 16px;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  background: none;
  border: none;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--contrast-lighter);
  border-radius: 10px;
}

/* End of Navigation Bar */

/* Hero Section */

.hero-section {
  padding: clamp(3.75rem, calc(3.932rem + 9.091vw), 6.75rem)
    clamp(0.5rem, calc(0.5rem + 0.155vw), 1.75rem)
    clamp(4.75rem, calc(6.932rem + 9.091vw), 9.75rem);
  width: 100%;
  display: flex;
  justify-content: center;
  row-gap: 1em;
  background-image:
    linear-gradient(rgba(225, 225, 225, 0.05) 60%, var(--background-color)),
    url(/images/background-image.webp);
  clip-path: polygon(0 0, 100% 0%, 100% 90%, 0% 100%);
  background-size: cover;
  background-position: center;
}

.hero-card {
  align-items: flex-end;
  flex-direction: column-reverse;
  flex-wrap: wrap-reverse;
  width: clamp(200px, 95%, 980px);
  row-gap: 1em;
  color: var(--contrast-light);
}

.hero-column-1,
.project-column-text {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  justify-items: start;
  row-gap: 1.5em;
}

.hero-column-1 {
  flex: 1 1 60%;
  max-width: 90%;
}

.hero-column-2 {
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  justify-items: start;
}

.hero-column-1 p {
  max-width: 40ch;
  font-size: clamp(1.05rem, 1.0517rem + 0.6591vw, 1.5625rem);
}

.hero-image {
  height: 320px;
  border-radius: 12px;
  object-fit: cover;
  width: clamp(90px, 120px, 100%);
  height: auto;
  transition: all 0.5s ease;
  box-shadow: 0px 12px 32px 0px rgba(0, 0, 0, 0.12);
}

address {
  font-style: normal;
  color: var(--contrast-lighter);
  font-weight: 500;
}

.location,
.nav-meta {
  display: flex;
  gap: 0.5em;
  align-items: center;
}

/* End of Hero Section */

/* Projects Section */

.projects-section {
  padding: clamp(2.5rem, calc(1.591rem + 4.545vw), 5rem)
    clamp(1.625rem, calc(0.5rem + 0.155vw), 5rem);
}

.projects-section h2 {
  font-size: clamp(1.5rem, calc(1.182rem + 1.591vw), 2.375rem);
  color: var(--contrast-lighter);
  margin-bottom: clamp(1.5rem, calc(1.182rem + 1.591vw), 2.375rem);
}

.projects-content {
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, calc(1.182rem + 1.591vw), 2.375rem);
  max-width: 980px;
  margin: 0 auto;
}

.projects-card {
  align-items: flex-start;
  flex-direction: column-reverse;
  gap: 1em;
  width: 100%;
}

.projects-card:has(.project-2-mockup) {
  flex-direction: column;
  gap: 2em;
}

.project-column-text {
  row-gap: 1em;
}

.project-column-mockup {
  display: flex;
  justify-content: center;
  width: 100%;
}

.projects-card p {
  font-size: clamp(1.25rem, calc(1.068rem + 0.909vw), 1.75rem);
  color: var(--contrast-light);
}

.logo {
  width: clamp(240px, calc(212.174px + 8.696vw), 360px);
  margin-bottom: -12px;
}

.logo:is(.project-2-logo) {
  width: clamp(240px, calc(222.899px + 11.594vw), 400px);
}

.mockup {
  width: clamp(300px, 100%, 500px);
}

.mockup:is(.project-2-mockup) {
  width: clamp(200px, 70%, 350px);
}

.tools {
  display: flex;
  gap: 1em;
}

.tools span {
  color: grey;
  font-size: 1rem;
  font-weight: 300;
  padding: 0.25em 1em;
  border-radius: 32px;
  border: 1px solid lightgrey;
  margin-bottom: 0.25em;
}

/* End of Projects Section */

/* Desktop */

@media (min-width: 820px) {
  footer {
    padding: 4em;
  }

  nav {
    left: 50%;
    transform: translateX(-50%);
    width: clamp(300px, 95%, 1000px);
    top: 2em;
    bottom: auto;
    padding: clamp(0.25rem, calc(0.277rem + 1.364vw), 1.25rem)
      clamp(1.75rem, calc(0.523rem + 3.636vw), 3.75rem);
    border-radius: 28px;
    border: none;
    gap: 4em;
  }

  nav:hover {
    box-shadow: 0px 4px 28px 0px rgba(0, 0, 0, 0.18);
    scale: 1.01;
  }

  .menu {
    margin-right: auto;
    border: none;
    padding: 0;
    gap: 2.5em;
  }

  nav address,
  .nav-meta svg,
  .nav-brand a {
    display: flex;
  }

  .button {
    font-size: 1.1rem;
    box-shadow:
      24px 0px 0px 0px var(--accent-color),
      0px 8px 40px 0px rgba(0, 0, 0, 0.12);
  }

  .hero-section {
    padding: clamp(8.75rem, calc(6.932rem + 9.091vw), 13.75rem)
      clamp(0.5rem, calc(0.5rem + 0.155vw), 1.75rem);
  }

  .hero-image {
    width: clamp(100px, 212px, 220px);
  }

  .hero-column-1 p {
    max-width: 36ch;
    font-size: clamp(1.2rem, 1.0517rem + 0.6591vw, 1.5625rem);
    row-gap: 2em;
  }

  .hero-card {
    flex-direction: row;
    gap: 2em;
    align-items: center;
  }

  .projects-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: clamp(2.5rem, calc(2.182rem + 1.591vw), 3.675rem);
  }

  .project-column-text {
    display: flex;
    flex-direction: column;
    padding: 1em 0;
  }

  .logo {
    width: clamp(200px, calc(212.174px + 8.696vw), 360px);
  }

  .logo:is(.project-2-logo) {
    width: clamp(240px, calc(222.899px + 11.594vw), 400px);
  }

  .mockup {
    width: clamp(300px, 100%, 500px);
  }

  .mockup:is(.project-2-mockup) {
    width: clamp(200px, 80%, 500px);
  }

  .tools span {
    margin-bottom: 1em;
  }

  .hero-column-1 address,
  .menu-toggle,
  .location,
  li:first-child {
    display: none;
  }
}

/* End of Desktop */

/* Mobile */

@media (max-width: 440px) {
  footer {
    padding-bottom: 3em;
  }

  .nav-brand a,
  .menu-toggle {
    display: flex;
  }

  .nav-brand a {
    font-weight: 400;
  }

  nav {
    width: 100%;
    padding: clamp(0.25rem, calc(0.477rem + 1.364vw), 1.5rem)
      clamp(1.75rem, calc(0.523rem + 3.636vw), 3.75rem);
    border-radius: 16px 16px 0 0;
  }

  .menu.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    bottom: 4.5em;
    right: 50%;
    transform: translateX(50%);
    background-color: var(--background-color);
  }

  .menu {
    display: none;
    gap: 0.5rem;
    padding: 0.5rem;
    min-width: 95%;
    z-index: 1;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    text-align: left;
  }

  .menu li:not(:last-child) {
    width: 100%;
    border-bottom: 1px solid oklch(from var(--contrast-light) l c h / 0.1);
  }

  .menu a {
    padding: 0.4rem 0.6rem;
    display: block;
    width: 100%;
  }

  li:hover::after {
    display: none;
  }
}
