/* NavCorp v3 — Tech Startup Premium */
/* Base palette */
:root {
  --bg: #0b0e12;
  --bg-elev: #12161c;
  --fg: #e6e6e6;
  --muted: #a3a3a3;
  --card: #0f1319;
  --border: #1b2029;
  --accent: #E50914;
  --accent-2: #b20710;
  --accent-3: #ff2a3a;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--fg); font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }
img { max-width: 100%; display: block; }
a { color: var(--fg); text-decoration: none; }
.container { width: min(1200px, 92%); margin-inline: auto; }

/* ---- Header (sticky) ---- */
.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(11,14,18,0.86); backdrop-filter: blur(10px) saturate(1.2); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 0; }
.logo { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; letter-spacing: .2px; }
.logo-mark { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; padding: .25rem .5rem; border-radius: .5rem; font-weight: 900; }
.logo-type { color: #fff; font-family: 'Orbitron', 'Montserrat', system-ui; font-weight: 800; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .8px; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.2rem; }
.primary-nav a { opacity: .9; transition: opacity .2s ease, color .2s ease; padding: .35rem .25rem; border-radius: .4rem; position: relative; }
.primary-nav a:hover { opacity: 1; color: var(--accent); }
.primary-nav a.active { color: var(--accent); }
.primary-nav a::after { content: ""; position: absolute; left: 8%; right: 8%; bottom: -6px; height: 3px; background: linear-gradient(90deg, transparent, var(--accent), transparent); transform: scaleX(0); transform-origin: center; transition: transform .25s ease; }
.primary-nav a:hover::after, .primary-nav a.active::after { transform: scaleX(1); }
.nav-toggle { display: none; background: none; border: none; padding: .4rem; }
.nav-toggle .bar { display: block; width: 24px; height: 2px; background: var(--fg); margin: 5px 0; }

@media (max-width: 900px) {
  .primary-nav { position: absolute; inset: 64px 0 auto 0; background: var(--bg-elev); border-bottom: 1px solid var(--border); display: none; }
  .primary-nav.open { display: block; }
  .primary-nav ul { flex-direction: column; padding: .75rem 1rem 1rem; }
  .nav-toggle { display: inline-block; }
}

/* ---- Sections ---- */
.section { padding: clamp(64px, 8vw, 96px) 0; position: relative; }
.section .eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: 2px; font-weight: 800; font-size: .8rem; }
.section h1, .section h2 { line-height: 1.1; margin: .35em 0 .4em; font-family: 'Orbitron', 'Montserrat', system-ui; }

/* Hero with animated gradient overlay */
.hero { position: relative; min-height: 72vh; display: grid; place-items: center; text-align: center; overflow: clip; }
.hero .inner { max-width: 900px; }
.hero .kicker { color: var(--accent); font-weight: 800; text-transform: uppercase; letter-spacing: 2px; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); margin: .35em 0 .2em; }
.hero p { color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.15rem); }
.hero .actions { margin-top: 1.4rem; display:flex; gap: .8rem; justify-content:center; flex-wrap:wrap; }
.hero::before { content: ""; position: absolute; inset: -20% -10% -10% -20%; background: radial-gradient(60% 50% at 20% 10%, rgba(229,9,20,.18), transparent 60%), radial-gradient(50% 45% at 80% 20%, rgba(178,7,16,.14), transparent 60%), radial-gradient(40% 35% at 50% 80%, rgba(255,42,58,.10), transparent 65%); filter: blur(30px) saturate(1.1); animation: heroFloat 18s ease-in-out infinite alternate; z-index: -1; }

@keyframes heroFloat {
  0% { transform: translate3d(0,0,0) scale(1); opacity: .9; }
  100% { transform: translate3d(-12px,-10px,0) scale(1.05); opacity: 1; }
}

/* Global tech circuit background (from earlier v2) */
body::before, body::after { content: ""; position: fixed; inset: 0; pointer-events: none; }
body::before { z-index: 0; background: radial-gradient(1200px 800px at 70% 10%, rgba(229,9,20,.08), transparent 60%), radial-gradient(1000px 700px at 10% 70%, rgba(229,9,20,.05), transparent 60%); }
body::after { z-index: 0; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 400 400'><defs><linearGradient id='g' x1='0' y1='0' x2='1' y2='1'><stop offset='0%' stop-color='%23ffffff' stop-opacity='0.06'/><stop offset='100%' stop-color='%23ffffff' stop-opacity='0.02'/></linearGradient></defs><rect width='400' height='400' fill='none'/><g stroke='url(%23g)' stroke-width='2' fill='none' stroke-linecap='round'><path d='M20 40 H180 V80 H320' /><path d='M60 120 H220 V140 H360' /><path d='M40 200 H180 V220 H300' /><path d='M80 280 H240 V300 H360' /><path d='M100 60 V160 H120' /><path d='M140 140 V240 H160' /><path d='M200 60 V160 H220' /><path d='M260 140 V240 H280' /></g><g fill='%23ffffff' fill-opacity='0.08' stroke='none'><circle cx='180' cy='80' r='4'/><circle cx='220' cy='140' r='4'/><circle cx='180' cy='200' r='4'/><circle cx='240' cy='280' r='4'/><circle cx='100' cy='160' r='4'/><circle cx='140' cy='240' r='4'/><circle cx='200' cy='160' r='4'/><circle cx='260' cy='240' r='4'/></g></svg>"); background-repeat: repeat; background-size: 400px 400px; opacity: .36; animation: bgPulse 14s ease-in-out infinite alternate; transform: translate3d(0, var(--parallax-y, 0), 0); }

@keyframes bgPulse {
  0% { opacity: .28; transform: translate3d(0, var(--parallax-y, 0), 0) scale(1); }
  100% { opacity: .44; transform: translate3d(-10px, calc(var(--parallax-y, 0) - 6px), 0) scale(1.02); }
}

/* Feature grid */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }

