/* ════════════════════════════════════════
   FABRICIO LENNART — PORTFOLIO
   Exact replica of the dark-purple design
   ════════════════════════════════════════ */

:root {
  --bg:        #0e0e14;
  --bg1:       #13131a;
  --bg2:       #1a1a24;
  --bg3:       #1e1e2e;
  --border:    rgba(255,255,255,0.07);
  --border2:   rgba(255,255,255,0.11);
  --purple:    #7c3aed;
  --purple2:   #8b5cf6;
  --purple3:   #a78bfa;
  --purple-bg: rgba(124,58,237,0.12);
  --white:     #ffffff;
  --white2:    #c4c4cc;
  --white3:    #71717a;
  --green:     #22c55e;
  --pad:       clamp(20px, 6vw, 80px);
  --max:       1100px;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { display: block; }
ul { list-style: none; }

/* ── BUTTONS ────────────────────────────── */
.btn-purple {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--purple);
  color: var(--white);
  border-radius: 100px;
  padding: 14px 28px;
  font-size: 0.92rem;
  font-weight: 600;
  transition: background .2s, transform .15s, box-shadow .2s;
}
.btn-purple:hover {
  background: var(--purple2);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(124,58,237,0.45);
}

.btn-outline-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--white2);
  border: 1px solid var(--border2);
  border-radius: 100px;
  padding: 14px 28px;
  font-size: 0.92rem;
  font-weight: 500;
  transition: background .2s, color .2s;
}
.btn-outline-dark:hover { background: var(--bg2); color: var(--white); }

/* ── REVEAL ─────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .12s; }
.delay-2 { transition-delay: .24s; }

/* ── SECTION STRUCTURE ──────────────────── */
.section {
  padding: 100px var(--pad);
  border-top: 1px solid var(--border);
}

.section-header {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 60px;
}

.section-bg-num {
  font-size: clamp(5rem, 12vw, 9rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  flex-shrink: 0;
  user-select: none;
}

.section-label-wrap { padding-top: 8px; }

.section-num-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--purple3);
  margin-bottom: 4px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--white);
}

/* ── HERO ───────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px var(--pad) 80px;
  position: relative;
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.hero-left {
  flex: 1;
  animation: fadeUp .7s ease both;
}

.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--purple3);
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(3.8rem, 9vw, 7rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.95;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.line-white  { color: var(--white); }
.line-highlight {
  background: rgba(30,30,60,0.8);
  display: inline-block;
  padding: 0 8px;
  margin-left: -8px;
}
.line-purple { color: var(--purple3); }
.line-dim    { color: rgba(255,255,255,0.3); }
.text-purple { color: var(--purple3); }

.hero-desc {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--white3);
  max-width: 420px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-socials {
  display: flex;
  gap: 10px;
}
.hero-socials a {
  width: 40px; height: 40px;
  border: 1px solid var(--border2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white3);
  font-size: 15px;
  transition: border-color .15s, color .15s, background .15s;
}
.hero-socials a:hover { border-color: var(--purple); color: var(--purple3); background: var(--purple-bg); }

/* Hero photo */
.hero-right { flex: 0 0 auto; animation: fadeUp .7s .15s ease both; }
.hero-photo-wrap {
  position: relative;
  width: 280px;
}
.photo-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle at 50% 60%, rgba(124,58,237,0.35) 0%, transparent 65%);
  filter: blur(30px);
  border-radius: 12px;
  pointer-events: none;
}
.hero-photo {
  width: 280px;
  height: 320px;
  object-fit: cover;
  object-position: center top;
  border-radius: 12px;
  display: block;
  position: relative;
  z-index: 1;
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.scroll-hint span {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--white3);
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--white3), transparent);
  animation: scrollPulse 1.6s ease infinite;
}
@keyframes scrollPulse {
  0%,100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: .3; transform: scaleY(.6); }
}

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

/* ── ABOUT ──────────────────────────────── */
.about-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--white2);
  margin-bottom: 16px;
}

.about-stats {
  display: flex;
  gap: 32px;
  margin-top: 32px;
}

