/* ============================================================
   shared.css  —  Nerix Technology
   Design tokens, reset, nav, footer, and common utilities.
   All pages include this file; page-specific styles stay
   in each HTML file (or a small <style> block).
   ============================================================ */

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  --bg-dark:    #0b0e14;
  --bg-card:    #111520;
  --bg-nav:     #0d1018ee;
  --accent:     #00c8ff;
  --accent2:    #0076ff;
  --text-main:  #e8edf5;
  --text-muted: #8a96aa;
  --border:     rgba(0, 200, 255, .15);
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  10px;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg-dark);
  color: var(--text-main);
  font-family: 'Exo 2', sans-serif;
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Subtle radial glow in top-right corner */
body::before {
  content: '';
  position: fixed;
  top: -200px; right: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(0, 100, 255, .07), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── Google Fonts hint (pages should keep their own <link>) ── */

/* ── Navigation ─────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 60px;
  padding: 0 40px;
  background: var(--bg-nav);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-text span:first-child {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 2px;
  color: var(--text-main);
}

.logo-text span:last-child {
  font-family: 'Exo 2', sans-serif;
  font-weight: 400;
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
}

/* Nav links */
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-family: 'Exo 2', sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .5px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color .2s;
}

.nav-links a:hover { color: var(--text-main); }
.nav-links a.active { color: var(--accent); }

/* Contact button */
.btn-contact {
  background: linear-gradient(90deg, var(--accent2), var(--accent));
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 20px;
  font-family: 'Exo 2', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .5px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: opacity .2s;
}

.btn-contact:hover { opacity: .85; }
.btn-contact.active { box-shadow: 0 0 12px rgba(0, 200, 255, .3); }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-nav);
  border-top: 1px solid var(--border);
  margin-top: 60px;
  padding: 48px 40px 24px;
  font-family: 'Exo 2', sans-serif;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}

.footer-brand { max-width: 280px; }
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand .logo-img { height: 90px; }

.footer-tagline {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-cols {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-main);
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-col a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color .2s;
}

.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  max-width: 1100px;
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  align-items: center;
}

.footer-copyright,
.footer-meta {
  font-size: 12px;
  color: var(--text-muted);
}

/* ── Common page wrapper ────────────────────────────────────── */
/* Most inner pages use .page-main as a centered content wrapper */
.page-main {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 60px auto 0;
  padding: 0 40px;
}

.page-main h1 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 38px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.page-main .subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.6;
}

/* ── Icon box (shared by cards across pages) ────────────────── */
.icon-box {
  width: 52px; height: 52px;
  background: rgba(0, 118, 255, .1);
  border: 1px solid rgba(0, 200, 255, .25);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-box svg {
  width: 26px; height: 26px;
  stroke: var(--accent);
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Round variant used on About page */
.icon-box--round {
  border-radius: 50%;
  width: 56px; height: 56px;
}

.icon-box--round svg { width: 28px; height: 28px; }

/* Small variant (44–46 px) */
.icon-box--sm {
  width: 46px; height: 46px;
}

.icon-box--sm svg { width: 22px; height: 22px; }

/* ── Card base ──────────────────────────────────────────────── */
.card-base {
  background: rgba(15, 20, 32, .85);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color .3s, transform .28s;
}

.card-base:hover {
  border-color: rgba(0, 200, 255, .4);
  transform: translateY(-4px);
}

/* ── Gradient button (CTA / send) ───────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(90deg, var(--accent2), var(--accent));
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 11px 24px;
  font-family: 'Exo 2', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .5px;
  cursor: pointer;
  text-decoration: none;
  transition: opacity .2s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(0, 200, 255, .25);
}

.btn-primary:hover {
  opacity: .88;
  box-shadow: 0 6px 28px rgba(0, 200, 255, .4);
}

.btn-primary--full {
  width: 100%;
  justify-content: center;
  border-radius: var(--radius-md);
  padding: 12px;
  font-size: 14px;
}

/* ── Fade-up animation ──────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Utility classes for staggered animation */
.anim-0  { animation: fadeUp .6s ease both; }
.anim-1  { animation: fadeUp .6s ease .10s both; }
.anim-2  { animation: fadeUp .6s ease .20s both; }
.anim-3  { animation: fadeUp .6s ease .30s both; }
.anim-4  { animation: fadeUp .6s ease .40s both; }
.anim-5  { animation: fadeUp .6s ease .50s both; }
.anim-6  { animation: fadeUp .6s ease .60s both; }
.anim-7  { animation: fadeUp .6s ease .70s both; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 640px) {
  nav { padding: 0 18px; }
  .page-main { padding: 0 20px; margin-top: 40px; }
  .site-footer { padding: 36px 20px 20px; }
  .footer-inner { gap: 28px; }
  .footer-cols  { gap: 32px; }
  .nav-links    { gap: 18px; }
}
