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

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(167, 139, 250, 0.1);
}

::-webkit-scrollbar-thumb {
  background: rgba(167, 139, 250, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(167, 139, 250, 0.5);
}

:root {
  --primary: #a78bfa;
  --primary-dark: #2a0f45;
  --bg: #0b0614;
  --card: rgba(20, 10, 35, 0.7);
  --border: rgba(167, 139, 250, 0.25);
  --text: #e6ddff;
  --text-light: #d6c9ff;
}

body {
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  color: var(--text);
  background: radial-gradient(1200px 600px at 50% -10%, var(--primary-dark), var(--bg) 60%);
  overflow-x: hidden;
}

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 20px;
  position: relative;
  z-index: 1;
  animation: fadeInMain 0.6s ease-out;
}

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

header {
  text-align: center;
  margin-bottom: 60px;
}

.pfp {
  width: 130px;
  height: 130px;
  margin: 0 auto 24px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--primary), #f0abfc);
  box-shadow: 0 0 60px rgba(167, 139, 250, 0.55);
}

.pfp img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg);
}

h1 {
  font-size: 3.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, #a78bfa, #f0abfc, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
  margin-bottom: 8px;
}

.tagline {
  margin-top: 12px;
  font-size: 1.05rem;
  color: #c9b9ff;
  opacity: 0.85;
  font-family: 'JetBrains Mono', monospace;
}

.section {
  background: var(--card);
  border-radius: 20px;
  padding: 34px;
  margin-bottom: 34px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}

.section:hover {
  transform: translateY(-4px);
  border-color: rgba(167, 139, 250, 0.4);
  box-shadow: 0 30px 80px rgba(167, 139, 250, 0.1);
}

.section h2 {
  margin-bottom: 24px;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.section p {
  line-height: 1.75;
  color: var(--text-light);
  font-size: 1rem;
}

.section p b {
  color: #fff;
}

.links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.link {
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--text);
  background: rgba(167, 139, 250, 0.15);
  border: 1px solid rgba(167, 139, 250, 0.35);
  transition: all 0.25s ease;
}

.link:hover {
  background: rgba(167, 139, 250, 0.25);
  transform: translateY(-2px);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.project {
  background: rgba(10, 5, 25, 0.7);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(167, 139, 250, 0.2);
  transition: all 0.25s ease;
}

.project:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  background: rgba(20, 15, 45, 0.8);
}

.project h3 {
  margin-bottom: 8px;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
}

.project span {
  font-size: 0.9rem;
  color: #bdaaff;
  line-height: 1.5;
}

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

.langs img {
  height: 32px;
  border-radius: 6px;
  transition: transform 0.2s ease;
}

.langs img:hover {
  transform: scale(1.1);
}

footer {
  text-align: center;
  padding: 24px;
  font-size: 0.8rem;
  color: #bdaaff;
  opacity: 0.8;
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .links {
    flex-direction: column;
  }

  main {
    padding: 60px 16px;
  }

  .pfp {
    width: 100px;
    height: 100px;
  }
}