:root {
  --bg: #1c1e26;
  --card: #262933;
  --muted: #9ca3af;
  --accent: #6ee7b7; /* mint green */
  --accent-2: #22d3ee; /* teal */
  --radius: 14px;
  --maxwidth: 1100px;
}

* { margin: 0; padding: 0; }
html, body { height: 100%; }

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: #e2e8f0;
  display: flex;
  justify-content: center;
  padding: 32px 16px;
}

.container {
  width: 100%;
  max-width: var(--maxwidth);
}

/* cards */
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 18px;
  margin-bottom: 18px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* hero */
.hero {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 18px;
  box-sizing: border-box;
}

.hero-left {
  flex: 1 1 0;  /* shrink freely */
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-right {
  flex: 1 1 0;  /* shrink freely */
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.infra-snapshot {
  position: relative; /* needed for absolute positioning of the button */
}

.copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent);
  border: none;
  border-radius: 6px;
  padding: 4px 6px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.avatar {
  width: 88px;
  height: 88px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.08);
}

.title h1 { font-size: 1.8rem; margin-top: 6px; }
.subtitle { color: var(--muted); font-size: 0.95rem; }

/* contact chips */
.contact-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

/* buttons */
.cta-row { display: flex; gap: 10px; margin-top: 10px; }
.btn {
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.btn.primary {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #1c1e26;
}
.btn.ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--accent);
}

/* terminal snippet */
.infra-snapshot pre {
  margin: 0;
  background: transparent;
  padding: 10px;
  overflow: auto;
}
.term {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.95rem;
  color: #d1fae5;
}

/* skills */
.skills .badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.badge {
  background: rgba(255,255,255,0.05);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
  color: #a7f3d0;
  font-size: 0.88rem;
}

/* projects */
.projects .flex { display: flex; flex-wrap: wrap; gap: 12px; }
.project {
  flex: 1 1 45%;
  min-width: 250px;
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.project h3 { margin-bottom: 4px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span {
  background: rgba(255,255,255,0.06);
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 0.8rem;
  color: var(--muted);
}
.project .btn {
  margin-top: auto;
  align-self: flex-start;
}
.projects-title { margin-bottom: 10px; }

/* timeline */
.timeline .time-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px dashed rgba(255,255,255,0.08);
}
.timeline .time-item:first-of-type { border-top: 0; }
.time-left { width: 120px; color: var(--muted); font-size: 0.9rem; }
.time-right h4 { margin-bottom: 6px; }

/* contact */
.contact-grid { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.contact-card {
  flex: 1 1 30%;
  min-width: 200px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(255,255,255,0.08);
}
.contact-card strong { display: block; }
.fineprint { color: var(--muted); font-size: 0.85rem; margin-top: 10px; }

/* footer */
.footer { text-align: center; padding: 12px; color: var(--muted); font-size: 0.9rem; }

/* responsive */
@media (max-width: 768px) {
  .hero { flex-direction: column; }
  .hero-left { max-width: 100%; margin-bottom: 0px;}
  .hero-right { flex-direction: column; justify-content: center; max-width: 100%; margin-top: 0px; gap: 0px; }
}