/* Grundresets */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: Arial, sans-serif;
  color: #eee;
  background-color: #121212;
}
a {
  text-decoration: none;
  color: inherit;
}

/* ==== Header ==== */
.header {
  background: #0D0D0D;
  padding: 0.8rem 2rem;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.logo-img {
  height: 40px;
  width: auto;
}

.nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  color: #ccc;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding-bottom: 3px;
  transition: color 0.2s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #d32f2f;
  border-radius: 2px;
  transition: width 0.25s ease;
}

.nav a:hover {
  color: #fff;
}

.nav a:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #eee;
  font-size: 1.6rem;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.mobile-nav {
  display: none;
  position: fixed;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: #0d0d0d;
  z-index: 1000;
  overflow-y: auto;
}

.mobile-nav-content {
  padding: 24px 28px;
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 1px solid #222;
}

.mobile-nav-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #555;
  font-weight: 600;
}

.mobile-nav-close {
  font-size: 1.8rem;
  line-height: 1;
  background: none;
  border: none;
  color: #aaa;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s ease;
}

.mobile-nav-close:hover {
  color: #fff;
}

.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav li {
  border-bottom: 1px solid #1a1a1a;
}

.mobile-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 4px;
  font-size: 1.15rem;
  font-weight: 500;
  color: #ccc;
  text-decoration: none;
  transition: color 0.2s ease;
}

.mobile-nav a::after {
  content: "›";
  color: #333;
  font-size: 1.3rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.mobile-nav a:hover {
  color: #fff;
}

.mobile-nav a:hover::after {
  color: #d32f2f;
  transform: translateX(3px);
}

/* ==== Hero ==== */
.hero {
  position: relative;
  text-align: center;
  color: white;
  padding: 120px 20px;
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
}

.hero-content {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  z-index: 1;
}
.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
.hero p {
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}

.slider-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.3s;
}

.slider-dots .dot.active {
  background: #d32f2f;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 25px;
  font-size: 1rem;
  margin: 5px;
  transition: background 0.3s;
}
.btn i {
  margin-right: 8px;
  font-size: 1.1em;
}

.btn-primary {
  background: #d32f2f;
  color: white;
}
.btn-primary:hover {
  background: #b71c1c;
}
.btn-secondary {
  background: #444;
  color: #eee;
}
.btn-secondary:hover {
  background: #666;
}

/* ==== Features ==== */
.features {
  padding: 80px 20px;
  text-align: center;
}
.features h3 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #fff;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}
.feature-card {
  background: #1f1f1f;
  padding: 30px;
  border-radius: 10px;
  transition: transform 0.3s, background 0.3s;
}
.feature-card:hover {
  transform: translateY(-5px);
  background: #2a2a2a;
}
.feature-card h4 {
  margin-bottom: 15px;
  font-size: 1.3rem;
  color: #d32f2f;
}
.feature-card p {
  font-size: 1rem;
  color: #ccc;
}

/* ==== CTA ==== */
.cta {
  padding: 60px 20px;
  background: #1a1a1a;
  text-align: center;
}
.cta h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #fff;
}
.cta p {
  font-size: 1rem;
  margin-bottom: 25px;
  color: #ccc;
}

/* ==== Footer ==== */
.footer {
  background: #0d0d0d;
  color: #ddd;
  padding: 3rem 1.5rem 2rem;
  margin-top: 3rem;
  border-top: 2px solid #222;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-section h3 {
  color: #fff;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  position: relative;
}

.footer-section h3::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: #d32f2f;
  margin-top: 0.5rem;
  border-radius: 2px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section li {
  margin: 0.6rem 0;
  display: flex;
  align-items: center;
}

.footer-section a {
  color: #bbb;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-section a:hover {
  color: #fff;
  padding-left: 4px;
}

.footer-section i {
  width: 20px;
  text-align: center;
  margin-right: 10px;
  color: #d32f2f;
  font-size: 1rem;
}

.footer-bottom {
  text-align: center;
  margin-top: 3rem;
  font-size: 0.85rem;
  color: #777;
  border-top: 1px solid #222;
  padding-top: 1.5rem;
}

