@font-face {
  font-family: 'Unispace';
  src: url('../fonts/unispace/unispace-regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Unispace';
  src: url('../fonts/unispace/unispace-bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/*======================================
//--//-->   ABOUT
======================================*/

.about-mf .box-shadow-full {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.about-mf .about-img {
  margin-bottom: 2rem;
}

.about-mf .about-img img {
  margin-left: 10px;
}


.skill-mf .progress {
  /* background-color: #cde1f8; */
  margin: .5rem 0 1.2rem 0;
  border-radius: 0;
  height: .7rem;
}

.skill-mf .progress .progress-bar {
  height: .7rem;
  background-color: #ffbd39;
}

.about-me-centered {
  position: relative;
  margin-left: auto;
  margin-right: auto;
}

.about-me-centered h2.mb-4 {
  color: #fff;
  font-size: 2.5rem;
  font-weight: 700;
}

.about-me-centered h1.big {
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  pointer-events: none;
}

.about-me-copy {
  max-width: 820px;
  margin: 0 auto 1.5rem;
  text-align: justify;
  text-align-last: center;
  line-height: 1.75;
}

.about-me-centered .about-info {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.technical-skills {
  margin-top: 3.5rem;
}

.technical-skills-title {
  margin: 0 0 1.5rem;
  color: #fff;
  font-size: 1.75rem;
  font-weight: 700;
  font-family: 'Unispace', 'Consolas', monospace;
}

.skill-tag-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
  margin-top: 0;
}

.skill-tag-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.35rem 1.25rem;
  background: #0d0d0d;
  border: 1px solid #1a1a1a;
  border-radius: 10px;
}

@media (max-width: 991.98px) {
  .skill-tag-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .skill-tag-grid {
    grid-template-columns: 1fr;
  }

  .about-me-copy {
    text-align-last: left;
  }
}

.skill-tag-group h4 {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffbd39;
  font-family: 'Unispace', 'Consolas', monospace;
  margin-bottom: 0.75rem;
}

.skill-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.skill-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid rgba(240, 149, 39, 0.4);
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.5);
  color: #f5f7fa;
  font-size: 0.75rem;
  line-height: 1.2;
  font-family: 'Unispace', 'Consolas', monospace;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.25s ease;
}

.skill-tag:hover {
  border-color: rgba(240, 149, 39, 0.95);
  background: rgba(240, 149, 39, 0.1);
  color: #ffbd39;
  box-shadow: 0 0 8px rgba(240, 149, 39, 0.3);
}


/* Animation styles */
#typing-animation {
  position: relative;
  font-size: 30px;
  font-weight: bold;
  color: rgb(255, 255, 255);
  overflow: hidden;
  white-space: nowrap;
  animation: typing 3s steps(20, end) infinite;
}

#typing-animation:before {
  content: "";
  /* position: absolute; */
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: #ccc;
  animation: typing-cursor 0.5s ease-in-out infinite;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes typing-cursor {
  from {
    width: 5px;
  }
  to {
    width: 0;
  }
}


/* project image zoom effect */

.zoom-effect {
  overflow: hidden;
  transition: transform 0.3s ease-out;
}

.zoom-effect:hover {
  transform: scale(1.1);
}


/* All content sits on top */
/* Override body background from style.css */
body {
  background: #010408 !important;
  font-family: 'Unispace', 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace !important;
  color: #f5f7fa !important;
  background-color: #010408 !important;
}

body,
button,
input,
textarea,
select,
label,
nav,
section,
h1,
h2,
h3,
h4,
h5,
h6,
p,
li,
a,
span,
div {
  font-family: 'Unispace', 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

.site-content {
  position: relative;
  z-index: 1;
}

/*======================================
//--//-->   HERO SECTION
======================================*/
html {
  scroll-behavior: smooth;
}

#home-section {
  position: relative;
  min-height: 100vh;
  background: rgba(1, 4, 8, 0.85);
  padding: 0;
  margin: 0;
  overflow: hidden;
  z-index: 0;
}

#matrix-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
  display: block;
}

#theme-container {
  position: absolute;
  top: 0;
  right: 0;
  width: 450px;
  height: 450px;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

