:root {
  color-scheme: light;
}

body {
  min-height: 100vh;
  transition:
    background-color 0.25s ease,
    color 0.25s ease;
  font-family:
    "Plus Jakarta Sans",
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

body[data-theme="dark"],
html.dark {
  background: radial-gradient(
    circle at top left,
    #111827 0%,
    #030712 55%,
    #020617 100%
  );
  color: #f9fafb;
}

body[data-theme="light"],
html:not(.dark) {
  background: radial-gradient(
    circle at top left,
    #eef2ff 0%,
    #f8fafc 40%,
    #f1f5f9 100%
  );
  color: #0f172a;
}

#mainShell {
  background-color: #ffffff;
  color: #111827;
  transition:
    background-color 0.25s ease,
    color 0.25s ease;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

body[data-theme="dark"] #mainShell,
html.dark #mainShell {
  background: linear-gradient(
    180deg,
    rgba(17, 24, 39, 0.96) 0%,
    rgba(15, 23, 42, 0.98) 100%
  );
  color: #f9fafb;
  box-shadow: 0 20px 45px rgba(2, 6, 23, 0.45);
  border-color: rgba(255, 255, 255, 0.08);
}

body[data-theme="dark"] #mainShell > header,
body[data-theme="dark"] #mainShell > footer,
body[data-theme="dark"] #mainShell > section,
html.dark #mainShell > header,
html.dark #mainShell > footer,
html.dark #mainShell > section {
  color: #f9fafb;
}

#siteTitle,
#tagline,
#description,
#footerText,
#themeToggle,
#linksContainer a {
  transition: all 0.25s ease;
}

#siteTitle {
  color: #111827;
}

#tagline {
  color: #c91216;
}

#description {
  color: #5b6472;
}

#footerText {
  color: #7a8088;
}

body[data-theme="dark"] #siteTitle,
html.dark #siteTitle {
  color: #f9fafb;
}

body[data-theme="dark"] #tagline,
html.dark #tagline {
  color: #f87171;
}

body[data-theme="dark"] #description,
html.dark #description {
  color: #d7dde5;
}

body[data-theme="dark"] #footerText,
html.dark #footerText {
  color: #a8b0ba;
}

#themeToggle {
  border-color: #e8d8da;
  background-color: rgba(255, 255, 255, 0.9);
  color: #5b1d20;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  border-radius: 9999px;
}

#themeToggle:hover {
  box-shadow:
    0 0 0 1px rgba(201, 18, 22, 0.2),
    0 0 24px rgba(201, 18, 22, 0.2);
  transform: translateY(-1px);
}

body[data-theme="dark"] #themeToggle,
html.dark #themeToggle {
  border-color: #5f2d31;
  background-color: rgba(31, 41, 55, 0.9);
  color: #ffe5e6;
}

#banner {
  background-color: #e2e8f0;
}

body[data-theme="dark"] #banner,
html.dark #banner {
  filter: brightness(0.95);
}

#avatar {
  border-color: #ffffff;
}

body[data-theme="dark"] #avatar,
html.dark #avatar {
  border-color: #111827;
}

#linksContainer a {
  background-color: rgba(255, 255, 255, 0.95);
  border-color: #e2e8f0;
  color: #0f172a;
  border-radius: 16px;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.05);
  transform: translateY(0);
  position: relative;
  overflow: hidden;
}

body[data-theme="dark"] #linksContainer a,
html.dark #linksContainer a {
  background-color: rgba(31, 41, 55, 0.95);
  border-color: rgba(75, 85, 99, 0.5);
  color: #f3f4f6;
  box-shadow: 0 10px 20px rgba(2, 6, 23, 0.22);
}

#linksContainer a:hover {
  background-color: #ffffff;
  color: #0f172a;
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
}

body[data-theme="dark"] #linksContainer a:hover,
html.dark #linksContainer a:hover {
  background-color: rgba(31, 41, 55, 0.95);
  box-shadow: 0 12px 24px rgba(2, 6, 23, 0.24);
}

#linksContainer a:hover::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  border: 1px solid transparent;
  background: linear-gradient(
    90deg,
    rgba(201, 18, 22, 0.1),
    rgba(255, 255, 255, 0.85),
    rgba(201, 18, 22, 0.1)
  );
  background-size: 200% 100%;
  -webkit-mask:
    linear-gradient(#fff 0 0) padding-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: borderSweep 1s linear infinite;
  pointer-events: none;
  z-index: 1;
}

#linksContainer a .text-indigo-500 {
  color: #c91216 !important;
}

body[data-theme="dark"] #linksContainer a .text-indigo-500,
html.dark #linksContainer a .text-indigo-500 {
  color: #f87171 !important;
}

#banner,
#avatar,
#siteTitle,
#tagline,
#description,
#footerText,
#linksContainer a {
  animation: fadeUp 0.55s ease both;
}

#banner {
  animation-delay: 0.05s;
}
#avatar {
  animation-delay: 0.1s;
}
#siteTitle {
  animation-delay: 0.15s;
}
#tagline {
  animation-delay: 0.2s;
}
#description {
  animation-delay: 0.25s;
}
#linksContainer a {
  animation-delay: 0.3s;
}
#footerText {
  animation-delay: 0.35s;
}

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

@keyframes shimmer {
  to {
    transform: translateX(100%);
  }
}

@keyframes borderSweep {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}