.card { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: 1rem; padding: 1.2rem; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card h3 { margin-top: .2rem; font-family: 'Orbitron', 'Montserrat', system-ui; }
.card p { color: var(--muted); }
.card:hover { transform: translateY(-3px); border-color: rgba(229,9,20,.35); box-shadow: 0 14px 40px rgba(0,0,0,.45); }
.card::before { content: ""; position: absolute; left: 6%; right: 6%; bottom: -6px; height: 12px; background: radial-gradient(60% 100% at 50% 50%, rgba(229,9,20,.22), transparent 70%); filter: blur(10px); z-index: -1; opacity: 0; transition: opacity .25s ease; }
.card:hover::before { opacity: .9; }

/* Testimonials */
.testimonials { background: linear-gradient(180deg, #0d1117, #0a0d11); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.quote { font-size: 1.1rem; color: var(--fg); }
.cite { color: var(--muted); font-style: normal; }

/* ==== FUTURISTIC COMPACT FOOTER ==== */
.navcorp-footer {
  background: linear-gradient(180deg, #0b0e12 0%, #080a0c 100%);
  border-top: 1px solid var(--border);
  color: var(--fg);
  padding: 2.2rem 1rem 1rem;
  position: relative;
  overflow: hidden;
}

/* faint animated circuit glow */
.navcorp-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% -20%, rgba(229,9,20,0.12), transparent 70%);
  opacity: 0.45;
  pointer-events: none;
  animation: footerGlow 8s ease-in-out infinite alternate;
}
@keyframes footerGlow {
  0% { opacity: 0.35; }
  100% { opacity: 0.55; }
}

/* main grid layout */
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

/* left: logo + tagline */
.footer-left {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.footer-logo {
  width: 110px;
  height: auto;
  filter: drop-shadow(0 0 8px rgba(229,9,20,0.5));
  transition: filter .3s ease, transform .3s ease;
}
.footer-logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 15px rgba(229,9,20,0.8));
}

.footer-tagline {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 480px;
}

/* right: contact info */
.footer-right {
  text-align: right;
}
.footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-contact li {
  margin: 0.25rem 0;
  color: var(--fg);
  font-size: 0.9rem;
}
.footer-contact strong {
  color: #fff;
  font-weight: 700;
}
.footer-contact a {
  color: var(--muted);
  transition: color 0.25s ease;
}
.footer-contact a:hover {
  color: var(--accent);
}

/* divider line */
.footer-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(229,9,20,0.55), transparent);
  margin: 1.2rem auto;
  opacity: 0.8;
}

/* bottom copyright */
.footer-bottom {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.3px;
}

/* responsive layout */
@media (max-width: 900px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .footer-left {
    flex-direction: column;
  }
  .footer-right {
    text-align: center;
  }
  .footer-tagline {
    margin-bottom: 1rem;
  }
}



/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; border-radius: .75rem; padding: .8rem 1.1rem; font-weight: 700; border: 1px solid transparent; transition: transform .15s ease, background .2s ease, border-color .2s ease; position: relative; overflow: hidden; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: white; box-shadow: var(--shadow); }
.btn-outline { background: transparent; border-color: var(--border); color: var(--fg); }
.btn.btn-primary::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.18) 30%, transparent 60%); transform: translateX(-120%); transition: transform .55s ease; }
.btn.btn-primary:hover::before { transform: translateX(120%); }

/* Reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Utilities */
.muted { color: var(--muted); }
.center { text-align: center; }
.spacer { height: 1px; width: 100%; background: var(--border); margin: 2rem 0; }

@media (max-width: 640px), (prefers-reduced-motion: reduce) {
  body::after { animation: none; opacity: .28; }
  .reveal { transition-duration: .4s; }
  .hero::before { animation: none; opacity: .9; }
}

