/* ============================================================
   NXTBITS INNOVATIONS – STYLESHEET
   Theme: Blue (#0a2540, #1e5fd4) + Orange (#f97316)
   ============================================================ */

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue-dark:   #0a2540;
  --blue-mid:    #1a3c6e;
  --blue-main:   #1e5fd4;
  --blue-light:  #e8f0fe;
  --orange:      #f97316;
  --orange-dark: #ea6a0a;
  --white:       #ffffff;
  --gray-100:    #f8faff;
  --gray-200:    #eef2f9;
  --gray-500:    #6b7a99;
  --gray-800:    #1e2a3a;
  --radius:      12px;
  --radius-lg:   20px;
  --shadow:      0 4px 24px rgba(10,37,64,.1);
  --shadow-lg:   0 8px 48px rgba(10,37,64,.16);
  --transition:  all .3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--white);
  color: var(--gray-800);
  line-height: 1.7;
  overflow-x: hidden;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }

/* ── TYPOGRAPHY ── */
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; line-height: 1.15; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); font-weight: 700; line-height: 1.2; }
h3 { font-size: 1.2rem; font-weight: 600; }
h4 { font-size: 1rem;   font-weight: 600; }

.highlight { color: var(--orange); }

.section-label {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue-main);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 14px;
}

.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 60px;
}

.section-header p { color: var(--gray-500); margin-top: 12px; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
}
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(249,115,22,.35); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.5);
}
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: var(--white); }

.btn-white {
  background: var(--white);
  color: var(--blue-dark);
}
.btn-white:hover { background: var(--orange); color: var(--white); transform: translateY(-2px); }

.btn-full { width: 100%; justify-content: center; }

/* ── NAVBAR ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(10,37,64,.96);
  backdrop-filter: blur(10px);
  padding: 12px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,.2);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  display: flex;
  align-items: baseline;
  gap: 3px;
  font-size: 3.0rem;
  font-weight: 800;
}
.logo-n  { color: var(--white); }
.logo-b  { color: var(--orange); }
.logo-tag {
  font-size: 1.5rem;
  font-weight: 400;
  color: rgba(255,255,255,.6);
  letter-spacing: .04em;
  margin-left: 6px;
  align-self: center;
}

/* Nav links */
.nav-links {
  display: flex;
  gap: 36px;
}
.nav-links a {
  color: rgba(255,255,255,.75);
  font-size: .9rem;
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
  transition: var(--transition);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--orange);
  transition: width .3s ease;
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  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); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-mid) 60%, #102d50 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 50px 50px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(249,115,22,.15);
  color: var(--orange);
  border: 1px solid rgba(249,115,22,.3);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  margin-bottom: 24px;
}

.hero h1 { color: var(--white); margin-bottom: 20px; }

.hero-sub {
  color: rgba(255,255,255,.7);
  font-size: 1.1rem;
  max-width: 560px;
  margin-bottom: 36px;
}

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* Hero visual rings */
.hero-visual {
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  width: 500px; height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.circuit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  animation: spinRing linear infinite;
}
.ring1 {
  width: 300px; height: 300px;
  border-color: rgba(249,115,22,.25);
  animation-duration: 20s;
}
.ring2 {
  width: 420px; height: 420px;
  border-color: rgba(30,95,212,.3);
  animation-duration: 30s;
  animation-direction: reverse;
}
.ring3 {
  width: 200px; height: 200px;
  border-color: rgba(255,255,255,.12);
  animation-duration: 15s;
}

@keyframes spinRing {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.chip-icon {
  font-size: 5rem;
  color: rgba(249,115,22,.5);
  animation: pulse 3s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { transform: scale(1); opacity: .5; }
  50%      { transform: scale(1.1); opacity: .8; }
}

/* ── STATS ── */
.stats-strip {
  background: var(--white);
  padding: 40px 0;
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 32px;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-num {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--blue-dark);
  line-height: 1;
}

.stat-plus {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--orange);
}

.stat-item p {
  color: var(--gray-500);
  font-size: .85rem;
  margin-top: 4px;
}

/* ── ABOUT ── */
.about { background: var(--gray-100); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 72px;
  align-items: center;
}

.about-visual {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.about-card:hover { transform: translateX(8px); box-shadow: var(--shadow-lg); }

.about-card i {
  font-size: 1.8rem;
  color: var(--orange);
  flex-shrink: 0;
  width: 48px;
  text-align: center;
}

.about-card h4 { margin-bottom: 2px; color: var(--blue-dark); }
.about-card p  { font-size: .85rem; color: var(--gray-500); }

.about-text h2 { margin-bottom: 20px; }
.about-text p  { color: var(--gray-500); margin-bottom: 16px; }

/* ── SERVICES ── */
.services { background: var(--white); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 28px;
}

.service-card {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: var(--transition);
  cursor: default;
}

.service-card:hover {
  background: var(--white);
  border-color: var(--orange);
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.service-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--blue-main), var(--blue-dark));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
}

.service-icon i { font-size: 1.3rem; color: var(--white); }

.service-card h3 { margin-bottom: 10px; color: var(--blue-dark); }
.service-card p  { color: var(--gray-500); font-size: .9rem; }

/* ── WHY US ── */
.why { background: var(--gray-100); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 28px;
}

.why-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.why-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.why-icon {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, rgba(30,95,212,.1), rgba(249,115,22,.1));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.why-icon i { font-size: 1.4rem; color: var(--orange); }

