* {
  padding: 0;
  margin: 0;
  font-family: Tahoma, sans-serif;
  cursor: pointer;
}

ul {
  display: flex;
  flex-wrap: wrap;
  text-align: center;
  margin-top: 20px;
}

ul li {
  list-style: none;
}

ul li a {
  text-decoration: none;
  color: aliceblue;
  font-size: 18px;
  padding: 1rem 2rem;
  position: relative;
}

a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: aliceblue;
  transform: scaleX(0);
  transition: all 1s;
  transform-origin: left;
  border: 2px double rgb(8, 7, 0);
}

ul li a:hover::before,
ul li a:hover::after {
  transform: scaleX(1);
}
a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: aliceblue;
  transform: scaleX(0);
  transition: all 1s;
  transform-origin: right;
  border: 2px double rgb(8, 7, 0);
}
header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: auto;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: rgb(0, 0, 22);
}

#projects {
  padding: 60px 20px;
  text-align: center;
}

#projects h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: #007bff;
}

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

.project a {
  text-decoration: none;
}

.card {
  background: #fff;
  border: 2px solid #007bff;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.card:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 123, 255, 0.2);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card h3 {
  color: #007bff;
  margin: 15px 0 10px;
  font-size: 20px;
}

.card p {
  color: #333;
  font-size: 14px;
  padding: 0 10px 15px;
}
