@font-face {
  font-family:"GeosansLight";
  src:url("https://content.pengucars.com/web/GeosansLight.ttf") format("truetype");
}

*, *::before, *::after {
  font-family:"GeosansLight", Arial, Helvetica, sans-serif;
  margin:0;
  padding:0;
  box-sizing:border-box;
}

body {
  background-color:rgb(30,30,35);
  color:var(--text-primary);
  width:100%;
  overflow-x:hidden;
}
body::after {
  content:"";
  position:fixed;
  inset:0;
  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events:none;
  z-index:99;
  opacity:0.5;
}

main {z-index:1;}

section:not(#sidebar > section) {
  width:100%;
  max-width:1500px;
  margin:0px auto;
  position:relative;
  padding:50px 24px;
  overflow:hidden;
  border-bottom:1px solid rgba(255, 255, 255, 0.06);
  z-index:10;
}
section:not(#sidebar > section) {
  padding:180px 20px 120px;
}
section > p {
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  font-weight:600;
  color:var(--accent);
  text-transform:uppercase;
  margin:0px auto 20px;
  font-family:monospace;
}
section > p::before {
  content:"";
  width:18px;
  height:2px;
  background:var(--accent);
  border-radius:2px;
}

/*
  START OF FONT SIZES
*/

section h1 {
  font-size:clamp(40px, 5vw, 62px);
  font-weight:800;
  margin:20px 0px;
}
section h2 {
  font-size:clamp(30px, 4vw, 46px);
  font-weight:800;
  margin:20px 0px;
}
section h3 {
  font-size:clamp(20px, 3vw, 30px);
  font-weight:800;
  margin:20px 0px;
}
section h4 {
  font-size:clamp(10px, 2vw, 20px);
  font-weight:800;
  margin:20px 0px;
}
section p:not(section > p), section ul {
  font-size:clamp(10px, 1vw, 20px);
  margin:10px 0px;
}

/*
  END OF FONT SIZES
*/

/*
  START OF TEXT DECORATION
*/

a {text-decoration:none;color:inherit;}

.gradient-text {
  background:linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
}

/*
  END OF TEXT DECORATION
*/

/*
  START OF SCROLLBAR
*/

* {scrollbar-color:rgb(50,50,50) transparent;}

/*
  END OF SCROLLBAR
*/

/*
  START OF NAVBAR
*/

nav {
  position:fixed;
  width:100%;
  z-index:90;
  padding:20px 0;
  transition:all 0.4s ease;
}
nav.scrolled {
  background:rgba(30,30,35,0.8);
  backdrop-filter:blur(24px);
  -webkit-backdrop-filter:blur(24px);
  padding:14px 0;
  border-bottom:1px solid rgba(255,255,255,0.06);
}

nav > div {
  width:100%;
  max-width:1500px;
  margin:0px auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0px 30px;
}

nav > div > a { /* logo and title */
  font-size:20px;
  font-weight:800;
  display:flex;
  align-items:center;
  gap:10px;
}
nav > div > a > img {
  height:40px;
  border-radius:8px;
  display:grid;
  place-items:center;
  font-size:14px;
  font-weight:800;
}

nav > div > ul {
  display:flex;
  align-items:center;
  gap:32px;
  list-style:none;
}
nav > div > ul a {
  font-size:18px;
  font-weight:500;
  color:rgb(150,150,150);
  transition:color 0.3s;
}
nav > div > ul a:hover {color:white;}

#navActionsMobile {display:none;}
#navActions {display:flex;align-items:center;gap:10px;}
#navActionsMobile > .btn {margin:0px;}
#navActions > .btn {margin:0px;}

nav > div > button { /* open or close mobile navbar */
  display:none;
  flex-direction:column;
  gap:5px;
  background:none;
  border:none;
  cursor:pointer;
  padding:4px;
  z-index:91;
}
nav > div > button > span {
  width:20px;
  height:2px;
  background:var(--text-primary);
  border-radius:2px;
  transition:all 0.3s;
}

nav > div > button.active span:nth-child(1) {transform:rotate(45deg) translate(5px, 5px);}
nav > div > button.active span:nth-child(2) {opacity:0;}
nav > div > button.active span:nth-child(3) {transform:rotate(-45deg) translate(5px, -5px);}