#theme-container canvas {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-left-side,
.hero-right-side,
.hero-nav,
.hero-hello,
.hero-title-wrapper,
.hero-bottom-row,
.hero-bottom-left,
.hero-bottom-right,
.terminal-frame,
.hero-btn,
.telemetry-widget,
#animated-hero-title,
.tagline-wrapper,
.hero-picture,
.hero-iframe {
  position: relative;
  z-index: 2;
}

.hero-left-side {
  padding: 40px 0 40px 0;
  color: #fff;
  max-width: none;
  width: auto;
  flex: 1;
  min-width: 0;
  position: relative;
}

.hero-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.hero-nav a {
  position: relative;
  color: #fff;
  text-decoration: none;
  padding: 8px 16px;
  z-index: 1;
  font-family: 'Unispace', 'Consolas', monospace;
}

@supports (-webkit-background-clip: text) or (background-clip: text) {
  .hero-nav a {
    background: linear-gradient(to right, #ffbd39 50%, #fff 50%);
    background-size: 200% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    transition: background-position 0.2s ease 0s;
  }
  .hero-nav a:hover {
    background-position: 0 0;
    transition: background-position 0.2s ease 0.6s;
  }
  .hero-nav a.active {
    background-position: 0 0;
  }
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero-nav a {
    transition: color 0.2s ease 0s;
  }
  .hero-nav a:hover {
    color: #ffbd39;
    transition: color 0.2s ease 0.6s;
  }
  .hero-nav a.active {
    color: #ffbd39;
  }
}

.hero-nav a::before,
.hero-nav a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  box-sizing: border-box;
}

.hero-nav a::before {
  top: 0;
  left: 0;
  border-top: 2px solid transparent;
  border-right: 2px solid transparent;
  transition: border-color 0s ease-out 0.6s, height 0.15s ease-out 0.3s, width 0.15s ease-out 0.45s;
}

.hero-nav a::after {
  bottom: 0;
  right: 0;
  border-bottom: 2px solid transparent;
  border-left: 2px solid transparent;
  transition: border-color 0s ease-out 0.6s, height 0.15s ease-out 0s, width 0.15s ease-out 0.15s;
}

.hero-nav a:hover::before {
  width: 100%;
  height: 100%;
  border-top-color: #ffbd39;
  border-right-color: #ffbd39;
  transition: border-color 0s ease-out 0s, width 0.15s ease-out 0s, height 0.15s ease-out 0.15s;
}

.hero-nav a:hover::after {
  width: 100%;
  height: 100%;
  border-bottom-color: #ffbd39;
  border-left-color: #ffbd39;
  transition: border-color 0s ease-out 0.3s, width 0.15s ease-out 0.3s, height 0.15s ease-out 0.45s;
}

.hero-hello {
  font-size: 18px;
  color: #ffbd39;
  letter-spacing: 2px;
}

.hero-title {
  font-family: 'Unispace', monospace !important;
  font-size: 55px;
  font-weight: 700;
  margin: 20px 0 10px 0;
  color: #fff;
  word-break: break-word;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

#animated-hero-title {
  font-family: 'Unispace', monospace !important;
}

.hero-title span {
  color: #ffbd39;
}

/* Fixed-height wrapper: reserves space equal to one line of hero-title
   (55px font * ~1.2 line-height ≈ 66px) + top/bottom margins (20px+10px).
   This stops surrounding content from reflowing as the h1 is replaced
   by shorter text during the intro animation phases.               */
.hero-title-wrapper {
  min-height: 96px; /* 66px line + 30px margin = 96px */
  display: block;
}

/* Fixed-height wrapper for the scrambling tagline (#typing-animation).
   font-size: 30px, line-height: ~1.4 → rendered line ≈ 42px.
   margin-bottom: 10px → total reserved: 52px.
   The span inside is never display:none, so visibility:hidden is used
   by the JS when empty; the block itself always holds its space.    */
.tagline-wrapper {
  min-height: 52px;       /* 30px * 1.4 lh + 10px mb */
  width: 100%;
  display: block;
  margin-bottom: 10px;
  font-size: 30px;
  font-weight: bold;
  color: #fff;
  line-height: 1.4;
  /* overflow: hidden keeps scramble characters from jutting outside */
  overflow: hidden;
}

