:root {
  --hero-gradient:
    radial-gradient(
      circle at 55% 35%,
      rgba(140, 20, 30, 0.35) 0%,
      rgba(140, 20, 30, 0) 55%
    ),
    radial-gradient(
      circle at 50% 100%,
      rgba(80, 10, 20, 0.18) 0%,
      transparent 100%
    ),
    linear-gradient(
      to bottom,
      #170609 0%,
      #170609 65%,
      #110608 82%,
      #080506 100%
    );

  --hero-gradient-1: radial-gradient(
    circle at center,
    #080506 0%,
    #110608 35%,
    #170609 65%,
    rgba(140, 20, 30, 0.35) 100%
  );
  --hero-shadow: 0 5px 2px 0 rgba(120, 20, 30, 0.35);
  --footer-shadow: 0 -5px 2px 0 rgba(120, 20, 30, 0.35);
  --dark-burgundy: #0f0a0c;
  --burgundy: #22151c;
  --button-color: #1f1319;
  --button-border-color: #58444b;
  --button-border-style: 1px solid var(--button-border-color);
  --button-text-color: white;
  --button-box-shadow: 0px 4px #4f202f;
  --button-border-radius: 5px;
  --light-burgundy: #482330;
  --light-burgundy: #482330;
  --light-burgundy-active: #5a2d3a;
  --experience-card-border: 4px solid rgba(153, 63, 89, 0.35);
  --experience-card-box-shadow: 0px 0px 2px 5px rgba(153, 63, 89, 0.35);

  --main-background-color: radial-gradient(
    circle at center,
    rgba(140, 20, 30, 0) 0%,
    rgba(90, 15, 23, 0.3) 35%,
    #160a0d 65%,
    #0f0a0c 100%
  );

  --view-more-background: radial-gradient(
    circle at center,
    rgba(42, 11, 22, 0.9) 0%,
    rgba(35, 9, 18, 0.915) 25%,
    rgba(27, 7, 14, 0.93) 45%,
    rgba(20, 6, 9, 0.945) 65%,
    rgba(13, 5, 7, 0.96) 82%,
    rgba(8, 5, 6, 0.975) 100%
  );
  --h1-font-size: 3rem;
  --h1-font-color: #9e3f59;
  --h2-font-size: 2.5rem;
  --h2-font-color: #e3a3a1;
  --p1-font-color: white;
  --p1-font-size: 1.4rem;
  --p2-font-size: 1rem;

  --home-card-label-color: rgba(158, 63, 89, 0.5);
  --h1-home-card-size: 2rem;
  --h2-home-card-size: 1.75rem;
  --p-home-card-size: 1.5rem;

  --h1-view-more: var(--h1-font-size);
  --h2-view-more: calc(var(--h1-font-size) * 0.8);
  --h3-view-more: calc(var(--h1-font-size) * 0.55);
  --h4-view-more: calc(var(--h1-font-size) * 0.4);
}
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;

  ::-webkit-scrollbar {
    width: 12.5px;
  }

  ::-webkit-scrollbar-track {
    background: var(--light-burgundy);
    border-radius: 1px;
  }

  ::-webkit-scrollbar-thumb {
    background: var(--burgundy);
    border: 2px solid var(--light-burgundy);
    border-radius: 10px;
  }
}

body,
.home-card {
  scrollbar-gutter: stable;
}

img,
svg {
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

[data-i18n] {
  white-space: pre-line;
  white-space: pre-wrap;
}
html {
  font-size: 16px;
  background-color: var(--dark-burgundy);
  background: linear-gradient(to bottom, #30070c, var(--dark-burgundy));
  font-family: "Inter", sans-serif;
  max-width: 100dvw;
  width: 100dvw;
  overflow-x: hidden;
}
body {
  max-width: 100dvw;
  width: 100dvw;
  overflow-x: hidden;
  background-color: var(--dark-burgundy);
}

.hero {
  display: flex;
  flex-direction: column;
  background: var(--hero-gradient);
  height: 100svh;
  width: 100dvw;
  box-shadow: var(--hero-shadow);
}

header.header {
  position: fixed;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--burgundy);
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  width: 100%;
  font-size: 1rem;
  height: 3rem;
  padding: 10px 10px;
  color: white;
  gap: 20px;
  border: 0.25px solid #9e3f59;
  box-shadow: 0px 0px 50px 10px rgba(153, 63, 89, 0.5);
  z-index: 1000000;
}
header.header__mobile {
  display: none;
}
button {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--button-color);
  border: var(--button-border-style);
  width: auto;
  height: 2rem;
  color: var(--button-text-color);
  cursor: pointer;
  box-shadow: var(--button-box-shadow);
  border-radius: var(--button-border-radius);
  font-size: var(--p2-font-size);
  transition: all 0.25s;
}
button img {
  height: 1.75rem;
  color: var(--button-text-color);
}

