
:root {
  --primary: #1a1a2e;
  --secondary: #16213e;
  --accent: #0f3460;
  --highlight: #e94560;
  --text: #f1f1f1;
  --code-bg: #2d3748;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  line-height: 1.6;
  min-height: 100%;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.header {
  text-align: center;
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}

.header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, 
    rgba(74, 144, 226, 0.2), 
    rgba(144, 19, 254, 0.2), 
    rgba(80, 227, 194, 0.2));
  z-index: -1;
  animation: aurora 15s ease infinite;
  background-size: 400% 400%;
}

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

.title {
  font-size: 3rem;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, #4A90E2, #9013FE);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 800px;
  margin: 0 auto 2rem;
}

.note {
  background: rgba(255,255,255,0.1);
  padding: 1rem;
  border-radius: 8px;
  margin: 2rem 0;
  border-left: 4px solid var(--highlight);
}

.section {
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 3rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.section:hover {
  transform: translateY(-5px);
}

.section-title {
  font-size: 2rem;
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: #4A90E2;
  position: relative;
  padding-bottom: 0.5rem;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, #4A90E2, transparent);
}

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

.card {
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.card:hover {
  background: rgba(255,255,255,0.15);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.card-img:hover {
  transform: scale(1.02);
}

pre {
  background: var(--code-bg);
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.9rem;
  margin: 1.5rem 0;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

code {
  font-family: 'Courier New', monospace;
  color: #f8f8f2;
}

.nav {
  position: sticky;
  top: 0;
  background: rgba(26, 26, 46, 0.9);
  backdrop-filter: blur(10px);
  padding: 1rem 2rem;
  display: flex;
  justify-content: center;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.nav-link {
  color: var(--text);
  text-decoration: none;
  margin: 0 1rem;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--highlight);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--highlight);
  transition: all 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
  left: 0;
}

.footer {
  text-align: center;
  padding: 2rem;
  margin-top: 3rem;
  background: rgba(0,0,0,0.2);
  border-radius: 12px;
}

@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }
  
  .title {
    font-size: 2rem;
  }
  
  .section {
    padding: 1.5rem;
  }
  
  .grid {
    grid-template-columns: 1fr;
  }
  
  .nav {
    flex-wrap: wrap;
  }
  
  .nav-link {
    margin: 0.5rem;
  }
}

