* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background-color: #1e1e1e;
  color: #e0e0e0;
  line-height: 1.6;
}

header {
  background-color: #2c2c2c;
  padding: 2rem;
  text-align: center;
  border-bottom: 1px solid #444;
}

header h1 {
  font-size: 2.5rem;
}

nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
}

nav a {
  color: #aaa;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

nav a:hover {
  color: #fff;
}

section {
  max-width: 800px;
  margin: 4rem auto;
  padding: 0 2rem;
}

.card {
  background-color: #2a2a2a;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  margin-bottom: 2rem;
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

.card h3 {
  margin-bottom: 1rem;
  color: #fff;
}

footer {
  text-align: center;
  padding: 2rem;
  background-color: #2c2c2c;
  border-top: 1px solid #444;
  color: #888;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease-out forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.project {
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.project:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.btn-detail {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  background-color: #444;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.btn-detail:hover {
  background-color: #666;
}

.modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.7);
}

.modal-content {
  background-color: #2a2a2a;
  margin: 10% auto;
  padding: 2rem;
  border: 1px solid #444;
  width: 80%;
  max-width: 600px;
  border-radius: 10px;
  color: #e0e0e0;
  position: relative;
}

.close {
  color: #aaa;
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: #fff;
}
