/* ---------------- Basic Reset ---------------- */
html, body {
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
  background-color: #161617;
  color: #a9a9a8;
  font-size: 18px;
}

/* ---------------- Navigation ---------------- */
nav {
  padding: 1em 0;
  background: rgba(22, 22, 23, 0.7);
  position: sticky;
  top: 0;
  z-index: 100;
}
ul {
  list-style-type: none;
  margin: 0;
  padding: 0 2em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-name {
  color: white;
  font-size: 2.5em;
}
.nav-yellow {
  color: #ffc55d;
}

.nav-section {
  font-size: 1.2em;
  display: flex;
  align-items: center;
}
button {
  font-size: 16px;
  color: #e1e1e1;
  font-weight: 800;
  cursor: pointer;
  border: none;
  background: none;
  text-transform: uppercase;
  padding: 10px 20px;
  margin: 0 10px;
  transition: color 0.4s;
}
button:hover, button:focus {
  color: #fcff36;
}

/* ---------------- Hero Section ---------------- */
header {
  background: linear-gradient(135deg, #161617, #1a1a1a);
  padding: 100px 20px;
  text-align: center;
}

.info {
  background-color: rgba(22, 22, 23, 0.7);
  padding: 40px;
  border-radius: 10px;
  width: 60%;
  margin: 0 auto;
}
.intro-para {
  font-size: 18px;
  text-align: justify;
}
.yellow {
  color: #ffc55d;
}
.resume a {
  color: #ffc55d;
  text-decoration: none;
  border-bottom: 1px solid #ffc55d;
  padding-bottom: 2px;
}
.resume a:hover {
  border-bottom-width: 2px;
}

/* ---------------- Skills Section ---------------- */
#Skills {
  padding: 80px 20px;
  text-align: center;
}
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}
.skill-card {
  background-color: rgba(22,22,23,0.7);
  padding: 20px;
  border-radius: 10px;
  width: 200px;
  box-shadow: 0 0 10px rgba(255,255,255,0.1);
}
.skill-name {
  font-weight: 700;
  margin-bottom: 10px;
}
.progress {
  background: #333;
  height: 10px;
  border-radius: 5px;
}
.bar {
  height: 10px;
  width: 0%; /* will animate with GSAP */
  background: #ffc55d;
  border-radius: 5px;
}

/* ---------------- Projects Section ---------------- */
/* Projects Section */
#projects {
  padding: 80px 20px;
  text-align: center;
}
#projects h2 {
  margin-bottom: 40px;
  color: #ffc55d;
}
.projects-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}
.project-card {
  background-color: rgba(22,22,23,0.7);
  border-radius: 12px;
  width: 260px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  position: relative;
}
.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(255, 197, 93, 0.4);
}
.project-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}
.project-content {
  padding: 20px;
}
.project-content h3 {
  margin: 0 0 10px 0;
  color: #ffc55d;
}
.project-content p {
  font-size: 14px;
  line-height: 1.4;
  color: #e1e1e1;
}
.project-button {
  display: inline-block;
  margin-top: 15px;
  padding: 8px 15px;
  background-color: #ffc55d;
  color: #161617;
  text-decoration: none;
  font-weight: 700;
  border-radius: 20px;
  transition: background 0.3s;
}
.project-button:hover {
  background-color: #ffd966;
}

/* Responsive */
@media screen and (max-width:768px) {
  .projects-grid {
    flex-direction: column;
    align-items: center;
  }
}

/* ---------------- Contact Section ---------------- */
#contact {
  padding: 80px 20px;
  text-align: center;
}
#contact form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
#contact input, #contact textarea {
  padding: 12px;
  border-radius: 5px;
  border: none;
  font-size: 16px;
}
#contact button {
  background-color: #ffc55d;
  color: #161617;
  font-weight: 700;
  border-radius: 25px;
  padding: 12px;
  cursor: pointer;
  transition: background 0.3s;
}
#contact button:hover {
  background-color: #ffd966;
}

/* ---------------- Responsive ---------------- */
@media screen and (max-width: 768px) {
  .info {
    width: 90%;
    padding: 20px;
  }
  .intro-para {
    font-size: 16px;
  }
  .resume a {
    font-size: 16px;
  }
  nav ul {
    flex-direction: column;
    align-items: center;
    padding: 0 1em;
  }
  .nav-name {
    font-size: 1.8em;
    margin-bottom: 0.5em;
  }
  .nav-section {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
  button {
    font-size: 14px;
    padding: 8px 12px;
    margin: 5px 0;
  }
  .skills-grid, .projects-grid {
    flex-direction: column;
    align-items: center;
  }
}
.about-section {
  text-align: center;
  max-width: 800px;
  margin: auto;
}

.about-section p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin: 15px 0;
}

.about-section .highlight {
  font-weight: bold;
  color: #00b894; /* nice green accent */
}
/* Responsive Design */
@media (max-width: 768px) {
  /* Make nav links stack nicely */
  nav ul {
    flex-direction: column;
    gap: 10px;
  }

  /* About section - stack vertically */
  .about {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .about-text {
    max-width: 100%;
    padding: 0 10px;
  }

  /* Project cards */
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-card img {
    height: auto;
    max-height: 200px;
  }

  /* Contact section */
  .contact {
    text-align: center;
    padding: 20px;
  }
}

@media (max-width: 480px) {
  h1, h2, h3 {
    font-size: 1.2rem;
  }

  .hero {
    padding: 40px 10px;
  }

  .project-card {
    padding: 10px;
  }

  nav {
    font-size: 0.9rem;
  }
}
