
:root {
  --primary-color: #1a1a2e;
  --secondary-color: #16213e;
  --accent-color: #0f3460;
  --highlight-color: #e94560;
  --text-color: #f1f1f1;
  --neutral-light: rgba(255,255,255,0.8);
  --neutral-dark: rgba(0,0,0,0.2);
  --gradient-main: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 70%, var(--accent-color) 100%;
  --gradient-accent: linear-gradient(45deg, var(--accent-color), var(--highlight-color));
}

@font-face {
  font-family: 'Fjalla One';
  src: url('fonts/FjallaOne-Regular.ttf') format('truetype');
}

body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  background: var(--gradient-main);
  color: var(--text-color);
  line-height: 1.8;
  font-size: 17px;
  overflow-x: hidden;
}

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

.header {
  text-align: center;
  padding: 60px 0 40px;
  position: relative;
}

.header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 3px;
  background: var(--highlight-color);
  border-radius: 3px;
}

h1, h2, h3, h4 {
  font-family: 'Fjalla One', sans-serif;
  margin-top: 0;
}

h1 {
  font-size: 2.8rem;
  background: linear-gradient(to right, #fff, var(--highlight-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

h2 {
  font-size: 2.2rem;
  color: var(--highlight-color);
  margin: 50px 0 25px;
  position: relative;
  padding-bottom: 15px;
}

h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 3px;
  background: var(--highlight-color);
  border-radius: 3px;
}

h3 {
  font-size: 1.8rem;
  color: var(--neutral-light);
  margin: 40px 0 20px;
}

.article-block {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 40px;
  margin: 40px 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-block:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

p {
  margin-bottom: 25px;
}

.img-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 40px 0;
}

.img-box {
  width: 300px;
  height: 300px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.img-box:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.img-box:hover img {
  transform: scale(1.1);
}

pre {
  background: rgba(0,0,0,0.3);
  border-radius: 10px;
  padding: 20px;
  overflow: auto;
  font-family: 'Courier New', monospace;
  font-size: 15px;
  line-height: 1.5;
  margin: 30px 0;
  border-left: 4px solid var(--highlight-color);
}

code {
  font-family: 'Courier New', monospace;
  background: rgba(0,0,0,0.2);
  padding: 2px 5px;
  border-radius: 3px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 40px 0;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  overflow: hidden;
}

th, td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

th {
  background: rgba(0,0,0,0.2);
  color: var(--highlight-color);
  font-family: 'Fjalla One', sans-serif;
}

tr:hover {
  background: rgba(255,255,255,0.05);
}

.note {
  background: rgba(15, 52, 96, 0.3);
  border-left: 4px solid var(--highlight-color);
  padding: 20px;
  margin: 30px 0;
  border-radius: 0 5px 5px 0;
}

.ref-label {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: rgba(0,0,0,0.5);
  color: white;
  padding: 10px 15px;
  border-radius: 5px;
  font-size: 14px;
  z-index: 100;
}

.nav-dots {
  position: fixed;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 90;
}

.nav-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-dot.active {
  background: var(--highlight-color);
  transform: scale(1.3);
}

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

@media (max-width: 768px) {
  body {
    font-size: 16px;
  }
  
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
  
  .article-block {
    padding: 30px;
  }
  
  .img-box {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
  }
  
  .nav-dots {
    display: none;
  }
}

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

.floating {
  animation: float 3s ease-in-out infinite;
}

.decoration {
  position: absolute;
  opacity: 0.1;
  z-index: -1;
}

.dec-1 {
  top: 10%;
  left: 5%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--highlight-color), transparent 70%);
  border-radius: 50%;
}

.dec-2 {
  bottom: 15%;
  right: 5%;
  width: 300px;
  height: 300px;
  background: conic-gradient(from 45deg, var(--accent-color), transparent);
  transform: rotate(45deg);
}

.dec-3 {
  top: 50%;
  left: 50%;
  width: 400px;
  height: 400px;
  background: linear-gradient(45deg, var(--primary-color), transparent);
  transform: translate(-50%, -50%);
}

