body {
  margin: 0;
  font-family: 'Segoe UI';
  background: #020617;
  color: white;
}

/* NAVBAR */
nav {
  display: flex;
  justify-content: space-between;
  padding: 15px 40px;
  position: sticky;
  top: 0;
  background: #020617;
}

nav ul {
  display: flex;
  gap: 20px;
}

nav a {
  color: #38bdf8;
  text-decoration: none;
}

/* HERO */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.grid-bg {
  position: absolute;
  width: 200%;
  height: 200%;
  background-image:
    linear-gradient(rgba(56,189,248,0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,189,248,0.1) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: moveGrid 20s linear infinite;
  transform: rotate(25deg);
}

@keyframes moveGrid {
  0% { transform: translate(0,0) rotate(25deg); }
  100% { transform: translate(-200px,-200px) rotate(25deg); }
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-text h1 {
  font-size: 42px;
  text-shadow: 0 0 15px #38bdf8;
}

.hero-text p {
  color: #94a3b8;
}

/* PROFILE */
.hero-img img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #38bdf8;
  box-shadow: 0 0 25px #38bdf8;
}

/* BUTTONS */
.buttons a {
  margin: 5px;
  padding: 10px 18px;
  background: linear-gradient(45deg,#06b6d4,#9333ea);
  border-radius: 6px;
  text-decoration: none;
  color: white;
  transition: 0.3s;
}

.buttons a:hover {
  transform: scale(1.1);
}

/* SECTIONS */
section {
  padding: 50px;
  max-width: 1100px;
  margin: auto;
}

/* SKILLS */
.skills span {
  background: #0f172a;
  padding: 10px;
  margin: 5px;
  border-radius: 6px;
  display: inline-block;
}

/* LEETCODE */
.leetcode-container {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.leetcode-card {
  background: #0f172a;
  padding: 20px;
  border-radius: 10px;
  flex: 1;
  box-shadow: 0 0 20px rgba(56,189,248,0.1);
}

.leetcode-image img {
  width: 350px;
  border-radius: 10px;
}

.legend span {
  display: block;
  margin-top: 5px;
}

canvas {
  margin: auto;
  display: block;
}

/* PROJECTS */
.projects {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.project-card {
  background: #0f172a;
  padding: 15px;
  border-radius: 10px;
  flex: 1;
  text-decoration: none;
  color: white;
  transition: 0.3s;
}

.project-card img {
  width: 100%;
  border-radius: 10px;
}

.project-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(56,189,248,0.3);
}

/* FOOTER */
footer {
  text-align: center;
  padding: 20px;
}