:root {
  --bg-main: #0d0f14;
  --bg-card: #1a1d25;
  --accent: #5da9ff;
  --text-main: #e6e6e6;
  --text-muted: #9aa0aa;
}

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

html {
  background: #0b0d12;
}

body {
  font-family: 'Inter', sans-serif;
  background: transparent; /* important: canvas is visible */
  color: var(--text-main);
  position: relative;
  overflow-x: hidden;
}

#bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

body > *:not(canvas) {
  position: relative;
  z-index: 1;
}

section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 100px 20px;
}

h2 {
  text-align: center;
  margin-bottom: 40px;
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  animation: fadeUp 1s ease;
}

.hero span {
  color: var(--accent);
}

.badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 30px;
}

.badges span {
  background: var(--bg-card);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.9rem;
}

.experience {
  display: grid;
  gap: 30px;
  max-width: 800px;
  margin: 0 auto;
}

.exp-card {
  background: linear-gradient(180deg, #202431, var(--bg-card));
  padding: 30px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;
}

.glow::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(500px circle at var(--mx) var(--my), rgba(93,169,255,0.25), transparent 40%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.glow:hover::before {
  opacity: 1;
}

.exp-card span {
  color: var(--accent);
  font-size: 0.9rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.project-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(180deg, #202431, var(--bg-card));
  padding: 24px;
  border-radius: 18px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.project-card h3 {
  margin-bottom: 10px;
}

.project-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-cards {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.contact-cards a {
  background: var(--bg-card);
  padding: 14px 20px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--text-main);
  transition: background 0.3s ease, transform 0.3s ease;
}

.contact-cards a:hover {
  background: var(--accent);
  transform: translateY(-4px);
}

footer {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

/* ===== Timeline ===== */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline-line {
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(var(--accent), transparent);
}

.timeline-item {
  position: relative;
  padding-left: 60px;
  margin-bottom: 60px;
}

.timeline-dot {
  position: absolute;
  left: 11px;
  top: 32px;
  width: 18px;
  height: 18px;
  background: var(--accent);
  border-radius: 50%;
}

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Language switch ===== */
.lang-switch {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10;
}

.lang-switch button {
  background: var(--bg-card);
  border: none;
  color: var(--text-main);
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
}

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