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

body {
  font-family: 'Segoe UI', sans-serif;
  background: #111;
  color: #eee;
  line-height: 1.6;
}

.container {
  max-width: 960px;
  margin: auto;
  padding: 20px;
}

header {
  background: #1e1e1e;
  padding: 20px 0;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav h1 {
  font-size: 1.5rem;
  color: #fff;
}

nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
}

nav a {
  color: #ddd;
  text-decoration: none;
  transition: color 0.3s;
}

nav a:hover {
  color: #1db954;
}

section {
  margin: 60px 0;
}

h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #1db954;
}

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

.project-card {
  background: #222;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #333;
}

footer {
  text-align: center;
  padding: 20px 0;
  background: #1e1e1e;
  color: #888;
}

.project-card a {
    color: inherit;
    text-decoration: none;
    display: block;
    height: 100%;
}

    .project-card a:hover {
        background: #1db95433;
        border-radius: 8px;
        transition: background 0.3s;
    }

.project-card {
    padding: 0;
    border: none;
    overflow: hidden;
}

.project-link {
    text-decoration: none;
    color: white;
    display: block;
    height: 200px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.project-bg {
    background-size: cover;
    background-position: center;
    height: 100%;
    width: 100%;
    position: relative;
}

.project-overlay {
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: background 0.3s;
}

.project-link:hover .project-overlay {
    background: rgba(29, 185, 84, 0.6);
}
