* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --dark-bg: #0a0e1a;
  --card-bg: rgba(15, 23, 42, 0.8);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-accent: #60a5fa;
  --border-color: rgba(255, 255, 255, 0.1);
  --shadow-color: rgba(0, 0, 0, 0.5);
  --success-color: #10b981;
  --warning-color: #f59e0b;
}

body {
  background: var(--dark-bg);
  background-image: radial-gradient(
      circle at 20% 80%,
      rgba(120, 119, 198, 0.3) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(255, 119, 198, 0.3) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 40%,
      rgba(120, 219, 255, 0.2) 0%,
      transparent 50%
    );
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter",
    sans-serif;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  gap: 3rem;
  position: relative;
}

/* Animated background elements */
.bg-shapes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.bg-shape {
  position: absolute;
  border-radius: 50%;
  background: var(--accent-gradient);
  opacity: 0.1;
  animation: float 20s infinite ease-in-out;
}

.bg-shape:nth-child(1) {
  width: 200px;
  height: 200px;
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.bg-shape:nth-child(2) {
  width: 300px;
  height: 300px;
  top: 60%;
  right: 10%;
  animation-delay: -7s;
}

.bg-shape:nth-child(3) {
  width: 150px;
  height: 150px;
  top: 30%;
  right: 30%;
  animation-delay: -14s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
  33% {
    transform: translateY(-30px) rotate(120deg) scale(1.1);
  }
  66% {
    transform: translateY(30px) rotate(240deg) scale(0.9);
  }
}

/* Sidebar */
.sidebar {
  width: 300px;
  position: sticky;
  top: 2rem;
  height: calc(100vh - 4rem);
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 2rem;
  overflow-y: auto;
  box-shadow: 0 20px 40px var(--shadow-color);
}

.sidebar h2 {
  font-size: 1.75rem;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 2rem;
  text-align: center;
}

.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar a {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  font-weight: 500;
}

.sidebar a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--primary-gradient);
  transition: left 0.3s ease;
  z-index: -1;
}

.sidebar a:hover {
  color: var(--text-primary);
  transform: translateX(8px);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.sidebar a:hover::before {
  left: 0;
}

/* Main content */
.content-section {
  flex: 1;
  max-width: 900px;
}

h1 {
  font-size: 4rem;
  font-weight: 900;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 3rem;
  line-height: 1.2;
  text-align: center;
  animation: fadeInUp 0.8s ease-out;
}

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

section {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 3rem;
  margin-bottom: 2rem;
  box-shadow: 0 20px 40px var(--shadow-color);
  animation: slideIn 0.6s ease-out;
  animation-fill-mode: both;
}

section:nth-child(2) {
  animation-delay: 0.1s;
}
section:nth-child(3) {
  animation-delay: 0.2s;
}
section:nth-child(4) {
  animation-delay: 0.3s;
}
section:nth-child(5) {
  animation-delay: 0.4s;
}
section:nth-child(6) {
  animation-delay: 0.5s;
}
section:nth-child(7) {
  animation-delay: 0.6s;
}

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

h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

h2::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--secondary-gradient);
  border-radius: 2px;
}

p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

ul,
ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

li {
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  font-size: 1.125rem;
  line-height: 1.7;
}

li strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Code styling */
pre,
code {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  font-family: "SF Mono", "Fira Code", "Cascadia Code", monospace;
  font-size: 0.9rem;
}

pre {
  padding: 1.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  position: relative;
}

pre::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
  border-radius: 12px 12px 0 0;
}

code {
  padding: 0.25rem 0.5rem;
  color: var(--text-accent);
  font-weight: 500;
}

pre code {
  padding: 0;
  background: none;
  border: none;
  color: var(--text-primary);
}

/* Enhanced list styling */
ul li::marker {
  content: "▶ ";
  color: var(--text-accent);
  font-size: 0.8rem;
}

ol li::marker {
  color: var(--text-accent);
  font-weight: bold;
}

/* Links */
a {
  color: var(--text-accent);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
}

a:hover {
  color: #93c5fd;
  text-shadow: 0 0 10px rgba(96, 165, 250, 0.5);
}

/* Image styling */
img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  margin: 1rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

img:hover {
  transform: scale(1.02);
}

/* Responsive design */
@media (max-width: 1200px) {
  .container {
    flex-direction: column;
    gap: 2rem;
  }

  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    top: 0;
  }

  h1 {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  section {
    padding: 2rem;
  }

  .sidebar {
    padding: 1.5rem;
  }
}

/* Scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Selection styling */
::selection {
  background: rgba(96, 165, 250, 0.3);
  color: var(--text-primary);
}

/* Focus styles for accessibility */
a:focus,
button:focus {
  outline: 2px solid var(--text-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Loading animation */
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}
