body {
  margin: 0;
  padding: 0;
  font-family: 'Open Sans', sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #000000;
}

.skills {
  width: 100%;
  max-width: 600px;
  padding: 0 20px;
  margin: 0 auto; /* Centers the container */
  text-align: center; /* Centers text elements */
}

.skill-name {
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
  text-align: center;
}

.skill-bar {
  background: #e0e0e0;
  height: 20px;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
  position: relative;
}

.skill-per {
  background: #0fbcf9;
  height: 100%;
  width: 0;
  position: relative;
  border-radius: 4px;
  transition: width 1s ease-in-out;
}

.skill-per .tooltip {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  white-space: nowrap;
}

.cert-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  padding: 0;
  list-style: none;
  justify-items: center;
}

.hover-card {
  width: 100%;
  max-width: 250px;
  background-color: #ffffff1a;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
  text-align: center;
  position: relative;
  cursor: pointer;
  border: 10px solid rgba(255, 255, 255, 0.3);
}

.hover-card:hover {
  transform: scale(1.03);
}

.hover-card img {
  width: 80%;
  margin: 0 auto;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.hover-card:hover img {
  transform: scale(1);
}

.card-title {
  font-size: 16px;
  font-weight: bold;
  padding: 10px;
  text-align: center;
  color: #333;
}

.card-text {
  margin: 10px;
  padding: 10px;
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  border-radius: 12px;
  color: #000;
  font-size: 14px;
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.1);
}

.hover-card:hover .card-text {
  display: block;
  opacity: 1;
}


/* Project classes*/

.project-card {
  width: auto;
  min-height: auto;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
  transition: transform 0.3s ease;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.project-text {
  margin: 10px;
  bottom: 0;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 12px;
  color: #000000;
  font-size: 0.95rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  width: 100%;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.project-card:hover .project-text {
  opacity: 1;
}

.project-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.project-card img {
  width: 300px;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 15px;
}

.project-title {
  font-size: 16px;
  margin-bottom: 10px;
  font-weight: bold;
}

.modal {
  display: none; 
  position: fixed;
  z-index: 1000; 
  padding-top: 80px; 
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  overflow: auto;
  background-color: rgba(0,0,0,0.6); 
}

.modal-content h2 {
  color: black;
}

.modal-content {
  background-color: #fff;
  margin: auto;
  padding: 30px;
  border: 1px solid #000000;
  width: 80%;
  max-width: 700px;
  border-radius: 8px;
}

.close {
  color: #000000;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: #000;
}

.modal-content .button {
  background-color: #ffffff;
  color: #000 !important;
  border: 1px solid #818181;
}

.modal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);  /* 2 equal columns */
  gap: 20px;
  margin-top: 20px;
}

.modal-tile {
  background-color: #f9f9f9;
  border: 1px solid #ccc;
  padding: 15px;
  border-radius: 6px;
  text-align: center;
}

.modal-tile img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

a.button {
  display: inline-block;
  background-color: #ffffff;
  color: white;
  text-decoration: none;
}
a.button:hover {
  background-color: #000000;
  color: white !important;
}
