body {
  font-family: Arial, sans-serif;
  margin: 0;
  background-color: #f4f4f4;
  padding-top:100px ;
}

html {
  scroll-padding-top: 120px; /* match your navbar height */
  scroll-behavior: smooth;   /* optional: makes scroll smooth */
}




nav {
  background-color: #1f1f1f;
  padding: 1rem;
  text-align: center;
  position: fixed;
  top: 0;            /* ✅ stick it to the top */
  left: 0;
  width: 100%;
  z-index: 1000;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

nav a {
  color: #f4f4f4;
  text-decoration: none;
  margin: 0 20px;
  font-weight: bold;
  font-size: 18px;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #00C9A7;
  text-decoration: none;
  font-weight: bold;
}

.card {
  background: white;
  margin: 2rem auto;
  padding: 2rem;
  border-radius: 10px;
  width: 80%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.project {
  display: flex;
  align-items: center;
  background-color: #f0f4ff; /* light blue background */
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.project img {
  width: 180px;
  height: auto;
  border-radius: 12px;
  margin-right: 1.5rem;
}

.project div {
  flex: 1;
}

.project a {
  display: inline-block;
  margin-top: 0.5rem;
  background-color: #007bff;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
}

.project {
  display: flex;
  align-items: center;
  background-color: #f0f4ff;
  border-radius: 12px;
  padding: 1rem;
  margin-top: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}








/* Certificates */
/* Certificates container */
.certificate-box {
  display: flex;
  justify-content: space-between; /* left, center, right */
  align-items: flex-start;        /* align items at the top */
  background-color: #c5d5e6; /* light blue shade */
  padding: 40px 20px;
  margin: 20px;
  border-radius: 10px;
  gap: 20px; /* spacing between cards */
}

.certificate-box > div {
  position: relative;   /* ✅ only certificate items get relative positioning */
  flex: 1;              /* let them grow evenly */
  text-align: center;
}

.certificate-box img {
  width: 100%;          /* make image smaller than card */
  height: 200px;       /* fixed height */
  object-fit: cover;   /* crop neatly */
  display: block;
  margin: 0 auto;      /* centers image horizontally */
  border-radius: 12px;
  cursor: pointer;
}

.certificate-box h3 {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 1.3rem;
}

/* Certificates popup*/ 
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.popup-content {
    background-color: #e8f3ff;
    padding: 30px;
    border-radius: 10px;
    width: 80%;
    max-width: 500px;
}

.popup-content:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.close {
    float: right;
    font-size: 24px;
    cursor: pointer;
}