@media (max-width:1100px) {
  nav > div > button {display:flex;}
  #navActions {display:none;}

  nav > div > ul {
    position:fixed;
    top:0;
    right:-100%;
    width:280px;
    height:100dvh;
    background:rgba(30, 30, 36, 0.98);
    backdrop-filter:blur(24px);
    -webkit-backdrop-filter:blur(24px);
    flex-direction:column;
    align-items:flex-start;
    padding:80px 28px 80px;
    gap:0;
    border-left:1px solid rgba(255, 255, 255, 0.06);
    transition:right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y:auto;
  }

  nav > div > ul.open {right:0;}
  nav > div > ul > li {width:100%;}

  nav > div > ul a {
    display:block;
    padding:14px 0;
    font-size:16px;
    border-bottom:1px solid rgba(255, 255, 255, 0.06);
  }

  #navActionsMobile {
    display:flex;
    flex-direction:column;
    gap:10px;
    padding-top:24px;
    margin-top:8px;
  }

  #navActionsMobile a {
    padding:10px 22px !important;
    font-size:14px !important;
  }
}

/*
  END OF NAVBAR
*/

/*
  START OF SIDEBAR
*/

#sidebar {display:flex;gap:30px;padding:0px 20px 0px 0px;margin-bottom:-130px;}

#sidebar > section:first-child {
  height:100vh;
  display:flex;
  gap:30px;
  align-items:center;
}
#sidebar > section:first-child > div {
  display:flex;
  flex-direction:column;
  box-shadow:0 0 24px var(--accent-glow), 0 1px 0 rgba(255,255,255,0.1) inset;
  padding:12vh 0px;
  background:rgba(30,30,35,0.8);
  backdrop-filter:blur(24px);
  -webkit-backdrop-filter:blur(24px);
  border-right:1px solid rgba(255,255,255,0.06);
  width:300px;
  height:100vh;
  overflow-x:hidden;
  transition:width 0.5s;
}
#sidebar > section:first-child > div > a {
  cursor:pointer;
  padding:3px 10px;
  transition:background 0.3s;
}
#sidebar > section:first-child > div > a:hover, #sidebar > section:first-child > div > a.active {background:var(--accent-glow);}

#sidebar > section:nth-child(2) {
  height:85vh;
  width:70vw;
  padding:12vh 0px;
  margin:0px auto;
  overflow-x:hidden;
  overflow-y:scroll;
}
#sidebar > section:nth-child(2) > div > div {
  border-bottom:1px solid rgba(255, 255, 255, 0.06);
  padding:50px 0px 20px;
}

/*
  END OF SIDEBAR
*/

/*
  START OF FOOTER
*/

footer {
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  gap:40px;
  width:100%;
  max-width:1200px;
  margin:0px auto;
  padding:20px 50px;
  color:rgb(84,85,105);
}
footer > div {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  flex-direction:column;
  gap:10px;
}
footer a {cursor:pointer;}
footer a:hover {color:white;}

/*
  END OF FOOTER
*/

/*
  START OF BACKGROUND1 (squares with glowing center)
*/

.bg1 {
  align-items:center;
  color:var(--text-secondary);
}
.bg1::before { /* centered glowing circle */
  content:"";
  position:absolute;
  top:10%;
  left:50%;
  transform:translateX(-50%);
  width:1000px;
  height:700px;
  background:radial-gradient(ellipse at center, var(--accent-soft) 0%, transparent 60%);
  z-index:-2;
}
.bg1::after { /* grid lines */
  z-index:-1;
  content:"";
  position:absolute;
  inset:0;
  background-image:
      linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size:80px 80px;
  mask-image:radial-gradient(ellipse at 50% 30%, black 30%, transparent 75%);
  -webkit-mask-image:radial-gradient(ellipse at 50% 30%, black 30%, transparent 75%);
}

/*
  END OF BACKGROUND1 (squares with glowing center)
*/

/*
  START OF CONTAINER1 (2 side by side)
*/

.c1 {
  display:grid;
  grid-template-columns:1fr 1fr;
  width:100%;
  max-width:1200px;
  margin:0px auto;
  padding:0px;
}
.c1 > * {margin:auto;}
.c1 > div:has(> ul) {width:50%;}
.c1 ul {text-align:left;}

@media (min-width:1024px) {
  .c1 {gap:50px;}
}

@media (max-width:1024px) {
  .c1 {grid-template-columns:1fr;}
}

/*
  END OF CONTAINER 1 (2 side by side)
*/

/*
  START OF CONTAINER 2 (1 centered)
*/

.c2 {
  display:grid;
  grid-template-columns:1fr;
  width:100%;
  max-width:1200px;
  margin:0px auto;
  padding:0px;
  text-align:center;
}
.c2 ul {
  margin:auto;
  text-align:left;
}