.hero-btn {
  display: inline-block;
  padding: 12px 30px;
  background: rgba(5, 5, 5, 0.8);
  color: #ffbd39 !important;
  font-family: 'Unispace', 'Consolas', monospace;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid #ffbd39;
  border-radius: 0;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  box-shadow: inset 0 0 10px rgba(255, 189, 57, 0.2);
  transition: all 0.3s ease;
  margin-bottom: 1.25rem;
  position: relative;
}

.hero-btn:hover {
  background: rgba(255, 189, 57, 0.1);
  box-shadow: inset 0 0 15px rgba(255, 189, 57, 0.6);
  text-shadow: 0 0 5px #ffbd39;
  animation: matrix-flicker 0.15s infinite alternate;
}

.telemetry-widget {
  width: 360px;
  max-width: 100%;
  box-sizing: border-box;
  flex-shrink: 0;
  padding: 0.9rem 1rem 0.8rem;
  background: rgba(10, 14, 18, 0.7);
  border: 1px solid rgba(240, 149, 39, 0.4);
  box-shadow: 0 0 18px rgba(240, 149, 39, 0.12);
  color: #f2b75d;
  font-family: 'Unispace', 'Consolas', monospace;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.6;
}

.telemetry-header {
  color: #ffbd39;
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.telemetry-line {
  font-size: 0.72rem;
  color: rgba(255, 189, 57, 0.9);
  white-space: normal;
  word-break: break-word;
}

@keyframes matrix-flicker {
  0% { 
    opacity: 0.9; 
    box-shadow: inset 0 0 12px rgba(255, 189, 57, 0.4); 
    text-shadow: 0 0 4px #ffbd39; 
  }
  100% { 
    opacity: 1; 
    box-shadow: inset 0 0 25px rgba(255, 189, 57, 0.9); 
    text-shadow: 0 0 10px #ffbd39, 0 0 20px #ffbd39; 
  }
}

/* ==================================
   Hero Bottom Section Layout
   ================================== */
.hero-bottom-row {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  position: relative;
}

.hero-bottom-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  min-width: 0;
}

.hero-bottom-right {
  position: absolute;
  bottom: 0;
  right: -280px;
  width: auto;
  display: flex;
  align-items: flex-end;
}

/* ==================================
   Hero Photo
   ================================== */
.terminal-frame {
  width: 240px;
  background: #000;
  border: 1px solid rgba(255, 189, 57, 0.5);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 189, 57, 0.12);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.terminal-frame.is-visible {
  visibility: visible;
  opacity: 1;
}

.terminal-header {
  height: 24px;
  background: #1a1a1a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
}

.terminal-dots {
  display: flex;
  align-items: center;
  gap: 5px;
}

.terminal-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: block;
}

.dot.red { background: #ff5f56; }
.dot.amber { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.terminal-title {
  font-family: 'Unispace', 'Consolas', monospace;
  font-size: 9px;
  color: #9b9b9b;
  letter-spacing: 0.4px;
}

.terminal-body {
  background: #000;
  line-height: 0;
  min-height: 0;
}

.photo-glitch-wrap {
  position: relative;
  width: 240px;
  height: 290px;
  overflow: hidden;
  flex-shrink: 0;
  background: #000;
}

.hero-picture {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-picture.base {
  position: relative;
  z-index: 0;
}

.photo-tile {
  position: absolute;
  display: block;
  background: #000;
  z-index: 2;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.08s linear;
}

.photo-tile.is-cleared {
  opacity: 0;
}

@media (max-width: 768px) {
  .hero-bottom-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
    margin-top: 20px;
  }
  .hero-bottom-right {
    position: relative;
    right: auto;
    bottom: auto;
    margin: 0;
  }
  #home-section {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: 60px;
  }
  #home-section .container.h-100, 
  #home-section .row.h-100 {
    height: auto !important;
  }
}

.hero-right-side {
  display: none;
}

.hero-iframe {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  border: none;
  pointer-events: none;
  background: transparent;
}

/*======================================
//--//-->   INTRO ANIMATION
======================================*/
.typing-text, .cursor {
    font-family: 'Unispace', 'Consolas', monospace;
    font-size: 38.5px; /* 30% smaller than the 55px title */
    line-height: 1;
    vertical-align: middle;
}

.cursor {
    animation: blink 1s step-end infinite;
}
@keyframes blink {
    50% { opacity: 0; }
}