button:active {
  background-color: var(--light-burgundy-active);
  box-shadow: none;
  transform: translateY(4px);
}
ul.header__navbar,
ul.header__navbar--mobile {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 60%;
  gap: 5px;
  list-style-type: none;
}
ul.header__navbar--mobile {
  display: none;
}
ul li {
  width: 100%;
}
ul button {
  width: 100%;
  border-radius: 1px;
  border: none;
  height: 2rem;
  margin-top: -0.2rem;
  background: transparent;
}

ul button:active {
  transition: all 0.25s;
  transform: translateY(2px);
  transform: translateX(2px);
  height: calc(2.6rem - 4px);
  width: calc(100% - 4px);
  font-size: calc(var(--p2-font-size) - 1px);
}
ul button.active {
  border: 1px solid #ef4774;
  color: #ef4774;
  background-color: var(--button-color);
  box-shadow: 0px 4px #ef4774;
  font-weight: 400;
}

.header__logo {
  display: flex;
  align-items: center;
}
.header__logo__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.header__lang {
  display: flex;
  position: relative;

  flex-direction: column;
  align-self: center;
  width: fit-content;
}

.header__lang__button {
  display: flex;

  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 100%;
  align-items: center;
  border: var(--button-border-style);
  font-size: var(--p2-font-size);
}
.header__lang__options {
  position: absolute;

  display: flex;
  flex-direction: column;
  align-self: center;
  justify-content: space-evenly;

  background-color: var(--burgundy);
  top: 2rem;
  border: var(--button-border-style);
  height: 4rem;
  width: 100%;
  box-sizing: border-box;
}

.header__lang__options.disabled {
  display: none;
}
.header__lang__selector.enabled {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  background-color: var(--light-burgundy-active);
}
.header__lang__options {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  cursor: pointer;
}

.header__lang__button img,
.header__lang__icon {
  height: 1rem;
}
button.header__lang__selector {
  display: flex;
  gap: 10px;
  padding: 0 10px;
  width: max-content;
}
.hero__content {
  display: flex;
  height: calc(100svh);
  gap: 10px;
  padding: 20px;
  padding-left: calc(20px +12.5px);
  padding-top: calc(30px + 3rem);
}
h1 {
  white-space: nowrap;

  color: var(--h1-font-color);
  font-size: var(--h1-font-size);
  font-weight: 600;
  align-self: center;
  justify-content: center;
  justify-self: center;
  text-align: center;
}
h2 {
  white-space: nowrap;
  color: var(--h2-font-color);
  font-size: var(--h2-font-size);
  font-weight: 400;
  align-self: center;
  justify-content: center;
  text-align: center;
}
.hero-description-card {
  min-height: 0%;
  max-height: max-content;
  flex: 1;

  border-radius: 20px;
  border: 1px solid rgba(120, 20, 30, 0.25);
  background: rgba(15, 10, 12, 0.25);
  display: flex;

  padding: 10px 3px 10px 10px;
}
.hero-description {
  min-height: 0;
  width: 100%;

  overflow-y: auto;

  display: flex;
  flex-direction: column;
  color: var(--p1-font-color);
  font-size: var(--p1-font-size);
  font-weight: 300;
}
.hero-description::before,
.hero-description::after {
  content: "";
  margin: auto 0;
}
.hero-description::-webkit-scrollbar {
  width: 5px;
  border-radius: 4px;
  opacity: 1;
}
.hero-description::-webkit-scrollbar-track {
  background: transparent;
}

