* {
  line-height: 1.6;
  box-sizing: border-box;
}


.drop-in-inactive {
  margin-top: -2rem;
  opacity: 0;
}

.drop-in-active {
  animation: drop-in 0.4s cubic-bezier(.17, .67, .61, .93);
}

@keyframes drop-in {
  0% {
    transform: translateY(-2rem);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  letter-spacing: -0.02em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }

h2::before {
  content: "// ";
  opacity: 0.3;
  font-weight: 300;
}

hr {
  border: none;
  border-top: 1px solid rgba(63, 186, 157, 0.2);
  margin: 1.5rem 0;
}

#title {
  font-size: 3em;
  margin-bottom: 10px;
}

#main-body {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

#background-shader-container {
  position: fixed;
  margin: 0px;
}

#site-content {
  font-family: 'JetBrains Mono', monospace;
  text-align: center;
  font-size: 15px;
  flex: 1;
  margin: 7%;
  margin-top: 4%;
}

#main-container {
}

.active {
  background-color: rgba(63, 186, 157, 0.15) !important;
  color: #3fba9d !important;
}

#nav-bar {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  z-index: 10 !important;
  width: 100%;
  background: rgba(10, 10, 15, 0.95);
  border-bottom: 1px solid rgba(63, 186, 157, 0.15);
  position: fixed;
  top: 0;
  list-style-type: none;
  margin-top: 0;
  padding: 0;
  text-align: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#nav-bar li {
  display: inline-block;
}

#nav-bar li a {
  display: inline-block;
  color: #8a8a8a;
  text-align: center;
  padding: 0.9rem 1.4rem;
  text-decoration: none;
  transition: 0.3s;
  letter-spacing: 0.02em;
}

#nav-bar li a:hover {
  background-color: rgba(63, 186, 157, 0.08);
  color: #3fba9d;
}

#nav-bar.light-mode {
  background: rgba(245, 245, 240, 0.94);
  border-bottom: 1px solid rgba(26, 26, 46, 0.12);
}

#nav-bar.light-mode li a {
  color: #4a5568;
}

#nav-bar.light-mode li a:hover {
  background-color: rgba(63, 186, 157, 0.12);
  color: #1f8f77;
}

.light-mode:not(.code-block) {
  background-color: #f5f5f0;
  color: #1a1a2e;
}

.dark-mode-border {
  border-color: rgba(63, 186, 157, 0.3) !important;
}

.light-mode-border {
  border-color: rgba(0, 0, 0, 0.15);
}

.dark-mode:not(.code-block) {
  background-color: #0d1117;
  color: #c9d1d9;
}



#portfolio {
  position: relative;
  z-index: 1;
}

.portfolio-header-inner {
  padding: 0.75rem 0 0;
}

.portfolio-title {
  display: inline-block;
  margin: 0;
  padding: 0.85rem 1.2rem 0.95rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: #e6edf3;
  background: linear-gradient(180deg, rgba(13, 17, 23, 0.92), rgba(13, 17, 23, 0.8));
  border: 1px solid rgba(63, 186, 157, 0.16);
  border-left: 4px solid #3fba9d;
  border-radius: 6px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
  text-shadow: 0 0 18px rgba(63, 186, 157, 0.12);
}

.light-mode .portfolio-title {
  color: #111827;
  background: linear-gradient(180deg, rgba(252, 252, 249, 0.96), rgba(240, 241, 235, 0.92));
  border-color: rgba(26, 26, 46, 0.12);
  box-shadow: 0 14px 32px rgba(26, 26, 46, 0.1);
  text-shadow: none;
}

.card-parent {
  margin: 2rem 10% 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 2.75rem;
  row-gap: 3.5rem;
  justify-items: center;
}

.projects-section {
  margin: 7rem 0 0;
  position: relative;
  z-index: 1;
}

.projects-section-header {
  margin: 0 10%;
  padding: 2.5rem 2.5rem 2rem;
  border-top: 1px solid rgba(63, 186, 157, 0.14);
  text-align: left;
  background: rgba(13, 13, 17, 0.85);
  border: 1px solid rgba(63, 186, 157, 0.1);
  border-radius: 6px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.light-mode .projects-section-header {
  background: rgba(240, 241, 235, 0.85);
  border-color: rgba(26, 26, 46, 0.1);
}

.projects-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #3fba9d;
  margin: 0 0 1rem;
}

.projects-section-title {
  font-size: clamp(2.4rem, 4vw, 4.4rem);
  line-height: 1;
  margin: 0;
}

.projects-section-description {
  max-width: 50rem;
  margin: 1.25rem 0 0;
  font-size: 1.05rem;
  line-height: 1.8rem;
  color: #a5b2bf;
}

.light-mode .projects-section-description {
  color: #475569;
}

.projects-flagship-shell {
  margin-top: 3rem;
}

.projects-flagship-shell .projects-section-header {
  padding-top: 2.5rem;
  border-top: none;
}

.projects-flagship-shell .projects-section-description {
  max-width: 64rem;
}