/*
  END OF CONTAINER 2 (1 centered)
*/

/*
  START OF CONTAINER 3 (4 side by side)
*/

.c3 {
  display:grid;
  grid-template-columns:1fr 1fr 1fr 1fr;
  width:100%;
  max-width:1500px;
  margin:0px auto;
  padding:0px;
}

@media (min-width:1024px) {
  .c3 > *:not(:first-of-type) {
    border-left:1px solid rgba(255, 255, 255, 0.06);
    padding-left:40px;
  }
}

@media (max-width:1024px) {
  .c3 {
    grid-template-columns:1fr;
    gap:20px;
  }

  .c3 > * {
    border-left:1px solid rgba(255, 255, 255, 0.06);
    padding-left:40px;
  }
}

/*
  END OF CONTAINER 3 (4 side by side)
*/

/*
  START OF CONTAINER GALLERY
*/

.cgallery {
  display:grid;
  grid-template-columns:1fr;
  width:100%;
  max-width:1200px;
  margin:0px auto;
  padding:0px;
  text-align:center;
}
.cgallery > div:last-child {
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  gap:15px;
}
.cgallery > div:last-child > div {
  display:flex;
  flex-direction:column;
  gap:30px;
}
.cgallery > div:last-child > div > div > img {
  width:100%;
  margin:0px 0px -5px;
  border-radius:6px 6px 0px 0px;
}
.cgallery > div:last-child > div > div > p {
  background-color:black;
  padding:10px;
  margin:0px;
  border-radius:0px 0px 6px 6px;
}

@media (max-width:1024px) {
  .cgallery > div:last-child {
    grid-template-columns:1fr 1fr;
  }
}

/*
  END OF CONTAINER GALLERY
*/

/*
  START OF CONTAINER DIASHOW
*/

.cdiashow {
  display:flex;
  width:100%;
  flex-wrap:nowrap;
  overflow:auto;
  gap:20px;
  cursor:grab;
  user-select:none;
  user-drag:none;
  -webkit-user-drag:none;
}
.cdiashow > img {
  user-select:none;
  user-drag:none;
  -webkit-user-drag:none;
  pointer-events:none;

  max-width:70%;
}

/*
  END OF CONTAINER DIASHOW
*/


/*
  START OF BUTTON
*/

.btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 22px;
  margin:10px 5px;
  border-radius:100px;
  font-size:14px;
  font-weight:600;
  cursor:pointer;
  border:none;
  transition:all 0.3s ease;
  color:var(--text-primary);
}

.btn-primary {
  margin:40px 0px 0px;
  background:var(--accent);
  box-shadow:0 0 24px var(--accent-glow), 0 1px 0 rgba(255,255,255,0.1) inset;
}
.btn-primary:hover {
  box-shadow:0 0 36px var(--accent-glow), 0 1px 0 rgba(255,255,255,0.15) inset;
  transform:translateY(-1px);
}

.btn-secondary {
  margin:40px 0px 0px;
  background:rgba(255,255,255,0.05);
  border:1px solid rgba(255, 255, 255, 0.06);
}
.btn-secondary:hover {
  background:rgba(255,255,255,0.08);
  border-color:rgba(255,255,255,0.1);
}

.btn-large {padding:14px 32px;font-size:18px;}

/*
  END OF BUTTON
*/

/*
  START OF TAB
*/

.tab {
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:4px;
  background:rgb(38,38,44);
  border:1px solid rgba(255, 255, 255, 0.06);
  border-radius:100px;
  padding:4px;
  width:fit-content;
  margin:30px auto 20px;
}

.tab > button {
  padding:10px 24px;
  border-radius:100px;
  font-family:inherit;
  font-size:14px;
  color:rgb(84,85,105);
  background:transparent;
  border:none;
  cursor:pointer;
  transition:all 0.3s ease;
  white-space:nowrap;
}

.tab > button:hover {color:white;}

.tab > button.active {
  background:var(--accent);
  color:var(--text-primary);
  box-shadow:0 0 20px var(--accent-glow);
}

.tab > button > * {pointer-events:none;}

/*
  END OF TAB
*/

/*
  START OF 3D PERSPECTIVE
*/

.perspective {
  /*box-shadow:0 40px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.03) inset;*/
  filter:drop-shadow(0px 40px 60px rgba(0,0,0,0.5));
  transform:perspective(1200px) rotateY(-6deg) rotateX(4deg);
  transition:transform 0.5s ease;
  border-radius:14px;
}
.perspective:hover {transform:perspective(1200px) rotateY(-1deg) rotateX(1deg);}

