:root {
  --bg-dark: #121212;
  --bg-card: #1e1e1e;
  --bg-terminal: #252526;
  --accent: #ccff00;
  --text-main: #e0e0e0;
  --text-muted: #858585;
  --border-dim: #333333;
}
body {
  font-family: "Inter", sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
}
.font-mono {
  font-family: "JetBrains Mono", monospace;
}
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #444;
}
* {
  scrollbar-width: thin;
  scrollbar-color: #333 var(--bg-dark);
}
.folder-tab {
  clip-path: polygon(0 0, 85% 0, 100% 100%, 0% 100%);
}
.orbit-container {
  position: relative;
  width: 100%;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.orbit-ring {
  border: 1px dashed var(--border-dim);
  border-radius: 50%;
  position: absolute;
}
.skill-dot {
  position: absolute;
  background-color: var(--bg-card);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-family: "JetBrains Mono", monospace;
  white-space: nowrap;
  z-index: 10;
  cursor: pointer;
  transition: all 0.3s ease;
}
.skill-dot:hover {
  background-color: var(--accent);
  color: black;
  transform: scale(1.1);
}
.skill-tooltip {
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background-color: black;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  border: 1px solid var(--accent);
}
.skill-dot:hover .skill-tooltip {
  opacity: 1;
}
.cursor-block {
  display: inline-block;
  width: 10px;
  height: 1.2em;
  background-color: var(--accent);
  vertical-align: middle;
  margin-left: 2px;
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}
.bg-grid {
  background-size: 40px 40px;
  background-image:
    linear-gradient(to right, #2a2a2a 1px, transparent 1px),
    linear-gradient(to bottom, #2a2a2a 1px, transparent 1px);
}
.pulsing-dot {
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border-radius: 50%;
  position: relative;
}
.pulsing-dot::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #22c55e;
  animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}
@keyframes pulse-ring {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(3);
    opacity: 0;
  }
}
.connector-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--border-dim),
    transparent
  );
  transform-origin: 0 50%;
  opacity: 0.5;
  z-index: 1;
}
.timeline-line {
  position: absolute;
  left: 19px;
  top: 0;
  bottom: 0;
  width: 2px;
  background-image: linear-gradient(
    to bottom,
    var(--border-dim) 50%,
    transparent 50%
  );
  background-size: 2px 10px;
}
/* === Interactive Orbit === */
.orbit-ring-visual {
  border: 1px dashed #888;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition:
    border-color 0.5s ease,
    box-shadow 0.5s ease;
  pointer-events: none;
}
.orbit-ring-visual.active {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(204, 255, 0, 0.08);
  opacity: 0.7 !important;
}
.orbit-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  background: var(--bg-dark);
  border: 2px solid var(--accent);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(204, 255, 0, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}
