* {
  margin-left: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  display: flex;
  min-height: 100%;
  background: white;
  color: rgb(51, 51, 51);
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 250px;
  height: 100%;
  background: rgb(29, 39, 56);
  color: white;
  padding: 5px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.linkedin {
  display: flex;
}

.sidebar h1 {
  font-size: 24px;
  margin-bottom: 8px;
  text-align: center;
}

.sidebar p {
  font-size: 20px;
  text-align: center;
  margin-bottom: 15px;
}

.sidebar a {
  color: rgb(250, 204, 21);
  text-decoration: none;
  font-weight: bold;
  display: block;
  margin: 8px 0;
  padding: 8px 10px;
  border-radius: 6px;
  transition: 0.3s;
}

.sidebar a:hover {
  background: rgb(250, 204, 21);
  color: rgb(29, 39, 56);
}

/* Main Content */
.main-content {
  margin-left: 260px;
  flex: 1;
  padding: 30px;
}

/* Header inside main content */
.main-header {
  text-align: center;
  margin-bottom: 30px;
}

.main-header h1 {
  font-size: 30px;
  color: rgb(29, 39, 56);
  margin-bottom: 8px;
}

.main-header p {
  margin: 3px 0px;
}

.main-header a {
  color: rgb(30, 64, 175);
  text-decoration: none;
  font-weight: bold;
}

section {
  max-width: 900px;
  margin-bottom: 30px;
  padding: 25px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

h2 {
  color: rgb(29, 39, 56);
  margin-bottom: 16px;
  border-left: 5px solid rgb(250, 204, 21);
  padding-left: 10px;
  font-size: 23px;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skills span {
  background: rgb(250, 204, 21);
  color: rgb(29, 39, 56);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 16px;
  font-weight: 500;
  transition: 0.3s;
}

.skills span:hover {
  background: rgb(29, 39, 56);
  color: rgb(250, 204, 21);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* responsive */
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
}

.card {
  display: flex;
  flex-direction: column; /* stack content */
  justify-content: flex-start;
  padding: 16px;
  border-radius: 12px;
  background-color: antiquewhite;
  border: 1px solid white;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  overflow: hidden; /* prevent content overflow */
  word-wrap: break-word; /* wrap long words */
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
}

.card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.card .tools {
  font-weight: bold;
  margin-bottom: 6px;
}

.card .desc {
  font-size: 14px;

  color: black;
  margin-bottom: auto; /* pushes content neatly */
  overflow: hidden; /* cut off overflow */
  text-overflow: ellipsis;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(3, 206, 246, 0.5);
}

/* 📱 Mobile view */
@media (max-width: 600px) {
  .cards {
    grid-template-columns: 16px;
  }

  .card img {
    height: 150px;
  }
}

footer {
  text-align: center;
  padding: 16px;
  background: rgb(29, 39, 56);
  color: white;
  margin-top: 30px;
  border-radius: 10px;
}

footer a {
  color: rgb(250, 204, 21);
  text-decoration: none;
}

/* Responsive */
@media (max-width: 750px) {
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    flex-direction: column;
    align-items: flex-start;
  }
  .cards {
    display: flex;
    flex-direction: column;
  }
  .main-content {
    margin-left: 0;
    padding: 16px;
  }
  .main-header h1 {
    font-size: 25px;
  }
}
