/*
 * This is a manifest file that'll be compiled into application.css.
 */

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

/* ── Animations ─────────────────────────────────────────────── */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes confettiFall {
  0%   { transform: translateY(-20px) rotate(0deg); opacity: 1; }
  85%  { opacity: 1; }
  100% { transform: translateY(110vh) rotate(var(--rotate)); opacity: 0; }
}

@keyframes shimmer {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.6; }
}

@keyframes pulse-ring {
  0%   { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

.anim {
  opacity: 0;
  animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(var(--step) * 0.14s + 0.3s);
}

/* ── Confetti ────────────────────────────────────────────────── */

.confetti-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  top: -12px;
  left: var(--x);
  width: var(--size);
  height: var(--size);
  background: var(--color);
  border-radius: 2px;
  animation: confettiFall var(--duration) ease-in var(--delay) infinite;
}

.confetti-piece:nth-child(3n)   { border-radius: 50%; }
.confetti-piece:nth-child(5n)   { border-radius: 0; transform: rotate(45deg); }

/* ── Page ───────────────────────────────────────────────────── */

.grad-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
  background: radial-gradient(ellipse at 50% 0%, #2d1660 0%, #1a0d3a 45%, #0d0820 100%);
  font-family: system-ui, -apple-system, sans-serif;
  position: relative;
  overflow: hidden;
}

/* Subtle glowing orb behind the card */
.grad-page::before {
  content: "";
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(78, 42, 132, 0.35) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* ── Hero Card ──────────────────────────────────────────────── */

.grad-hero {
  position: relative;
  z-index: 1;
  max-width: 680px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  padding: 3.5rem 2.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(182, 172, 209, 0.2);
  border-radius: 24px;
  backdrop-filter: blur(12px);
  box-shadow:
    0 0 0 1px rgba(78, 42, 132, 0.3),
    0 32px 80px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* ── Graduation Cap Icon ────────────────────────────────────── */

.grad-icon {
  font-size: 5rem;
  line-height: 1;
  filter: drop-shadow(0 0 24px rgba(182, 172, 209, 0.5));
  animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.3s, shimmer 3s ease-in-out infinite 1.5s;
  opacity: 0;
}

/* ── Name ───────────────────────────────────────────────────── */

.grad-name {
  margin: 0;
  font-size: clamp(3.5rem, 10vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(135deg, #e8d9f7 0%, #c4a8ef 40%, #a07cd8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 40px rgba(182, 172, 209, 0.3));
}

/* ── Badge ──────────────────────────────────────────────────── */

.grad-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1.25rem;
  background: rgba(78, 42, 132, 0.4);
  border: 1px solid rgba(131, 110, 170, 0.5);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #c4a8ef;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.grad-badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #836EAA;
  flex-shrink: 0;
}

/* ── Message ────────────────────────────────────────────────── */

.grad-message {
  margin: 0;
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: #b6acd1;
  line-height: 1.75;
  max-width: 520px;
}

/* ── Divider ────────────────────────────────────────────────── */

.grad-divider {
  display: flex;
  gap: 0.75rem;
  color: #4E2A84;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
}

/* ── Quote ──────────────────────────────────────────────────── */

.grad-quote {
  margin: 0;
  padding: 1.25rem 1.75rem;
  background: rgba(78, 42, 132, 0.2);
  border-left: 3px solid #836EAA;
  border-radius: 0 12px 12px 0;
  text-align: left;
  font-size: 1rem;
  font-style: italic;
  color: #d4c5ef;
  line-height: 1.65;
}

.grad-quote cite {
  display: block;
  margin-top: 0.6rem;
  font-style: normal;
  font-size: 0.85rem;
  color: #836EAA;
  font-weight: 600;
}

/* ── Tags ───────────────────────────────────────────────────── */

.grad-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.grad-tag {
  padding: 0.4rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(182, 172, 209, 0.2);
  border-radius: 999px;
  font-size: 0.85rem;
  color: #c4a8ef;
  font-weight: 500;
  transition: background 0.2s, border-color 0.2s;
}

.grad-tag:hover {
  background: rgba(78, 42, 132, 0.35);
  border-color: rgba(131, 110, 170, 0.5);
}
