:root {
  /* University of Louisville — cardinal red, black, gold, white */
  --bg: #060608;
  --fg: #f5f5f7;
  --muted: #a1a1a6;
  --cardinal: #c8102e;
  --cardinal-bright: #e8253f;
  --gold: #f2c84b;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.02);
  --hairline: rgba(255, 255, 255, 0.09);
  --hairline-strong: rgba(255, 255, 255, 0.16);
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ambient depth: a soft cardinal glow up top, gentle vignette below. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60rem 38rem at 50% -8%, rgba(200, 16, 46, 0.22), transparent 60%),
    radial-gradient(48rem 32rem at 50% -2%, rgba(242, 200, 75, 0.06), transparent 55%),
    linear-gradient(180deg, #0a0a0d 0%, #060608 40%, #050507 100%);
}

main {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) 1.5rem 4rem;
}

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  margin-bottom: clamp(3rem, 7vw, 4.5rem);
  animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.logo {
  width: clamp(112px, 22vw, 148px);
  height: clamp(112px, 22vw, 148px);
  object-fit: contain;
  margin-bottom: 1.6rem;
  filter: drop-shadow(0 10px 28px rgba(200, 16, 46, 0.4));
  animation: float 7s ease-in-out infinite;
}

.hero h1 {
  font-size: clamp(2.4rem, 6.5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin: 0 0 0.7rem;
  background: linear-gradient(180deg, #ffffff 0%, #c4c4cc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.phd {
  -webkit-text-fill-color: var(--cardinal-bright);
  color: var(--cardinal-bright);
  font-weight: 700;
}

.tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  font-weight: 400;
  color: var(--muted);
  margin: 0 auto 1.5rem;
  max-width: 32rem;
}

/* ---------- Focus chips (glass) ---------- */
.focus {
  list-style: none;
  margin: 0 auto 2rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  max-width: 34rem;
}

.focus li {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #e4e4e8;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 0.32rem 0.85rem;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.focus li:hover {
  border-color: rgba(200, 16, 46, 0.5);
  background: rgba(200, 16, 46, 0.1);
  transform: translateY(-1px);
}

/* ---------- Links ---------- */
.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
}

.links a {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.4rem;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--fg);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.links a:hover {
  transform: translateY(-2px);
  border-color: rgba(200, 16, 46, 0.6);
  background: rgba(200, 16, 46, 0.14);
  box-shadow: 0 8px 22px rgba(200, 16, 46, 0.22);
}

/* ---------- Packages ---------- */
.projects {
  animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.projects h2 {
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin: 0 0 1.3rem;
  padding-left: 0.1rem;
}

.card {
  position: relative;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: 1.6rem 1.75rem;
  margin-bottom: 1.1rem;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 14px 34px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.card::before {
  content: "";
  position: absolute;
  left: 1.75rem;
  right: 1.75rem;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 16, 46, 0.55), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--hairline-strong);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 22px 50px rgba(0, 0, 0, 0.45);
}

.card:hover::before { opacity: 1; }

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.card h3::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cardinal);
  box-shadow: 0 0 10px rgba(200, 16, 46, 0.7);
  flex: none;
}

.card h3 a {
  color: var(--fg);
  text-decoration: none;
  transition: color 0.2s ease;
}

.card h3 a:hover { color: var(--cardinal-bright); }

.card p {
  margin: 0 0 0.7rem;
  color: #d4d4d8;
  font-size: 0.97rem;
}

.card code {
  background: rgba(242, 200, 75, 0.1);
  border: 1px solid rgba(242, 200, 75, 0.22);
  border-radius: 6px;
  padding: 0.1em 0.4em;
  font-size: 0.88em;
  color: var(--gold);
}

.meta { margin: 0 !important; }

.lang {
  font-size: 0.8rem;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
}

.lang::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  margin-right: 0.45rem;
  box-shadow: 0 0 8px rgba(242, 200, 75, 0.55);
}

/* ---------- Footer ---------- */
footer {
  margin-top: 3.5rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--hairline);
  font-size: 0.88rem;
  color: var(--muted);
  text-align: center;
}

footer a {
  color: var(--cardinal-bright);
  text-decoration: none;
  transition: color 0.2s ease;
}

footer a:hover { color: #ff5a70; }

/* ---------- Motion ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}
