/* Root Colors */
:root {
  --primary: #2af598;
  --background: #0d0d0d;
  --section: #1a1a1a;
  --text: #f0f0f0;
  --muted: #999;
}

/* Basic Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: var(--background);
  color: var(--text);
  line-height: 1.6;
}

/* Header */
header {
  background: linear-gradient(120deg, #2af598, #009efd);
  padding: 100px 20px 60px;
  text-align: center;
  color: #000;
}

header img {
  width: 150px;
  margin-bottom: 20px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
}

header h1 {
  font-size: 3rem;
  font-weight: 800;
}

header p {
  font-size: 1.2rem;
  color: #111;
}

/* Navigation */
nav {
  background: #121212;
  padding: 15px;
  text-align: center;
}

nav a {
  color: var(--text);
  text-decoration: none;
  margin: 0 20px;
  font-weight: 600;
  transition: color 0.3s;
}

nav a:hover {
  color: var(--primary);
}

/* Sections */
section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: auto;
}

section h2 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 20px;
  text-align: center;
}

section p {
  font-size: 1.1rem;
  text-align: center;
  color: var(--muted);
  margin-bottom: 40px;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.feature {
  background: var(--section);
  padding: 30px;
  border-radius: 12px;
  text-align: left;
  box-shadow: 0 0 12px rgba(42, 245, 152, 0.1);
  transition: all 0.3s ease;
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(42, 245, 152, 0.3);
}

.feature h3 {
  color: var(--primary);
  margin-bottom: 10px;
}

/* Buttons */
.btn {
  background: var(--primary);
  color: #000;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  margin: 10px 10px 0 0;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
  background: #23e08a;
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(42, 245, 152, 0.6);
}

.btn-group {
  text-align: center;
  margin-top: 20px;
}

/* Join Section Flex Setup (Centering) */
#join {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Server IP Styling */
.server-ip {
  display: inline-block;
  background: linear-gradient(120deg, #2af598, #009efd);
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 1.3rem;
  font-weight: 700;
  color: #000;
  margin: 20px 0;
  box-shadow: 0 6px 20px rgba(42, 245, 152, 0.5);
  animation: fadeBounce 1.5s ease forwards 0.5s, glowPulse 2s ease-in-out infinite 2s;
}

/* Fade + Bounce Animation */
@keyframes fadeBounce {
  0% { opacity: 0; transform: translateY(30px); }
  50% { opacity: 1; transform: translateY(-10px); }
  70% { transform: translateY(5px); }
  100% { transform: translateY(0); }
}

/* Glowing Pulse Animation */
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 6px 20px rgba(42,245,152,0.5); }
  50% { box-shadow: 0 6px 40px rgba(42,245,152,0.8); }
}

/* Footer */
footer {
  background: #0c0c0c;
  color: #777;
  text-align: center;
  padding: 30px 20px;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  header {
    padding: 60px 20px 40px;
  }
  header h1 {
    font-size: 2rem;
  }
  header p {
    font-size: 1rem;
  }
  nav a {
    margin: 0 10px;
    font-size: 0.9rem;
  }
  .server-ip {
    font-size: 1.1rem;
    padding: 12px 24px;
  }
}