.why-item h4 { margin-bottom: 8px; color: var(--blue-dark); }
.why-item p  { color: var(--gray-500); font-size: .875rem; }

/* ── CTA BANNER ── */
.cta-banner {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-mid));
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(249,115,22,.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(30,95,212,.2) 0%, transparent 50%);
}

.cta-inner {
  position: relative;
  z-index: 1;
}

.cta-inner h2 { color: var(--white); margin-bottom: 12px; }
.cta-inner p  { color: rgba(255,255,255,.7); margin-bottom: 28px; font-size: 1.05rem; }

/* ── PAGE HERO (contact) ── */
.page-hero {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-mid));
  padding: 140px 0 80px;
  text-align: center;
}

.page-hero h1 { color: var(--white); margin-bottom: 14px; }
.page-hero p  { color: rgba(255,255,255,.7); max-width: 520px; margin: 0 auto; font-size: 1.05rem; }

/* ── CONTACT SECTION ── */
.contact-section { background: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 72px;
  align-items: start;
}

.contact-form-wrap h2 { margin-bottom: 28px; color: var(--blue-dark); }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group { display: flex; flex-direction: column; margin-bottom: 20px; }

.form-group label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  font-family: inherit;
  font-size: .9rem;
  color: var(--gray-800);
  background: var(--gray-100);
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue-main);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(30,95,212,.1);
}

.form-group input.error,
.form-group textarea.error {
  border-color: #e53e3e;
}

.error-msg {
  color: #e53e3e;
  font-size: .78rem;
  margin-top: 4px;
  min-height: 16px;
}

.form-success {
  display: none;
  align-items: center;
  gap: 10px;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #6ee7b7;
  padding: 14px 18px;
  border-radius: 8px;
  font-weight: 600;
  margin-top: 16px;
}
.form-success.show { display: flex; }

/* Contact info */
.contact-info h2 { margin-bottom: 12px; color: var(--blue-dark); }
.contact-intro  { color: var(--gray-500); margin-bottom: 28px; }

.info-cards { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }

.info-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 20px;
  transition: var(--transition);
}

.info-card:hover { box-shadow: var(--shadow); background: var(--white); }

.info-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--blue-main), var(--blue-dark));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.info-icon i { font-size: 1rem; color: var(--white); }

.info-card h4 { font-size: .9rem; margin-bottom: 4px; color: var(--blue-dark); }
.info-card a, .info-card p { font-size: .85rem; color: var(--gray-500); }
.info-card a:hover { color: var(--orange); }

.contact-social h4 { margin-bottom: 12px; }

/* ── SOCIAL LINKS ── */
.social-links { display: flex; gap: 12px; }

.social-links a {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.7);
  font-size: .9rem;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
  transform: translateY(-2px);
}

/* Contact page social overrides */
.contact-social .social-links a {
  background: var(--gray-200);
  border-color: var(--gray-200);
  color: var(--blue-dark);
}
.contact-social .social-links a:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

/* ── FAQ ── */
.faq { background: var(--gray-100); }

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: none;
  border: none;
  font-family: inherit;
  font-size: .95rem;
  font-weight: 600;
  color: var(--blue-dark);
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
}

.faq-question:hover { color: var(--orange); }
.faq-question i { transition: transform .3s ease; flex-shrink: 0; color: var(--orange); }
.faq-question.open i { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}

.faq-answer p {
  padding: 0 24px 20px;
  color: var(--gray-500);
  font-size: .9rem;
}

/* ── FOOTER ── */
.footer {
  background: var(--blue-dark);
  padding: 72px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-brand p {
  color: rgba(255,255,255,.5);
  font-size: .875rem;
  margin: 16px 0 24px;
  max-width: 260px;
}

.footer-links h5,
.footer-contact h5 {
  color: var(--white);
  font-size: .9rem;
  margin-bottom: 16px;
  font-weight: 700;
}

.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  color: rgba(255,255,255,.5);
  font-size: .875rem;
  transition: var(--transition);
}
.footer-links a:hover { color: var(--orange); padding-left: 4px; }

.footer-contact p {
  color: rgba(255,255,255,.5);
  font-size: .875rem;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.footer-contact i { color: var(--orange); width: 14px; }

.footer-bottom {
  text-align: center;
  padding: 20px 0;
}
.footer-bottom p { color: rgba(255,255,255,.3); font-size: .82rem; }

/* ── CARD GLOW EFFECT ── */
.card-glow { border-left: 3px solid var(--orange); }

/* ── SCROLL-REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

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

@media (max-width: 768px) {
  .section { padding: 64px 0; }

  /* Navbar mobile */
  .hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 75%; max-width: 300px;
    height: 100vh;
    background: var(--blue-dark);
    flex-direction: column;
    padding: 80px 32px 32px;
    gap: 20px;
    transition: right .35s ease;
    z-index: 999;
    box-shadow: -4px 0 30px rgba(0,0,0,.3);
  }
  .nav-links.open { right: 0; }
  .nav-links a { font-size: 1.1rem; }

  /* Hero */
  .hero { padding: 140px 0 80px; }
  .hero-visual { display: none; }
  .hero-cta { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }

  /* Stats */
  .stats-grid { grid-template-columns: repeat(2,1fr); }

  /* About */
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-visual { order: 2; }
  .about-text   { order: 1; }

  /* Services */
  .services-grid { grid-template-columns: 1fr; }

  /* Why */
  .why-grid { grid-template-columns: 1fr 1fr; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .form-row     { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .why-grid   { grid-template-columns: 1fr; }
  h1 { font-size: 2rem; }
}