/* style.css — attractive top nav + rounded cards with subtle glass effect */

:root{
  --bg: #0b1324;
  --bg-2: #111a33;
  --card: rgba(255,255,255,0.08);
  --card-hover: rgba(255,255,255,0.12);
  --border: rgba(255,255,255,0.16);
  --text: #eef3ff;
  --muted: #b6c2e2;
  --accent: #5cc8ff;
  --accent-2: #9d7dff;
  --success: #59d38c;
  --shadow: 0 10px 30px rgba(0,0,0,0.25);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font: 16px/1.6 "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 800px at 10% 10%, #142044, var(--bg)) no-repeat,
              linear-gradient(180deg, var(--bg), var(--bg-2));
  background-attachment: fixed;
}

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  backdrop-filter: saturate(150%) blur(12px);
  background: linear-gradient(180deg, rgba(17,26,51,0.75), rgba(11,19,36,0.6));
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-right: 0.75rem;
  border-right: 1px dashed var(--border);
}
.brand-mark { font-size: 1.2rem; }
.brand-name { font-weight: 600; letter-spacing: 0.2px; color: var(--muted); }

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
}
.nav-links a {
  color: var(--text);
  text-decoration: none;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all .2s ease;
  background: rgba(255,255,255,0.05);
}
.nav-links a:hover,
.nav-links a:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(92,200,255,0.15);
  outline: none;
}

/* Content container */
.content {
  max-width: 1200px;
  margin: 1.2rem auto 3rem;
  padding: 0 1rem;
}

/* Card grid */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

/* Card */
.card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 0.35rem;
  padding: 1rem;
  text-decoration: none;
  color: inherit;
  border-radius: 16px;              /* curved corners */
  background: var(--card);          /* frosted glass */
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transform: translateZ(0);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.card:hover,
.card:focus-visible {
  background: var(--card-hover);
  border-color: rgba(92,200,255,0.45);
  box-shadow: 0 16px 40px rgba(0,0,0,0.32);
  transform: translateY(-2px);
  outline: none;
}

/* Accent bar on hover */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s ease;
  background: linear-gradient(120deg, rgba(92,200,255,.25), rgba(157,125,255,.25));
}
.card:hover::before { opacity: 1; }

/* Card content */
.card-icon {
  font-size: 1.4rem;
  opacity: 0.95;
}
.card-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: var(--text);
}
.card-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.card-cta {
  margin-top: 0.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent);
  font-weight: 600;
}

/* Responsive refinements */
@media (min-width: 1400px) {
  .cards { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 640px) {
  .brand-name { display: none; }
  .nav-links { gap: 0.4rem; }
}

/* Prefers-reduced-motion: reduce motion gracefully */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* Optional dark/light scheme */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f3f6fb;
    --bg-2: #eaf1fb;
    --card: #ffffff;
    --card-hover: #f7fbff;
    --border: #dde6f7;
    --text: #0e1a2b;
    --muted: #4f5b78;
    --accent: #0069ff;
    --accent-2: #6a44ff;
    --success: #148f5f;
    --shadow: 0 10px 24px rgba(16,46,84,0.12);
  }
  .topbar {
    background: rgba(255,255,255,0.8);
  }
  body {
    background: radial-gradient(1200px 800px at 10% 10%, #ffffff, #f3f6fb);
  }
}
