/* ---------- Global Reset ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Poppins", sans-serif;
  background: #0d1117;
  color: #e6edf3;
  line-height: 1.6;
}
section {
  padding: 60px 6%;
}

/* ---------- Navbar ---------- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 6%;
  background: #0b1015;
  position: sticky;
  top: 0;
  z-index: 999;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}
.nav-brand {
  color: #cfe8ff;
  font-weight: 600;
  font-size: 1.1rem;
}
.nav-links {
  display: flex;
  gap: 18px;
  align-items: center;
  transition: max-height 0.3s ease;
}
.nav-links a {
  color: #cfe8ff;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 6px;
  transition: 0.2s;
  font-weight: 500;
}
.nav-links a:hover {
  color: #58a6ff;
  background: rgba(88, 166, 255, 0.04);
  transform: translateY(-2px);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}
.hamburger span {
  height: 3px;
  width: 25px;
  background: #cfe8ff;
  border-radius: 2px;
  transition: 0.3s;
}

/* Hamburger open animation */
.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Intro ---------- */
.intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  flex-wrap: wrap;
  padding: 72px 6%;
}
.intro-text {
  max-width: 700px;
}
.intro-text h1 {
  font-size: 28px;
  font-weight: 600;
  color: #e9f2ff;
  margin-bottom: 6px;
}
.intro-text .highlight {
  color: #58a6ff;
}
.intro-text p {
  font-size: 16.5px;
  color: #c9d6e6;
  margin-bottom: 18px;
  max-width: 60ch;
}
.btn {
  display: inline-block;
  background: linear-gradient(180deg, #58a6ff, #1f6feb);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}
.intro-img img {
  width: 350px;
  height: 350px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(88, 166, 255, 0.14);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.6);
}

/* ---------- Headings ---------- */
section h2 {
  color: #cfe8ff;
  text-align: center;
  font-size: 26px;
  margin-bottom: 20px;
  font-weight: 600;
}
section p {
  color: #b9c6d8;
  font-size: 15.5px;
  text-align: center;
}

/* ---------- Skills ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 24px auto 0;
}
.skill-card {
  background: #0f1620;
  border-radius: 12px;
  padding: 18px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  border: 1px solid rgba(88, 166, 255, 0.04);
}
.skill-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(88, 166, 255, 0.06);
}
.skill-card i,
.skill-card img {
  font-size: 40px;
  color: #58a6ff;
  margin: 0 auto;
}
.skill-card p {
  color: #dcecff;
  font-size: 14px;
  margin: 0;
  font-weight: 500;
}

/* ---------- Projects ---------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 20px auto 0;
}
.project-card {
  background: #0f1620;
  border-radius: 12px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.02);
  transition: transform 0.22s, box-shadow 0.22s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}
.project-card h3 {
  color: #58a6ff;
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.project-card p {
  color: #c9d6e6;
  font-size: 14px;
}
.project-card a {
  color: #bfe6ff;
  text-decoration: none;
  font-weight: 600;
  margin-top: auto;
}

/* ---------- Contact ---------- */
.contact form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
}
.contact input,
.contact textarea {
  width: 100%;
  max-width: 460px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  background: #0b1218;
  color: #e6edf3;
  font-size: 15px;
  resize: vertical;
}
.contact input:focus,
.contact textarea:focus {
  outline: none;
  border-color: #58a6ff;
}
.contact .btn {
  width: fit-content;
  padding: 10px 24px;
  margin-top: 6px;
}
.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}
.social-links i {
  font-size: 26px;
  color: #58a6ff;
  transition: 0.2s;
}
.social-links i:hover {
  color: #1f6feb;
}

/* ---------- Footer ---------- */
footer {
  text-align: center;
  padding: 20px;
  color: #7c8a99;
  font-size: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  margin-top: 30px;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  .nav-links {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #0b1015;
    max-height: 0;
    overflow: hidden;
    gap: 10px;
    padding: 0;
    transition: max-height 0.25s ease;
  }
  .nav-links.active {
    max-height: 240px;
    padding: 12px 0;
  }
  .intro {
    flex-direction: column-reverse;
    text-align: center;
  }
  .intro-img img {
    width: 270px;
    height: 270px;
  }
}
