/* ========================================
   Base Reset & Layout
======================================== */

:root {
  --font-primary: "Fira Code", monospace;
}

/* Apply global default */
body {
  font-family: var(--font-primary);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: rgb(90, 90, 90);
  height: 100vh;
  height: 100dvh; /* dynamic viewport height for mobile */
  position: relative;
  overflow: hidden;
  font-family: monospace;
}

body.home {
  display: flex;
  align-items: center;
  justify-content: center;
}

body.nenu {
  display: block;
  margin: 0;
  padding: 20px 20px 80px 40px;
  color: #eeeeee;
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-y: auto;
}

body.age {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

body.fingerprint {
  padding: 20px 20px 20px 40px; /* Extra left padding for tricolor band */
  color: #eeeeee;
  font-size: 14px;
  line-height: 1.6;
  overflow: auto;
}

body.projects {
  overflow-y: auto !important;
  height: auto;
}

/* ========================================
 Circle Button Styling
======================================== */

.circle {
  border-radius: 50%;
  background: linear-gradient(145deg, #6e6e6e, #a0a0a0);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 15; /* Circle */
  box-shadow: 5px 5px 12px rgba(0, 0, 0, 0.5),
    -5px -5px 8px rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  pointer-events: auto;
}

.circle:active {
  transform: scale(0.95);
  box-shadow: inset 4px 4px 8px rgba(0, 0, 0, 0.4),
    inset -4px -4px 8px rgba(255, 255, 255, 0.2), 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.circle:hover {
  transform: scale(1.05);
  box-shadow: 8px 8px 16px rgba(0, 0, 0, 0.6),
    -6px -6px 10px rgba(255, 255, 255, 0.3);
}

.circle {
  -webkit-tap-highlight-color: transparent; /* Removes Android tap flash */
  touch-action: manipulation;
}

.circle:focus {
  outline: none;
}

.circle img {
  -webkit-user-drag: none;
  user-select: none;
  background-color: inherit; /* Ensures no image flash */
}
.circle.corner {
  width: 50px;
  height: 50px;
  position: fixed;
  top: 20px; /* Distance from the top */
  right: 20px; /* Distance from the right */
  animation: breatheWithRotate 2.8s ease-in-out infinite;
}

.circle.central {
  width: 80px;
  height: 80px;
  position: relative;
  animation: rotateAndHold 2s ease-in-out 1 alternate;
  animation-fill-mode: forwards;
}

.circle.central.breathe {
  animation: breatheWithRotate 2.8s ease-in-out infinite;
}

.circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: filter 0.1s ease;
}

/* Central-specific overrides */
.circle.central img {
  filter: blur(2px);
  transition: filter 0.1s ease;
}

/* Corner-specific overrides */
.circle.corner img {
  border: 0px solid rgba(255, 255, 255, 0.3); /* Only if needed */
  filter: blur(1px);
  transition: filter 0.1s ease;
}

.circle img:not(.lazyload) {
  filter: none;
}

.circle.pressed {
  transform: rotate(0deg) scale(1);
  animation: none !important;
}

@keyframes rotateAndHold {
  from {
    transform: rotate(-60deg) scale(1);
  }
  to {
    transform: rotate(0deg) scale(1);
  }
}

@keyframes breatheWithRotate {
  0%,
  100% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(0deg) scale(1.08);
  }
}

/* ========================================
   Tricolor Side Strip
======================================== */
.line-container {
  position: fixed;
  top: 0;
  left: 10px;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 15; /* Tricolor Strip */
  cursor: pointer;
  transition: transform 0.3s ease;
  /*animation: stripPulse 2.8s ease-in-out infinite;*/
}

.line {
  width: 5px;
  flex-grow: 1;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
}

.line:nth-child(1) {
  background-color: #ff9933;
  border-top-left-radius: 4px;
}
.line:nth-child(2) {
  background-color: #ffffff;
}
.line:nth-child(3) {
  background-color: #138808;
  border-bottom-left-radius: 4px;
}

.line-container:hover {
  transform: scaleX(1.1);
}

.line-container:hover .line {
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

@keyframes stripPulse {
  0%,
  100% {
    transform: scaleX(1);
    box-shadow: none;
  }
  50% {
    transform: scaleX(0.5);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.15);
  }
}

/* ========================================
   Binary Strings (Animated Text Rain)
======================================== */
.binary-string {
  position: absolute;
  font-family: monospace;
  font-size: 12px;
  opacity: 0.6;
  pointer-events: none;
  z-index: 5; /* Binary Strings */
  white-space: nowrap;
}

/* ========================================
   Radial Menu 
======================================== */
.radial-menu {
  width: 200px;
  height: 200px;
  display: flex;
  pointer-events: none;
  transform: scale(0);
  transition: transform 0.5s ease;
  z-index: 14; /* radial-menu */
}

.radial-menu.show {
  transform: scale(1);
  pointer-events: auto;
}

.radial-menu.central {
  position: absolute;
  align-items: center;
  justify-content: center;
  transform-origin: center center;
}

.radial-menu.cornerfive,
.radial-menu.cornersix {
  position: fixed;
  top: 20px;
  right: 20px;
 /* transform-origin: top right; */
 /*Modified the origin so that radial menu start and end doesn't lie outside the circle edge on the top right corner*/
 transform-origin: 90% 10%; 
}

.radial-menu a {
  width: 50px;
  height: 50px;
  background: transparent;
  border-radius: 50%;
  position: absolute;
  display: flex;
  text-decoration: none;
  transition: 0.3s;
  color: #333;
  z-index: 14; /* radial-menu a */

  /* Base animation */
  transition: transform 0.5s ease, opacity 0.5s ease;
  transform: rotate(0deg) translate(0px) rotate(0deg);
  opacity: 1;
  animation: none;
}

.radial-menu.cornerfive a,
.radial-menu.cornersix a {
  position: fixed;
  top: 20px;
  right: 20px;
}

.radial-menu a svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.radial-menu a:hover {
  filter: drop-shadow(0 0 4px white);
  background: transparent;
  color: white;
  transform: scale(1.1);
}

.radial-menu.central a:nth-child(1) {
  transform: rotate(0deg) translate(100px) rotate(-0deg);
}
.radial-menu.central a:nth-child(2) {
  transform: rotate(60deg) translate(100px) rotate(-60deg);
}
.radial-menu.central a:nth-child(3) {
  transform: rotate(120deg) translate(100px) rotate(-120deg);
}
.radial-menu.central a:nth-child(4) {
  transform: rotate(180deg) translate(100px) rotate(-180deg);
}
.radial-menu.central a:nth-child(5) {
  transform: rotate(240deg) translate(100px) rotate(-240deg);
}
.radial-menu.central a:nth-child(6) {
  transform: rotate(300deg) translate(100px) rotate(-300deg);
}

.radial-menu.cornerfive.show a:nth-child(1) {
  transform: rotate(5deg) translate(-100px) rotate(-5deg);
  transition-delay: 0s;
  opacity: 1;
}
.radial-menu.cornerfive.show a:nth-child(2) {
  transform: rotate(-20deg) translate(-100px) rotate(20deg);
  transition-delay: 0.05s;
  opacity: 1;
}
.radial-menu.cornerfive.show a:nth-child(3) {
  transform: rotate(-45deg) translate(-100px) rotate(45deg);
  transition-delay: 0.1s;
  opacity: 1;
}
.radial-menu.cornerfive.show a:nth-child(4) {
  transform: rotate(-70deg) translate(-100px) rotate(70deg);
  transition-delay: 0.15s;
  opacity: 1;
}
.radial-menu.cornerfive.show a:nth-child(5) {
  transform: rotate(-95deg) translate(-100px) rotate(95deg);
  transition-delay: 0.2s;
  opacity: 1;
}

.radial-menu.cornersix.show a:nth-child(1) {
  transform: rotate(15deg) translate(-120px) rotate(-15deg);
  transition-delay: 0s;
  opacity: 1;
}
.radial-menu.cornersix.show a:nth-child(2) {
  transform: rotate(-10deg) translate(-120px) rotate(10deg);
  transition-delay: 0.05s;
  opacity: 1;
}
.radial-menu.cornersix.show a:nth-child(3) {
  transform: rotate(-35deg) translate(-120px) rotate(35deg);
  transition-delay: 0.1s;
  opacity: 1;
}
.radial-menu.cornersix.show a:nth-child(4) {
  transform: rotate(-60deg) translate(-120px) rotate(60deg);
  transition-delay: 0.15s;
  opacity: 1;
}
.radial-menu.cornersix.show a:nth-child(5) {
  transform: rotate(-85deg) translate(-120px) rotate(85deg);
  transition-delay: 0.2s;
  opacity: 1;
}
.radial-menu.cornersix.show a:nth-child(6) {
  transform: rotate(-110deg) translate(-120px) rotate(110deg);
  transition-delay: 0.25s;
  opacity: 1;
}

.breathe {
  display: inline-block;
  animation: breathe 2.8s ease-in-out infinite;
}

@keyframes breathe {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}
/* ========================================
   Material Icon Button + Tooltip
======================================== */
.material-symbols-rounded {
  font-size: 28px;
  background: linear-gradient(135deg, #2b5e77, #337394, #3d8caf);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

/*Telugu Icon is being handled inline on each page as suitable icon is not available in Material icons*/

.material-symbols-rounded {
  width: 52px;
  height: 52px;
}

.material-symbols-rounded.corner {
  width: 40px;
  height: 40px;
  box-shadow: none;
}

/* ========================================
  Icon Tool Tip styling
======================================== */
.tooltip-box {
  position: fixed;
  background: rgba(50, 50, 50, 0.95);
  color: white;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
  z-index: 50; /*Icon Tool Tip*/
  pointer-events: none;
  transition: opacity 0.2s ease;
  opacity: 0;
}
.tooltip-box.show {
  opacity: 1;
}

/* ========================================
   Last Updated Footer
======================================== */
#last-updated {
  position: fixed;
  bottom: 10px;
  right: 15px;
  font-size: 8px;
  color: #ccc;
  font-family: monospace;
  z-index: 10; /* last-updated */
  background: rgb(90, 90, 90); /* Optional: subtle background */
  padding: 4px 8px;
  border-radius: 4px;
}

/* ========================================
  info frame
======================================== */
.info-frame {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: black;
  color: #eeeeee;
  font-family: monospace;
  font-size: 11px;
  padding: 4px 10px;
  border-top: 1px solid #eeeeee;
  z-index: 15; /* bottom info-frame */
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  align-items: center;
  line-height: 1.4;
  cursor: pointer;
  transition: background-color 0.2s;
  max-height: 24px;
  overflow: hidden;
}

.info-frame:hover {
  background-color: #333;
}
.info-item {
  white-space: nowrap;
}

/* ========================================
   Professional Container & Timeline
======================================== */
#professionalContainer {
  margin-left: 0;
  padding-bottom: 30px;
}

h1 {
  font-size: 20px;
  margin: 0 0 0 0;
  color: #ff9933;
  text-transform: uppercase;
  letter-spacing: 2px;
}

h1.nenu {
  display: flex;
  justify-content: space-between; /* KRISHNA CHAITANYA left, toggle right */
  align-items: center;
  max-width: 800px;
  margin: 40px auto 20px 0;
  font-size: 32px;
  font-weight: 600;
  color: #ff9933;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  text-align: left;
}

.timeline {
  position: relative;
  max-width: 800px;
  padding-left: 20px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0px;
  background: #ffffff;
  opacity: 0.3;
}

.timeline-item {
  padding-left: 30px;
  border-left: 2px solid #444;
  margin-bottom: 24px;
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 5px;
  width: 12px;
  height: 12px;
  background-color: #ff9933;
  border-radius: 50%;
  border: 2px solid #222;
}

.timeline-item h2 {
  font-size: 17px;
  color: #ffffff;
  margin: 0 0 6px;
  text-transform: uppercase;
}

.timeline-item .headline {
  color: #ff9933;
  font-size: 15px;
  margin-bottom: 4px;
}

.timeline-item .subheading {
  color: #eeeeee;
  font-size: 15px;
  margin-bottom: 4px;
}

.timeline-item .details {
  color: #eeeeee;
  font-size: 13px;
  margin-bottom: 6px;
  font-style: italic;
}

.section {
  max-width: 800px;
  margin: 60px auto;
  padding: 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.section h2 {
  font-size: 20px;
  color: #ff9933;
  margin-bottom: 16px;
  letter-spacing: 1px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 6px;
  text-transform: uppercase;
}

.section p,
.section ul {
  font-size: 16px;
  color: #dddddd;
  margin-bottom: 20px;
}

.section ul {
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.section ul li {
  background: #333333;
  color: #fff;
  padding: 6px 14px;
  border-radius: 5px;
  font-size: 14px;
}

.summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.social-links a img {
  width: 20px;
  height: 20px;
  margin-left: 2px;
  vertical-align: middle;
  filter: brightness(1.2);
  transition: transform 0.2s;
}

.social-links a img:hover {
  transform: scale(1.1);
}
.social-links a {
  text-decoration: none;
  outline: none;
}

.social-links a:focus img,
.social-links a:active img {
  outline: 2px solid #ff9933;
  border-radius: 2px;
}

.view-toggle {
  display: flex;
  align-items: center;
}

/* The switch and slider styles remain the same */
.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ff9933;
  transition: 0.4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #66bb6a;
}

input:checked + .slider:before {
  transform: translateX(22px);
}

.header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 800px;
  margin: 40px auto 20px auto;
}

/* ========================================
   Email Styling
======================================== */

.email {
  color: #ffffffcc; /* Soft white with slight transparency */
  font-family: monospace;
  font-size: 13px;
  text-decoration: none;
  border: none;
  background: none;
  padding: 0;
  margin-left: 8px;
  cursor: pointer;
}

/* ========================================
   Button Styling
======================================== */

button {
  padding: 1rem 2rem;
  font-size: 1.2rem;
  margin-top: 5px;
  background: linear-gradient(to right, #ff7e5f, #feb47b);
  border: none;
  border-radius: 5px;
  color: white;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, background 0.3s ease;
}

button:hover {
  transform: scale(1.05);
  background: linear-gradient(to right, #feb47b, #ff7e5f);
}
button:disabled {
  background: #ccc;
  color: #666;
  cursor: not-allowed;
  box-shadow: none;
  transform: none !important;
}

button:disabled:hover {
  background: #ccc;
}

.btn-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
}

/* ========================================
   Fingerprint Page Specific Styling
======================================== */

#fingerprintContainer {
  column-count: 2;
  column-gap: 32px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

#fingerprintContainer h1.fingerprint {
  font-size: 28px;
  margin-bottom: 32px;
  color: #ff9933;
  display: flex;
  align-items: center;
  gap: 10px;
}

.fingerprint-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fingerprint-item {
  display: flex;
  font-size: 13px;
  line-height: 1.5;
  padding: 4px 8px;
  align-items: flex-start;
}

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

.fingerprint-item strong {
  color: #ffffff;
  font-weight: 400;
  width: 140px;
  display: inline-block;
  text-align: left;
  flex-shrink: 0;
  padding-right: 8px;
}

.fingerprint-item span {
  color: rgb(180, 180, 180);
  flex: 1;
  word-break: break-word;
}

.fingerprint-item:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.01);
  border-radius: 4px;
}

