* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.main__greeting,
.main__description,
.profile__image,
.main__links,
.stats,
.lines,
.projects__list h4 {
  will-change: transform, opacity;
  backface-visibility: hidden;
  perspective: 1000px;
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:root {
  --color-lightest: #aac5e5;
  --color-light: #87a2c0;
  --color-medium: #657f9d;
  --color-medium-dark: #445f7b;
  --color-dark: #23405a;
  --color-darkest: #00243c;

  --color-primary: var(--color-medium-dark);
  --color-secondary: var(--color-light);
  --color-accent: var(--color-lightest);
  --color-background: #f7f7f7;
  --color-text: var(--color-darkest);
  --color-text-light: #fff;
}

@font-face {
  font-family: "Ranade";
  src: url("./Ranade-Variable.ttf");
}

@font-face {
  font-family: "Cabinet";
  src: url("./CabinetGrotesk-Variable.ttf");
}

@font-face {
  font-family: "Gambetta";
  src: url("./Gambetta-Variable.ttf");
}

@font-face {
  font-family: "Array";
  src: url("./Array-Regular.otf");
}

@font-face {
  font-family: "signature";
  src: url("./24.ttf");
}

body {
  width: 100%;
  height: 100vh;
  background: #f7f7f7;
}

.container {
  width: 100%;
  height: 100%;
}

.sidebar {
  width: 80px;
  height: 100vh;
  position: fixed;
  padding: 4px;
  transition: width 0.3s ease-in-out;
}

.sidebar__floating {
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  border-radius: 8px;
  background-color: #fff;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.1);
  position: relative;
}
.signature {
  position: absolute;
  top: 0%;
  left: 50%;
  transform: rotate(-20deg) translateX(-50%);
  font-family: "signature", sans-serif;
  text-decoration: underline;
  font-size: 1vw;
  color: var(--color-darkest);
}
/* .signature {
  position: absolute;
  top: 0%;
  left: -20%;
  transform: rotate(-90deg) translateX(-50%);
  font-family: "signature", sans-serif;
  text-decoration: underline;
  font-size: 1vw;
  color: var(--color-darkest);
  white-space: nowrap;
} */

.dots {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 55%;
  gap: 8px;
}

.bar {
  width: 5px;
  height: 50px;
  border-radius: 9999px;
  background-color: var(--color-lightest);
  margin: 4px 0;
  transition: all 0.3s ease-in-out;
  position: relative;
  cursor: pointer;
}
.bar.active {
  background-color: var(--color-light);
}

.overlap {
  content: "";
  position: absolute;
  bottom: 0%;
  left: 0%;
  width: 100%;
  height: 0%;
  border-radius: 9999px;
  background-color: var(--color-medium-dark);
  transition: height 0.4s ease-in-out;
  box-shadow: 0 2px 8px rgba(68, 95, 123, 0.3);
}

.bar {
  position: relative;
}

.content {
  width: calc(100% - 100px);
  height: 100vh;
  position: fixed;
  left: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4px;
}

.main__container {
  width: 100%;
  height: 100%;
  background: #fefefe;
  border-radius: 8px;
  /* padding: 8px; */
  position: relative;
  /* overflow: hidden; */
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
}

.main__container::-webkit-scrollbar {
  display: none;
}

.home {
  height: 100%;
  width: 80%;
  z-index: 5;
  flex-shrink: 0;
  padding: 8px;
}

.main__greeting {
  font-family: "Cabinet", sans-serif;
  font-size: 20vh;
  color: var(--color-darkest);
  font-weight: bold;
  line-height: 1;
}

.main__description {
  font-family: "Gambetta", sans-serif;
  width: 60%;
  font-size: 3vh;
  color: var(--color-medium-dark);
  margin-bottom: 16px;
  padding-left: 48px;
  margin-top: 16px;
  font-style: italic;
}

.main__name {
  font-family: "Ranade", sans-serif;
  font-size: 4vh;
  color: var(--color-darkest);
  font-style: normal;
}

.main__profession {
  color: var(--color-dark);
  font-family: "Ranade", sans-serif;
  font-style: normal;
}

.main__links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: absolute;
  bottom: 1%;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  border-radius: 9999px;
  border: 1px solid var(--color-medium-dark);
  padding: 6px 12px;
  font-family: "Gambetta", sans-serif;
  z-index: 2;
  background: #fff;
}