.flagship-layout {
  margin: 3rem 10% 0;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.flagship-card {
  display: flex;
  flex-direction: row;
  border-radius: 8px;
  border: 1px solid #2a2a2a;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background-color: #0d0d0d;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.7);
  transition: 0.3s;
  min-height: 30rem;
}

.flagship-card:hover {
  box-shadow: 0 0 0 1px #3fba9d, 0 8px 32px rgba(63, 186, 157, 0.12), 0 16px 40px rgba(0, 0, 0, 0.5);
  transform: translateY(-4px);
}

.flagship-card:hover .dot-red { background: #ff5f57; box-shadow: 0 0 4px #ff5f57; }
.flagship-card:hover .dot-yellow { background: #febc2e; box-shadow: 0 0 4px #febc2e; }
.flagship-card:hover .dot-green { background: #28c840; box-shadow: 0 0 4px #28c840; }

.flagship-card:hover .flagship-media-img {
  opacity: 0;
}

.flagship-card:hover .card-statusbar {
  color: #3fba9d;
}

.flagship-card:hover .card-titlebar {
  border-color: rgba(63, 186, 157, 0.3);
}

.flagship-card.light-mode {
  background-color: #fcfcf9;
  border-color: rgba(26, 26, 46, 0.12);
  box-shadow: 0 4px 24px rgba(26, 26, 46, 0.12);
}

.flagship-card.light-mode .card-titlebar {
  background: #f0f1eb;
  border-bottom-color: rgba(26, 26, 46, 0.1);
}

.flagship-card.light-mode .card-tab {
  color: #334155;
}

.flagship-card-reverse {
  flex-direction: row-reverse;
}

.flagship-card-media {
  flex: 0 0 45%;
  position: relative;
  overflow: hidden;
}

.flagship-card-media.letterbox-preview {
  background: #000;
}

.flagship-media-img,
.flagship-media-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  transition: 0.3s;
}

.flagship-card-media.letterbox-preview .flagship-media-img,
.flagship-card-media.letterbox-preview .flagship-media-video {
  object-fit: contain;
  background: #000;
}

.flagship-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.flagship-card-body .card-titlebar {
  border-radius: 0;
}

.flagship-card-content {
  flex: 1;
  padding: 1.8rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.flagship-card-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0;
  color: #e5c07b;
  letter-spacing: -0.01em;
}

.flagship-card-name::before {
  content: none;
}

.flagship-card.light-mode .flagship-card-name {
  color: #b7791f;
}

.flagship-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.flagship-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  padding: 0.15rem 0.55rem;
  border-radius: 2px;
  background: rgba(63, 186, 157, 0.08);
  border: 1px solid rgba(63, 186, 157, 0.2);
  color: #56b6c2;
}

.flagship-tag::before {
  content: "#";
  opacity: 0.4;
  margin-right: 2px;
}

.flagship-tag-year {
  background: rgba(229, 192, 123, 0.08);
  border-color: rgba(229, 192, 123, 0.2);
  color: #e5c07b;
}

.flagship-tag-year::before {
  content: none;
}

.flagship-card-summary {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88rem;
  line-height: 1.75;
  color: #a5b2bf;
  margin: 0.4rem 0 0;
  text-align: left;
}

.flagship-card.light-mode .flagship-card-summary {
  color: #4a5568;
}

.flagship-card-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: #6a737d;
  margin-top: auto;
}

.flagship-card.light-mode .flagship-card-link {
  color: #475569;
}

.flagship-card-link i {
  margin-right: 0.3rem;
}

.flagship-card .card-statusbar {
  border-radius: 0;
}

.card-tags-hidden {
  display: none;
}

.projects-wip-section {
  margin-bottom: 8rem;
}

.wip-activity-terminal {
  width: calc(100% - 1.6rem);
  margin: 1.5rem auto 2rem;
  border: 0.3rem solid #2b3648;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(8, 12, 18, 0.95) 0%, rgba(15, 21, 31, 0.95) 100%);
  box-shadow: 0 0 0 0.3rem #0c1118, 0 1.2rem 3rem rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.wip-activity-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.8rem 1.2rem;
  border-bottom: 0.2rem solid #2b3648;
  background: linear-gradient(90deg, #141d29 0%, #101722 100%);
}

.wip-activity-tab {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: #8b949e;
}

.wip-activity-body {
  padding: 1.5rem 1.8rem;
}

.wip-activity-graph {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  filter: invert(1) hue-rotate(180deg);
}

.projects-wip-body {
  margin: 0 10%;
  position: relative;
  z-index: 1;
}

.projects-wip-list {
  text-align: left;
  font-size: 1.5rem;
  margin: 4rem 0 0;
  padding-left: 2rem;
  display: grid;
  gap: 1.75rem;
}

/* ── Card: IDE window ── */

.card {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.7);
  transition: 0.3s;
  width: min(100%, 34rem);
  min-height: 37rem;
  height: auto;
  border-radius: 8px;
  border: 1px solid #2a2a2a;
  cursor: pointer;
  position: relative;
  text-align: left;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background-color: #0d0d0d;
}

.card:hover {
  box-shadow: 0 0 0 1px #3fba9d, 0 8px 32px rgba(63, 186, 157, 0.12), 0 16px 40px rgba(0, 0, 0, 0.5);
  transform: translateY(-6px) scale(1.02);
}

.card:hover .card-titlebar {
  border-color: rgba(63, 186, 157, 0.3);
}

.card:hover .dot-red { background: #ff5f57; box-shadow: 0 0 4px #ff5f57; }
.card:hover .dot-yellow { background: #febc2e; box-shadow: 0 0 4px #febc2e; }
.card:hover .dot-green { background: #28c840; box-shadow: 0 0 4px #28c840; }

.card:hover .preview_img {
  opacity: 0;
}

.card:hover .card-statusbar {
  color: #3fba9d;
}

/* Title bar */
.card-titlebar {
  display: flex;
  align-items: center;
  height: 2rem;
  min-height: 2rem;
  flex: 0 0 2rem;
  background: #161616;
  border-bottom: 1px solid #2a2a2a;
  padding: 0 0.7rem;
  gap: 0.5rem;
  border-radius: 8px 8px 0 0;
  z-index: 3;
  position: relative;
}

.card.light-mode {
  background-color: #fcfcf9;
  border-color: rgba(26, 26, 46, 0.12);
  box-shadow: 0 4px 24px rgba(26, 26, 46, 0.12);
}

.card.light-mode .card-titlebar {
  background: #f0f1eb;
  border-bottom-color: rgba(26, 26, 46, 0.1);
}

.card-dots {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}

.card-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transition: 0.3s;
}

.dot-red { background: #4a2a2a; }
.dot-yellow { background: #4a3f1a; }
.dot-green { background: #1a3a1a; }

.card-tab {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: #6a737d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 0.4rem;
}

.card.light-mode .card-tab {
  color: #334155;
}

/* Preview viewport */
.card-viewport {
  position: relative;
  width: 100%;
  height: 225px !important;
  max-height: 225px !important;
  overflow: hidden;
  flex: 0 0 225px;
  border-bottom: 1px solid #2a2a2a;
}

.card.light-mode .card-viewport {
  border-bottom-color: rgba(26, 26, 46, 0.1);
}

.preview_img,
.preview_gif {
  width: 100%;
  height: 225px;
  object-fit: cover;
  transition: 0.3s;
  position: absolute;
  top: 0;
  left: 0;
  display: block;
}

.card-scanlines {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.06) 2px,
    rgba(0, 0, 0, 0.06) 4px
  );
  pointer-events: none;
  z-index: 2;
}

/* Code area */
.card-code {
  display: flex;
  flex: 1;
  overflow: hidden;
  position: relative;
  z-index: 3;
  background-color: #0d0d0d;
}

.card.light-mode .card-code {
  background-color: #fbfbf8;
}

.card-gutter {
  display: flex;
  flex-direction: column;
  padding: 0.85rem 0;
  width: 2.85rem;
  min-width: 2.85rem;
  background: #0a0a0a;
  border-right: 1px solid #1a1a1a;
  text-align: right;
  user-select: none;
}

.card.light-mode .card-gutter {
  background: #f0f1eb;
  border-right-color: rgba(26, 26, 46, 0.08);
}

.card-gutter span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  line-height: 1.72rem;
  color: #3a3a4a;
  padding-right: 0.65rem;
}

.card.light-mode .card-gutter span {
  color: #94a3b8;
}

.card-text {
  flex: 1;
  padding: 0.9rem 1.05rem 1rem 1rem;
  overflow: visible;
}

#card-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.96rem;
  font-weight: 400;
  text-align: left;
  line-height: 1.72rem;
  margin: 0 0 0.25rem;
}

.card.light-mode #card-name {
  color: #1a1a2e;
}

.syn-keyword {
  color: #c678dd;
  font-style: italic;
}

.syn-class {
  color: #e5c07b;
  font-weight: 600;
}

.syn-punct {
  color: #8b949e;
}

.syn-variable {
  color: #dcdfe4;
}

.syn-comment {
  color: #ae3344;
  font-style: italic;
}

.syn-string {
  color: #ce9178;
}

.syn-number {
  color: #b5cea8;
}

.syn-type {
  color: #56b6c2;
}

.card.light-mode .syn-keyword {
  color: #7c3aed;
}

.card.light-mode .syn-class {
  color: #b7791f;
}

.card.light-mode .syn-punct {
  color: #64748b;
}

.card.light-mode .syn-variable {
  color: #1f2937;
}

.card.light-mode .syn-comment {
  color: #b45309;
}

.card.light-mode .syn-string {
  color: #a14f2a;
}

.card.light-mode .syn-number {
  color: #5f8f3a;
}

.card.light-mode .syn-type {
  color: #0f766e;
}

#card-description {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.84rem;
  line-height: 1.72rem;
  text-align: left;
  margin: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

.card-line {
  display: block;
}

.card-value-line {
  margin-bottom: 0.16rem;
}

.card-indent {
  display: inline-block;
  width: 2ch;
}

.card-indent-double {
  width: 4ch;
}

.card.light-mode #card-description {
  color: #334155;
}

.card-tags-line {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 0.15rem;
  line-height: 1.35rem;
}

.card-tag {
  border: none;
  font-size: 0.55rem;
  font-weight: 400;
  font-family: 'JetBrains Mono', monospace;
  padding: 1px 4px;
  transition: 0.3s;
  border-radius: 2px;
  background-color: rgba(63, 186, 157, 0.08);
  color: #56b6c2;
}

.card-tag::before {
  content: "@";
  color: #c678dd;
  margin-right: 1px;
}

/* Status bar */
.card-statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 1.5rem;
  min-height: 1.5rem;
  background: #161616;
  border-top: 1px solid #1a1a1a;
  padding: 0 0.6rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  color: #4a4a5a;
  transition: color 0.3s;
}

.card.light-mode .card-statusbar {
  background: #f0f1eb;
  border-top-color: rgba(26, 26, 46, 0.08);
  color: #475569;
}

.statusbar-left,
.statusbar-right {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.statusbar-left i {
  margin-right: 3px;
}

/* Responsive card text */
@media screen and (max-height: 600px) {
  #card-description { font-size: 0.76rem; line-height: 1.55rem; }
  #card-name { font-size: 0.86rem; line-height: 1.55rem; }
}

@media screen and (min-height: 601px) {
  #card-description { text-align: left; font-size: 0.84rem; }
  #card-name { font-size: 0.96rem; }
}

@media screen and (max-width: 1100px) {
  .card-parent {
    grid-template-columns: minmax(0, 1fr);
  }

  .card {
    width: min(100%, 42rem);
  }

  .flagship-card,
  .flagship-card-reverse {
    flex-direction: column;
  }

  .flagship-card-media {
    flex: 0 0 16rem;
  }
}

@media screen and (max-width: 700px) {
  .projects-section-header,
  .card-parent,
  .flagship-layout,
  .projects-wip-body {
    margin-left: 5%;
    margin-right: 5%;
  }

  .projects-section-description {
    font-size: 0.98rem;
    line-height: 1.7rem;
  }

  .projects-wip-list {
    padding-left: 1.4rem;
    font-size: 1.2rem;
  }

  .flagship-card-name {
    font-size: 1.3rem;
  }

  .flagship-card-summary {
    font-size: 0.82rem;
  }

  .flagship-card-content {
    padding: 1.2rem 1.4rem;
  }

  .projects-section-header {
    padding: 1.8rem 1.5rem 1.5rem;
  }
}

#blurry-background {
  margin: 0 15% 0;
  padding: 2.5%;
  padding-top: 3.5rem;
  z-index: 1;
  border-radius: 8px 8px 4px 4px;
  border: 1px solid #2a2a2a;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.7);
  position: relative;
  background-color: #0d0d0d;
  color: #c9d1d9;
}

