/* ------ Global Reset-ish ------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  color: #111827;
  background-color: #f5f5f7;
  line-height: 1.6;
}

/* ------ Layout Containers ------ */

header,
main,
footer {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ------ Header / Hero ------ */

header {
  padding-top: 2.5rem;
  padding-bottom: 1.5rem;
}

header h1 {
  font-size: 2.2rem;
  letter-spacing: 0.02em;
  margin: 0 0 0.25rem;
}

header p {
  margin: 0;
  color: #6b7280;
  max-width: 32rem;
  font-size: 0.95rem;
}

nav {
  margin-top: 1.5rem;
}

nav a {
  display: inline-block;
  margin-right: 1.25rem;
  font-size: 0.9rem;
  text-decoration: none;
  color: #4b5563;
  padding-bottom: 0.1rem;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

nav a:hover {
  color: #111827;
  border-color: #111827;
}

/* ------ Main Content ------ */

main {
  padding-bottom: 2.5rem;
}

/* Card-like sections */
section {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 1.75rem 1.5rem;
  margin-top: 1rem;
  border: 1px solid #e5e7eb;
}

section + section {
  margin-top: 1rem;
}

section h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #6b7280;
}

section p {
  margin-top: 0.25rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: #374151;
}

/* ------ Projects List ------ */

#projects ul {
  list-style: none;
  padding: 0;
  margin: 0.25rem 0 0;
}

#projects li {
  padding: 0.6rem 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.95rem;
  color: #111827;
}

#projects li:last-child {
  border-bottom: none;
}

/* ------ Contact Form ------ */

label {
  display: block;
  margin-bottom: 0.9rem;
  font-size: 0.85rem;
  color: #4b5563;
}

input,
textarea {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.55rem 0.7rem;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  font: inherit;
  color: #111827;
  background-color: #f9fafb;
  transition: border-color 0.15s ease, background-color 0.15s ease,
    box-shadow 0.15s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #111827;
  background-color: #ffffff;
  box-shadow: 0 0 0 1px #1118270f;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

/* Button */

button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.25rem;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1px solid #111827;
  background-color: #111827;
  color: #f9fafb;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease,
    transform 0.1s ease, box-shadow 0.1s ease;
}

button:hover {
  background-color: #000000;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.15);
  transform: translateY(-1px);
}

button:active {
  box-shadow: none;
  transform: translateY(0);
}

/* Status text under the form */

#contact-status {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #6b7280;
}

/* ------ Footer ------ */

footer {
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
  font-size: 0.8rem;
  color: #9ca3af;
}

/* Slight top border to separate from main content */
footer::before {
  content: "";
  display: block;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    #e5e7eb,
    transparent
  );
  margin-bottom: 1.25rem;
}

/* ------ Utility / Responsive ------ */

@media (max-width: 640px) {
  header,
  main,
  footer {
    padding: 0 1.1rem;
  }

  header {
    padding-top: 1.75rem;
    padding-bottom: 1.25rem;
  }

  header h1 {
    font-size: 1.9rem;
  }

  nav {
    margin-top: 1.1rem;
  }

  nav a {
    margin-right: 0.9rem;
  }

  section {
    padding: 1.4rem 1.2rem;
  }
}
