body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  color: white;
  padding: 20px;
  background: radial-gradient(circle at 50% 50%, #1a1a40, #0f0c29, #302b63, #24243e);
  background-size: 400% 400%;
  animation: galaxyMove 30s ease infinite;
  overflow-x: hidden;
}

/* Background animation */
@keyframes galaxyMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: url('https://www.transparenttextures.com/patterns/stardust.png');
  opacity: 0.04;
  z-index: -1;
  pointer-events: none;
}
  header {
    text-align: center;
    padding: 2rem 1rem 1rem;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
    background: linear-gradient(to right, #3a0ca3, #2c2c54, #1e1e2e);
    padding: 0.8rem 1rem;
    border-radius: 12px;
  }
  
  nav button {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 2px solid transparent;
    padding: 0.6rem 1.4rem;
    border-radius: 14px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s ease;
  }
  
  nav button:hover {
    background: rgba(255, 255, 255, 0.1);
  }
  
  nav button.active-tab {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid white;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
  }
  
  main {
    padding: 2rem;
  }
  
  .tab-content {
    display: none;
  }
  
  .tab-content.active {
    display: block;
  }
  
  .card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
  }
  
  .card {
    background-color: #111827;
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
  }
  
  .card h3 {
    margin-top: 0;
    color: gold;
  }
  
  .cert-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 0.5rem;
  }
  .quiz-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 20px;
  }
  
  .quiz-card {
    background: #0a0f2c;
    padding: 20px;
    border-radius: 15px;
    color: #fff;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
  }
  .quiz-card:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  }
  
  .modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
  }
  
  .modal-content {
    position: relative;
    width: 80%;
    max-width: 900px;
    background: #000;
    border-radius: 10px;
    padding: 20px;
  }
  
  .modal-content iframe {
    width: 100%;
    height: 500px;
    border-radius: 10px;
  }
  
  .close {
    position: absolute;
    top: 10px; right: 15px;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
  }
  .clipping-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
  }
  
  .clipping-card {
    background: #0a0f2c;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    text-align: center;
    transition: transform 0.3s ease;
  }
  
  .clipping-card:hover {
    transform: translateY(-5px);
    background-color: #1a1a40;
  }
  
  .clipping-card img,
  .clipping-card embed {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.05);
  }
  
  .caption {
    margin-top: 10px;
    color: #ccc;
    font-size: 0.95rem;
    font-style: italic;
  }
    /* === Live Video Background === */
#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  min-width: 100%;
  min-height: 100%;
  z-index: -1;
  object-fit: cover;
  opacity: 0.7; /* You can increase/decrease this */
}
/* === Apply Hover Animation to All Cards === */

.quiz-card,
.achievement-card,
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.quiz-card:hover,
.achievement-card:hover,
.card:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0f0f2e;
}
::-webkit-scrollbar-thumb {
  background: #ff2c74;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: #ff5591;
}
h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  margin-top: 8px;
  background: #ff2c74;
  border-radius: 2px;
}
