/:root {
  /* Colors */
  --bg: #0B1220;
  --text: #e8edf7;
  --muted: #94a3b8;
  --accent: #f5a524;
  --border: #1e2a46;
  --panel: #0f1627;
  --radius: 12px;
  --max: 1120px;
}

/* Base Styles */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 18px; }

/* Dynamic Background */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at top left, rgba(245, 165, 36, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(15, 24, 48, 0.15) 0%, transparent 50%),
    linear-gradient(135deg, #0B1220 0%, #0F1830 50%, #0B1220 100%);
  z-index: -2;
  animation: backgroundShift 25s ease-in-out infinite;
}
@keyframes backgroundShift {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.8; }
  50% { transform: scale(1.05) rotate(1.5deg); opacity: 1; }
}
.grid-background {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: -1;
  opacity: 0.1;
  background-image:
    linear-gradient(rgba(245, 165, 36, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 165, 36, 0.2) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridMove 80s linear infinite;
}
@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}

/* Header & Navigation */
.site {
  background: linear-gradient(180deg, rgba(15, 24, 48, 0.95) 0%, rgba(11, 18, 32, 0.98) 100%);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(10px);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 18px;
}
.brand { display: flex; align-items: center; gap: 15px; }
.brand .logo { height: 60px; width: auto; }
.brand .title { font-weight: 800; font-size: 18px; }
.brand small { color: var(--muted); font-size: 12px; }
.menu { display: flex; gap: 10px; margin-left: auto; } /* Pushes actions to the right */
.menu a { color: var(--text); padding: 8px 12px; border-radius: 8px; transition: 0.2s ease; }
.menu a:hover { background: rgba(30, 42, 70, 0.5); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-search input {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(15, 22, 39, 0.8);
  color: var(--text);
  width: 150px;
  transition: 0.3s ease;
}
.header-search input:focus { width: 200px; border-color: var(--accent); }

/* Buttons */
.cta {
  background: linear-gradient(135deg, #f5a524 0%, #d4a017 100%);
  color: #0B1220;
  font-weight: 800;
  border: none;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s ease;
  text-align: center;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(245, 165, 36, 0.3); }
.btn { display: inline-block; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--border); background: rgba(15, 22, 39, 0.8); color: #fff; font-weight: 700; transition: 0.3s ease; }
.btn:hover { background: rgba(19, 32, 58, 0.9); transform: translateY(-1px); }
.btn.primary { background: linear-gradient(135deg, #f5a524 0%, #d4a017 100%); color: #0B1220; border: none; }

/* Hero Section */
.hero-section {
  position: relative;
  height: 60vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero-video {
  position: absolute;
  top: 50%; left: 50%;
  min-width: 100%; min-height: 100%;
  width: auto; height: auto;
  z-index: -2;
  transform: translateX(-50%) translateY(-50%);
}
.hero-overlay {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(11, 18, 32, 0.7);
  z-index: -1;
}
.hero-content { max-width: 700px; padding: 20px; }
.hero-content h1 { font-size: 42px; line-height: 1.2; }
.sub { color: var(--muted); font-size: 18px; max-width: 680px; margin: 10px auto 0; }
.searchbar {
  margin: 24px auto 0;
  display: flex; gap: 10px;
  max-width: 500px;
}
.searchbar input[type="search"] {
  flex: 1; padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(15, 22, 39, 0.8);
  color: var(--text);
  outline: none;
  transition: 0.3s ease;
}
.searchbar input[type="search"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(245, 165, 36, 0.2);
}

/* Main Content */
.section { padding: 40px 0; }
.section h2 { font-size: 28px; margin: 0 0 20px; text-align: center; }
.grid { display: grid; gap: 18px; }
.grid.cards { grid-template-columns: repeat(2, 1fr); } /* Changed to 2 columns */
@media (max-width: 920px) { .grid.cards { grid-template-columns: 1fr; } }
.card {
  background: rgba(15, 22, 39, 0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  transition: 0.3s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3); }
.card h3 { margin: 0 0 8px; }
.card h3 a { color: var(--text); }
.card h3 a:hover { color: var(--accent); }
.meta { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.kv { display: grid; grid-template-columns: 1fr; gap: 8px; }
.kv div { background: rgba(11, 18, 32, 0.6); padding: 8px 10px; border-radius: 8px; border: 1px solid var(--border); font-size: 14px; }
.badge { display: inline-block; padding: 4px 8px; border-radius: 999px; font-weight: 700; font-size: 12px; }
.badge.red { background: rgba(239, 68, 68, 0.12); border: 1px solid #ef4444; color: #ffe5e5; }

/* Footer */
footer {
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--border);
  margin-top: 20px;
  background: rgba(11, 18, 32, 0.8);
  padding: 20px 0;
}
.og { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.note {
  background: rgba(30, 42, 70, 0.8);
  border-left: 4px solid var(--accent);
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text);
}

