:root {
  --animation-duration: 0.3s;
  --card-border-radius: 0.75rem;
  --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --card-hover-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  --transition-standard: all var(--animation-duration)
    cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  scroll-behavior: smooth;
}

.md-header {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: var(--transition-standard);
}

.md-header[data-md-state="shadow"] {
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
}

.md-nav__link {
  transition: var(--transition-standard);
}

.md-typeset pre > code {
  border-radius: 0.5rem;
  box-shadow: var(--card-shadow);
}

.md-typeset .highlight .hll {
  background-color: rgba(var(--md-primary-fg-color--rgb), 0.15);
}

.terminal-demo {
  background: #1e1e2e;
  border-radius: var(--card-border-radius);
  box-shadow: var(--card-shadow);
  margin: 2rem auto;
  max-width: 100%;
  overflow: hidden;
  position: relative;
}

.terminal-header {
  background: #304375;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
}

.terminal-buttons {
  display: flex;
  gap: 0.5rem;
}

.terminal-button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-button.red {
  background-color: #ff5f57;
}
.terminal-button.yellow {
  background-color: #febc2e;
}
.terminal-button.green {
  background-color: #28c840;
}

.terminal-title {
  flex-grow: 1;
  text-align: center;
  color: #ffffff;
  font-family: monospace;
  font-size: 0.8rem;
}

.terminal-body {
  padding: 1rem;
  color: #f8f8f2;
  font-family: "Fira Code", monospace;
  overflow-x: auto;
}

.terminal-prompt {
  color: #50fa7b;
  margin-right: 0.5rem;
}

.terminal-command {
  color: #f8f8f2;
}

.terminal-output {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.feature-card {
  background-color: var(--md-card-bg-color, #fff);
  border-radius: var(--card-border-radius);
  box-shadow: var(--card-shadow);
  padding: 1.5rem;
  transition: var(--transition-standard);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-hover-shadow);
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--md-primary-fg-color),
    var(--md-accent-fg-color)
  );
}

.feature-icon {
  font-size: 2rem;
  color: var(--md-primary-fg-color);
  margin-bottom: 1rem;
}

