/* ===========================
   Base Styling & Reset
=========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #121212;
  color: #fff;
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* ===========================
   Container & Layout
=========================== */
.certificate-page {
  background: linear-gradient(145deg, #1c1c1e, #202022);
  min-height: 100vh;
  padding: 60px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  animation: backgroundShift 12s ease infinite;
}

@keyframes backgroundShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.container {
  max-width: 960px;
  width: 100%;
  background: #1e1e2f;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

/* ===========================
   Header Section
=========================== */
.certificate-header {
  text-align: center;
  margin-bottom: 40px;
}

.certificate-header h2 {
  font-size: 2.5rem;
  background: linear-gradient(90deg, #ff6f91, #f0a500);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
  animation: fadeInDown 1s ease forwards;
}

.certificate-header p {
  font-size: 1.125rem;
  color: #ccc;
  margin-top: 10px;
  animation: fadeInDown 1.5s ease forwards;
}

@keyframes fadeInDown {
  0% { opacity: 0; transform: translateY(-20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ===========================
   Certificate Body
=========================== */
.certificate-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

.certificate-image,
.certificate-details {
  flex: 1;
  min-width: 280px;
}

.certificate-img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.certificate-img:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 30px rgba(255, 111, 145, 0.5);
}

.certificate-details h3 {
  font-size: 1.75rem;
  margin-bottom: 15px;
  color: #ffb6c1;
  font-weight: 600;
}

.certificate-details p {
  font-size: 1rem;
  color: #ddd;
  margin-bottom: 10px;
}

.certificate-details ul {
  padding-left: 20px;
  list-style: none;
}

.certificate-details ul li {
  position: relative;
  padding-left: 24px;
  color: #e0e0e0;
  margin-bottom: 10px;
}

.certificate-details ul li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: #ff6f91;
  font-weight: bold;
}

/* ===========================
   Download Button
=========================== */
.download-link {
  display: inline-block;
  margin-top: 30px;
  background: linear-gradient(135deg, #ff6f91, #fcb045);
  color: #fff;
  padding: 14px 32px;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 111, 145, 0.4);
}

.download-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 111, 145, 0.6);
}

/* ===========================
   Footer
=========================== */
.certificate-footer {
  margin-top: 40px;
  text-align: center;
  color: #aaa;
  font-size: 0.875rem;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===========================
   Responsive Design
=========================== */
@media (max-width: 768px) {
  .certificate-content {
    flex-direction: column;
    align-items: center;
  }

  .certificate-header h2 {
    font-size: 2rem;
  }

  .download-link {
    padding: 12px 24px;
    font-size: 0.9rem;
  }
}
