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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  background-color: #f8fafc;
  color: #1f2937;
  min-height: 100vh;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: #ffffff;
  color: #1e3a8a;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 40px;
  transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.logo {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 1.2px;
  user-select: none;
  color: #2563eb;
}

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

.nav-links a {
  color: #374151;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 6px 0;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: "";
  display: block;
  width: 0%;
  height: 2px;
  background: #2563eb;
  transition: width 0.3s ease;
  position: absolute;
  bottom: 0;
  left: 0;
}

.nav-links a:hover,
.nav-links a.active-link {
  color: #2563eb;
}

.nav-links a:hover::after,
.nav-links a.active-link::after {
  width: 100%;
}


.hamburger {
  display: none;
  font-size: 30px;
  cursor: pointer;
  color: #374151;
  user-select: none;
}

.hero {
  min-height: 100vh;
  text-align: center;
  padding: 120px 20px 100px;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
  color: #1f2937;
  position: relative;
  overflow: hidden;
}

.profile-pic {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #93c5fd;
  margin: 0 auto 24px;
  user-select: none;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.hero h1 span {
  color: #2563eb;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 35px;
  font-weight: 500;
  color: #475569;
}

/* Hero Buttons */
.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.btn {
  background-color: #2563eb;
  color: #ffffff;
  padding: 14px 32px;
  border-radius: 35px;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.3);
  transition: all 0.3s ease;
  user-select: none;
}

.btn:hover {
  background-color: #1e40af;
  color: #ffffff;
  transform: scale(1.06);
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.45);
}

section h2 {
  text-align: center;
  font-size: 2.4rem;
  margin: 60px 0 30px;
  color: #1e40af;
  font-weight: 700;
  letter-spacing: 1px;
}

#about {
  padding: 0 40px 60px;
  min-height: 100vh;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.1rem;
  color: #475569;
  line-height: 1.8;
  scroll-margin-top: 120px;
}

#education {
  padding: 0px 20px 80px;
  min-height: 100vh;
  background: #f8fafc;
  text-align: center;
  scroll-margin-top: 120px;
}

.education-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.education-card {
  background: #ffffff;
  padding: 25px 20px;
  border-radius: 14px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
}

.education-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.education-card h3 {
  font-size: 1.25rem;
  color: #1e40af;
  margin-bottom: 8px;
}

.education-card p {
  font-size: 1rem;
  color: #475569;
  margin-bottom: 4px;
}

.skills-section {
  min-height: 100vh;
  /* padding: 60px 20px 80px; */
  background: #ffffff;
  text-align: center;
  scroll-margin-top: 120px;
}

.skills-section h2 {
  font-size: 2.4rem;
  /* margin-bottom: 12px; */
  color: #1e40af;
  font-weight: 700;
}

.skills-section p {
  margin-bottom: 40px;
  font-size: 1.05rem;
  color: #475569;
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

/* Skill Card */
.skill-card {
  background: #f8fafc;
  padding: 20px 20px;
  border-radius: 14px;
  box-shadow: 0 6px 15px rgba(0, 64, 128, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 64, 128, 0.15);
}

.skill-card i {
  font-size: 42px;
  margin-bottom: 12px;
  color: #2563eb;
}

.skill-card h3 {
  font-size: 1.2rem;
  color: #1f2937;
  margin-bottom: 12px;
}

.progress-bar {
  background: #e5e7eb;
  border-radius: 8px;
  height: 10px;
  overflow: hidden;
}

.progress {
  height: 10px;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
  border-radius: 8px;
  width: 0;
  transition: width 1.2s ease-in-out;
}

.fade-in.visible .progress {
  width: inherit;
}

#projects {
  padding: 0 20px 80px;
  background: #f8fafc;
  scroll-margin-top: 120px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}

.project-card {
  background: #ffffff;
  padding: 24px 22px;
  border-radius: 16px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  user-select: none;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.25);
}


.project-card h3 {
  font-size: 1.4rem;
  color: #1e40af;
  margin-bottom: 10px;
  font-weight: 700;
}

.project-card p {
  font-size: 1rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 16px;
}

.project-card a {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
}

.project-card a:hover {
  color: #1e40af;
  transform: translateY(-2px);
}


#contact {
  min-height: 100vh;
  background: #f1f5f9;
  padding: 50px 20px 60px;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 64, 128, 0.1);
  scroll-margin-top: 120px;
}

.contact-info p {
  margin: 14px 0;
  font-size: 1.1rem;
  color: #1f2937;
}

#contact a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

#contact a:hover {
  color: #1e40af;
  text-decoration: underline;
}

.contact-info-icons {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 25px 0;
}

.contact-info-icons a svg {
  width: 30px;
  height: 30px;
  transition: transform 0.3s ease;
}

.contact-info-icons a:hover svg {
  transform: scale(1.2);
}

.contact-form {
  /* margin-top: 30px; */
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contactName {
  margin-top: 0px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px 16px;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  font-family: "Poppins", sans-serif;
  resize: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.contact-form button {
  align-self: center;
}

.form-message {
  text-align: center;
  margin-top: 10px;
  font-weight: 500;
  color: #2563eb;
}

footer {
  text-align: center;
  padding: 20px;
  background-color: #2563eb;
  color: #ffffff;
  font-weight: 500;
  font-size: 0.95rem;
  user-select: none;
}

.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease, transform 1s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* -------------------- Responsive -------------------- */
@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    right: 40px;
    background-color: #ffffff;
    flex-direction: column;
    border-radius: 8px;
    width: 200px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    padding: 15px 0;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    margin: 10px 0;
    text-align: center;
  }

  .hamburger {
    display: block;
  }
}

@media (max-width: 960px) {
  .project-grid {
    flex-direction: column;
    gap: 40px;
    padding: 0 20px 50px;
  }

  .project-card {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .project-card {
    padding: 20px;
  }

  .project-card h3 {
    font-size: 1.3rem;
  }

  .project-card p {
    font-size: 0.95rem;
  }

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

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

  .hero-buttons {
    flex-direction: column;
    gap: 16px;
  }

  .btn {
    padding: 12px 28px;
    font-size: 1rem;
  }

  .navbar {
    padding: 15px 20px;
  }
}

@media (max-width: 768px) {
  .project-grid {
    gap: 24px;
  }
}