/* =============================================================
   ROOT VARIABLES - safe for Neocities
============================================================= */
:root {
  --primary: #7f5aff;
  --primary-dark: #5c3dbb;
  --accent: #4affff;
  --bg: #0a0a0f;
  --content-bg: #11131a;
  --text: #f0f0f5;
  --text-muted: #888;
  --link: #7f5aff;
  --link-hover: #5c3dbb;
  --border: rgba(255,255,255,0.08);

  --font-primary: 'Space Grotesk', sans-serif;
  --font-header: 'Audiowide', sans-serif;

  --radius: 8px;
  --transition: 0.2s ease;
}

/* =============================================================
   RESET / GLOBAL
============================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-primary, sans-serif);
  font-size: 16px;
  background-color: var(--bg, #0a0a0f);
  color: var(--text, #f0f0f5);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--link, #7f5aff);
  text-decoration: none;
  transition: color var(--transition, 0.2s ease);
}

a:hover {
  color: var(--link-hover, #5c3dbb);
}

img {
  max-width: 100%;
  display: block;
}

/* =============================================================
   NAVBAR
============================================================= */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--content-bg, #11131a);
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border, rgba(255,255,255,0.08));
  font-family: var(--font-header, sans-serif);
  position: relative;
}

.navbar .brand {
  font-family: var(--font-header, sans-serif);
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--text, #f0f0f5);
}

.navbar .nav-items {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.navbar .nav-items a {
  padding: 0.5rem 1rem;
  color: var(--text, #f0f0f5);
}

.navbar .nav-items a:hover {
  color: var(--accent, #4affff);
}

/* =============================================================
   DROPDOWN
============================================================= */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--content-bg, #11131a);
  border-radius: var(--radius, 8px);
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  margin-top: 0.5rem;
  min-width: 150px;
  z-index: 100;
}

.dropdown-menu.show {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text, #f0f0f5);
}

.dropdown-menu a:hover {
  background-color: var(--accent, #4affff);
  color: var(--bg, #0a0a0f);
}

/* =============================================================
   CARDS
============================================================= */
.card, .sypher-card {
  background-color: var(--content-bg, #11131a);
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  border-radius: var(--radius, 8px);
  padding: 1rem;
  transition: var(--transition, 0.2s ease);
  box-shadow: 0 0 10px var(--primary, #7f5aff);
}

.card:hover, .sypher-card:hover {
  border-color: var(--border, rgba(255,255,255,0.08));
}

/* =============================================================
   BUTTONS
============================================================= */
.btn {
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius, 8px);
  border: 1px solid var(--primary, #7f5aff);
  background-color: var(--primary, #7f5aff);
  color: var(--text, #f0f0f5);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition, 0.2s ease);
}

.btn:hover {
  background-color: var(--primary-dark, #5c3dbb);
  border-color: var(--primary-dark, #5c3dbb);
}

/* =============================================================
   HERO IMAGE
============================================================= */
.hero {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  text-align: center;
  z-index: 1;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 0;
}

/* =============================================================
   FOOTER
============================================================= */
.footer {
  background-color: var(--content-bg, #11131a);
  color: var(--text-muted, #888);
  padding: 2rem 1rem;
  text-align: center;
}

/* =============================================================
   HEADERS
============================================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-header, sans-serif);
  font-weight: 500;
  margin-bottom: 1rem;
}

div.scrollmenu {
  background-color: var(--content-bg, #11131a);
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  border-radius: var(--radius, 8px);
  padding: 1rem;
  transition: var(--transition, 0.2s ease);
  box-shadow: 0 0 10px var(--primary, #7f5aff);
  scrollbar-width: none;
  overflow: auto;
}

div.scrollmenu a {
  display: inline-block;
  color: white;
  text-align: center;
  padding: 14px;
  text-decoration: none;
}

div.scrollmenu a:hover {
  background-color: #777;
}

/* =============================================================
   UTILITIES
============================================================= */
.text-primary { color: var(--primary, #7f5aff); }
.text-accent { color: var(--accent, #4affff); }
.bg-primary { background-color: var(--primary, #7f5aff); }
.bg-accent { background-color: var(--accent, #4affff); }
.text-muted { color: var(--text-muted, #888); }
.center { display: flex; justify-content: center; align-items: center; }
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none !important; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
