/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: sans-serif;
  background-color: #730131;
  color: white;
  text-align: center;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.navbar {
  background-color: #730131;
  padding: 1rem;
}
.navbar ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  list-style: none;
}
.navbar a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}
.nav-logo {
  width: 60px;
  height: auto;
}

.content {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px 20px;
  flex: 1;
}

#project-section {
  margin-top: 40px;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 1fr;
  gap: 20px;
  width: 90%;
  max-width: 800px;
  margin: 20px auto;
}
.project-card {
  background: #730131;
  border: 2px solid #ffffff;
  border-radius: 8px;
  padding: 20px;
  text-align: left;
  color: #ffffff;
}
.project-card h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
}
.project-card p {
  font-size: 0.95rem;
  margin-bottom: 12px;
}
.project-card a {
  font-weight: bold;
  text-decoration: none;
  color: #FDBF57;
}

#refresh-projects {
  padding: 12px;
  background-color: #ffffff;
  color: #7a003c;
  border: 2px solid #7a003c;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
#refresh-projects:hover {
  background-color: #FDBF57
}

footer a[href*="github.com"],
footer a[href*="linkedin.com"] {
  color: #FDBF57;
}

footer {
  padding: 2rem 1rem;
  font-size: 0.9rem;
}

.ascii-banner {
  white-space: pre;
  font-family: monospace;
  margin: 3rem auto;
  font-size: 12px;
  color: white;
}

form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
form label {
  font-weight: bold;
}
form input,
form textarea {
  padding: 10px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  width: 100%;
  box-sizing: border-box;
}
form button {
  padding: 12px;
  background-color: #ffffff;
  color: #7a003c;
  border: 2px solid #7a003c;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
form button:hover {
  background-color: rgb(253, 191, 87);
}

@media only screen and (max-width: 768px) {
  .ascii-banner {
    display: none;
  }

  .navbar ul {
    flex-direction: column;
    gap: 1rem;
  }
  .navbar li.logo {
    order: -1;
  }

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