.fingerprint-section {
  display: inline-block;
  width: 100%;
  break-inside: avoid;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin: 0 0 20px;
  padding: 12px 16px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.fingerprint-section h2 {
  font-size: 16px;
  color: rgb(255, 255, 255);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 16px;
  padding-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.fingerprint-section:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

h1.fingerprint {
  text-transform: none !important;
}

/* ========================================
   Login Page styling
======================================== */

.fingerprint-item span {
  flex: 1;
  word-break: break-all;
}

.ngrok-note {
  position: absolute;
  top: 20px;
  left: 50px; /* Push it right so it doesn’t touch the strip */
  color: #ccc;
  font-size: 12px;
  font-family: monospace;
}

/* ========================================
   Project Page styling
======================================== */

.project-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 10px;
}
.project-card {
  background-color: (255, 255, 255, 0.02);
  border: 1px solid #444;
  border-radius: 8px;
  padding: 20px;
  color: #eee;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.project-card h3 {
  margin-top: 0;
  color: #ff9933;
  font-size: 18px;
}

.project-card p {
  margin: 8px 0;
  font-size: 14px;
}
.status-badge {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.02);
  color: #eee;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
}

.project-card a {
  color: #4fc3f7;
  text-decoration: none;
}

.project-card a:hover {
  text-decoration: underline;
}

