* {
  box-sizing: border-box; 
}

html, body {
  height: 100%;       
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;   
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #111; 
  color: #e0e0e0; 
  display: flex;
  flex-direction: column;
  padding: 20px 20px 10px 20px; 
  background-color: #0a0a0a; 
  background-image: 
      radial-gradient(circle at 20% 30%, rgba(39, 201, 63, 0.08) 0%, transparent 40%),
      radial-gradient(circle at 80% 70%, rgba(39, 201, 63, 0.05) 0%, transparent 40%),
      radial-gradient(circle at 50% 50%, rgba(39, 201, 63, 0.03) 0%, transparent 60%);
  background-attachment: fixed;
}

header {
  flex: 0 0 auto; 
  margin-bottom: 15px; 
}

.header-row {
display: flex;              
align-items: baseline;      
gap: 15px;                  
}

.header-row h2 {
font-weight: 400;
margin: 0;
font-size: 1.2rem;
color: #fff;     
} 

.header-row h4 {
margin: 0;
color: #888; 
font-weight: 400;
font-size: 0.9rem;
}

header h2 { font-weight: 400; margin: 0 0 5px 0; font-size: 1.2rem; color: #fff; }
header p { color: #888; margin: 0; font-size: 0.9rem; }

main {
  flex: 1; 
  min-height: 0; 
  width: 100%;
  margin-bottom: 0; 
}

.experiments-section {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); 
  grid-template-rows: 1fr 1.6fr 1fr 1.4fr; 
  gap: 7px; 
  grid-auto-flow: dense; 
  height: 100%;
  width: 100%;
}

.grid-item {
  background-color: #1a1a1a; 
  border: 1px solid #333;     
  padding: 20px; 
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
  overflow: hidden; 
  position: relative;
  background-color: rgba(26, 26, 26, 0.9); 
  backdrop-filter: blur(10px);
}

.item-title {
  font-weight: 600;
  font-size: 1.1rem;
  display: block;
  margin-bottom: 6px;
  color: #fff;
}

.item-meta {
  font-size: 0.85rem;
  color: #888;
  transition: color 0.2s ease;
}

.grid-item:hover .item-meta { color: #ccc; }

.wide { grid-column: span 2 ; }
.wide2 { grid-column: span 1; }
.tall { grid-row: span 2; }
.big { grid-column: 2 / span 2; grid-row: 2 / span 2; }

.work-header, .edu-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  width: 100%;
  margin-bottom: 2px;
}

.education-list, .work-list {
  display: flex;
  flex-direction: column;
  gap: 8px; 
  margin-top: 8px;     
  margin-bottom: auto; 
  padding-top: 4px;
}

.edu-entry, .work-entry {
  display: flex;
  flex-direction: column;
  gap: 0; 
  position: relative;
  padding-bottom: 6px;
}

.edu-entry:not(:last-child)::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; width: 100%; height: 1px;
  background-color: #222;
}

