/* ============================================================
   NEXOVATE TECHNOLOGY — GLOBAL STYLESHEET (LIGHT THEME)
   Innovate. Automate. Elevate.
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── CSS Variables ────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg-primary:      #ffffff;
  --bg-secondary:    #f8fafc;
  --bg-tertiary:     #f1f5f9;
  --bg-card:         #ffffff;

  /* Borders */
  --border:          rgba(0, 0, 0, 0.08);
  --border-md:       rgba(0, 0, 0, 0.12);
  --border-hover:    rgba(30, 58, 138, 0.4);

  /* Accents */
  --accent-purple:         #1e3a8a;
  --accent-purple-light:   #93c5fd;
  --accent-purple-xlight:  #dbeafe;
  --accent-blue:           #3b82f6;
  --accent-blue-light:     #eff6ff;

  /* Text */
  --text-primary:    #0f172a;
  --text-secondary:  #475569;
  --text-muted:      #94a3b8;
  --text-on-navy:    #ffffff;

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg:   0 16px 48px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.05);
  --shadow-navy:   0 8px 32px rgba(30,58,138,0.18);
  --shadow-hover:  0 20px 60px rgba(30,58,138,0.15);

  /* Radii */
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  /* Misc */
  --transition:  all 0.28s ease;
  --nav-height:  72px;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; outline: none; }
h1,h2,h3,h4,h5,h6 { color: var(--text-primary); line-height: 1.2; }

/* ── Layout ──────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-pad { padding: 100px 0; }
.section-pad-sm { padding: 60px 0; }

/* ── Typography Utilities ─────────────────────────────────── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-purple);
  margin-bottom: 14px;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 20px; height: 2px;
  background: var(--accent-purple);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -1.5px;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
}

.gradient-text {
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 12px 24px;
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
}

.btn-primary {
  background: var(--accent-purple);
  color: #fff;
  box-shadow: 0 4px 16px rgba(30,58,138,0.30);
}
.btn-primary:hover {
  background: #1e40af;
  box-shadow: 0 8px 28px rgba(30,58,138,0.40);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--bg-primary);
  color: var(--text-primary);
  border: 1.5px solid var(--border-md);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  border-color: var(--accent-purple);
  color: var(--accent-purple);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-purple {
  background: transparent;
  color: var(--accent-purple);
  border: 1.5px solid var(--accent-purple);
}
.btn-outline-purple:hover {
  background: var(--accent-purple-xlight);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1.5px solid var(--border-md);
}
.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
  border-radius: var(--radius-md);
}

/* ── Badge / Pill ─────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: var(--radius-full);
  padding: 5px 14px;
}

.badge-navy {
  background: var(--accent-purple-xlight);
  color: var(--accent-purple);
  border: 1px solid rgba(30,58,138,0.2);
}

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

/* ── Icon Box ─────────────────────────────────────────────── */
.icon-box {
  width: 48px; height: 48px;
  background: var(--accent-purple-xlight);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-box svg {
  width: 24px; height: 24px;
  stroke: var(--accent-purple);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Divider ─────────────────────────────────────────────── */
.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
}

/* ── Animations ──────────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.delay-4 { transition-delay: 0.32s; }
.delay-5 { transition-delay: 0.40s; }

/* ============================================================
   NAVBAR
   ============================================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--nav-height);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

#navbar.scrolled {
  box-shadow: 0 2px 24px rgba(0,0,0,0.07);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  flex-shrink: 0;
}
.nav-logo img {
  height: 50px;
  width: auto;
  object-fit: contain;
  transform: scale(2.2);
  transform-origin: left center;
}
.nav-logo:hover { color: var(--accent-purple); }

/* Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-purple);
  background: var(--accent-purple-xlight);
}

/* CTA */
.nav-cta {
  background: var(--accent-purple);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  box-shadow: 0 2px 12px rgba(30,58,138,0.25);
}
.nav-cta:hover {
  background: #1e40af;
  box-shadow: 0 4px 20px rgba(30,58,138,0.40);
  transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}
.hamburger:hover { background: var(--bg-secondary); }
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height); left: 0; right: 0;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
  flex-direction: column;
  gap: 4px;
  z-index: 890;
  box-shadow: var(--shadow-md);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.mobile-menu a:hover, .mobile-menu a.active {
  color: var(--accent-purple);
  background: var(--accent-purple-xlight);
}
.mobile-menu .nav-cta {
  margin-top: 8px;
  text-align: center;
  border-radius: var(--radius-sm);
}

/* ============================================================
   PAGE HERO (INNER PAGES)
   ============================================================ */
.page-hero {
  padding: 140px 0 80px;
  background: linear-gradient(160deg, #f0f7ff 0%, #eff6ff 50%, #f8fafc 100%);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(30,58,138,0.08), transparent 70%);
  pointer-events: none;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(30,58,138,0.05), transparent 70%);
  pointer-events: none;
}

.page-hero .container { position: relative; z-index: 2; }
.page-hero .section-title { font-size: clamp(36px, 5vw, 60px); }
.page-hero .section-subtitle { margin: 0 auto; }

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.4fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.footer-brand .nav-logo {
  margin-bottom: 12px;
  font-size: 18px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.social-btn {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
}
.social-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.social-btn:hover { border-color: var(--accent-purple); color: var(--accent-purple); background: var(--accent-purple-xlight); }

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent-purple); }

.tech-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tech-chip {
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--bg-primary);
  border: 1px solid var(--border-md);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  font-weight: 500;
  transition: var(--transition);
}
.tech-chip:hover { border-color: var(--accent-purple); color: var(--accent-purple); background: var(--accent-purple-xlight); }

.footer-bottom {
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 13px; color: var(--text-muted); }
.footer-bottom a { color: var(--text-muted); font-size: 13px; transition: color 0.2s; }
.footer-bottom a:hover { color: var(--accent-purple); }

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 64px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: 24px 32px;
  position: relative;
}
.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  height: 48px; width: 1px;
  background: var(--border-md);
}

.stat-number {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -2px;
  color: var(--accent-purple);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: rgba(30,58,138,0.3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(30,58,138,0.55); }

/* ============================================================
   RESPONSIVE — GLOBAL
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 768px) {
  .nav-logo img {
    height: 44px;
    transform: scale(2.2);
  }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }

  .section-title { font-size: 28px; }
  .section-subtitle { font-size: 16px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2)::after { display: none; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .page-hero { padding: 120px 0 60px; }
}

@media (max-width: 480px) {
  .nav-logo img {
    height: 40px;
    transform: scale(2.2);
  }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-item:not(:last-child)::after { display: none; }
  .btn-lg { padding: 12px 20px; font-size: 14px; }
}
