@font-face {
  font-family: "Neue Power Ultra";
  src: url("./fonts/NeuePower-Ultra.ttf") format("truetype");
}

@font-face {
  font-family: "Outfit";
  src: url("./fonts/Outfit-VariableFont_wght.ttf") format("truetype");
}

:root {
  /* Branding colors */
  --primary-color: #0000ff;

  /* Neutral colors */
  --neutral-950: #121212;
  --neutral-50: #fdfdfd;

  --neutral-950-hover: #2a2a2a;

  /* Accent colors */
  --success: #60f28e;

  /* Spacing */
  --space-tiny: 0.3125rem; /* 5px */
  --space-gutter: 0.3125rem; /* 5px */
  --space-inner: 0.625rem; /* 10px */
  --space-sides: 0.9375rem; /* 15px (mobile default) */
  --space-medium: 2rem; /* 32px */
  --space-sections: 3.75rem; /* 60px (mobile default) */

  @media (min-width: 768px) {
    --space-tiny: 0.625rem; /* 10px */
    --space-gutter: 0.9375rem; /* 15px */
    --space-inner: 1.25rem; /* 20px */
    --space-sides: 6.25rem; /* 100px */
    --space-sections: 9.375rem; /* 150px */
  }
}

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

.main-logo {
  font-family: "Helvetica Neue", sans-serif;
  font-weight: bold;
  font-size: 45px;
  color: var(--neutral-950);
  text-decoration: none;
  letter-spacing: -6%;
}

/* Typography */
h1,
h2,
h3 {
  font-family: "Neue Power", sans-serif;
  color: var(--neutral-950);
  letter-spacing: 2%;
}

h1 {
  font-size: clamp(2.25rem, 6.5vw, 5.25rem);
  line-height: clamp(2rem, 6vw, 4.5rem);
}

h2 {
  font-size: clamp(2rem, 5.5vw, 4.5rem);
  line-height: clamp(2rem, 5vw, 4rem);
}

h3 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  line-height: clamp(1.5rem, 3vw, 1.75rem);
}

p {
  opacity: 0.8;
}

body {
  font-family: "Outfit", sans-serif;
  font-size: clamp(1rem, 2vw, 1.5rem);
  /* line-height: 1.5; */
  line-height: clamp(1.5rem, 3vw, 1.75rem);
  font-weight: 300;
  letter-spacing: -2%;

  overflow-x: hidden;
}

/* Global styling */
header,
footer,
nav,
section {
  padding: 0 var(--space-sides);
}

ul {
  list-style: none;
  line-height: 2;

  li {
    position: relative;
    width: fit-content;

    &::before {
      content: "";
      position: absolute;
      width: 100%;
      height: 2px;
      border-radius: 4px;
      background-color: var(--neutral-950);
      bottom: 3px;
      left: 0;
      transform-origin: right;
      transform: scaleX(0);
      transition: transform 0.3s ease-in-out;
    }

    &:hover::before {
      transform-origin: left;
      transform: scaleX(1);
    }
  }
}

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

.medium {
  font-weight: 500;
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.featured-half-img,
.featured-project-cover,
.single-project-cover,
.single-project-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 15px;
}

/* Components */
.tag,
.btn {
  font-weight: 500;
  font-size: clamp(1rem, 2vw, 1.25rem);
  padding: 5px 10px;
  border-radius: 12px;
  width: fit-content;
  display: inline-flex;
  line-height: 1;
  margin: 0.3em 0;

  @media (min-width: 768px) {
    padding: 7px 20px;
    border-radius: 15px;
  }
}

.tag {
  border: 1px solid var(--neutral-950);
  color: var(--neutral-950);
}

.tag.colored {
  background-color: rgb(0, 255, 217);
}

.tag-slider {
  overflow-x: auto;
  display: flex;

  scrollbar-width: none;
  &::-webkit-scrollbar {
    display: none;
  }

  .tag-slider-inner {
    display: flex;
    flex-direction: row;
    gap: var(--space-tiny);
    padding-right: var(--space-tiny);
    animation: slider 20s infinite linear;
  }
}

.tag-slider.reverse .tag-slider-inner {
  animation-direction: reverse;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-tiny);
  transition: 0.3s ease;
  /* margin: 0.3em 0; */

  &:hover {
    scale: 0.95;
  }
}

.btn.primary {
  background-color: var(--neutral-950);
  color: var(--neutral-50);

  &:hover {
    background-color: var(--neutral-950-hover);
  }

  svg {
    fill: currentColor;
    height: 1.25em;
    width: 1.25em;
    transition: 0.3s ease;
  }
}

.btn.link {
  padding: 0;
  color: var(--neutral-950);
  /* font-weight: 500; */

  svg {
    fill: currentColor;
    height: 1.25em;
    width: 1.25em;
    transition: 0.3s ease;
  }

  &:hover {
    color: var(--neutral-950-hover);
    svg {
      fill: var(--neutral-950-hover);
    }
  }
}

.status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-tiny);

  &::before {
    content: "";
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: var(--success);
    animation: breathe 3s ease-in-out infinite;
  }
}

/* @keyframes breathe {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(36, 223, 104, 0.63);
  }
  50% {
    opacity: 0.6;
    box-shadow: 0 0 0 6px rgba(8, 189, 74, 0);
  }
}

@keyframes slider {
  from {
    translate: 0;
  }

  to {
    translate: -100%;
  }
} */
