/* #region default */
@supports not selector(::-webkit-scrollbar) {
  html {
    scrollbar-width: thin;
    scrollbar-color: var(--thumb-color) var(--track-color);
  }
}
* {
  box-sizing: border-box;
  padding: 0%;
  margin: 0%;
  font-family: sans-serif;

  ::-webkit-scrollbar {
    width: 0.5rem;
  }

  ::-webkit-scrollbar-thumb {
    background-color: #707070;
    border-radius: 0.7rem;
  }

  ::-webkit-scrollbar-track {
    background-color: #00000000;
    border-radius: 0.7rem;
  }
}
::selection {
  background: #c1c1c1;
  color: black;
}
a {
  text-decoration: none;
}
html {
  margin: 0;
  padding: 0;
  font-size: 16px;
}
body {
  cursor: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="10" height="10"%3E%3Ccircle cx="5" cy="5" r="5" fill="white" /%3E%3C/svg%3E')
      5 5,
    auto;
  margin: 0;
  padding: 0;
  background-color: #fff;
  overflow-x: hidden;
  max-height: 100%;
  max-width: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  display: flex;
}
body.fade-in {
  opacity: 1;
}

body.fade-out {
  opacity: 0;
}
.content {
  opacity: 1;
  position: relative;
  z-index: 1;
  transition: opacity 0.5s ease, transform 0.5s ease;
  max-height: 100%;
  scroll-behavior: smooth;
  overflow-y: auto;
  display: block;
  width: 100%;
}

a:hover,
li:hover,
p:hover {
  cursor: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="10" height="10"%3E%3Ccircle cx="5" cy="5" r="5" stroke-width="1" stroke="white" fill="none" /%3E%3C/svg%3E')
      5 5,
    pointer;
}
section {
  scroll-snap-align: start;
}

/* #endregion */

/* #region nav */
nav .right a:nth-child(1),
nav .right a:nth-child(2),
nav .right a:nth-child(3),
nav .right a:nth-child(4) {
  display: none;
}
nav {
  padding: 1rem 0.3rem 1rem 0.3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 50%;
  transition: all 1.5s ease-in-out;
  height: 3rem;
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: saturate(100%) blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translateZ(0);
  z-index: 9;
  position: fixed;
  top: 0;
  right: 0;
}

.nav-trigger:hover,
svg.moon:hover,
svg.sun:hover {
  color: #e7e7e7;
  transform: scale(0.9);
  -webkit-transform: scale(0.9);
}

nav.scroll-active {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3rem;
  padding: 0 2rem;
  box-sizing: border-box;

  background-color: rgba(42, 42, 42, 0.15);
  backdrop-filter: saturate(100%) blur(10px);

  -webkit-backdrop-filter: blur(10px);
  transform: translateZ(0);
  border-radius: 5px;
  z-index: 59;

  transition: all 1.5s ease-in-out;
}

nav .right {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-trigger {
  width: 1.9rem;
  height: 100%;

  z-index: 20;
  cursor: pointer;
  transition: top 0.2s ease-in, opacity 0.6s ease, transform 0.6s ease;
}

.nav-trigger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #000;

  transition: all 0.2s ease-in;
}
.nav-trigger span:nth-child(2) {
  margin: 0.3rem 0 0.3rem 0;
}

.nav-trigger.on span:first-child {
  transform: translateY(6px) rotate(45deg);
  background: #000;
}

.nav-trigger.on span:nth-child(2) {
  transform: translateX(50px);
  background: #000;
  opacity: 0;
}

.nav-trigger.on span:last-child {
  transform: translateY(-8px) rotate(-45deg);
  background: #000;
}
.nav-menu {
  cursor: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="10" height="10"%3E%3Ccircle cx="5" cy="5" r="5" fill="black" /%3E%3C/svg%3E')
      5 5,
    auto;
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-height: 0;
  background: white;
  overflow: hidden;
  z-index: 11;
  transition: max-height 0.5s ease, opacity 0.5s ease;
}
.n-top {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  border-bottom: 1px solid #fff;
  box-shadow: 0px 2px 15px 0px #0000006f;
  background-color: #fff;
}

.nav-menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 1rem;
  display: flex;
  flex-direction: column;
}

.n-left {
  padding: 1rem 0 0 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  height: 2.5rem;
  width: 16rem;
}

.n-left p {
  font-size: 2rem;
}
.n-cp-left {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
}

