body,
html {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Roboto", sans-serif;

  background: var(--body-background-color);
  color: var(--text-color);
}

body {
  opacity: 0;
  -webkit-animation: body-appear 1s forwards;
  animation: body-appear 1s forwards;
}

@-webkit-keyframes body-appear {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes body-appear {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

:root {
  --h1-font-size: clamp(1.8rem, 2.5vw, 2.5rem);
  --h2-font-size: clamp(1.1rem, 2vw, 1.5rem);
  --p-font-size: clamp(0.9rem, 1.8vw, 1.2rem);
  --header-background-color: rgba(57, 57, 57);
  --body-background-color: rgb(57, 57, 57);
  --text-color: rgb(231, 231, 231);
}

img {
  max-width: 100%;
}

header {
  background-color: var(--header-background-color);
  /* -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px); */
  width: 100vw;
  height: 3rem;

  position: fixed;

  padding-bottom: 5rem;

  z-index: 1000;
}

.headline-container {
  display: flex;

  align-items: center;
  justify-content: center;
}

.headline {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
  font-size: var(--h1-font-size);
}

.links-container {
  position: fixed;
  top: 6rem;
  right: 0;
  width: 100vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background-color: rgba(57, 57, 57, 0.3);
  gap: 2rem;
  z-index: 1000;

  transform: translateX(100%);

  transition: all 0.4s ease-in-out;
}

.links-container > * {
  border: none;
  background-color: transparent;
  font-size: clamp(0.8rem, 2vw, 2rem);
}

.menu-btn a {
  text-decoration: none;
  color: rgb(231, 225, 225);
  font-weight: 400;
  font-size: var(--h1-font-size);

  transition: 0.4s;
}

.menu-btn a:hover {
  color: rgb(230, 81, 17);
}

.active-pg a {
  text-decoration: underline;
  color: #429baafe;
}

.active-pg a:hover {
  color: #429baafe;
}

.active-pg a:visited {
  color: #429baafe;
}

/* --------------------------------------------Logo */
.logo {
  font-size: var(--h1-font-size);
  -webkit-animation: flip-it 500ms forwards 3s;
  animation: flip-it 500ms forwards 3s;
  margin-left: 0.5rem;
  margin-top: 15px;
}

@-webkit-keyframes logo-rotate {
  from {
    rotate: (0);
  }
  to {
    rotate: 360deg;
  }
}

@keyframes logo-rotate {
  from {
    rotate: (0);
  }
  to {
    rotate: 360deg;
  }
}

.flip-it {
  display: inline-block;
  -webkit-animation: flip-it 500ms forwards 3s;
  animation: flip-it 500ms forwards 3s;
}

@-webkit-keyframes flip-it {
  0% {
  }
  50% {
    display: inline-block;
    color: red;
    text-transform: uppercase;
    transform: translateY(-5px) scaleX(0);
  }
  100% {
    display: inline-block;
    color: red;
    text-transform: uppercase;
    transform: translateY(0) scaleX(-1);
  }
}

@keyframes flip-it {
  0% {
  }
  50% {
    display: inline-block;
    color: red;
    text-transform: uppercase;
    transform: translateY(-5px) scaleX(0);
  }
  100% {
    display: inline-block;
    color: red;
    text-transform: uppercase;
    transform: translateY(0) scaleX(-1);
  }
}

/* -------------------------Open menu, close menu */
.menu-btn-fa {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 1rem;
  margin-top: 15px;

  font-size: 1.2rem;

  background-color: transparent;
  border: none;
  color: rgb(231, 225, 225);

  transition: all 0.4s ease-in-out;
  -webkit-animation: move-btn 2s linear alternate infinite;
  animation: move-btn 2s linear alternate infinite;
}

@-webkit-keyframes move-btn {
  from {
    transform: translate(5px, 5px);
    color: pink;
  }
  to {
    transform: translate(-5px, -5px);
    color: beige;
  }
}

@keyframes move-btn {
  from {
    transform: translate(5px, 5px);
    color: pink;
  }
  to {
    transform: translate(-5px, -5px);
    color: beige;
  }
}

.close-menu-btn {
  display: none;
}

/* ------------------------ Main section ------------------- */

main {
  padding-top: 6rem;
}

main > :first-child {
  padding-top: 70px;
}

.main-header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.2rem;

  position: relative;
}

.main-header::before {
  content: "";
  position: relative;

  left: 0;
  top: 1.2rem;
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, rgb(57, 57, 57), red);
  border-radius: 50%;
  -webkit-animation: top-lines-appear 1s linear;
  animation: top-lines-appear 1s linear;
}

