/* certificates.css */
:root {
  /* Cyberpunk Color Palette */
  --primary-color: #8a2be2; /* Purple */
  --secondary-color: #00b4d8; /* Cyan */
  --accent-color: #ff7eee; /* Pink */
  --background-color: #0a0a1a; /* Dark blue-black */
  --surface-color: #1a1a2e; /* Slightly lighter blue-black */
  --text-color: #e6e6fa; /* Lavender white */
  --text-secondary: #b8b8d4; /* Soft lavender */
  
  /* Fonts */
  --font-primary: 'Rajdhani', sans-serif;
  --font-secondary: 'Orbitron', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 30%, rgba(138, 43, 226, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 80% 70%, rgba(0, 180, 216, 0.08) 0%, transparent 50%);
  z-index: -1;
}

.section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(to right, rgba(138, 43, 226, 0.03) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(138, 43, 226, 0.03) 1px, transparent 1px);
  background-size: 30px 30px;
  z-index: -1;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.glitch-title {
  position: relative;
  display: inline-block;
  font-family: var(--font-secondary);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-color);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.glitch-title::before,
.glitch-title::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.8;
}

.glitch-title::before {
  left: 2px;
  text-shadow: -2px 0 #ff00ff;
  animation: glitch-anim-1 5s infinite linear alternate-reverse;
}

.glitch-title::after {
  left: -2px;
  text-shadow: 2px 0 #00ffff;
  animation: glitch-anim-2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
  0% { clip-path: inset(20% 0 80% 0); }
  20% { clip-path: inset(60% 0 1% 0); }
  40% { clip-path: inset(25% 0 58% 0); }
  60% { clip-path: inset(91% 0 6% 0); }
  80% { clip-path: inset(75% 0 46% 0); }
  100% { clip-path: inset(5% 0 47% 0); }
}

@keyframes glitch-anim-2 {
  0% { clip-path: inset(82% 0 2% 0); }
  20% { clip-path: inset(33% 0 55% 0); }
  40% { clip-path: inset(92% 0 6% 0); }
  60% { clip-path: inset(2% 0 69% 0); }
  80% { clip-path: inset(89% 0 39% 0); }
  100% { clip-path: inset(37% 0 13% 0); }
}

.section-line {
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  margin: 0 auto;
  border-radius: 4px;
}

.certificates-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 60px;
  perspective: 1000px;
}

.certificate-card {
  position: relative;
  width: 350px;
  background: rgba(26, 26, 46, 0.7);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform-style: preserve-3d;
}

.certificate-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(138, 43, 226, 0.4), transparent 70%);
  opacity: 0;
  z-index: -1;
  border-radius: 16px;
  filter: blur(20px);
}

.certificate-image {
  position: relative;
  height: 200px;
  overflow: hidden;
  border-bottom: 1px solid rgba(138, 43, 226, 0.2);
}

.certificate-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.5s ease;
}

.certificate-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 26, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 1.3s ease;
}

.view-certificate {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border-radius: 30px;
  font-weight: 500;
  text-decoration: none;
  transition: all 1.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(138, 43, 226, 0.3);
}

.view-certificate::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 1.7s ease;
}

.view-certificate:hover::before {
  left: 100%;
}

.view-certificate:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(138, 43, 226, 0.5);
}

.certificate-info {
  padding: 20px;
  position: relative;
}

.certificate-info h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  margin-bottom: 15px;
  transition: color 0.3s ease;
}

.certificate-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.certificate-issuer, .certificate-date {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  color: rgba(230, 230, 250, 0.8);
}

.issuer-icon, .date-icon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 10px;
  display: inline-block;
}

.issuer-icon {
  background: var(--primary-color);
  box-shadow: 0 0 10px var(--primary-color);
}

.date-icon {
  background: var(--secondary-color);
  box-shadow: 0 0 10px var(--secondary-color);
}

.certificate-badge {
  position: absolute;
  top: 15px;
  right: -35px;
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  color: rgb(0, 252, 42);
  font-size: 0.7rem;
  font-weight: bold;
  padding: 5px 30px;
  transform: rotate(45deg);
  box-shadow: 0 0 10px rgba(138, 43, 226, 0.5);
}

@media (max-width: 768px) {
  .certificates-grid {
    flex-direction: column;
    align-items: center;
  }
  
  .certificate-card {
    width: 100%;
    max-width: 350px;
  }
  
  .glitch-title {
    font-size: 2rem;
  }
}