/* =============================================
   TECHNEXA SOLUTIONS — REDESIGNED CSS v2
   Color: Logo-matched Indigo/Purple
   Fixed: Fonts · Spacing · Mobile
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Montserrat:wght@600;700;800&display=swap');

:root {
  --bg-dark:     #060b18;
  --bg-card:     #0c1225;
  --bg-section:  #080e1c;
  --accent:      #6366f1;
  --accent-2:    #a5b4fc;
  --accent-glow: rgba(99,102,241,0.18);
  --text-main:   #eef2ff;
  --text-muted:  #6b7da8;
  --text-soft:   #94a3c4;
  --border:      rgba(99,102,241,0.15);
  --border-soft: rgba(255,255,255,0.05);
  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 16px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  font-size: 15px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4 {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.2;
  color: var(--text-main);
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* CONTAINER */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}
@media(min-width:768px)  { .container { padding: 0 32px; } }
@media(min-width:1200px) { .container { padding: 0 20px; } }

/* NAVBAR */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(6,11,24,0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-soft);
  transition: background 0.3s;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  gap: 16px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}

.logo-wrap img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  /* Boost logo visibility on dark bg */
  filter: brightness(1.15) drop-shadow(0 0 6px rgba(99,102,241,0.4));
}

.logo-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.3px;
  white-space: nowrap;
}
.logo-text span { color: var(--accent-2); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.nav-links a {
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text-soft);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text-main);
  background: rgba(99,102,241,0.1);
}

.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  font-weight: 600 !important;
  padding: 7px 16px !important;
  border-radius: var(--radius-sm) !important;
}
.nav-cta:hover { background: #4f46e5 !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text-main); border-radius: 2px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 10px 20px 14px;
  background: var(--bg-card);
  border-top: 1px solid var(--border-soft);
  gap: 0;
}
.mobile-nav a {
  padding: 11px 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-soft);
  border-bottom: 1px solid var(--border-soft);
  transition: color 0.2s;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--accent-2); }

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 22px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: var(--radius);
  cursor: pointer;
  border: none;
  transition: all 0.22s;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 12px rgba(99,102,241,0.3);
}
.btn-primary:hover {
  background: #4f46e5;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99,102,241,0.45);
}

.btn-outline {
  background: transparent;
  color: var(--accent-2);
  border: 1.5px solid rgba(99,102,241,0.35);
}
.btn-outline:hover {
  background: rgba(99,102,241,0.1);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* TYPOGRAPHY HELPERS */
.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.55rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.section-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}

.divider {
  width: 36px; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 2px;
  margin: 10px auto 26px;
}
.divider-left { margin-left: 0; }

/* CARDS */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.card:hover {
  border-color: rgba(99,102,241,0.3);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.card-icon {
  width: 44px; height: 44px;
  background: rgba(99,102,241,0.12);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  font-size: 1.2rem;
}
.card h3 { font-size: 0.98rem; margin-bottom: 7px; }
.card p  { font-size: 0.85rem; color: var(--text-muted); line-height: 1.65; }

/* TAG */
.tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(99,102,241,0.12);
  color: var(--accent-2);
  border-radius: 20px;
}

/* GRIDS */
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }

/* STATS */
.stat-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-2);
  line-height: 1;
}
.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
}

/* PAGE HERO */
.page-hero {
  padding: 110px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -120px; left: 50%; transform: translateX(-50%);
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(99,102,241,0.13) 0%, transparent 70%);
  pointer-events: none;
}

/* FOOTER */
footer {
  background: #030609;
  border-top: 1px solid var(--border-soft);
  padding: 52px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

.footer-brand p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 12px;
  line-height: 1.7;
  max-width: 240px;
}

.footer-social { display: flex; gap: 8px; margin-top: 16px; }

.social-btn {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  transition: all 0.2s;
  cursor: pointer;
  text-decoration: none;
}
.social-btn:hover {
  background: rgba(99,102,241,0.15);
  color: var(--accent-2);
  border-color: var(--accent);
}

.footer-col h4 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  font-size: 0.83rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent-2); }

.footer-bottom {
  border-top: 1px solid var(--border-soft);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom p, .footer-bottom a { font-size: 0.75rem; color: var(--text-muted); }
.footer-bottom a:hover { color: var(--accent-2); }
.footer-links { display: flex; gap: 16px; }

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity:0; transform:translateY(20px); }
  to   { opacity:1; transform:translateY(0); }
}
@keyframes float {
  0%,100% { transform:translateY(0); }
  50%      { transform:translateY(-8px); }
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(99,102,241,0.5); }
  50%      { box-shadow: 0 0 0 8px rgba(99,102,241,0); }
}

/* RESPONSIVE */
@media(max-width:1024px) {
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media(max-width:768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .grid-3    { grid-template-columns: 1fr; }
  .grid-2    { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

@media(max-width:480px) {
  .container { padding: 0 14px; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn { padding: 10px 18px; font-size: 0.78rem; }
  .section-title { letter-spacing: -0.3px; }
}
