/* Page background & font */
body {
  font-family: "Bitcount Single", system-ui;
  background-color: #0f172a;
  color: #e5e7eb;
  margin: 0;
  padding: 0;
}

/* Navigation */
header {
  position: sticky;
  top: 0;
  background-color: #020617;
  z-index: 1000;
}

/* Sections */
section {
  padding: 1.25rem;
  margin: 1.25rem auto;
  max-width: 50rem;
}

/* Navigation links */
.nav-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
  padding: 0.75rem;
  margin: 0;
}

.nav-links a {
  color: #38bdf8;
  text-decoration: none;
  font-weight: bold;
}

.nav-links a:hover {
  text-decoration: underline;
}

/* Headings */
h1,
h2 {
  color: #38bdf8;
  font-weight: bold;
}

/* Profile image */
.profile-pic {
  display: block;
  margin: 1.25rem auto;
  width: 11.25rem;
  border-radius: 50%;
  border: 0.25rem solid #38bdf8;
}

/* Experience */
#Experience ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
/* skill section */
#Skills ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
}

#Skills ul li {
  background-color: #1e293b;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  color: #38bdf8;
  font-weight: bold;
}

/* Projects section */
#Projects ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

#Projects ul li {
  background-color: #1e293b;
  border: 1px solid #334155;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  color: #e2e8f0;
  overflow-wrap: anywhere;
}

/* Connect section */
.connect {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.connect a {
  width: 13.75rem;
  text-align: center;
  padding: 0.75rem 1rem;
  background-color: #1e293b;
  border-radius: 0.625rem;
  color: #38bdf8;
  text-decoration: none;
  font-weight: bold;
}

.connect a:hover {
  background-color: #334155;
}

/* footer section */
footer {
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}

footer p {
  margin: 0;
  color: #38bdf8;
  font-weight: bold;
}
/* Message Form */
#leave-message form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

#leave-message input,
#leave-message textarea {
  padding: 0.75rem;
  border-radius: 0.5rem;
  border: none;
  font-size: 1rem;
}

#leave-message textarea {
  min-height: 100px;
  resize: vertical;
}

#leave-message button {
  padding: 0.75rem;
  border-radius: 0.5rem;
  border: none;
  background-color: #38bdf8;
  color: #0f172a;
  font-weight: bold;
  cursor: pointer;
}

#leave-message button:hover {
  background-color: #0ea5e9;
}

/* Messages List */
#messages ul {
  list-style: none;
  padding: 0;
}

#messages li {
  background-color: #1e293b;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
  border-radius: 0.5rem;
}

#messages button {
  margin-left: 1rem;
  border: none;
  padding: 0.3rem 0.6rem;
  border-radius: 0.4rem;
  cursor: pointer;
}

#messages .edit-button {
  background-color: #f59e0b;
  color: #0f172a;
}

#messages .remove-button {
  background-color: #ef4444;
  color: white;
}

/* =========================
            Mobile
   ========================= 
*/
@media (max-width: 480px) {
  .nav-links {
    flex-direction: column; /* change 1 */
    align-items: center; /* change 2 */
    gap: 0.75rem; /* change 3 */
  }
  /* Make Connect responsive on mobile */
  .connect {
    flex-direction: column; /* change 1 */
    gap: 0.75rem; /* change 2 */
  }

  .connect a {
    width: 100%; /* change 1 */
    max-width: 16.25rem; /* change 2 */
  }

  #Projects ul {
    grid-template-columns: 1fr;
  }
}

/* =========================
          Tablet Styles
   ========================= */
@media (max-width: 768px) {
  .nav-links {
    gap: 1rem; /* change 1 */
    flex-wrap: wrap; /* change 2 */
  }
  section {
    padding: 1.5rem; /* change 1 */
    max-width: 90%; /* change 2 */
  }
  h1 {
    font-size: 1.75rem; /* change 1 */
    text-align: center; /* change 2 */
  }

  h2 {
    font-size: 1.4rem; /* change 1 */
    text-align: center; /* change 2 */
  }

  #Projects ul {
    grid-template-columns: 1fr;
  }
}
