
/* Navbar */
.home {
  padding-top: 100px; /* To avoid content getting hidden behind navbar */
}

.header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 3rem;
}

.logo {
  font-size: 2rem;
  font-weight: bold;
  color: #ffd700;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links li a:hover {
  color: #ffd700;
}

/* Skills section */
.skills-section {
  padding: 50px 20px;
  text-align: center;
  background-color: #fff; /* New: better visual separation */
  border-bottom: 1px solid #ddd; /* Optional clean bottom line */
}

.skills-section h2 {
  font-size: 36px;
  margin-bottom: 30px;
  color: #222;
}

/* Filter buttons */
.filter-buttons {
  margin-bottom: 30px;
}

.filter-btn {
  padding: 10px 20px;
  margin: 0 10px;
  border: none;
  background-color: #ff9800;
  color: white;
  font-weight: bold;
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: #333;
}

/* Skills container */
.skills-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px;
}

/* Skill card */
.skill-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 350px;
  width: 220px;
  background-color: white;
  border-radius: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px 10px;
  margin: 10px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Skill icon */
.skill-icon {
  font-size: 40px;
  color: #ff9800;
  margin-bottom: 15px;
}

/* Certificate wrapper */
.certificate-wrapper {
  max-height: 300px;
  overflow-y: auto;
  width: 100%;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

/* Hide scrollbar for Chrome, Safari, and Opera */
.certificate-wrapper::-webkit-scrollbar {
  display: none;
}

/* Certificate image */
.certificate-img {
  width: 100%;
  height: auto;
  margin-top: 15px;
  border-radius: 10px;
}

/* Popup Overlay Styles */
#popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#popup-overlay.hidden {
  display: none;
}

#popup-img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 20px white;
}

/* Close Button */
#close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
  z-index: 1100; /* improved */
}

/* Next and Prev Buttons */
#prev-btn, #next-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.6);
  color: black;
  border: none;
  font-size: 30px;
  padding: 10px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 1100; /* improved */
}

#prev-btn:hover, #next-btn:hover {
  background-color: white;
}

#prev-btn {
  left: 20px;
}

#next-btn {
  right: 20px;
}

/* Responsive improvements (optional) */
@media (max-width: 600px) {
  .skill-card {
      width: 90%;
      height: auto;
  }
  .certificate-wrapper {
      max-height: 200px;
  }
}

  
  