body {
  margin: 0;
  font-family: system-ui;
  background: #050816;
  color: white;
  overflow-x: hidden;
}

#space {
  position: fixed;
  inset: 0;
  z-index: -1;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-around;
  padding: 18px 40px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(12px);
  z-index: 1000;
}

nav a {
  margin-left: 15px;
  color: #cbd5e1;
  text-decoration: none;
}

nav a:hover {
  color: #38bdf8;
}

.hero {
  text-align: center;
  padding: 140px 20px 40px;
}

.hero h1 {
  font-size: 46px;
}

.hero p {
  color: #9ca3af;
}

.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

#avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 2px solid #38bdf8;
  object-fit: cover;
}

.ai-btn {
  margin-top: 15px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid #38bdf8;
  background: transparent;
  color: #38bdf8;
  cursor: pointer;
  transition: 0.3s;
}

.ai-btn:hover {
  background: #38bdf8;
  color: black;
}

.section {
  max-width: 900px;
  margin: auto;
  padding: 80px 20px;
}

.skill {
  margin: 15px 0;
}

.bar {
  height: 10px;
  background: #111827;
  border-radius: 10px;
  overflow: hidden;
}

.fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #38bdf8, #a78bfa);
  transition: 2s;
}

.projects {
  display: grid;
  gap: 12px;
}

.card {
  padding: 15px;
  background: #111827;
  border-radius: 10px;
  text-decoration: none;
  color: white;
  transition: 0.3s;
}

.card:hover {
  transform: scale(1.03);
  background: #1f2937;
}

footer {
  text-align: center;
  padding: 40px;
  border-top: 1px solid #1f2937;
  color: #6b7280;
}

.popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
}

.popup-box {
  width: 320px;
  background: #111827;
  padding: 20px;
  border-radius: 12px;
}

.popup-box button {
  width: 100%;
  margin: 6px 0;
  padding: 10px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.hidden {
  display: none;
}
