* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Rajdhani', sans-serif;
  scroll-behavior: smooth;
}

body {
  background: #000;
  color: #f1f1f1;
  overflow-x: hidden;
  letter-spacing: 0.8px;
}

/* Canvas background */
canvas#stars {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, #0a0a0a, #000);
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  z-index: 5;
}

header h1 {
  color: #fff;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-size: 1.6rem;
  text-shadow: 0 0 6px #fff, 0 0 10px #fff;
}

nav a {
  color: #aaa;
  text-decoration: none;
  margin-left: 1.5rem;
  transition: 0.3s;
  cursor: pointer;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
}

nav a:hover,
nav a.active {
  color: #fff;
  text-shadow: 0 0 8px #fff, 0 0 15px #fff;
}

/* Sections */
section {
  min-height: 100vh;
  padding: 8rem 2rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  z-index: 2;
}

/* Glowing container */
.container {
  width: 100%;
  max-width: 850px;
  margin-top: 3rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.05);
  transform: translateY(-50px) scale(0.95);
  opacity: 0;
  transition: all 0.8s ease;
}

.container.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: fadeIn 1.2s ease, glowPulse 3s ease-in-out infinite alternate;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glowPulse {
  0% {
    box-shadow: 0 0 10px #fff, 0 0 20px rgba(255, 255, 255, 0.1);
  }

  100% {
    box-shadow: 0 0 25px #fff, 0 0 40px rgba(255, 255, 255, 0.2);
  }
}

h2 {
  color: #fff;
  margin-bottom: 1rem;
  font-size: 1.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 0.5rem;
  display: inline-block;
  text-shadow: 0 0 6px #fff, 0 0 12px #fff;
}

p {
  color: #bbb;
  line-height: 1.7;
  font-size: 1rem;
}

/* Skills */
.skills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.skill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 0.7rem 1.3rem;
  transition: 0.3s;
  font-weight: 400;
  font-size: 0.95rem;
  color: #f5f5f5;
  text-shadow: 0 0 4px #fff;
}

.skill:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
  box-shadow: 0 0 12px #fff, 0 0 20px #fff;
}

/* Projects */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.project {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 1.2rem;
  transition: 0.3s;
  text-shadow: 0 0 4px #fff;
}

.project:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.02);
  box-shadow: 0 0 15px #fff, 0 0 25px #fff;
}

.project h4 {
  color: #fff;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

/* Socials */
.socials .social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
  justify-content: center;
}

.socials .social {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 0.7rem 1.3rem;
  font-weight: 400;
  font-size: 0.95rem;
  color: #f5f5f5;
  text-decoration: none;
  transition: 0.3s;
  text-shadow: 0 0 4px #fff;
}

.socials .social:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 0 15px #fff, 0 0 30px #fff;
}

.socials .social:hover i.fa-instagram {
  color: #E1306C;
}

.socials .social:hover i.fa-linkedin {
  color: #0A66C2;
}

.socials .social:hover i.fa-github {
  color: #fff;
}

.socials .social i {
  font-size: 1.2rem;
  transition: 0.3s;
}

/* Profile Pic */
.profile-pic {
  width: 250px;
  height: 250px;
  object-fit: cover;
  object-position: top;
  margin: 20px auto;
  display: block;
  border-radius: 10%;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.8);
  color: #888;
  font-size: 0.85rem;
  position: relative;
  z-index: 2;
}

@media (max-width: 600px) {
  header {
    flex-direction: column;
    text-align: center;
  }

  nav a {
    margin: 0.5rem;
  }
}
