:root {
  --fg: #111;
  --bg: #FAF9F6;
  --accent: #297fc2;
  --max-width: 760px;
  font-family: montserrat, system-ui, sans-serif;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.6;
  min-height: 100vh;
  min-height: 100dvh;
}

header,
section,
footer {
  width: 100%;
  max-width: var(--max-width);
  padding: 2rem 1rem;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
}

nav a {
  margin-left: 1rem;
  text-decoration: none;
  color: var(--fg);
  font-weight: 500;
}

.hero {
  padding: 4rem 1rem;
  text-align: center;
}

.hero h1 {
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.06);
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.form-input {
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.list-section {
  width: 100%;
  max-width: var(--max-width);
  padding: 2rem 1rem;
}

.item-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.item-card {
  width: 100%;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 1.5rem;
  box-sizing: border-box;
  box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.06);

}

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

.item-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.item-year {
  background: var(--accent);
  color: white;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.85rem;
}

.item-description {
  margin: 0.75rem 0 1rem;
  color: #444;
}

.item-link {
  text-decoration: none;
  color: var(--accent);
  font-weight: 600;
}

footer {
  margin-top: auto;
  text-align: center;
  font-size: 0.85rem;
  padding-bottom: 3rem;
}

.skills-section {
  width: 100%;
  max-width: var(--max-width);
  padding: 2rem 1rem;
}

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

.skill-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 1.5rem;
  box-sizing: border-box;
  box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.06);

}

.skill-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.skill-desc {
  margin: 0 0 1rem;
  color: #444;
  line-height: 1.55;
}

.skill-tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tags li {
  background: #fafafa;
  border: 1px solid #eee;
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  font-size: 0.85rem;
  white-space: nowrap;
}