:root {
  /* TEXT STYLES */

  --primary-font: manrope, sans-serif;
  --secondary-font: rubik, sans-serif;

  /* COLORS */

  --bg-light: #fff;
  --bg-opaque: rgba(255, 255, 255, 0.7);
  --primary-dark: #323c3c;
  --primary-accent: #b5968b;
  --standard-box-shadow:
    rgba(0, 0, 0, 0.16) 0px 10px 36px 0px, rgba(0, 0, 0, 0.06) 0px 0px 0px 1px;

  /* GRADIENTS */

  --body-gradient:
    radial-gradient(at 1.319% 17.342%, #ffffff 0px, transparent 50%),
    radial-gradient(
      at 14.244996808798971% 73.10967302452316%,
      #ebeffa 0px,
      transparent 50%
    ),
    radial-gradient(
      at 64.7726378555129% 62.75544959128065%,
      #c9cdf0 0px,
      transparent 50%
    ),
    radial-gradient(at 0% 53.6727974568574%, #ffffff 0px, transparent 50%),
    radial-gradient(
        at 30.2482142388767% 46.951634877384194%,
        #ff6b2b 0px,
        transparent 50%
      )
      #ffffff;

  --button-primary-gradient: linear-gradient(
    60deg,
    rgba(86, 34, 155, 0.5),
    rgba(191, 0, 124, 0.5),
    rgba(255, 107, 43, 0.5),
    rgba(240, 17, 69, 0.5),
    rgba(217, 28, 135, 0.5),
    rgba(191, 0, 124, 0.5),
    rgba(85, 34, 153, 0.5)
  );

  --button-secondary-gradient: linear-gradient(
    125deg,
    rgba(240, 17, 69, 0.5),
    rgba(85, 34, 153, 0.5),
    rgba(191, 0, 124, 0.5),
    rgba(217, 28, 135, 0.5),
    rgba(255, 107, 43, 0.5),
    rgba(240, 17, 69, 0.5)
  );
}

/* BODY */

html {
  scroll-padding-top: 9rem;
  scroll-behavior: smooth;
}

body {
  margin: 190px 0 120px 0;
  background: var(--body-gradient);
  background-attachment: fixed;
}

.underline {
  border-bottom: 1px solid var(--primary-accent);
}

/* BUTTONS */

.primary-button {
  min-width: 45%;
  color: var(--primary-dark);
  letter-spacing: 0.05rem;
  font-family: var(--primary-font);
  font-size: 18px;
  margin: 20px 28px 20px 0px;
  padding: 18px 24px;
  border: 1px solid var(--primary-dark);
  outline: none;
  background: var(--bg-light);
  box-shadow: none;
  cursor: pointer;
  position: relative;
  z-index: 0;
  border-radius: 10px;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.primary-button::before {
  content: "";
  background: var(--button-primary-gradient);
  position: absolute;
  top: -0.5px;
  left: -0.5px;
  background-size: 400%;
  z-index: -1;
  filter: blur(8px);
  -webkit-filter: blur(8px);
  width: calc(100% + 3px);
  height: calc(100% + 2px);
  transition: opacity 0.3s ease-in-out;
  border-radius: 10px;
}

.primary-button::after {
  z-index: -1;
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--bg-light);
  left: 0;
  top: 0;
  border-radius: 10px;
}

.primary-button:hover::before {
  animation: glowing-special-button 8s linear infinite;
}

.secondary-button {
  min-width: 45%;
  color: var(--primary-dark);
  letter-spacing: 0.05rem;
  font-family: var(--primary-font);
  font-size: 18px;
  padding: 18px 24px;
  border: 1px solid var(--primary-dark);
  outline: none;
  background: var(--bg-light);
  box-shadow: none;
  cursor: pointer;
  position: relative;
  z-index: 0;
  border-radius: 10px;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.secondary-button::before {
  content: "";
  background: var(--button-secondary-gradient);
  position: absolute;
  top: -0.5px;
  left: -0.5px;
  background-size: 400%;
  z-index: -1;
  filter: blur(8px);
  -webkit-filter: blur(8px);
  width: calc(100% + 3px);
  height: calc(100% + 2px);
  transition: opacity 0.3s ease-in-out;
  border-radius: 10px;
}

.secondary-button::after {
  z-index: -1;
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--bg-light);
  left: 0;
  top: 0;
  border-radius: 10px;
}

.secondary-button:hover::before {
  animation: glowing-special-button 8s linear infinite;
}

/* NAVBAR */

.navbar {
  max-width: 100%;
  top: 0;
  left: 0;
  right: 0;
  position: fixed;
  height: 5rem;
  background-color: var(--bg-light);
  box-shadow: var(--standard-box-shadow);
  z-index: 1;
}

.navbar .container {
  max-width: 70%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--primary-dark);
  height: 100%;
}

.navbar .left {
  font-size: 1.2rem;
  font-family: var(--secondary-font);
}

.navbar .right {
  display: flex;
  justify-content: space-between;
  font-family: var(--primary-font);
}

.navbar .right a {
  text-decoration: none;
  color: var(--primary-dark);
  padding-left: 60px;
  transition: transform 0.1s ease-in-out;
}

.navbar .right a:hover {
  transform: scale(1.05);
}

/* GRID */

.content-grid {
  max-width: 70%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

#hero,
#work,
#filters {
  grid-column: span 2;
}

.content-grid h1 {
  font-family: var(--secondary-font);
  color: var(--primary-dark);
  font-size: 1.3rem;
  font-weight: 400;
  margin: 30px 0 8px 0;
}

.content-grid p {
  color: var(--primary-dark);
  font-family: var(--primary-font);
  letter-spacing: 0.02rem;
  margin: 0 0 24px 0;
  line-height: 130%;
}

/* HERO */

.hero {
  max-height: 400px;
  background-color: var(--bg-opaque);
  display: flex;
  justify-content: space-between;
  border-radius: 10px;
  padding: 3rem 4rem 3rem 5rem;
  box-shadow: var(--standard-box-shadow);
}

.hero img {
  display: flex;
  justify-content: center;
  height: 100%;
  object-fit: cover;
  object-position: center;
  aspect-ratio: 1/1;
  border-radius: 10px;
}

.hero h1 {
  margin: 0 0 24px 0;
}

.hero p {
  max-width: 85%;
}

.description {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* FEATURED WORK */

.filter-bar {
  background-color: var(--bg-opaque);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: var(--standard-box-shadow);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.filter-bar p {
  display: inline-block;
  margin: 0;
}

.filter-btn {
  letter-spacing: 0.07rem;
  font-size: 14px;
  font-family: var(--primary-font);
  color: var(--primary-dark);
  background: var(--bg-light);
  border-radius: 100px;
  border: 1px solid var(--primary-dark);
  padding: 0.3rem 0.4rem;
  text-align: center;
  cursor: pointer;
}

.filter-btn.active {
  background-color: var(--primary-dark);
  color: white;
}

.work {
  font-family: var(--secondary-font);
  color: var(--primary-dark);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.1rem;
  margin: 50px 0 50px 0;
  text-align: center;
}

.card {
  position: relative;
  background-color: var(--bg-opaque);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: var(--standard-box-shadow);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.card .tag {
  display: flex;
  letter-spacing: 0.07rem;
}

.card .tag .skill {
  font-size: 14px;
  font-family: var(--primary-font);
  color: var(--primary-dark);
  display: inline-block;
  border-radius: 100px;
  border: 1px solid var(--primary-dark);
  padding: 0.3rem 0.4rem;
  text-align: center;
  margin: 18px 12px 0 0;
}

.card img {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 17/9;
  border-radius: 10px;
}

/* BUTTON ANIMATION */

@keyframes glowing-special-button {
  0% {
    background-position: 0 0;
  }
  50% {
    background-position: 400% 0;
  }
  100% {
    background-position: 0 0;
  }
}

@keyframes glowing-special-button {
  0% {
    background-position: 0 0;
  }
  50% {
    background-position: 400% 0;
  }
  100% {
    background-position: 0 0;
  }
}

/* RESPONSIVE */

@media only screen and (max-width: 1440px) {
  .navbar .container {
    max-width: 85%;
  }

  .content-grid {
    max-width: 85%;
  }
}

@media only screen and (max-width: 1200px) {
  .navbar .container {
    max-width: 90%;
  }

  .content-grid {
    max-width: 95%;
  }
}

@media only screen and (max-width: 1080px) {
  .hero {
    padding: 3rem 4rem 3rem 5rem;
  }

  .hero img {
    aspect-ratio: 4/5;
  }
}

@media only screen and (max-width: 1038px) {
  .primary-button,
  .secondary-button {
    font-size: 16px;
  }
}

@media only screen and (max-width: 975px) {
  .navbar .container {
    max-width: 85%;
  }

  .hero {
    max-height: 600px;
  }

  .hero img {
    max-width: 300px;
  }

  .content-grid {
    max-width: 85%;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  #hero,
  #work,
  #filters {
    grid-column: span 1;
  }

  .content-grid h1 {
    font-size: 1.7rem;
  }

  .content-grid p {
    font-size: 1.2rem;
  }

  .card {
    padding: 2rem;
  }

  .card .tag .skill {
    font-size: 1rem;
  }

  .primary-button,
  .secondary-button {
    font-size: 20px;
  }
}

@media only screen and (max-width: 887px) {
  body {
    margin-top: 130px;
  }

  .hero {
    flex-direction: column;
    max-height: 250vh;
    padding: 3rem 5rem;
  }

  .hero p {
    max-width: 100%;
  }

  .hero img {
    aspect-ratio: 5/4;
    max-width: 70%;
    object-position: 10% 16%;
    margin-top: 10px;
  }
}

@media only screen and (max-width: 638px) {
  .navbar .container {
    max-width: 90%;
  }

  .content-grid {
    max-width: 95%;
  }

  .hero {
    /* flex-direction: column;
    max-height: 100vh; */
    padding: 3rem 2rem;
  }

  .hero p {
    max-width: 100%;
  }

  .hero img {
    aspect-ratio: 5/4;
    max-width: 70%;
    object-position: 10% 16%;
    margin-top: 10px;
  }
}

@media only screen and (max-width: 601px) {
  .menu-about {
    display: none;
  }

  .navbar .container {
    display: flex;
    justify-content: center;
  }
}

@media only screen and (max-width: 583px) {
  .button-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }

  .primary-button {
    width: 100%;
    padding: 14px 24px;
  }

  .secondary-button {
    width: 100%;
    padding: 14px 24px;
    margin-bottom: 30px;
  }

  .secondary-button::before {
    content: "";
    background: var(--button-secondary-gradient);
    position: absolute;
    top: -0.5px;
    left: -0.5px;
    background-size: 400%;
    z-index: -1;
    filter: blur(8px);
    -webkit-filter: blur(8px);
    width: calc(100% + 3px);
    height: calc(100% + 2px);
    transition: opacity 0.3s ease-in-out;
    border-radius: 10px;
  }
}

@media only screen and (max-width: 560px) {
  .content-grid h1 {
    font-size: 1.3rem;
  }

  .content-grid p {
    font-size: 0.9rem;
  }

  .primary-button,
  .secondary-button {
    font-size: 15px;
  }

  .card .tag .skill {
    font-size: small;
  }
}

@media only screen and (max-width: 460px) {
  .menu-work {
    display: none;
  }
}
