:root {
  --white: #e2e8f0;
  --clear: #c0caf5;
  --green1: #003b4a;
  --green2: #2f735a;
  --green3: #4ad9a4;
  --blue1: #111826;
  --blue2: #0f2f59;
  --blue3: #264cbf;
  --blue4: #00abf0;
}

html {
  font-family: "Inter";
  font-size: 16px;
}

/*----- Halo -----*/
.halo {
  z-index: 1;
  position: fixed;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(
    circle,
    rgba(26, 76, 191, 0.2) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  transform: translate(-50%, -50%);
  mix-blend-mode: screen; /* gives a glowing feel */
  transition: transform 0.05s linear;
}

/* Back to Top Button */
#backToTop {
  display: none; /* Hidden by default */
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 99;
  font-size: 1.5rem;
  background: var(--blue2);
  color: var(--clear);
  border: none;
  outline: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
  transition: opacity 0.3s ease, transform 0.2s ease;
}

#backToTop:hover {
  background: var(--green3);
  color: var(--blue1);
  transform: scale(1.1);
}

body {
  background: var(--blue1);
  line-height: 1.5;
  font-weight: 300;
}

h1 {
  color: var(--clear);
  font-size: 3rem;
  margin: 0.75rem 0;
}

h2 {
  font-size: clamp(12px,)
  margin: 0.75rem 0;
}

h3 {
  color: var(--clear);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0.75rem 0;
}

h4 {
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0;
  margin: 0.75rem 0;
}

section {
  margin: 4rem 0;
}

ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

p {
  padding-bottom: 0.75rem;
}

a {
  text-decoration: none;
}

i {
  font-size: .9rem;
  font-weight: 500;
}

hr {
  border: 0.5px solid var(--green3);
}

/*----- FONT WIDTH CONFIG -----*/
.whole-container {
  display: flex;
  color: var(--clear);
  width: 100%;
  height: 100%;
  justify-content: center;
}

.center-container {
  width: min(90%, 1300px);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

/*----- LEFT COLUMN -----*/
.left-col {
  display: block;
  position: sticky;
  top: 1rem;
  width: min(40%, 400px);
  min-width: 400px;
  max-height: calc(100vh - 6rem);
}

.left-top {
  height: 60%;
}

.title {
  position: sticky;
}

.title-box p {
  width: 100vw;
  max-width: 350px;
  text-align: left;
}

.nav-list a{
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--green1);
}

.nav-list a:hover{
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--green3);
  margin: .20rem;
}

.contact-box {
  display: flex;
  width: 100%;
  position: relative;
  height: 40%;
  justify-content: center;
  align-items: flex-end;
}

.contact-box ul {
  display: flex;
  justify-content: center;
}

.contact-box li {
  display: flex;
  min-width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
}

.contact-box img {
  width: 2rem;
}

.contact-box i:hover {
  font-size: 2rem;
  color: var(--blue4);
}

/*----- RIGHT COLUMN -----*/
.right-col {
  min-width: 40%;
  max-width: 60%;
  padding: 1rem;
}

.sum {
  margin: 0;
}

.skills-box {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.skills-box span {
  padding: 0.2rem 1rem;
  margin: 0.5rem;
  color: var(--green3);
  background: var(--green1);
  border-radius: 0.75rem;
}

.experience {
  display: block;
}

.exp-card {
  display: flex;
  margin: 2rem 0;
}

.card-date {
  display: block;
  width: 25%;
}

.card-date span {
  font-size: 0.8rem;
  font-weight: 500;
  width: 100%;
  margin: 0;
}

.card-date img{
  padding: 1rem;
  width: 80%;
}

.exp-desc {
  width: 75%;
}


.competences ul {
  list-style-type: square;
  padding-left: 2rem;
}

.competences li {
  padding-top: 1rem;
}

.proj-title {
  display: flex;
  width: 100%;
}

.proj-title a {
  display: flex;
  align-items: center;
}

.proj-title i {
  padding: 1.5rem;
  color: var(--blue2);
  font-size: 1.25rem;
}

.proj-title i:hover {
  font-size: 1.25rem;
  color: var(--blue4);
}

.proj-description {
  display: flex;
  width: 100%;
}

.proj-description p {
  width: 60%;
}

.proj-img {
  width: 40%;
  padding: 1rem;
}

.proj-img img {
  width: 100%;
  border-radius: 1rem;
  border: 2px solid var(--blue2);
}

.progLangs {
  display: block;
  width: 100%;
  justify-content: center;
}

.progLangs-list {
  display: flex;
  align-items: center;
  justify-content: center;
}

.progLangs-list li {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 3rem;
}

.progLangs img {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
  display: inline-block;
}


.card {
  display: flex;
}

.card img{
  max-height: 5rem;
  min-width: 12rem;
  max-width: 14rem;
  padding: 1rem;
  object-fit: contain;
}

.homelab-card {
  display: flex;
}

.homelab-img {
  display: flex;
  width: 100%;
}

.homelab-desc {
  padding: 0;
}

.distro-container{
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
}

.distro-card {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.distro-container img{
  height: 64px;
  width: 64px;
}

.rise {
  width: 100%;
}

.rise-img-box img {
  width: 100%;
  border: 1px solid var(--blue2);
  border-radius: 1rem;
}

.rise-list {
  height: 2rem;
  display: block;
}

.rise-list li{
  display: flex;
}

.rise-list i{
  font-size: 1.5rem;
  width: 3rem;
  color: var(--blue3);
}

/*----- Media -----*/

@media (max-width: 1250px) {
  html {
    font-size: 14px;
  }

  .center-container {
    display: block;
    width: 100vw;
  }
  .left-col {
    position: static;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    padding: 2rem;
  }
  .right-col {
    position: static;
    max-width: 100vw;
    padding: 2rem;
  }

  .proj-card {
    width: 100%;
    display: block;
  }
  .proj-description {
    display: block;
  }
  .proj-description p {
    width: 100%;
  }
  .exp-card{
    display: block;
  }
  .proj-img {
    width: 100%;
  }
  .card{
    display: block;
  }
}