.edu-degree, .work-role, .job-role {
  color: #fff; font-weight: 600; font-size: 0.95rem; line-height: 1.3;
}
.edu-date, .work-date, .job-date {
  font-family: 'Courier New', Courier, monospace; 
  font-size: 0.75rem; color: #666; font-weight: normal;
}
.edu-uni, .work-company, .job-company { color: #ccc; font-size: 0.85rem; margin: 0; }
.edu-loc, .work-loc, .job-location { color: #666; font-size: 0.8rem; }

.status-badge {
  background-color: rgba(39, 201, 63, 0.15);
  color: #27c93f;
  font-size: 0.7rem;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.work-content {
  margin-bottom: auto; 
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.job-footer {
  margin-top: 6px; display: flex; gap: 6px; align-items: center;
}
.job-separator { color: #444; font-size: 0.8rem; }

.hacker-box {
  position: relative;
  padding: 0 !important; 
  overflow: hidden;
  background-color: #000; 
}

#matrix-canvas {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0; opacity: 0.8; 
}

.hacker-overlay {
  position: relative; z-index: 1; width: 100%; height: 100%;
  padding: 24px; 
  display: flex; flex-direction: column; justify-content: flex-end; 
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.8) 100%);
  pointer-events: none; 
}

.hacker-box:hover .item-title { color: #fff; }

.matrix-ctrl {
  position: absolute; top: 15px; right: 15px; z-index: 10;
  background: rgba(0, 0, 0, 0.6); border: 1px solid #0F0; color: #0F0;
  font-family: monospace; font-size: 0.9rem; cursor: pointer;
  padding: 4px 8px; border-radius: 4px; transition: all 0.2s ease;
  opacity: 0; pointer-events: auto; 
}
.hacker-box:hover .matrix-ctrl { opacity: 1; }
.matrix-ctrl:hover { background: rgba(0, 255, 0, 0.2); box-shadow: 0 0 10px rgba(0, 255, 0, 0.4); }

.tech-stack-box {
  position: relative; overflow: hidden;
  background: #0d0d0d; padding: 20px;
  cursor: crosshair;
}

#tech-canvas {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1;
}

.tech-icon {
  position: absolute; width: 50px; height: 50px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; will-change: transform;
  transform: translate(-100px, -100px); 
}

.tech-icon img {
  width: 80%; height: 80%; object-fit: contain;
  pointer-events: none; display: block;
}
.tech-icon img[src=""] { display: none; }

.tech-icon.active {
  border-color: #fff; background: rgba(255, 255, 255, 0.15);
  z-index: 10; box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.tech-overlay {
  position: absolute; bottom: 20px; left: 20px; z-index: 2; pointer-events: none;
}

.about-card-v2 {
  display: flex; flex-direction: column;
  align-items: center; justify-content: space-between; 
  padding: 30px !important;
  background: linear-gradient(145deg, #1a1a1a 0%, #111 100%);
  text-align: center; position: relative;
}
.about-card-v2:hover .about-image-bg {
transform: scale(1.05); 
filter: brightness(0.5) grayscale(0);
}
.about-main-content {
position: relative;
z-index: 2;
width: 100%; 
}

.greeting-badge {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  background-color: rgba(39, 201, 63, 0.15); color: #27c93f;
  font-family: 'Courier New', Courier, monospace; 
  font-size: 0.9rem; font-weight: 600;
  padding: 8px 12px; border-radius: 8px;
  height: 38px; box-sizing: border-box;
}

.wave-emoji {
  display: inline-block;
  animation: hand-wave-slow 3s infinite ease-in-out;
  transform-origin: 70% 70%;
}

.slider-window {
  height: 1.2em; overflow: hidden; display: block; position: relative; margin-top: 1px; 
}
.slider-track {
  display: flex; flex-direction: column;
  animation: scroll-text-vertical 10s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
.slider-track span {
  display: block; height: 1.2em; line-height: 1.2em; text-align: left;
}

.about-main-content {
  display: flex; flex-direction: column; gap: 16px;
  margin-top: 20px; margin-bottom: 30px; 
}
.about-main-content h1 {
  margin: 0; font-size: 3.5rem; font-weight: 800;
  color: #fff; letter-spacing: -1px; line-height: 1;
}
.about-subtitle {
  margin: 0; font-size: 1.1rem; color: #999;
  line-height: 1.5; max-width: 500px; margin-inline: auto; 
}
.text-highlight {
  color: #fff; font-weight: 500; border-bottom: 1px solid rgba(255,255,255,0.3); 
}

.status-pill-compact {
  display: inline-flex; align-items: center; gap: 10px;
  background-color: #222; border: 1px solid #333;
  padding: 10px 20px; border-radius: 50px; 
  font-size: 0.8rem; font-weight: 700; color: #fff;
  text-transform: uppercase; letter-spacing: 1px; transition: all 0.2s ease;
}
.about-card-v2:hover .status-pill-compact {
  border-color: #555; background-color: #2a2a2a;
}
.pulsing-dot-green {
  width: 8px; height: 8px; background-color: #27c93f;
  border-radius: 50%; box-shadow: 0 0 0 rgba(39, 201, 63, 0.4);
  animation: pulse-green-slow 2.5s infinite;
}

@keyframes scroll-text-vertical {
  0%, 15% { transform: translateY(0); }
  20%, 35% { transform: translateY(-16.66%); }
  40%, 55% { transform: translateY(-33.33%); }
  60%, 75% { transform: translateY(-50%); }
  80%, 95% { transform: translateY(-66.66%); }
  100% { transform: translateY(-83.33%); }
}
@keyframes hand-wave-slow { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(15deg); } }
@keyframes pulse-green-slow { 0% { box-shadow: 0 0 0 0 rgba(39, 201, 63, 0.7); } 70% { box-shadow: 0 0 0 8px rgba(39, 201, 63, 0); } 100% { box-shadow: 0 0 0 0 rgba(39, 201, 63, 0); } }

.projects-box {
  display: flex; flex-direction: column;
  padding: 0 !important; background-color: #1a1a1a; position: relative;
}

.box-header {
  padding: 20px 20px 10px 20px; display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid #222; background: #1a1a1a; z-index: 2;
}
.header-badge {
  font-size: 0.7rem; color: #666; background: #222;
  padding: 2px 8px; border-radius: 10px; border: 1px solid #333;
}

.project-list {
  flex: 1; overflow-y: auto; padding: 15px;
  display: flex; flex-direction: column; gap: 12px;
  scrollbar-width: thin; scrollbar-color: #333 #1a1a1a;
}
.project-list::-webkit-scrollbar { width: 4px; }
.project-list::-webkit-scrollbar-track { background: #1a1a1a; }
.project-list::-webkit-scrollbar-thumb { background-color: #333; border-radius: 4px; }

.project-card {
  background-color: #222; border: 1px solid #333; border-radius: 12px; padding: 16px;
  text-decoration: none; transition: all 0.2s; display: flex; flex-direction: column; gap: 8px;
}
.project-card:hover {
  transform: translateY(-2px); border-color: #444; background-color: #262626;
}

.card-top { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.card-header-left { display: flex; align-items: center; gap: 8px; }

.project-name { color: #fff; font-weight: 700; font-size: 0.95rem; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.status-dot.live { background-color: #27c93f; box-shadow: 0 0 5px rgba(39, 201, 63, 0.4); }
.status-dot.wip { background-color: #ffbd2e; }
.status-dot.concept { background-color: #ff5f56; }

.card-arrow { color: #555; font-size: 1rem; transition: all 0.2s ease; }
.project-card:hover .card-arrow { color: #fff; transform: translate(2px, -2px); }

.project-desc {
  font-size: 0.8rem; color: #999; line-height: 1.4; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tech-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tech-tags span {
  font-size: 0.7rem; color: #ccc; background-color: rgba(255,255,255,0.05);
  padding: 3px 8px; border-radius: 4px; border: 1px solid rgba(255,255,255,0.1); font-family: monospace;
}
.scroll-fade {
  position: absolute; bottom: 0; left: 0; width: 100%; height: 20px;
  background: linear-gradient(to top, #1a1a1a, transparent); pointer-events: none; border-radius: 0 0 12px 12px;
}

.social-box {
  display: flex; flex-direction: column; justify-content: space-between; 
}
.social-list {
  display: flex; flex-direction: column; gap: 10px; margin-top: 15px; flex-grow: 1;
}
.social-row {
  display: flex; align-items: center; gap: 12px; background-color: #222;
  border: 1px solid #333; padding: 12px; border-radius: 12px; text-decoration: none;
  transition: all 0.3s; position: relative; overflow: hidden;
}
.icon-box {
  width: 36px; height: 36px; background-color: #111; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: transform 0.3s ease;
}
.icon-box svg { width: 20px; height: 20px; fill: #888; transition: fill 0.3s ease; }
.social-info { display: flex; flex-direction: column; flex-grow: 1; }
.social-name { color: #fff; font-weight: 600; font-size: 0.95rem; line-height: 1.2; }
.social-handle { color: #666; font-size: 0.75rem; transition: color 0.3s ease; }
.arrow-icon {
  color: #444; font-size: 1.2rem; transform: translateX(-5px); opacity: 0; transition: all 0.3s ease;
}

.social-row:hover { transform: translateY(-2px); padding-left: 16px; }
.social-row:hover .arrow-icon { opacity: 1; transform: translateX(0); color: #fff; }
.social-row:hover .social-handle { color: #ccc; }

.social-row.linkedin:hover { border-color: #0077b5; background: linear-gradient(90deg, rgba(0,119,181,0.1), transparent); }
.social-row.linkedin:hover .icon-box svg { fill: #0077b5; }
.social-row.github:hover { border-color: #6e5494; background: linear-gradient(90deg, rgba(110,84,148,0.1), transparent); }
.social-row.github:hover .icon-box svg { fill: #fff; }
.social-row.codeforces:hover { border-color: #f39c12; background: linear-gradient(90deg, rgba(243,156,18,0.1), transparent); }
.social-row.codeforces:hover .icon-box svg { fill: #f39c12; }

.email-copy-wrapper {
  margin-top: auto; background: #151515; border: 1px dashed #444; border-radius: 12px;
  padding: 12px; width: 100%; display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; transition: all 0.2s ease; position: relative; overflow: hidden;
  color: inherit; font-family: inherit; text-align: left;
}
.email-copy-wrapper:hover { background: #1a1a1a; border-color: #666; }
.email-copy-wrapper:active { transform: scale(0.98); background: #222; }
.email-label { font-size: 0.75rem; color: #666; position: absolute; top: 8px; left: 12px; }
.email-address {
  margin-top: 14px; font-family: 'Courier New', monospace; font-size: 0.85rem; color: #ddd;
  font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 80%;
}
.copy-icon { color: #666; display: flex; transition: color 0.2s; }
.copy-icon svg { width: 18px; height: 18px; }
.email-copy-wrapper:hover .copy-icon { color: #fff; }
.copy-feedback {
  position: absolute; inset: 0; background-color: #27c93f; color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: bold;
  font-size: 0.9rem; transform: translateY(100%); transition: transform 0.3s;
}
.email-copy-wrapper.copied .copy-feedback { transform: translateY(0); }

.location-box {
  position: relative; overflow: hidden; padding: 20px !important;
  justify-content: flex-end; background: #111;
}

 .map-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: url('https://upload.wikimedia.org/wikipedia/commons/thumb/e/ec/World_map_blank_without_borders.svg/2000px-World_map_blank_without_borders.svg.png');
  background-size: cover; 
  background-position: center 35%; 
  opacity: 0.25 !important; 
  filter: invert(1);
  z-index: 0;
}

.map-marker {
  position: absolute;
  z-index: 1; 
  top: 18%; 
  left: 47.5%; 
  width: 6px;
  height: 6px;
  background-color: #27c93f; 
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(39, 201, 63, 0.9);
}

.map-marker::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 100%; height: 100%;
  border: 1px solid rgba(39, 201, 63, 0.6);
  border-radius: 50%;
  opacity: 0;
  animation: map-pulse-wave 2s infinite ease-out;
}
@keyframes map-pulse-wave {
  0% { width: 100%; height: 100%; opacity: 0.8; border-width: 2px; }
  100% { width: 400%; height: 400%; opacity: 0; border-width: 0px; }
}

.location-content { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 2px; }
.loc-label { font-size: 0.7rem; color: #666; text-transform: uppercase; letter-spacing: 1px; }
.loc-city { font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 6px; }
.time-wrapper {
  display: flex; align-items: center; gap: 6px; font-family: 'Courier New', monospace;
  font-size: 0.9rem; color: #ccc; background: rgba(0,0,0,0.4); width: fit-content;
  padding: 4px 8px; border-radius: 6px; border: 1px solid #333;
}
.live-indicator {
  width: 6px; height: 6px; background-color: #27c93f; border-radius: 50%;
  box-shadow: 0 0 5px #27c93f; animation: blink-live 2s infinite;
}
@keyframes blink-live { 50% { opacity: 0.4; } }

.music-box {
  position: relative; padding: 20px !important;
  display: flex; flex-direction: column; justify-content: space-between;
}
.music-icon svg { width: 24px; height: 24px; fill: #27c93f; margin-bottom: auto; }
.music-info { display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px; }
.music-label { font-size: 0.7rem; color: #666; text-transform: uppercase; }
.music-track { font-size: 0.95rem; font-weight: 600; color: #fff; }
.equalizer { display: flex; gap: 3px; align-items: flex-end; height: 20px; }
.bar { width: 6px; background-color: #fff; border-radius: 2px; animation: equalizer-jump 1s ease-in-out infinite; }
.bar:nth-child(1) { height: 40%; animation-duration: 0.8s; }
.bar:nth-child(2) { height: 80%; animation-duration: 1.1s; }
.bar:nth-child(3) { height: 50%; animation-duration: 0.9s; }
.bar:nth-child(4) { height: 70%; animation-duration: 1.2s; }
.bar:nth-child(5) { height: 30%; animation-duration: 0.7s; }
@keyframes equalizer-jump {
  0%, 100% { height: 20%; opacity: 0.5; } 50% { height: 100%; opacity: 1; }
}
.music-box:hover .bar { background-color: #27c93f; }

.site-footer {
  flex: 0 0 auto; width: 100%;
  padding-top: 40px; padding-bottom: 0px; 
  display: flex; justify-content: space-between; align-items: flex-end; 
  font-size: 0.85rem; color: #444;
}
.footer-text, .footer-links, .footer-center { flex: 1; }
.footer-links { text-align: right; }
.footer-center {
  text-align: center; font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 2px; color: #666; font-weight: 600; opacity: 0.8;
}
.footer-links a {
  color: #666; text-decoration: none; margin-left: 20px; transition: color 0.2s ease;
}
.footer-links a:hover { color: #fff; }

@media (min-width: 1025px) and (max-width: 1400px) {
  body { padding: 15px; }
  .bento-grid { gap: 8px; }
  .grid-item, .about-card-v2, .tech-stack-box, .location-box, .music-box, .projects-box { padding: 16px !important; }

  .about-main-content h1 { font-size: 2.2rem; }
  .about-subtitle { font-size: 0.95rem; line-height: 1.4; }
  .item-title { font-size: 1rem; margin-bottom: 4px; }
  .item-meta, .edu-degree, .work-role { font-size: 0.8rem; }
  .tech-icon { width: 40px; height: 40px; }
  .site-footer { padding-top: 20px; font-size: 0.75rem; }
}

@media (max-width: 1024px), (max-height: 700px) {
  html, body {
      overflow: auto; height: auto; display: block; 
  }
  body { padding: 40px 20px; }
  main { overflow: visible; height: auto; }

  .bento-grid {
      height: auto; 
      grid-template-columns: repeat(2, 1fr); 
      grid-template-rows: auto; 
      gap: 15px; 
  }
  
  .about-card-v2 { order: -1; grid-column: span 2; }

  .grid-item { min-height: 240px; }
  
  .big, .wide { grid-column: span 2; grid-row: auto; }

  .work-header, .edu-header {
      flex-direction: column; align-items: flex-start; gap: 4px;               
  }
  
  .site-footer {
      padding-top: 60px; padding-bottom: 30px; flex-direction: column; 
      gap: 15px; text-align: center; align-items: center; 
  }
  .footer-links, .footer-text, .footer-center { text-align: center; flex: auto; }
  .footer-center { order: -1; margin-bottom: 5px; }
  
  @media (max-width: 768px) {
      .bento-grid { display: flex; flex-direction: column; }
      .header-row { flex-direction: column; align-items: flex-start; }
      .about-main-content h1 { font-size: 2.5rem; }
  }
}

.wordle-box {
padding: 15px !important;
background: #111;
display: flex; flex-direction: column; justify-content: space-between;
cursor: default;
}

.wordle-header { display: flex; justify-content: space-between; align-items: center; }
.wordle-label { font-size: 0.7rem; color: #666; text-transform: uppercase; letter-spacing: 1px; }
.status-dot-blink { width: 6px; height: 6px; background: #27c93f; border-radius: 50%; box-shadow: 0 0 5px #27c93f; }

.wordle-grid {
display: flex; flex-direction: column; gap: 4px; align-items: center; margin: 10px 0;
}
.w-row { display: flex; gap: 4px; }
.tile {
width: 30px; height: 30px; border: 1px solid #333;
display: flex; align-items: center; justify-content: center;
font-weight: bold; font-size: 1rem; color: #fff; text-transform: uppercase;
transition: all 0.3s ease;
}

.tile.correct { background: #538d4e; border-color: #538d4e; }
.tile.present { background: #b59f3b; border-color: #b59f3b; }
.tile.absent { background: #3a3a3c; border-color: #3a3a3c; }
.tile.active { border-color: #565758; transform: scale(1.05); }

.wordle-footer { text-align: center; font-size: 0.65rem; color: #444; font-family: monospace; }
#wordle-msg.success { color: #27c93f; font-weight: bold; }

#wordle-reset {
  background: #27c93f;
  color: #000;
  border: none;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: bold;
  cursor: pointer;
  margin-top: 5px;
  text-transform: uppercase;
}

#wordle-reset:hover {
  background: #fff;
}

.hidden { display: none; }

.about-card-v2 {
position: relative;
z-index: 1;
overflow: hidden;
}

.about-image-bg {
position: absolute;
top: 0; left: 0; width: 50%; height: 100%;
background-image: url('/src/picture.jpg'); 
background-size: cover;
background-position: center;
filter: brightness(0.4) grayscale(0.2);
z-index: -1;
transition: transform 0.5s ease, filter 0.5s ease;
}

.about-card-v2:hover .about-image-bg {
transform: scale(1.05);
filter: brightness(0.5) grayscale(0);
}

.about-main-content h1 {
text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}
.about-subtitle {
color: #ccc; 
text-shadow: 0 2px 5px rgba(0,0,0,0.8);
}

.greeting-badge, .status-pill-compact {
backdrop-filter: blur(8px);
background-color: rgba(0, 0, 0, 0.4) !important;
}
.about-card-v2 {
display: flex; 
flex-direction: column;
align-items: flex-end; 
justify-content: space-between; 
padding: 30px !important;
position: relative;
z-index: 1;
overflow: hidden;
text-align: right; 
}

.about-main-content {
z-index: 2;
max-width: 55%; 
margin-left: auto;
margin-right: 0;
display: flex;
flex-direction: column;
align-items: flex-end;
}

.about-main-content h1 {
margin: 0; 
font-size: 3.5rem; 
font-weight: 800;
color: #fff; 
line-height: 0.9;
white-space: nowrap; 
text-shadow: 0 2px 15px rgba(0,0,0,0.9);
}

.about-subtitle {
margin: 15px 0 0 0; 
font-size: 1.1rem; 
color: #ccc;
line-height: 1.4;
text-align: right;
text-shadow: 0 2px 8px rgba(0,0,0,0.9);
}

.terminal-box {
background-color: #050505 !important;
font-family: 'Courier New', Courier, monospace;
display: flex;
flex-direction: column;
width: 100%;
padding: 0 !important;
}

.terminal-header {
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1px solid #222;
}

.t-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; margin-right: 2px; }
.red { background: #ff5f56; } .yellow { background: #ffbd2e; } .green { background: #27c93f; }

.terminal-title { font-size: 0.6rem; color: #555; text-transform: uppercase; }

.terminal-body {
flex: 1;
font-size: 0.75rem;
color: #27c93f;
overflow-y: auto;

}

.terminal-line { margin-bottom: 4px; line-height: 1.2; }
.t-cmd { color: #fff; font-weight: bold; }

.terminal-input-area {
display: flex;
align-items: center;
gap: 5px;
font-size: 0.7rem;
color: #888;
}

#t-input {
background: transparent;
border: none;
color: #fff;
outline: none;
width: 100%;
font-family: inherit;
font-size: inherit;
}

.terminal-input-area {
display: flex;
align-items: center;
gap: 8px;
font-size: 0.8rem;
padding: 4px 8px;
background: rgba(255, 255, 255, 0.03); 
border-radius: 4px;
margin-top: auto; 
border: 1px solid transparent;
transition: all 0.2s ease;
}

.terminal-box:hover .terminal-input-area,
.terminal-input-area:focus-within {
border-color: rgba(39, 201, 63, 0.3);
background: rgba(39, 201, 63, 0.05);
}

.t-prompt {
color: #27c93f; 
font-weight: bold;
white-space: nowrap;
}

#t-input {
background: transparent;
border: none;
color: #fff;
outline: none;
width: 100%;
font-family: 'Courier New', monospace;
font-size: inherit;
caret-color: #27c93f; 
}

#t-input::after {
content: "_";
animation: cursor-blink 1s infinite;
}

@keyframes cursor-blink {
0%, 100% { opacity: 1; }
50% { opacity: 0; }
}

.terminal-box {
background-color: #050505 !important;
padding: 12px !important;
font-family: 'Courier New', Courier, monospace;
display: flex;
flex-direction: column;
}

.terminal-body {
flex: 1;
font-size: 0.7rem;
color: #27c93f;
overflow-y: auto;
margin-bottom: 8px;
scrollbar-width: none;
}
.terminal-body::-webkit-scrollbar { display: none; }

.terminal-input-area {
display: flex;
align-items: center;
gap: 4px;
padding: 4px 6px;
background: rgba(39, 201, 63, 0.05);
border: 1px solid rgba(39, 201, 63, 0.2);
border-radius: 4px;
}

.t-prompt { color: #27c93f; font-weight: bold; font-size: 0.75rem; }

#t-input {
background: transparent;
border: none;
color: #fff;
outline: none;
width: 100%;
font-size: 0.75rem;
caret-color: #27c93f;
}

.tech-stack-box {
position: relative;
overflow: hidden; 
background: #000; 
}
.tech-overlay {
position: absolute;
bottom: -15%; 
left: 50%;
transform: translateX(-50%);
width: 100%; 
height: 40%; 

background: radial-gradient(
    ellipse at bottom, 
    rgba(0, 255, 0, 0.15) 0%,   
    rgba(0, 255, 0, 0.05) 45%,  
    transparent 75%             
);

pointer-events: none;
z-index: 1;
filter: blur(35px); 
}

.tech-stack-box::after {
content: '';
position: absolute;
bottom: 0;
left: 10%; 
width: 80%;
height: 1px; 
background: linear-gradient(to right, transparent, rgba(0, 255, 0, 0.3), transparent);
box-shadow: 0 0 10px rgba(0, 255, 0, 0.2);
z-index: 2;
opacity: 0.4;
}

.about-subtitle .sub-line {
display: block; 
transition: color 0.4s ease, text-shadow 0.4s ease;
color: inherit;
}

.name-wrapper {
position: relative;
display: inline-flex; 
flex-direction: column;
align-items: flex-end; 
}

.hand-underline {
position: absolute;
bottom: -2px; 
left: 0;
width: 100%;
height: 12px;
pointer-events: none;
overflow: visible; 
}

.hand-underline path {
fill: none;
stroke: #00ff00; 
stroke-width: 5;
stroke-linecap:round;
stroke-dasharray: 300; 
stroke-dashoffset: 300; 
transition: stroke-dashoffset 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-card-v2:hover .hand-underline path {
stroke-dashoffset: 0; 
}

.about-subtitle .sub-line {
display: inline-block;
transition: color 0.4s ease, text-shadow 0.4s ease;
color: inherit; 
}

.about-card-v2:hover .sub-line:nth-child(3) {
transition-delay: 0.1s;
}

.about-main-content h1, 
.about-subtitle .sub-line {
backface-visibility: hidden;
-webkit-font-smoothing: antialiased;
}

.tech-stack-box {
background: #000 !important;
position: relative;
}

#three-canvas-wrapper {
mask-image: radial-gradient(circle, black 40%, transparent 80%);
}

.tech-overlay {
position: absolute;
bottom: -10%;
left: 50%;
transform: translateX(-50%);
width: 140%;
height: 40%;
background: radial-gradient(ellipse at bottom, rgba(39, 201, 63, 0.4) 0%, transparent 70%);
filter: blur(25px);
z-index: 5;
pointer-events: none;
}

#tech-three-container {
position: relative;
background: #000 !important;
min-height: 300px; 
}

#three-canvas-wrapper {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 1;
}

#three-canvas-wrapper {
cursor:crosshair;
}

.hacker-box {
background-color: #050505 !important;
font-family: 'Fira Code', 'Courier New', monospace;
position: relative;
}

.code-overlay {
position: absolute;
inset: 0;
padding: 20px;
overflow: hidden;
z-index: 2;
}

#code-writer {
font-size: 0.85rem;
line-height: 1.6;
color: rgba(39, 201, 63, 0.8); 
white-space: pre-wrap;
}

.code-keyword { color: #c678dd; }
.code-func { color: #61afef; }
.code-string { color: #98c379; }
.code-comment { color: #5c6370; font-style: italic; }

.hacker-label {
position: absolute;
top: 15px;
right: 15px;
font-size: 0.65rem;
color: #444;
text-transform: uppercase;
letter-spacing: 2px;
z-index: 3;
}

#code-writer {
min-height: 120px; 
}

@keyframes blink {
50% { opacity: 0; }
}

.flip-container {
perspective: 1200px;
padding: 0 !important; 
background: none !important;
border: none !important;
}

.flip-inner {
position: relative;
width: 100%;
height: 100%;
transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
transform-style: preserve-3d;
}

.flip-container.is-flipped .flip-inner {
transform: rotateY(180deg);
}

.flip-front, .flip-back {
position: absolute;
top: 0; left: 0;
width: 100%;
height: 100%;
backface-visibility: hidden; 
border: 1px solid rgba(255, 255, 255, 0.1);
}

.flip-back {
background: #050505;
transform: rotateY(180deg); 
padding: 25px;
display: flex;
flex-direction: column;
box-sizing: border-box;
}

.bio-body {
margin-top: 30px;
font-family: 'Courier New', monospace;
}

.bio-text { color: #fff; line-height: 1.5; font-size: 0.95rem; }
.highlight { color: #00d9ff; font-weight: bold; }

.bio-details {
margin: 20px 0;
padding: 15px;
background: rgba(0, 217, 255, 0.05);
border-left: 2px solid #00d9ff;
}

.bio-row {
display: flex;
justify-content: space-between;
font-size: 0.8rem;
margin-bottom: 8px;
color: #888;
}

.bio-row span:last-child { color: #00d9ff; }

.bio-quote {
font-style: italic;
color: #555;
font-size: 0.85rem;
text-align: center;
margin-top: 10px;
}

.btn-flip, .btn-return {
position: absolute;
bottom: 20px;
right: 20px;
cursor: pointer;
z-index: 10;
}

.flip-container {
perspective: 1000px;
background: transparent !important; 
}

.flip-inner {
position: relative;
width: 100%;
height: 100%;
transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
transform-style: preserve-3d; 
}

.flip-container.is-flipped .flip-inner {
transform: rotateY(180deg);
}

.flip-front, .flip-back {
position: absolute;
top: 0; 
left: 0;
width: 100%;
height: 100%;

-webkit-backface-visibility: hidden; 
backface-visibility: hidden;         

overflow: hidden; 
}

.flip-back {
transform: rotateY(180deg); 
background: #050505;        
border: 1px solid rgba(0, 217, 255, 0.2); 
z-index: 2;                 
}

.flip-front {
background: #111; 
z-index: 1;
transform: rotateY(0deg); 
}

#about-card-container {
position: relative;
overflow: hidden; 
}

.about-view {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
padding: 25px;
box-sizing: border-box;
display: flex;
flex-direction: column;
justify-content: space-between;

transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.view-front {
opacity: 1;
transform: translateY(0) scale(1);
pointer-events: all;
z-index: 2;
}

.about-view.hidden .view-front, 
.view-front.hidden {
opacity: 0;
transform: translateY(-20px) scale(0.98);
pointer-events: none;
}

.view-back {
opacity: 0;
transform: translateY(20px) scale(0.98); 
pointer-events: none;
z-index: 1;

background: rgba(10, 10, 10, 0.85); 
backdrop-filter: blur(10px); 
-webkit-backdrop-filter: blur(10px);
}

.view-back.active {
opacity: 1;
transform: translateY(0) scale(1);
pointer-events: all;
z-index: 3;
}

.bio-header h3 {
color: #fff;
margin: 0 0 10px 0;
font-size: 1.5rem;
}

.bio-line {
width: 40px;
height: 3px;
background: #27c93f; 
border-radius: 2px;
}

.bio-content-text {
color: #ccc;
font-size: 1rem;
line-height: 1.6;
margin-top: -20px; 
}

.bio-content-text p {
margin-bottom: 15px;
}

.highlight-text {
color: #fff;
font-weight: 600;
border-bottom: 1px dashed #27c93f;
}

.mini-stats {
display: flex;
gap: 15px;
margin-top: 10px;
font-size: 0.85rem;
color: #888;
font-family: monospace;
}

.action-btn, .return-btn {
align-self: flex-start; 
cursor: pointer;
border: 1px solid rgba(255,255,255,0.1);
transition: 0.3s;
background: rgba(255,255,255,0.05);
}

.action-btn:hover, .return-btn:hover {
background: rgba(39, 201, 63, 0.15); 
border-color: #27c93f;
transform: translateX(5px);
}

.view-front .about-main-content {
position: relative; 
top: auto; 
right: auto; 
transform: none;
width: 100%;
margin-top: auto; 
margin-bottom: auto;
}

.view-front .action-btn {
align-self: flex-end; 
text-align: right;    
}

.view-front .action-btn:hover {
transform: translateX(-5px); 
}

.view-back .return-btn {
align-self: flex-start;
}

.view-back .return-btn {
align-self: flex-end; 
margin-top: auto;     
}

.view-back .return-btn:hover {
background: rgba(39, 201, 63, 0.15);
border-color: #27c93f;
transform: translateX(-5px); 
}

.view-back {
display: flex;
flex-direction: column;
align-items: center;     
justify-content: center; 
text-align: center;      
gap: 15px;               
}

.bio-header {
display: flex;
flex-direction: column;
align-items: center;
margin-bottom: 10px;
}

.bio-line {
width: 50px;
height: 3px;
background: #27c93f;
border-radius: 2px;
margin-top: 8px;
box-shadow: 0 0 10px rgba(39, 201, 63, 0.5); 
}

.bio-content-text {
color: rgba(255, 255, 255, 0.85);
font-size: 0.95rem;
line-height: 1.6;
max-width: 90%; 
}

.lead-text {
font-size: 1.1rem;
font-weight: 500;
color: #fff;
margin-bottom: 12px;
}

.thesis-note {
font-size: 0.85rem;
color: #aaa;
margin-top: 15px;
padding: 8px 12px;
background: rgba(255, 255, 255, 0.05);
border-radius: 6px;
display: inline-block; 
}

.highlight-text {
color: #fff;
font-weight: bold;
color: #27c93f; 
}

.mini-stats {
display: flex;
gap: 15px;
justify-content: center;
font-size: 0.8rem;
color: #888;
font-family: 'Courier New', monospace;
margin-bottom: 10px;
}

.view-back .return-btn {
align-self: center; 
margin-top: 10px;

padding-left: 30px;
padding-right: 30px;
}

.view-back .return-btn:hover {
transform: translateY(-2px); 
background: rgba(39, 201, 63, 0.2);
border-color: #27c93f;
}


#sys-loader {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: #050505; 
z-index: 9999; 
display: flex;
justify-content: center;
align-items: center;
font-family: 'Courier New', monospace;
color: #00ff2f; 

transition: transform 0.8s cubic-bezier(0.7, 0, 0.3, 1);
}

#sys-loader.loaded {
transform: translateY(-100%); 
}

.loader-container {
width: 90%;
max-width: 600px;
}

.loader-header {
border-bottom: 1px solid rgba(0, 217, 255, 0.3);
padding-bottom: 10px;
margin-bottom: 20px;
font-size: 1.2rem;
font-weight: bold;
display: flex;
justify-content: space-between;
}

.boot-log {
height: 150px;
overflow: hidden; 
font-size: 0.85rem;
color: #aaa;
margin-bottom: 30px;
display: flex;
flex-direction: column;
justify-content: flex-end; 
opacity: 0.8;
}

.log-line {
margin: 2px 0;
}
.log-line.success { color: #27c93f; } 
.log-line.warning { color: #fce83a; } 

.loader-bar-wrapper {
margin-top: 10px;
}

.loader-info {
display: flex;
justify-content: space-between;
margin-bottom: 5px;
font-size: 0.8rem;
color: #00ff2f;
font-weight: bold;
}

.progress-track {
width: 100%;
height: 4px;
background: rgba(0, 217, 255, 0.1);
border-radius: 2px;
overflow: hidden;
}

.progress-fill {
height: 100%;
width: 0%;
background: #00ff2f;
box-shadow: 0 0 10px #00ff2f;
transition: width 0.1s linear;
}

.blink {
animation: blink 1s infinite;
}

@keyframes blink {
0%, 100% { opacity: 1; }
50% { opacity: 0; }
}

 :root {
  --cyber-green: #27c93f;
  --cyber-dark: #050805;
  --rot-speed-outer: 8s;  
  --rot-speed-middle: 5s; 
}

#sys-loader.cyber-loader {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background-color: var(--cyber-dark);
  z-index: 99999; 
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Courier New', monospace;
  color: var(--cyber-green);
  overflow: hidden;
  
  transition: transform 1s cubic-bezier(0.8, 0, 0.2, 1), opacity 0.8s ease-in;
}

#sys-loader.loaded {
  transform: scale(1.1) translateY(-100vh); 
  opacity: 0;
}

.loader-bg-grid {
  position: absolute;
  top: -50%; left: -50%; width: 200%; height: 200%;
  background-image: 
      linear-gradient(rgba(39, 201, 63, 0.1) 1px, transparent 1px),
      linear-gradient(90deg, rgba(39, 201, 63, 0.1) 1px, transparent 1px);
  background-size: 40px 40px; 
  transform: perspective(500px) rotateX(60deg); 
  animation: grid-move 10s linear infinite;
  opacity: 0.5;
  z-index: -1;
}

@keyframes grid-move {
  0% { background-position: 0 0; }
  100% { background-position: 0 40px; }
}

.scanline-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: repeating-linear-gradient(
      to bottom,
      transparent 0px,
      transparent 2px,
      rgba(0, 0, 0, 0.3) 3px
  );
  pointer-events: none;
  z-index: 10;
}

.loader-interface-container {
  position: relative;
  width: 90%; max-width: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hud-corner {
  position: absolute;
  font-size: 0.65rem;
  opacity: 0.7;
  letter-spacing: 1px;
}
.top-left { top: -100px; left: -50px; border-top: 1px solid; border-left: 1px solid; padding: 5px; }
.top-right { top: -100px; right: -50px; border-top: 1px solid; border-right: 1px solid; padding: 5px; text-align: right; }
.bottom-left { bottom: -100px; left: -50px; border-bottom: 1px solid; border-left: 1px solid; padding: 5px; }
.bottom-right { bottom: -100px; right: -50px; border-bottom: 1px solid; border-right: 1px solid; padding: 5px; text-align: right; }

.blink-fast { animation: blink 0.5s infinite; color: #fff; }

.reactor-container {
  position: relative;
  width: 180px; height: 180px;
  display: flex; justify-content: center; align-items: center;
  margin-bottom: 40px;
}

.reactor-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid transparent;
}

.reactor-ring.outer {
  width: 100%; height: 100%;
  border-top-color: var(--cyber-green);
  border-bottom-color: rgba(39, 201, 63, 0.3);
  animation: spin-cw var(--rot-speed-outer) linear infinite;
  box-shadow: 0 0 20px rgba(39, 201, 63, 0.2);
}

.reactor-ring.middle {
  width: 75%; height: 75%;
  border-left-color: var(--cyber-green);
  border-right-color: rgba(39, 201, 63, 0.3);
  animation: spin-ccw var(--rot-speed-middle) linear infinite;
}

.reactor-ring.inner {
  width: 60%; height: 60%;
  border: 1px dashed var(--cyber-green);
  opacity: 0.5;
  animation: pulse-glow 2s ease-in-out infinite;
}

.reactor-core {
  display: flex; align-items: baseline;
  z-index: 5;
  text-shadow: 0 0 15px var(--cyber-green);
}

#load-percent-big {
  font-size: 3rem; font-weight: bold;
}
.percent-unit { font-size: 1rem; margin-left: 2px; }

@keyframes spin-cw { 100% { transform: rotate(360deg); } }
@keyframes spin-ccw { 100% { transform: rotate(-360deg); } }
@keyframes pulse-glow { 0%, 100% { box-shadow: 0 0 5px var(--cyber-green) inset; } 50% { box-shadow: 0 0 20px var(--cyber-green) inset; opacity: 0.8; } }

.terminal-window {
  width: 100%;
  border: 1px solid rgba(39, 201, 63, 0.3);
  background: rgba(5, 8, 5, 0.8);
  margin-bottom: 25px;
  position: relative;
}
.terminal-window::before { content: ''; position: absolute; top: -1px; left: -1px; width: 10px; height: 10px; border-top: 2px solid var(--cyber-green); border-left: 2px solid var(--cyber-green); }
.terminal-window::after { content: ''; position: absolute; bottom: -1px; right: -1px; width: 10px; height: 10px; border-bottom: 2px solid var(--cyber-green); border-right: 2px solid var(--cyber-green); }

.terminal-header {
  background: rgba(39, 201, 63, 0.1);
  padding: 5px 10px;
  font-size: 0.75rem; border-bottom: 1px solid rgba(39, 201, 63, 0.2);
}

.boot-log-cyber {
  height: 100px; 
  overflow: hidden;
  padding: 10px;
  font-size: 0.8rem;
  color: rgba(39, 201, 63, 0.8);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.log-line.success { color: #fff; text-shadow: 0 0 5px #fff; }
.log-line.warning { color: #ffff00; }

.cyber-progress-wrapper { width: 100%; }
.progress-label { font-size: 0.7rem; margin-bottom: 5px; letter-spacing: 2px; }

.cyber-track {
  height: 6px;
  background: rgba(39, 201, 63, 0.1);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(39, 201, 63, 0.3);
}

.cyber-fill {
  height: 100%; width: 0%;
  background: var(--cyber-green);
  box-shadow: 0 0 15px var(--cyber-green);
  position: relative;
}
.cyber-fill::after {
  content: ''; position: absolute; top: 0; right: 0;
  width: 20px; height: 100%;
  background: linear-gradient(90deg, transparent, #fff);
  opacity: 0.6;
}


.slider-window {
  height: 1.2em; 
  overflow: hidden;
  display: inline-block;
  vertical-align: bottom;
  margin-left: 6px;
  position: relative;
  top: 2px; 
}

.slider-track {
  display: flex;
  flex-direction: column;
  
  animation: scroll-vertical 8s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.slider-track span {
  height: 1.2em; 
  display: block;
  line-height: 1.2em;
  font-weight: bold;
  color: #fff;
}


@keyframes scroll-vertical {
0%, 20% {
    transform: translateY(0%);
}
25%, 45% {
    transform: translateY(-20%); 
}
50%, 70% {
    transform: translateY(-40%); 
}
75%, 95% {
    transform: translateY(-60%); 
}
100% {
    transform: translateY(-80%); 
    
}
}



.crypto-terminal {
background: #0a0a0a !important;

display: flex; flex-direction: column;

padding:0px !important; 
position: relative; overflow: hidden;
height: 100%;     
width: 100%;
}

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

margin-bottom: 15px; 
border-bottom: 1px solid rgba(255,255,255,0.1);
padding-bottom: 10px; 
flex-shrink: 0;
}

.market-symbol { font-weight: 700; color: #fff; font-size: 0.85rem; margin-right: 8px; }
.market-badge { font-size: 0.6rem; color: #666; background: rgba(255,255,255,0.05); padding: 2px 6px; border-radius: 4px; }
.connection-status { font-size: 0.6rem; color: #27c93f; font-weight: bold; animation: pulse-dot 2s infinite; }

.terminal-body {
display: flex; flex-direction: row; height: 100%; min-height: 0; gap: 20px;
}

.data-column {
display: flex; flex-direction: column; justify-content: center;
flex-shrink: 0; min-width: 120px;
}

.price-group { display: flex; align-items: flex-start; margin-bottom: 15px; font-variant-numeric: tabular-nums; }
.currency-sign { font-size: 1rem; color: #666; margin-top: 2px; margin-right: 2px; }
.main-price { font-size: 1.8rem; font-weight: 800; color: #fff; letter-spacing: -1px; line-height: 1; }

.stats-list { display: flex; flex-direction: column; gap: 6px; }
.stat-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.7rem; border-bottom: 1px dashed rgba(255,255,255,0.05); padding-bottom: 2px; }
.stat-label { color: #666; }
.stat-val { font-weight: 600; color: #ccc; font-variant-numeric: tabular-nums; }

.chart-column {
flex-grow: 1; position: relative; height: 100%; min-width: 0;

}

#finance-chart { width: 100%; height: 100%; display: block; }

.grid-overlay {
position: absolute; top: 0; left: 0; width: 100%; height: 100%;
background: linear-gradient(to bottom, transparent 50%, rgba(39, 201, 63, 0.02) 51%, transparent 51%);
background-size: 100% 4px; pointer-events: none;
}

.text-green { color: #27c93f !important; }
.text-red { color: #ff5f56 !important; }
@keyframes pulse-dot { 0% { opacity: 1; } 50% { opacity: 0.3; } }

.crypto-body {
display: flex; 
flex-direction: row; 
height: 100%; 
min-height: 0; 
overflow: hidden; 

}

.terminal-box .terminal-body {
display: block; 
flex-direction: column;
overflow-y: auto; 
width: 100%;
height: 100%;
}

.terminal-box {

padding: 0 !important; 
 
background: #0a0a0a !important; 
display: flex;
flex-direction: column; 
height: 100%;
overflow: hidden; 
border: 1px solid #333;
position: relative;
}

@media screen and (max-width: 770px) and (min-width: 760px) {
.location-box .map-marker{
  margin-top: -26px;
  margin-right: 2px;

}

}

@media screen and (max-width: 770px) {
  
.bento-grid {
    
    display: flex !important;
    flex-direction: column;
    gap: 20px;
}


.about-card-container {
    order: 1;
    min-height: auto; 
}


.work-box {
    order: 2;
}


.edu-box {
    order: 3;

}


.tech-stack-box {
    order: 4;
    min-height: 300px; 
}


.projects-box {
    order: 5;
}


.terminal-box {
    order: 6;
    min-height: 250px; 
    max-height: 250px;
}


.crypto-terminal {
    order: 7;
    max-height: 350px; 
}
 
.location-box {
    order: 8;
    min-height: 200px;
}


.hacker-box {
    order: 9;
    display: none; 
}


.social-box {
    order: 10;
    min-height: 355px;
}
.crypto-terminal{
    max-height: 250px;

  
}
}

 @media screen and (max-width: 768px) {
  .about-card-v2 .view-front {
    padding: 15px 10px !important;
    justify-content: flex-end; 
    align-items: flex-end;     
    text-align: right;
}

.about-card-v2 h1 {
    font-size: 1.6rem !important; 
    margin-bottom: 0;
    line-height: 1;
}
 
.hand-underline {
    width: 80px !important;
    margin-top: -4px;
    margin-bottom: 5px;
}

.about-subtitle {
    font-size: 0.7rem !important; 
    line-height: 1.2;
    max-width: 65%; 
    margin-bottom: 8px; 
}

.about-card-v2 .action-btn {
    padding: 5px 12px;
    font-size: 0.65rem;
    height: 26px;
    margin-bottom: 0; 
}


.about-card-v2 .view-back {
    
    padding: 8px 6px !important;
    justify-content: space-between; 
    overflow: hidden;
    background-color: #000;
}

.about-card-v2 .bio-header h3 {
    font-size: 0.9rem;
    margin: 0;
}
.about-card-v2 .bio-line {
    margin: 2px auto 4px auto;
    height: 1px;
}

.about-card-v2 .bio-content-text p {
    font-size: 0.65rem; 
    line-height: 1.25;
    margin-bottom: 4px; 
}

.about-card-v2 .thesis-note {
    font-size: 0.6rem;
    padding: 3px 6px;
    margin-top: 2px;
    display: inline-block;
}

.about-card-v2 .mini-stats {
    margin: 4px 0;
    gap: 3px;
}
.about-card-v2 .stat {
    font-size: 0.55rem;
    padding: 2px 5px;
}

.about-card-v2 .return-btn {
    padding: 4px 10px;
    font-size: 0.65rem;
    height: 24px;
    line-height: 1;
    margin-top: 0;
}
  .loader-interface-container {
      width: 100%;
      height: 100%;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      padding: 0;
  }
  
.about-card-v2 .view-back {
position: relative !important; 
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
height: 100%;
background-color:#1a1a1a;
 
padding: 10px 10px 50px 10px !important; 
 
overflow: hidden; 
}

.about-card-v2 .bio-header h3 {
font-size: 0.95rem;
margin: 0;
flex-shrink: 0; 
}

.about-card-v2 .bio-line {
margin: 2px auto 4px auto;
height: 1px;
width: 20px;
flex-shrink: 0;
}

.about-card-v2 .bio-content-text {
width: 100%;

flex-grow: 1; 

overflow-y: auto; 
min-height: 0; 
 
display: flex;
flex-direction: column;
justify-content: flex-start; 
padding-bottom: 5px;

}

.about-card-v2 .bio-content-text p {
font-size: 0.65rem;  
line-height: 1.25;
margin-bottom: 6px;
color: #ccc;
}

.about-card-v2 .thesis-note {
font-size: 0.55rem;
padding: 4px;
background: rgba(255, 255, 255, 0.05);
border-radius: 4px;
margin-top: 2px;
flex-shrink: 0; 
}

.about-card-v2 .mini-stats {
margin: 0;
gap: 3px;
display: flex;
flex-wrap: wrap;
justify-content: center;
flex-shrink: 0;

padding-bottom: 5px;
 
}

.about-card-v2 .stat {
font-size: 0.55rem;
padding: 1px 4px;
border: 1px solid #333;
}

.about-card-v2 .return-btn {
position: absolute; 
bottom: 8px;        
left: 50%;
transform: translateX(-50%); 
 
z-index: 10;        
margin: 0;
padding: 0;
width: 100px;
height: 26px;
font-size: 0.65rem;
 
box-shadow: 0 -4px 10px rgba(0,0,0,0.8); 
 
display: flex;
align-items: center;
justify-content: center;
}
  .hud-corner {
      font-size: 10px; 
      padding: 10px;
      max-width: 140px; 
      line-height: 1.2;
  }
   
  @media (max-height: 600px) {
      .hud-corner.bottom-left, 
      .hud-corner.bottom-right {
          display: none;
      }
  }

  .reactor-container {
      transform: scale(0.75); 
      margin-bottom: 10px;
      
      margin-top: -20px; 
  }

  .terminal-window {
      width: 90%;       
      height: 140px;    
      margin-bottom: 20px;
  }
   
  .term-title {
      font-size: 0.7rem;
  }
   
  #boot-log {
      font-size: 0.7rem; 
  }

  .cyber-progress-wrapper {
      width: 85%;
  }
   
  .progress-label {
      font-size: 0.8rem;
  }
}

@media screen and (max-width: 380px) {
  .reactor-container {
      transform: scale(0.6); 
  }
  .hud-corner {
      font-size: 9px;
  }
   
}

 @media screen and (min-width: 769px) and (max-width: 1180px) {

  .bento-grid {
      
      display: flex !important;
      flex-wrap: wrap;
      gap: 20px;
      
      grid-template-columns: none;
      grid-template-rows: none;
      height: 100%;
  }
   
  .grid-item {
      width: calc(50% - 10px);
      min-height: 250px;
      order: 100; 
  }
  .crypto-terminal {
    order: 7;
    min-height: 300px;
}.terminal-box {
  order: 6;
  min-height: 300px;
}
.location-box {
order: 10;
min-height: 200px;
}.social-box {
order: 9;

}
.projects-box {
order: 5;
max-height: 450px;

}.tech-stack-box {
order: 4;
max-height: 450px;
}
.hacker-box {
order:9;
}

.edu-box {
order: 3;

}
.work-box {
order: 2;

}


.about-card-v2 {
order: 1;
width: 100%;
min-height: 350px;
}
 
.about-card-v2 .view-back {
padding: 15px 20px !important; 
display: flex;
flex-direction: column;
justify-content: center; 
align-items: center;     
text-align: center;      
}

.about-card-v2 .bio-header h3 {
font-size: 1.2rem;       
margin-bottom: 5px;      
}

.about-card-v2 .bio-line {
margin: 5px auto 10px auto; 
width: 40px;
}

.about-card-v2 .bio-content-text {
width: 100%;
}

.about-card-v2 .bio-content-text p {
font-size: 0.8rem;      
line-height: 1.4;       
margin-bottom: 8px;     
}

.about-card-v2 .lead-text {
font-size: 0.9rem;      
margin-bottom: 10px;
}

.about-card-v2 .mini-stats {
margin: 5px 0 10px 0;
gap: 6px;
justify-content: center;
}

.about-card-v2 .stat {
font-size: 0.65rem;
padding: 4px 8px;
}

.about-card-v2 .return-btn {
margin-top: 5px;        
padding: 6px 16px;      
font-size: 0.75rem;
}
}

#three-vibe-container {
width: 100%;
height: 100%;
background: radial-gradient(circle at center, rgba(39, 201, 63, 0.08) 0%, transparent 60%);
}

#three-vibe-container canvas {
display: block; 
outline: none;
}

.pulsing-dot-red {
width: 8px;
height: 8px;
background-color: #ff5f56;
border-radius: 50%;
display: inline-block;
margin-right: 8px;
box-shadow: 0 0 0 0 rgba(255, 95, 86, 0.7);
animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 95, 86, 0.7);
}
70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(255, 95, 86, 0);
}
100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 95, 86, 0);
}
}

.clock-card {
background: #0b0b0b;
display: flex;
flex-direction: column;
justify-content: center;
padding: 15px;
position: relative;
transition: background 0.3s ease;
}

.clock-card:hover {
background: #111;
}

.card-top {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 8px;
}

.city-code {
font-family: 'Inter', sans-serif; 
font-weight: 700;
font-size: 12px;
color: #888;
letter-spacing: 0.5px;
}

.utc-offset {
font-family: monospace;
font-size: 9px;
color: #444;
background: #151515;
padding: 2px 4px;
border-radius: 2px;
}

.digital-time {
font-family: 'Courier New', monospace;
font-size: 24px;
font-weight: 400;
color: #e0e0e0;
letter-spacing: -0.5px;
margin-bottom: 12px;
}

.solar-track-rail {
width: 100%;
height: 4px;
background: #1a1a1a;
border-radius: 2px;
position: relative;
overflow: hidden;
}

.time-needle {
position: absolute;
top: -2px; 
bottom: -2px;
width: 2px;
background: #fff;
box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
z-index: 2;
transform: translateX(-50%);
border-radius: 2px;
}

.solar-status {
font-family: monospace;
font-size: 9px;
color: #555;
margin-top: 6px;
text-align: right;
opacity: 0; 
transition: opacity 0.5s;
}

.clock-card {
background: #0b0b0b;
display: flex;
flex-direction: column;
justify-content: center;
padding: 15px;
position: relative;
transition: background 0.3s ease;
}

.clock-card:hover {
background: #111;
}

.card-top {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 8px;
}

.city-code {
font-family: 'Inter', sans-serif; 
font-weight: 700;
font-size: 12px;
color: #888;
letter-spacing: 0.5px;
}

.utc-offset {
font-family: monospace;
font-size: 9px;
color: #444;
background: #151515;
padding: 2px 4px;
border-radius: 2px;
}

.digital-time {
font-family: 'Courier New', monospace;
font-size: 24px;
font-weight: 400;
color: #e0e0e0;
letter-spacing: -0.5px;
margin-bottom: 12px;
}

.solar-track-rail {
width: 100%;
height: 4px;
background: #1a1a1a;
border-radius: 2px;
position: relative;
overflow: hidden;
}

.time-needle {
position: absolute;
top: -2px; 
bottom: -2px;
width: 2px;
background: #fff;
box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
z-index: 2;
transform: translateX(-50%);
border-radius: 2px;
}

.solar-status {
font-family: monospace;
font-size: 9px;
color: #555;
margin-top: 6px;
text-align: right;
opacity: 0; 
transition: opacity 0.5s;
}

.solar-status {
  font-family: monospace;
  font-size: 9px;
  font-weight: 600;
  margin-top: 6px;
  text-align: right;
  transition: color 0.3s;
}

.status-night { color: #444; }
.status-day { color: #a3a3a3; }
.status-sun { color: #ffbd2e; text-shadow: 0 0 5px rgba(255, 189, 46, 0.4); } 

.solar-status {
font-family: monospace;
font-size: 9px;
font-weight: 600;
margin-top: 6px;
text-align: right;
transition: color 0.3s;

opacity: 1 !important; 
display: block !important;
}

.status-night { 
color: #666; 
}

.status-day { 
color: #fff; 
text-shadow: 0 0 2px rgba(255,255,255,0.3);
}

.status-sun { 
color: #ffbd2e; 
text-shadow: 0 0 8px rgba(255, 189, 46, 0.6); 
}

.finder-item {
width: 80px;
height: 70px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
cursor: pointer;
border: 1px solid transparent;
border-radius: 4px;
transition: 0.2s;
}
.finder-item:hover {
background: rgba(39, 201, 63, 0.1);
border-color: #1a4d20;
}
.finder-icon {
font-size: 24px;
margin-bottom: 5px;
}
.finder-label {
font-family: monospace;
font-size: 10px;
color: #fff;
text-align: center;
word-break: break-all;
line-height: 1.2;
}
.file-viewer {
width: 100%;
font-family: monospace;
color: #bbb;
font-size: 12px;
line-height: 1.5;
animation: fadeIn 0.3s ease;
}
.file-viewer h3 { color: #27c93f; margin: 0 0 10px 0; border-bottom: 1px dashed #1a4d20; padding-bottom: 5px; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

.clock-card {
background: #0b0b0b;
display: flex;
flex-direction: column;
justify-content: center;
padding: 15px;
position: relative;
transition: background 0.3s ease;
}
.clock-card:hover {
background: #111;
}
.card-top {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 8px;
}
.city-code {
font-family: 'Inter', sans-serif;
font-weight: 700;
font-size: 12px;
color: #888;
letter-spacing: 0.5px;
}
.utc-offset {
font-family: monospace;
font-size: 9px;
color: #444;
background: #151515;
padding: 2px 4px;
border-radius: 2px;
}
.digital-time {
font-family: 'Courier New', monospace;
font-size: 24px;
font-weight: 400;
color: #e0e0e0;
letter-spacing: -0.5px;
margin-bottom: 12px;
}
.solar-track-rail {
width: 100%;
height: 4px;
background: #1a1a1a;
border-radius: 2px;
position: relative;
overflow: hidden;
}
.time-needle {
position: absolute;
top: -2px;
bottom: -2px;
width: 2px;
background: #fff;
box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
z-index: 2;
transform: translateX(-50%);
border-radius: 2px;
}
.solar-status {
font-family: monospace;
font-size: 9px;
font-weight: 600;
margin-top: 6px;
text-align: right;
transition: color 0.3s;
opacity: 1 !important; 
display: block !important;
}
.status-night { 
color: #666;
}
.status-day { 
color: #fff;
text-shadow: 0 0 2px rgba(255,255,255,0.3);
}
.status-sun { 
color: #ffbd2e;
text-shadow: 0 0 8px rgba(255, 189, 46, 0.6); 
}
.pulsing-dot-red {
width: 8px;
height: 8px;
background-color: #ff5f56;
border-radius: 50%;
display: inline-block;
margin-right: 8px;
box-shadow: 0 0 0 0 rgba(255, 95, 86, 0.7);
animation: pulse-red 2s infinite;
}
@keyframes pulse-red {
0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 95, 86, 0.7); }
70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(255, 95, 86, 0); }
100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 95, 86, 0); }
}

/* --- WORLD TIME RESPONSIVE FIX --- */

/* Standard (Desktop): 4 Nebeneinander */
#clock-grid {
  grid-template-columns: repeat(4, 1fr);
}

/* Tablet & iPad (bis 1024px): 2 Spalten, 2 Reihen */
@media screen and (max-width: 1024px) {
  #clock-grid {
      grid-template-columns: repeat(2, 1fr) !important;
  }
  
  /* Damit die Karten auf Touchscreens etwas griffiger sind */
  .clock-card {
      padding: 20px 10px !important;
      border-bottom: 1px solid #1a1a1a; 
  }
}

/* Mobile & iPhone (bis 600px) */
@media screen and (max-width: 600px) {
  #clock-grid {
      /* Hier entscheiden: 
         repeat(2, 1fr) = 2 nebeneinander (Dashboard Look)
         1fr = Untereinander (Liste Look) 
      */
      grid-template-columns: repeat(2, 1fr) !important; 
  }

  .city-code {
      font-size: 11px; /* Etwas kleinerer Text für enge Screens */
  }
  
  .digital-time {
      font-size: 18px; /* Zeit passt besser rein */
  }
}

/* --- WORLD TIME RESPONSIVE & ADAPTIVE --- */

/* 1. Basis-Layout (Große Monitore): 4 nebeneinander */
#clock-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 Spalten */
  gap: 1px;
  background: #1a1a1a;
  width: 100%;
}

/* Damit die Karten nicht überlaufen */
.clock-card {
  min-width: 0; /* WICHTIG: Verhindert, dass Flexbox/Grid-Items ausbrechen */
  word-wrap: break-word;
}

/* 2. Laptops & Tablets (Alles unter 1300px Breite): 2x2 Grid */
/* Hier brechen wir früher um, damit es sich der Box anpasst */
@media screen and (max-width: 1300px) {
  #clock-grid {
      grid-template-columns: repeat(2, 1fr) !important; /* 2 Spalten */
  }
  
  .clock-card {
      padding: 15px 10px !important; /* Etwas weniger Padding an den Seiten */
      border-bottom: 1px solid #1a1a1a; /* Trennlinien hinzufügen */
  }
}

/* 3. Mobile (Sehr kleine Screens unter 450px) */
@media screen and (max-width: 450px) {
  #clock-grid {
      /* Optional: Auf ganz kleinen Handys untereinander */
      /* grid-template-columns: 1fr !important; */ 
      
      /* Oder bei 2 bleiben, aber Schrift kleiner: */
      grid-template-columns: repeat(2, 1fr) !important;
  }

  .digital-time {
      font-size: 18px; /* Schriftgröße anpassen */
  }
  
  .city-code {
      font-size: 10px;
  }
}

/* --- FIX: WORLD TIME RESPONSIVE HEIGHT --- */

/* 1. Genereller Fix für den Grid-Container */
#clock-grid {
  /* Stellt sicher, dass bei Überlauf gescrollt werden KANN, falls nötig */
  overflow-y: auto; 
  min-height: 0; /* Wichtig für Flexbox-Verschachtelung */
  scrollbar-width: thin; /* Dünner Scrollbalken (Firefox) */
  scrollbar-color: #333 #1a1a1a;
}

/* 2. Anpassung für Laptops & kleine Desktops (bis 1300px Breite) */
@media screen and (max-width: 1300px) {
  
  /* Layout auf 2 Spalten zwingen */
  #clock-grid {
      grid-template-columns: repeat(2, 1fr) !important;
      gap: 1px;
  }

  /* --- KOMPAKT-MODUS DAMIT ALLES PASST --- */
  
  .clock-card {
      /* Weniger Innenabstand (Padding) */
      padding: 8px 12px !important; 
      
      /* Damit die Karten nicht zu hoch werden */
      justify-content: space-between;
  }

  /* Schriftgrößen anpassen */
  .digital-time {
      font-size: 1.2rem; /* Etwas kleiner als vorher (war oft 1.5rem+) */
      margin-bottom: 4px; /* Weniger Abstand nach unten */
  }

  .card-top {
      margin-bottom: 2px; /* Weniger Abstand nach oben */
  }

  .city-code {
      font-size: 0.7rem;
  }

  .utc-offset {
      font-size: 0.6rem;
      padding: 1px 4px;
  }

  .solar-status {
      margin-top: 4px; /* Status näher an den Balken rücken */
      font-size: 0.6rem;
  }
  
  /* Balken etwas dünner machen */
  .solar-track-rail {
      height: 3px;
  }
  .time-needle {
      top: -1px;
      bottom: -1px;
  }
}

@media screen and (max-height: 700px) {
  .terminal-box {
      /* Erlaubt der Box zu wachsen, falls nötig */
      min-height: 250px !important; 
      max-height: none !important;
  }
}