/* ============================================
   NAZORTEX — Intelligence in Motion
   Cinematic single-page experience
   ============================================ */

:root {
  --bg: #060a14;
  --bg-elevated: #0c1220;
  --bg-card: rgba(14, 22, 40, 0.7);
  --border: rgba(0, 180, 255, 0.12);
  --border-strong: rgba(0, 180, 255, 0.25);
  --text: #e8f1ff;
  --text-muted: #8ba3c7;
  --accent: #00b4ff;
  --accent-2: #3b82f6;
  --accent-soft: rgba(0, 180, 255, 0.15);
  --gradient: linear-gradient(135deg, #00b4ff 0%, #3b82f6 50%, #8b5cf6 100%);
  --glow: 0 0 40px rgba(0, 180, 255, 0.25);
  --font: 'Inter', system-ui, sans-serif;
  --font-display: 'Orbitron', sans-serif;
  --radius: 16px;
  --nav-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

.container {
  width: min(1200px, 92vw);
  margin-inline: auto;
}

/* ---------- Cursor glow ---------- */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 180, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  opacity: 0;
  mix-blend-mode: screen;
}
body:hover .cursor-glow { opacity: 1; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background 0.4s var(--ease), backdrop-filter 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(6, 10, 20, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom-color: var(--border);
}
.nav-inner {
  width: min(1200px, 92vw);
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(0, 180, 255, 0.25));
}
.nav-links {
  display: flex;
  gap: 2rem;
}
.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.25s;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { width: 100%; }

.nav-cta {
  padding: 0.6rem 1.4rem;
  background: var(--gradient);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 999px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(6, 10, 20, 0.97);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: 0.4s var(--ease);
}
.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}
.mobile-link {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.25s;
}
.mobile-link:hover { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.8rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, background 0.3s;
}
.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 24px rgba(0, 180, 255, 0.3);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0, 180, 255, 0.45);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.btn-full { width: 100%; justify-content: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 2rem) 1.5rem 4rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 180, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 180, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black, transparent);
}
.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.4;
  animation: float linear infinite;
}
@keyframes float {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.4; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: orbPulse 8s ease-in-out infinite alternate;
}
.hero-orb-1 {
  width: 500px; height: 500px;
  background: #00b4ff;
  top: 10%; left: 15%;
  animation-delay: 0s;
}
.hero-orb-2 {
  width: 400px; height: 400px;
  background: #3b82f6;
  bottom: 15%; right: 10%;
  animation-delay: -3s;
}
.hero-orb-3 {
  width: 300px; height: 300px;
  background: #8b5cf6;
  top: 40%; right: 30%;
  animation-delay: -5s;
}
@keyframes orbPulse {
  0% { transform: scale(1) translate(0, 0); opacity: 0.25; }
  100% { transform: scale(1.15) translate(20px, -15px); opacity: 0.4; }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
}
.hero-logo-wrap {
  margin-bottom: 1.5rem;
}
.hero-logo {
  height: 160px;
  width: auto;
  max-width: 90%;
  margin-inline: auto;
  filter: drop-shadow(0 0 35px rgba(0, 180, 255, 0.45));
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.8rem, 7vw, 4.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}
.hero-title .line { display: block; }
.hero-title .accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 540px;
  margin-inline: auto 1.5rem;
  margin-bottom: 2.5rem;
  font-weight: 400;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3.5rem;
}
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.stat {
  text-align: center;
}
.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--accent);
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  z-index: 2;
  animation: bounce 2.5s infinite;
}
.mouse {
  width: 22px;
  height: 34px;
  border: 2px solid var(--border-strong);
  border-radius: 12px;
  position: relative;
}
.wheel {
  width: 3px;
  height: 6px;
  background: var(--accent);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 1.8s infinite;
}
@keyframes scrollWheel {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(10px); }
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Sections common ---------- */
section {
  padding: 7rem 0;
  position: relative;
}
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--accent-soft);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-desc {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 520px;
  margin-inline: auto;
}

