/* 1) Design tokens */
:root {
  --bg-start: #89f7fe;
  --bg-end: #66a6ff;
  --card-bg: rgba(255, 255, 255, 0.85);
  --text: #1f2937;
  --muted: #6b7280;
  --accent: #2563eb;
  --ring: rgba(37, 99, 235, 0.35);
  --shadow: rgba(0, 0, 0, 0.15);
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --card-bg: rgba(17, 24, 39, 0.75);
    --text: #e5e7eb;
    --muted: #9ca3af;
    --accent: #60a5fa;
    --ring: rgba(96, 165, 250, 0.35);
    --shadow: rgba(0, 0, 0, 0.35);
  }
}

/* 2) Base */
*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, var(--bg-start), var(--bg-end));
  display: grid;
  place-items: center;
  padding: 24px;
}

/* 3) Card layout */
.container {
  width: min(720px, 100%);
  background: var(--card-bg);
  padding: 48px 40px;
  border-radius: 24px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 50px var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.35);
  animation: cardIn 600ms cubic-bezier(.2,.8,.2,1);
}

/* Subtle entrance */
@keyframes cardIn {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* 4) Typography */
h1 {
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 2.75rem);
  letter-spacing: 0.4px;
  margin: 0 0 12px 0;
}

h2 {
  margin: 28px 0 12px 0;
  font-size: clamp(1.25rem, 2.8vw, 1.5rem);
  font-weight: 600;
}

.intro, .about {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 12px 0;
}

.highlight {
  color: var(--accent);
  font-weight: 600;
}

/* 5) Fun emoji drift for the first emoji in each line */
@keyframes floaty {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-3px); }
  100% { transform: translateY(0); }
}

p .highlight + *,
.interests li::marker {
  animation: floaty 2.4s ease-in-out infinite;
}

/* 6) Interests list as nice pills */
.interests {
  list-style: none;
  padding: 0;
  margin: 8px 0 16px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.interests li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--text);
  border: 1px solid rgba(37, 99, 235, 0.18);
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
  will-change: transform;
}

.interests li:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px var(--shadow);
  background: rgba(37, 99, 235, 0.12);
}

/* 7) Nice section separators */
h2::after {
  content: "";
  display: block;
  height: 3px;
  width: 56px;
  margin-top: 8px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

/* 8) Footer */
footer {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(0,0,0,0.06);
  color: var(--muted);
  font-size: 0.95rem;
  display: flex;
  justify-content: center;
  gap: 8px;
}

/* 9) Focus styles for accessibility */
:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
  border-radius: 8px;
}

/* 10) Motion preference */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* 11) Responsive tweaks */
@media (max-width: 560px) {
  .container { 
    padding: 28px 22px; 
    border-radius: 18px;
  }
  .interests { gap: 8px; }
  .interests li { padding: 9px 12px; }
}