.project-section {
  max-width: 800px;
  margin: 60px auto 100px auto; /* top, auto-center, bottom margin */
  padding: 24px 24px 80px; /* bottom padding for scroll breathing */
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ========================================
   Build log page styling
======================================== */
body.buildlog {
  display: block;  
  padding: 0 16px;
  font-family: var(--font-primary);
  color: #eeeeee;
  background-color: rgb(90, 90, 90);
  overflow-x: hidden;
  overflow-y: auto; 
}

#buildlog-container {
  flex: 1;
  max-width: 800px;
  margin: 20px auto;
  padding-bottom: 100px;
}

h1.buildlog {
  text-align: left;
  margin: 40px 0 60px 0;       
  font-size: 32px;
  font-weight: 600;
  color: #ff9933;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  letter-spacing: 1px;
  text-transform: none;  
  padding-left: 20px;
}

.buildlog-entry {
  margin-bottom: 20px;
  padding-left: 20px;
}

.buildlog-entry h2 {
  color: #ff9933;
  font-size: 18px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.buildlog-entry p {
  font-size: 14px;
  line-height: 1.6;
  color: #cccccc;
}

.buildlog-timeline-bar {
  position: fixed;
  top: 120px;
  right: calc((100vw - 800px) / 2 - 60px); 
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 10; /*buildlog timeline*/
  background-color: rgb(90, 90, 90);
  border-radius: 12px;
  padding: 8px;
}

.buildlog-timeline-bar a {
  color: #aaaaaa;
  text-decoration: none;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 20px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.buildlog-timeline-bar a.active,
.buildlog-timeline-bar a:hover {
  background: #ff9933;
  color: #000;
}


/* Blog page tree styling */
.blog-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Main area holds the tree above the info bar */
.blog-page .main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-end; /* anchor tree to bottom */
}

/* Tree sizing: scale by height so it always looks big */
.blog-page #tree-container svg {
  width: 100%;                   /* take full available width */
  max-width: 1000px;             /* cap on desktops */
  height: calc(100vh - 24px);    /* fill height above footer */
  display: block;
  object-fit: contain;           /* keep proportions */
}

