@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300,400;500;600;700&display=swap');

:root {
  --dark-clr: #232323;
  --light-clr: #ffffff;
  --light-grey-clr: #F6F6F6;
  --grey-clr: #E5E5E5;
  --dark-grey-clr: #999999;
  --primary-clr: #376996;
  --dark-primary-clr: #1d3461;
  --box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
  --box-shadow-light: rgba(21, 115, 177, 0.343) 0px 2px 8px 0px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-weight: normal;
  color: var(--dark-clr);
  font-family: "Inter", sans-serif;
}

body>* {
  padding: 0 5vw;
}

html,
body {
  height: 100%;
  overflow-x: hidden;
}

body {
  display: flex;
  flex-direction: column;
}

nav {
  display: flex;
  justify-content: space-between;
  padding-top: 3rem;
  align-items: center;
}

.role_title {
  color: var(--dark-grey-clr);
  text-align: center;
}

nav .links a {
  font-weight: 500;
  font-size: 1rem;
  padding: 12px;
  color: var(--dark-grey-clr);
  transition: color 0.2s ease;
  white-space: nowrap;
}

nav .links {
  gap: 24px;
}

.logo {
  flex: 1;
}

.logo a {
  text-transform: uppercase;
  color: var(--primary-clr);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 24px;
  font-style: italic;
}

nav .links .active::after {
  content: "";
  display: block;
  width: 20%;
  border-radius: 15px;
  height: 4px;
  background-color: var(--primary-clr);
  position: absolute;
  bottom: -2px;
  transition: width 0.3s ease;
  left: 50%;
  transform: translateX(-50%);
}

nav .links .active:hover::after {
  width: 35%;
}

nav .links a:hover {
  color: inherit;
}

nav .links .active {
  position: relative;
  font-weight: 600;
  color: inherit;
}

nav .links {
  justify-content: right;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6rem;
  margin-block: 3rem 5rem;
}

a {
  text-decoration: none;
}

li {
  list-style: none;
}

h2 {
  margin-bottom: 15px;
}

h2,
h3 {
  text-align: center;
  font-size: clamp(2rem, 12vw, 7rem);
  font-weight: 700;
  color: var(--grey-clr);
  text-transform: uppercase;
  white-space: nowrap;
  margin-bottom: 1rem;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding-top: 90px;
  height: min-content;
  background-color: var(--dark-primary-clr);
  position: relative;
  overflow: hidden;
  min-height: 525px;
}

footer .left {
  display: flex;
  justify-content: space-between;
  flex: 1;
}

.links {
  display: flex;
  flex: 1;
}

footer .links {
  justify-content: flex-end;
  gap: 80px;
}

footer .links_pages a:hover {
  color: var(--grey-clr);
}

footer a {
  color: var(--light-clr);
  font-size: 1rem;
}

footer .logo a {
  color: var(--dark-grey-clr);
}

.links .links_title {
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--dark-grey-clr);
}

.links .links_section li {
  margin-block: 28px;
}

footer .links a {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  min-width: max-content;
}

a:hover>.arrow svg{
  transform: rotate(0deg);
}

footer .links a:hover>.arrow svg{
  fill: var(--light-clr);
}

.arrow svg {
  fill: var(--dark-grey-clr);
  transform: rotate(-45deg);
  height: 1rem;
  width: 1rem;
  transition: all 0.3s ease;
}

.footer_name {
  position: absolute;
  left: -3.5vw;
  bottom: -7vw;
  font-weight: 700;
  font-style: italic;
  letter-spacing: -2.25vmin;
  color: var(--primary-clr);
  width: 100%;
  text-align: center;
  font-size: clamp(1.75rem, 16.5vw, 21.5rem);
  white-space: nowrap;
  user-select: none;
}

