* {
  margin: 0;
  padding: 0;
}

body {
  background-color: rgb(0, 0, 33);
  color: white;
  font-family: "Poppins", sans-serif;
}

nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 85px;
  background-color: rgb(18, 24, 59);
}

nav .left {
  font-size: 2rem;
}

nav ul {
  display: flex;
  justify-content: center;
  gap: 23px;
  list-style-type: none;
}

nav ul li a {
  text-decoration: none;
  color: white;
}

nav ul li a:hover {
  color: rgb(153, 153, 226);
  font-size: 1.1rem;
}

.firstSection {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 120px 0;
  height: 80vh;
}

.firstSection > div {
  width: 30%;
}

.leftSection {
  background-image: url(profile-img/background.png);
  width: 300px;
  height: 80vh;
  background-size: cover;
  background-position: center;
  border-radius: 20px;
  box-shadow: 0 0 30px rgba(193, 55, 221, 0.3);
  position: relative;
  overflow: hidden;
}

.rightSection {
  font-size: 2rem;
}

.text-purple {
  color: rgb(193, 55, 221);
}

#element {
  color: rgb(193, 55, 221);
}

main hr {
  border: 0;
  background: rgb(228, 228, 230);
  height: 1px;
  margin: 48px 84px;
}

.sectionbox h1,
.secondSection h1,
.skillsSection h1,
.projectsSection h1,
.contactSection h1 {
  font-size: 1.9rem;
  margin-bottom: 30px;
  text-align: center;
}

.EduSection {
  max-width: 80vw;
  margin: auto;
  padding: 50px 0;
}

.education-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.education-item {
  display: flex;
  align-items: center;
  background-color: #1a1a1a;
  padding: 20px;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.education-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(193, 55, 221, 0.3);
}

.education-logo {
  width: 50px;
  height: 50px;
  margin-right: 20px;
}

.education-details {
  flex: 1;
}

.education-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.institution-name {
  font-size: 1.2rem;
  font-weight: 500;
}

.graduation-date {
  font-size: 0.9rem;
  color: gray;
}

.education-description {
  font-size: 0.9rem;
  color: gray;
}

.secondSection {
  max-width: 80vw;
  margin: auto;
  padding: 50px 0;
}

.experience-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.experience-item {
  display: flex;
  align-items: center;
  background-color: #1a1a1a;
  padding: 20px;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.experience-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(193, 55, 221, 0.3);
}

.experience-logo {
  width: 50px;
  height: 50px;
  margin-right: 20px;
}

.experience-details {
  flex: 1;
}

.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.job-title {
  font-size: 1.2rem;
  font-weight: 500;
}

.job-date {
  font-size: 0.9rem;
  color: gray;
}

.job-description {
  font-size: 0.9rem;
  color: gray;
}

.rightSection .btn {
  margin-top: 10px;
  padding: 8px;
  background-color: #1e1e42;
  color: white;
  border: 2px solid white;
  border-radius: 6px;
  font-size: 15px;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
}

.skillsSection {
  max-width: 80vw;
  margin: auto;
  padding: 50px 0;
}

.skills-toggle {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}

.toggle-btn {
  padding: 10px 20px;
  background-color: #1e1e42;
  color: white;
  border: 2px solid white;
  border-radius: 7px;
  font-size: 16px;
  font-family: "Poppins", sans-serif;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.toggle-btn.active {
  color: white;
}

.toggle-btn:hover {
  background-color: rgb(59, 36, 63);
  color: white;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.skill-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #1a1a1a;
  padding: 15px;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(193, 55, 221, 0.3);
}

.skill-logo {
  width: 40px;
  height: 40px;
}

.skill-item span {
  font-size: 18px;
  color: white;
}

.projectsSection {
  max-width: 80vw;
  margin: auto;
  padding: 50px 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.project-item {
  background-color: #1a1a1a;
  padding: 20px;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(193, 55, 221, 0.3);
}

.project-title {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 10px;
  color: white;
}

.project-description {
  font-size: 0.9rem;
  color: gray;
  margin-bottom: 15px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: rgb(193, 55, 221);
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.project-link:hover {
  color: white;
}

.project-link i {
  font-size: 1rem;
}

.contactSection {
  max-width: 80vw;
  margin: auto;
  padding: 50px 0;
}

.contact-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
}

.contact-form {
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem;
  background: #1a1a1a;
  border: none;
  font-family: "Poppins", sans-serif;
  border-radius: 5px;
  color: white;
}

.contact-form .btn {
  width: 100%;
  padding: 10px;
  background-color: #353569;
  color: white;
  border: 2px solid rgb(56, 47, 77);
  border-radius: 5px;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.contact-form .btn:hover {
  background-color: #4a4a5c;
}

.footer {
  background-color: #0e0e1a;
  height: 100px;
  display: flex;
  padding: 23px 122px;
  justify-content: space-evenly;
  align-items: center;
  position: relative;
}

.footer-icons {
  position: absolute;
  right: 122px;
  display: flex;
  gap: 10px;
}

.icon-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #2c2c3a;
  border-radius: 50%;
  color: #ffffff;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.icon-circle:hover {
  background-color: #4a4a5c;
}

.icon-circle i {
  font-size: 18px;
}

footer .footer-rights {
  text-align: center;
  color: grey;
  padding: 12px 0;
}

@media (max-width: 768px) {
  .contact-content {
    flex-direction: column;
  }

  .firstSection {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 60px 0;
  }

  .leftSection {
    width: 100%;
    height: 300px;
    margin-bottom: 30px;
  }

  .rightSection {
    width: 100%;
    font-size: 1.5rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .sectionContainer {
    max-width: 90vw;
  }

  .experience-item {
    flex-direction: column;
    text-align: center;
  }

  .experience-logo {
    margin-right: 0;
    margin-bottom: 15px;
  }

  .experience-header {
    flex-direction: column;
    gap: 5px;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  nav {
    flex-direction: column;
    height: auto;
    padding: 15px 0;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
  }

  .firstSection {
    margin: 30px 0;
  }

  .rightSection {
    font-size: 1.2rem;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }
}

.Education,
.Skills,
.Projects,
.Contacts,
.Experience {
  scroll-behavior: smooth;
}