#blurry-background::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2.2rem;
  background-color: #1a1a1a;
  border-bottom: 1px solid #2a2a2a;
  border-radius: 8px 8px 0 0;
}

#blurry-background::after {
  content: "● ● ●";
  position: absolute;
  top: 0;
  left: 0.9rem;
  height: 2.2rem;
  display: flex;
  align-items: center;
  font-size: 0.7rem;
  letter-spacing: 0.3rem;
  color: #3fba9d;
  opacity: 0.6;
}

#blurry-background.dark-mode {
  background-color: #0d0d0d !important;
}

#blurry-background.light-mode {
  background-color: rgba(245, 245, 240, 0.85) !important;
  color: #1a1a2e !important;
}

.metadata {
  float: left;
  color: #c9d1d9;
  margin-right: 1%;
}

.metadata-image {
  width: 7%;
  vertical-align: center;
}


.tags {
  text-align: left;
}

.card-tag {
  border: 1px solid rgba(63, 186, 157, 0.2);
  font-size: 0.6vw;
  font-weight: 400;
  font-family: 'JetBrains Mono', monospace;
  margin-top: 1%;
  padding: 2px 6px;
  transition: 0.3s;
  border-radius: 2px;
  background-color: rgba(63, 186, 157, 0.05);
}

.card-tag::before {
  content: "#";
  opacity: 0.4;
  margin-right: 1px;
}

.card-github-link {
  position: absolute;
  bottom: 1.5rem;
  right: 1rem;
}

#drop_zone {
  border: 5px solid blue;
  width: 200px;
  height: 100px;
}

.grey-text {
  color: #8b949e;
}

.blue-background {
  background-color: #0d1117 !important;
}

.visible {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.5s linear;
}

.hidden {
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s 0.5s, opacity 0.5s linear;
  display: none;
}

.loading-box {
  position: relative;
  margin-left: 10%;
  margin-right: 10%;
  width: 70vw;
  height: 70vh;
  margin-top: 20px;
  padding: 7px;
  border: solid 1px rgba(63, 186, 157, 0.2);
  border-radius: 4px;
  display: flex;
  justify-content: center;
}

.loading-box>p {
  color: #8b949e;
  opacity: 0.2;
  font-size: 20px;
  margin-top: 30vh;
  font-weight: 30;
  font-style: italic;
  text-align: center;
}

#final-image {
  margin-top: 3%;
  width: 50vw;
  height: 60vh;
}

#function-form.analysis-form {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  text-align: left;
}

.analysis-shell {
  margin-top: 2.5rem;
}

.analysis-shell-header {
  margin: 0 0 2rem;
  text-align: left;
}

.analysis-shell-title {
  margin: 0;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.15;
}

.analysis-shell-title::before {
  content: none;
}

.analysis-shell-description {
  max-width: 56rem;
  margin: 1rem 0 0;
  color: #a5b2bf;
  font-size: 1rem;
}

.analysis-workspace {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  align-items: start;
}

.analysis-workspace.analysis-workspace-stacked {
  grid-template-columns: 1fr;
  max-width: 56rem;
  margin: 0 auto;
}

.analysis-console-input {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 6px;
  border: 1px solid rgba(63, 186, 157, 0.22);
  background: transparent;
  padding: 0 1.1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.analysis-console-input:focus-within {
  border-color: rgba(63, 186, 157, 0.65);
  box-shadow: 0 0 0 0.22rem rgba(63, 186, 157, 0.14);
}

.analysis-console-caret {
  flex: 0 0 auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.1rem;
  line-height: 1;
  color: #3fba9d;
}

.analysis-console-input .analysis-text-input {
  border: none;
  background: transparent;
  padding: 1rem 0;
  min-height: unset;
}

.analysis-console-input .analysis-text-input:focus {
  border-color: transparent;
  box-shadow: none;
  transform: none;
}

.analysis-terminal-panel.light-mode .analysis-console-input {
  background: transparent;
  border-color: rgba(26, 26, 46, 0.14);
}

.analysis-terminal-panel.light-mode .analysis-console-input .analysis-text-input {
  background: transparent;
}

.analysis-terminal-panel {
  border-radius: 8px;
  border: 1px solid #2a2a2a;
  background: #0d0d0d;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

.analysis-terminal-panel.light-mode {
  background: #fcfcf9;
  border-color: rgba(26, 26, 46, 0.12);
  box-shadow: 0 4px 24px rgba(26, 26, 46, 0.12);
}

.analysis-panel-titlebar {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 2.2rem;
  padding: 0 0.8rem;
  background: #161616;
  border-bottom: 1px solid #2a2a2a;
  border-radius: 8px 8px 0 0;
}

.analysis-terminal-panel.light-mode .analysis-panel-titlebar {
  background: #f0f1eb;
  border-bottom-color: rgba(26, 26, 46, 0.1);
}

.analysis-panel-body {
  padding: 1.5rem;
}

.analysis-field {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  text-align: left;
}

.analysis-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #56b6c2;
}

.analysis-text-input,
.analysis-select-input {
  width: 100%;
  border-radius: 6px;
  border: 1px solid rgba(63, 186, 157, 0.22);
  background: linear-gradient(180deg, rgba(7, 11, 18, 0.96), rgba(15, 23, 35, 0.96));
  color: #e6edf3;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.analysis-text-input {
  min-height: 3.4rem;
  padding: 1rem 1.1rem;
}

.analysis-select-input {
  min-height: 3rem;
  padding: 0.85rem 1rem;
  appearance: none;
  background-image:
    linear-gradient(180deg, rgba(7, 11, 18, 0.96), rgba(15, 23, 35, 0.96)),
    linear-gradient(45deg, transparent 50%, #3fba9d 50%),
    linear-gradient(135deg, #3fba9d 50%, transparent 50%);
  background-repeat: no-repeat;
  background-position:
    0 0,
    calc(100% - 1.4rem) calc(50% - 2px),
    calc(100% - 1rem) calc(50% - 2px);
  background-size:
    100% 100%,
    0.45rem 0.45rem,
    0.45rem 0.45rem;
}

.custom-select {
  position: relative;
  width: 100%;
}

.custom-select-trigger {
  width: 100%;
  min-height: 3rem;
  padding: 0.85rem 2.5rem 0.85rem 1rem;
  border-radius: 6px;
  border: 1px solid rgba(63, 186, 157, 0.22);
  background-color: rgba(7, 11, 18, 0.96);
  background-image:
    linear-gradient(180deg, rgba(7, 11, 18, 0.96), rgba(15, 23, 35, 0.96)),
    linear-gradient(45deg, transparent 50%, #3fba9d 50%),
    linear-gradient(135deg, #3fba9d 50%, transparent 50%);
  background-repeat: no-repeat;
  background-position:
    0 0,
    calc(100% - 1.4rem) calc(50% - 2px),
    calc(100% - 1rem) calc(50% - 2px);
  background-size:
    100% 100%,
    0.45rem 0.45rem,
    0.45rem 0.45rem;
  color: #e6edf3;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.custom-select.open .custom-select-trigger {
  border-color: rgba(63, 186, 157, 0.65);
  box-shadow: 0 0 0 0.22rem rgba(63, 186, 157, 0.14);
  transform: translateY(-1px);
}

.custom-select-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 50;
  border-radius: 6px;
  border: 1px solid rgba(63, 186, 157, 0.22);
  background: linear-gradient(180deg, rgba(7, 11, 18, 0.98), rgba(15, 23, 35, 0.98));
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.custom-select.open .custom-select-dropdown {
  display: block;
}

.custom-select-option {
  padding: 0.7rem 1rem;
  color: #e6edf3;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.custom-select-option:hover {
  background: rgba(63, 186, 157, 0.15);
}

.custom-select-option.selected {
  background: rgba(63, 186, 157, 0.22);
  color: #3fba9d;
}

.analysis-terminal-panel.light-mode .custom-select-trigger {
  color: #1f2937;
  background-color: rgba(241, 245, 234, 1);
  background-image:
    linear-gradient(180deg, rgba(251, 252, 248, 1), rgba(241, 245, 234, 1)),
    linear-gradient(45deg, transparent 50%, #0f766e 50%),
    linear-gradient(135deg, #0f766e 50%, transparent 50%);
  border-color: rgba(26, 26, 46, 0.14);
}

.analysis-terminal-panel.light-mode .custom-select-dropdown {
  background: linear-gradient(180deg, rgba(251, 252, 248, 1), rgba(241, 245, 234, 1));
  border-color: rgba(26, 26, 46, 0.14);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.analysis-terminal-panel.light-mode .custom-select-option {
  color: #1f2937;
}

.analysis-terminal-panel.light-mode .custom-select-option:hover {
  background: rgba(15, 118, 110, 0.12);
}

.analysis-terminal-panel.light-mode .custom-select-option.selected {
  background: rgba(15, 118, 110, 0.18);
  color: #0f766e;
}

.analysis-text-input:focus,
.analysis-select-input:focus {
  outline: none;
  border-color: rgba(63, 186, 157, 0.65);
  box-shadow: 0 0 0 0.22rem rgba(63, 186, 157, 0.14);
  transform: translateY(-1px);
}

.analysis-terminal-panel.light-mode .analysis-text-input,
.analysis-terminal-panel.light-mode .analysis-select-input {
  color: #1f2937;
  background: linear-gradient(180deg, rgba(251, 252, 248, 1), rgba(241, 245, 234, 1));
  border-color: rgba(26, 26, 46, 0.14);
}

.analysis-terminal-panel.light-mode .analysis-select-input {
  background-image:
    linear-gradient(180deg, rgba(251, 252, 248, 1), rgba(241, 245, 234, 1)),
    linear-gradient(45deg, transparent 50%, #0f766e 50%),
    linear-gradient(135deg, #0f766e 50%, transparent 50%);
}

.analysis-help-text {
  margin: 0;
  color: #8b949e;
  font-size: 0.82rem;
  line-height: 1.6;
}

.analysis-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.analysis-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.analysis-primary-button,
.analysis-secondary-button {
  min-height: 3rem;
  padding: 0.8rem 1.15rem;
  border-radius: 6px;
  border: 1px solid rgba(63, 186, 157, 0.22);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88rem;
  cursor: pointer;
  transition: 0.2s ease;
}

.analysis-primary-button {
  background: #3fba9d;
  color: #08131b;
  border-color: #3fba9d;
  font-weight: 600;
}

.analysis-primary-button:hover,
.analysis-secondary-button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 0.7rem 1.4rem rgba(0, 0, 0, 0.18);
}

.analysis-secondary-button {
  background: rgba(63, 186, 157, 0.08);
  color: #c9d1d9;
}

.analysis-primary-button:disabled,
.analysis-secondary-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.analysis-preview-frame,
.analysis-render-box {
  border: 1px solid rgba(63, 186, 157, 0.12);
  border-radius: 6px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(63, 186, 157, 0.05), transparent 48%),
    #0a0f14;
}

.analysis-preview-frame {
  margin-bottom: 1.25rem;
}

.analysis-preview-video,
.analysis-output-video {
  width: 100%;
  height: auto;
  display: block;
}

.analysis-render-box {
  min-height: 22rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  position: relative;
}

.analysis-placeholder {
  margin: 0;
  color: #8b949e;
  opacity: 0.65;
  text-align: center;
  width: 100%;
}

.analysis-loading {
  width: 100%;
  max-width: 30rem;
  margin: 0 auto;
  padding: 1.25rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
}

.analysis-loading img {
  width: 6rem;
  height: 6rem;
}

.analysis-progress-shell {
  margin-top: 1rem;
  width: min(100%, 26rem);
  border: 1px solid rgba(63, 186, 157, 0.16);
  border-radius: 8px;
  padding: 0.7rem 0.8rem 0.8rem;
  background:
    linear-gradient(180deg, rgba(63, 186, 157, 0.08), rgba(13, 17, 23, 0.84) 55%),
    rgba(13, 17, 23, 0.9);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.analysis-progress-shell #progress-bar-text {
  margin: 0 0 0.55rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9fb0bf;
  text-align: center;
}

.analysis-progress-shell #progress-bar {
  height: 100%;
  min-width: 0;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(63, 186, 157, 0.96), rgba(86, 182, 194, 0.96)),
    #3fba9d;
  width: 0%;
  display: block;
  transition: width 0.25s ease;
}

.analysis-loading-copy {
  margin: 0;
  max-width: 24rem;
  color: #a5b2bf;
  font-size: 0.9rem;
}

.analysis-output-video {
  border-radius: 4px;
  overflow: hidden;
}

#blurry-background.light-mode .analysis-shell-description,
#blurry-background.light-mode .analysis-help-text,
#blurry-background.light-mode .analysis-loading-copy,
#blurry-background.light-mode .analysis-placeholder,
#blurry-background.light-mode .analysis-progress-shell #progress-bar-text {
  color: #475569;
}

#blurry-background.light-mode .analysis-secondary-button {
  color: #1f2937;
  background: rgba(15, 118, 110, 0.08);
  border-color: rgba(15, 118, 110, 0.18);
}

#blurry-background.light-mode .analysis-preview-frame,
#blurry-background.light-mode .analysis-render-box {
  background:
    linear-gradient(180deg, rgba(63, 186, 157, 0.05), transparent 48%),
    #f5f7f0;
  border-color: rgba(26, 26, 46, 0.08);
}

.loading-animation {
  margin-top: 15%;
  text-align: center;
}

.loading-animation>img {
  height: 60px;
  width: 60px;
}

.loading-animation>p {
  opacity: 0.7;
  font-style: italic;
}

#progress-bar-container {
  margin: 0;
}

#progress-bar-track {
  border: 1px solid rgba(63, 186, 157, 0.18);
  height: 0.8rem;
  position: relative;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(7, 11, 18, 0.9);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.28);
}