.social__container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #1a1930;
  border-radius: 9999px;
  padding: 6px 12px;
}

.social__icon {
  width: 16px;
  height: 16px;
}
.social__text {
  font-size: 1.1vw;
  color: #fefefe;
  text-transform: uppercase;
  line-height: normal;
  display: none;
}

.main__email {
  font-family: "Gambetta", sans-serif;
  font-size: 2vh;
  text-decoration: none;
  transition: color 0.3s ease-in-out;
}

.main__email a {
  text-decoration: none;
  color: var(--color-darkest);
}

.lines {
  /* position: absolute; */
  /* top: 0; */
  /* right: 0; */
  flex-shrink: 0;
  width: 100%; /* Initially 20%/100 */
  height: 100%;
  overflow: hidden;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: start;
  /* Initially Center */
  /* padding-inline: 1rem; */
  /* Initially Not / But in future*/
  padding: 8px 12px;
  position: relative;
}

.lines__nav {
  position: absolute;
  top: 0;
  left: 0%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 8px;
  width: 20%;
  height: 100%;
}

.vertical__line {
  position: absolute;
  top: 0;
  left: 0%;
  width: 1px; /* Initially 1px/0 */
  height: 90%; /* Initially 95%/100 */
  background-color: var(--color-medium-dark);
}

.project__line {
  position: absolute;
  top: 0%;
  right: -5%;
  width: 1px;
  height: 20%;
  background-color: var(--color-medium-dark);
}

.horizontal__line {
  position: absolute;
  top: 20%;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--color-medium-dark);
}

.lines h3,
.work__lines h3,
.home__lines h3 {
  font-family: "Cabinet", sans-serif;
  font-size: 2.5vw; /* Initially 2.5vw/8 */
  color: var(--color-darkest);
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
  line-height: 1;
}

.arrow_svg {
  font-family: "Cabinet", sans-serif;
  font-size: 1.5vw;
  border: 1px solid #000;
  border-radius: 9999px;
  padding: 14px 10px;
  display: inline-flex;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateZ(0);
  margin-top: 12px;
}

