@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

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

body {
  background: #0a0f16;
  color: #e6faff;
  font-family: 'Poppins', sans-serif;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* NAVBAR */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 5%;
  position: fixed;
  width: 100%;
  top: 0;
  background: rgba(0, 0, 0, 0.6);
  border-bottom: 1px solid #00ffff33;
  backdrop-filter: blur(8px);
  z-index: 1000;
}

.logo {
  font-size: 1.6rem;
  font-weight: 700;
  color: #00ffff;
  animation: glow 2s infinite alternate;
}

@keyframes glow {
  from { text-shadow: 0 0 5px #00ffff; }
  to { text-shadow: 0 0 20px #00ff99; }
}

nav a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: #fff;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #00ffff;
}

/* PROGRESS BAR */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, #00ffff, #00ff99);
  width: 0%;
  z-index: 9999;
  border-radius: 4px;
}

/* HERO */
.hero {
  text-align: center;
  padding: 10rem 2rem 8rem;
  background: linear-gradient(180deg, #0d1117, #06141b);
}

.hero h2 {
  font-size: 2.2rem;
  font-weight: 700;
}

.highlight {
  color: #00ffff;
}

.hero h3 {
  color: #ccc;
  margin: 1rem 0;
  min-height: 2rem;
}

.btn, .btn-outline {
  display: inline-block;
  margin: 1rem;
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}

.btn {
  background: #00ffff;
  color: #0a0f16;
}
.btn:hover {
  background: #00ff99;
}

.btn-outline {
  border: 2px solid #00ffff;
  color: #00ffff;
}
.btn-outline:hover {
  background: #00ffff;
  color: #0a0f16;
}

/* SECTIONS */
.section {
  padding: 7rem 5% 5rem;
  text-align: center;
}

.section h2 {
  color: #00ffff;
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

/* ABOUT */
.about p {
  max-width: 800px;
  margin: 0 auto;
  color: #b5b5b5;
  font-size: 1rem;
  line-height: 1.6;
}

/* SKILL CHART */
canvas {
  max-width: 500px;
  margin: 0 auto;
}

/* PROJECTS */
.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.filter-btn {
  border: 1px solid #00ffff88;
  background: transparent;
  color: #00ffff;
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s;
}

.filter-btn.active, .filter-btn:hover {
  background: #00ffff;
  color: #0a0f16;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: #06141b;
  border: 1px solid #00ffff33;
  border-radius: 10px;
  overflow: hidden;
  padding-bottom: 1rem;
  transform: perspective(600px) rotateY(0deg);
  transition: transform 0.6s, box-shadow 0.4s;
  box-shadow: 0 0 10px #00ffff22;
}

.project-card:hover {
  transform: perspective(600px) rotateY(3deg);
  box-shadow: 0 0 25px #00ffff55;
}

.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.project-card h3 {
  color: #00ffcc;
  margin: 1rem 0 0.5rem;
}

.project-card p {
  font-size: 0.9rem;
  color: #ccc;
  margin: 0 1rem;
}

.links {
  margin-top: 0.5rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.links a {
  color: #00ffff;
  text-decoration: none;
  font-weight: 600;
}
.links a:hover { color: #00ff99; }

/* ACHIEVEMENTS */
.achievements ul {
  list-style: none;
  max-width: 700px;
  margin: auto;
  text-align: left;
}
.achievements li {
  margin: 0.8rem 0;
  padding: 0.6rem 1rem;
  background: #08121a;
  border-left: 4px solid #00ffff;
  border-radius: 4px;
  box-shadow: 0 0 10px #00ffff22;
}

/* TIMELINE */
.timeline-container {
  max-width: 700px;
  margin: auto;
  border-left: 2px solid #00ffff55;
  position: relative;
  padding-left: 2rem;
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 0;
  width: 15px;
  height: 15px;
  background: #00ffff;
  border-radius: 50%;
  box-shadow: 0 0 10px #00ffff99;
}

.timeline-item h3 {
  color: #00ffcc;
  margin-bottom: 0.4rem;
}

/* CHATBOT */
#chatbot {
  position: fixed;
  bottom: 1.2rem;
  right: 1.2rem;
  background: #06141b;
  border: 1px solid #00ffff55;
  border-radius: 12px;
  width: 280px;
  box-shadow: 0 0 15px #00ffff33;
  overflow: hidden;
  z-index: 999;
}

#chatbot-header {
  background: linear-gradient(90deg, #00ffff, #00ff99);
  color: #0a0f16;
  text-align: center;
  padding: 0.5rem;
  font-weight: 700;
}

#chatbot-body {
  height: 200px;
  overflow-y: auto;
  padding: 0.5rem;
}

#chatbot-input {
  width: 100%;
  border: none;
  padding: 0.5rem;
  outline: none;
  background: #0d1117;
  color: #00ffff;
}

.bot-msg, .user-msg {
  padding: 0.4rem 0.6rem;
  margin: 0.4rem 0;
  border-radius: 8px;
  font-size: 0.85rem;
}
.bot-msg { background: #00ffff22; text-align: left; }
.user-msg { background: #00ff9922; text-align: right; }

/* CONTACT */
.contact .social {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}
.contact a {
  color: #00ffff;
  text-decoration: none;
}
.contact a:hover { color: #00ff99; }

/* FOOTER */
footer {
  text-align: center;
  padding: 2rem;
  margin-top: 2rem;
  border-top: 1px solid #00ffff33;
}

.footer-signature {
  font-family: 'Poppins', cursive;
  font-size: 1.2rem;
  color: #00ffff;
  animation: shimmer 4s infinite alternate;
}

@keyframes shimmer {
  0% { text-shadow: 0 0 5px #00ffff; }
  50% { text-shadow: 0 0 20px #00ff99; }
  100% { text-shadow: 0 0 5px #00ffff; }
}

/* BACK TO TOP */
#backToTop {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: #00ffff;
  color: #0a0f16;
  border: none;
  border-radius: 50%;
  padding: 0.7rem 0.9rem;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 0 15px #00ffff55;
  display: none;
  transition: all 0.3s;
}
#backToTop:hover {
  background: #00ff99;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  nav { display: none; }
  header { justify-content: center; }
  .section { padding: 5rem 8% 3rem; }
}
#neon-cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  background: radial-gradient(circle, #00ffff55 0%, transparent 80%);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 999999;
  transition: all 0.08s ease-out;
}
#chatbot {
  animation: neonPulse 2.5s infinite alternate;
}
@keyframes neonPulse {
  from { box-shadow: 0 0 8px #00ffff55; }
  to { box-shadow: 0 0 18px #00ff99aa; }
}