:root {
  --bg-color: #f0f0f0;
  --text-color: #222;
  --accent: #6c63ff;
}

[data-theme="dark"] {
  --bg-color: #121212;
  --text-color: #eee;
  --accent: #bb86fc;
}

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

body {
  background: var(--bg-color);
  color: var(--text-color);
  font-family: 'Segoe UI', sans-serif;
  transition: background 0.3s, color 0.3s;
  overflow-x: hidden;
}

canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

header {
  display: flex;
  justify-content: flex-end;
  padding: 1rem;
}

#themeToggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

main {
  max-width: 800px;
  margin: auto;
  padding: 2rem;
  animation: fadeIn 1.5s ease-in;
}

.profile-pic {
  width: clamp(120px, 20vw, 200px);
  height: clamp(120px, 20vw, 200px);
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: auto;
  animation: picFadeIn 1.2s ease-out;
  transition: transform 0.2s ease;
  will-change: transform;
  perspective: 800px;
}

.profile-pic:hover {
  transform: rotateX(8deg) rotateY(-8deg) scale(1.03);
}

h1 span {
  color: var(--accent);
}

section {
  margin: 2rem 0;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  opacity: 0.8;
}

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