/* ── Variables ─────────────────────────────────────────── */
:root {
  --bg:          #ffffff;
  --bg-soft:     #f7f9fc;
  --bg-muted:    #eef2f7;
  --accent:      #1a6dff;
  --accent-mid:  #4d8fff;
  --accent-soft: #e8f0ff;
  --text:        #0d1117;
  --text-mid:    #4a5568;
  --text-dim:    #a0aec0;
  --border:      #e2e8f0;
  --mono:        'JetBrains Mono', monospace;
  --sans:        'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

/* ── Layout ─────────────────────────────────────────────── */
.page {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 40px 100px;
}

/* ── Hero wrapper (full-width dark band) ────────────────── */
.hero-wrapper {
  background: #060f1e;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.hero-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, #1a4a9933 0%, transparent 65%);
  pointer-events: none;
}

.hero-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 1;
}

/* ── Top bar ────────────────────────────────────────────── */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 0;
  border-bottom: 1px solid #ffffff18;
  animation: fadeDown .6s ease both;
}

.topbar-name {
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: -.01em;
  color: #fff;
}

.topbar-links {
  display: flex;
  gap: 24px;
  font-size: .82rem;
  color: #7aa8cc;
}

.topbar-links a {
  text-decoration: none;
  color: inherit;
  transition: color .15s;
}

.topbar-links a:hover { color: #6ab4ff; }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  padding: 72px 0 88px;
  animation: fadeUp .7s ease both;
  animation-delay: .1s;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #1a6dff22;
  border: 1px solid #1a6dff55;
  color: #6ab4ff;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 32px;
}

.hero-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6ab4ff;
  animation: pulse 2s infinite;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.05;
  white-space: nowrap;
  color: #ffffff;
}

h1 .accent { color: #6ab4ff; }

.hero-sub {
  margin-top: 28px;
  font-size: 1.05rem;
  font-weight: 400;
  color: #7aa8cc;
  line-height: 1.75;
  max-width: 500px;
}

.hero-meta {
  margin-top: 20px;
  display: flex;
  gap: 20px;
  font-family: var(--mono);
  font-size: .72rem;
  color: #4a6a88;
}

.hero-cta {
  margin-top: 40px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-socials {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  color: #3a6080;
  text-decoration: none;
  transition: color .18s, background .18s;
}

.social-icon:hover {
  color: #6ab4ff;
  background: #ffffff12;
}

/* ── Buttons ────────────────────────────────────────────── */
a.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  padding: 13px 24px;
  border-radius: 8px;
  transition: all .18s;
}

a.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 12px #1a6dff28;
}

a.btn-primary:hover {
  background: #0d5ae0;
  box-shadow: 0 4px 20px #1a6dff44;
  transform: translateY(-1px);
}

a.btn-ghost {
  background: var(--bg-soft);
  color: var(--text-mid);
  border: 1px solid var(--border);
}

a.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

/* ── Sections ───────────────────────────────────────────── */
section {
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
  animation: fadeUp .7s ease both;
}

section:nth-child(2) { animation-delay: .15s; }
section:nth-child(3) { animation-delay: .2s; }
section:nth-child(4) { animation-delay: .25s; }
section:nth-child(5) { animation-delay: .3s; }

.section-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -.02em;
}

.section-num {
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--accent);
  font-weight: 500;
}

/* ── Tech Stack ─────────────────────────────────────────── */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

.stack-chip {
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color .18s, box-shadow .18s, transform .18s;
  cursor: default;
}

.stack-chip:hover {
  border-color: var(--accent-mid);
  box-shadow: 0 4px 16px #1a6dff14;
  transform: translateY(-2px);
}

.chip-name {
  font-weight: 600;
  font-size: .92rem;
}

.chip-level {
  font-family: var(--mono);
  font-size: .68rem;
  color: var(--text-dim);
  margin-top: 4px;
}

.chip-bar {
  margin-top: 10px;
  height: 2px;
  background: var(--bg-muted);
  border-radius: 2px;
  overflow: hidden;
}

.chip-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-mid));
  border-radius: 2px;
  animation: barGrow 1s ease both;
  animation-delay: .5s;
}

/* ── Timeline ───────────────────────────────────────────── */
.timeline { display: flex; flex-direction: column; }

.tl-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 0 40px;
  padding: 32px 0;
}

.tl-item:nth-child(even) {
  background: var(--bg-soft);
  margin: 0 -24px;
  padding-left: 24px;
  padding-right: 24px;
  border-radius: 8px;
}

