
:root {
  --primary: #0A192F;
  --secondary: #1F4068;
  --accent: #3F72AF;
  --light: #F5F5F5;
  --dark: #061020;
  --neon: #4FC3F7;
}

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

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

body {
  background: linear-gradient(135deg, var(--primary), var(--dark));
  color: var(--light);
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  padding-top: 80px;
  min-height: 100%;
  position: relative;
  overflow-x: hidden;
}

.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10, 25, 47, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(63, 114, 175, 0.3);
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--neon), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 10px rgba(79, 195, 247, 0.3);
}

.notice {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(10, 25, 47, 0.9);
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 14px;
  box-shadow: 0 0 20px rgba(63, 114, 175, 0.3);
  z-index: 100;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.main-container {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.sidebar {
  width: 250px;
  padding: 2rem 1rem;
  position: sticky;
  top: 80px;
  height: calc(100vh - 80px);
  overflow-y: auto;
}

.nav-menu {
  list-style: none;
}

.nav-item {
  margin-bottom: 1rem;
  position: relative;
}

.nav-link {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--light);
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(63, 114, 175, 0.3), transparent);
  transition: all 0.5s ease;
}

.nav-link:hover::before {
  left: 100%;
}

.nav-link:hover {
  background: rgba(31, 64, 104, 0.5);
  box-shadow: 0 0 10px rgba(63, 114, 175, 0.3);
}

.content {
  flex: 1;
  padding: 2rem;
  background: rgba(10, 25, 47, 0.7);
  border-radius: 12px;
  margin-left: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(63, 114, 175, 0.2);
}

article {
  max-width: 900px;
  margin: 0 auto;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--light);
  position: relative;
  padding-bottom: 0.5rem;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, var(--neon), var(--accent));
  border-radius: 3px;
}

h3 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  color: var(--light);
  position: relative;
  padding-left: 1rem;
}

h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 60%;
  background: var(--accent);
  border-radius: 2px;
}

p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.7;
}

.code-container {
  background: rgba(6, 16, 32, 0.8);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
  border: 1px solid rgba(63, 114, 175, 0.3);
  overflow: hidden;
  position: relative;
}

.code-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 30px;
  background: rgba(31, 64, 104, 0.5);
  display: flex;
  align-items: center;
  padding-left: 1rem;
  color: var(--light);
  font-family: monospace;
  font-size: 0.9rem;
}

pre {
  margin: 0;
  overflow-x: auto;
  padding: 1rem 0;
}

code {
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  color: #9CDCFE;
  line-height: 1.5;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: rgba(6, 16, 32, 0.8);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

th, td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(63, 114, 175, 0.2);
}

th {
  background: rgba(31, 64, 104, 0.5);
  color: var(--light);
  font-weight: 500;
}

tr:hover {
  background: rgba(63, 114, 175, 0.1);
}

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

.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(63, 114, 175, 0.4);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: all 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.neon-effect {
  position: relative;
  padding: 2rem;
  margin: 3rem 0;
  border-radius: 12px;
  background: rgba(10, 25, 47, 0.5);
  box-shadow: 0 0 10px rgba(63, 114, 175, 0.3);
}

.neon-effect::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--neon), var(--accent), var(--neon));
  z-index: -1;
  border-radius: 14px;
  animation: borderGlow 3s linear infinite;
  background-size: 400%;
}

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

@media (max-width: 1024px) {
  .main-container {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    position: static;
    height: auto;
    padding: 1rem;
  }
  
  .content {
    margin-left: 0;
    margin-top: 20px;
  }
}

@media (max-width: 768px) {
  .header {
    flex-direction: column;
    padding: 1rem;
  }
  
  .logo {
    margin-bottom: 1rem;
  }
  
  .gallery {
    grid-template-columns: 1fr;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  h3 {
    font-size: 1.3rem;
  }
}

.particle {
  position: absolute;
  background: var(--neon);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

@keyframes particleMove {
  0% {
    transform: translate(0, 0);
    opacity: 1;
  }
  100% {
    transform: translate(var(--x), var(--y));
    opacity: 0;
  }
}