#progress-bar-text {
  position: static;
  z-index: auto;
  width: auto;
  left: auto;
}

#progress-bar {
  width: 0%;
  height: 100%;
  z-index: 1;
  position: relative;
}


#function-form {
  text-align: center;
}

#input-box {
  margin: 0 5px 0;
  width: 200px;
}

#nav-controls {
  position: absolute;
  right: 1.5rem;
  top: 0;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#lang-switcher {
  display: flex;
  gap: 0.3rem;
  align-items: center;
}

.lang-btn {
  background: none;
  border: 2px solid transparent;
  border-radius: 2px;
  padding: 2px;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s, border-color 0.2s;
  display: flex;
  align-items: center;
}

.lang-btn:hover {
  opacity: 0.8;
}

.lang-btn:disabled,
.lang-btn.disabled {
  opacity: 0.2;
  cursor: default;
  filter: grayscale(1);
  pointer-events: none;
}

.lang-btn.active {
  opacity: 1;
  border-color: #3fba9d;
}

.pixel-flag {
  width: 24px;
  height: auto;
  display: block;
}

.pixel-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
}

.pixel-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.pixel-track {
  display: flex;
  align-items: center;
  width: 3rem;
  height: 1.5rem;
  background: #1a1a1a;
  border: 2px solid #2a2a2a;
  border-radius: 2px;
  position: relative;
  transition: background 0.2s, border-color 0.2s;
  overflow: hidden;
}

.pixel-icon {
  position: relative;
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  image-rendering: pixelated;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.pixel-icon::before {
  content: "";
  position: absolute;
  width: 2px;
  height: 2px;
  top: 0;
  left: 0;
}

.pixel-sun::before {
  background: #ffd25f;
  box-shadow:
    4px 0 #ffcc4d,
    8px 0 #ffd25f,
    2px 2px #ffcc4d,
    4px 2px #ffe38a,
    6px 2px #ffe38a,
    8px 2px #ffcc4d,
    0 4px #ffcc4d,
    2px 4px #ffe38a,
    4px 4px #fff1b8,
    6px 4px #fff1b8,
    8px 4px #ffe38a,
    10px 4px #ffcc4d,
    2px 6px #ffe38a,
    4px 6px #fff1b8,
    6px 6px #fff1b8,
    8px 6px #ffe38a,
    0 8px #ffcc4d,
    2px 8px #ffe38a,
    4px 8px #ffe38a,
    6px 8px #ffe38a,
    8px 8px #ffe38a,
    10px 8px #ffcc4d,
    2px 10px #ffcc4d,
    4px 10px #ffe38a,
    6px 10px #ffe38a,
    8px 10px #ffcc4d,
    4px 12px #ffcc4d,
    8px 12px #ffd25f;
  filter: drop-shadow(0 0 3px rgba(255, 210, 95, 0.3));
}

.pixel-moon::before {
  background: #d8dcff;
  box-shadow:
    4px 0 #8b93c9,
    6px 0 #d8dcff,
    8px 0 #d8dcff,
    2px 2px #8b93c9,
    4px 2px #d8dcff,
    6px 2px #eef1ff,
    8px 2px #eef1ff,
    10px 2px #8b93c9,
    2px 4px #d8dcff,
    4px 4px #eef1ff,
    6px 4px #eef1ff,
    8px 4px #eef1ff,
    10px 4px #d8dcff,
    2px 6px #d8dcff,
    4px 6px #eef1ff,
    6px 6px #eef1ff,
    8px 6px #eef1ff,
    10px 6px #d8dcff,
    4px 8px #d8dcff,
    6px 8px #eef1ff,
    8px 8px #d8dcff,
    10px 8px #8b93c9,
    6px 10px #d8dcff,
    8px 10px #8b93c9;
  filter: drop-shadow(0 0 3px rgba(216, 220, 255, 0.28));
}

.pixel-moon {
  opacity: 1;
}

.pixel-sun {
  opacity: 0.38;
  transform: translateX(1px);
}

.pixel-toggle:hover .pixel-icon {
  opacity: 0.9;
}

.pixel-toggle:hover .pixel-moon {
  opacity: 1;
}

.pixel-toggle:has(input:checked) .pixel-moon {
  opacity: 0.38;
  transform: translateX(-1px);
}

.pixel-toggle:has(input:checked) .pixel-sun {
  opacity: 1;
  transform: translateX(0);
}

.pixel-toggle input:checked ~ .pixel-track {
  background: #101827;
  border-color: #334155;
}

.pixel-toggle:hover .pixel-track {
  border-color: #3fba9d;
}

.pixel-knob {
  position: absolute;
  left: 2px;
  width: 1.1rem;
  height: calc(100% - 4px);
  background: #3fba9d;
  border-radius: 1px;
  transition: left 0.15s ease;
  z-index: 1;
}

.pixel-toggle input:checked ~ .pixel-track .pixel-knob {
  left: calc(100% - 1.1rem - 2px);
}

.pixel-label-off,
.pixel-label-on {
  flex: 1;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  line-height: 1;
  color: #8b949e;
  user-select: none;
  z-index: 0;
}

.pixel-label-off {
  color: #c9d1d9;
}

.pixel-toggle input:checked ~ .pixel-track .pixel-label-off {
  color: #8b949e;
}

.pixel-toggle input:checked ~ .pixel-track .pixel-label-on {
  color: #c9d1d9;
}

#quality-selector {
  margin: 0 5px 0;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: none;
  height: 27px;
  width: 140px;
  border-radius: 2px;
  background-image: url("https://www.svgrepo.com/show/25790/down-arrow.svg");
  background-repeat: no-repeat;
  background-size: 15px;
  background-position: 120px 8px;
}

