:root {
  --bg: #d8cfbf;
  --panel: #e3dacb;
  --panel-strong: #cdc1ac;
  --text: #322b22;
  --muted: #6b5f4f;
  --accent: #7b6446;
  --border: #b9aa94;
  --shadow: 0 8px 25px rgba(50, 43, 34, 0.16);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(180deg, #d8cfbf 0%, #ccc0ac 100%);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1000px, 92%);
  margin: 0 auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: rgba(216, 207, 191, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(4px);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
}

nav h1 {
  font-size: 1.1rem;
  letter-spacing: 0.2px;
}

.nav-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

.hero {
  padding: 72px 0 36px;
}

.hero-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 34px;
  box-shadow: var(--shadow);
}

.hero h2 {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.2;
  margin-bottom: 10px;
}

.hero p {
  color: var(--muted);
  max-width: 680px;
  margin-bottom: 18px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--panel);
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn.primary {
  background: var(--panel-strong);
  color: var(--text);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(43, 36, 31, 0.08);
  text-decoration: none;
}

section {
  padding: 24px 0;
}

section h3 {
  font-size: 1.35rem;
  margin-bottom: 14px;
}

.card {
  background: #e8dfd1;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 4px 14px rgba(50, 43, 34, 0.1);
}

.skills-grid,
.projects-grid {
  display: grid;
  gap: 14px;
}

.skills-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

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

.project-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.project-link:hover {
  text-decoration: none;
}

.project-link .card {
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.project-link:hover .card {
  transform: translateY(-3px);
  border-color: #a8947a;
  box-shadow: 0 8px 18px rgba(50, 43, 34, 0.18);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.pill {
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.85rem;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.pill:hover {
  transform: translateY(-1px);
  background: var(--panel-strong);
  box-shadow: 0 2px 8px rgba(50, 43, 34, 0.12);
}

.meta {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 8px;
}

.list {
  display: grid;
  gap: 12px;
}

footer {
  margin-top: 24px;
  padding: 30px 0 45px;
  color: var(--muted);
  text-align: center;
  font-size: 0.92rem;
}

@media (max-width: 700px) {
  .hero-card {
    padding: 24px;
  }

  nav {
    align-items: flex-start;
    gap: 10px;
    flex-direction: column;
  }
}