@-webkit-keyframes top-lines-appear {
  from {
    opacity: 0;
    transform: translateX(-100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes top-lines-appear {
  from {
    opacity: 0;
    transform: translateX(-100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.main-header::after {
  content: "";
  position: relative;

  left: 0;
  bottom: 1.2rem;
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, red, rgb(57, 57, 57));
  border-radius: 50%;
  -webkit-animation: bottom-lines-appear 1s linear both 500ms;
  animation: bottom-lines-appear 1s linear both 500ms;
}

@-webkit-keyframes bottom-lines-appear {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes bottom-lines-appear {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.main-header h2 {
  font-size: var(--h1-font-size);
}

.main-header h3 {
  margin-top: 0;
  font-size: var(--h2-font-size);
}

/* Profile pic --------------------------- */

.profile-pic-container {
  aspect-ratio: 1 / 1;
  width: 50%; /* Or set a fixed width like 200px */
  max-width: 300px; /* Optional: to control the largest size */
  /* padding: 10px; */
  border-radius: 50%;
  background: radial-gradient(circle, white, rgb(57, 57, 57));
  display: flex;
  justify-content: center;
  align-items: center;

  margin-left: auto;
  margin-right: auto;
  -webkit-animation: pic-growth 5s forwards;
  animation: pic-growth 5s forwards;
  position: relative;
}

.profile-pic-container::before {
  content: "";
  position: absolute;
  top: -15%;
  left: -15%;
  width: 130%;
  height: 130%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(157, 157, 157, 0.5),
    transparent 90%
  );
  -webkit-filter: blur(20px);
  filter: blur(20px);
  z-index: 0;
  -webkit-animation: pulseGlow 3s ease-in-out infinite;
  animation: pulseGlow 3s ease-in-out infinite;
}

@-webkit-keyframes pulseGlow {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}

.profile-pic {
  width: 100%;
  -o-object-fit: contain;
  object-fit: contain;
  border-radius: 50%;
  -webkit-filter: grayscale(100);
  filter: grayscale(100);
}

@-webkit-keyframes pic-growth {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes pic-growth {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.text-content {
  width: 80%;
  margin: 0 auto;
}

.text-content p {
  font-size: var(--p-font-size);
}

p {
  bottom: -60px;
  opacity: 0;
  transform: translateY(60px);

  transition: all 0.4s;
}

.text-content-show {
  bottom: 0;
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------- Footer --------------------------------------- */
footer {
  font-size: clamp(0.7rem, 1vw, 0.8rem);
  margin-left: auto;
  transform: translateY(0);
  display: flex;
  justify-content: flex-end;
  margin-right: 1rem;
}

/* ----------------------- Breakpoints -------------------------------------------- */
@media (min-width: 576px) {
  .menu-btn-fa {
    display: none;
  }

  .links-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;

    gap: 2rem;

    margin-left: auto;
    margin-right: auto;
    /* margin-top: 2rem; */

    padding-top: 6rem;
    padding-bottom: 1rem;

    transform: translateX(0%);
  }

  main > :first-child {
    padding-top: 170px;
  }

  header {
    height: -webkit-fit-content;
    height: -moz-fit-content;
    height: fit-content;
  }
  .profile-pic-container {
    width: 80%;
  }
}