#quality-selector>option {
  font-size: 80%;
}

#language-selector {
  margin: 0 5px 0;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: none;
  height: 27px;
  width: 80px;
  border-radius: 2px;
  background-image: url("https://www.svgrepo.com/show/25790/down-arrow.svg");
  background-repeat: no-repeat;
  background-size: 15px;
  background-position: 60px 8px;
}

.tooltip {
  position: relative;
  display: inline-block;
}

#image-container {
  height: 100%;
}

#format-tooltip-image {
  width: 20px;
  height: 20px;
  margin: 5px;
}


.tooltiptext {
  visibility: hidden;
  width: 400px;
  overflow: visible;
  background-color: #161b22;
  color: #c9d1d9;
  border-radius: 4px;
  border: 1px solid rgba(63, 186, 157, 0.2);
  padding: 5px 0;
  position: absolute;
  z-index: 100;
  left: 50%;
  margin-left: -60px;
  opacity: 0;
  transition: opacity 1s;
}

#image-wrapper:hover~.tooltiptext {
  visibility: visible;
  opacity: 1;
}

#form-div {
  display: flex;
  justify-content: center;
  align-items: center;
}

#format-tooltip {
  margin-left: 30px;
}

#skills-chart.bar {
  max-height: 500px;
  max-width: 100vw;
}

.bar-logo {
  width: 40%;
  margin-left: 2%;
  margin-right: 4%;
}

.bar-text-container {
  color: #c9d1d9;
  transition: 0.3s;
  margin-inline-start: 10px;
  margin-inline-end: 20px;
}

.bar-text-container:hover:not(.playing) {
  transform: scale(1.05);
  cursor: pointer;
  z-index: 2;
}

.bar-text {
  font-family: 'JetBrains Mono', monospace;
  margin-right: 2%;
  font-size: 0.85rem;
  color: #f8fafc;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(13, 17, 23, 0.25);
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.bar-text-dark {
  color: #1a1a2e;
  text-shadow: none;
}

#skills-chart {
  overflow: visible;
  margin-top: auto;
}

.skill-bar-header {
  background-color: var(--color);
  padding: 0.5rem 1rem;
  margin-bottom: 1rem;
  transition: 0.3s;
}

.skill-bar-header:hover {
  transform: scale(1.02);
}

.guides-page {
  margin-top: 0;
  text-align: justify;
}

.article-background-stack {
  display: grid;
  gap: 2.5rem;
}

.blurry-background-shell {
  margin: 0 15% 0;
  padding: 2.5%;
  padding-top: 3.5rem;
  z-index: 1;
  border-radius: 8px 8px 4px 4px;
  border: 1px solid #2a2a2a;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.7);
  position: relative;
  background-color: #0d0d0d;
  color: #c9d1d9;
}

.blurry-background-shell::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2.2rem;
  background-color: #1a1a1a;
  border-bottom: 1px solid #2a2a2a;
  border-radius: 8px 8px 0 0;
}

.blurry-background-shell::after {
  content: "";
  position: absolute;
  top: 0.78rem;
  left: 0.9rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff5f57;
  box-shadow: 13px 0 0 #febc2e, 26px 0 0 #28c840;
}

.blurry-background-shell.dark-mode {
  background-color: #0d0d0d !important;
}

.blurry-background-shell.light-mode {
  background-color: rgba(245, 245, 240, 0.85) !important;
  color: #1a1a2e !important;
}

.article-background-split {
  text-align: left;
}

.article-terminal-titlebar {
  background: rgba(13, 17, 23, 0.86);
  border-bottom: 1px solid rgba(63, 186, 157, 0.12);
}

.article-terminal-body {
  min-height: 0;
}

.guide-entry {
  margin-top: 3rem;
  margin-bottom: 8rem;
}

.guide-iframe-wrapper {
  margin: 1.5rem 0 2rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.18);
  position: relative;
}

.blurry-background-shell.light-mode .guide-iframe-wrapper,
#blurry-background.light-mode .guide-iframe-wrapper {
  border-color: rgba(26, 26, 46, 0.12);
  background: rgba(255, 255, 255, 0.65);
}

.guide-iframe {
  display: block;
  width: 100%;
  min-height: 420px;
  height: 560px;
  border: 0;
}

@media (max-width: 900px) {
  .guide-iframe {
    min-height: 320px;
    height: 420px;
  }
}

.contact-image {
  margin-right: 6%;
  margin-bottom: 200px;
}

.contact-image>img {
  transition: 0.2s;
}

.contact-image:hover>img {
  transform: scale(1.1);
  cursor: pointer;
}

.chart-description-container {
  border-left: 3px solid #3fba9d;
  padding: 10px;
  margin: 20px;
  border-radius: 2px;
  vertical-align: middle;
  white-space: normal;
  transition: background-color 0.3s;
}

.chart-expanded {
  margin-bottom: 18rem !important;
}

.animate-bar {
  animation: AnimateBars 0.8s cubic-bezier(.27, .85, .71, .99);
}

.move-down {
  animation: MoveDown 0.4s cubic-bezier(.27, .85, .71, .99);
}

.scale-down {
  animation: ScaleDown 0.4s cubic-bezier(.27, .85, .71, .99);
}


@keyframes ScaleDown {
  0% {
    height: 1;
  }

  100% {
    height: 20vh;
  }
}

@keyframes MoveDown {
  from {
    transform: translateY(-40px);
  }

  to {
    transform: translateY(0);
  }
}


@keyframes AnimateBars {
  from {
    width: 0%;
  }

  to {
    width: var(--size*100%);
  }
}

#book-wrapper {
  border-radius: 8px;
  border: 1px solid #2a2a2a;
  background-color: #0d0d0d;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.7);
}

#blurry-background.light-mode #book-wrapper {
  background-color: #fcfcf9;
  border-color: rgba(26, 26, 46, 0.12);
  box-shadow: 0 4px 24px rgba(26, 26, 46, 0.12);
}

.book-titlebar {
  display: flex;
  align-items: center;
  height: 2rem;
  background: #161616;
  border-bottom: 1px solid #2a2a2a;
  padding: 0 0.7rem;
  gap: 0.5rem;
  border-radius: 8px 8px 0 0;
}

#blurry-background.light-mode .book-titlebar {
  background: #f0f1eb;
  border-bottom-color: rgba(26, 26, 46, 0.1);
}

.book-titlebar .card-tab {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: #6a737d;
}

#blurry-background.light-mode .book-titlebar .card-tab {
  color: #4a5568;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-items: center;
  align-items: end;
  padding: 1rem 0.5rem;
}

.shelf-plank {
  grid-column: 1 / -1;
  justify-self: stretch;
  height: 1px;
  background: #2a2a2a;
  margin: 0.5rem 0;
}

#blurry-background.light-mode .shelf-plank {
  background: rgba(26, 26, 46, 0.12);
}

