
/* ===============  Grunddesign  =============== */
:root {
  --bg-start: #0d0d10;
  --bg-end: #1a1a22;
  --text-color: #d9d9e3;
  --card-bg: rgba(255, 255, 255, 0.05);
  --card-border: rgba(255, 255, 255, 0.1);
  --duration: 0.3s;
  font-size: 16px;
  font-family: 'Montserrat', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at top center, var(--bg-start) 0%, var(--bg-end) 100%);
  color: var(--text-color);
  overscroll-behavior: none;
}

html {
  overflow-y: scroll;
}

/* Header */
.header {
  padding: 2rem 1rem 0.5rem;
  text-align: center;
}
.header h1 {
  margin: 0;
  font-weight: 600;
  font-size: 2rem;
  letter-spacing: 0.02em;
  text-shadow: 0 0 5px #1f1f1f;
}

/* Grid Layout */
.grid {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1rem 4rem;
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  align-items: start;
}

/* Section Title */
.section-title {
  grid-column: 1 / -1;
  margin: 2rem 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
}

/* Card Styles */
@keyframes rgb-glow {
  0%   { border-color: #ff0040; box-shadow: 0 0 10px #ff0040; }
  25%  { border-color: #ff9900; box-shadow: 0 0 10px #ff9900; }
  50%  { border-color: #ffff00; box-shadow: 0 0 10px #ffff00; }
  75%  { border-color: #ff0040; box-shadow: 0 0 10px #ff0040; }
  100% { border-color: #ff0040; box-shadow: 0 0 10px #ff0040; }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  padding: 2rem 1rem;
  background: var(--card-bg);
  border: 2px solid #ff0040;
  border-radius: 1rem;
  text-decoration: none;
  color: inherit;
  backdrop-filter: blur(10px);
  transition: transform var(--duration) ease;
  font-size: 0.95rem;
  min-height: 220px;
  animation: rgb-glow 4s linear infinite;
}

.card .logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 0.25rem;
  box-shadow: 0 0 6px rgba(0,0,0,0.35);
  margin-bottom: 0.5rem;
}

.card:hover,
.card:focus-visible {
  transform: translateY(-6px) scale(1.03);
}

/* Footer */
.footer {
  margin-top: auto;
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.875rem;
}

.footer a {
  color: var(--text-color);
  text-decoration: none;
  border-bottom: 1px dotted var(--text-color);
  transition: border-bottom-color var(--duration) ease;
}

.footer a:hover,
.footer a:focus-visible {
  border-bottom-color: transparent;
}

/* ==== Custom Scrollbar ==== */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #1a1a22;
  border-radius: 6px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ff4d4d, #8f0000);
  border-radius: 6px;
  box-shadow: 0 0 5px rgba(255,0,0,0.5);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ff0000, #8f0000);
  box-shadow: 0 0 10px rgba(255,0,0,0.8);
}

html, body {
  overscroll-behavior: none;
  background-color: #0d0d10;
}
