/* Google Sans Code font */

html {
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  font-family: 'Google Sans Code', monospace, sans-serif;
}

body {
  margin: 0;
}

aside,
main,
nav,
section {
  display: block;
}

a {
  background-color: rgba(0, 0, 0, 0);
}

a:active,
a:hover {
  outline: 0;
}

h1 {
  margin: 0.67em 0;
  font-size: 2em;
}

img {
  border: 0;
}

@font-face {
  font-family: webflow-icons;
  src: url('data:application/x-font-ttf;charset=utf-8;base64,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') format('truetype');
  font-weight: normal;
  font-style: normal;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  min-height: 100%;
  color: #333;
  background-color: #fff;
  margin: 0;
  font-family: 'Google Sans Code', monospace, sans-serif;
  font-size: 14px;
  line-height: 20px;
}

img {
  max-width: 100%;
  vertical-align: middle;
  display: inline-block;
}

svg {
  fill: currentColor;
  display: inline-block;
  vertical-align: middle;
}

.w-inline-block {
  max-width: 100%;
  display: inline-block;
}

.w-button {
  color: #fff;
  line-height: inherit;
  cursor: pointer;
  background-color: #3898ec;
  border: 0;
  border-radius: 0;
  padding: 9px 15px;
  text-decoration: none;
  display: inline-block;
}

h1,
h3,
h4 {
  margin-bottom: 10px;
  font-weight: bold;
}

h1 {
  margin-top: 20px;
  font-size: 38px;
  line-height: 44px;
  color: #fff;
}

h3 {
  margin-top: 20px;
  font-size: 24px;
  line-height: 30px;
}

h4 {
  margin-top: 10px;
  font-size: 18px;
  line-height: 24px;
}

p {
  margin-top: 0;
  margin-bottom: 10px;
}

ul {
  margin-top: 0;
  margin-bottom: 10px;
  padding-left: 40px;
}

@media screen and (max-width: 767px) {
  .w-nav-brand {
    padding-left: 10px;
  }
}

.w-richtext:before,
.w-richtext:after {
  content: ' ';
  grid-area: 1 / 1 / 2 / 2;
  display: table;
}

.w-richtext:after {
  clear: both;
}

.w-richtext ul {
  overflow: hidden;
}

.w-nav {
  z-index: 1000;
  background: #ddd;
  position: relative;
}

.w-nav:before,
.w-nav:after {
  content: ' ';
  grid-area: 1 / 1 / 2 / 2;
  display: table;
}

.w-nav:after {
  clear: both;
}

.w-nav-brand {
  float: left;
  color: #333;
  text-decoration: none;
  position: relative;
}

.w-nav-menu {
  float: right;
  position: relative;
}

.w-nav-menu.is-open {
  display: block !important;
  position: fixed;
  left: 0;
  right: 0;
  top: 92px;
}

.w-nav-button {
  float: right;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  padding: 18px;
  font-size: 24px;
  display: none;
  position: relative;
}

.w-nav-button:focus {
  outline: 0;
}

@media screen and (max-width: 991px) {
  .w-nav[data-collapse='medium'] .w-nav-menu {
    display: none;
  }

  .w-nav[data-collapse='medium'] .w-nav-menu.is-visible {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    top: 92px;
    background: #1c1c1c;
    transform: translateY(-50%);
    opacity: 0;
    transition: transform 250ms ease, opacity 250ms ease;
    will-change: transform, opacity;
  }

  .w-nav[data-collapse='medium'] .w-nav-menu.is-visible.is-open {
    transform: translateY(0);
    opacity: 1;
  }

  .w-nav[data-collapse='medium'] .w-nav-button {
    display: block;
  }
}

@media screen and (max-width: 767px) {
  .w-nav-brand {
    padding-left: 10px;
  }
}

body {
  color: #333;
  background-color: #161616;
  font-family: 'Google Sans Code', monospace, sans-serif;
  font-size: 14px;
  line-height: 20px;
}

h1 {
  color: #fff;
  letter-spacing: -0.5px;
  margin-top: 0;
  margin-bottom: 18px;
  font-size: 58px;
  font-weight: 300;
  line-height: 72px;
}

