body {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  margin: 0;
  padding: 0;
  background: #fff;
  color: #333;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  box-sizing: border-box;
}

.hero {
  text-align: left;
  margin-bottom: 4rem;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.hero h2 {
  font-size: 1.5rem;
  color: #555;
  margin-bottom: 1rem;
}

.hero p {
  width: 100%;
  max-width: none;
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}

.section {
  margin-bottom: 4rem;
}

.section h3 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Reduce vertical spacing around the whole section */
.section.skills {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

/* Reduce padding inside each skills card */
.section.skills .card {
  padding: 0.75rem 1rem;
}

/* Tighten spacing in the list */
.section.skills .card ul {
  margin-top: 0.5rem;
  margin-bottom: 0;
  padding-left: 1rem;
}

.card {
  background: #f1f3f5; /* higher contrast */
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.card h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #0077CC;
}

.card p, .card ul {
  font-size: 0.95rem;
  line-height: 1.5;
}

.card ul {
  list-style-type: disc;
  margin-left: 1.2rem;
}

.hero-img {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: contain;
  background: #f1f3f5; /* Matches the card background */
  margin: 0 auto 1rem;
}

.accent {
  color: #0077CC;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start; /* Ensures all fields and labels align left */
}

.form-group {
  width: 100%;
}

.form-group label {
  font-weight: bold;
  display: block;
  margin-bottom: 0.25rem;
  text-align: left; /* Explicitly aligns label text left */
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  display: block;
}

.contact-form button {
  align-self: flex-start; /* Left-align the button */
}

.btn {
  background-color: #0077CC;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
}

.btn:hover {
  background-color: #005fa3;
}

.link-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
  max-width: 300px;
  z-index: 1;
}

.link-list .btn {
  display: block;
  width: 100%;
  text-align: center;
  background-color: #0077CC;
  color: white;
  padding: 0.75rem;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  text-decoration: none;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}