.about-stat { display: flex; flex-direction: column; gap: 4px; }
.stat-big {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}
.stat-big.purple { color: var(--purple3); }
.stat-lbl { font-size: 0.75rem; color: var(--white3); }

/* Info cards */
.about-right { display: flex; flex-direction: column; gap: 14px; }

.info-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 24px;
}

.card-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.card-icon { color: var(--purple3); font-size: 0.9rem; }

.card-title-row h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.01em;
}

/* Language bars */
.lang-list { display: flex; flex-direction: column; gap: 10px; }
.lang-row { display: flex; justify-content: space-between; align-items: center; }
.lang-name { font-size: 0.82rem; color: var(--white2); }
.lang-level { font-size: 0.75rem; color: var(--purple3); font-weight: 600; }
.lang-bar {
  height: 3px;
  background: rgba(255,255,255,0.07);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 2px;
}
.lang-fill {
  height: 100%;
  background: var(--purple);
  border-radius: 100px;
  width: 0%;
  transition: width 1.1s cubic-bezier(.4,0,.2,1);
}

/* Cert/edu list */
.cert-list { display: flex; flex-direction: column; gap: 14px; }
.cert-row { display: flex; align-items: flex-start; gap: 10px; }
.cert-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--purple);
  flex-shrink: 0;
  margin-top: 5px;
}
.cert-name { font-size: 0.85rem; font-weight: 600; color: var(--white); }
.cert-org  { font-size: 0.75rem; color: var(--white3); margin-top: 2px; }

.badge-green {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  background: rgba(34,197,94,0.15);
  color: var(--green);
  border: 1px solid rgba(34,197,94,0.25);
  border-radius: 100px;
  padding: 2px 8px;
  margin-top: 4px;
}
.badge-purple {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  background: var(--purple-bg);
  color: var(--purple3);
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: 100px;
  padding: 2px 8px;
  margin-top: 4px;
}

/* ── STACK ──────────────────────────────── */
.stack-layout {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: start;
}

.stack-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
}

.stack-circle {
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(124,58,237,0.25) 0%, rgba(30,18,60,0.7) 60%);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(124,58,237,0.2);
}

.float-tag {
  position: absolute;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--white2);
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 100px;
  padding: 5px 12px;
  white-space: nowrap;
}

.stack-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.stack-tab {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--white3);
  background: transparent;
  border: 1px solid var(--border2);
  border-radius: 100px;
  padding: 7px 16px;
  cursor: pointer;
  transition: all .15s;
}
.stack-tab.active {
  background: var(--purple);
  color: var(--white);
  border-color: var(--purple);
}
.stack-tab:hover:not(.active) { border-color: var(--purple); color: var(--white2); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.icon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.icon-item {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: border-color .15s, background .15s;
  cursor: default;
}
.icon-item:hover { border-color: var(--border2); background: var(--bg3); }

.tech-emoji { font-size: 1.8rem; line-height: 1; }

.icon-item p {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--white2);
}

.stack-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.stack-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--white2);
  border: 1px solid var(--border2);
  border-radius: 100px;
  padding: 5px 12px;
}
.badge-dot-sm {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--purple3);
  flex-shrink: 0;
}

/* ── EXPERIENCE ─────────────────────────── */
.exp-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
}

.exp-col-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white2);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}
.exp-col-title i { color: var(--purple3); }

/* Timeline */
.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: 20px;
  border-left: 1px solid var(--border2);
}

.tl-item { position: relative; padding-bottom: 28px; }
.tl-item:last-child { padding-bottom: 0; }

.tl-dot {
  position: absolute;
  left: -26px;
  top: 16px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--purple);
  border: 2px solid var(--bg);
}

.tl-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color .15s;
}
.tl-card:hover { border-color: var(--border2); }

.tl-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.tl-role {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
}
.tl-loc {
  font-size: 0.75rem;
  color: var(--white3);
  margin-top: 2px;
}

