/* =====================
   Theme Variables
===================== */
:root {
  --bg: #020617;
  --card-bg: rgba(255, 255, 255, 0.12);
  --text: #e5e7eb;
  --muted: #9ca3af;
  --accent: #38bdf8;
}

body.light {
  --bg: #f4f6f8;
  --card-bg: rgba(255, 255, 255, 0.95);
  --text: #111827;
  --muted: #6b7280;
  --accent: #2563eb;
}

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

/* =====================
   Body & Background
===================== */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, var(--bg), #020617);
  color: var(--text);
  min-height: 100vh;
  transition: background 0.4s ease;
}

/* Glow background */
body::before,
body::after {
  content: "";
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  z-index: -1;
}

body::before {
  background: #38bdf8;
  top: 10%;
  left: 15%;
}

body::after {
  background: #6366f1;
  bottom: 10%;
  right: 15%;
}

/* =====================
   Layout
===================== */
.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* =====================
   Card
===================== */
.testimonial-card {
  width: 420px;
  padding: 36px;
  border-radius: 20px;
  text-align: center;
  position: relative;

  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  animation: fadeUp 0.8s ease forwards;
  will-change: transform;
}

.testimonial-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 40px 100px rgba(56, 189, 248, 0.25);
}

.glass {
  backdrop-filter: blur(16px);
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.15);
}

/* =====================
   Avatar
===================== */
.avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  margin-bottom: 14px;
  border: 2px solid var(--accent);
  animation: pulse 3s infinite;
}

/* =====================
   Badge
===================== */
.badge {
  display: inline-block;
  margin-bottom: 16px;
  padding: 4px 12px;
  font-size: 12px;
  border-radius: 999px;
  background: rgba(56,189,248,0.15);
  color: var(--accent);
}

/* =====================
   Quote
===================== */
.quote {
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 24px;
}

.hidden {
  display: none;
}

/* =====================
   User Info
===================== */
.user h3 {
  font-size: 18px;
  font-weight: 600;
}

.user span {
  font-size: 14px;
  color: var(--muted);
}

/* =====================
   Buttons
===================== */
.actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

button {
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: #020617;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.8);
}

/* =====================
   Credit
===================== */
.credit {
  margin-top: 18px;
  font-size: 12px;
  color: var(--muted);
}

/* =====================
   Animations
===================== */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(56,189,248,0.6); }
  70% { box-shadow: 0 0 0 12px rgba(56,189,248,0); }
  100% { box-shadow: 0 0 0 0 rgba(56,189,248,0); }
}

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