.hero-description::-webkit-scrollbar-thumb {
  border: 1.5px solid rgba(120, 20, 30, 0.1);
  background-color: rgba(120, 20, 30, 0.1);
}
.hero-text {
  width: 50dvw;
  height: 100%;
  gap: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-panel-home,
.hero-panel-projects,
.hero-panel-experience,
.hero-panel-education,
.hero-panel-contact,
.hero-panel-about {
  position: relative;
  box-shadow: 0 0 80px 10px rgba(79, 32, 47, 0.2);
  width: 50%;
  height: 100%;
  border-radius: 50px;
  box-shadow: var(--hero-shadow);
  border: 1px solid rgba(120, 20, 30, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  min-height: 0;
  flex: 1;

  overflow: hidden;
}
.hero-panel-home img,
.hero-panel-projects img,
.hero-panel-experience img,
.hero-panel-education img,
.hero-panel-contact img,
.hero-panel-about img {
  width: auto;
  max-width: 100%;
  height: 100%;
  position: absolute;

  object-fit: cover;
  object-position: bottom center;
  opacity: 0;
  transition: opacity 0.35s linear;
}

.hero-panel-home img.loaded,
.hero-panel-projects img.loaded,
.hero-panel-experience img.loaded,
.hero-panel-education img.loaded,
.hero-panel-contact img.loaded,
.hero-panel-about img.loaded {
  opacity: 1;
}
.hero-buttons,
.explore-more-button {
  display: flex;
  align-items: center;

  justify-content: space-evenly;
}
button.explore-more-button {
  width: 100%;
  gap: 20px;
  padding-top: 20px;
  padding-bottom: 20px;
}
.download-cv,
.more_about_me {
  width: 45%;
}
button.active {
  background-color: var(--light-burgundy-active);
}
.home-main,
.projects-main,
.contact-main,
.about-main,
.education-main,
.experience-main {
  background: var(--main-background-color);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  grid-gap: 20px;
  grid-row-gap: 80px;
  padding: 60px 25px;
  height: 100%;
  margin: 5px 0px;
  color: white;
}
.home-card,
.projects-card,
.contact-card,
.about-card,
.education-card,
.experience-card {
  position: relative;
  width: 100%;
  height: 80vh;
  background-color: var(--dark-burgundy);
  border-radius: 10px;
  box-shadow: 0px 0px 2px 5px rgba(153, 63, 89, 0.35);
  display: flex;
  padding: 40px 20px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  overflow-y: auto;
  overflow-x: hidden;
  gap: 20px;
  text-align: center;
}

.project-card-more-content {
  display: flex;
  flex-direction: column;
  align-self: flex-start;
  justify-content: flex-start;
  justify-self: flex-start;
  padding: 2rem;
  gap: 1rem;
  width: 90%;
  left: 5%;
  position: relative;
}
.project-card-description {
  font-size: var(--p1-font-size);
  color: var(--p1-font-color);
}
.project-card-more-content ul {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  gap: 0.5rem;
}
.list-elements {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.list-elements ul {
  padding-left: max(10%, 3rem);
}
.projects-card .t1 {
  font-size: var(--h1-view-more);
}
.projects-card .t2 {
  font-size: var(--h2-view-more);
  align-self: flex-start;
  justify-self: flex-start;
}
.projects-card .t3 {
  font-size: var(--h3-view-more);
  color: var(--p1-font-color);
  text-align: left;
}
.projects-card .t4 {
  font-size: var(--h4-view-more);
}
.iframe-card {
  display: flex;
  flex-direction: row;
  width: calc(100% - 10px);
  height: 90vh;
  max-height: max-content;
  margin-left: 10px;
  margin-right: auto;
  overflow: hidden;
  border-radius: 15px;
}
.scroll_area {
  display: flex;
  width: 10%;

  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  gap: 10px;
}
.scroll_area img {
  width: 10%;
}
.scroll_up,
.scroll_down {
  display: none;
}

.iframe-card iframe,
.iframe-card video {
  display: block;
  width: 90%;
  height: 100%;

  border-radius: 15px;
  border: 5px solid var(--button-border-color);
}

.home-card h1,
.contact-card h1,
.about-card h1,
.education-card h1,
.experience-card h1 {
  font-size: var(--h1-home-card-size);
}
.home-card h2,
.contact-card h2,
.about-card h2,
.education-card h2,
.experience-card h2 {
  font-size: var(--h2-home-card-size);
}
.contact-card .card_description_accent {
  color: var(--p1-font-color);
  text-decoration: underline;
  align-self: center;
  justify-self: center;
  font-size: var(--p-home-card-size);
  font-weight: bold;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  text-align: center;
  max-width: calc(100% + 36px);
  text-underline-offset: 0.5rem;
}
.contact-card .card_description_accent:hover {
  color: var(--h1-font-color);
  font-size: calc(1.1 * var(--p-home-card-size));
}
.home-card p,
.projects-card p,
.contact-card p,
.about-card p,
.education-card p,
.experience-card p {
  font-size: var(--p-home-card-size);
}

.home-card img,
.projects-card img,
.contact-card img,
.about-card img,
.education-card img,
.experience-card img {
  max-width: 80%;
  height: auto;
  align-self: center;
  border-radius: 20px;
}
.home-card button,
.projects-card button,
.contact-card button,
.about-card button,
.education-card button,
.experience-card button {
  width: 60%;
  min-height: 40px;
  align-self: center;
  margin: 0;
}
footer.home-footer {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  padding: 30px 10%;
  box-shadow: var(--footer-shadow);
}
footer p {
  color: var(--p1-font-color);
  font-size: var(--p1-font-size);
}
footer.home-footer p.footer-button {
  cursor: pointer;
  text-decoration: underline;
}
footer.home-footer p.footer-button:active {
  color: var(--h1-font-color);
}

.projects-card__top {
  width: 90%;
  height: max-content;
  align-self: center;
  border-radius: 25px;
  background: var(--light-burgundy);
  align-items: center;
  justify-content: center;
  position: relative;
}

.projects-card__top_front {
  width: 100%;
  align-self: center;
  height: 60%;
  border-radius: 20px;
  background: var(--light-burgundy);
  border: 1px solid var(--burgundy);
  z-index: 10;
  position: absolute;
  opacity: 0.9;
  transform: skew(-10deg);
  bottom: 0px;
  left: 3%;
}

.projects-card__top .projects-card__rounds {
  border-bottom-right-radius: 10px;
  height: 30px;
  width: 50%;
  background: var(--dark-burgundy);
  transform: skew(-40deg);
}

.projects-card__top .projects-card__rounds::before {
  content: "";
  position: absolute;
  width: 15px;
  height: 25px;
  top: -2px;
  right: -15px;
  background: rgba(255, 255, 255, 0);
  border-top-left-radius: 100px;
  box-shadow: -5px -5px 0 2px var(--dark-burgundy);
}

.projects-card__top::before {
  content: "";
  position: absolute;
  top: 30px;
  left: 0;
  background: rgba(255, 255, 255, 0);
  height: 15px;
  width: 15px;
  border-top-left-radius: 15px;
  box-shadow: -5px -5px 0 2px var(--dark-burgundy);
}

.projects-card img {
  border-radius: 10px;
  margin: 5px;
  margin-top: 10px;
  min-width: 90%;

  align-self: center;
  transition: all 1.3s ease-in-out;
}

.projects-card img.photo-minimized:hover {
  transform: scale(1);

  transform: translateY(-30%);
  border: none;
  outline: 4px solid var(--light-burgundy-active);
}
.projects-card {
  justify-content: space-evenly;
  gap: 20px;
}
.contact-card {
  position: relative;
  overflow: visible;
  box-shadow: 6px 6px 10px 6px rgba(209, 218, 218, 0.068);
  border: solid 5px rgba(153, 63, 89, 0.35);
  border-radius: 35px;
  width: 100%;
}
.contact-card .phone-notch {
  width: 70%;
  height: 22px;
  margin-top: -40px;
  align-self: center;
  background-color: rgba(153, 63, 89, 0.35);
  border: 1px solid rgba(153, 63, 89, 0.35);
  border-bottom-left-radius: 0.75rem;
  border-bottom-right-radius: 0.75rem;
}
.contact-card .phone-button-top {
  position: absolute;
  right: -12.99px;
  top: 100px;
  height: 10%;

  border: 4px solid rgba(153, 63, 89, 0.35);
  border-bottom-right-radius: 0.375rem;
  border-top-right-radius: 0.375rem;
}

.contact-card .phone-button-bottom {
  position: absolute;
  right: -12.99px;
  top: 40%;

  height: 15%;

  border: 4px solid rgba(153, 63, 89, 0.35);
  border-bottom-right-radius: 0.375rem;
  border-top-right-radius: 0.375rem;
}
.about-card {
  display: flex;
  position: relative;
  background: rgb(from var(--light-burgundy) r g b / 0.55);
  border-radius: 15px;
  box-shadow: 7px 5px 10px rgba(0, 0, 0, 0.333);
  padding: 0;

  border: 4px solid var(--light-burgundy);
  overflow: hidden;
}
.about-card-main::-webkit-scrollbar-track {
  background: transparent;
  width: 20px;
}
.about-card-main::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 30px;
  border-width: 0.5px;
}
.about-card-header {
  display: flex;
  justify-content: center;
  height: min(70px, max-content);

  width: 100%;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  background-color: rgb(from var(--dark-burgundy) r g b / 0.6);
}
.about-card-main {
  display: flex;
  align-items: center;

  justify-content: space-evenly;
  padding: 0 20px;
  flex-direction: column;
  gap: 10px;
  border-color: #141414;
  background: var(--hero-gradient);
  width: 96%;
  height: 90%;
  margin: 0 auto;
  border-radius: 10px;
  overflow: auto;
  box-shadow: 0px 0px 100px 10px var(--dark-burgundy);
}
.education-card {
  padding: 20px;
  border-radius: 30px;
  justify-content: space-evenly;
}
.education-card-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  align-self: center;
  padding: 10px;
  gap: 10px;
  border-radius: 15px;
  border: 3px solid var(--light-burgundy);
  background-color: rgb(from var(--light-burgundy) r g b / 0.2);
  background: var(--hero-gradient-1);

  width: 100%;
  height: 70%;
  overflow: auto;
}
.education-card-main::-webkit-scrollbar {
  width: 10px;
}

.education-card-main::-webkit-scrollbar-track {
  background: transparent;
}
.about-card-footer {
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  content: " ";
  width: 100%;
  height: min(74px, max-content);
  left: 0;

  border-top: 4px solid var(--light-burgundy);
}

.experience-card {
  border-radius: 0;
  position: relative;
}

.experience-card-top-left,
.experience-card-top-right,
.experience-card-bottom-right,
.experience-card-bottom-left {
  position: absolute;
  width: 125px;
  height: 125px;
  margin: 5px;
}
.experience-card-top-left {
  border-top: var(--experience-card-border);
  border-left: var(--experience-card-border);
  left: 0;
  top: 0;
}

.experience-card-top-right {
  border-top: var(--experience-card-border);
  border-right: var(--experience-card-border);
  right: 0;
  top: 0;
}
.experience-card-bottom-right {
  border-bottom: var(--experience-card-border);
  border-right: var(--experience-card-border);
  bottom: 0;
  right: 0;
}
.experience-card-bottom-left {
  border-bottom: var(--experience-card-border);
  border-left: var(--experience-card-border);
  bottom: 0;
  left: 0;
}
.experience-card-header {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  height: max-content;
  width: 95%;
  align-self: center;
  border-bottom: var(--experience-card-border);
}

.experience-card img,
.education-card img,
.about-card img {
  max-width: 60%;
  max-height: 80%;
  align-self: center;
}
.experience-card-main {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  padding: 0;
  text-align: center;
  height: 100%;
  gap: 10px;
  width: 100%;
  overflow: auto;
}

body.disabled {
  overflow: hidden;
  position: fixed;
}
.view-more-layout.disabled {
  display: none;
}
.view-more-layout {
  position: fixed;
  display: flex;
  overflow: hidden;
  justify-content: center;
  align-items: center;
  align-self: center;
  width: 100vw;
  height: 100dvh;
  top: 0;
  left: 0;
  z-index: 1000000;
  background: rgba(15, 10, 12, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.view-more-content {
  position: relative;
  width: calc(100vw);
  height: calc(100dvh - 60px);
  overflow-y: auto;

  background: var(--view-more-background);
  border: 4px solid var(--light-burgundy);
  border-radius: 15px;
  color: white;
  padding-top: 35px;
  padding-bottom: 35px;
  scroll-behavior: smooth;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
button.close-modal {
  position: fixed;
  background: rgba(15, 10, 12, 1);
  opacity: 1;
  top: 34px;
  border-radius: 11px;
  right: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  padding: 0;
  margin: 0;
  aspect-ratio: 1/1;
  min-height: 0;
  z-index: 10;
}
button.close-modal img {
  width: 50%;
  height: 50%;
  align-self: center;
  justify-self: center;
}
.carousel {
  position: relative;
  justify-self: center;
  width: 100%;
  height: 80dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
button.carousel-button {
  position: absolute;
  max-width: 24px;
  height: 30%;
  z-index: 10;
}
button.carousel-button.left {
  left: 5px;
}
button.carousel-button.right {
  right: 5px;
}
.carousel-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(500px, 80vw);
  height: 50dvh;
  transform-style: preserve-3d;
  transition: transform 0.8s ease;
}

.carousel-content > img {
  position: absolute;
  max-width: min(520px, 58vw);
  max-height: 50dvh;
  width: auto;
  height: auto;
  object-fit: contain;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.carousel-hitbox {
  position: absolute;

  z-index: 5;
  cursor: pointer;

  background: transparent;
}

img.carousel-image-hover {
  filter: brightness(1.02);
  border: 3px solid var(--light-burgundy-active);
}
img.photo-minimized:hover {
  cursor: pointer;
  transform: scale(1.02);
  filter: brightness(1.02);
  border: 5px solid var(--light-burgundy-active);
  transition: transform 0.3s ease;
}

img.photo-zoomed {
  max-width: calc(100dvw - 90px);
  max-height: calc(100dvh - 90px);
  align-self: center;
  justify-self: center;
  border: 5px solid var(--light-burgundy-active);
}

.close-modal.photo-zoomed {
  position: fixed;
  top: 10px;
  right: 10px;
}

@media (min-width: 1400px) {
  :root {
    --h1-font-size: 4rem;
    --h2-font-size: 3rem;
    --p1-font-size: 2rem;
    --p2-font-size: 1.15rem;

    --h1-home-card-size: 3.5rem;
    --h2-home-card-size: 2.5rem;
    --p-home-card-size: 1.5rem;
  }
  .hero__content {
    padding: 5%;
    gap: 5%;
  }
  .hero-panel-home {
    height: 90%;
    align-self: center;
  }
  .hero-text {
    height: 90%;
    align-items: center;
    justify-content: space-between;
    align-self: center;
  }
  .hero-buttons {
    width: 80%;
  }
  .hero-text button {
    width: 40%;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 5px;
  }
  .home-main,
  .projects-main,
  .about-main,
  .experience-main,
  .education-main {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  }
  .experience-main {
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  }

  .education-main {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  }
  .contact-main {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media (max-width: 1400px) {
  :root {
    --h1-font-size: 3.25rem;
    --h2-font-size: 2.25rem;
    --p1-font-size: 1.25rem;
    --p2-font-size: 1rem;

    --h1-home-card-size: 3rem;
    --h2-home-card-size: 2rem;
    --p-home-card-size: 1rem;
  }
  .hero__content {
    padding: 5%;
    gap: 5%;
  }
  .hero-panel-home {
    height: 90%;
    align-self: center;
  }
  .hero-text {
    height: 90%;
    align-items: center;
    justify-content: space-between;
    align-self: center;
  }
  .hero-buttons {
    width: 80%;
  }
  .hero-text button {
    width: 40%;
    min-width: max-content;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 15px;
    padding: 0 10px;
  }
  .home-main,
  .projects-main,
  .about-main,
  .education-main {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  }
  .experience-main {
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  }
  .contact-main {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 900px) {
  :root {
    --h1-font-size: 2.75rem;
    --h2-font-size: 2rem;
    --p1-font-size: 1.25rem;
    --p2-font-size: 0.85rem;

    --h1-home-card-size: 2.5rem;
    --h2-home-card-size: 1.75rem;
    --p-home-card-size: 1rem;
  }

  .explore-more-button img {
    width: 14px;
    height: 14px;
  }
  .home-main,
  .projects-main,
  .about-main,
  .education-main {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
  .experience-main {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
  .contact-main {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media (max-width: 750px) {
  :root {
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.75rem;
    --p1-font-size: 1.15rem;
    --p2-font-size: 0.65rem;

    --h1-home-card-size: 2rem;
    --h2-home-card-size: 1.5rem;
    --p-home-card-size: 1rem;
  }
  .header__logo__text {
    display: none;
  }
  .scroll_up,
  .scroll_down {
    display: block;
  }
  .scroll_mouse {
    display: none;
  }
  .hero__content {
    flex-direction: column;
    padding-top: 3.5rem;
  }
  .hero-text {
    width: 100%;
    height: 60%;
    gap: 10px;
  }

  .hero-panel-projects,
  .hero-panel-home,
  .hero-panel-experience,
  .hero-panel-education,
  .hero-panel-contact,
  .hero-panel-about {
    order: -1;
    width: 100%;
    height: 100%;
  }
  .home-main,
  .projects-main,
  .about-main,
  .education-main {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
  .experience-main {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  .contact-main {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
  footer.home-footer {
    flex-direction: column;
    padding: 20px 10%;
    gap: 15px;
  }
  footer.home-footer p.footer-separator {
    display: none;
  }
  .carousel-content {
    width: min(190px, 80vw);
  }

  ul.header__navbar {
    gap: 1.5px;
  }
  header.header {
    gap: 5px;
    padding: 5px;
  }
  .carousel {
    height: min(70dvh, 640px);
  }
  .carousel-content {
    width: calc(100vw - 112px);
    height: min(58dvh, 560px);
    transform-style: flat;
  }
  .carousel-content > img {
    max-width: 100%;
    max-height: 100%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
}

@media (max-width: 450px) {
  :root {
    --h1-font-size: 2rem;
    --h2-font-size: 1.5rem;
    --p1-font-size: 1.25rem;

    --h1-home-card-size: 1.75rem;
    --h2-home-card-size: 1.5rem;
    --p-home-card-size: 1.15rem;
  }

  .hero-text {
    justify-content: space-evenly;
  }

  .header__lang {
    width: max-content;
  }
  ul.header__navbar {
    display: none;
  }

  .home-main,
  .projects-main,
  .contact-main,
  .about-main,
  .education-main,
  .experience-main {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
  .header__lang .header__lang__selector {
    gap: 2px;
    padding: 0 2px;
    width: max-content;
  }
  .header__lang .header__lang__icon {
    width: 25%;
  }
  .header__lang .header__lang__icon.lang,
  .header__lang__button img {
    display: none;
  }
  .header__lang__button {
    padding: 0;
  }

  header.header img {
    max-width: 80%;
  }
  ul.header__navbar--mobile {
    display: flex;
    width: 100%;
  }
}
@media (max-width: 350px) {
  main.home-main {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    padding: 40px auto;
  }
}
@media (max-width: 300px) {
  :root {
    --h1-font-size: 1.75rem;
    --h2-font-size: 1.25rem;
    --p1-font-size: 1rem;
    --p2-font-size: 0.5rem;

    --h1-home-card-size: 1.5rem;
    --h2-home-card-size: 1.2rem;
    --p-home-card-size: 1rem;
  }

  .header__logo {
    display: none;
  }
  .header__lang__icon {
    display: none;
  }
  .header__lang button.header__lang__selector {
    width: 100%;
    padding: 0 5px;
  }
  main.home-main {
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  }
}
@media (min-width: 451px) {
  .button:hover {
    background-color: white;
    color: black;
  }
}
@media (min-width: 451px) {
  button:hover,
  .header__lang__button:hover {
    background-color: var(--light-burgundy);
  }
  footer.home-footer p.footer-button:hover {
    color: var(--h1-font-color);
  }
}
