/* 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 */
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; }

/* 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; } }

/* ===== SERVICES 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; }
.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; }
.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; }
.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; }
.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; }
.service-row .node { grid-column: 2; align-self: center; }

.services .service-row, .services .service-row * { transition: none !important; }

@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%; } }

.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; }
.service-row.visible .node { animation: nodeFlash 0.5s ease-out 0.1s both; }
.services-list::before { animation: energyFlow 4s linear infinite; background-size: 100% 200%; }

@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; }
.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; }

@keyframes circuitDraw { to { stroke-dashoffset: 0; } }
@keyframes circuitGlow { 0% { background-position: 0% 0%; } 100% { background-position: 0% 200%; } }

.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; } }


/* ========== TECH FUTURISTIC FOOTER ========== */
.navcorp-footer {
  background: linear-gradient(180deg, #0a0e14 0%, #060a0f 100%);
  border-top: 1px solid rgba(229, 9, 20, 0.2);
  padding: 1.5rem 0 1rem;
  margin-top: 4rem;
  position: relative;
  overflow: hidden;
}

/* Subtle animated glow behind footer */
.navcorp-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(229, 9, 20, 0.08), transparent 70%);
  pointer-events: none;
  animation: footerPulse 6s ease-in-out infinite alternate;
}

@keyframes footerPulse {
  0% { opacity: 0.4; }
  100% { opacity: 0.7; }
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: 1.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Brand Section */
.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-logo {
  height: 60px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(229, 9, 20, 0.4));
  transition: filter 0.3s ease, transform 0.3s ease;
}

.footer-logo:hover {
  filter: drop-shadow(0 0 12px rgba(229, 9, 20, 0.7));
  transform: scale(1.03);
}

.footer-tagline {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.4;
  max-width: 200px;
}

/* Labels */
.footer-label {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

/* Service Areas */
.footer-areas {
  text-align: center;
}

.area-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
}

.area-tag {
  background: rgba(229, 9, 20, 0.08);
  border: 1px solid rgba(229, 9, 20, 0.25);
  padding: 0.25rem 0.6rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.75);
  transition: all 0.2s ease;
}

.area-tag:hover {
  background: rgba(229, 9, 20, 0.18);
  border-color: rgba(229, 9, 20, 0.5);
  color: #fff;
  box-shadow: 0 0 12px rgba(229, 9, 20, 0.3);
}

/* Contact Section */
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  text-align: right;
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.contact-link:hover {
  color: var(--accent);
  text-shadow: 0 0 8px rgba(229, 9, 20, 0.5);
}

.contact-icon {
  font-size: 0.8rem;
  opacity: 0.7;
}

/* Glowing Divider */
.footer-glow-line {
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(229, 9, 20, 0.3) 20%, 
    rgba(229, 9, 20, 0.6) 50%, 
    rgba(229, 9, 20, 0.3) 80%, 
    transparent 100%
  );
  margin: 1rem auto 0.75rem;
  max-width: 500px;
  position: relative;
  z-index: 1;
}

/* Bottom */
.footer-bottom {
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-legal {
  font-size: 0.6rem !important;
  margin-top: 0.15rem !important;
  color: rgba(229, 9, 20, 0.5) !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Responsive Footer */
@media (max-width: 768px) {
  .navcorp-footer {
    padding: 1.25rem 0 0.75rem;
  }
  
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.25rem;
  }
  
  .footer-brand {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
  
  .footer-tagline {
    max-width: 100%;
    text-align: center;
  }
  
  .footer-contact {
    text-align: center;
  }
  
  .contact-link {
    justify-content: center;
  }
}
