/* Modern Reset & Base Styles */
:root {
  --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.36);
}

body {
  font-family: "Inter", sans-serif;
  background-color: #0f172a; /* Fallback */
  background: radial-gradient(circle at top right, #1e1b4b, #0f172a);
  color: #f8fafc;
  -webkit-font-smoothing: antialiased;
}

/* Glassmorphism Utilities */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.glass-nav {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--glass-border);
}

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

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

.animate-delay-100 {
  animation-delay: 0.1s;
  opacity: 0;
  animation-fill-mode: forwards;
}
.animate-delay-200 {
  animation-delay: 0.2s;
  opacity: 0;
  animation-fill-mode: forwards;
}

/* Custom Components */
.btn-primary {
  background: var(--primary-gradient);
  box-shadow: 0 4px 14px 0 rgba(124, 58, 237, 0.5);
  transition: all 0.2s ease;
  color: white;
  font-weight: 700;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(124, 58, 237, 0.6);
}
.btn-primary:active {
  transform: translateY(0);
}

.answer-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.answer-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.05),
    transparent
  );
  transform: translateX(-100%);
  transition: 0.5s;
}

.answer-card:hover {
  transform: translateY(-4px);
  border-color: #6366f1;
  box-shadow: 0 10px 40px -10px rgba(99, 102, 241, 0.3);
}

.answer-card:hover::before {
  transform: translateX(100%);
}

.nav-item {
  position: relative;
  transition: color 0.3s ease;
}

.nav-item.active {
  color: #6366f1;
}

.nav-item.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: #6366f1;
}

/* Typography Enhancements */
.text-gradient {
  background: linear-gradient(to right, #c7d2fe, #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Age Selection Buttons */
.age-select-btn {
  display: flex;
  align-items: center;
  text-align: left;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(99, 102, 241, 0.35);
  box-shadow: 0 4px 20px -5px rgba(99, 102, 241, 0.25);
}

.age-select-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px) scale(1.01);
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 4px 20px -5px rgba(99, 102, 241, 0.25);
}

.age-select-btn .icon-box {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px; /* full rounded */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  transition: transform 0.3s ease;
}

.age-select-btn:hover .icon-box {
  transform: scale(1.1) rotate(5deg);
}

.age-select-btn .arrow-icon {
  opacity: 0.4;
  transform: translateX(0);
  transition: all 0.3s ease;
}

.age-select-btn:hover .arrow-icon {
  opacity: 1;
  color: #fff;
  transform: translateX(4px);
}