.arrow_svg:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.stats {
  position: absolute;
  top: 0;
  right: 20%;
  width: 15%;
  height: 95%;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stats__container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.stats__container span:first-child {
  font-family: "Array", sans-serif;
  font-size: 12vh;
  color: var(--color-darkest);
  text-transform: uppercase;
  line-height: 1;
}

.stats__container span:last-child {
  font-family: "Cabinet", sans-serif;
  color: var(--color-medium-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.profile__image {
  margin-top: 16px;
  margin-left: 20px;
  position: relative;
  padding: 8px;
  display: flex;
}

.img__wrapper {
  width: 150px;
  height: 150px;
  position: relative;
  overflow: hidden;
  border-radius: 50%;
}
.img__wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease-in-out;
}

.profile__image p {
  font-family: "Cabinet", sans-serif;
  font-size: 2vw;
  transform: rotate(-25deg);
}

.profile__svg {
  transform: rotate(-25deg);
  margin-top: 32px;
}

.projects__list {
  margin-top: 25vh;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
  align-items: center;
  position: absolute;
  left: 1%;
  top: 5%;
}

.projects__list h4 {
  font-family: "Cabinet", sans-serif;
  font-size: 1.5vw;
  color: var(--color-darkest);
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid var(--color-dark);
  border-radius: 100%;
  min-height: 15vh;
  height: 15vh;
  width: 17vw;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: -5vh;
  transition: all 0.3s ease;
  opacity: 1; /* Initially hidden */
}

.projects__container {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: end;
  position: relative;
  padding: 8px;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  scroll-behavior: smooth;
  /* opacity: 0;  */
  /* Initially hidden */
}

.projects__container::-webkit-scrollbar {
  display: none;
}

.project {
  width: 25vw;
  height: 80%;
  background: url("./Black\ and\ White\ Minimalist\ Desktop\ Mockup\ Instagram\ Post.svg")
    no-repeat center center;
  background-size: 100% 100%;
  border-radius: 16px;
  font-family: "Cabinet", sans-serif;
  padding: 4px;
  filter: grayscale(1);
  cursor: pointer;
  position: relative;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  min-width: 25vw;
  /* opacity: 0; */
}

.project:hover {
  filter: grayscale(0);
  background-size: 120% 120%;
}

.project.active {
  width: 35vw;
  height: 90%;
  background-size: 120% 120%;
  filter: grayscale(0);
}

.project__sidecircles {
  height: 80%;
  width: 100%;
  display: flex;
  justify-content: start;
  align-items: end;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  pointer-events: none;
}

.project__icon {
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  font-size: 1.2vw;
  text-align: center;
  padding: 8px 12px;
  color: #fff;
  font-weight: bold;
  border: 1px solid #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.project__url {
  height: 20%;
  width: 100%;
  display: flex;
  justify-content: start;
  align-items: center;
  padding: 0px 12px;
  gap: 8px;
}

.project__btn {
  border-radius: 9999px;
  font-family: "Cabinet", sans-serif;
  font-size: 1.2vw;
  color: var(--color-darkest);
  text-decoration: none;
  background-color: #fff;
  padding: 8px 16px;
  border: none;
}

.project__info {
  padding-block: 16px;
  padding-inline: 24px;
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 2vh;
  /* opacity: 0;  */
  /* Initially hidden */
}

.projects {
  width: 100%;
  opacity: 0;
  margin-left: 20vw;
  margin-top: 15vh;
}

.project__title {
  font-family: "Cabinet", sans-serif;
  font-size: 10vh;
  color: var(--color-darkest);
  letter-spacing: 1px;
  line-height: 1;
}

.project__description {
  font-family: "Gambetta", sans-serif;
  font-size: 3vh;
  color: var(--color-medium-dark);
}

.projects__navigation {
  display: flex;
  gap: 12px;
  z-index: 10;
  padding: 16px 32px;
}

.nav__btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--color-medium-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.nav__btn:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.05);
}

.nav__btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: scale(1);
}

.nav__btn svg {
  width: 20px;
  height: 20px;
  fill: var(--color-darkest);
}

.work__lines {
  position: absolute;
  top: 0%;
  right: 0%;
  width: 15%;
  height: 100%;
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.work__vertical_line {
  position: absolute;
  top: 0;
  left: 1%;
  width: 1px;
  height: 20%;
  background-color: var(--color-medium-dark);
}

.work__svg {
  font-family: "Cabinet", sans-serif;
  font-size: 1.5vw;
  border: 1px solid #000;
  border-radius: 9999px;
  padding: 14px 10px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  margin-top: 12px;
}

.home__lines {
  position: absolute;
  top: 0;
  left: 0%;
  width: 15%;
  height: 100%;
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  opacity: 0;
}

.home__vertical_line {
  position: absolute;
  top: 0;
  right: 1%;
  width: 1px;
  height: 20%;
  background-color: var(--color-medium-dark);
}

.home__svg {
  transform: rotate(180deg);
}

.section__title {
  font-family: "Gambetta", sans-serif;
  font-size: 8vw;
  color: var(--color-darkest);
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
  line-height: 1;
  margin-inline: auto;

  position: absolute;
  top: 10%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* margin-top: 16px; */
}

@media (max-width: 768px) {
  .sidebar {
    width: 100%;
    height: 80px;
  }

  .content {
    height: calc(100% - 100px);
    width: 100%;
    top: 90px;
    left: 0;
  }

  .projects__list h4 {
    min-height: 12vh;
    height: 12vh;
    width: 18vw;
  }

  .stats__container span:first-child {
    font-size: 8vh;
  }

  .main__description {
    padding-left: 12px;
    width: 75%;
  }

  .main__greeting {
    font-size: 10vh;
  }

  .project__title {
    font-size: 8vh;
  }

  .project__description {
    font-size: 2.5vh;
  }

  .projects__container {
    align-items: start;
  }

  .project {
    min-width: 50vw;
    height: 65%;
  }
  .project.active {
    min-width: 55vw;
    height: 80%;
  }

  .project__description {
    min-height: 50px;
  }
}