@keyframes fadeInTop {
  from {
    opacity: 0;
    transform: translateY(-25px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-top {
  opacity: 0;
  animation: fadeInTop 1s ease-out forwards;
}

@keyframes fadeInBottom {
  from {
    opacity: 0;
    transform: translateY(25px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-bottom {
  opacity: 0;
  animation: fadeInBottom 2s ease-out forwards;
}

.projects {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
  gap: 2rem;
}

@media (max-width: 520px) {
  .projects {
    grid-template-columns: 1fr;
  }
}

.projects>div {
  background-color: var(--light-grey-clr);
  border-radius: 15px;
  padding: 30px;
  width: 100%;
}

.projects img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 15px;
  margin-bottom: 30px;
}

.projects .details {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
}

.projects .details .desc {
  display: flex;
  justify-content: space-between;
  min-height: 100px;
  align-items: center;
  gap: 2rem;
}

.projects .details .project_title {
  color: var(--dark-grey-clr);
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.projects .details .project_subtitle {
  color: var(--dark-grey-clr);
  font-weight: 500;
}

.projects .button svg {
  fill: var(--light-clr);
  width: 2rem;
  height: 2rem;
}

.projects .button {
  background-color: var(--dark-primary-clr);
  padding: 0.75rem 0.7rem 0.4rem 0.75rem;
  border-radius: 100%;
  border: none;
  font-weight: 700;
  font-size: 1.25rem;
  transition: transform 1s ease;
  box-shadow: var(--box-shadow);
  min-width: max-content;
  height: fit-content;
  margin: auto 0;
}

.projects .button:hover {
  background-color: #376996;
  transform: rotate(-405deg);
  box-shadow: var(--box-shadow-light);
}

.stack {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.bio {
  text-align: justify;
  max-width: 1280px;
  align-self: center;
}

.flex {
  display: flex;
  gap: 30px;
  align-items: center;
  flex-wrap: wrap;
}

.flex>.text {
  flex: 1;
}

.text {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.bio img {
  height: 500px;
  border-radius: 60% 39% 72% 37%;
  margin-top: 3rem;
}

.exp-btns {
  display: flex;
  gap: 0.5rem;
}

.exp-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.25rem;
}

.exp-element {
  display: flex;
  align-items: center;
  font-size: 1.175rem;
  justify-content: space-between;
}

.experiences li span {
  background-color: var(--light-grey-clr);
  padding: 1rem 1.125rem;
  border-radius: 50px;
  font-size: 0.95rem;
}

.experiences li .workplace {
  font-weight: 600;
  text-transform: uppercase;
}

@media (max-width: 650px) {
  .exp-element {
    display: flex;
    flex-direction: column;
    align-items: baseline;
    gap: 0.5rem;
  }

  .experiences li span {
    background: none;
    padding: 0;
    border: none;
    color: var(--dark-grey-clr);
  }

  .competences .stacks {
    flex-direction: column;
  }

  footer .links {
    gap: 1.5rem;
  }

  nav {
    padding-top: 1.5rem;
  }

  footer .logo {
    flex: 0;
  }

  footer .left {
    flex-direction: column;
    justify-content: normal;
    gap: 1rem;
  }

  footer .links_logos img {
    width: 1.25rem;
    height: 1.25rem;
  }
}

.experiences,
.competences {
  width: fit-content;
  align-self: center;
}

.competences .stacks {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  line-height: 1.5rem;
}

.bold {
  font-weight: 600;
}

@media (max-width: 1080px) {
  .flex {
    justify-content: center;
    flex-direction: column;
  }

  .flex img {
    width: 300px;
    height: 300px;
  }

  .button {
    margin: 0 auto;
  }

  footer {
    min-height: 400px;
  }
}

.badge {
  border-radius: 15px;
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  background-color: #f5f5f5;
  border: 2px solid #dedede;
}

.github {
  font-size: 0.8rem;
  color: var(--dark-clr);
  font-weight: 700;
  padding: 0.4rem 0;
  margin-left: auto;
}

.btn {
  background-color: var(--primary-clr);
  color: var(--light-clr);
  padding: 0.5rem 1rem 0.3rem 1rem;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.9rem;
  border: 2px solid var(--primary-clr);
}

.btn:hover {
  color: var(--primary-clr);
  background-color: var(--light-clr);
  border: 2px solid var(--primary-clr);
  transition: color 0.3s ease-in-out;
  box-shadow: rgba(14, 63, 126, 0.04) 0px 0px 0px 1px, rgba(42, 51, 69, 0.04) 0px 1px 1px -0.5px, rgba(42, 51, 70, 0.04) 0px 3px 3px -1.5px, rgba(42, 51, 70, 0.04) 0px 6px 6px -3px, rgba(14, 63, 126, 0.04) 0px 12px 12px -6px, rgba(14, 63, 126, 0.04) 0px 24px 24px -12px;
}

.underlined {
	text-decoration: underline;
}