.leaf {
  transform-box: fill-box;         
  transform-origin: bottom center; 
  animation: sway 4s ease-in-out infinite;
}

@keyframes sway {
  0%   { transform: translateX(0px) rotate(0deg) scale(1); }
  25%  { transform: translateX(1px) rotate(1deg) scale(1.01); }
  50%  { transform: translateX(-1px) rotate(-1deg) scale(1); }
  75%  { transform: translateX(0.5px) rotate(0.5deg) scale(1.02); }
  100% { transform: translateX(0px) rotate(0deg) scale(1); }
}

/* Stagger leaves in ~5% sets */
.leaf:nth-child(20n+1)  { animation-delay: 0s;   animation-duration: 4s; }
.leaf:nth-child(20n+2)  { animation-delay: 0.2s; animation-duration: 4.2s; }
.leaf:nth-child(20n+3)  { animation-delay: 0.4s; animation-duration: 3.8s; }
.leaf:nth-child(20n+4)  { animation-delay: 0.6s; animation-duration: 4.5s; }
.leaf:nth-child(20n+5)  { animation-delay: 0.8s; animation-duration: 4.1s; }
.leaf:nth-child(20n+6)  { animation-delay: 1s;   animation-duration: 5s; }
.leaf:nth-child(20n+7)  { animation-delay: 1.2s; animation-duration: 4.3s; }
.leaf:nth-child(20n+8)  { animation-delay: 1.4s; animation-duration: 3.9s; }
.leaf:nth-child(20n+9)  { animation-delay: 1.6s; animation-duration: 4.7s; }
.leaf:nth-child(20n+10) { animation-delay: 1.8s; animation-duration: 4.2s; }
.leaf:nth-child(20n+11) { animation-delay: 2s;   animation-duration: 4.8s; }
.leaf:nth-child(20n+12) { animation-delay: 2.2s; animation-duration: 4.1s; }
.leaf:nth-child(20n+13) { animation-delay: 2.4s; animation-duration: 3.7s; }
.leaf:nth-child(20n+14) { animation-delay: 2.6s; animation-duration: 4.6s; }
.leaf:nth-child(20n+15) { animation-delay: 2.8s; animation-duration: 4.3s; }
.leaf:nth-child(20n+16) { animation-delay: 3s;   animation-duration: 5.1s; }
.leaf:nth-child(20n+17) { animation-delay: 3.2s; animation-duration: 4.4s; }
.leaf:nth-child(20n+18) { animation-delay: 3.4s; animation-duration: 3.9s; }
.leaf:nth-child(20n+19) { animation-delay: 3.6s; animation-duration: 4.5s; }
.leaf:nth-child(20n+20) { animation-delay: 3.8s; animation-duration: 4.2s; }


