body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: #000;
  color: #fff;
  line-height: 1.6;
  overflow-x: hidden;
  scroll-behavior: smooth;
  position: relative;
  z-index: 0;
}

#tsparticles {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
}

nav {
  position: fixed;
  top: 0;
  left: -23px;
  width: 100%;
  background: rgba(0, 0, 0, 0.85);
  padding: 10px 20px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(5px);
}

nav a {
  color: white;
  margin: 0 1rem;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

nav a:hover {
  color: #facc15;
}

nav a.active {
  color: #0ff;
  text-shadow: 0 0 10px #0ff, 0 0 20px #0ff;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0%;
  height: 2px;
  background: #0ff;
  transition: width 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  position: absolute;
  right: 20px;
  top: 15px;
  z-index: 1100;
}

@media (max-width: 768px) {
  nav {
    flex-direction: column;
    display: none;
    border-radius: 0 0 10px 10px;
  }
  nav.active {
    display: flex;
  }
  .menu-toggle {
    display: block;
    color: white;
  }
}

header {
  background: radial-gradient(circle at top, #1a1a2e, #000);
  color: white;
  padding: 6rem 2rem 4rem;
  text-align: center;
  overflow: hidden;
  position: relative;
}

header h1 {
  margin: 0;
  font-size: 2.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: nowrap;
  position: relative;
  z-index: 1;
}

.typing-wrapper {
  display: inline-block;
  background: linear-gradient(135deg, #3b82f6, #9333ea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid #9333ea;
  letter-spacing: .05em;
  vertical-align: bottom;
  animation: typing 3s steps(14, end) infinite alternate,
             blink 0.75s step-end infinite;
}

@keyframes typing {
  from { width: 0; }
  to { width: 16ch; }
}

@keyframes blink {
  50% { border-color: transparent; }
}

.social-icons {
  margin-top: 1rem;
  position: relative;
  z-index: 1;
}

.social-icons a {
  margin: 0 10px;
  color: white;
  font-size: 1.5rem;
  transition: color 0.3s, transform 0.3s;
}

.social-icons a:hover {
  color: #ec4899;
  transform: scale(1.2);
}

section {
  padding: 6rem 2rem;
  margin-bottom: 6rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  scroll-margin-top: 80px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.03);
}

section:last-of-type {
  border-bottom: none;
  box-shadow: none;
}

section.show {
  opacity: 1;
  transform: translateY(0);
}

h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #4f46e5, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.about img {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover; 
  border: 4px solid #4f46e5;
  box-shadow: 0 0 20px rgba(79, 70, 229, 0.6);
}

.about-text {
  flex: 1;
  min-width: 280px;
}

.skills ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.skills li {
  background: linear-gradient(135deg, #1f1f1f, #2d2d2d);
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.skills li:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px rgba(236, 72, 153, 0.6);
}

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

.project-card {
  background: #111;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 1.5rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 0 15px rgba(79, 70, 229, 0.8);
}

footer {
  background: #111;
  color: #aaa;
  text-align: center;
  padding: 4px;
  margin-top: 15px;
  font-size: 0.9rem;
}

button {
  padding: 0.6rem 1.2rem;
  background: linear-gradient(135deg, #2563eb, #9333ea);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.5);
  transition: transform 0.2s, opacity 0.3s;
}

button:hover {
  opacity: 0.9;
  transform: scale(1.05);
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: none;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #111;
  padding: 2rem;
  border-radius: 10px;
  max-width: 500px;
  text-align: center;
}

.close-btn {
  margin-top: 1rem;
  background: #ef4444;
}

/* ============================= */
/* 📱 Responsive Media Queries   */
/* ============================= */

/* Tablets */
@media (max-width: 1024px) {
  header h1 {
    font-size: 2.4rem;
  }

  .about img {
    width: 180px;
    height: 180px;
  }

  .skills ul {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
}

/* Mobiles */
@media (max-width: 768px) {
  header {
    padding: 4rem 1.5rem 3rem;
  }

  header h1 {
    font-size: 2rem;
    flex-wrap: wrap;
    text-align: center;
  }

  .typing-wrapper {
    font-size: 1.2rem;
    border-right: 1.5px solid #9333ea;
  }

  section {
    padding: 4rem 1.5rem;
    margin-bottom: 4rem;
  }

  .about {
    flex-direction: column;
    text-align: center;
  }

  .about img {
    width: 160px;
    height: 160px;
  }

  .skills ul {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }

  .projects {
    grid-template-columns: 1fr;
  }

  nav {
    padding: 8px 10px;
  }

  nav a {
    margin: 0.5rem 0;
  }
}

/* Small Mobiles */
@media (max-width: 480px) {
  body {
    font-size: 0.9rem;
  }

  header {
    padding: 3rem 1rem 2rem;
  }

  header h1 {
    font-size: 1.6rem;
    gap: 5px;
  }

  .typing-wrapper {
    font-size: 1rem;
    border-right: 1px solid #9333ea;
  }

  .about img {
    width: 130px;
    height: 130px;
  }

  button {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  footer {
    font-size: 0.75rem;
    padding: 6px;
  }
}
/* ================= Projects Section Updates ================= */

/* GitHub button style */
.github-btn {
  background: #333;
  margin-left: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: white;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.3s, background 0.3s;
}

.github-btn:hover {
  background: #0ff;
  color: #000;
  transform: scale(1.05);
  box-shadow: 0 0 10px #0ff;
}

/* Profile photo enhancements */
.about img {
  width: 260px;  /* increased size */
  height: 260px;
  border-radius: 50%;
  object-fit: cover; 
  border: 4px solid #4f46e5;
  box-shadow: 0 0 25px rgba(79, 70, 229, 0.8);
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
}

/* Project description enhancements */
.project-desc {
  color: #f0f0f0;
  background: linear-gradient(90deg, #4f46e5, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 500;
  margin-bottom: 1rem;
}

/* ================= Certificates Section Updates ================= */
.certificates .project-card {
  background: #111;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 1.5rem;
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}

.certificates .project-card:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 0 20px rgba(79, 70, 229, 0.8);
  background: linear-gradient(135deg, #1f1f1f, #2d2d2d);
}

.certificates .project-card h3 {
  background: linear-gradient(135deg, #4f46e5, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

.certificates .project-card p {
  color: #f0f0f0;
  font-weight: 500;
  margin-bottom: 1rem;
}

.certificates .project-card button {
  background: linear-gradient(135deg, #2563eb, #9333ea);
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.5);
  transition: transform 0.2s, opacity 0.3s, box-shadow 0.3s;
}

.certificates .project-card button:hover {
  transform: scale(1.05);
  opacity: 0.9;
  box-shadow: 0 0 15px rgba(37, 99, 235, 0.8);
}


/* Global font update */
body {
  font-family: 'Roboto', sans-serif;
}

h1, h2, h3 {
  font-family: 'Montserrat', sans-serif;
}

/* Optional: Slight weight adjustment for headings */
h1 {
  font-weight: 700;
}

h2, h3 {
  font-weight: 600;
}
