* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Poppins', sans-serif;
  color: #222;
  background: #bbbbe8;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.navbar {
  background: #1f2937;
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgb(0 0 0 / 0.1);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.logo {
  font-weight: 700;
  font-size: 1.8rem;
  color: #7c83a0;
  text-decoration: none;
  letter-spacing: 2px;
  transition: color 0.3s ease;
}
.logo:hover {
  color: #a5b4fc;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
}
.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}
.nav-links a:hover,
.nav-links a:focus {
  background: #4A4E69;
  outline: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle .hamburger,
.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
  display: block;
  background-color: white;
  height: 3px;
  width: 25px;
  border-radius: 3px;
  position: relative;
  transition: all 0.3s ease;
}
.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}
.nav-toggle .hamburger::before {
  top: -8px;
}
.nav-toggle .hamburger::after {
  top: 8px;
}

.nav-toggle.active .hamburger {
  background-color: transparent;
}
.nav-toggle.active .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}
.nav-toggle.active .hamburger::after {
  transform: rotate(-45deg);
  top: 0;
}

.section {
  padding: 80px 0;
}
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  color: #4A4E69;
  margin-bottom: 40px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  position: relative;
}
.section-title::after {
  content: '';
  width: 60px;
  height: 4px;
  background: #a5b4fc;
  display: block;
  margin: 10px auto 0;
  border-radius: 2px;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
}
.profile-pic {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid #4A4E69;
  box-shadow: 0 10px 30px rgba(35, 31, 60, 0.216);
  transition: transform 0.3s ease;
}
.profile-pic:hover {
  transform: scale(1.05);
}
.about-text {
  max-width: 640px;
  font-size: 1.15rem;
  color: #374151;
}

#skills {
  background-color: #f3f4f6; 
  padding: 3rem 1rem;
}

#skills .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

#skills h2 {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  color: #4338ca;
  margin-bottom: 2.5rem;
}
#skills-section {
  padding: 60px 20px;
  background: #f8f9fa;
  text-align: center;
}

#skills-section h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
}

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

.skill-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  padding: 20px;
  transition: transform 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-5px);
}

.skill-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.skill-card p {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 15px;
}

@media (max-width: 640px) {
  #skills {
    padding: 2rem 1rem;
  }
  #skills h2 {
    font-size: 1.75rem;
  }
}

.education-list {
  list-style: none;
  max-width: 800px;
  margin: 0 auto;
}
.education-list li {
  background: white;
  border-radius: 16px;
  box-shadow: 0 15px 30px rgba(145, 158, 171, 0.1);
  padding: 24px 32px;
  margin-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.education-list li:hover {
  box-shadow: 0 25px 40px rgba(79, 70, 229, 0.2);
  transform: translateY(-5px);
}
.education-list h3 {
  color: #4A4E69;
  margin-bottom: 4px;
}
.education-list p {
  color: #5b5f6a;
  font-weight: 500;
  margin-bottom: 8px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
  gap: 28px;
}
.project-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(145, 158, 171, 0.12);
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: box-shadow 0.35s ease, transform 0.35s ease;
  cursor: pointer;
}
.project-card:hover {
  box-shadow: 0 40px 80px rgba(79, 70, 229, 0.3);
  transform: translateY(-8px);
}
.project-card h3 {
  color: #4A4E69;
  font-weight: 700;
  margin-bottom: 16px;
}
.project-card p {
  flex-grow: 1;
  color: #5b5f6a;
  margin-bottom: 22px;
  font-size: 1rem;
}
.project-card a {
  text-decoration: none;
  align-self: start;
  padding: 10px 20px;
  background: #8598f9;
  color: white;
  font-weight: 600;
  border-radius: 12px;
  transition: background-color 0.3s ease;
}
.project-card a:hover,
.project-card a:focus {
  background-color: #a5b4fc;
  outline: none;
}

.achievements-list {
  list-style: disc inside;
  max-width: 750px;
  margin: 0 auto;
  color: #374151;
  font-weight: 500;
  font-size: 1.1rem;
  line-height: 1.7;
}

footer {
  background: #1f2937;
  color: #a5b4fc;
  padding: 25px 20px;
}
.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  font-size: 0.9rem;
}
.social-links a {
  margin-left: 18px;
  color: #a5b4fc;
  transition: color 0.3s ease;
}
.social-links a:hover,
.social-links a:focus {
  color: #818cf8;
  outline: none;
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 60px;
    right: 0;
    height: calc(100% - 60px);
    width: 220px;
    background: #1f2937;
    flex-direction: column;
    gap: 30px;
    padding: 40px 20px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  .nav-links.open {
    transform: translateX(0);
  }
  .nav-toggle {
    display: block;
  }
  .about-content {
    flex-direction: column;
    text-align: center;
  }
  .about-text {
    max-width: 100%;
  }
}

.section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.section-visible {
  opacity: 1;
  transform: translateY(0);
}