.book-preview {
  height: 15.5rem;
  margin: 10px 30px 20px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.book-hover-anchor {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: 110%;
}

.book-image {
  max-height: 100%;
  transition: 0.4s, z-index 1ms;
  position: relative;
  cursor: pointer;
  max-width: 10rem;
  object-fit: contain;
  display: block;
}

.book-hover-anchor:hover .book-image {
  z-index: 5;
  transform: scale(1.05);
}

.book-background {
  display: none;
  position: absolute;
  top: 50%;
  left: -2rem;
  transform: translateY(-50%);
  animation: fadeIn 0.5s;
  transition: 0.4s;
  background-color: #161b22;
  border-left: 3px solid var(--average-color);
  width: 30rem;
  min-height: 20rem;
  color: #c9d1d9;
  padding-left: 13rem;
  padding-bottom: 1rem;
  border-radius: 4px;
  border: 1px solid rgba(63, 186, 157, 0.15);
  border-left: 3px solid var(--average-color);
}

#blurry-background.light-mode .book-background {
  background-color: #fbfbf8;
  color: #334155;
  border-color: rgba(26, 26, 46, 0.12);
  border-left: 3px solid var(--average-color);
  box-shadow: 0 18px 36px rgba(26, 26, 46, 0.12);
}

.book-hover-anchor:hover .book-background {
  display: block;
  z-index: 3;
}

.book-prop {
  margin: 0;
  margin-right: 25px;
  margin-top: 10px;
}

.title-wrapper {
  margin-top: 1rem;
  max-height: 25%;
}

.book-title {
  font-weight: 600;
  font-size: 100%;
  margin-bottom: 0.5rem;
  color: #3fba9d;
  text-decoration: none;
  border-bottom: 1px solid rgba(63, 186, 157, 0.3);
  padding-bottom: 0.3rem;
}

#blurry-background.light-mode .book-title {
  color: #0f766e;
  border-bottom-color: rgba(15, 118, 110, 0.2);
}

.year-publisher {
  font-size: 0.8rem;
  color: #8b949e;
  display: grid;
  grid-template-columns: 1fr 0.3fr;
}

#blurry-background.light-mode .year-publisher {
  color: #64748b;
}


.book-description {
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media screen and (min-height:1px) and (max-height:600px) {
  .contact {
    margin-top: 50vh;
  }

  .contact-moved {
    margin-top: 80vh;
  }
}

@media screen and (min-height:601px) and (max-height: 2560px) {
  .contact {
    margin-top: 0;
  }

  .contact-moved {
    margin-top: 20vh;
  }
}

.contact-terminal-panel {
  border: 0.3rem solid #2b3648;
  background: linear-gradient(180deg, rgba(8, 12, 18, 0.95) 0%, rgba(15, 21, 31, 0.95) 100%);
  box-shadow: 0 0 0 0.3rem #0c1118, 0 1.2rem 3rem rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.contact-terminal-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.4rem;
  border-bottom: 0.2rem solid #2b3648;
  background: linear-gradient(90deg, #141d29 0%, #101722 100%);
}

.contact-terminal-prompt,
.contact-terminal-command,
.contact-terminal-copy,
.contact-card-tag,
.contact-card-subtitle {
  font-family: 'JetBrains Mono', monospace;
}

.contact-terminal-prompt {
  font-size: 1rem;
  color: #7ee787;
}

.contact-terminal-command {
  font-size: 1rem;
  color: #8b949e;
}

.contact-terminal-body {
  padding: 1.8rem 1.5rem 2rem 1.5rem;
}

.contact-terminal-copy {
  margin: 0 0 1.8rem 0;
  font-size: 1rem;
  color: #c9d1d9;
  line-height: 1.7;
}

.contact-terminal-copy-arrow {
  color: #7ee787;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
}

.contact-card {
  text-decoration: none;
  color: inherit;
  border: 0.18rem solid #2b3648;
  background: rgba(16, 23, 34, 0.92);
  padding: 1rem;
  display: block;
  box-shadow: inset 0 0 0 0.1rem color-mix(in srgb, var(--contact-accent) 18%, transparent);
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-card:hover {
  transform: translateY(-0.15rem);
  border-color: color-mix(in srgb, var(--contact-accent) 65%, #2b3648);
  box-shadow: 0 0.8rem 1.8rem rgba(0, 0, 0, 0.18), inset 0 0 0 0.1rem color-mix(in srgb, var(--contact-accent) 28%, transparent);
}

.contact-card-tag {
  font-size: 0.85rem;
  color: var(--contact-accent);
  margin-bottom: 0.45rem;
}

.contact-card-heading {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.35rem;
}

.contact-card-title {
  font-size: 1.26rem;
  font-weight: 700;
  color: #f0f6fc;
  transition: color 0.2s ease;
}

.contact-card-subtitle {
  font-size: 0.92rem;
  color: #8b949e;
  transition: color 0.2s ease;
}

.contact-card:hover .contact-card-title,
.contact-card:hover .contact-card-subtitle {
  color: var(--contact-accent);
}

#blurry-background.light-mode .contact-terminal-panel {
  border-color: rgba(47, 84, 122, 0.22);
  background: linear-gradient(180deg, rgba(251, 252, 248, 0.98) 0%, rgba(242, 246, 251, 0.98) 100%);
  box-shadow: 0 0 0 0.18rem rgba(255, 255, 255, 0.88), 0 1.2rem 3rem rgba(26, 26, 46, 0.12);
}

#blurry-background.light-mode .contact-terminal-header {
  border-bottom-color: rgba(47, 84, 122, 0.18);
  background: linear-gradient(90deg, #eef3f8 0%, #e8eef6 100%);
}

#blurry-background.light-mode .contact-terminal-command {
  color: #64748b;
}

#blurry-background.light-mode .contact-terminal-copy {
  color: #334155;
}

#blurry-background.light-mode .contact-card {
  border-color: rgba(47, 84, 122, 0.16);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 0 0 0.1rem color-mix(in srgb, var(--contact-accent) 14%, transparent);
}

#blurry-background.light-mode .contact-card:hover {
  border-color: color-mix(in srgb, var(--contact-accent) 40%, rgba(47, 84, 122, 0.16));
  box-shadow: 0 1rem 2rem rgba(26, 26, 46, 0.1), inset 0 0 0 0.1rem color-mix(in srgb, var(--contact-accent) 22%, transparent);
}

#blurry-background.light-mode .contact-card-title {
  color: #16213e;
}

#blurry-background.light-mode .contact-card-subtitle {
  color: #64748b;
}

#hash-input-box {
  display: flex;
  width: 40%;
  height: 200px;
  float: left;
  justify-content: start;
}


#algo-selector {
  margin: 0 5px 0;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: none;
  height: 27px;
  width: 90px;
  border-radius: 2px;
  background-image: url("https://www.svgrepo.com/show/25790/down-arrow.svg");
  background-repeat: no-repeat;
  background-size: 15px;
  background-position: 70px 7px;
  float: left;
  margin-left: 3%;
}

#result-container {
  height: 200px;
  width: 43%;
  font-family: 'JetBrains Mono', monospace;
}

#generate-button {
  margin-top: 10%;
  float: left;
}

#video-wrapper {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
}


.library-video {
  width: 100%;
  height: 100%;
  min-height: 16rem;
  display: block;
}

.video-container {
  border-radius: 8px;
  border: 1px solid #2a2a2a;
  overflow: hidden;
  background-color: #0d0d0d;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.7);
  transition: 0.3s;
}

.video-container:hover {
  box-shadow: 0 0 0 1px #3fba9d, 0 8px 32px rgba(63, 186, 157, 0.12), 0 16px 40px rgba(0, 0, 0, 0.5);
  transform: translateY(-4px);
}

.video-container.light-mode {
  background-color: #fcfcf9;
  border-color: rgba(26, 26, 46, 0.12);
  box-shadow: 0 4px 24px rgba(26, 26, 46, 0.12);
}

.video-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 2rem;
  padding: 0 0.7rem;
  gap: 0.75rem;
  background: #161616;
  border-bottom: 1px solid #2a2a2a;
}

.video-container.light-mode .video-titlebar {
  background: #f0f1eb;
  border-bottom-color: rgba(26, 26, 46, 0.1);
}

.video-tab {
  min-width: 0;
  display: block;
}

.video-card-body {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  min-height: 100%;
}

.video-frame {
  position: relative;
  min-height: 18rem;
  border-right: 1px solid #1a1a1a;
  background:
    linear-gradient(180deg, rgba(63, 186, 157, 0.08), transparent),
    #0a0a0a;
}

.video-container.light-mode .video-frame {
  background:
    linear-gradient(180deg, rgba(63, 186, 157, 0.08), transparent),
    #f0f1eb;
  border-right-color: rgba(26, 26, 46, 0.08);
}

