 .portfolio-link {
   color: #bfa76a;
   text-decoration: underline;
   font-size: 1.08rem;
   margin-bottom: 0.2em;
   text-align: center;
   transition: color 0.2s;
 }
 
 .portfolio-link:hover, .portfolio-link:focus {
   color: #000;
 }
body {
  background: #f5f1e6;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #222;
  margin: 0;
}

.logo {
  width: 120px;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  margin: 0;
  font-family: 'Georgia', serif;
  color: #222;
}

header {
  background: #f5f1e6;
  padding: 2rem 0;
  text-align: center;
  border-bottom: 2px solid #e0d7c3;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

nav {
  margin: 1rem 0;
}

nav a {
  display: inline-block;
  background: #f6f0df;
  color: #000;
  padding: 0.5em 1.2em;
  margin: 0 0.3em;       
  border-radius: 2em;
  text-decoration: none;
  font-weight: 600;
  border: 2px solid #e2d2a7;
  box-shadow: none;
  transition: background 0.2s, color 0.2s, border 0.2s;
}

nav a:hover {
  background: #c6b175;
  color: #fff;
  border: 2px solid #c6b175;
}

main {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.portfolio-list h2 {
  text-align: center;
  color: #8B6F28;
  margin-bottom: 2rem;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  justify-items: center;
  align-items: stretch;
}

@media (max-width: 900px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

.portfolio-card {
  width: 100%;
  max-width: 270px;
  height: 280px;
  background: #fff;
  border: 2px solid #e2d2a7;
  border-radius: 1em;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.2s, border 0.2s;
}

.portfolio-card:hover {
  box-shadow: 0 6px 24px rgba(139, 111, 40, 0.13);
  border: 2px solid #c6b175;
}

.portfolio-card h3 {
  color: #8B6F28;
  margin-bottom: 0.5em;
}

.portfolio-card .portfolio-info {
  background: #444;
  color: #fff;
  padding: 0.3rem 0.5rem 0.5rem 0.5rem;
  border-radius: 0 0 1em 1em;
  position: absolute;
  background: #444;
  color: #fff;
  padding: 0.5rem 0.7rem 0.7rem 0.7rem;
  border-radius: 0 0 1em 1em;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 38%;
  min-height: 110px;
  max-height: 140px;
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
}
