/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@600;800&display=swap');

:root {
  --main-bg: #18181b;
  --card-bg: #23232a;
  --accent: #ff2d2d;
  --accent-light: #fff;
  --accent-dark: #b30000;
  --text-main: #fff;
  --text-muted: #bdbdbd;
  --shadow: 0 4px 32px rgba(0,0,0,0.25);
  --radius: 18px;
  --transition: 0.3s cubic-bezier(.4,0,.2,1);
}

/* ===== Reset & Base ===== */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}
body {
  background: var(--main-bg);
  color: var(--text-main);
  font-family: 'Orbitron', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1 0 auto;
}

/* ===== Header! ===== */
header {
  background: var(--card-bg);
  padding: 12px 0;
  text-align: center;
  border-radius: 0 0 var(--radius) var(--radius);
  margin-bottom: 32px;
  animation: fadeInDown 1s;
}

.logo {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 8px;
  display: inline-block;
  animation: logoGlow 2s infinite alternate;
}

@keyframes logoGlow {
  0% { text-shadow: 0 2px 24px var(--accent-dark), 0 1px 0 #fff; }
  100% { text-shadow: 0 2px 48px var(--accent), 0 1px 0 #fff; }
}

.subtitle {
  font-size: 1.3rem;
  color: var(--text-muted);
  margin-bottom: 0;
  letter-spacing: 1px;
}

.main-buttons {
  margin: 32px 0 24px 0;
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.btn {
  background: transparent;
  color: var(--accent); 
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 10px 22px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none; 
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  position: relative;
  overflow: hidden;
  outline: none;
  text-decoration: none;
  background-clip: padding-box;
}


.btn:hover, .btn:focus {
  background: var(--accent); 
  color: #fff; 
  transform: translateY(-4px) scale(1.04) rotate(-1deg);
}

.btn::after {
  content: '';
  position: absolute;
  left: -50%;
  top: 0;
  width: 200%;
  height: 100%;
  background: linear-gradient(120deg, transparent 60%, rgba(255,255,255,0.2) 100%);
  transition: opacity var(--transition);
  opacity: 0;
  pointer-events: none;
}

.btn:hover::after {
  opacity: 1;
  animation: shine 0.8s;
}

@keyframes shine {
  0% { left: -50%; }
  100% { left: 100%; }
}

.stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin: 32px 0;
  flex-wrap: wrap;
}

.stat-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 32px 40px;
  min-width: 180px;
  text-align: center;
  animation: fadeInUp 1s;
  margin: 8px 0;
}

.stat-value {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 8px;
}

.stat-label {
  color: var(--text-muted);
  font-size: 1.1rem;
  letter-spacing: 1px;
}

.section-title {
  font-size: 2rem;
  color: var(--accent);
  margin: 48px 0 24px 0;
  text-align: center;
  letter-spacing: 2px;
  text-shadow: 0 2px 16px var(--accent-dark);
  animation: fadeInDown 1s;
}

.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  margin-bottom: 48px;
}

.feature-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 32px 28px;
  min-width: 220px;
  max-width: 320px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
  animation: fadeInUp 1s;
}

.feature-card:hover {
  transform: translateY(-8px) scale(1.03);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 12px;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0);}
  50% { transform: translateY(-8px);}
}

.feature-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent-light);
  margin-bottom: 8px;
}

.feature-desc {
  color: var(--text-muted);
  font-size: 1rem;
}

footer {
  background: var(--card-bg);
  color: var(--text-muted);
  text-align: center;
  padding: 24px 0;
  border-radius: var(--radius) var(--radius) 0 0;
  margin-top: 48px;
  font-size: 1rem;
  letter-spacing: 1px;
  animation: fadeInUp 1s;
  flex-shrink: 0;
}

/* Favicon always round in browser UI */
.link-favicon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: middle;
  margin-right: 10px;
  animation: faviconPulse 2s infinite alternate;
}

/* Animations */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-32px);}
  to { opacity: 1; transform: translateY(0);}
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(32px);}
  to { opacity: 1; transform: translateY(0);}
}

.site-logo {
  border: 3px solid #ff2d2d;
  margin-right: 18px;
  background: #fff;
  transition: transform 0.5s cubic-bezier(.4,0,.2,1), box-shadow 0.5s;
  animation: logoSpin 4s linear infinite;
}
@keyframes logoSpin {
  0% { transform: rotate(0deg) scale(1);}
  90% { transform: rotate(360deg) scale(1.08);}
  100% { transform: rotate(360deg) scale(1);}
}
.site-logo:hover {
  transform: scale(1.15) rotate(-8deg);
}