/*
  END OF 3D PERSPECTIVE
*/

/*
  START OF CODE
*/

.code {position:relative;}
.code > div {
  background:rgb(38,38,44);
  border:1px solid rgba(255, 255, 255, 0.06);
  overflow:hidden;
}

.code > div > div:first-child { /* title bar */
  display:flex;
  align-items:center;
  gap:6px;
  padding:12px 16px;
  border-bottom:1px solid rgba(255, 255, 255, 0.06);
}
.code > div > div:last-child { /* body */
  padding:10px;
}

div:has(> code) {overflow:auto;}
code {
  font-family:monospace;
  color:lightgray;
  display:block;
  text-align:left;
  width:max-content;
}
code > span {font-family:monospace;}
code > .condition {color:plum;}
code > .definition {color:cornflowerblue;}
code > .variable {color:lightblue;}
code > .string {color:burlywood;}
code > .int {color:cadetblue;}
code > .comment {color:lightgreen;}

.inlinecode {
  background:rgb(38,38,44);
  border-radius:8px;
  font-family:monospace;
  padding:3px 5px;
  margin:0px 5px;
  border:1px solid rgba(255, 255, 255, 0.06);
}

/*
  END OF CODE
*/

/*
  START OF MOCKUP
*/

.mockup {position:relative;}
.mockup > div {
  background:rgb(38,38,44);
  border:1px solid rgba(255, 255, 255, 0.06);
  overflow:hidden;
}

.mockup > div > div:first-child { /* title bar */
  display:flex;
  align-items:center;
  gap:6px;
  padding:12px 16px;
  border-bottom:1px solid rgba(255, 255, 255, 0.06);
}
.mockup > div > div:last-child { /* body */
  padding:20px;
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:12px;
}

.mockup > div > div:last-child > div {
  background:rgb(47,47,55);
  border-radius:10px;
  padding:14px;
  border:1px solid rgba(255, 255, 255, 0.06);
  overflow:hidden;
  position:relative;
}
.mockup > div > div:last-child > div > p:first-child {
  font-size:12px;
  color:rgb(150,150,150);
  text-transform:uppercase;
}
.mockup > div > div:last-child > div > p:nth-child(2) {
  font-size:20px;
  font-weight:800;
  color:white;
  text-transform:uppercase;
}
.mockup > div > div:last-child > div > p:last-child {
  font-size:14px;
  font-weight:600;
  color:green;
  text-transform:uppercase;
}

.mockup-chart {
  grid-column-start:1;
  grid-column-end:4;
  height:120px;
}
.mockup-chart > div {
  position:absolute;
  bottom:16px;
  left:16px;
  right:16px;
  height:60px;
}
.mockup-chart > div > svg {width:100%;height:100%;}


@media (max-width:1024px) {
  .mockup {max-width:500px;margin:0 auto;}
}

/*
  END OF MOCKUP
*/

/*
  START OF TRANSLATION
*/

#translation {
  display:none;
  z-index:100;
  width:100vw;
  height:100vh;
  background-color:rgba(0,0,0,0.3);
  backdrop-filter:blur(24px);
  -webkit-backdrop-filter:blur(24px);
  position:fixed;
  top:0px;
  left:0px;
}
#translation > div {
  width:20%;
  max-height:40%;
  position:absolute;
  top:50%;
  left:50%;
  padding:20px 30px;
  background:rgb(38,38,44);
  border:1px solid rgba(255, 255, 255, 0.06);
  border-radius:10px;
  transform:translate(-50%,-50%);
  display:grid;
  grid-template-columns:2fr 1fr;
}
#translation > div > ul {list-style:none;}
#translation > div > ul > li {
  font-size:18px;
  font-weight:500;
  color:rgb(150,150,150);
  transition:color 0.3s;
  margin:5px 0px;
  cursor:pointer;
}
#translation > div > ul > li:hover {color:white;}

#translation > div > button { /* open or close mobile navbar */
  display:flex;
  flex-direction:column;
  gap:5px;
  background:none;
  border:none;
  cursor:pointer;
  padding:4px;
  justify-self:flex-end;
}
#translation > div > button > span {
  width:20px;
  height:2px;
  background:var(--text-primary);
  border-radius:2px;
}

#translation > div > button span:nth-child(1) {transform:rotate(45deg) translate(5px, 5px);}
#translation > div > button span:nth-child(2) {opacity:0;}
#translation > div > button span:nth-child(3) {transform:rotate(-45deg) translate(5px, -5px);}

/*
  END OF TRANSLATION
*/