.tl-item:first-child { padding-top: 0; }
.tl-item:last-child:nth-child(odd) { padding-bottom: 0; }

.tl-date {
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--text-dim);
  line-height: 1.6;
  padding-top: 3px;
}

.tl-badge {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 100px;
  margin-bottom: 6px;
}

.tl-role     { font-size: 1rem; font-weight: 700; letter-spacing: -.01em; }
.tl-company  { font-size: .85rem; font-weight: 500; color: var(--accent); margin-top: 2px; }
.tl-location { font-family: var(--mono); font-size: .7rem; color: var(--text-dim); margin-top: 2px; }
.tl-desc     { margin-top: 10px; font-size: .88rem; color: var(--text-mid); line-height: 1.7; }

.tl-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.tl-tag {
  font-family: var(--mono);
  font-size: .66rem;
  font-weight: 500;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text-mid);
  padding: 3px 10px;
  border-radius: 100px;
}

/* Earlier career sub-list */
.tl-sublist {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tl-sublist-item {
  font-size: .82rem;
  color: var(--text-mid);
}

.tl-sublist-item strong {
  color: var(--text);
  font-weight: 600;
}

.tl-sublist-item span {
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--text-dim);
}

/* ── Open Source / Symfony ──────────────────────────────── */
.symfony-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.sf-block {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 26px;
  transition: border-color .18s, box-shadow .18s;
}

.sf-block:hover {
  border-color: var(--accent-mid);
  box-shadow: 0 4px 16px #1a6dff12;
}

.sf-block.full { grid-column: 1 / -1; }

.sf-icon { font-size: 1.6rem; margin-bottom: 12px; }

.sf-block h3 {
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: -.01em;
}

.sf-block p {
  margin-top: 6px;
  font-size: .83rem;
  color: var(--text-mid);
  line-height: 1.65;
}

.sf-block a {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.sf-block a:hover { text-decoration: underline; }

/* ── Misc grid ──────────────────────────────────────────── */
.misc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.misc-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color .18s;
}

.misc-item:hover { border-color: var(--accent-mid); }

.misc-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 1px; }

.misc-text strong { display: block; font-size: .88rem; font-weight: 600; }
.misc-text span   { font-size: .8rem; color: var(--text-mid); }

/* ── Contact form ────────────────────────────────────────── */
.contact-wrapper {
  background: #060f1e;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.contact-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, #1a4a9933 0%, transparent 65%);
  pointer-events: none;
}

.contact-wrapper .hero-inner {
  position: relative;
  z-index: 1;
}

.contact-wrap {
  max-width: 620px;
}

.contact-intro {
  font-size: .95rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 32px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: .78rem;
  font-weight: 600;
  color: #7aa8cc;
  letter-spacing: .01em;
}

.form-group input,
.form-group textarea {
  font-family: var(--sans);
  font-size: .88rem;
  color: #e8f4ff;
  background: #0d1f35;
  border: 1px solid #1a3a5c;
  border-radius: 8px;
  padding: 11px 14px;
  outline: none;
  transition: border-color .18s, box-shadow .18s;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #2d5070;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px #1a6dff22;
}

.btn-submit {
  align-self: flex-start;
  font-family: var(--sans);
  font-size: .85rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 8px;
  padding: 13px 28px;
  cursor: pointer;
  box-shadow: 0 2px 12px #1a6dff28;
  transition: all .18s;
}

.btn-submit:hover {
  background: #0d5ae0;
  box-shadow: 0 4px 20px #1a6dff44;
  transform: translateY(-1px);
}

/* ── Footer ─────────────────────────────────────────────── */
footer {
  padding: 32px 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
  color: #4a6a88;
}

footer a       { color: #4a6a88; text-decoration: none; }
footer a:hover { color: #6ab4ff; }

.email-link { cursor: pointer; }

/* ── Animations ─────────────────────────────────────────── */
@keyframes fadeUp   { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse    { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .5; transform: scale(.75); } }
@keyframes barGrow  { from { width: 0; } }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 620px) {
  .page       { padding: 0 20px 80px; }
  .hero-inner { padding: 0 20px; }
  h1          { white-space: normal; }

  .form-row      { grid-template-columns: 1fr; }
  .tl-item       { grid-template-columns: 1fr; gap: 6px; }
  .symfony-card  { grid-template-columns: 1fr; }
  .sf-block.full { grid-column: auto; }

  footer { flex-direction: column; gap: 8px; text-align: center; }
}
