/*  Font from Google */
.open-sans-normal {
  font-family: "Open Sans", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}

/* Navigation */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 130px;
}

nav ul {
  display: flex;
  align-items: center;
  gap: 50px;
  padding: 0;
  margin: 0;
  list-style: none;
}

nav ul a {
  text-decoration: none;
  color: #474747;
  font-size: 20px;
  transition: color 0.3s ease;
}

nav ul a:hover {
  color: #1a701b;
}

.btn {
  background-color: #108461;
  border-radius: 5px;
  padding: 10px 25px;
  font-weight: bold;
  font-size: 20px;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: 0.3s ease;
  text-decoration: none;
}

.btn:hover {
  background-color: #1a701b;
}

/* Projects Header */
.projects-header {
  text-align: center;
  padding: 50px 20px;
  background-color: #bbcfc936;
}

.projects-header h1 {
  font-size: 36px;
  margin-bottom: 10px;
  color: #3a0303;
}

.projects-header p {
  font-size: 18px;
  color: #1b0707;
}

/* Project Cards Container */
.projects-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 35px;
  padding: 40px 20px;
background-color: #bbcfc936;
}

/* Project Card */
.project-card {
  background: linear-gradient(135deg, #ffffff, #f5f5f5);
  border-radius: 14px;
  box-shadow:  0 10px 25px rgba(0, 208, 235, 0.447);
  width: 310px;
  padding: 22px;
  text-align: center;
  transition: 0.3s ease;
  position: relative;
  overflow: hidden;
}

.project-card:hover {
  transform: translateY(-8px);
}

/* Moving gradient border */
.project-card::before {
  content: "";
  position: absolute;
  inset: -3px;
  z-index: -1;
  border-radius: 16px;
  background: linear-gradient(120deg, #ff0080, #00d4ff, #ff8c00);
  background-size: 300% 300%;
  animation: movingBorder 4s linear infinite;
}

@keyframes movingBorder {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

.project-card h3 {
  font-size: 22px;
  margin-bottom: 10px;
  color: #222;
}

.project-card p {
  font-size: 15px;
  color: #666;
  margin-bottom: 15px;
}

/* Buttons container */
.project-btns {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

/* GitHub Button */
.social-btn.github {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  background-color: #24292e;
  padding: 10px 18px;
  border-radius: 6px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  transition: 0.3s ease;
}

.social-btn.github:hover {
  background-color: #000;
}

/* View Project Button */
.project-card .btn {
  display: inline-block;
  text-decoration: none;
  background-color: #3e8e51c5;
  color: #fff;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: bold;
  transition: 0.3s ease;
}

.project-card .btn:hover {
  background-color: #463d67;
}

/* View Image Button */
button.image-btn {
  background-color: #ff6f61;
  border: none;
  border-radius: 6px;
  padding: 12px 20px;
  cursor: pointer;
  transition: 0.3s ease;
}

button.image-btn:hover {
  background-color: #e5534b;
}

button.image-btn a {
  text-decoration: none;
  color: #fff;
  font-weight: bold;
}

/* Responsive */
@media screen and (max-width: 900px) {
  nav {
    padding: 0 20px;
  }

  nav ul {
    gap: 20px;
  }

  .projects-container {
    flex-direction: column;
    align-items: center;
  }

  .project-card {
    width: 90%;
  }
}