.video-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.06) 2px,
    rgba(0, 0, 0, 0.06) 4px
  );
}

.video-text {
  padding: 1.15rem 1.2rem 1.65rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.video-kicker {
  margin: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #3fba9d;
}

.video-title {
  margin: 0;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  line-height: 1.5;
  color: #e5c07b;
}

.video-container.light-mode .video-title {
  color: #b7791f;
}

.video-description {
  margin: 0;
  color: #c9d1d9;
  line-height: 1.8;
}

.video-container.light-mode .video-description {
  color: #334155;
}

.video-author {
  text-align: left;
  font-weight: bold;
  font-style: italic;
}

.video-category {
  margin-top: auto;
  margin-bottom: 0.9rem;
  width: fit-content;
  font-size: 0.72rem;
  font-family: 'JetBrains Mono', monospace;
  color: #56b6c2;
  border: 1px solid rgba(63, 186, 157, 0.2);
  background: rgba(63, 186, 157, 0.08);
  padding: 0.18rem 0.55rem;
  border-radius: 2px;
}

.video-category::before {
  content: "#";
  opacity: 0.45;
  margin-right: 0.2rem;
}

@media screen and (max-width: 1100px) {
  .analysis-workspace {
    grid-template-columns: 1fr;
  }

  #video-wrapper {
    grid-template-columns: 1fr;
  }

  .video-card-body {
    grid-template-columns: 1fr;
  }

  .video-frame {
    min-height: 15rem;
    border-right: none;
    border-bottom: 1px solid #1a1a1a;
  }

  .video-container.light-mode .video-frame {
    border-bottom-color: rgba(26, 26, 46, 0.08);
  }
}

@media screen and (max-width: 700px) {
  .analysis-grid {
    grid-template-columns: 1fr;
  }

  .analysis-panel-body {
    padding: 1.15rem;
  }

  .analysis-render-box {
    min-height: 18rem;
  }

  .book-grid {
    grid-template-columns: 1fr;
  }

  .book-preview {
    margin: 10px 16px;
  }

  .book-background {
    width: min(24rem, calc(100vw - 4rem));
    min-height: 16rem;
    left: -1rem;
    padding-left: 9.5rem;
  }
}

footer {
  background-color: rgba(10, 10, 15, 0.95);
  border-top: 1px solid rgba(63, 186, 157, 0.15);
  color: #8b949e;
  padding: 20px;
  text-align: center;
  font-size: 0.8rem;
  font-family: 'JetBrains Mono', monospace;
  position: relative;
  z-index: 2;
}

#id_image_url {
  width: 300px;
}

#data-results {
  display: grid;
  grid-template-columns: 50% 50%;
}

.project-title.dark-mode {
  background: none !important;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 4rem;
  font-weight: 300;
  text-align: center;
  text-shadow: rgba(63, 186, 157, 0.5) 0px 0px 40px;
}

.project-title.light-mode {
  background: none !important;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 4rem;
  font-weight: 300;
  text-align: center;
  color: #1a1a2e;
  text-shadow: rgba(63, 186, 157, 0.16) 0px 0px 24px;
}

.project-title {
  background: none !important;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 4rem;
  font-weight: 300;
  text-align: center;
  text-shadow: rgba(0,0,0,0.8) 0px 0px 40px;
}


.project-title > p {
  margin-bottom: 0;
  margin-top: 0;
}

.about-project {
  text-align: left;
  margin-top: 1% !important;
}

.about-header {
  margin-bottom: 5rem;
}

.technical-details-title {
  margin-top: 8%;
}

code {
  background-color: rgba(63, 186, 157, 0.08);
  border: 1px solid rgba(63, 186, 157, 0.15);
  font-size: 0.85em;
  padding: 2px 6px;
  font-family: 'JetBrains Mono', monospace;
  border-radius: 3px;
}

.code-block {
  border: 1px solid rgba(63, 186, 157, 0.1);
  border-top: none;
  color: #c9d1d9;
  padding: 3.5% 2% 3.5%;
  font-family: 'JetBrains Mono', monospace;
  background-color: #0d1117;
  font-size: 0.8rem;
}

.code-block.light-mode {
  border-color: rgba(26, 26, 46, 0.1);
  color: #243447;
  background-color: #fbfbf8;
}

code[or],
.code-block-or {
  color: #D18048;
}

code[wh],
.code-block-wh {
  color: #afafaf;
}

code[re],
.code-block-re {
  color: #E0584F;
}

code[gr],
.code-block-gr {
  color: #98C374;
}

code[vi],
.code-block-vi {
  color: #C66094;
}

code[bl],
.code-block-bl {
  color: #57AFEF;
}

code[da],
.code-block-da {
  color: #8c9dde;
}

code[ye],
.code-block-ye {
  color: #E5C07B;
}

code[cy],
.code-block-cy {
  color: #3fba9d;
}

code[lb],
.code-block-lb {
  color: #7cc4e8;
}
code[br],
.code-block-br {
  color: #be8464;
}
code[hi],
.code-block-hi {
  background-color: rgba(63, 186, 157, 0.05);
}

.code-block.light-mode .code-block-or {
  color: #b05a1d;
}

.code-block.light-mode .code-block-wh {
  color: #4a5568;
}

.code-block.light-mode .code-block-re {
  color: #c53030;
}

.code-block.light-mode .code-block-gr {
  color: #2f855a;
}

.code-block.light-mode .code-block-vi {
  color: #805ad5;
}

.code-block.light-mode .code-block-bl {
  color: #2b6cb0;
}

.code-block.light-mode .code-block-da {
  color: #4c51bf;
}

.code-block.light-mode .code-block-ye {
  color: #b7791f;
}

.code-block.light-mode .code-block-cy {
  color: #0f766e;
}

.code-block.light-mode .code-block-lb {
  color: #2c5282;
}

.code-block.light-mode .code-block-br {
  color: #8b5e3c;
}

.code-block.light-mode .code-block-hi {
  background-color: rgba(63, 186, 157, 0.12);
}

#title-wrapper {
  position: absolute;
  top: 50%;
  left: 5%;
  width: 100vw;
  text-align: left;
}

#main-title {
  font-size: 5rem;
  font-weight: 300;
  color: #c9d1d9;
  letter-spacing: -0.03em;
}

.light-mode #main-title {
  color: #111827;
}

.landing-hero {
  min-height: calc(100vh - 6rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem clamp(1.5rem, 4vw, 4rem) 4rem;
  position: relative;
  z-index: 1;
}

.landing-hero-copy {
  width: min(100%, 96rem);
  text-align: center;
  position: relative;
}

.landing-hero-title {
  margin: 0;
  font-size: clamp(3.9rem, 8.8vw, 7.8rem) !important;
  line-height: 0.95;
  font-weight: 300;
  letter-spacing: -0.05em;
  white-space: nowrap;
}

.landing-hero-subtitle {
  margin: 2rem auto 0;
  max-width: 42rem;
  font-size: clamp(1rem, 2vw, 1.35rem);
  line-height: 1.8;
  color: #8b949e;
  width: fit-content;
  padding: 0.8rem 1.1rem;
  border-radius: 6px;
  background: rgba(7, 11, 18, 0.72);
  border: 1px solid rgba(63, 186, 157, 0.1);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}

.light-mode .landing-hero-subtitle {
  color: #475569;
  background: rgba(252, 252, 249, 0.86);
  border-color: rgba(26, 26, 46, 0.08);
  box-shadow: 0 12px 28px rgba(26, 26, 46, 0.08);
}

.landing-console-shell {
  width: min(100%, 96rem);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(63, 186, 157, 0.16);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  background: rgba(7, 11, 18, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.landing-console-shell.light-mode {
  background: rgba(252, 252, 249, 0.88);
  border-color: rgba(26, 26, 46, 0.12);
  box-shadow: 0 24px 70px rgba(26, 26, 46, 0.12);
}

.landing-console-titlebar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.2rem;
  padding: 0 0.9rem;
  background: rgba(13, 17, 23, 0.86);
  border-bottom: 1px solid rgba(63, 186, 157, 0.12);
}

.landing-console-shell.light-mode .landing-console-titlebar {
  background: #f0f1eb;
  border-bottom-color: rgba(26, 26, 46, 0.08);
}

.landing-console-titlebar .card-tab {
  color: #6a737d;
}

.landing-console-shell.light-mode .landing-console-titlebar .card-tab {
  color: #475569;
}

.landing-console-body {
  padding: 2.4rem 2.1rem 2.6rem;
  min-height: 11.5rem;
  background: linear-gradient(180deg, rgba(63, 186, 157, 0.05), transparent 40%);
}

.landing-console-shell.light-mode .landing-console-body {
  background: linear-gradient(180deg, rgba(63, 186, 157, 0.04), transparent 40%);
}

.project-current-terminal {
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(63, 186, 157, 0.14);
  background: rgba(7, 11, 18, 0.82);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
}

.project-current-terminal.light-mode {
  background: rgba(252, 252, 249, 0.9);
  border-color: rgba(26, 26, 46, 0.1);
  box-shadow: 0 16px 30px rgba(26, 26, 46, 0.08);
}

.project-current-terminal.light-mode .article-terminal-titlebar {
  background: #f0f1eb;
  border-bottom-color: rgba(26, 26, 46, 0.08);
}

.project-current-body {
  display: grid;
  gap: 0.9rem;
}

.project-current-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: #f8fafc;
}

.project-current-code {
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.8;
}

.project-current-terminal.light-mode .project-current-title {
  color: #0f172a;
}

.project-current-terminal.light-mode .project-current-code {
  color: #334155;
}

.landing-console-line {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 1rem;
  width: 100%;
  min-height: 5.2rem;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.landing-console-line::-webkit-scrollbar {
  display: none;
}

.landing-console-caret {
  flex: 0 0 auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(3.8rem, 6.5vw, 5.8rem);
  line-height: 1;
  color: #3fba9d;
}

.landing-hero-title.is-exiting {
  animation: consoleTextExit 0.8s ease forwards;
}

@keyframes consoleTextExit {
  0% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateY(-0.9rem);
  }
}

.hero-scroll-cue {
  position: absolute;
  right: 0.8rem;
  bottom: -3.6rem;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(63, 186, 157, 0.18);
  border-radius: 4px;
  background: rgba(13, 17, 23, 0.82);
  color: #3fba9d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(0);
  transition: opacity 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.hero-scroll-cue.is-visible {
  opacity: 1;
  pointer-events: auto;
  animation: heroCueBounce 1.5s ease-in-out infinite;
}

.hero-scroll-cue:hover {
  border-color: rgba(63, 186, 157, 0.35);
}

.light-mode .hero-scroll-cue {
  background: rgba(252, 252, 249, 0.92);
  color: #0f766e;
  border-color: rgba(26, 26, 46, 0.12);
  box-shadow: 0 10px 30px rgba(26, 26, 46, 0.12);
}

.hero-scroll-cue-arrow {
  display: block;
  font-size: 1.9rem;
  line-height: 1;
}

@keyframes heroCueBounce {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(4px);
  }

  100% {
    transform: translateY(0);
  }
}

#cursor {
  animation: blinkCursor 1s infinite;
  color: #3fba9d;
  margin-left: -3px;
  position: relative;
  top: -10px;
}