.tl-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.badge-type {
  font-size: 0.65rem;
  font-weight: 600;
  border-radius: 100px;
  padding: 3px 10px;
}
.badge-type.fulltime {
  background: rgba(124,58,237,0.15);
  color: var(--purple3);
  border: 1px solid rgba(124,58,237,0.3);
}
.badge-type.contract {
  background: rgba(255,255,255,0.05);
  color: var(--white3);
  border: 1px solid var(--border2);
}

.tl-date { font-size: 0.72rem; color: var(--white3); }

.tl-bullets {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.tl-bullets li {
  font-size: 0.82rem;
  color: var(--white2);
  padding-left: 14px;
  position: relative;
  line-height: 1.5;
}
.tl-bullets li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--purple3);
}

/* Talks */
.talks-list { display: flex; flex-direction: column; gap: 10px; }

.talk-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: border-color .15s, background .15s;
}
.talk-card:hover { border-color: var(--border2); background: var(--bg3); }

.talk-body h4 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.01em;
}
.talk-body p {
  font-size: 0.74rem;
  color: var(--white3);
  margin-top: 3px;
}

.talk-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}
.talk-year { font-size: 0.75rem; font-weight: 700; color: var(--purple3); }
.talk-ext { font-size: 0.7rem; color: var(--white3); transition: color .15s; }
.talk-card:hover .talk-ext { color: var(--purple3); }

.talk-footer-badge {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 20px;
  font-size: 0.8rem;
  color: var(--white3);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}
.talk-footer-badge i { color: var(--purple3); }

/* ── CONTACT ────────────────────────────── */
.contact-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-heading {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.contact-desc {
  font-size: 0.92rem;
  color: var(--white3);
  line-height: 1.75;
  margin-bottom: 20px;
  max-width: 380px;
}

.contact-location {
  font-size: 0.82rem;
  color: var(--white3);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 28px;
}
.contact-location i { color: var(--purple3); }

.contact-right { display: flex; flex-direction: column; gap: 12px; }

.contact-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: border-color .15s, background .15s;
}
.contact-card:hover { border-color: var(--border2); background: var(--bg3); }

.contact-card-icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--purple-bg);
  border: 1px solid rgba(124,58,237,0.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--purple3);
  font-size: 15px;
  flex-shrink: 0;
}

.contact-card-body { flex: 1; }
.contact-card-label { font-size: 0.72rem; color: var(--white3); margin-bottom: 2px; }
.contact-card-val { font-size: 0.88rem; font-weight: 500; color: var(--white); }

.contact-arrow { color: var(--white3); font-size: 0.75rem; transition: color .15s; }
.contact-card:hover .contact-arrow { color: var(--purple3); }

/* ── FOOTER ─────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  background: var(--bg1);
  padding: 28px var(--pad);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}
.footer-socials { display: flex; gap: 8px; }
.footer-socials a {
  width: 36px; height: 36px;
  border: 1px solid var(--border2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white3);
  font-size: 13px;
  transition: border-color .15s, color .15s;
}
.footer-socials a:hover { border-color: var(--purple); color: var(--purple3); }
.footer-copy { font-size: 0.72rem; color: var(--white3); }

/* ── RESPONSIVE ─────────────────────────── */
@media (max-width: 960px) {
  .about-grid   { grid-template-columns: 1fr; gap: 40px; }
  .stack-layout { grid-template-columns: 1fr; }
  .stack-visual { display: none; }
  .exp-grid     { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 860px) {
  .hero-inner { flex-direction: column; gap: 40px; text-align: center; }
  .hero-left { display: flex; flex-direction: column; align-items: center; }
  .hero-desc { text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-socials { justify-content: center; }
  .hero-photo-wrap, .hero-photo { width: 240px; height: 280px; }
  .hero-right { order: -1; }
  .about-stats { justify-content: center; }
  .timeline { padding-left: 16px; }
}

@media (max-width: 600px) {
  .hero-title { font-size: 3.5rem; }
  .section { padding: 72px var(--pad); }
  .icon-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { flex-direction: column; text-align: center; }
  .tl-head { flex-direction: column; }
}