.enter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38.5px; /* Exactly matches the line-height of the typing text */
    box-sizing: border-box;
    padding: 0 12px;
    margin-left: 15px;
    background: #333;
    border: 2px solid #555;
    border-radius: 6px;
    color: #fff;
    font-size: 20px;
    font-family: 'Unispace', 'Consolas', monospace;
    box-shadow: 0 4px 0 #111;
    transition: transform 0.1s, box-shadow 0.1s;
    vertical-align: middle;
}
.enter-btn.pressed {
    transform: translateY(4px);
    box-shadow: 0 0px 0 #111;
}

.drop-char {
    display: inline-block;
    opacity: 0;
    animation-name: bounceDrop;
    animation-fill-mode: forwards;
    white-space: pre; /* preserve spaces */
}

@keyframes bounceDrop {
    0% {
        opacity: 0;
        transform: translateY(-300px) scaleY(1.2);
    }
    40% {
        opacity: 1;
        transform: translateY(20px) scaleY(0.8);
    }
    65% {
        transform: translateY(-15px) scaleY(1.05);
    }
    85% {
        transform: translateY(5px) scaleY(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scaleY(1);
    }
}

/*======================================
//--//-->   RESEARCH PAPERS
======================================*/
.paper-card-row {
  align-items: flex-start;
}

.paper-card {
  width: 100%;
  background: #0d0d0d;
  border: 1px solid #1a1a1a;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.paper-card-toggle {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  width: 100%;
  margin: 0;
  padding: 1.2rem 1.15rem;
  background: transparent;
  border: 0;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.paper-card-toggle:focus-visible {
  outline: 1px solid #ffbd39;
  outline-offset: -2px;
}

.pdf-file-icon {
  position: relative;
  flex-shrink: 0;
  width: 34px;
  height: 42px;
  background: #050505;
  border: 1px solid rgba(255, 189, 57, 0.55);
  box-shadow: inset 0 0 8px rgba(255, 189, 57, 0.08);
}

.pdf-file-icon-fold {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 10px;
  height: 10px;
  background: #0d0d0d;
  border-left: 1px solid rgba(255, 189, 57, 0.55);
  border-bottom: 1px solid rgba(255, 189, 57, 0.55);
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}

.pdf-file-icon-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  text-align: center;
  font-size: 8px;
  letter-spacing: 0.12em;
  color: #ffbd39;
  font-family: 'Unispace', 'Consolas', monospace;
}

/* IPYNB badge - distinct color for Jupyter notebooks */
/* IPYNB badge - distinct color for Jupyter notebooks */
.pdf-file-icon-label.ipynb-badge {
  color: #4ecdc4;
}

/* IPYNB icon frame styling - distinct teal border for notebooks */
.pdf-file-icon.ipynb-icon {
  border-color: rgba(78, 205, 196, 0.55);
  box-shadow: inset 0 0 8px rgba(78, 205, 196, 0.08);
}

.pdf-file-icon.ipynb-icon .pdf-file-icon-fold {
  border-left-color: rgba(78, 205, 196, 0.55);
  border-bottom-color: rgba(78, 205, 196, 0.55);
}

.paper-card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
}

.paper-card-title {
  font-size: 0.92rem;
  line-height: 1.35;
  color: #fff;
  font-family: 'Unispace', 'Consolas', monospace;
}

.paper-card-tag {
  align-self: flex-start;
  padding: 3px 8px;
  border: 1px solid rgba(240, 149, 39, 0.4);
  background: rgba(0, 0, 0, 0.5);
  color: #ffbd39;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: 'Unispace', 'Consolas', monospace;
}

.paper-card-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.paper-card-body-inner {
  padding: 0 1.15rem 1.25rem;
}

.paper-card-body-inner p {
  margin: 0 0 1rem;
  color: #f5f7fa;
  font-size: 0.82rem;
  line-height: 1.65;
}

.paper-pdf-btn {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(5, 5, 5, 0.8);
  color: #ffbd39 !important;
  font-family: 'Unispace', 'Consolas', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid #ffbd39;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  box-shadow: inset 0 0 8px rgba(255, 189, 57, 0.2);
  transition: all 0.3s ease;
}

.paper-pdf-btn:hover {
  background: rgba(255, 189, 57, 0.1);
  box-shadow: inset 0 0 12px rgba(255, 189, 57, 0.6);
  text-shadow: 0 0 5px #ffbd39;
}

