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

:root {
  --bg: #0a0a0f;
  --surface: #111118;
  --border: #1e1e2e;
  --accent: #7c6af7;
  --accent2: #3df5b0;
  --text: #e8e8f0;
  --muted: #5a5a72;
  --dim: #2a2a3e;
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  overflow-x: hidden;
  overflow-y: auto;
}

.container {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 4rem 2rem 2rem;
  gap: 0;
}

.home-grid {
  display: grid;
  width: 100%;
  max-width: 1200px;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.85fr);
  gap: 2rem;
  align-items: start;
}

.skills-section {
  display: flex;
  justify-content: flex-end;
}

.skills-panel {
  width: 100%;
  position: sticky;
  top: 100px;
  align-self: start;
}

.skill-entry {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}

.skill-label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text);
}

.skill-progress {
  height: 8px;
  background: rgba(255,255,255,0.05);
  border-radius: 999px;
  overflow: hidden;
}

.skill-progress-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.03) 2px,
    rgba(0,0,0,0.03) 4px
  );
  pointer-events: none;
  z-index: 999;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

.container {
  position: relative;
  z-index: 1;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  gap: 0;
}

.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: rgba(10,10,15,0.88);
  backdrop-filter: blur(10px);
  z-index: 10;
  font-size: 11px;
  color: var(--muted);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--accent2);
}

.topbar .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent2);
  margin-right: 6px;
  animation: blink 1.4s ease-in-out infinite;
}

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

.terminal {
  width: 100%;
  max-width: 680px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(124, 106, 247, 0.08), 0 0 120px rgba(61, 245, 176, 0.04);
}

.terminal-bar {
  background: var(--dim);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}

.tb-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}

.tb-dot.r { background: #ff5f57; }
.tb-dot.y { background: #febc2e; }
.tb-dot.g { background: #28c840; }

.tb-title {
  margin-left: auto;
  margin-right: auto;
  font-size: 11px;
  color: var(--muted);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.terminal-body {
  padding: 1.5rem;
  min-height: 260px;
}

.line {
  font-size: 13px;
  line-height: 1.9;
  white-space: nowrap;
  overflow: hidden;
}

.line.prompt::before {
  content: '❯ ';
  color: var(--accent2);
}

.line.output {
  color: var(--muted);
  padding-left: 1.2rem;
}

.line.accent { color: var(--accent); }
.line.green  { color: var(--accent2); }

.cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: var(--accent);
  vertical-align: middle;
  animation: cursor-blink 1s step-end infinite;
  margin-left: 2px;
}

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

.typed { display: inline; }

.heading-block {
  text-align: center;
  margin-bottom: 2.5rem;
}

.domain {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.4rem, 7vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 30%, var(--accent) 70%, var(--accent2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.4rem;
}

.tagline {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2.5rem;
}

.chip {
  font-size: 10px;
  padding: 5px 12px;
  border-radius: 4px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: var(--surface);
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.08em;
}

.chip .led {
  width: 5px; height: 5px;
  border-radius: 50%;
}

.chip .led.purple { background: var(--accent); animation: blink 2s ease infinite; }
.chip .led.green  { background: var(--accent2); animation: blink 1.6s 0.4s ease infinite; }
.chip .led.amber  { background: #f5c542; animation: blink 2.2s 0.8s ease infinite; }

.fade-in {
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 0.6s ease forwards;
}

.fade-in.d1 { animation-delay: 0.1s; }
.fade-in.d2 { animation-delay: 0.5s; }
.fade-in.d3 { animation-delay: 1s; }
.fade-in.d4 { animation-delay: 2.5s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.bottombar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  padding: 0.8rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  background: rgba(10,10,15,0.8);
  backdrop-filter: blur(8px);
  z-index: 10;
  font-size: 10px;
  color: var(--muted);
}

.progress-bar {
  width: 120px;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  animation: load 3.5s 0.5s ease-out forwards;
}

@keyframes load {
  to { width: 38%; }
}

.status-badge {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 3px;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-completed { background: var(--accent2); }
.status-in-progress { background: #f5c542; }
.status-pending { background: var(--accent); }

.open-source-section h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.open-source-section p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.posts-list {
  display: grid;
  gap: 1rem;
}

.post-item {
  border: 1px solid var(--border);
  padding: 1rem;
  margin-bottom: 1rem;
  background: var(--surface);
  border-radius: 8px;
}

.post-item h3 {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.post-item p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.post-item .meta {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.post-item .meta span {
  font-size: 11px;
  color: var(--muted);
}

.post-item .links {
  display: flex;
  gap: 10px;
}

.post-item a {
  font-size: 11px;
  color: var(--accent2);
  text-decoration: none;
}

.experience-section h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.section-description {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 1.5rem;
  max-width: 760px;
  line-height: 1.7;
}

.skills-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.skill-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
}

.skill-group h3 {
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
  color: var(--text);
}

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.skill-pill {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 10px;
  color: var(--text);
  background: rgba(124, 106, 247, 0.12);
}

.experience-summary {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 1.5rem;
  max-width: 760px;
  line-height: 1.7;
}

.experience-toggle {
  margin-top: 1rem;
  border: 1px solid rgba(61, 245, 176, 0.24);
  background: transparent;
  color: var(--accent2);
  padding: 0.65rem 1rem;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.2s ease;
}

.experience-toggle:hover {
  background: rgba(61, 245, 176, 0.08);
}

.experience-details {
  display: none;
  margin-top: 1rem;
}

.experience-details.expanded {
  display: block;
}

.experience-details.expanded {
  display: block;
}

.timeline {
  display: grid;
  gap: 1.5rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.timeline-year {
  font-size: 12px;
  color: var(--muted);
  text-align: right;
  padding-top: 0.7rem;
}

.timeline-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
}

.timeline-card header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.job-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.company-name,
.timeline-range,
.timeline-meta {
  color: var(--muted);
  font-size: 11px;
}

.timeline-meta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.timeline-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--text);
  background: rgba(124, 106, 247, 0.16);
}

.experience-card-block {
  margin-top: 1rem;
}

.experience-card-block strong {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.experience-highlights {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  list-style: disc;
}

.experience-highlights li {
  margin-bottom: 0.65rem;
  line-height: 1.6;
}

.client-card {
  margin-top: 1rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(124, 106, 247, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.client-card-title {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  color: var(--text);
}

.experience-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.tech-pill {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(61, 245, 176, 0.16);
  background: rgba(61, 245, 176, 0.08);
  color: var(--text);
  font-size: 10px;
}

@media (max-width: 900px) {
  .home-grid {
    grid-template-columns: 1fr;
  }

  .skills-section {
    justify-content: stretch;
  }

  .skills-panel {
    position: static;
    top: auto;
  }
}

@media (max-width: 680px) {
  .timeline-card header {
    flex-direction: column;
    gap: 0.5rem;
  }
}
