/* ==========================================================================
   CERTIFICATIONS.CSS - Certifications Page Styles
   ========================================================================== */

.certifications-hero {
  padding-top: calc(80px + 2rem);
  background: linear-gradient(to bottom, #000000, #0a0a0a);
  padding-bottom: 3rem;
}

.certification-card {
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.certification-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #00d9ff, #0891b2);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.certification-card:hover::before {
  opacity: 1;
}

.certification-card:hover {
  border-color: #00d9ff;
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(0, 217, 255, 0.2);
}

.certification-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 217, 255, 0.1);
  border: 2px solid #00d9ff;
  border-radius: 12px;
  color: #00d9ff;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.certification-title {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.certification-issuer {
  color: #00d9ff;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.certification-date {
  color: #888888;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.certification-description {
  color: #cccccc;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.certification-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: rgba(0, 217, 255, 0.1);
  border: 1px solid rgba(0, 217, 255, 0.3);
  border-radius: 50px;
  color: #00d9ff;
  font-size: 0.75rem;
  font-weight: 600;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.certification-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #00d9ff;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.certification-link:hover {
  color: #4dffff;
  gap: 0.75rem;
}

.certifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .certifications-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Modal Styles */
.cert-img-clickable {
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.cert-img-clickable:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

#certModalOverlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  overflow: auto;
}

#certModalOverlay.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-modal-content {
  position: relative;
  max-width: 95%;
  max-height: 95vh;
  padding: 20px;
}

.cert-modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: #00d9ff;
  cursor: pointer;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.8);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #00d9ff;
  transition: all 0.3s ease;
}

.cert-modal-close:hover {
  background: #00d9ff;
  color: #000;
  transform: rotate(90deg);
}

.cert-modal-img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  display: block;
  border: 2px solid #00d9ff;
  box-shadow: 0 0 30px rgba(0, 217, 255, 0.5);
}
