/* General */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #0d1117;
  color: #fff;
  text-align: center;
  overflow-x: hidden;
}

/* Highlight text */
.highlight {
  color: #00aaff;
}

/* Header */
.header {
  padding: 2rem;
  background: #111827;
  animation: fadeIn 1s ease-in-out;
}
.profile-pic {
  width: 120px;
  height: 120px;
  border-radius: 50%; /* ✅ Makes it circular */
  border: 3px solid #00aaff;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}
.profile-pic:hover {
  transform: scale(1.1) rotate(3deg);
}

/* Section headers */
section {
  padding: 2rem 1rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s forwards;
}
.projects { animation-delay: 0.3s; }
.skills { animation-delay: 0.6s; }
.about { animation-delay: 0.9s; }
.contact { animation-delay: 1.2s; }

h2 {
  color: #00aaff;
  margin-bottom: 1rem;
  position: relative;
}
h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #00aaff;
  margin: 8px auto 0;
  border-radius: 2px;
}

/* Projects */
.project-grid {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.project-card {
  background: #1f2937;
  padding: 1rem;
  border-radius: 10px;
  width: 250px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 170, 255, 0.4);
}

/* Skills */
.skills .skill {
  margin: 1rem auto;
  width: 80%;
  text-align: left;
}
.bar {
  background: #333;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}
.bar div {
  height: 14px;
  background: linear-gradient(90deg, #00aaff, #0077ff);
  border-radius: 10px;
  width: 0;
  animation: growBar 2s forwards;
}
.skill:nth-child(1) .bar div { animation-delay: 0.3s; width: 75%; }
.skill:nth-child(2) .bar div { animation-delay: 0.6s; width: 95%; }

/* About & Contact */
.about, .contact {
  background: #111827;
  padding: 2rem;
  margin-top: 1rem;
  border-radius: 10px;
  transition: background 0.3s ease;
}
.about:hover, .contact:hover {
  background: #1a2435;
}

/* Footer */
footer {
  background: #0d1117;
  padding: 1rem;
  font-size: 0.9rem;
  border-top: 1px solid #222;
  opacity: 0;
  animation: fadeIn 1s 1.5s forwards;
}

/* Typing & Fade-in Effects */
.fade-in {
  opacity: 0;
  animation: fadeIn 1s forwards;
  animation-delay: 0.5s;
}
.typing-cursor::after {
  content: "|";
  color: #00aaff; /* Match theme */
  animation: blink 0.7s infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes growBar {
  from { width: 0; }
  to { width: 100%; }
}

/* -----------------
   📱 Mobile Styles
------------------- */
@media (max-width: 768px) {
  .project-grid {
    flex-direction: column;
    align-items: center;
  }
  .project-card {
    width: 90%; /* stretch nicely on mobile */
  }
  .skills .skill {
    width: 90%;
  }
  .header {
    padding: 1.5rem 1rem;
  }
  h1 {
    font-size: 1.8rem;
  }
  p {
    font-size: 1rem;
  }
  footer {
    font-size: 0.8rem;
  }
}
