body {
  font-family: "Poppins", sans-serif;
  margin: 0;
  background: #121212;
  color: #fff;
}

h2 {
  text-align: center;
  margin: 2rem 0 1rem;
  font-size: 2rem;
}

.timeline-section {
  padding: 2rem 1rem;
}

.cards-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.card {
  background: #1f1f1f;
  border-radius: 12px;
  padding: 1rem;
  width: 250px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform 0.2s;
}

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

.card h3 {
  font-size: 1.1rem;
  margin: 0;
}

.card p {
  font-size: 0.9rem;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Limit preview to 3 lines */
  -webkit-box-orient: vertical;
}

.card button {
  align-self: flex-end;
  padding: 0.3rem 0.6rem;
  font-size: 0.85rem;
  border: none;
  border-radius: 6px;
  background: #00ffff;
  color: #000;
  cursor: pointer;
  transition: background 0.2s;
}

.card button:hover {
  background: #00cccc;
}

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

.modal-content {
  background: #1f1f1f;
  margin: 10% auto;
  padding: 2rem;
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  position: relative;
}

.close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: #00ffff;
}

/* About Me */
#about {
  padding: 2rem 1rem;
  text-align: center;
}

#about-text {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
  color: #ccc;
}

/* Social Links */
.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.social-links a {
  color: #00ffff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.2s;
}

.social-links a:hover {
  color: #00cccc;
}

.skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.skill-category {
  flex: 1 1 200px;
  text-align: center;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 0.5rem;
}

.skill-tag {
  background: #00ffff;
  color: #000;
  padding: 0.4rem 0.8rem;
  border-radius: 12px;
  font-size: 0.85rem;
  cursor: default;
  transition: transform 0.2s, background 0.2s;
}

.skill-tag:hover {
  transform: translateY(-2px);
  background: #00cccc;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.modal-links a {
  color: #00ffff;
  font-size: 0.9rem;
  text-decoration: none;
  background: #1b1b1b;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  transition: background 0.2s;
}

.modal-links a:hover {
  background: #00cccc;
}
