
* {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }
body { background: #0d1117; color: #e6edf3; }

/* ================== Navbar ================== */
nav {
  background: #0d1117;
  padding: 15px 10%;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-size: 30px;
  font-weight: bold;
  background: linear-gradient(90deg, #ff6ec7, #58a6ff, #8a2be2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 1px;
  cursor: pointer;
  transition: 0.3s ease-in-out;
}
.logo:hover {
  background: linear-gradient(90deg, #ff9a8b, #ff6ec7, #8a2be2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transform: scale(1.05);
}
nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}
nav ul li a {
  color: #c9d1d9;
  font-size: 16px;
  text-decoration: none;
  transition: 0.3s;
}
nav ul li a:hover { color: #58a6ff; }

/* ================== Header ================== */
#header {
  min-height: 100vh;
  padding: 100px 10% 60px;
  background: linear-gradient(135deg, #0d1117, #1c1f26);
  display: flex;
  align-items: center;
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.header-left { flex: 1; min-width: 320px; }
.header-left h1 {
  font-size: 64px;
  font-weight: 800;
  background: linear-gradient(90deg, #58a6ff, #1f6feb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.header-left h2 {
  margin-top: 20px;
  font-size: 32px;
  font-weight: 600;
  color: #ffcc70;
}
.highlight, #role { color: #cafd6a; }
.underline { border-bottom: 3px solid #38bdf8; font-weight: bold; }

.social-links { margin-top: 25px; }
.social-links a {
  font-size: 28px;
  color: #58a6ff;
  margin-right: 20px;
  transition: 0.3s;
}
.social-links a:hover { color: #ff6ec7; }

.header-buttons {
  margin-top: 30px;
  display: flex;
  gap: 20px;
}
.btn {
  padding: 14px 28px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 0 12px rgba(0,0,0,0.3);
  transition: 0.3s;
}
.resume-btn {
  background: linear-gradient(90deg, #58a6ff, #1f6feb);
  color: #fff;
}
.resume-btn:hover {
  background: linear-gradient(90deg, #1f6feb, #58a6ff);
  transform: scale(1.05);
}
.hire-btn {
  background: linear-gradient(90deg, #ff6ec7, #8a2be2);
  color: #fff;
}
.hire-btn:hover {
  background: linear-gradient(90deg, #8a2be2, #ff6ec7);
  transform: scale(1.05);
}

.header-right { flex: 1; display: flex; justify-content: flex-end; }
.header-right img {
  width: 360px;
  height: 360px;
  border-radius: 50%;
  border: 4px solid #58a6ff;
  object-fit: cover;
  box-shadow: 0 0 40px rgba(88,166,255,0.6);
  transition: 0.3s;
}
.header-right img:hover { transform: scale(1.05); }

/* ================== About ================== */
#about { padding: 100px 8%; max-width: 1100px; margin: auto; }
.about-container {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}
.about-left img {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 4px solid #58a6ff;
  object-fit: cover;
  box-shadow: 0 0 25px rgba(88,166,255,0.5);
}
.about-right h2 { font-size: 36px; margin-bottom: 20px; color: #58a6ff; }
.about-right p { font-size: 18px; line-height: 1.7; margin-bottom: 20px; }
.personal-info p {
  margin: 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.personal-info i { color: #58a6ff; }

.interest-heading { margin: 35px 0 20px; font-size: 28px; color: #58a6ff; }
.interests {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
}
.interest-box {
  background: #161b22;
  border-radius: 16px;
  padding: 25px;
  text-align: center;
  transition: 0.3s;
}
.interest-box i { font-size: 34px; color: #58a6ff; margin-bottom: 12px; }
.interest-box:hover { background: #1c1f26; transform: translateY(-6px); }

/* ================== Education ================== */
#education { padding: 70px 8%; background: #161b22; }
.section-heading { font-size: 36px; text-align: center; margin-bottom: 50px; color: #58a6ff; }
.education-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}
.edu-box {
  background: #1c2128;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  transition: 0.3s;
}
.edu-box img {
  width: 100%;
  height: 180px;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 15px;
}
.edu-box h3 a { color: #58a6ff; text-decoration: none; }
.edu-box:hover { transform: translateY(-6px); background: #22272e; }

/* ================== Certificates ================== */
#certificates { padding: 80px 10%; }
#certificates h2 { text-align: center; color: #ff9933; margin-bottom: 40px; }
.certificates-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}
.certificate-box {
  background: #e6edf3;
  color: #111;
  padding: 20px;
  border-radius: 12px;
  transition: 0.3s;
}
.certificate-box:hover { background: #f0f4ff; transform: translateY(-6px); }
.certificate-box h3 a { color: #0d47a1; text-decoration: none; }
.certificate-box h3 a:hover { color: #ff6600; }

/* ================== Projects ================== */
.projects-section { padding: 80px 10%; background: #0d1117; text-align: center; }
.projects-section h2 { font-size: 36px; margin-bottom: 40px; color: #58a6ff; }
.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}
.project-card {
  background: #161b22;
  border-radius: 12px;
  overflow: hidden;
  padding: 20px;
  text-align: center;
  transition: 0.3s;
}
.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}
.project-card h3 { margin: 10px 0; color: #58a6ff; }
.project-card p { margin-bottom: 15px; font-size: 14px; }
.project-card a {
  display: inline-block;
  padding: 8px 14px;
  background: #0077ff;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  transition: 0.3s;
}
.project-card a:hover { background: #005bcc; }

/* ================== Skills ================== */
#skills { padding: 80px 10%; }
#skills h2 { text-align: center; color: #58a6ff; margin-bottom: 50px; }
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}
.skill-box {
  background: #1c2128;
  border-radius: 16px;
  padding: 25px;
  text-align: center;
  transition: 0.3s;
}
.skill-box h3 { margin-bottom: 20px; color: #f6f3fc; }
.skill-box i {
  font-size: 3rem;
  margin: 10px;
  color: #e6edf3;
  transition: 0.3s;
}
.skill-box i:hover { color: #58a6ff; transform: scale(1.2); }

/* ================== Contact ================== */
#contact { padding: 80px 10%; }
#contact h2 { text-align: center; margin-bottom: 40px; color: #58a6ff; }
.contact-container {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  justify-content: center;
}
.contact-box {
  flex: 1;
  min-width: 260px;
  background: #161b22;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
}
.contact-box h3 { color: #ffb758; margin-bottom: 10px; }
.contact-box p { color: #c9d1d9; }

/* ================== Footer ================== */
#footer {
  background: #0d1117;
  padding: 20px 8%;
  border-top: 1px solid rgba(88,166,255,0.3);
  text-align: center;
}
.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
}
.footer-links a {
  margin: 0 8px;
  color: #58a6ff;
  text-decoration: none;
  font-size: 14px;
}
.footer-links a:hover { color: #ff6ec7; }

/* ================== Responsive ================== */
@media (max-width: 1200px) {
  nav { padding: 15px 5%; }
  #header, #about, #education, #certificates, 
  .projects-section, #skills, #contact {
    padding: 60px 5%;
  }
}
@media (max-width: 992px) {
  .header-container { flex-direction: column-reverse; text-align: center; }
  .header-right { justify-content: center; margin-bottom: 20px; }
  .header-left h1 { font-size: 48px; }
  .header-left h2 { font-size: 24px; }
  nav ul { gap: 12px; }
}
@media (max-width: 768px) {
  nav ul { 
    display: none; 
    flex-direction: column; 
    background: #161b22; 
    position: absolute; 
    top: 60px; 
    right: 10px; 
    padding: 20px; 
    border-radius: 10px; 
    gap: 15px;
  }
  nav ul.active { display: flex; }
  .about-container { flex-direction: column; text-align: center; }
  .about-left img { width: 220px; height: 220px; }
  .contact-container { flex-direction: column; }
  .footer-container { flex-direction: column; align-items: center; }
}
@media (max-width: 576px) {
  .header-left h1 { font-size: 36px; }
  .header-left h2 { font-size: 20px; }
  .header-right img { width: 220px; height: 220px; }
  .btn { padding: 10px 18px; font-size: 14px; }
  .interest-box, .edu-box, .certificate-box, 
  .project-card, .skill-box, .contact-box {
    padding: 15px;
  }
}