h3 {
  color: #fff;
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 32px;
  font-weight: 400;
  line-height: 42px;
}

h4 {
  color: #fff;
  margin-top: 0;
  margin-bottom: 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 24px;
}

p {
  color: #a8a8a8;
  margin-bottom: 10px;
  font-size: 16px;
  line-height: 26px;
}

.content {
  width: 100vw;
  height: 100vh;
  display: flex;
}

.sidebar {
  width: 100%;
  height: 100%;
  max-width: 280px;
  background-color: #1c1c1c;
  border-right: 1px solid #353535;
  padding: 32px;
}

.nav-content {
  width: 100%;
  height: 100%;
  grid-column-gap: 36px;
  grid-row-gap: 36px;
  flex-direction: column;
  display: flex;
}

.label-white {
  color: #fff;
  margin-bottom: 2px;
  font-size: 16px;
  line-height: 24px;
}

.label-gray {
  color: #a8a8a8;
  font-size: 14px;
  line-height: 22px;
}

.niv-data {
  align-items: center;
  display: flex;
}

.niv-image {
  width: 48px;
  height: 48px;
  border: 1px solid #353535;
  border-radius: 100px;
  margin-right: 12px;
}

.main {
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(28, 28, 28, 0.64), rgba(28, 28, 28, 0.64)) linear-gradient(rgba(28, 28, 28, 0.24), rgba(28, 28, 28, 0.24));
  background-position: 0 0, 0 0, 0 0;
  background-size: auto, auto 1130px, auto;
  flex-direction: column;
  align-items: center;
  padding: 46px 144px 82px;
  display: flex;
  overflow: auto;
}

.container {
  width: 100%;
  max-width: 100%;
  grid-column-gap: 32px;
  grid-row-gap: 32px;
  flex-direction: column;
  display: flex;
}

.lead {
  max-width: 580px;
  color: #fff;
  margin-bottom: 0;
  line-height: 26px;
}

.button {
  color: #fff;
  background-color: #1c1c1c;
  border: 1px solid #363636;
  border-right-color: #353535;
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  line-height: 26px;
  text-decoration: none;
  transition: all 40ms;
}

.button:hover {
  background-color: #202020;
  box-shadow: 0 2px 4px rgba(8, 8, 8, 0.82);
}

.fold-content-container {
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
}

.fold-content {
  margin-bottom: 48px;
}

.mini-label-white {
  color: #fff;
  letter-spacing: 0.75px;
  text-transform: uppercase;
  margin-top: 24px;
  font-family: 'Google Sans Code', monospace, sans-serif;
  font-size: 10px;
  font-weight: 400;
  line-height: 24px;
}

.mini-label-white.gray-color {
  color: #a8a8a8;
}

.chips-container {
  grid-column-gap: 12px;
  grid-row-gap: 12px;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-top: 8px;
  display: flex;
}

.chips-container.chips-container-small-width {
  max-width: 380px;
}

.single-chip {
  color: #fff;
  background-color: #353535;
  border-radius: 8px;
  padding: 8px 12px;
  font-family: 'Google Sans Code', monospace, sans-serif;
}

.single-chip.small-chip {
  padding: 4px 8px;
  font-size: 12px;
}

.single-item {
  font-size: 16px;
}

.resouce-items {
  grid-column-gap: 64px;
  grid-row-gap: 64px;
  flex-direction: column;
  display: flex;
}

.items-container {
  flex-direction: column;
}

.nav-link-image {
  width: 24px;
  opacity: 0.8;
  color: #a8a8a8;
}

html.light-mode .nav-link-image {
  color: #555;
}

.nav-link-container {
  grid-column-gap: 12px;
  grid-row-gap: 12px;
  color: #a8a8a8;
  text-transform: capitalize;
  border: 1px solid rgba(0, 0, 0, 0);
  border-radius: 8px;
  justify-content: flex-start;
  align-items: center;
  padding: 12px;
  text-decoration: none;
  display: flex;
}

.nav-link-container.w--current {
  color: #fff;
  background-color: #2b2b2b;
  border-color: #353535;
}

.projects-container {
  grid-column-gap: 24px;
  grid-row-gap: 24px;
  align-items: stretch;
  text-decoration: none;
  display: flex;
}