@media (max-width: 767.98px) {
  .paper-card-row > [class*="col-"] {
    margin-bottom: 1rem;
  }
}

/*======================================
//--//-->   CONTACT
======================================*/
.contact-section {
  position: relative;
  z-index: 2;
}

#contact-section .heading-section p {
  margin-bottom: 0.5rem;
}

#contact-section .heading-section h2,
#contact-section .heading-section p,
#contact-section .contact-info .box,
#contact-section .contact-info .box h3,
#contact-section .contact-info .box p {
  color: #f5f7fa !important;
  font-size: 14px;
}

#contact-section .contact-info p a {
  color: #f5f7fa !important;
}

#contact-section .contact-info p a:hover {
  color: #ffbd39 !important;
}

#contact-section .contact-info .box {
  padding: 1rem 0;
  background: transparent;
  border: none;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#contact-section .contact-info .icon-container {
  width: 100px;
  height: 100px;
  background: #1a1a1a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
}

#contact-section .contact-info .icon-container svg {
  width: 32px;
  height: 32px;
  color: #ffbd39;
}

#contact-section .contact-info .box h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #fff !important;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
}

#contact-section .ftco-footer-social {
  margin-top: 0.5rem;
  padding-bottom: 1rem;
}

#contact-section .ftco-footer-social li {
  color: #f5f7fa !important;
}

.ftco-footer-social li a.social-logo-link {
  height: 28px;
  width: 28px;
  float: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 0;
}

.ftco-footer-social li a.social-logo-link img {
  height: 28px;
  width: 28px;
  display: block;
  object-fit: contain;
}

/* Footer */
.ftco-footer {
  background: #000 !important;
  position: relative;
  z-index: 2;
  padding: 0.5em 0 !important;
  font-size: 13px;
}

.ftco-footer p,
.ftco-footer a {
  color: rgba(255, 255, 255, 0.7) !important;
}

/*======================================
//--//--> BOOT SEQUENCE OVERLAY
======================================*/

/* Lock scroll while overlay is active */
body.boot-active {
  overflow: hidden;
}

/* Full-screen overlay panel */
#boot-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #010408;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 0 0 10vh 8vw;
  pointer-events: all;
}

/* Log container — sliding window that keeps only recent lines visible */
#boot-log {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: calc(8 * 1.6em);   /* show at most 8 lines */
  width: 100%;
  max-width: 700px;
}

/* Individual boot line */
.boot-line {
  font-family: 'Unispace', 'Consolas', 'SFMono-Regular', monospace;
  font-size: clamp(0.78rem, 1.45vw, 0.98rem);
  line-height: 1.6;
  color: #F09527;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.1s ease, transform 0.1s ease;
  flex-shrink: 0;
}

.boot-line.visible {
  opacity: 1;
  transform: translateY(0);
}

/* The [OK] status badge */
.boot-line .boot-status {
  color: #27c93f;
  margin-left: 0.4ch;
}

/* "Boot complete." line is brighter */
.boot-line.boot-complete {
  color: #ffbd39;
  font-weight: 700;
}

/* Overlay exit transition */
#boot-overlay.fade-out {
  animation: bootFadeOut 0.4s ease forwards;
}

@keyframes bootFadeOut {
  0%   { opacity: 1; }
  100% { opacity: 0; }
}

/* Floating Navbar Styles */
.floating-navbar {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  background-color: rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(255, 189, 57, 0.4);
  border-radius: 30px;
  padding: 10px 15px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, max-width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  max-width: 54px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 189, 57, 0.12);
  white-space: nowrap;
}

.floating-navbar.visible {
  opacity: 1;
  visibility: visible;
}

.floating-navbar:hover {
  max-width: 500px;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 24px;
  height: 20px;
  cursor: pointer;
  flex-shrink: 0;
}

.hamburger-icon span {
  width: 100%;
  height: 2px;
  background-color: #ffbd39;
  transition: all 0.3s ease;
}

.floating-nav-links {
  display: flex;
  gap: 20px;
  margin-left: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease 0s;
}

.floating-navbar:hover .floating-nav-links {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.3s ease 0.2s;
}

.floating-nav-links a {
  color: #fff;
  text-decoration: none;
  font-family: 'Unispace', 'Consolas', monospace;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.floating-nav-links a:hover {
  color: #ffbd39;
}