.discord-float {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 999;
  background: #23232a;
  border-radius: 50%;
  box-shadow: 0 4px 24px #0006, 0 0 0 4px #5865f244;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.2s, transform 0.2s;
  animation: discordPop 1.2s cubic-bezier(.4,0,.2,1);
}
.discord-float img {
  width: 36px;
  height: 36px;
  display: block;
  filter: drop-shadow(0 2px 8px #5865f2aa);
  transition: transform 0.2s;
}
.discord-float:hover {
  box-shadow: 0 8px 32px #5865f2cc, 0 0 0 8px #5865f244;
  transform: scale(1.08) rotate(-6deg);
}
.discord-float:hover img {
  transform: scale(1.15) rotate(8deg);
}
@keyframes discordPop {
  0% { transform: scale(0.5) translateY(60px); opacity: 0;}
  80% { transform: scale(1.1) translateY(-8px);}
  100% { transform: scale(1) translateY(0); opacity: 1;}
}

.topgg-float {
  position: fixed;
  right: 28px;
  bottom: 120px;
  z-index: 999;
  background: #23232a;
  border-radius: 50%;
  box-shadow: 0 4px 24px #0006, 0 0 0 4px #1867cd44;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.2s, transform 0.2s;
  animation: discordPop 1.2s cubic-bezier(.4,0,.2,1);
}
.topgg-float img {
  width: 36px;
  height: 36px;
  display: block;
  filter: drop-shadow(0 2px 8px #1922d2aa);
  transition: transform 0.2s;
}
.topgg-float:hover {
  box-shadow: 0 8px 32px #0f38cccc, 0 0 0 8px #4b33ff44;
  transform: scale(1.08) rotate(-6deg);
}
.topgg-float:hover img {
  transform: scale(1.15) rotate(8deg);
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 45vh;
  text-align: center;
  margin-bottom: 32px;
}

#splash-cover {
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(20,20,25,0.98);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s;
}
.splash-content {
  text-align: center;
  background: #23232a;
  padding: 48px 32px;
  border-radius: 24px;
  box-shadow: 0 8px 48px #000a;
  animation: fadeInUp 1s;
}
#splash-btn {
  margin-top: 24px;
  padding: 16px 38px;
  font-size: 1.3rem;
  font-weight: bold;
  border-radius: 12px;
  border: none;
  background: linear-gradient(90deg, #c8c3c3, #d3cece);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
#splash-btn:hover {
  background: linear-gradient(90deg, #ff5e62, #ff2d2d);
  transform: scale(1.07);
}

.lang-switch {
  position: absolute;
  top: 36px;
  right: 120px;
  z-index: 20;
}
.lang-btn {
  background: var(--card-bg, #23232a);
  border: 2px solid var(--accent, #ff2d2d);
  border-radius: 12px;
  padding: 6px 14px 6px 8px;
  color: var(--accent-light, #fff);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 2px 12px #ff2d2d33;
  transition: background 0.2s, border 0.2s, box-shadow 0.2s;
}
.lang-btn:hover {
  background: var(--accent, #ff2d2d);
  color: #fff;
  border-color: #fff;
  box-shadow: 0 4px 24px #ff2d2d55;
}
.flag {
  width: 24px;
  height: 18px;
  border-radius: 4px;
  box-shadow: 0 1px 6px #0002;
  margin-right: 4px;
}
@media (max-width: 900px) {
  .lang-switch {
    position: static;
    margin: 12px auto 0 auto;
    display: flex;
    justify-content: center;
  }
}

.cursor-picker {
  position: fixed;
  top: 32px;
  right: 32px;
  z-index: 2000;
}
.cursor-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #ff2d2d 60%, #ff5e62 100%);
  box-shadow: 0 2px 16px #ff2d2d44;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
  outline: none;
}
.cursor-btn:hover {
  box-shadow: 0 4px 32px #ff2d2d88;
  transform: scale(1.07);
}
.cursor-menu {
  display: none;
  position: absolute;
  top: 62px;
  right: 0;
  background: #23232a;
  border-radius: 18px;
  box-shadow: 0 8px 32px #000a;
  padding: 12px 10px;
  min-width: 210px;
  flex-direction: row;
  gap: 8px;
  z-index: 2100;
}
.cursor-picker.open .cursor-menu {
  display: flex;
}
.cursor-choice {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid #ff2d2d;
  background: #18181c;
  color: #ff2d2d;
  font-size: 1.4rem;
  margin: 0 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border 0.2s, background 0.2s, color 0.2s, transform 0.15s;
}
.cursor-choice.selected,
.cursor-choice:hover {
  border: 2.5px solid #fff;
  background: #ff2d2d;
  color: #fff;
  transform: scale(1.18);
}
@media (max-width: 900px) {
  .cursor-picker { display: none; }
}
.custom-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 36px; height: 36px;
  pointer-events: none;
  z-index: 3000;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  color: #ff2d2d;
  text-shadow: 0 0 12px #ff2d2d88, 0 2px 8px #fff8;
  user-select: none;
  line-height: 1;
  display: none;
}
body.cursor-active .custom-cursor {
  display: block;
}

.dev-tech-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 32px 0 0 0;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--accent-light, #fff);
  letter-spacing: 0.01em;
}
.dev-tech-title {
  margin-right: 10px;
  color: var(--text-muted, #bbb);
  font-size: 1.01rem;
  font-weight: 500;
}
.dev-tech-icons {
  display: flex;
  gap: 14px;
}
.dev-tech-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #23232a;
  box-shadow: 0 2px 12px #0003;
  padding: 6px;
  transition: transform 0.18s, box-shadow 0.18s;
  border: 2px solid #ff2d2d22;
}
.dev-tech-icon.js { background: #fffbe6; }
.dev-tech-icon.node { background: #e6fff0; }
.dev-tech-icon.sqlite { background: #e6f6ff; }
.dev-tech-icon:hover {
  transform: scale(1.13) rotate(-8deg);
  box-shadow: 0 4px 24px #ff2d2d44;
  border-color: #ff2d2d;
}

.wiki-section {
  max-width: 980px;
  margin: 40px auto;
  padding: 22px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(10,10,12,0.85), #111114e6); 
  border: 2px solid rgba(255,45,45,0.95); 
  color: #a7a2a2;
  box-sizing: border-box;
}

.wiki-header {
  text-align: center;
  margin-bottom: 14px;
}
.wiki-title {
  font-size: 1.8rem;
  margin: 0 0 6px 0;
  font-weight: 800;
  color: #fff;
}
.wiki-sub {
  margin: 0;
  color: rgba(245, 241, 241, 0.85);
  font-size: 0.98rem;
}

.wiki-body {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* controls */
.wiki-controls {
  min-width: 220px;
  flex: 0 0 220px;
}
.wiki-select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,45,45,0.06);
  border: 1.5px solid rgba(255,45,45,0.9);
  color: #2cc4bc;
  font-weight: 700;
  outline: none;
  appearance: none;
  cursor: pointer;
}

/* card */
.wiki-card {
  flex: 1 1 660px;
  background: rgba(255,45,45,0.04); /* light red transparent */
  border-radius: 14px;
  padding: 18px;
  border: 1px solid rgba(255,45,45,0.12);
  box-sizing: border-box;
}
.wiki-card-title {
  margin: 0 0 10px 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: #e9e5e5ec;
}
.wiki-card-content {
  color: #f1eded;
  line-height: 1.6;
  font-size: 1rem;
}
.wiki-card-content ul {
  margin: 8px 0 0 18px;
  padding: 0;
}
.wiki-card-content li {
  margin-bottom: 8px;
}

/* small helpers */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden; clip: rect(1px,1px,1px,1px);
  white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.wiki-footer {
  margin-top: 12px;
  text-align: right;
}
.wiki-link {
  color: #ff2d2d;
  text-decoration: underline;
  font-weight: 700;
}

/* responsive */
@media (max-width: 860px) {
  .wiki-body { flex-direction: column; }
  .wiki-controls { width: 100%; flex-basis: auto; }
  .wiki-card { width: 100%; }
}

/* EO‑bot Actuality (matching Wiki style: subtle dark bg, red border, white text) */
.actuality-section {
  max-width: 980px;
  margin: 36px auto;
  padding: 22px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(10,10,12,0.85), rgba(17,17,20,0.9));
  border: 2px solid rgba(255,45,45,0.95);
  color: #fff;
  box-sizing: border-box;
}

.actuality-header {
  text-align: center;
  margin-bottom: 14px;
}
.actuality-title {
  font-size: 1.8rem;
  margin: 0 0 6px 0;
  font-weight: 800;
  color: #fff;
}
.actuality-sub {
  margin: 0;
  color: rgba(255,255,255,0.85);
  font-size: 0.98rem;
}

/* grid */
.actuality-body { margin-top: 12px; }
.actuality-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

/* card */
.actuality-card {
  background: rgba(255,45,45,0.04); /* light red transparent */
  border-radius: 12px;
  padding: 14px;
  border: 1px solid rgba(255,45,45,0.12);
  box-sizing: border-box;
  transition: transform 0.12s ease, background 0.12s ease;
}
.actuality-card:hover {
  transform: translateY(-6px);
  background: rgba(255,45,45,0.06);
}
.actuality-card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.actuality-card-title {
  font-size: 1.02rem;
  font-weight: 800;
  margin: 0;
  color: #fff;
}
.actuality-card-date {
  font-size: 0.86rem;
  color: rgba(255,255,255,0.7);
}

/* body text */
.actuality-card-body {
  color: rgba(255,255,255,0.95);
  line-height: 1.5;
  font-size: 0.98rem;
}

/* responsive */
@media (max-width: 860px) {
  .actuality-grid { grid-template-columns: 1fr; }
}

