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

/* ===== Base ===== */
body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, sans-serif;
  background: #0a0a0a;
  color: #e0e0e0;
  line-height: 1.6;
}

a {
  color: #00e0ff;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #ff0077;
}

/* ===== Header ===== */
header {
  background: #000;
  border-bottom: 2px solid #111;
  padding: 1rem;
  text-align: center;
}

header .logo {
  margin-bottom: 0.5rem;
transform-style: preserve-3d;
  animation: spin3d 4s linear infinite;
  border-radius: 50%;
  height:80px;
  width:auto;
  filter: drop-shadow(0 0 8px rgba(255,0,0,0.5));
}

header h1 {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 0.25rem;
}

header p {
  font-size: 1rem;
  color: #aaa;
  margin-bottom: 0.5rem;
}

nav {
  margin-top: 0.5rem;
}

nav a {
  margin: 0 1rem;
  font-weight: 600;
  font-size: 1rem;
}

nav a:hover {
  text-decoration: underline;
}

/* ===== Main Layout ===== */
main {
  padding: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

/* ===== Cards (Posts + Gear) ===== */
.post, .gear {
  background: #111;
  border: 1px solid #222;
  padding: 1.25rem;
  margin: 1rem 0;
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post:hover, .gear:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(0, 224, 255, 0.2);
}

.post h3, .gear h3 {
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
  color: #00e0ff;
}

.post p, .gear p {
  margin-bottom: 0.5rem;
  color: #ccc;
}

.post small, .gear small {
  font-size: 0.8rem;
  color: #777;
}

/* ===== Pagination ===== */
#pagination {
  margin-top: 1.5rem;
  text-align: center;
}

#pagination button {
  background: #111;
  color: #00e0ff;
  border: 1px solid #00e0ff;
  padding: 0.5rem 1rem;
  margin: 0 0.25rem;
  cursor: pointer;
  font-size: 1rem;
  border-radius: 4px;
  transition: all 0.2s ease;
}

#pagination button:hover {
  background: #00e0ff;
  color: #000;
}

/* ===== Footer ===== */
footer {
  background: #000;
  border-top: 2px solid #111;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: #777;
  margin-top: 2rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  nav a {
    margin: 0 0.5rem;
    font-size: 0.9rem;
  }

  header h1 {
    font-size: 1.6rem;
  }

  main {
    padding: 1rem;
  }

  .post h3, .gear h3 {
    font-size: 1.1rem;
  }
}
@keyframes spin3d {
  from {
    transform: rotateY(0deg);
  }
  to {
    transform: rotateY(360deg);
  }
}