/* ---------- About ---------- */
.about {
  background: linear-gradient(180deg, var(--bg) 0%, #080e1c 100%);
}
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}
.about-text p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}
.about-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.75rem;
}
.pill {
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: border-color 0.25s, color 0.25s;
}
.pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.about-visual {
  display: flex;
  justify-content: center;
}
.visual-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 3rem;
  text-align: center;
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.visual-brain {
  position: relative;
  width: 180px;
  height: 180px;
  margin-inline: auto 1.5rem;
}
.brain-core {
  position: absolute;
  inset: 30%;
  background: var(--gradient);
  border-radius: 50%;
  box-shadow: 0 0 40px rgba(0, 180, 255, 0.5);
  animation: corePulse 3s ease-in-out infinite;
}
@keyframes corePulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.1); opacity: 1; }
}
.brain-ring {
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  opacity: 0.3;
}
.ring-1 { animation: ringSpin 12s linear infinite; }
.ring-2 {
  inset: 12%;
  border-color: #3b82f6;
  animation: ringSpin 9s linear infinite reverse;
}
.ring-3 {
  inset: 24%;
  border-color: #8b5cf6;
  animation: ringSpin 15s linear infinite;
}
@keyframes ringSpin {
  to { transform: rotate(360deg); }
}
.visual-caption {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ---------- Services ---------- */
.services {
  background: #080e1c;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.service-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color 0.35s, transform 0.35s var(--ease), box-shadow 0.35s;
  overflow: hidden;
  backdrop-filter: blur(8px);
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.35s;
}
.service-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 100, 200, 0.15);
}
.service-card:hover::before { opacity: 1; }
.service-card-wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: start;
}
.service-number {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  opacity: 0.7;
  margin-bottom: 1rem;
}
.service-icon {
  width: 48px;
  height: 48px;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.service-icon svg { width: 100%; height: 100%; }
.service-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}
.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}
.service-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.service-features li {
  font-size: 0.78rem;
  padding: 0.3rem 0.7rem;
  background: rgba(0, 180, 255, 0.08);
  border-radius: 6px;
  color: var(--accent);
  border: 1px solid rgba(0, 180, 255, 0.15);
}

/* ---------- Why ---------- */
.why {
  background: linear-gradient(180deg, #080e1c 0%, var(--bg) 100%);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color 0.3s, transform 0.3s var(--ease);
  backdrop-filter: blur(8px);
}
.why-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
}
.why-card-wide {
  grid-column: span 2;
}
.why-icon {
  width: 40px;
  height: 40px;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.why-icon svg { width: 100%; height: 100%; }
.why-card h4 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.why-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---------- Contact ---------- */
.contact {
  padding-bottom: 5rem;
}
.contact-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}
.contact-content {
  padding: 3rem;
}
.contact-desc {
  color: var(--text-muted);
  margin: 1.25rem 0 2rem;
  max-width: 420px;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-group label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}
.form-group input,
.form-group textarea {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.25s, box-shadow 0.25s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 180, 255, 0.15);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

.contact-visual {
  position: relative;
  background: linear-gradient(160deg, #0a1628 0%, #060a14 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  overflow: hidden;
}
.contact-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 180, 255, 0.2) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: glowPulse 4s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}
.contact-logo {
  height: 130px;
  width: auto;
  max-width: 85%;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 25px rgba(0, 180, 255, 0.5));
  margin-bottom: 1rem;
}
.contact-tagline {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- Footer ---------- */
.footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border);
  background: #050810;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-logo {
  height: 44px;
  width: auto;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 0 8px rgba(0, 180, 255, 0.2));
}
.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-links {
  display: flex;
  gap: 1.75rem;
}
.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.25s;
}
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer-tag {
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--accent);
  opacity: 0.7;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .service-card-wide {
    grid-template-columns: 1fr;
  }
  .why-grid {
    grid-template-columns: 1fr 1fr;
  }
  .why-card-wide { grid-column: span 2; }
  .contact-card {
    grid-template-columns: 1fr;
  }
  .contact-visual {
    min-height: 220px;
    order: -1;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .hero-logo { height: 110px; }
  .hero-stats { gap: 1.25rem; }
  .stat-divider { display: none; }
  .why-grid { grid-template-columns: 1fr; }
  .why-card-wide { grid-column: span 1; }
  .contact-content { padding: 2rem 1.5rem; }
  section { padding: 5rem 0; }
}

/* Smooth reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