/* ==== Announce ==== */
.announce {
  background: linear-gradient(90deg, #008000, #005700);
  color: white;
  text-align: center;
  padding: 1.25rem;
  font-family: Arial, sans-serif;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.announce-content {
  max-width: 1200px;
  margin: 0 auto;
}

.announce h2 {
  font-size: 1rem;
  margin: 0;
  letter-spacing: 1px;
  font-weight: bold;
  text-transform: uppercase;
}

.announce p {
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
}

/* ==== Gamemodes Section ==== */
.gamemodes {
  padding: 80px 20px;
  background: #0d0d0d;
  text-align: center;
}

.gamemodes h3 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #fff;
}

.gamemodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.gamemode-card {
  background: #1a1a1a;
  padding: 20px;
  border-radius: 10px;
  border: 2px solid #2a2a2a;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
}

.gamemode-card:hover {
  transform: translateY(-5px);
  border-color: #d32f2f;
  box-shadow: 0 8px 20px rgba(211, 47, 47, 0.3);
}

.gamemode-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.gamemode-header h4 {
  font-size: 1.1rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.gamemode-header i {
  color: #d32f2f;
  font-size: 1.2rem;
}

.version {
  font-size: 0.85rem;
  color: #888;
  background: #252525;
  padding: 4px 10px;
  border-radius: 12px;
  white-space: nowrap;
}

.status-badge {
  display: inline-block;
  padding: 6px 14px;
  cursor: pointer;
  user-select: none;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-live {
  background:
    repeating-linear-gradient(
      315deg,
      rgba(255, 255, 255, 0.15) 0,
      rgba(255, 255, 255, 0.15) 10px,
      transparent 10px,
      transparent 20px
    ),
    linear-gradient(315deg, #43A047, #81c784);
  color: white;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.4);
  background-size: 200% 200%;
  animation: moveStripes 15s linear infinite;
}

.status-planned {
  background:
    repeating-linear-gradient(
      315deg,
      rgba(255, 255, 255, 0.15) 0,
      rgba(255, 255, 255, 0.15) 10px,
      transparent 10px,
      transparent 20px
    ),
    linear-gradient(90deg, #ff9800, #ffb74d);
  background-size: 200% 200%;
  color: white;
  box-shadow: 0 2px 8px rgba(255, 152, 0, 0.4);
  animation: moveStripes 15s linear infinite;
}

.status-development {
  background:
    repeating-linear-gradient(
      315deg,
      rgba(255, 255, 255, 0.15) 0,
      rgba(255, 255, 255, 0.15) 10px,
      transparent 10px,
      transparent 20px
    ),
    linear-gradient(90deg, #5ab4f0, #2196f3);
  background-size: 200% 200%;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  box-shadow: 0 2px 8px rgba(33, 150, 243, 0.4);
  animation: moveStripes 15s linear infinite;
}

.status-maintenance {
  position: relative;
  overflow: hidden;
  color: white;
  background:
    repeating-linear-gradient(
      315deg,
      rgba(255, 255, 255, 0.12) 0px,
      rgba(255, 255, 255, 0.12) 12px,
      transparent 12px,
      transparent 24px
    ),
    linear-gradient(315deg, #c62828, #ef5350);
  box-shadow: 0 0 12px rgba(239, 83, 80, 0.5);
  border-radius: 20px;
  animation: pulseMaintenance 2.5s ease-in-out infinite;
}

@keyframes pulseMaintenance {
  0%, 100% {
    box-shadow: 0 0 8px rgba(239, 83, 80, 0.4);
    filter: brightness(1);
  }
  50% {
    box-shadow: 0 0 16px rgba(239, 83, 80, 0.8);
    filter: brightness(1.15);
  }
}

@keyframes moveStripes {
  from { background-position: 0 0, 0 0; }
  to { background-position: 200px 200px, 0 0; }
}

/* ==== Projects Section ==== */
.projects {
  padding: 80px 20px;
  background: #121212;
  text-align: center;
}

.projects h3 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #fff;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.project-card {
  background: #1a1a1a;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid #2a2a2a;
  transition: all 0.3s ease;
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: #d32f2f;
  box-shadow: 0 8px 20px rgba(211, 47, 47, 0.3);
}

.project-image {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  background-color: #2a2a2a;
}

.project-info {
  padding: 20px;
  text-align: left;
}

.project-info h4 {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 8px;
  font-weight: 600;
}

.project-date {
  font-size: 0.9rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==== Stats Section ==== */
.stats {
  padding: 80px 20px;
  background: #0d0d0d;
}

.stats-header {
  text-align: center;
  margin-bottom: 40px;
}

.stats h3 {
  font-size: 2rem;
  color: #fff;
  margin: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 1100px;
  margin: 0 auto;
}

.stat-card {
  background: #1a1a1a;
  border: 2px solid #2a2a2a;
  border-radius: 10px;
  padding: 28px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: #d32f2f;
  box-shadow: 0 8px 20px rgba(211, 47, 47, 0.3);
}

.stat-icon {
  font-size: 1.3rem;
  color: #d32f2f;
}

.stat-value {
  font-size: 1.9rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.5px;
}

.stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #888;
  font-weight: 500;
  text-align: center;
}

@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-card { padding: 20px 12px; }
  .stat-value { font-size: 1.5rem; }
}

/* ==== Information Section ==== */
.information {
  padding: 80px 20px;
  background: #121212;
}

.information h3 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #fff;
  text-align: center;
}

.info-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}

.info-card {
  background: #1a1a1a;
  border: 2px solid #2a2a2a;
  border-radius: 10px;
  padding: 24px 28px;
  transition: all 0.3s ease;
}

.info-card:hover {
  transform: translateY(-5px);
  border-color: #d32f2f;
  box-shadow: 0 8px 20px rgba(211, 47, 47, 0.3);
}

.info-card h4 {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-card h4 i {
  color: #d32f2f;
  font-size: 1.1rem;
}

.info-card p {
  font-size: 0.95rem;
  color: #aaa;
  line-height: 1.7;
}

.server-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.server-stat {
  background: #141414;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  padding: 12px 14px;
}

.server-stat .slabel {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888;
  margin-bottom: 5px;
}

.server-stat .sval {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.server-stat .sval.red {
  color: #d32f2f;
}

.server-stat.copyable {
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.server-stat.copyable:hover {
  border-color: #d32f2f;
}

.server-stat.copyable .sval {
  display: flex;
  align-items: center;
  gap: 6px;
}

.server-stat.copyable .sval i {
  font-size: 0.75rem;
  color: #555;
  transition: color 0.2s ease;
}

.server-stat.copyable:hover .sval i {
  color: #d32f2f;
}

.ping-divider {
  height: 1px;
  background: #2a2a2a;
  margin: 14px 0 0;
}

.ping-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.ping-stat {
  background: #141414;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pdot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4caf50;
  flex-shrink: 0;
}

.pdot.yellow {
  background: #8bc34a;
}

.ping-stat span {
  font-size: 0.85rem;
  color: #aaa;
  flex: 1;
}

.ping-stat strong {
  font-size: 0.9rem;
  color: #fff;
}

/* ==== Popup Overlay ==== */
.ping-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.ping-popup.active {
  display: flex;
}

.ping-popup-inner {
  background: #111;
  color: #fff;
  padding: 2rem;
  border-radius: 1rem;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.ping-popup-buttons {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.ping-popup .btn {
  cursor: pointer;
}

/* ==== Responsive ==== */
@media (max-width: 768px) {
  .nav { display: none; }
  .mobile-menu-btn { display: block; }
  .header-content { position: relative; }
  .announce h2 { font-size: 0.9rem; }
  .announce p { font-size: 0.85rem; }

  .gamemodes-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
  }
  .gamemode-card {
    padding: 15px;
  }
  .gamemode-header h4 {
    font-size: 1rem;
  }

  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }

  .info-container {
    gap: 12px;
  }
  .info-card {
    padding: 20px;
  }
  .server-grid {
    grid-template-columns: 1fr 1fr;
  }
  .ping-row {
    grid-template-columns: 1fr;
  }
}