
:root {
  --primary: #0f0c29;
  --secondary: #302b63;
  --accent: #00c6ff;
  --text: #ffffff;
  --highlight: #ff7e5f;
  --card-bg: rgba(255, 255, 255, 0.1);
}

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

body {
  font-family: 'Roboto', sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, var(--primary), var(--secondary), #24243e);
  background-size: 400% 400%;
  animation: gradientAnimation 15s ease infinite;
  line-height: 1.6;
  min-height: 100%;
  overflow-x: hidden;
}

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

.header {
  text-align: center;
  padding: 40px 20px;
  position: relative;
  overflow: hidden;
}

.header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(0, 198, 255, 0.1) 0%, transparent 70%);
  z-index: -1;
}

.header h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  background: linear-gradient(90deg, #00c6ff, #0072ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 20px rgba(0, 198, 255, 0.3);
}

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

.notice {
  background: rgba(0, 0, 0, 0.5);
  padding: 15px;
  border-radius: 8px;
  margin: 20px auto;
  max-width: 800px;
  text-align: center;
  border: 1px solid var(--accent);
}

.main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

article {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

article h2 {
  font-size: 2rem;
  margin-bottom: 25px;
  color: var(--accent);
  position: relative;
  padding-bottom: 10px;
}

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

article h3 {
  font-size: 1.5rem;
  margin: 30px 0 15px;
  color: var(--accent);
}

article p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  line-height: 1.7;
}

pre {
  background: rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  overflow: auto;
  border-left: 4px solid var(--accent);
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  line-height: 1.5;
}

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

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.image-card {
  background: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.image-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 198, 255, 0.3);
}

.image-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px 10px 0 0;
}

.image-caption {
  padding: 15px;
  text-align: center;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  background: rgba(0, 0, 0, 0.3);
  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, 198, 255, 0.2);
  font-weight: bold;
}

.positive {
  color: #00ffaa;
}

.negative {
  color: #ff4d4d;
}

.footer {
  text-align: center;
  padding: 30px;
  margin-top: 50px;
  background: rgba(0, 0, 0, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
  .header h1 {
    font-size: 2rem;
  }
  
  .main-container {
    padding: 15px;
  }
  
  article {
    padding: 20px;
  }
  
  .image-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 480px) {
  .header h1 {
    font-size: 1.8rem;
  }
  
  article h2 {
    font-size: 1.5rem;
  }
  
  article h3 {
    font-size: 1.2rem;
  }
  
  .image-grid {
    grid-template-columns: 1fr;
  }
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

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

.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 198, 255, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(0, 198, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 198, 255, 0); }
}

/* Navigation */
.nav-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin: 30px 0;
}

.nav-link {
  margin: 10px;
  padding: 10px 20px;
  background: rgba(0, 198, 255, 0.2);
  border-radius: 30px;
  color: white;
  text-decoration: none;
  transition: all 0.3s;
  border: 1px solid rgba(0, 198, 255, 0.5);
}

.nav-link:hover {
  background: rgba(0, 198, 255, 0.4);
  transform: translateY(-3px);
}

/* Code block styling */
.hljs {
  display: block;
  overflow-x: auto;
  padding: 1em;
  color: #abb2bf;
  background: #282c34;
  border-radius: 6px;
}

.hljs-keyword,
.hljs-operator,
.hljs-punctuation {
  color: #c678dd;
}

.hljs-string,
.hljs-attr {
  color: #98c379;
}

.hljs-number,
.hljs-boolean {
  color: #d19a66;
}

.hljs-comment {
  color: #5c6370;
  font-style: italic;
}

.hljs-selector-class,
.hljs-selector-id {
  color: #e06c75;
}

.hljs-property {
  color: #56b6c2;
}

.hljs-function {
  color: #61afef;
}

