@font-face {
  font-family: 'Fontsite';
  src: url('https://superplaycounts.github.io/fonts/Bebas-Neue.ttf');
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Fontsite', cursive;
}

body {
  background-color: #f0f2f5;
  color: #333;
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 0;
}

header {
  background-color: #ffffff;
  padding: 20px 0;
  border-bottom: 1px solid #e0e0e0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 a {
  font-size: 2.8rem;
  color: #2c3e50;
  text-decoration: none;
  display: flex;
  align-items: center;
  letter-spacing: 1px;
}

header h1 a i {
  margin-right: 12px;
  color: #3498db;
}

header input[type="text"] {
  padding: 12px 18px;
  border: 1px solid #ccc;
  border-radius: 25px;
  width: 300px;
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
}
header input[type="text"]:focus {
  border-color: #3498db;
  box-shadow: 0 0 8px rgba(52, 152, 219, 0.4);
  outline: none;
}


main .intro-text {
  text-align: center;
  font-size: 1.6rem;
  color: #4a4a4a;
  margin: 40px auto;
  max-width: 750px;
  letter-spacing: 0.8px;
  line-height: 1.5;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.project-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 25px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.07);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

.project-card .card-icon {
  font-size: 2.8rem;
  color: #3498db;
  margin-bottom: 18px;
  text-align: center;
}
.project-card .card-icon i {
  width: 50px;
  height: 50px;
  line-height: 50px;
}

.project-card .name {
  font-size: 2rem;
  color: #2c3e50;
  margin-bottom: 12px;
  text-align: center;
  letter-spacing: 0.5px;
  word-break: break-word;
  line-height: 1.3;
}

.project-card .description {
  font-size: 1rem;
  color: #555;
  flex-grow: 1;
  text-align: center;
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
}

.project-card.highlight {
  border-left: 6px solid #3498db;
  background-color: #e9f5fd;
}

footer {
  background-color: #2c3e50;
  color: #ecf0f1;
  text-align: center;
  padding: 30px 0;
  margin-top: 60px;
}

footer p {
  font-size: 1rem;
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  header .container {
      flex-direction: column;
      gap: 20px;
  }
  header input[type="text"] {
      width: 90%;
      max-width: 400px;
  }
  .project-grid {
      grid-template-columns: 1fr;
      gap: 20px;
  }
  main .intro-text {
      font-size: 1.4rem;
  }
  header h1 a {
      font-size: 2.2rem;
  }
  .project-card .name {
      font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .project-card .name {
      font-size: 1.6rem;
  }
  .project-card .description {
      font-size: 0.95rem;
  }
  main .intro-text {
      font-size: 1.2rem;
  }
  header h1 a {
      font-size: 2rem;
  }
}