/* ========================================
   Typography consistency
======================================== */
h1,
h2,
h3,
h4,
h5,
h6,
.section h2,
.timeline-item h2,
.timeline-item .headline,
.timeline-item .subheading,
.timeline-item .details,
button,
.radial-menu a,
.fingerprint-item strong,
.fingerprint-item span,
.info-frame,
.email,
#last-updated,
.binary-string {
  font-family: var(--font-primary);
}
/* ========================================
   Responsive Adjustments
======================================== */
@media (max-width: 600px) {
  .material-symbols-rounded {
    width: 42px;
    height: 42px;
    font-size: 22px;
  }
}

@media (max-width: 600px) {
  body.nenu {
    padding: 10px 10px 60px 25px;
    font-size: 13px;
  }
  .info-frame {
    font-size: 10px;
    padding: 2px 8px;
    max-height: 20px;
  }
  h1.nenu {
    font-size: 24px;
    margin-bottom: 30px;
  }
  .timeline {
    padding-left: 15px;
  }
  .timeline::before {
    left: -5px;
  }
  .timeline-item {
    padding-left: 25px;
    margin-bottom: 20px;
  }
  .timeline-item::before {
    left: -7px;
    top: 6px;
    width: 8px;
    height: 8px;
  }
  .timeline-item h2 {
    font-size: 15px;
  }
  .timeline-item .details {
    font-size: 12px;
  }
  .section h2 {
    font-size: 16px;
  }
  .section {
    margin: 20px 0;
  }
}

