/* 🌌 GLOBAL */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  color: white;
  background: radial-gradient(circle at top, #0b0f2a, #020617 70%);
  overflow-x: hidden;
}

/* 🌟 STARS BACKGROUND */
body::before {
  content: "";
  position: fixed;
  inset: 0;                 /* full viewport fit */
  background: url("https://www.transparenttextures.com/patterns/stardust.png");
  background-size: cover;   /* prevents stretching */
  opacity: 0.35;
  z-index: -1;
  animation: moveStars 120s linear infinite;
}

@keyframes moveStars {
  from { transform: translate(0,0); }
  to { transform: translate(-500px, -500px); }
}

/* 🛰 NAVBAR */
header {
  display: flex;
  justify-content: space-between;
  padding: 20px 50px;
  background: rgba(2,6,23,0.6);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

header h2 {
  color: #a78bfa;
}

nav a {
  margin-left: 25px;
  color: #38bdf8;
  text-decoration: none;
  transition: 0.3s;
}

nav a:hover {
  color: #a78bfa;
}

/* 🚀 HERO */
.hero {
  text-align: center;
  padding: 120px 20px;
}

.hero h1 {
  font-size: 3.5rem;
  background: linear-gradient(90deg, #38bdf8, #a78bfa, #f472b6);
  -webkit-background-clip: text;
  color: transparent;
}

.hero p {
  color: #94a3b8;
  margin: 20px 0;
}

.btn {
  background: linear-gradient(90deg, #38bdf8, #a78bfa);
  padding: 12px 24px;
  border-radius: 30px;
  color: black;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 0 15px #38bdf8;
}

/* 🪐 SECTIONS */
section {
  padding: 80px 60px;
}

/* ✨ SKILLS */
.skills span {
  display: inline-block;
  margin: 10px;
  padding: 12px 18px;
  border-radius: 20px;
  background: rgba(30,41,59,0.6);
  border: 1px solid rgba(255,255,255,0.1);
  transition: 0.3s;
}

.skills span:hover {
  transform: scale(1.1);
  background: #a78bfa;
  color: black;
}

/* 🧑‍🚀 PROJECT CARDS */
.card {
  background: rgba(15,23,42,0.6);
  padding: 20px;
  margin: 20px 0;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 0 20px #38bdf8;
}

/* 📡 CONTACT */
#contact p {
  color: #94a3b8;
}

/* 🛰 FOOTER */
footer {
  text-align: center;
  padding: 20px;
  background: #020617;
  color: #64748b;
}