.orbit-center:hover {
  box-shadow: 0 0 40px rgba(204, 255, 0, 0.4);
  transform: translate(-50%, -50%) scale(1.05);
}
.skill-orb {
  position: absolute;
  top: 50%;
  left: 50%;
  background-color: var(--bg-card);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 5px 14px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-family: "JetBrains Mono", monospace;
  white-space: nowrap;
  z-index: 10;
  cursor: pointer;
  transition:
    background-color 0.3s,
    color 0.3s,
    box-shadow 0.3s,
    opacity 0.3s,
    border-color 0.3s;
  user-select: none;
  will-change: transform;
}
.skill-orb.ring-2 {
  border-color: #555;
  color: #ccc;
}
.skill-orb.ring-3 {
  border-color: #444;
  color: #888;
  font-size: 0.7rem;
}
.skill-orb.ring-4 {
  border-color: #777;
  color: #bbb;
  font-size: 0.65rem;
  padding: 4px 10px;
}
.skill-orb:hover {
  background-color: var(--accent);
  color: black;
  box-shadow: 0 0 20px rgba(204, 255, 0, 0.5);
  z-index: 25;
}
.skill-orb.highlighted {
  background-color: var(--accent) !important;
  color: black !important;
  border-color: var(--accent) !important;
  box-shadow: 0 0 15px rgba(204, 255, 0, 0.4);
}
.skill-orb.dimmed {
  opacity: 0.15;
  border-color: var(--border-dim) !important;
  color: var(--text-muted) !important;
}
.skill-orb.active-skill {
  background-color: var(--accent) !important;
  color: black !important;
  box-shadow: 0 0 30px rgba(204, 255, 0, 0.6);
  z-index: 25;
}
.skill-detail-panel {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--bg-dark);
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 16px 20px;
  z-index: 30;
  min-width: 260px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  box-shadow: 0 0 30px rgba(204, 255, 0, 0.15);
}
.skill-detail-panel.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.detail-level-bar {
  height: 4px;
  background: var(--border-dim);
  border-radius: 2px;
  overflow: hidden;
}
.detail-level-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.8s ease;
}
/* === Category Cards === */
.category-card {
  cursor: pointer;
  transition: all 0.3s ease;
}
.category-card:hover {
  border-left-color: var(--accent) !important;
}
.category-card.active {
  border-left-color: var(--accent) !important;
  border-left-width: 3px;
  background-color: rgba(204, 255, 0, 0.03);
}
.category-card.active h4 {
  color: var(--accent) !important;
}
.category-skills-list {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}
.category-card.active .category-skills-list {
  max-height: 400px;
}
.cat-arrow {
  transition: transform 0.3s ease;
  font-size: 18px;
}
.category-card.active .cat-arrow {
  transform: rotate(180deg);
}
.skill-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.skill-pill {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  line-height: 1;
  padding: 6px 10px;
  border: 2px solid var(--border-dim);
  border-radius: 9999px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
  transition:
    border-color 0.3s ease,
    color 0.3s ease;
}
.category-card.active .skill-pill {
  border-color: rgba(204, 255, 0, 0.55);
  color: var(--accent);
}
.prof-bar {
  height: 3px;
  background: var(--border-dim);
  border-radius: 2px;
  overflow: hidden;
}
.prof-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #9acc00);
  border-radius: 2px;
  width: 0;
  transition: width 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
/* === Scroll Reveal === */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal-delay-2 {
  transition-delay: 0.2s;
}
.reveal-delay-3 {
  transition-delay: 0.3s;
}
.reveal-delay-4 {
  transition-delay: 0.4s;
}
/* === Orbit ring rotation === */
.orbit-ring-visual.ring-1 {
  width: 200px;
  height: 200px;
  opacity: 0.8;
  animation: ring-spin 60s linear infinite;
}
.orbit-ring-visual.ring-2 {
  width: 350px;
  height: 350px;
  opacity: 0.65;
  animation: ring-spin 90s linear infinite reverse;
}
.orbit-ring-visual.ring-3 {
  width: 500px;
  height: 500px;
  opacity: 0.5;
  animation: ring-spin 120s linear infinite;
}
.orbit-ring-visual.ring-4 {
  width: 640px;
  height: 640px;
  opacity: 0.4;
  animation: ring-spin 150s linear infinite reverse;
}
@keyframes ring-spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
/* === Connector SVG lines === */
.orbit-connectors {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}
.orbit-connectors line {
  stroke: var(--accent);
  stroke-width: 0.5;
  stroke-dasharray: 4 6;
  opacity: 0.12;
  transition: opacity 0.5s ease;
}
.orbit-connectors line.active-line {
  opacity: 0.4;
  stroke-width: 1;
}
/* === Stat counter animation === */
.stat-number {
  display: inline-block;
}
/* === Mini project enhanced hover === */
.mini-card {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.mini-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(204, 255, 0, 0.03),
    transparent
  );
  transition: left 0.5s ease;
}
.mini-card:hover::before {
  left: 100%;
}
.mini-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
/* === Live badge pulse === */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.6rem;
  font-family: "JetBrains Mono", monospace;
  color: #22c55e;
  border: 1px solid #22c55e;
  padding: 1px 6px;
  border-radius: 9999px;
}
.live-badge::before {
  content: "";
  width: 5px;
  height: 5px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse-ring 2s ease infinite;
  margin-top: 4px;
  margin-left: 2px;
  margin-right: -2px;
}
/* === Project card enhanced === */
.project-card {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}
/* === Burger Menu === */
.burger-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  z-index: 60;
  background: none;
  border: none;
}
.burger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.burger-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.burger-btn.active span:nth-child(2) {
  opacity: 0;
}
.burger-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}
.mobile-menu {
  display: flex;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-dark);
  z-index: 45;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}
