* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #000;
  --text: #fff;
  --muted: #8b8b8b;
  --accent: #7c3aed;
  --accent-light: #a78bfa;
  --border: #1a1a1a;
  --card-bg: #0d0d0d;
  --card-hover: #141414;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

.lang-switch {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  display: flex;
  gap: 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  z-index: 100;
}

.lang-switch span {
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s ease;
}

.lang-switch span:hover {
  color: var(--text);
}

.lang-switch span.active {
  color: var(--text);
}

main {
  max-width: 800px;
  margin: 0 auto;
  padding: 6rem 2rem;
  flex: 1;
  text-align: center;
}

header {
  margin-bottom: 4rem;
}

.avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  margin-bottom: 1.5rem;
  border: 2px solid var(--border);
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.avatar:hover {
  filter: grayscale(0%);
}

h1 {
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #fff 0%, #8b8b8b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.subtitle {
  font-size: 1rem;
  color: var(--muted);
}

section {
  margin-bottom: 3.5rem;
}

h2 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.about p {
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  color: #d1d1d1;
}

.availability {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.availability::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #00d395;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.availability strong {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.875rem;
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  justify-content: center;
}

.tech-expand {
  display: block;
  margin: 1.25rem auto 0;
  padding: 0;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 0.875rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.tech-expand:hover {
  color: var(--text);
}

.tech-list .tech-new {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.tech-list .tech-new.visible {
  opacity: 1;
  transform: translateY(0);
}

.tech-list span {
  padding: 0.5rem 1rem;
  background: #161616;
  border: none;
  border-radius: 9999px;
  font-size: 0.8125rem;
  color: #888;
  transition: all 0.15s ease;
}

.tech-list span:hover {
  background: #1f1f1f;
  color: var(--text);
}

.contact {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.contact ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.contact li {
  margin-bottom: 0;
}

.contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1rem;
  color: var(--text);
  transition: color 0.2s ease;
}

.contact svg {
  opacity: 0.7;
}

.contact a:hover {
  text-decoration: underline;
  text-decoration-color: var(--accent-light);
  text-underline-offset: 4px;
}

a {
  color: var(--accent-light);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #fff;
}

/* Timeline - CSS Grid centered */
.timeline {
  padding: 2rem 0;
}

.timeline-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0 2rem;
  max-width: 700px;
  margin: 0 auto;
}

.tl-left,
.tl-right {
  padding-bottom: 3rem;
}

.tl-left {
  text-align: right;
}

.tl-right {
  text-align: left;
}

.tl-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.tl-center::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.tl-dot {
  width: 14px;
  height: 14px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.5);
  position: relative;
  z-index: 1;
  margin-top: 4px;
}

.tl-year {
  display: block;
  font-size: 0.8125rem;
  color: var(--muted);
  font-weight: 400;
  margin-bottom: 0.25rem;
}

.timeline-grid h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
  color: var(--text);
}

.tl-role {
  font-size: 0.875rem;
  color: var(--text);
  opacity: 0.8;
  margin-bottom: 0.25rem;
}

.tl-summary {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.5;
}

.cv-link {
  margin-top: 2rem;
}

.cv-link a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: var(--accent);
  color: #fff;
  border-radius: 100px;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.cv-link a:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
}

footer {
  text-align: center;
  padding: 2rem;
  color: var(--muted);
  font-size: 0.8125rem;
}

@media (max-width: 480px) {
  main {
    padding: 3rem 1.25rem;
  }

  h1 {
    font-size: 2.5rem;
  }

  .tagline {
    font-size: 1.25rem;
  }
}