@media (max-width: 600px) {
  h1.age {
    font-size: 1.5rem;
    padding: 0 1rem;
  }

  p,
  #results {
    font-size: 1rem;
    padding: 0 1rem;
  }

  button {
    width: 80%;
    font-size: 1rem;
    padding: 0.75rem 1rem;
  }
}

@media (max-width: 768px) {
  #fingerprintContainer {
    column-count: 1;
    padding: 0 12px;
  }
}

@media (max-width: 768px) {
  .project-section {
    margin: 20px 12px 60px 20px;
    padding: 16px;
  }

  .project-card {
    padding: 16px;
  }

  .project-card p {
    font-size: 13px;
  }

  .project-card h3 {
    font-size: 16px;
  }

  .status-badge {
    font-size: 11px;
    padding: 2px 6px;
  }
}

@media (max-width: 850px) {
  .buildlog-timeline-bar {
    display:none;
  }
}

@media (max-width: 768px) {
  h1.buildlog {
    font-size: 24px;
    margin: 20px 0 20px 0;
    text-align: left; 
  }
}

@media (max-width: 600px) {
  .view-toggle {
    position: relative;
    margin-left: auto;
    margin-right: 50px; /* push it away from corner menu */
    transform: scale(0.85); /* shrink for small screen */
  }

  h1.nenu {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}


@media (max-width: 480px) {
  
  .blog-page .main {
    align-items: flex-start; /* Align tree to top on mobile */
  }
  .blog-page #tree-container svg {
    height: 70vh;  /* smaller but still rooted */
  }
  
}