.mobile-menu.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu a {
  font-family: "JetBrains Mono", monospace;
  font-size: 1.25rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.mobile-menu a:hover {
  color: var(--accent);
}
/* === Responsive === */
@media (max-width: 768px) {
  .burger-btn {
    display: flex;
  }
  .nav-links {
    display: none !important;
  }
  /* Orbit scaling */
  .orbit-ring-visual.ring-1 {
    width: 120px !important;
    height: 120px !important;
  }
  .orbit-ring-visual.ring-2 {
    width: 210px !important;
    height: 210px !important;
  }
  .orbit-ring-visual.ring-3 {
    width: 300px !important;
    height: 300px !important;
  }
  .orbit-ring-visual.ring-4 {
    width: 380px !important;
    height: 380px !important;
  }
  .orbit-center {
    width: 56px;
    height: 56px;
  }
  .orbit-center .material-symbols-outlined {
    font-size: 1.2rem;
  }
  .orbit-center span:last-child {
    font-size: 7px;
  }
  .skill-orb {
    font-size: 0.6rem !important;
    padding: 3px 8px !important;
  }
  .skill-detail-panel {
    min-width: 200px;
    left: 50%;
    transform: translateX(-50%);
    bottom: 10px;
  }
  #orbitViz {
    min-height: 400px;
    padding: 1rem;
  }
  /* Section headings */
  section h2 {
    font-size: 1.5rem !important;
  }
  section .text-xl {
    font-size: 1rem;
  }
  /* Project cards */
  #projects .flex.overflow-x-auto article {
    width: 100% !important;
    min-width: 100% !important;
  }
  /* Category sidebar */
  .category-skills-list .text-xs {
    font-size: 0.7rem;
  }
  /* Spacing */
  main {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  main > section {
    margin-bottom: 3rem;
  }
}
@media (max-width: 480px) {
  .orbit-ring-visual.ring-1 {
    width: 100px !important;
    height: 100px !important;
  }
  .orbit-ring-visual.ring-2 {
    width: 170px !important;
    height: 170px !important;
  }
  .orbit-ring-visual.ring-3 {
    width: 240px !important;
    height: 240px !important;
  }
  .orbit-ring-visual.ring-4 {
    width: 310px !important;
    height: 310px !important;
  }
  .orbit-center {
    width: 46px;
    height: 46px;
  }
  .skill-orb {
    font-size: 0.55rem !important;
    padding: 2px 6px !important;
  }
  #orbitViz {
    min-height: 320px;
    padding: 0.5rem;
  }
  /* Headings smaller */
  section h2 {
    font-size: 1.25rem !important;
  }
  /* Project cards smaller */
  #projects .flex.overflow-x-auto article {
    width: 100% !important;
    min-width: 100% !important;
  }
  /* Stats */
  .stat-number {
    font-size: 1.5rem;
  }
  /* Contact padding */
  #contact > div {
    padding: 1.5rem !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .orbit-ring-visual,
  .cursor-block,
  .pulsing-dot::after,
  .live-badge::before {
    animation: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
