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

body {
  background-color: aliceblue;
  font-family: "Montserrat", sans-serif;
}

.navi {
  width: 100%;
  height: 100px;
  border-bottom: 2px solid black;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  background-color: white;
}

.navi h2 {
  font-size: 1.5rem;
}

.nav_desc {
  display: flex;
  gap: 1.5rem;
}

.nav_desc a {
  text-decoration: none;
  color: black;
  font-size: 1.1rem;
  font-weight: 600;
  transition: color 0.3s;
}

.nav_desc a:hover {
  color: blue;
}

.about {
  background: linear-gradient(20deg, rgb(0, 0, 0) 30%, rgb(113, 9, 31) 60%);
  color: aliceblue;
  width: 100%;
  min-height: 300px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  flex-wrap: wrap;
}

.mydesc {
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.name p {
  font-size: 1.8rem;
  font-weight: bold;
  color: white;
}

.decr p {
  font-size: 1rem;
  color: aliceblue;
}

button {
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  border: none;
  border-radius: 2rem;
  background-color: white;
  color: black;
  cursor: pointer;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #ddd;
}

.profileImg {
  background-image: url("me.jpg");
  background-size: cover;
  height: 300px;
  width: 250px;
  border-radius: 50%;
  background-color: white;
  border: 4px solid rgb(74, 51, 51);
}

@media (max-width: 768px) {
  .about {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .navi {
    flex-direction: column;
    height: auto;
    padding: 1rem;
    gap: 1rem;
  }

  .nav_desc {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .mydesc {
    align-items: center;
  }
}

.skills {
  margin-top: 2rem;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1rem;
}

.card {
  padding: 1rem;
  height: 130px;
  width: 300px;
  border-radius: 5px;
  border: 1px solid black;
  box-shadow: 0 0 10px rgb(0, 0, 0);
  background-color: rgb(192, 208, 210);
  transition: transform 0.3s ease;
}

.projectLink {
  text-decoration: none;
  color: inherit;
}

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

.card .p1 {
  color: rgb(4, 4, 87);
  font-weight: 700;
  font-size: 1.2rem;
}

.card .p2 {
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.section {
  width: 100%;
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  text-decoration: underline;
  margin-bottom: 1.5rem;
  color: rgb(4, 4, 87);
}

.project {
  margin-top: 2rem;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 1rem;
}

.projectCard {
  width: 100%;
  margin: 0;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  overflow: hidden;
  background-color: white;
  transition: transform 0.3s ease;
}

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

.projectTitle {
  height: 200px;
  background: linear-gradient(20deg, rgb(32, 30, 30) 20%, rgb(113, 9, 31) 60%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
}

.projectDesc {
  padding: 1rem;
  font-size: 1rem;
  color: #333;
}

.contact {
  text-align: center;
  padding: 3rem 1rem;
  background-color: #f0f0f0;
}

.contact h1 {
  font-size: 2rem;
  color: #080808;
  margin-bottom: 1rem;
  text-decoration: underline;
}

.contact p {
  font-size: 1rem;
  color: #000000;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.buttons button {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 25px;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.buttons button:hover {
  box-shadow: 0 0 5px black;
  transform: translateY(-1px);
}

.email {
  background-color: blue;
}

.call {
  background-color: green;
}

.link {
  background-color: black;
}

.git {
  background-color: rgb(234, 12, 12);
}

.footer {
  width: 100%;
  height: 150px;
  background-color: #011231;
  display: flex;
  justify-content: center;
}

.footer p {
  color: white;
  font-size: 0.8rem;
  margin-top: 2.5rem;
}

html {
  scroll-behavior: smooth;
}
.section {
  grid-column: 1 / -1;
}
.project {
  margin-top: 2rem;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 1rem;
}

@media (max-width: 900px) {
  .project {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .project {
    grid-template-columns: 1fr;
  }
}