
:root {
  --primary-dark: #1c1c1c;
  --primary-gray: #2a2a2a;
  --accent-blue: #00c6ff;
  --accent-purple: #9d00ff;
  --highlight: #00FFFF;
  --text-light: #ffffff;
  --text-gray: #dddddd;
}

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

.header {
  background: rgba(28, 28, 28, 0.9);
  padding: 2rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
}

.header h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  margin: 0;
  background: linear-gradient(45deg, var(--accent-blue), var(--accent-purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 15px rgba(0, 198, 255, 0.3);
}

.notice {
  background: rgba(0, 198, 255, 0.1);
  border-left: 4px solid var(--accent-blue);
  padding: 1rem;
  margin: 2rem auto;
  max-width: 800px;
  border-radius: 0 8px 8px 0;
}

.notice p {
  margin: 0;
  color: var(--accent-blue);
  font-weight: 500;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 2rem;
}

.article-card {
  background: rgba(42, 42, 42, 0.8);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.article-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.article-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
}

.article-card h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8rem;
  margin-top: 0;
  color: var(--text-light);
  position: relative;
}

.article-card h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
  margin: 1rem 0;
}

.article-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.4rem;
  color: var(--accent-blue);
  margin-top: 2rem;
}

.article-card p {
  color: var(--text-gray);
  margin-bottom: 1.5rem;
}

.article-card strong {
  color: var(--text-light);
}

.article-card span[style*="color"] {
  font-weight: bold;
}

.code-block {
  background: #1e1e1e;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  overflow-x: auto;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
  position: relative;
}

.code-block::before {
  content: "CSS";
  position: absolute;
  top: 0;
  right: 0;
  background: linear-gradient(45deg, var(--accent-blue), var(--accent-purple));
  color: white;
  padding: 0.3rem 0.8rem;
  font-size: 0.8rem;
  border-radius: 0 0 0 8px;
}

.code-block pre {
  margin: 0;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #f8f8f2;
  white-space: pre-wrap;
}

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

.gallery-image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

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

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

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

.nav-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
}

.nav-link {
  background: rgba(0, 198, 255, 0.1);
  color: var(--accent-blue);
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 198, 255, 0.3);
}

.nav-link:hover {
  background: rgba(0, 198, 255, 0.3);
  color: var(--text-light);
  box-shadow: 0 0 15px rgba(0, 198, 255, 0.3);
}

.footer {
  text-align: center;
  padding: 2rem;
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer p {
  color: var(--text-gray);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .container {
    grid-template-columns: 1fr;
    padding: 1rem;
  }
  
  .header h1 {
    font-size: 2rem;
  }
  
  .article-card {
    padding: 1.5rem;
  }
}

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

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