.n-right {
  padding: 1rem 16rem 0 0;
  display: flex;
  justify-content: flex-start;

  flex-direction: column;
  align-items: flex-start;
  gap: 4rem;
  flex: 1;
  flex-wrap: wrap;
  align-content: flex-end;
}
.n-r-bot {
  padding-bottom: 4rem;
}

.nav-menu .n-close {
  margin: 0 0 3rem 0;
}
.nav-menu .n-close a {
  color: #757575;
  font-size: 1rem;
}

.nav-menu .n-cpright {
  margin: 0;
  padding: 0 2rem 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-menu .n-cpright p {
  font-size: 10rem;
  margin-top: -3.5rem;
  z-index: -10;
}

.n-cpright .logo-container {
  display: flex;
  flex-wrap: wrap;
  flex: 1;
  justify-content: flex-end;
  padding-right: 5rem;
}
.n-cpright .logo-container .logo {
  width: 6rem;
  height: 6rem;
}

.nav-menu ul li a {
  text-decoration: none;
  font-size: 1.2rem;
  color: black;
  transition: color 0.3s ease;
}

.nav-menu ul li a:hover {
  color: gray;
}
.nav-menu.active {
  max-height: 80vh;
  visibility: visible;
  opacity: 1;
  box-shadow: 0px 2px 20px 0px #0000006f;
}
nav .right img {
  width: 1.7rem;
  height: 1.3rem;
}

nav a {
  font-size: 1.2rem;
  color: #000;
  text-decoration: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
nav a:hover {
  color: #e7e7e7;
  transform: scale(0.98);
  -webkit-transform: scale(0.98);
}

.c-social {
  margin-right: 0.625rem;
  border-radius: 50%;
  background-color: #1c1c1c;
  width: 1.875rem;
  height: 1.875rem;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  /* border: 1px solid #1C1C1C; */
  transition: background-color 0.6s cubic-bezier(0.075, 0.82, 0.165, 1),
    border-color 0.6s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.c-social .icon {
  width: 1rem;
  height: 1rem;
  fill: #fff;
  transition: fill 0.6s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.c-social:hover {
  background-color: #fff;
}

.c-social:hover .icon {
  fill: #000;
}
/* #endregion */

/* #region whole */
nav.expanded {
  width: 100%;
}
.s-left,
.s-right {
  width: 50%;
}
.s-left {
  height: 100vh;
  min-height: -webkit-fill-available;
  position: fixed;
  display: flex;
  flex-direction: column;

  overflow: hidden;
  z-index: 1;
}

.s-left video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: none;
  pointer-events: none;
}

.s-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
  background-color: #fff;
  margin-left: 50%;
  position: fixed;
  z-index: 1;
  height: 100vh;
  min-height: -webkit-fill-available;
}
.p-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  width: 100%;
  height: 100%;
  position: sticky;
  z-index: 2;
  transform: translateY(0);
  transition: transform 1s ease-out;
  padding: 0 0.3rem;
}
.p-title h1 {
  color: #000;
  font-size: 3rem;
}
.p-title p {
  font-size: 1.5rem;
  color: #000;
}
/* #endregion */

/* #region Dark mode */

body.light-mode {
  background-color: #eaeaea;
  transition: opacity 0.5s ease-in-out;
  cursor: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="10" height="10"%3E%3Ccircle cx="5" cy="5" r="5" fill="black" /%3E%3C/svg%3E')
      5 5,
    auto;
}
body.dark-mode {
  background-color: #1c1c1c;
  transition: opacity 0.5s ease-in-out;
}
body.dark-mode .s-right {
  background-color: #1c1c1c;
  transition: opacity 0.5s ease-in-out;
}
body.dark-mode nav {
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: saturate(100%) blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translateZ(0);
}
body.dark-mode .p-title p,
body.dark-mode .left,
body.dark-mode .pro-el p,
body.dark-mode .p-title h1 {
  color: #fff;
}
body.dark-mode .nav-trigger span {
  background-color: #fff;
}

/* #endregion */

.pros {
  background-color: #fff;
  margin-top: 100vh;
  position: relative;
  width: 100%;
  z-index: 2;
}
.imgs {
  width: 100%;
  height: max-content;
}

.imgs img {
  width: 100%;
  height: 100%;

  display: block;
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  margin: 0;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* #region screensizes */

@media (min-width: 1920px) {
}
@media (min-width: 1280px) and (max-width: 1380px) {
}

@media (min-width: 768px) and (max-width: 1279px) {
  .pros {
    margin-top: 10vh;
  }

  .p-title {
    position: relative;
  }
  .s-right {
    justify-content: center;
    height: 60vh;
    overflow-y: visible;
    position: relative;
  }

  .projects .language-selector {
    margin-left: 0.3rem;
  }
  .footer-content {
    height: auto;
  }
  .n-cpright .logo-container {
    padding: 0;
  }
  .n-cpright .logo-container .logo {
    width: 3rem;
    height: 3rem;
  }
  .nav-menu .n-cpright p {
    font-size: 5rem;
    margin-top: -1.5rem;
  }
  .n-r-bot {
    padding-bottom: 1rem;
  }
  .n-right {
    padding: 4rem 3rem 0 0;
  }
  .cpright .logo-container {
    position: static;
    transform: translateX(0);
  }
  .cpright {
    padding: 1rem 0 0.5rem 0;
    gap: 0.5rem;
    flex-direction: column;
  }
  .c-left {
    text-align: center;
    margin-top: 1rem;
  }
  nav {
    width: 100%;
  }
  .f-left {
    width: 100%;
  }
  .sub-con > * {
    flex: none;
  }
  .sub-con {
    justify-content: space-around;
  }
  .s-right {
    margin: 0;
  }
  .s-left {
    padding-top: 3rem;
    position: relative;
    overflow: auto;
    height: 60vh;
  }
  .s-left,
  .s-right {
    width: 100%;
  }
  .content {
    flex-direction: column;
  }
}

@media (min-width: 481px) and (max-width: 767px) {
  .pros {
    margin-top: 10vh;
  }

  .p-title {
    position: relative;
  }
  .s-right {
    justify-content: center;
    height: 60vh;
    overflow-y: visible;
    position: relative;
  }

  .projects .language-selector {
    margin-left: 0.3rem;
  }
  .footer-content {
    height: auto;
  }
  .n-cpright .logo-container {
    padding: 0;
  }
  .n-cpright .logo-container .logo {
    width: 3rem;
    height: 3rem;
  }
  .nav-menu .n-cpright p {
    font-size: 5rem;
    margin-top: -1.5rem;
  }
  .n-r-bot {
    padding-bottom: 1rem;
  }
  .n-right {
    padding: 4rem 3rem 0 0;
  }
  .cpright .logo-container {
    position: static;
    transform: translateX(0);
  }
  .cpright {
    padding: 1rem 0 0.5rem 0;
    gap: 0.5rem;
    flex-direction: column;
  }
  .c-left {
    text-align: center;
    margin-top: 1rem;
  }
  nav {
    width: 100%;
  }
  .f-left {
    width: 100%;
  }
  .sub-con > * {
    flex: none;
  }
  .sub-con {
    justify-content: space-around;
  }
  .s-right {
    margin: 0;
  }
  .s-left {
    padding-top: 3rem;
    position: relative;
    overflow: auto;
    height: 60vh;
  }
  .s-left,
  .s-right {
    width: 100%;
  }
  .content {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .pros {
    margin-top: 10vh;
  }

  .p-title {
    position: relative;
  }
  .s-right {
    justify-content: center;
    height: 60vh;
    overflow-y: visible;
    position: relative;
  }

  .projects .language-selector {
    margin-left: 0.3rem;
  }
  .footer-content {
    height: auto;
  }
  .n-cpright .logo-container {
    padding: 0;
  }
  .n-cpright .logo-container .logo {
    width: 3rem;
    height: 3rem;
  }
  .nav-menu .n-cpright p {
    font-size: 5rem;
    margin-top: -1.5rem;
  }
  .n-r-bot {
    padding-bottom: 1rem;
  }
  .n-right {
    padding: 4rem 3rem 0 0;
  }
  .cpright .logo-container {
    position: static;
    transform: translateX(0);
  }
  .cpright {
    padding: 1rem 0 0.5rem 0;
    gap: 0.5rem;
    flex-direction: column;
  }
  .c-left {
    text-align: center;
    margin-top: 1rem;
  }
  nav {
    width: 100%;
  }
  .f-left {
    width: 100%;
  }
  .sub-con > * {
    flex: none;
  }
  .sub-con {
    justify-content: space-around;
  }
  .s-right {
    margin: 0;
  }
  .s-left {
    padding-top: 3rem;
    position: relative;
    overflow: auto;
    height: 60vh;
  }
  .s-left,
  .s-right {
    width: 100%;
  }
  .content {
    flex-direction: column;
  }
}
/* #endregion */
