@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --foreground-color: #c0caf5;
  --background-color: #1a1b26;
  --card-bg: #1f2335;
  --primary-color: #7aa2f7;
  --secondary-color: #bb9af7;
  --accent-color: #73daca;
  --text-primary: #c0caf5;
  --text-secondary: #9aa5ce;
  --border-color: rgba(255, 255, 255, 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-scroll-behavior: smooth;
  -moz-scroll-behavior: smooth;
  -ms-scroll-behavior: smooth;
}

body {
  background: var(--background-color);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 0% 0%, rgba(122, 162, 247, 0.1), transparent 40%),
    radial-gradient(circle at 100% 100%, rgba(187, 154, 247, 0.1), transparent 40%);
  pointer-events: none;
  z-index: -1;
}

nav {
  width: 90%;
  max-width: 1200px;
  margin: 20px auto;
  background: rgba(31, 35, 53, 0.8);
  border-radius: 16px;
  padding: 15px 25px;
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 15px;
}

nav ul li {
  position: relative;
}

nav ul li a {
  color: var(--text-primary);
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

nav ul li a svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

nav ul li a:hover svg {
  transform: scale(1.1);
}

nav ul li a:active svg {
  transform: scale(0.95);
}

nav ul li a:hover {
  background: var(--primary-color);
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(122, 162, 247, 0.2);
}

nav ul li a:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(122, 162, 247, 0.2);
}

#content {
  background: rgba(31, 35, 53, 0.8);
  border-radius: 20px;
  min-height: 600px;
  padding: 40px 30px;
  margin: 20px auto;
  width: 90%;
  max-width: 1200px;
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

#content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.1) 50%,
      transparent 100%);
}

/* Markdown Content Styling */
zero-md {
  font-family: 'Inter', sans-serif;
}

zero-md h1,
zero-md h2,
zero-md h3,
zero-md h4,
zero-md h5,
zero-md h6 {
  color: var(--text-primary);
  margin: 1.5em 0 0.5em;
  font-weight: 600;
  line-height: 1.3;
}

zero-md h1 {
  font-size: 2.2em;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.3em;
}

zero-md h2 {
  font-size: 1.8em;
}

zero-md h3 {
  font-size: 1.5em;
}

zero-md p {
  margin: 1em 0;
  line-height: 1.7;
  color: var(--text-secondary);
}

zero-md code {
  font-family: 'JetBrains Mono', monospace;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.2em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--accent-color);
}

zero-md pre {
  background: rgba(0, 0, 0, 0.2) !important;
  border-radius: 8px;
  padding: 1em;
  margin: 1em 0;
  overflow-x: auto;
  border: 1px solid var(--border-color);
}

zero-md pre code {
  background: transparent;
  padding: 0;
  font-size: 0.95em;
  color: var(--text-primary);
}

zero-md blockquote {
  border-left: 4px solid var(--primary-color);
  margin: 1em 0;
  padding: 0.5em 1em;
  background: rgba(122, 162, 247, 0.1);
  border-radius: 4px;
}

zero-md ul,
zero-md ol {
  margin: 1em 0;
  padding-left: 2em;
}

zero-md li {
  margin: 0.5em 0;
  color: var(--text-secondary);
}

zero-md table {
  border-collapse: collapse;
  width: 100%;
  margin: 1em 0;
}

zero-md th,
zero-md td {
  border: 1px solid var(--border-color);
  padding: 0.75em 1em;
  text-align: left;
}

zero-md th {
  background: rgba(255, 255, 255, 0.05);
  font-weight: 600;
}

zero-md tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

zero-md a {
  cursor: pointer;
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

zero-md a:hover {
  color: var(--secondary-color);
  text-decoration: none;
}

zero-md a::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--secondary-color);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

zero-md a:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 10px;
  border: 2px solid var(--background-color);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 768px) {

  nav,
  #content {
    width: 95%;
    padding: 20px;
  }

  nav ul {
    flex-direction: row;
    flex-wrap: wrap;
  }

  nav ul li a {
    width: 100%;
    text-align: center;
  }

  zero-md h1 {
    font-size: 1.8em;
  }

  zero-md h2 {
    font-size: 1.5em;
  }

  zero-md h3 {
    font-size: 1.3em;
  }
}
