/* Base Styles */
body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background-color: #0d0d0d;
  color: #e0e0e0;
  overflow-x: hidden;
  line-height: 1.45;
  position: relative;
  z-index: 1;
}

a { color: #7289da; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Particles */
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: 0;
  top: 0;
  left: 0;
}

/* Header */
header {
  text-align: center;
  padding: 50px 20px 30px;
  position: relative;
  z-index: 2;
}

header h1 { font-size: 48px; margin: 0; color: #fff; }
header .subtitle { font-size: 18px; color: #aaa; margin-top: 5px; }

/* Container and blocks */
.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  padding: 20px 15px;
  position: relative;
  z-index: 2;
}

.block {
  background-color: #1a1a1a;
  border-radius: 15px;
  padding: 25px 30px;
  flex: 1 1 400px;
  max-width: 500px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.7);
  transition: transform 0.3s, box-shadow 0.3s;
  opacity: 0;
}

.block:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.85); }

h2 { font-size: 26px; margin-top: 0; color: #fff; }
h3 { font-size: 14px; margin-top: 10px; color: #ccc; }
p { margin: 6px 0; font-size: 13px; color: #ddd; }

/* Discord Widget */
#discord-widget .discord-info { margin-top: 10px; }
.online-count { font-weight: bold; margin-bottom: 10px; color: #fff; }
.discord-members { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.member {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #2c2c2c;
  padding: 3px 6px;
  border-radius: 8px;
  transition: transform 0.2s, background 0.2s;
  opacity: 0;
  font-size: 12px;
}
.member:hover { transform: scale(1.08); background: #3a3a3a; }
.member img { width: 30px; height: 30px; border-radius: 50%; }

.join-btn {
  display: inline-block;
  background: #5865F2;
  color: #fff;
  font-weight: bold;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.2s, background 0.2s;
}
.join-btn:hover { background: #4752c4; transform: scale(1.05); }

/* Footer */
footer.contact {
  text-align: center;
  padding: 25px 15px;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(135deg,#1f1f1f,#2a2a2a);
  margin-top: 40px;
  box-shadow: 0 -2px 15px rgba(0,0,0,0.7);
  position: relative;
  z-index: 2;
}
.desktop-text, .desktop-link { display: inline-block; }
.mobile-button { display: none; }

/* Footer mobile adjustments */
@media (max-width:500px){
  .desktop-text, .desktop-link { display: none; }
  .mobile-button {
    display: inline-block;
    background: #5865F2;
    color: #fff;
    font-weight: bold;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.2s, background 0.2s;
  }
  .mobile-button:hover { background: #4752c4; transform: scale(1.05); }
}

/* Animations */
.fade-in { animation: fadeIn 1s ease forwards; }
.fade-in-member { animation: fadeIn 0.5s ease forwards; }
@keyframes fadeIn { from{opacity:0; transform:translateY(15px);} to{opacity:1; transform:translateY(0);} }

/* Responsive */
@media (max-width:500px){ .block{flex:1 1 100%;} }
