:root {
  --adk-glow-primary: #6366f1;
  --adk-glow-accent: #ec4899;
}

[data-md-color-scheme="slate"] {
  --md-default-bg-color: #0f111a;
  --md-default-fg-color: #e2e8f0;
  --md-primary-fg-color: #6366f1;
  --md-accent-fg-color: #ec4899;
  --md-code-bg-color: rgba(0, 0, 0, 0.4);
  
  /* Rich Syntax Highlighting (VS Code Dark / Dracula inspired) */
  --md-code-hl-color: rgba(255, 255, 255, 0.1);
  --md-code-hl-keyword-color: #ff79c6;
  --md-code-hl-string-color: #f1fa8c;
  --md-code-hl-number-color: #bd93f9;
  --md-code-hl-constant-color: #bd93f9;
  --md-code-hl-function-color: #50fa7b;
  --md-code-hl-class-color: #8be9fd;
  --md-code-hl-comment-color: #6272a4;
  --md-code-hl-variable-color: #f8f8f2;
  --md-code-hl-operator-color: #ff79c6;
  --md-code-hl-punctuation-color: #f8f8f2;
  --md-code-hl-name-color: #f8f8f2;
}

/* Glassmorphism for header */
.md-header {
  background-color: rgba(0, 0, 0, 0.4) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Base styles to remove default markdown limitations on homepage */
.md-main__inner {
  margin-top: 0;
}

/* Hero Section Styles */
.adk-hero {
  position: relative;
  padding: 8rem 1rem 6rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  z-index: 1;
}

/* Radial Glow behind the hero */
.adk-hero::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140%;
  height: 140%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(236, 72, 153, 0.05) 40%, rgba(15, 17, 26, 0) 70%);
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
}

.adk-gradient-text {
  background: linear-gradient(135deg, #a855f7 0%, #6366f1 50%, #ec4899 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientFlow 5s ease infinite;
  display: inline-block;
  font-size: 4.5rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

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

.adk-hero-subtitle {
  font-size: 1.35rem;
  color: #94a3b8;
  max-width: 700px;
  margin: 0 auto 3rem;
  line-height: 1.6;
  font-weight: 400;
}

.adk-hero-actions {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Button enhancements */
.md-button {
  border-radius: 9999px !important;
  font-weight: 600 !important;
  font-size: 1.1rem !important;
  padding: 0.75rem 2rem !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.md-button--primary {
  background: linear-gradient(135deg, #6366f1, #a855f7) !important;
  border: none !important;
  color: #ffffff !important;
}

.md-button--primary:hover {
  box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.5) !important;
  transform: translateY(-2px) !important;
  filter: brightness(1.1);
}

.md-button:not(.md-button--primary) {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #e2e8f0 !important;
}

.md-button:not(.md-button--primary):hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3) !important;
}

/* Code Blocks */
.md-typeset pre > code {
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.4) !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
}

/* Table Styling */
.md-typeset table:not([class]) {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  width: 100%;
}

.md-typeset table:not([class]) th {
  background: rgba(0, 0, 0, 0.4);
  font-weight: 700;
  color: #f8fafc;
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.md-typeset table:not([class]) td {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
}

.md-typeset table:not([class]) tr:last-child td {
  border-bottom: none;
}

.md-typeset table:not([class]) tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

/* Grid cards enhanced hover */
.md-typeset .grid.cards > ul {
  grid-gap: 1.5rem;
  margin-top: 2rem;
}

.md-typeset .grid.cards > ul > li {
  background: rgba(255, 255, 255, 0.02) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 16px !important;
  padding: 2rem !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative;
  overflow: hidden;
}

/* Subtle inner glow for cards */
.md-typeset .grid.cards > ul > li::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.06), transparent 40%);
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}

.md-typeset .grid.cards > ul > li:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5) !important;
  border-color: rgba(99, 102, 241, 0.4) !important;
  background: rgba(255, 255, 255, 0.04) !important;
}

.md-typeset .grid.cards > ul > li:hover::before {
  opacity: 1;
}

/* Card titles */
.md-typeset .grid.cards > ul > li hr {
  display: none !important;
}

.md-typeset .grid.cards > ul > li p:first-child {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Card icons */
.md-typeset .grid.cards > ul > li p:first-child .twemoji {
  color: #a855f7;
  width: 28px;
  height: 28px;
}

.md-typeset .grid.cards > ul > li p {
  color: #94a3b8;
  line-height: 1.6;
}

/* Announcement bar customization */
.md-banner {
  background: linear-gradient(135deg, #6366f1, #ec4899) !important;
  color: #fff !important;
  font-weight: 500;
}

/* Code Showcase Card */
.adk-code-showcase {
  max-width: 850px;
  margin: -1rem auto 4rem;
  background: rgba(15, 17, 26, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(99, 102, 241, 0.2);
  overflow: hidden;
  position: relative;
  z-index: 10;
}

.adk-code-showcase::before {
  content: "Program.cs";
  display: block;
  background: rgba(0, 0, 0, 0.6);
  color: #94a3b8;
  font-family: var(--md-code-font-family);
  font-size: 0.85rem;
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.adk-code-showcase pre {
  margin: 0 !important;
}

.adk-code-showcase pre > code {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 1.5rem !important;
}