.feature-title {
  color: var(--md-primary-fg-color);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.feature-description {
  flex-grow: 1;
  margin-bottom: 1rem;
  color: var(--md-typeset-color);
}

.feature-link {
  color: var(--md-accent-fg-color);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: var(--transition-standard);
}

.feature-link:hover {
  color: var(--md-accent-fg-color);
  text-decoration: none;
}

.feature-link svg {
  margin-left: 0.25rem;
  transition: transform var(--animation-duration) ease;
}

.feature-link:hover svg {
  transform: translateX(3px);
}

.md-typeset__table {
  width: 100%;
  margin: 1rem 0;
  border-radius: var(--card-border-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.md-typeset__table table {
  border-collapse: collapse;
  width: 100%;
  margin: 0;
}

.md-typeset__table table thead tr {
  background-color: var(--md-primary-fg-color);
  color: white;
}

.md-typeset__table table th {
  text-align: left;
  padding: 0.75rem 1rem;
}

.md-typeset__table table td {
  padding: 0.75rem 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.md-typeset__table table tbody tr:nth-child(even) {
  background-color: rgba(var(--md-primary-fg-color--rgb), 0.05);
}

.md-typeset__table table tbody tr:hover {
  background-color: rgba(var(--md-primary-fg-color--rgb), 0.1);
}

.tabbed-set {
  margin: 1.5rem 0;
  border-radius: var(--card-border-radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.tabbed-set .tabbed-labels {
  background-color: var(--md-primary-fg-color--light);
  display: flex;
  overflow-x: auto;
}

.tabbed-set .tabbed-labels > label {
  cursor: pointer;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  transition: var(--transition-standard);
  border-bottom: 3px solid transparent;
}

.tabbed-set .tabbed-labels > label:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.tabbed-set .tabbed-content {
  padding: 1.25rem;
  background-color: var(--md-card-bg-color, #fff);
}

.command-example {
  background-color: var(--md-card-bg-color, #fff);
  border-radius: var(--card-border-radius);
  box-shadow: var(--card-shadow);
  margin: 1.5rem 0;
  overflow: hidden;
}

.command-example-header {
  background-color: var(--md-primary-fg-color);
  color: white;
  padding: 0.75rem 1rem;
  font-weight: 600;
}

.command-example-body {
  padding: 1rem;
}

.command-example pre {
  margin: 0;
}

.animated-progress {
  display: block;
  width: 100%;
  height: 0.5rem;
  border-radius: 1rem;
  background-color: rgba(var(--md-primary-fg-color--rgb), 0.1);
  position: relative;
  overflow: hidden;
  margin: 1rem 0;
}

.animated-progress::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(
    90deg,
    var(--md-primary-fg-color),
    var(--md-accent-fg-color)
  );
  animation: progress-animation 2s ease-in-out infinite;
  transform-origin: left;
}

@keyframes progress-animation {
  0% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(100%);
  }
}

.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.gallery-item {
  border-radius: var(--card-border-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition-standard);
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: var(--card-hover-shadow);
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.notification-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--md-accent-fg-color);
  border-radius: 50%;
  margin-left: 0.5rem;
  position: relative;
}

.notification-dot::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--md-accent-fg-color);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
  z-index: -1;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(3);
    opacity: 0;
  }
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background-color: rgba(var(--md-primary-fg-color--rgb), 0.1);
  color: var(--md-primary-fg-color);
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  transition: var(--transition-standard);
}

.tag:hover {
  background-color: var(--md-primary-fg-color);
  color: white;
  text-decoration: none;
}

.md-typeset .admonition {
  border-radius: var(--card-border-radius);
  box-shadow: var(--card-shadow);
  transition: var(--transition-standard);
}

.md-typeset .admonition:hover {
  box-shadow: var(--card-hover-shadow);
}

.md-typeset .admonition.info {
  background-color: rgba(0, 184, 212, 0.05);
  border-left-color: #00b8d4;
}

.md-typeset .admonition.tip {
  background-color: rgba(0, 200, 83, 0.05);
  border-left-color: #00c853;
}

.md-typeset .admonition.warning {
  background-color: rgba(255, 145, 0, 0.05);
  border-left-color: #ff9100;
}

.md-typeset .admonition.danger {
  background-color: rgba(255, 23, 68, 0.05);
  border-left-color: #ff1744;
}

.md-button {
  border-radius: 4px;
  transition: var(--transition-standard);
  font-weight: 600;
  text-align: center;
  padding: 0.5rem 1.25rem;
  margin-right: 1rem;
  margin-bottom: 0.5rem;
}

.md-button--primary {
  background-color: var(--md-primary-fg-color);
  color: var(--md-primary-bg-color);
  border: none;
}

.md-button--primary:hover {
  background-color: var(--md-primary-fg-color--dark);
  color: var(--md-primary-bg-color);
}

.md-button--secondary {
  border: 1px solid var(--md-primary-fg-color);
  color: var(--md-primary-fg-color);
}

.md-button--secondary:hover {
  background-color: rgba(var(--md-primary-fg-color--rgb), 0.1);
  color: var(--md-primary-fg-color);
}

.md-content {
  animation: fade-in 0.4s ease-in-out;
}

@keyframes fade-in {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

[data-md-color-scheme="slate"] {
  --md-card-bg-color: #2e303e;
}

[data-md-color-scheme="slate"] .md-typeset .admonition {
  background-color: rgba(0, 0, 0, 0.2);
}

[data-md-color-scheme="slate"]
  .md-typeset__table
  table
  tbody
  tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.03);
}

[data-md-color-scheme="slate"] .md-typeset__table table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.md-content ul:first-of-type {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  list-style: none;
  padding-left: 0;
  margin: 2rem 0;
}

.md-content ul:first-of-type li {
  background-color: var(--md-card-bg-color, #fff);
  border-radius: var(--card-border-radius);
  box-shadow: var(--card-shadow);
  padding: 1.5rem;
  margin-bottom: 0;
  transition: var(--transition-standard);
  position: relative;
  overflow: hidden;
}

.md-content ul:first-of-type li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--md-primary-fg-color),
    var(--md-accent-fg-color)
  );
}

.md-content ul:first-of-type li:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-hover-shadow);
}

.md-content ul:first-of-type li strong {
  color: var(--md-primary-fg-color);
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.md-content ul:first-of-type li a {
  color: var(--md-accent-fg-color);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  margin-top: 1rem;
  transition: var(--transition-standard);
}

.md-content ul:first-of-type li a::after {
  content: "→";
  margin-left: 0.25rem;
  transition: transform var(--animation-duration) ease;
}

.md-content ul:first-of-type li a:hover::after {
  transform: translateX(3px);
}

.md-content h2:last-of-type + ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  list-style: none;
  padding-left: 0;
  margin: 2rem 0;
}

.md-content h2:last-of-type + ul li {
  background-color: var(--md-card-bg-color, #fff);
  border-radius: var(--card-border-radius);
  box-shadow: var(--card-shadow);
  padding: 1.5rem;
  margin-bottom: 0;
  transition: var(--transition-standard);
  position: relative;
  overflow: hidden;
}

.md-content h2:last-of-type + ul li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--md-primary-fg-color),
    var(--md-accent-fg-color)
  );
}

.md-content h2:last-of-type + ul li:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-hover-shadow);
}

.md-content h2:last-of-type + ul li strong {
  color: var(--md-primary-fg-color);
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.md-content > div > ul:not(:first-of-type):not(h2:last-of-type + ul) {
  list-style: disc;
  padding-left: 1.5rem;
}
