* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: #0e1525;
  color: #dbe4f3;
  line-height: 1.6;
  font-size: 16px;
  scroll-behavior: smooth;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

section {
  padding: 80px 0;
}

.navbar {
  width: 100%;
  background: rgba(15, 23, 42, 0.9);
  color: white;
  padding: 16px 0;
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #38bdf8;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 28px;
}

.nav-links a {
  padding: 8px 15px;
  border-radius: 8px;
  font-weight: 500;
  transition: 0.3s ease;
}

.nav-links a:hover {
  background: #38bdf822;
  color: #38bdf8;
}

.hero {
  width: 100%;
  min-height: 85vh;
  padding: 120px 40px;
  background: url('galaxy.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  color: white;
  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 30px;
}

.hero-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 50px;
  width: 100%;
}

.hero-text {
  flex: 1;
  min-width: 350px;
}

.hero-text h1 {
  font-size: 58px;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-text h1 span {
  color: #f9f500;
}

.hero-text p {
  font-size: 20px;
  opacity: 0.95;
}

.hero-img {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.hero-img img {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid #3b82f6;
  box-shadow: 0 0 30px rgba(59,130,246,0.6);
}

.section-head h2 {
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 30px;
  color: #38bdf8;
  text-align: center;
  letter-spacing: 1px;
}

.about {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 26px;
}

.about-card {
  background: #162034;
  border: 1px solid #263249;
  border-radius: 18px;
  padding: 24px;
  flex: 1;
  min-width: 300px;
  max-width: 430px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  transition: 0.3s ease;
}

.about-card:hover {
  transform: translateY(-6px);
  border-color: #38bdf8;
}

.about-card h3 {
  color: #38bdf8;
  margin-bottom: 14px;
}

.about-card ul li {
  margin-bottom: 10px;
}

.edu-skill {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  justify-content: center;
}

.timeline .t-item {
  border-left: 3px solid #38bdf8;
  padding-left: 14px;
  margin-bottom: 16px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;   
  align-items: center;
  width: 100%;                
  margin: 0 auto;           
}

.chip {
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px dashed #38bdf8;
  background: #0f172a;
  color: #dbeafe;
  font-size: 14px;
  font-weight: 500;

  display: flex;
  align-items: center;
  gap: 8px;
}

.chip img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  border-radius: 4px;
}

#contact .chip-row a.chip:hover {
  background: #38bdf8;
  color: #0f172a;
  border-color: #38bdf8;
}

#contact .chip-row a.chip:hover img {
  filter: brightness(0);
}

.skillbar {
  height: 12px;
  background: #0f172a;
  border-radius: 999px;
  margin-bottom: 16px;
  border: 1px solid #334155;
  overflow: hidden;
}

.skillbar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #38bdf8);
}

#projects .grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.card {
  background: #162034;
  border: 1px solid #263249;
  border-radius: 24px;
  overflow: hidden;
  width: 380px;
  height: 520px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  transition: 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
  border-color: #38bdf8;
  box-shadow: 0 12px 38px rgba(0,0,0,0.45);
}

.card figure {
  height: 260px;
  overflow: hidden;
}

.card figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card .body {
  padding: 22px;
  text-align: center;
}

.tag {
  background: rgba(56,189,248,0.15);
  border: 1px solid rgba(56,189,248,0.4);
  padding: 7px 14px;
  font-size: 13px;
  color: #38bdf8;
  border-radius: 999px;
  margin: 0 5px;
}

#contact {
  padding: 80px 20px;
  background: #0e1525;
}

#contact .contact-wrap {
  width: 95%;
  max-width: 1200px;
  margin: 0 auto;

  padding: 40px 30px;
  background: #162034;
  border: 1px solid #263249;
  border-radius: 22px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);

  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

#contact .contact-wrap .about-card {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  max-width: 700px;
}

footer {
  border-top: 1px solid #263249;
  padding: 30px 0;
  color: #94a3b8;
  text-align: center;
  margin-top: 40px;
}

footer .socials {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 14px;
}

.icon {
  width: 22px;
  height: 22px;
}

@media (max-width: 900px) {
  .hero-text h1 {
    font-size: 40px;
  }
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero-img {
    justify-content: center;
  }
}

@media (max-width: 620px) {
  .nav-links {
    display: none;
  }

  .about,
  .edu-skill,
  #projects .grid {
    flex-direction: column;
    align-items: center;
  }
}