:root {
  --Text: #f4efe8;
  --HeaderText: #d8c9b6;
  --HeaderBackground: #34443b;
  --AccentGold: #cba76c;
  --MainBackground: #403a34;
}

:root {
  --font-scale: 1;
  font-size: calc(16px * var(--font-scale));
}

@font-face {
  font-family: "Inter";
  src: url("../Assets/Fonts/Inter/static/Inter_18pt-Regular.woff2")
    format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../Assets/Fonts/Inter/static/Inter_18pt-Medium.woff2")
    format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../Assets/Fonts/Inter/static/Inter_18pt-SemiBold.woff2")
    format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../Assets/Fonts/Inter/static/Inter_18pt-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url("../Assets/Fonts/Playfair_Display/static/PlayfairDisplay-Regular.woff2")
    format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url("../Assets/Fonts/Playfair_Display/static/PlayfairDisplay-Medium.woff2")
    format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url("../Assets/Fonts/Playfair_Display/static/PlayfairDisplay-SemiBold.woff2")
    format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url("../Assets/Fonts/Playfair_Display/static/PlayfairDisplay-Bold.woff2")
    format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

body {
  padding: 4rem;
  background-color: var(--HeaderBackground);
  font-family: "Playfair Display", "Inter";
  font-size: calc(2.2rem * var(--font-scale));
  font-weight: 400;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--Text);
}

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

/* INTRO SECTION */
.intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
}

.intro h1 {
  font-size: calc(2.6875rem * var(--font-scale));
  font-weight: 500;
  color: var(--Text);
  padding-left: 1rem;
}

.intro p {
  max-width: 50%;
  padding-top: 0.5rem;
  font-size: calc(1.5rem * var(--font-scale));
  padding-left: 2.2rem;
  line-height: 1.7rem;
}

/* MAIN NAVIGATION */
.navigation {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.navigation a {
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 600;
  text-decoration: none;
  background-color: var(--HeaderBackground);
  border: 3px solid var(--HeaderText);
  border-radius: 20px;
  min-height: 256px;
  text-align: center;
  color: var(--HeaderText);
}

/* OUTRO SECTION */
.outro {
  display: flex;
  justify-content: space-between;
  padding-block: 1rem;
  padding-inline: 1rem;
}

.outro p {
  max-width: 50%;
  font-size: calc(1.5rem * var(--font-scale));
  line-height: 1.7rem;
}

.outro h2 {
  grid-column: 4;
  font-weight: 500;
  color: var(--Text);
  font-size: calc(2.2rem * var(--font-scale));
  align-self: center;
  justify-self: flex-end;
  padding-right: 0.5rem;
}

/* Bottom Navigation */

.line {
  display: flex;
  border: 2px solid var(--AccentGold);
}

.bottom-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
}

#realresume,
#fakeresume {
  text-decoration: none;
  font-size: calc(1.5rem * var(--font-scale));
  font-weight: 600;
  background-color: var(--HeaderBackground);
  border: 3px solid var(--HeaderText);
  border-radius: 20px;
  padding-inline: 2rem;
  padding-block: 1.19rem;
  text-align: center;
  color: var(--HeaderText);
}

.linkicons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.linkicons img {
  transform: scale(0.8);
}

/* MAIN HERO CONTAINER */
.hero {
  padding: 20px 25px;
  max-width: 1320px;
  background-color: var(--MainBackground);
  border: 6px solid var(--AccentGold);
  border-radius: 10px;
}

/* HOVER MENUS */

.popup-aboutme,
.popup-projects,
.popup-skills,
.popup-contact {
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;

  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;

  padding: 1.5rem;
  background-color: var(--HeaderText);
  border: 3px solid var(--HeaderText);
  border-radius: 20px;
  text-align: center;
  font-size: calc(1.5rem * var(--font-scale));
  color: var(--HeaderBackground);
}

