/* ============================================
   Daniel Gualán — Developer Profile
   Theme: Dark IDE / Code Editor
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500&family=Syne:wght@700;800&display=swap');

/* ── Tokens ──────────────────────────────── */
:root {
  --bg:        #0d0f17;
  --surface:   rgba(255,255,255,0.04);
  --border:    rgba(255,255,255,0.08);
  --border-h:  rgba(255,255,255,0.18);

  --blue:   #4ea8de;
  --purple: #c084fc;
  --green:  #4ade80;
  --orange: #fb923c;
  --pink:   #f472b6;
  --dim:    rgba(255,255,255,0.3);

  --text:   #e2e8f0;
  --text-d: rgba(255,255,255,0.5);

  --mono: 'JetBrains Mono', monospace;
  --display: 'Syne', sans-serif;
}

/* ── Reset ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  overflow-x: hidden;
}

/* ── Background ──────────────────────────── */

/* Dot grid */
.bg-dots {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

/* Subtle grid lines */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}

/* Ambient glows */
.bg-glow {
  position: fixed;
  z-index: 0;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  opacity: 0.2;
}

.bg-glow.g1 {
  width: 500px; height: 500px;
  top: -160px; left: -160px;
  background: radial-gradient(circle, #4ea8de 0%, transparent 70%);
  animation: drift1 14s ease-in-out infinite alternate;
}

.bg-glow.g2 {
  width: 400px; height: 400px;
  bottom: -120px; right: -120px;
  background: radial-gradient(circle, #c084fc 0%, transparent 70%);
  animation: drift2 18s ease-in-out infinite alternate;
}

@keyframes drift1 {
  from { transform: translate(0,0); }
  to   { transform: translate(60px, 80px); }
}

@keyframes drift2 {
  from { transform: translate(0,0); }
  to   { transform: translate(-50px, -60px); }
}

/* ── Layout ──────────────────────────────── */
.wrapper {
  position: relative;
  z-index: 1;
  max-width: 500px;
  margin: 0 auto;
  padding: 48px 20px 52px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ── Cards — base ────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp .55s cubic-bezier(.22,1,.36,1) var(--d, 0s) forwards;
  transition: border-color .25s, box-shadow .25s, transform .2s;
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ── Hero card ───────────────────────────── */
.card--hero {
  padding: 28px 28px 24px;
}

.hero-inner {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

/* Mini code snippet */
.code-block {
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.8;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 12px 14px;
  flex-shrink: 0;
  min-width: 176px;
  position: relative;
  overflow: hidden;
}

.code-block::before {
  content: '● ● ●';
  display: block;
  font-size: 0.55rem;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.2);
  margin-bottom: 8px;
}

/* Syntax colors */
.c-p { color: var(--purple); }
.c-b { color: var(--blue); }
.c-g { color: var(--green); }
.c-o { color: var(--orange); }
.c-w { color: var(--text); }
.c-d { color: var(--dim); }

/* Blinking cursor */
.cursor {
  display: inline-block;
  width: 6px; height: 12px;
  background: var(--blue);
  vertical-align: middle;
  margin-left: 2px;
  box-shadow: 0 0 8px var(--blue);
  animation: blink .9s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* Text side of hero */
.hero-text {
  flex: 1;
  min-width: 0;
}

.hero-text h1 {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.role {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--blue);
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}

.bracket { color: var(--dim); }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-d);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 8px;
  background: rgba(255,255,255,0.03);
}

/* ── Link cards ──────────────────────────── */
.grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card--link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  text-decoration: none;
  color: var(--text);
  position: relative;
  overflow: hidden;
}

/* Hover sweep */
.card--link::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.04) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform .5s ease;
}

.card--link:hover {
  border-color: var(--border-h);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 8px 28px rgba(0,0,0,0.4);
  transform: translateY(-2px);
  color: #fff;
}

.card--link:hover::after { transform: translateX(100%); }

.card--link:active { transform: translateY(0); }

/* Featured extra styles */
.card--link.featured {
  border-color: rgba(78,168,222,0.28);
  background: rgba(78,168,222,0.06);
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 18px 18px 16px;
}

.card--link.featured:hover {
  border-color: rgba(78,168,222,0.55);
  box-shadow: 0 0 0 1px rgba(78,168,222,0.1), 0 8px 30px rgba(78,168,222,0.12);
}

.card--link.featured .link-inner {
  width: 100%;
}

.card--link.featured .arrow {
  align-self: flex-end;
}

.badge {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--blue);
  text-transform: uppercase;
}

/* Row inside link card */
.link-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Icon bubble */
.icon {
  width: 38px; height: 38px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.07);
}

.icon-docker { background: rgba(78,168,222,0.12); color: var(--blue); }
.icon-gh     { background: rgba(255,255,255,0.06); color: #fff; }
.icon-li     { background: rgba(96,165,250,0.12); color: #60a5fa; }
.icon-ig     { background: rgba(244,114,182,0.12); color: var(--pink); }
.icon-yt     { background: rgba(248,113,113,0.12); color: #f87171; }

/* Text inside link */
.info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.info .title {
  font-size: 0.9rem;
  font-weight: 500;
  font-family: var(--display);
  letter-spacing: 0.01em;
}

.info .desc {
  font-size: 0.72rem;
  color: var(--text-d);
  font-family: var(--mono);
}

/* Arrow */
.arrow {
  width: 18px; height: 18px;
  opacity: 0.3;
  flex-shrink: 0;
  transition: opacity .2s, transform .2s;
}

.card--link:hover .arrow { opacity: 0.8; transform: translateX(4px); }

/* ── Footer ──────────────────────────────── */
footer {
  text-align: center;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.08em;
  padding-top: 8px;
  opacity: 0;
  animation: fadeUp .5s ease .7s forwards;
}

footer em { color: rgba(255,255,255,0.38); font-style: normal; }