/* ===== Dynamic wallpaper (image) + dark glass content ===== */

:root{
  --text: #e8eef8;
  --muted: rgba(232, 238, 248, 0.78);

  --card: rgba(10, 14, 22, 0.72);
  --card-border: rgba(255, 255, 255, 0.12);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}

html, body { height: 100%; }

body{
  margin: 0;
  color: var(--text);
  background: #05070f; /* fallback */
  position: relative;
  overflow-x: hidden;
}

/* --- Wallpaper image layer (the ML agent + system design image) --- */
/* moving wallpaper */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -2;

  background-image:
    linear-gradient(rgba(5,7,15,0.55), rgba(5,7,15,0.55)),
    url("images/wallpaper-ml-sysdesign.png");
  background-size: 115% 115%;
  background-position: 50% 50%;
  background-repeat: no-repeat;

  animation: cinematicMove 26s ease-in-out infinite;
  will-change: transform, filter;
  transform-origin: center;
}

@keyframes cinematicMove{
  0%   { transform: scale(1.02) translate3d(0,0,0);     filter: brightness(0.92) saturate(1.05); }
  35%  { transform: scale(1.08) translate3d(-18px,-8px,0); filter: brightness(1.02) saturate(1.12); }
  70%  { transform: scale(1.06) translate3d(16px,-6px,0);  filter: brightness(0.98) saturate(1.10); }
  100% { transform: scale(1.02) translate3d(0,0,0);     filter: brightness(0.92) saturate(1.05); }
}

/* Extra subtle depth: moving light haze overlay */
body::after{
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  background:
    radial-gradient(900px 600px at 20% 20%, rgba(120, 190, 255, 0.12), transparent 60%),
    radial-gradient(900px 600px at 80% 30%, rgba(190, 120, 255, 0.10), transparent 60%),
    radial-gradient(900px 700px at 55% 85%, rgba(0, 255, 200, 0.08), transparent 60%);

  animation: hazeMove 22s ease-in-out infinite;
  mix-blend-mode: screen;
  opacity: 0.85;
}

@keyframes wallpaperDrift{
  0%   { transform: scale(1.06) translate3d(0px, 0px, 0); filter: brightness(0.95) saturate(1.05); }
  50%  { transform: scale(1.10) translate3d(-18px, -10px, 0); filter: brightness(1.02) saturate(1.12); }
  100% { transform: scale(1.06) translate3d(0px, 0px, 0); filter: brightness(0.95) saturate(1.05); }
}

@keyframes hazeMove{
  0%   { transform: translate3d(0px, 0px, 0); }
  50%  { transform: translate3d(20px, -14px, 0); }
  100% { transform: translate3d(0px, 0px, 0); }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce){
  body::before, body::after { animation: none; }
}

/* ===== Make your main content dark-glass so it pops ===== */
main{
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1.6rem;
  margin-top: 1.2rem;
  margin-bottom: 2rem;
}

/* Text */
h1, h2, h3, h4, h5, h6 { color: var(--text); }
p, li { color: var(--muted); }

/* Links */
a { color: rgba(140, 200, 255, 0.95); }
a:hover { color: rgba(180, 120, 255, 0.95); }

/* Quarto "trestles" about section text */
.about-contents h1,
.about-contents p { color: var(--text); }

/* Navbar (Quarto) */
.navbar, #quarto-header{
  background: rgba(5, 7, 15, 0.65) !important;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.navbar .navbar-brand,
.navbar .nav-link { color: rgba(232,238,248,0.92) !important; }

.navbar .nav-link:hover { color: #ffffff !important; }

/* Nice profile image on dark bg */
.about-image.round{
  border: 2px solid rgba(255,255,255,0.22);
  box-shadow: 0 12px 28px rgba(0,0,0,0.55);
}

.hero-intro{
  position: relative;
  padding: 1.4rem 1.4rem 1.2rem;
  margin-bottom: 1.4rem;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.12);

  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.06),
    rgba(10,14,22,0.72)
  );

  box-shadow: 0 18px 40px rgba(0,0,0,0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
}

/* Hero glow */
.hero-intro::before{
  content:"";
  position:absolute;
  left:-20%;
  top:-60%;
  width:140%;
  height:140%;
  background:
    radial-gradient(circle at 20% 25%, rgba(120,190,255,0.18), transparent 55%),
    radial-gradient(circle at 80% 30%, rgba(190,120,255,0.16), transparent 55%),
    radial-gradient(circle at 55% 80%, rgba(0,255,200,0.10), transparent 60%);
  filter: blur(2px);
  z-index: 0;
}

/* Keep content above glow */
.hero-intro > *{
  position: relative;
  z-index: 1;
}

/* ---------- Hero badges ---------- */
.hero-badges{
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: .9rem;
}

.chip{
  font-size: .85rem;
  padding: .35rem .6rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(10,14,22,0.45);
  color: rgba(232,238,248,0.90);
}
