/* 
 * Custom styles & animations for Kelulusan MTs 2026 
 */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

body {
  font-family: 'DM Sans', sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .font-title {
  font-family: 'Playfair Display', serif;
}

/* Tabular figures for countdown numbers (avoids shaking text) */
.font-countdown {
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 0 15px rgba(15, 123, 108, 0.4);
  }
  50% {
    box-shadow: 0 0 25px rgba(15, 123, 108, 0.8);
  }
}

@keyframes glowPulseLulus {
  0%, 100% {
    box-shadow: 0 0 15px rgba(26, 107, 58, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(26, 107, 58, 0.7);
  }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-glow-pulse {
  animation: glowPulse 3s infinite ease-in-out;
}

.animate-glow-lulus {
  animation: glowPulseLulus 4s infinite ease-in-out;
}

.animate-shake {
  animation: shake 0.4s ease-in-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0f172a;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Glassmorphism utility */
.glass-panel {
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card-light {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Custom transition for inputs */
.form-input-focus {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.form-input-focus:focus {
  border-color: #0F7B6C;
  box-shadow: 0 0 0 3px rgba(15, 123, 108, 0.2);
}

/* Confetti particles canvas */
#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 50;
}