.single-projects-category {
  display: flex;
}

.projects-category-image-container {
  min-height: 180px;
  min-width: 180px;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  background-color: rgba(53, 53, 53, 0.12);
  border: 1px #000;
  border-radius: 12px;
  justify-content: center;
  align-items: center;
  display: flex;
  box-shadow: 0 1px 1px rgba(255, 255, 255, 0.24), 0 -1px 1px rgba(255, 255, 255, 0.24);
}

.projects-category-image-container.devops-img {
  background-image: none;
  background-position: 0 0;
}

.single-projects-content {
  flex-direction: column;
  justify-content: center;
  display: flex;
}

.projects-section {
  grid-column-gap: 32px;
  grid-row-gap: 32px;
  flex-direction: column;
  display: flex;
}

.tech-tools-container {
  flex-direction: column;
  justify-content: flex-end;
  display: flex;
}

.back-nav-container {
  color: #fff;
  letter-spacing: 2px;
  text-transform: uppercase;
  align-items: center;
  padding-bottom: 0;
  font-weight: 500;
  display: flex;
}

.back-nav-img {
  width: 18px;
  color: #fff;
}

html.light-mode .back-nav-img {
  color: #111;
}

.back-nav-button {
  color: #fff;
  background-color: rgba(0, 0, 0, 0);
  border-radius: 8px;
  margin-top: -12px;
  padding: 12px 16px;
  text-decoration: none;
  transition: all 0.12s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.back-nav-button:hover {
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  background-color: rgba(8, 8, 8, 0.24);
}

.project-desc {
  color: #a8a8a8;
  line-height: 24px;
}

.project-desc.project-desc-list {
  margin-left: -24px;
}

.content-container {
  grid-column-gap: 32px;
  grid-row-gap: 32px;
  flex-direction: column;
  display: flex;
}

.projects-category-image {
  width: 82px;
  height: 82px;
}

/* Card List Section */
.section-title {
  display: flex;
  align-items: center;
  color: #fff;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 24px;
}

.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: #353535;
  margin-left: 16px;
}

.card-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-bottom: 32px;
}

.card-list>.card {
  width: 100%;
  max-width: 320px;
  min-width: 250px;
  flex: 1 1 250px;
}

.carousel-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 0 64px;
  /* Sufficient room for the 52px buttons */
}

@media screen and (max-width: 991px) {
  .carousel-wrapper {
    padding: 0 40px;
  }
}

