/* Estilo “programador” — dark, monospace, minimal */
:root {
  --bg: #0b0f12;
  --panel: #0f1419;
  --panel-2: #121820;
  --border: #1e2a36;
  --text: #e5eef5;
  --muted: #98a6b3;
  --accent: #35e0a1;
  --accent-2: #00c2ff;
  --danger: #ff5f56;
  --warn: #ffbd2e;
  --ok: #27c93f;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --font: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --font-ui: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

body {
  margin: 0;
  background: radial-gradient(1200px 800px at 10% -10%, rgba(0, 194, 255, 0.08), transparent 60%),
    radial-gradient(1000px 600px at 110% 10%, rgba(53, 224, 161, 0.08), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  line-height: 1.6;
}

.window {
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(180deg, #0b0f12, #0b0f12f2 70%, transparent);
  backdrop-filter: saturate(120%) blur(6px);
  border-bottom: 1px solid var(--border)
}

.win-chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block
}

.red {
  background: var(--danger)
}

.yellow {
  background: var(--warn)
}

.green {
  background: var(--ok)
}

.win-chrome .title {
  margin-left: auto;
  color: var(--muted);
  font-family: var(--font);
  font-size: 12px
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 10px 16px 16px 16px;
  border-top: 1px dashed var(--border)
}

.nav a {
  color: var(--text);
  text-decoration: none;
  opacity: .85;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: all .2s ease;
  font-family: var(--font)
}

.nav a:hover {
  opacity: 1;
  border-color: var(--accent)
}

.nav .btn {
  margin-left: auto
}

.container {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 16px
}

.grid.two {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 20px;
  margin: 28px 0
}

.grid.three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 28px 0
}

@media (max-width: 860px) {

  .grid.two,
  .grid.three {
    grid-template-columns: 1fr
  }
}

.card {
  /* top-level spacing injected */
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px
}

.card h2,
.card h3 {
  margin-top: 0;
  font-family: var(--font);
  letter-spacing: .2px
}

.card h2 {
  color: var(--accent)
}

.card h3 {
  color: var(--accent-2)
}

.hero {
  display: flex;
  gap: 24px;
  align-items: center
}

.hero .avatar {
  width: 130px;
  height: 160px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: #111
}

.hero .kicker {
  color: var(--accent-2);
  font-weight: 600
}

.hero .summary {
  max-width: 65ch
}

@media (max-width: 680px) {
  .hero {
    flex-direction: column;
    text-align: center
  }

  .cta {
    justify-content: center
  }
}

.muted {
  color: var(--muted)
}

.small {
  font-size: .9rem
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #0b1318;
  border: 1px solid #1a614d;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 600;
  font-family: var(--font-ui);
  transition: transform .06s ease, box-shadow .2s ease;
  box-shadow: 0 6px 16px rgba(53, 224, 161, .25)
}

.btn:hover {
  transform: translateY(-1px)
}

.btn:active {
  transform: translateY(0)
}

.btn[aria-disabled="true"] {
  filter: grayscale(.6);
  opacity: .7;
  pointer-events: none
}

.btn.ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border)
}

.btn.micro {
  padding: 6px 8px;
  font-size: .85rem;
  border-radius: 8px
}

.badges,
.tags,
.bullets {
  list-style: none;
  margin: 12px 0 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px
}

.badges li,
.tags span {
  background: #0c1217;
  border: 1px solid var(--border);
  color: #cfe8f4;
  padding: 6px 10px;
  border-radius: 999px;
  font-family: var(--font);
  font-size: .9rem
}

.bullets {
  flex-direction: column;
  gap: 6px
}

.bullets li {
  position: relative;
  padding-left: 20px
}

.bullets li::before {
  content: "$";
  color: var(--accent-2);
  position: absolute;
  left: 0;
  font-family: var(--font)
}

.list {
  margin: 0;
  padding-left: 18px
}

.list li {
  margin-bottom: 12px
}

.projects {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 12px
}

.project {
  display: flex;
  gap: 18px;
  align-items: center
}

.project img {
  width: 160px;
  height: 110px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #0b0f12
}

.project .links {
  display: flex;
  gap: 10px;
  margin-top: 8px
}

@media (max-width:700px) {
  .project {
    flex-direction: column;
    text-align: center
  }

  .project img {
    width: 100%;
    height: auto
  }
}

.code {
  margin: 0;
  background: #0c1217;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  color: #cfe8f4;
  overflow: auto;
  font-family: var(--font)
}

.contact {
  list-style: none;
  padding: 0;
  margin: 0 0 12px 0;
  display: flex;
  flex-direction: column;
  gap: 6px
}

label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600
}

input,
textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0b0f12;
  color: var(--text);
  font-family: var(--font-ui)
}

input:focus,
textarea:focus {
  outline: 2px solid #163e30;
  border-color: #245f49
}

.footer {
  max-width: 1100px;
  margin: 20px auto 60px auto;
  padding: 0 16px;
  color: var(--muted)
}

.footer a {
  color: var(--accent)
}

/* Spacing between top-level cards (sections) */
section.card + section.card { 
  margin-top: 24px;
}
