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

body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(135deg, #FFD1DC, #D4A4F4);
  background-size: 300% 300%;
  animation: backgroundAnimation 10s ease infinite;
  color: #FFFFFF;
}

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

header {
  background: linear-gradient(135deg, #0A1F44, #9B59B6, #3498DB);
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

header h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.5em;
  margin: 0;
  color: #2ECC71;
}

.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 20px;
}

.card {
  background: linear-gradient(to bottom, #0A1F44, #9B59B6);
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  width: 300px;
  margin: 15px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: 15px;
}

.card-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5em;
  color: #2ECC71;
  margin-bottom: 10px;
}

.card-description {
  font-size: 1em;
  line-height: 1.5;
}

.card a {
  text-decoration: none;
  color: #3498DB;
}

.card a:hover {
  text-decoration: underline;
}

@media (max-width: 1440px) {
  .card {
    width: 280px;
  }
}

@media (max-width: 1200px) {
  .card {
    width: 250px;
  }
}

@media (max-width: 1024px) {
  .container {
    justify-content: space-around;
  }
}

@media (max-width: 768px) {
  .card {
    width: 45%;
  }
}

@media (max-width: 480px) {
  .card {
    width: 100%;
  }
}

@media (max-width: 320px) {
  .card {
    width: 100%;
  }
}

.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(135deg, #9B59B6, #3498DB, #2ECC71);
  background-size: 300% 300%;
  animation: gradient-animation 15s infinite;
}

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

footer {
  background: #0A1F44;
  padding: 20px;
  text-align: center;
  font-size: 0.9em;
  color: #FFFFFF;
}

.code-snippet {
  background: rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 10px;
  overflow-x: auto;
  font-family: 'Roboto', monospace;
  color: #2ECC71;
  margin: 20px 0;
}

pre {
  margin: 0;
}

.sample-article {
  background: rgba(0, 0, 0, 0.5);
  padding: 20px;
  border-radius: 15px;
  margin: 20px;
}

.sample-article h2,
.sample-article h3 {
  font-family: 'Orbitron', sans-serif;
  color: #2ECC71;
}

.sample-article p {
  font-size: 1em;
  line-height: 1.6;
  color: #FFFFFF;
}

.sample-article a {
  color: #3498DB;
  text-decoration: none;
}

.sample-article a:hover {
  text-decoration: underline;
}

.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -2;
}

.particle {
  position: absolute;
  width: 5px;
  height: 5px;
  background: #FFFFFF;
  border-radius: 50%;
  animation: particle-animation 5s infinite;
  opacity: 0.7;
}

@keyframes particle-animation {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(var(--x, 50px), var(--y, 50px)) scale(0.5); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  body, .card, .background, .particle {
    animation: none;
  }
}

.nofollow-link {
  /* Example class for internal links */
}