@media screen and (max-width: 480px) {
  .carousel-wrapper {
    padding: 0 32px;
  }
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  background-color: rgba(28, 28, 28, 0.85);
  border: 1px solid #444;
  border-radius: 50%;
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  user-select: none;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.carousel-btn:hover {
  background-color: #353535;
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
  left: 8px;
  /* Positioned within the 64px padding gutter */
}

.carousel-btn.next {
  right: 8px;
  /* Positioned within the 64px padding gutter */
}

html.light-mode .carousel-btn {
  background-color: rgba(255, 255, 255, 0.8);
  border-color: #ddd;
  color: #111;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

html.light-mode .carousel-btn:hover {
  background-color: #f0f0f0;
}

@media screen and (max-width: 991px) {
  .carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .carousel-btn.prev {
    left: 4px;
  }

  .carousel-btn.next {
    right: 4px;
  }
}

.carousel-track {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 24px;
  padding: 16px 4px;
  /* Added some padding for card shadows */
  margin-bottom: 32px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  /* Restore scrollbar Firefox */
  scrollbar-color: #555 transparent;
  scroll-behavior: smooth;
}

.carousel-track::-webkit-scrollbar {
  display: block;
  /* Restore scrollbar Chrome/Safari */
  height: 6px;
}

.carousel-track::-webkit-scrollbar-track {
  background: transparent;
}

.carousel-track::-webkit-scrollbar-thumb {
  background-color: #555;
  border-radius: 10px;
}

html.light-mode .carousel-track {
  scrollbar-color: #ccc transparent;
}

html.light-mode .carousel-track::-webkit-scrollbar-thumb {
  background-color: #ccc;
}

.carousel-track>.card {
  flex: 0 0 320px;
  scroll-snap-align: start;
}

@media screen and (max-width: 768px) {
  .carousel-track>.card {
    flex: 0 0 280px;
  }
}

@media screen and (max-width: 480px) {
  .carousel-track>.card {
    flex: 0 0 240px;
  }
}

.card {
  background-color: #2b2b2b;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.card-image-container {
  width: 100%;
  aspect-ratio: 4/3;
  background-color: #353535;
  border-radius: 8px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card-image-container svg,
.card-image-container img {
  width: 86px;
  height: 86px;
  opacity: 0.8;
  color: #a8a8a8;
}

html.light-mode .card-image-container svg,
html.light-mode .card-image-container img {
  color: #333;
}

.card-title {
  color: #fff;
  font-size: 18px;
  margin-bottom: 12px;
  font-weight: bold;
}

.card-desc {
  color: #a8a8a8;
  font-size: 14px;
  line-height: 22px;
  margin-bottom: 16px;
  flex-grow: 1;
}

.card-link {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
  transition: opacity 0.15s ease-in-out;
}

.card-link:hover {
  text-decoration: underline;
  opacity: 0.8;
}

@media screen and (max-width: 991px) {
  .content {
    flex-direction: column;
  }

  .sidebar {
    height: auto;
    max-width: 100%;
    padding-top: 18px;
    padding-bottom: 18px;
    padding-right: 28px;
  }

  .nav-content {
    height: auto;
    grid-column-gap: 0px;
    grid-row-gap: 0px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .w-nav-menu {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    background-color: #1c1c1c;
  }

  .w-nav-menu.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .fold-content {
    margin-bottom: 32px;
  }

  .nav-link-container {
    background-color: #1c1c1c;
    border-radius: 0;
    padding: 18px 28px 18px 32px;
  }

  .nav-link-container:active {
    color: #fff;
    background-color: #2b2b2b;
  }

  .navbar-icon {
    width: 32px;
    height: 32px;
    color: #fff;
  }

  html.light-mode .navbar-icon {
    color: #111;
  }

  .navbar-icon-button {
    padding: 12px;
    transition: all 0.24s;
  }
}

@media screen and (max-width: 767px) {
  h1 {
    font-size: 54px;
    line-height: 64px;
  }

  h4 {
    font-size: 32px;
    font-weight: 300;
    line-height: 48px;
  }

  .sidebar {
    padding-left: 24px;
    padding-right: 18px;
  }

  .main {
    padding-left: 28px;
    padding-right: 28px;
  }

  .container {
    grid-column-gap: 68px;
    grid-row-gap: 68px;
  }

  .fold-content {
    margin-bottom: 24px;
  }

  .nav-link-container {
    padding-left: 24px;
    padding-right: 18px;
  }

  .projects-container {
    flex-direction: column;
  }

  .projects-category-image-container {
    min-height: 124px;
    min-width: 124px;
    margin-bottom: -42px;
    position: relative;
  }

  .single-projects-content {
    position: relative;
    top: 1.75rem;
  }

  .projects-section {
    grid-column-gap: 68px;
    grid-row-gap: 68px;
  }

  .projects-category-image {
    width: 64px;
    height: 64px;
  }
}

/* Light Mode Overrides for Main Content (preserving Sidebar as dark) */
html.light-mode body {
  background-color: #fafafa;
}

html.light-mode .main {
  background-image: linear-gradient(rgba(250, 250, 250, 0.95), rgba(250, 250, 250, 0.95)), linear-gradient(rgba(250, 250, 250, 0.8), rgba(250, 250, 250, 0.8));
  background-color: #f7f7f7;
}

html.light-mode .main h1,
html.light-mode .main h3,
html.light-mode .main h4,
html.light-mode .main .lead,
html.light-mode .main .mini-label-white:not(.gray-color),
html.light-mode .main .back-nav-container {
  color: #111;
}

html.light-mode .main p,
html.light-mode .main .project-desc,
html.light-mode .main .label-gray {
  color: #555;
}

html.light-mode .main .single-chip {
  color: #222;
  background-color: #e8e8e8;
}

html.light-mode .main .carousel-track {
  scrollbar-color: #ccc transparent;
}

html.light-mode .main .carousel-track::-webkit-scrollbar-thumb {
  background-color: #ccc;
}

html.light-mode .main .button {
  color: #222;
  background-color: #fff;
  border: 1px solid #ccc;
  border-right-color: #bbb;
}

html.light-mode .main .button:hover {
  background-color: #f0f0f0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

html.light-mode .main .projects-category-image-container {
  background-color: rgba(255, 255, 255, 0.8);
  border: 1px solid #e0e0e0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

html.light-mode .main .back-nav-button {
  color: #111;
}

html.light-mode .main .back-nav-button:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

/* Light mode overrides for cards */
html.light-mode .main .section-title {
  color: #111;
}

html.light-mode .main .section-title::after {
  background-color: #e0e0e0;
}

html.light-mode .main .card {
  background-color: rgba(255, 255, 255, 0.8);
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

html.light-mode .main .card-image-container {
  background-color: #e8e8e8;
}

html.light-mode .main .card-title {
  color: #111;
}

html.light-mode .main .card-desc {
  color: #555;
}

html.light-mode .main .card-link {
  color: #333;
}

/* Accordion Section */
.process-accordion-section {
  margin-bottom: 64px;
}

.accordion-container {
  background-color: #2b2b2b;
  border-radius: 12px;
  padding: 8px 24px;
}

.accordion-item {
  border-bottom: 1px solid #353535;
  padding: 16px 0;
  margin-bottom: 0;
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  list-style: none;
  /* Hide default triangle */
  padding: 8px 0;
}

/* Hide native default arrow in webkit */
.accordion-header::-webkit-details-marker {
  display: none;
}

html.light-mode .accordion-header {
  color: #111;
}

html.light-mode .accordion-container {
  background-color: rgba(255, 255, 255, 0.8);
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

html.light-mode .accordion-item {
  border-bottom: 1px solid #e0e0e0;
}

.accordion-icon {
  width: 24px;
  height: 24px;
  transition: transform 0.2s ease;
  fill: currentColor;
}

details[open] .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  padding: 16px 0 8px 0;
  font-size: 16px;
  line-height: 26px;
  color: #a8a8a8;
}

html.light-mode .accordion-content {
  color: #555;
}

.accordion-content img {
  margin-top: 16px;
  max-width: 64px;
  display: block;
  opacity: 0.8;
}

/* Timeline Components */
.timeline-container {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 320px 0;
  display: block;
  scrollbar-width: none;
}

.timeline-container::-webkit-scrollbar {
  display: none;
}

.timeline-track {
  display: flex;
  position: relative;
  width: 100%;
  max-width: 1200px;
  min-width: 1000px;
  margin: 0 auto;
  align-items: center;
  padding: 0 40px;
}

.timeline-track::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 40px;
  right: 40px;
  height: 2px;
  background: #353535;
  transform: translateY(-50%);
  z-index: 0;
}

.timeline-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.timeline-dot {
  width: 16px;
  height: 16px;
  background-color: #555;
  border: 4px solid #141414;
  border-radius: 50%;
  flex-shrink: 0;
  z-index: 2;
  transition: all 0.3s;
}

.timeline-step:hover .timeline-dot {
  background-color: #fff;
  transform: scale(1.2);
}

.timeline-content {
  width: 240px;
  background: rgba(40, 40, 40, 0.4);
  border: 1px solid #353535;
  padding: 24px;
  border-radius: 12px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: all 0.3s ease;
}

.timeline-step:hover .timeline-content {
  background: rgba(70, 70, 70, 0.85);
  border-color: #888;
}

.timeline-step:hover .timeline-content::after {
  background: rgba(70, 70, 70, 1);
  border-color: #888;
}

.timeline-title {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.timeline-desc {
  color: #a8a8a8;
  font-size: 14px;
  line-height: 1.6;
}

.timeline-step:nth-child(even) .timeline-content {
  bottom: calc(50% + 24px);
}

.timeline-step:nth-child(even) .timeline-content::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: rgba(40, 40, 40, 1);
  border-bottom: 1px solid #353535;
  border-right: 1px solid #353535;
}

.timeline-step:nth-child(odd) .timeline-content {
  top: calc(50% + 24px);
}

.timeline-step:nth-child(odd) .timeline-content::after {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: rgba(40, 40, 40, 1);
  border-top: 1px solid #353535;
  border-left: 1px solid #353535;
}

.timeline-number {
  position: absolute;
  top: -12px;
  right: 12px;
  font-size: 48px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

html.light-mode .timeline-content {
  background: rgba(240, 240, 240, 0.8);
  border-color: #ddd;
}

html.light-mode .timeline-step:nth-child(even) .timeline-content::after {
  background: rgb(240, 240, 240);
  border-bottom: 1px solid #ddd;
  border-right: 1px solid #ddd;
}

html.light-mode .timeline-step:nth-child(odd) .timeline-content::after {
  background: rgb(240, 240, 240);
  border-top: 1px solid #ddd;
  border-left: 1px solid #ddd;
}

html.light-mode .timeline-title {
  color: #111;
}

html.light-mode .timeline-desc {
  color: #444;
}

html.light-mode .timeline-track::before {
  background: #ddd;
}

html.light-mode .timeline-number {
  color: rgba(0, 0, 0, 0.05);
}

html.light-mode .timeline-step:hover .timeline-content {
  background: #ffffff;
  border-color: #bbb;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

html.light-mode .timeline-step:hover .timeline-content::after {
  background: #ffffff;
  border-color: #bbb;
}

/* Bento Box Grid System */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 24px;
  width: 100%;
}

.bento-box {
  background: rgba(40, 40, 40, 0.4);
  border: 1px solid #353535;
  border-radius: 24px;
  padding: 32px;
  transition: transform 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.bento-box:hover {
  transform: translateY(-4px);
  border-color: #555;
  background: rgba(50, 50, 50, 0.6);
}

.bento-bio {
  grid-column: span 3;
  grid-row: span 2;
}

.bento-cv {
  grid-column: span 1;
  grid-row: span 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.bento-contact {
  grid-column: span 1;
  grid-row: span 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}

.bento-skills {
  grid-column: span 4;
  grid-row: span 1;
}

.bento-fun-facts {
  grid-column: span 2;
  grid-row: span 1;
}

.bento-tastes {
  grid-column: span 1;
  grid-row: span 1;
}

.bento-education {
  grid-column: span 1;
  grid-row: span 1;
}

.bento-ux-approach {
  grid-column: span 2;
  grid-row: span 2;
}

.bento-ux-gamification {
  grid-column: span 2;
  grid-row: span 1;
}

.bento-ux-eng {
  grid-column: span 2;
  grid-row: span 1;
}

.bento-ux-ai {
  grid-column: span 4;
  grid-row: span 1;
}

/* Disable hover effects for specific sections */
.bento-no-hover .bento-box:hover {
  transform: none;
  border-color: #353535;
  background: rgba(40, 40, 40, 0.4);
}

html.light-mode .bento-no-hover .bento-box:hover {
  border-color: #ddd;
  background: rgba(240, 240, 240, 0.8);
}

.bento-title,
.bento-title * {
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bento-bio h2.bento-title {
  font-size: 32px;
  margin-bottom: 24px;
}

.bento-text,
.bento-text * {
  color: #a8a8a8;
  font-size: 16px;
  line-height: 1.6;
}

.bento-bio .bento-text {
  font-size: 18px;
  line-height: 1.8;
}

.bento-text strong {
  color: #fff;
  font-weight: 600;
}

.bento-text p {
  margin-bottom: 16px;
}

.bento-text p:last-child {
  margin-bottom: 0;
}

.bento-link {
  background: rgba(255, 255, 255, 0.05);
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #353535;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  transition: background 0.2s;
  font-weight: 600;
}

.bento-link:hover {
  background: rgba(255, 255, 255, 0.1);
}

.bento-icon {
  width: 24px;
  color: #a8a8a8;
}

html.light-mode .bento-icon {
  color: #333;
}

/* Light mode support for Bento */
html.light-mode .bento-box {
  background: rgba(240, 240, 240, 0.8);
  border-color: #ddd;
}

html.light-mode .bento-box:hover {
  border-color: #bbb;
  background: rgba(255, 255, 255, 0.9);
}

html.light-mode .bento-title,
html.light-mode .bento-title * {
  color: #111;
}

html.light-mode .bento-text,
html.light-mode .bento-text * {
  color: #444;
}

html.light-mode .bento-text strong {
  color: #111;
}

html.light-mode .bento-link {
  background: rgba(0, 0, 0, 0.05);
  border-color: #ddd;
  color: #111;
}

html.light-mode .bento-link:hover {
  background: rgba(0, 0, 0, 0.1);
}

/* Removed redundant bento-icon filter */

@media screen and (max-width: 991px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-bio,
  .bento-contact,
  .bento-cv,
  .bento-skills,
  .bento-fun-facts,
  .bento-tastes,
  .bento-education,
  .bento-ux-approach,
  .bento-ux-gamification,
  .bento-ux-eng,
  .bento-ux-ai {
    grid-column: span 2;
    grid-row: auto;
  }

  /* Responsive Timeline Overrides */
  .timeline-container {
    padding: 60px 0;
    overflow-x: hidden;
  }

  .timeline-track {
    flex-direction: column;
    min-width: 0;
    max-width: 100%;
    gap: 40px;
    padding: 0 48px;
    align-items: flex-start;
  }

  .timeline-track::before {
    top: 0;
    bottom: 0;
    left: 48px;
    right: auto;
    width: 2px;
    height: 100%;
    transform: none;
  }

  .timeline-step {
    flex: none;
    width: 100%;
    align-items: flex-start;
    padding-left: 32px;
  }

  .timeline-dot {
    position: absolute;
    left: -8px;
    top: 24px;
    margin-left: 0;
  }

  .timeline-content {
    position: relative;
    left: 0;
    width: 100%;
    max-width: none;
    transform: none;
  }

  .timeline-step:nth-child(even) .timeline-content,
  .timeline-step:nth-child(odd) .timeline-content {
    top: auto;
    bottom: auto;
  }

  /* Arrow Overrides for Vertical Layout */
  .timeline-step:nth-child(even) .timeline-content::after,
  .timeline-step:nth-child(odd) .timeline-content::after {
    top: 24px;
    left: -6px;
    bottom: auto;
    right: auto;
    transform: rotate(45deg);
    border: none;
    border-left: 1px solid #353535;
    border-bottom: 1px solid #353535;
  }

  html.light-mode .timeline-step:nth-child(even) .timeline-content::after,
  html.light-mode .timeline-step:nth-child(odd) .timeline-content::after {
    border-left: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
  }
}

@media screen and (max-width: 767px) {
  .bento-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .bento-bio,
  .bento-contact,
  .bento-cv,
  .bento-skills,
  .bento-fun-facts,
  .bento-tastes,
  .bento-education,
  .bento-ux-approach,
  .bento-ux-gamification,
  .bento-ux-eng,
  .bento-ux-ai {
    grid-column: span 1;
    grid-row: auto;
  }

  .bento-contact {
    flex-direction: column;
  }

  /* Extreme mobile adjustments for timeline */
  .timeline-track {
    padding: 0 24px;
  }

  .timeline-track::before {
    left: 24px;
  }

  .timeline-step {
    padding-left: 24px;
  }
}

/* Image Modal (Lightbox) Styles */
.image-modal {
  display: none;
  /* Hidden by default */
  position: fixed;
  z-index: 20000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
  overflow: hidden;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-modal.show {
  display: flex;
  opacity: 1;
}

.image-modal-content {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 32px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.image-modal.show .image-modal-content {
  transform: scale(1);
}

.close-modal {
  position: absolute;
  top: 32px;
  right: 32px;
  color: #fff;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
  transition: transform 0.2s ease;
  user-select: none;
}

.close-modal:hover {
  transform: scale(1.2);
}

html.light-mode .close-modal {
  color: #fff;
  /* Keep white over the dark overlay */
}

/* Make images in carousel clickable */
.card-image-container img {
  cursor: zoom-in;
  transition: transform 0.2s ease;
}

.card-image-container img:hover {
  transform: scale(1.1);
}