@keyframes blinkCursor {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

#highlighted-projects-container {
  position: absolute;
  width: 30%;
  right: 10%;
  top: 30%;
  animation: fade-in-long 3s ease-in-out;
}

@keyframes fade-in-long {
  0% {
    opacity: 0;
  }

  80% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}


.card-highlighted-projects {
  left: 18%;
}

.current-project {
  position: absolute;
  animation-fill-mode: forwards;
}

@keyframes scroll-from-right {
  0% {
    opacity: 0;
    transform: translateX(100%);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scroll-from-left {
  0% {
    opacity: 0;
    transform: translateX(-100%);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.card-highlighted-projects:not(.current-project) {
  display: none;
}

#left-arrow {
  position: absolute;
  scale: 3;
  left: 0;
  top: 13rem;
}

#right-arrow {
  position: absolute;
  scale: 3;
  right: 0;
  top: 13rem;
}

.slide-left {
  animation: slide-left 0.4s ease-in-out;
  animation-fill-mode: forwards;
}

.slide-right {
  animation: slide-right 0.4s ease-in-out;
  animation-fill-mode: forwards;
}

.slide-from-right {
  animation: slide-from-right 0.4s;
  animation-fill-mode: forwards;
}

.slide-from-left {
  animation: slide-from-left 0.4s;
  animation-fill-mode: forwards;
}

@keyframes slide-from-left {
  0% {
    opacity: 0;
    transform: translateX(-100%);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slide-from-right {
  0% {
    opacity: 0;
    transform: translateX(100%);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slide-right {
  0% {
    transform: translateX(0);
    opacity: 1;
  }

  100% {
    transform: translateX(100%);
    opacity: 0;
  }
}

@keyframes slide-left {
  0% {
    opacity: 1;
    transform: translateX(0);
  }

  100% {
    opacity: 0;
    transform: translateX(-100%);
  }
}

@keyframes slide-up {
  0% {
    opacity: 0;
    transform: translateY(0);
  }

  50% {
    opacity: 0;
    transform: translateY(0);
  }

  100% {
    opacity: 1;
    transform: translateY(-60%);
  }
}

#main-subtitle {
  animation: slide-up 3.2s;
  animation-fill-mode: forwards;
  color: #8b949e;
  font-weight: 300;
}

.light-mode .landing-hero-title {
  color: #111827;
}

@media screen and (max-width: 700px) {
  .landing-hero {
    min-height: calc(100vh - 4rem);
    padding: 7rem 8% 3rem;
  }

  .landing-hero-subtitle {
    margin-top: 1.1rem;
    line-height: 1.65;
  }

  .landing-console-body {
    padding: 1.7rem 1.3rem 1.8rem;
    min-height: 8.8rem;
  }

  .landing-console-line {
    justify-content: flex-start;
    min-height: 3.4rem;
  }

  .landing-console-caret {
    font-size: 3.1rem;
  }

  .landing-hero-title {
    font-size: clamp(2.1rem, 10vw, 4rem) !important;
  }

  .hero-scroll-cue {
    right: 0.3rem;
    bottom: -3rem;
  }

  #cursor {
    top: -4px;
  }
}

#highlighted-projects-title {
  position: absolute;
  top: -13rem;
  font-size: 3rem;
  font-weight: 300;
  color: #c9d1d9;
}

#projects-wrapper .card .preview_img {
  opacity: 0;
}

@media screen and (min-height:1px) and (max-height: 600px) {
  #highlighted-projects-title {
    top: -6rem;
    font-size: 2.5rem;
  }

  #projects-wrapper .card {
    height: 350px;
    margin-top: 10%;
  }
}

.ͼp {
  width: 40vw;
}

#shader-editor {
  margin-left: -27.5%;
}

#shader-container {
  font-size: 0.8rem;
  height: 55vh;
  width: 55vw;
  margin-top: 5rem;
  display: flex;
  flex-direction: row;
  column-gap: 30%;
}

.hover-img {
  transition: 0.3s;
  width:95%;
  display: block;
  margin: auto;
  overflow: visible;
}

.hover-img-2 {
  transition: 0.3s;
  width:95%;
  display: block;
  margin: auto;
  overflow: visible;
}


.hover-img-2:hover {
  box-shadow: 0 8px 16px 0 rgba(0,0,0,0.4);
  transform: scale(1.5);
}

.hover-img:hover {
  box-shadow: 0 8px 16px 0 rgba(0,0,0,0.4);
  transform: scale(1.04);
}

.code-block-header {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(63, 186, 157, 0.15);
  padding: 0.3rem;
  padding-left: 1rem;
  background-color: rgba(63, 186, 157, 0.05);
  border-radius: 4px 4px 0 0;
  color: #8b949e;
}

.code-block-header.light-mode {
  border-bottom-color: rgba(26, 26, 46, 0.1);
  background-color: rgba(26, 26, 46, 0.04);
  color: #5a6472;
}

.code-block-container {
  border: 1px solid rgba(63, 186, 157, 0.1);
  color: #c9d1d9;
  font-family: 'JetBrains Mono', monospace;
  background-color: #0d1117;
  font-size: 0.8rem;
  margin-top: 50px;
  margin-bottom: 50px;
  border-radius: 4px;
}

.code-block-container.light-mode {
  border-color: rgba(26, 26, 46, 0.1);
  color: #243447;
  background-color: #fbfbf8;
}

.scope-border {
  display: inline-block;
  height: 20px;
  border-left: dotted 2px;
  opacity: 0.15;
  border-color: #3fba9d;
  margin-right: -2px;
  margin-left: 2px;
}

.wip-item {
  margin-bottom: 3rem;
  background: rgba(13, 13, 17, 0.85);
  border: 1px solid rgba(63, 186, 157, 0.1);
  border-radius: 6px;
  padding: 1.2rem 1.5rem;
  backdrop-filter: blur(8px);
  list-style: none;
}

.light-mode .wip-item {
  background: rgba(240, 241, 235, 0.85);
  border-color: rgba(26, 26, 46, 0.1);
}


code[cy] {
  color: #3fba9d;
}

code[ye] {
  color: #E5C07B;
}

.data2image-container {
  border: 1px solid rgba(63, 186, 157, 0.15);
  border-radius: 4px;
  padding: 1rem;
  display: grid;
  grid-template-columns: 50% 50%;
  justify-content: center;
  text-align:center;
  gap:10px;
  margin-top: 3rem;
}