/* Adjusted logo sizing */
.logo-img { width: 65px; height: auto; display: block; transition: filter .25s ease, transform .2s ease; }
.logo:hover .logo-img { filter: drop-shadow(0 0 8px rgba(178,7,16,.25)); transform: translateY(-1px); }
@media (max-width: 900px) { .logo-text { font-size: .9rem; letter-spacing: 0.8px; } }

/* ===== FIXED ALIGNMENT FOR TIMELINE ===== */
.services-list { display: grid; row-gap: 120px; position: relative; }
.service-row { display: grid; grid-template-columns: 1fr 40px 1fr; align-items: center; position: relative; }
/* Center glowing line */
.services-list::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: linear-gradient(to bottom, transparent, var(--accent), transparent); transform: translateX(-50%); opacity: 0.7; z-index: 0; }
/* Center dot */
.node { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); justify-self: center; box-shadow: 0 0 0 4px rgba(229,9,20,.25), 0 0 20px rgba(229,9,20,.6); z-index: 2; }
/* Odd rows */
.service-row:nth-child(odd) .service-text { grid-column: 1; text-align: right; justify-self: end; padding-right: 40px; }
.service-row:nth-child(odd) .service-visual { grid-column: 3; justify-self: start; padding-left: 40px; }
/* Even rows */
.service-row:nth-child(even) .service-text { grid-column: 3; text-align: left; justify-self: start; padding-left: 40px; }
.service-row:nth-child(even) .service-visual { grid-column: 1; justify-self: end; padding-right: 40px; }
/* Make sure dots center vertically */
.service-row .node { grid-column: 2; align-self: center; }

/* ===== FIX TO DISABLE .reveal COLLISION ===== */
.services .service-row, .services .service-row * { transition: none !important; }

/* ===== SHOOT-IN ALTERNATING ANIMATIONS ===== */
@keyframes shootFromLeft { 0% { opacity: 0; transform: translateX(-80px) scale(0.95); } 70% { opacity: 1; transform: translateX(10px) scale(1.02); } 100% { transform: translateX(0) scale(1); } }
@keyframes shootFromRight { 0% { opacity: 0; transform: translateX(80px) scale(0.95); } 70% { opacity: 1; transform: translateX(-10px) scale(1.02); } 100% { transform: translateX(0) scale(1); } }
@keyframes nodeFlash { 0% { box-shadow: 0 0 0 rgba(229,9,20,0); transform: scale(0.8); } 50% { box-shadow: 0 0 24px 8px rgba(229,9,20,1); transform: scale(1.2); } 100% { box-shadow: 0 0 20px rgba(229,9,20,.9); transform: scale(1); } }
@keyframes energyFlow { 0% { background-position: 0% 0%; } 100% { background-position: 0% 200%; } }
/* alternate directions */
.service-row.visible:nth-of-type(odd) { animation: shootFromRight 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.service-row.visible:nth-of-type(even) { animation: shootFromLeft 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
/* node flash */
.service-row.visible .node { animation: nodeFlash 0.5s ease-out 0.1s both; }
/* flow down the vertical line */
.services-list::before { animation: energyFlow 4s linear infinite; background-size: 100% 200%; }

/* Mobile fallback */
@media (max-width: 900px) {
  .service-row { grid-template-columns: 1fr; text-align: center; }
  .service-text, .service-visual { grid-column: auto !important; justify-self: center !important; text-align: center !important; padding: 0 !important; }
  .node { display: none; }
}

/* === CIRCUIT BOARD LINE === */
.circuit-line { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 100%; height: 100%; pointer-events: none; z-index: 0; filter: drop-shadow(0 0 8px rgba(229,9,20,0.4)); }
.circuit-line path { stroke-dasharray: 2500; stroke-dashoffset: 2500; animation: circuitDraw 5s ease-out forwards; }
/* glowing pulse traveling the path */
.circuit-line::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(229,9,20,0) 0%, rgba(229,9,20,0.6) 40%, rgba(229,9,20,0) 100%); background-size: 100% 200%; animation: circuitGlow 6s linear infinite; opacity: 0.4; mix-blend-mode: screen; }
/* Draw the trace */
@keyframes circuitDraw { to { stroke-dashoffset: 0; } }
/* Subtle current glow */
@keyframes circuitGlow { 0% { background-position: 0% 0%; } 100% { background-position: 0% 200%; } }

/* === Remove line arms — use glow pulses instead === */
.node::before, .node::after { content: ""; position: absolute; top: 50%; left: 50%; width: 0; height: 0; border-radius: 50%; background: radial-gradient(circle, rgba(229,9,20,0.8) 0%, transparent 70%); transform: translate(-50%, -50%); opacity: 0.8; animation: nodePulse 2.5s ease-in-out infinite; pointer-events: none; }
@keyframes nodePulse { 0% { transform: translate(-50%, -50%) scale(0.6); opacity: 0.6; } 50% { transform: translate(-50%, -50%) scale(1.4); opacity: 1; } 100% { transform: translate(-50%, -50%) scale(0.6); opacity: 0.6; } }

