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

body {
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
}

/* ================= NAVBAR ================= */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: #ffffff;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  z-index: 1000;
}

.navbar ul {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 15px 0;
}

.navbar li {
  margin: 0 20px;
}

.navbar a {
  text-decoration: none;
  color: #1e293b;
  font-weight: bold;
  transition: 0.3s;
}

.navbar a:hover {
  color: #2563eb;
}

/* ================= HERO ================= */
.hero {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 20px 50px;
  background: #e3edff;   /* light soft blue */
  border-radius: 10px;
}

.profile-pic {
  width: 180px;
  height: auto;
  max-height: 50vh;
  border-radius: 50%;
  border: 4px solid #ffffff;
  object-fit: cover;   /* prevent unwanted crop */
  margin-bottom: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 15px;
  color: #1e3a8a;
}

.hero-content p {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #1e3a8a;
  max-width: 700px;
  margin: auto;
}

/* ================= SECTIONS ================= */
.section {
  padding: 80px 20px;
  text-align: center;
  border-radius: 10px;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #0f172a;
}

/* Section backgrounds */
.skills-section { background: #f0f9ff; }
.projects-section { background: #fef6f6; }
.contact-section { background: #ecfdf5; }

/* ================= SKILLS ================= */
.skills-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

/* ================= SKILLS ================= */
.skills-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.skill {
  padding: 15px 20px;
  border-radius: 12px;
  font-weight: bold;
  color: #111827;   /* black text */
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  flex: 0 0 30%;   /* each skill takes ~30% width */
  min-width: 180px; /* prevents too small on large screens */
}

/* Modern light gradients */
.skill:nth-child(1) { background: linear-gradient(135deg,#a5f3fc,#67e8f9);}  /* cyan */
.skill:nth-child(2) { background: linear-gradient(135deg,#d9f99d,#bef264);}  /* lime */
.skill:nth-child(3) { background: linear-gradient(135deg,#fef08a,#fde047);}  /* yellow */
.skill:nth-child(4) { background: linear-gradient(135deg,#fbcfe8,#f9a8d4);}  /* pink */
.skill:nth-child(5) { background: linear-gradient(135deg,#c7d2fe,#a5b4fc);}  /* light purple */
.skill:nth-child(6) { background: linear-gradient(135deg,#fed7aa,#fb923c);}  /* light orange */

.skill:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  .skills-container {
    flex-direction: column;
    align-items: center;
  }

  .skill {
    flex: 1 1 80%;  /* almost full width on mobile */
    max-width: 300px;
  }
}
/* ================= PROJECTS ================= */
.projects-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
}

.project-card {
  width: 280px;
  min-height: 180px;
  padding: 20px;
  border-radius: 15px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  color: #0f172a;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Project gradients */
.project-card:nth-child(1){ background: linear-gradient(135deg,#dbeafe,#bfdbfe);}
.project-card:nth-child(2){ background: linear-gradient(135deg,#dcfce7,#bbf7d0);}
.project-card:nth-child(3){ background: linear-gradient(135deg,#fce7f3,#fbcfe8);}
.project-card:nth-child(4){ background: linear-gradient(135deg,#fef9c3,#fde68a);}
.project-card:nth-child(5){ background: linear-gradient(135deg,#ede9fe,#ddd6fe);}
.project-card:nth-child(6){ background: linear-gradient(135deg,#ffedd5,#fed7aa);}

.project-card h3 { margin-bottom: 10px; font-size: 1.1rem; }
.project-card p { font-size: 0.9rem; line-height: 1.4; }

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* ================= CONTACT ================= */
.contact-section a {
  color: #0f766e;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.contact-section a:hover {
  color: #14b8a6;
  text-decoration: underline;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
  .skills-container { justify-content: center; gap: 15px; flex-wrap: wrap; }
  .skill { width: 45%; } /* 2 per row for tablets */
  .projects-container { gap: 20px; }
  .project-card { width: 45%; min-height: 160px; }
}

@media (max-width: 768px) {
  .skills-container, .projects-container {
    flex-direction: column;
    align-items: center;
  }

  .skill { width: 80%; } /* 1 per row on mobile */
  .project-card { width: 90%; }

  .hero-content h1 { font-size: 2.2rem; }
  .hero-content p { font-size: 1rem; }

  .navbar ul { flex-direction: column; }
  .navbar li { margin: 10px 0; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 1.8rem; }
  .hero-content p { font-size: 0.95rem; }
}

/* ================= NAVBAR & HERO MOBILE FIX ================= */
@media (max-width: 768px) {
  /* Navbar mobile-friendly */
  .navbar {
    position: relative; /* fixed hata do, relative ho jaye */
    padding: 10px 0;
  }

  .navbar ul {
    flex-direction: column; /* links vertical ho jaayen */
    align-items: center;
    gap: 8px;
  }

  .navbar li {
    margin: 5px 0;
  }

  /* Hero section padding adjust */
  .hero {
    padding: 80px 20px 50px; /* top padding kam ki, hero fully visible rahe */
  }

  .hero-content h1 { font-size: 2rem; }
  .hero-content p { font-size: 1rem; }
}