.popup-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.popup-invitation {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 11;
  pointer-events: none;
  padding: 1.5rem;
  background-color: var(--HeaderText);
  border: 3px solid var(--HeaderText);
  border-radius: 20px;
  text-align: center;
  font-size: calc(1.5rem * var(--font-scale));
  color: var(--HeaderBackground);
}

#about,
#projects,
#skills,
#contact {
  position: relative;
}

#about:hover .popup-aboutme,
#projects:hover .popup-projects,
#skills:hover .popup-skills,
#contact:hover .popup-contact {
  display: flex;
}

.email-popup {
  font-size: calc(1rem * var(--font-scale));
}

#hidden-text {
  display: none;
}

.popup-aboutme {
  display: none;
}

.popup-aboutme.active:not(.hidden) {
  display: flex;
}

.hidden {
  display: none;
}

.visible {
  display: flex;
}

@media (max-width: 1320px) {
  .outro h2 {
    --font-scale: 0.8;
  }

  .popup-aboutme,
  .popup-projects,
  .popup-skills,
  .popup-contact {
    --font-scale: 0.8;
  }

  .outro h2,
  .intro p,
  .outro p {
    --font-scale: 0.8;
  }
}

@media (max-width: 1105px) {
  .hero {
    max-width: 776px;
  }

  .navigation {
    grid-template-columns: repeat(2, 1fr);
  }

  .linkicons {
    transform: scale(0.8);
  }

  #realresume,
  #fakeresume {
    --font-scale: 0.8;
    font-size: calc(1.5rem * var(--font-scale));
    background-color: var(--MainBackground);
    border: none;
    border-radius: none;
    padding-inline: 1rem;
  }
}

@media (max-width: 880px) {
  .intro,
  .outro,
  .bottom-navigation,
  .navigation {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
  }

  .intro p,
  .outro p {
    padding-inline: 5rem;
    --font-scale: 1;
    text-align: center;
  }

  .intro p {
    margin-top: -2rem;
    padding-bottom: 1rem;
  }

  .intro h1 {
    position: relative;
    bottom: 1rem;
    padding-block: 1.5rem;
    padding-inline: 5rem;
    border: 2px solid var(--HeaderText);
    border-radius: 20px;
    background-color: var(--HeaderBackground);
    color: var(--HeaderText);
    bottom: 2.3rem;
  }

  .outro p {
    padding-top: 1rem;
  }

  .outro h2 {
    display: none;
  }

  .hero {
    overflow: hidden;
  }

  .navigation > div {
    margin-inline: 5rem;
  }

  .navigation a {
    width: 100%;
  }

  .outro {
    justify-content: center;
    align-items: center;
    padding-bottom: 2rem;
  }

  .outro p {
    max-width: 100%;
  }

  .bottom-navigation {
    padding-top: 2rem;
    padding-bottom: 1rem;
    flex-direction: row;
  }

  #realresume,
  #fakeresume {
    font-size: calc(1.5rem * var(--font-scale));
    background-color: var(--MainBackground);
    border: none;
    border-radius: none;
    padding: 0;
  }

  .popup-aboutme,
  .popup-projects,
  .popup-skills,
  .popup-contact {
    max-width: 530px;
  }

  #shown-text {
    display: none;
  }

  #hidden-text {
    max-width: 100%;
    display: block;
  }
}

@media (max-width: 600px) {
  body {
    padding: 0;
  }

  .intro p,
  .outro p {
    font-size: 1rem;
  }

  .intro h1 {
    bottom: 2.3rem;
    padding-inline: 2rem;
    font-size: 2rem;
  }

  .navigation {
    gap: 3rem;
  }

  .navigation a {
    background-color: var(--MainBackground);
    border: none;
    border-radius: none;
    min-height: 0;
    color: var(--AccentGold);
  }

  .bottom-navigation {
    flex-direction: column;
    padding-top: 1rem;
  }

  .popup-aboutme,
  .popup-projects,
  .popup-skills,
  .popup-contact {
    display: none !important;
  }
}

@media (max-width: 446px) {
  body {
    background-color: var(--MainBackground);
  }
  .hero {
    border: none;
  }
}
