/* =============================================
   NEXORA LABS — CSS Design System
   ============================================= */

:root {
  --bg:        #07080d;
  --bg-2:      #0e1018;
  --bg-3:      #141620;
  --accent:    #00e5a0;
  --accent-2:  #00b87a;
  --text:      #e8eaf0;
  --text-muted:#8890a8;
  --border:    rgba(255,255,255,0.07);
  --card-bg:   rgba(255,255,255,0.04);
  --radius:    14px;
  --radius-lg: 22px;
  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --transition: 0.35s cubic-bezier(0.4,0,0.2,1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── Typography ── */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-head); font-weight: 700; }

.text-accent { color: var(--accent); }

/* ── Shared layout ── */
.section-pad { padding: 100px 0; }
.bg-dark-nx  { background: var(--bg-2); }

.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(0,229,160,0.1);
  border: 1px solid rgba(0,229,160,0.25);
  border-radius: 20px;
  padding: 5px 14px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.15;
  margin-bottom: 20px;
}
.section-sub {
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
}
.section-body {
  color: var(--text-muted);
  max-width: 540px;
}

/* ── Buttons ── */
.btn-primary-nx {
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: #07080d;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  padding: 13px 28px;
  border-radius: 100px;
  border: none;
  text-decoration: none;
  transition: var(--transition);
}
.btn-primary-nx:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0,229,160,0.3);
  color: #07080d;
}

.btn-ghost-nx {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 28px;
  border-radius: 100px;
  border: 1px solid var(--border);
  text-decoration: none;
  transition: var(--transition);
}
.btn-ghost-nx:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ─────────────────────────────────────────
   NAVBAR
───────────────────────────────────────── */
#mainNav {
  background: transparent;
  padding: 20px 0;
  transition: background 0.4s, padding 0.4s, box-shadow 0.4s;
  z-index: 1000;
}
#mainNav.scrolled {
  background: rgba(7,8,13,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 0;
  box-shadow: 0 1px 0 var(--border);
}

.logo-mark {
  display: inline-flex;
  width: 32px; height: 32px;
  background: var(--accent);
  color: #07080d;
  border-radius: 8px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 18px;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
}
.logo-text {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 17px;
  color: var(--text);
  letter-spacing: 1px;
}
.logo-accent { color: var(--accent); }

.nav-link {
  color: var(--text-muted) !important;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 14px !important;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover { color: var(--text) !important; background: var(--card-bg); }
.nav-link.btn-nav {
  color: var(--accent) !important;
  border: 1px solid rgba(0,229,160,0.4);
  border-radius: 100px;
}
.nav-link.btn-nav:hover { background: var(--accent); color: #07080d !important; }

/* Hamburger */
.navbar-toggler { border: none; background: transparent; padding: 4px; }
.navbar-toggler:focus { box-shadow: none; }
.toggler-icon { display: flex; flex-direction: column; gap: 5px; width: 24px; }
.toggler-icon span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }

/* ─────────────────────────────────────────
   HERO
───────────────────────────────────────── */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,229,160,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,160,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.18;
  pointer-events: none;
}
.orb-1 { width: 600px; height: 600px; background: var(--accent); top: -100px; left: -150px; }
.orb-2 { width: 500px; height: 500px; background: #4040ff; bottom: -100px; right: -100px; }

.hero-section .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 50px; padding-top: 100px; }

.hero-content { flex: 1; min-width: 300px; max-width: 580px; }

.hero-badge {
  display: inline-block;
  background: rgba(0,229,160,0.1);
  border: 1px solid rgba(0,229,160,0.3);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
  animation: fadeInUp 0.7s 0.1s both;
}

.hero-headline {
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 1.05;
  font-weight: 800;
  margin-bottom: 24px;
  animation: fadeInUp 0.7s 0.2s both;
}
.headline-outline {
  -webkit-text-stroke: 2px var(--text);
  color: transparent;
}
.headline-accent { color: var(--accent); }

.hero-sub {
  color: var(--text-muted);
  font-size: 18px;
  margin-bottom: 36px;
  animation: fadeInUp 0.7s 0.3s both;
}

.hero-ctas {
  display: flex; flex-wrap: wrap; gap: 12px;
  animation: fadeInUp 0.7s 0.4s both;
}

.hero-stats {
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
  margin-top: 48px;
  animation: fadeInUp 0.7s 0.5s both;
}
.stat { display: flex; flex-direction: column; }
.stat-num { font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: var(--text); line-height: 1; }
.stat-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* Code card visual */
.hero-visual {
  flex: 1; min-width: 280px; max-width: 440px;
  position: relative;
  animation: fadeInRight 0.9s 0.3s both;
}

.code-card {
  background: #0e1018;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.code-card-header {
  display: flex; gap: 7px; padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.code-card-header span { width: 12px; height: 12px; border-radius: 50%; background: var(--border); }
.code-card-header span:nth-child(1) { background: #ff5f56; }
.code-card-header span:nth-child(2) { background: #ffbd2e; }
.code-card-header span:nth-child(3) { background: #27c93f; }

.code-body { padding: 24px; font-family: 'Courier New', monospace; font-size: 13.5px; line-height: 2; }
.code-line { white-space: nowrap; }
.i1 { padding-left: 20px; }
.kw  { color: #cf8dfa; }
.fn  { color: #82cfff; }
.op  { color: var(--accent); }
.str { color: #f8c555; }
.cm  { color: #5a6478; }
.mt-2 { margin-top: 10px !important; }

.float-badge {
  position: absolute;
  background: rgba(14,16,24,0.9);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  border-radius: 100px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  display: flex; align-items: center; gap: 8px;
  animation: float 4s ease-in-out infinite;
}
.float-badge i { color: var(--accent); }
.badge-top { top: -20px; right: -30px; animation-delay: 0s; }
.badge-bot { bottom: -20px; left: -30px; animation-delay: 2s; }

.hero-scroll-hint {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 11px; color: var(--text-muted); letter-spacing: 2px;
  text-transform: uppercase;
}
.scroll-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  animation: bounce 1.5s ease-in-out infinite;
}

/* ─────────────────────────────────────────
   ABOUT
───────────────────────────────────────── */
.about-visual { position: relative; }

.about-img-block {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 320px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.about-img-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(0,229,160,0.06) 0%, transparent 70%);
}

.ab-big-num {
  font-family: var(--font-head);
  font-size: 7rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  opacity: 0.15;
  position: absolute;
}
.ab-big-label {
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

.ab-card {
  position: absolute;
  background: rgba(14,16,24,0.95);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex; align-items: center; gap: 12px;
  backdrop-filter: blur(12px);
  z-index: 2;
}
.ab-card i { font-size: 22px; color: var(--accent); }
.ab-card strong { display: block; font-size: 14px; font-family: var(--font-head); color: var(--text); }
.ab-card small { font-size: 11px; color: var(--text-muted); }
.ab-card-1 { top: 20px; right: -16px; }
.ab-card-2 { bottom: 20px; left: -16px; }

.about-pill {
  display: flex; align-items: center; gap: 8px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}
.about-pill:hover { border-color: var(--accent); }
.about-pill i { color: var(--accent); }

/* ─────────────────────────────────────────
   SERVICES
───────────────────────────────────────── */
.service-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 30px;
  height: 100%;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.service-card:hover { transform: translateY(-6px); border-color: rgba(0,229,160,0.2); }
.service-card:hover::before { opacity: 1; }

.sc-featured { background: rgba(0,229,160,0.05); border-color: rgba(0,229,160,0.2); }

.sc-icon {
  width: 54px; height: 54px;
  background: rgba(0,229,160,0.1);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  color: var(--accent);
  margin-bottom: 20px;
}

.service-card h4 { font-size: 1.15rem; margin-bottom: 12px; }
.service-card p { color: var(--text-muted); font-size: 14px; margin-bottom: 20px; }

.sc-link {
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap var(--transition);
}
.sc-link:hover { gap: 10px; }

/* ─────────────────────────────────────────
   PROCESS
───────────────────────────────────────── */
.process-timeline {
  display: flex; flex-direction: column; gap: 0;
  max-width: 720px; margin: 0 auto;
}

.process-step {
  display: flex; gap: 28px; align-items: flex-start;
  padding: 28px 0;
  border-left: 1px solid var(--border);
  padding-left: 36px;
  position: relative;
  transition: var(--transition);
}
.process-step:first-child { padding-top: 0; }
.process-step:last-child  { border-left-color: transparent; }

.process-step::before {
  content: '';
  position: absolute;
  left: -6px; top: 4px;
  width: 11px; height: 11px;
  background: var(--bg);
  border: 2px solid var(--accent);
  border-radius: 50%;
  transition: background var(--transition);
}
.process-step:hover::before { background: var(--accent); }

.ps-num {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(255,255,255,0.05);
  line-height: 1;
  flex-shrink: 0;
  width: 60px;
}
.process-step:hover .ps-num { color: rgba(0,229,160,0.15); }

.ps-content h5 { font-size: 1.1rem; margin-bottom: 8px; }
.ps-content p  { color: var(--text-muted); font-size: 14px; }

/* ─────────────────────────────────────────
   PORTFOLIO
───────────────────────────────────────── */
.portfolio-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  min-height: 220px;
  cursor: pointer;
  transition: var(--transition);
}
.pc-tall { min-height: 460px; }

.portfolio-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,229,160,0.06) 0%, rgba(64,64,255,0.06) 100%);
}

.portfolio-card:hover { transform: translateY(-4px); border-color: rgba(0,229,160,0.2); }

.pc-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 28px;
  background: linear-gradient(to top, rgba(7,8,13,0.97) 0%, transparent 100%);
}
.pc-tag {
  font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 8px;
}
.pc-overlay h4 { font-size: 1.2rem; margin-bottom: 8px; }
.pc-overlay p  { color: var(--text-muted); font-size: 13px; margin-bottom: 14px; }
.pc-tech { display: flex; flex-wrap: wrap; gap: 8px; }
.pc-tech span {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11px;
  color: var(--text-muted);
}

/* ─────────────────────────────────────────
   TECH STACK
───────────────────────────────────────── */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
}

.tech-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  transition: var(--transition);
  cursor: default;
}
.tech-item:hover { border-color: var(--accent); transform: translateY(-4px); background: rgba(0,229,160,0.05); }
.tech-item i { font-size: 28px; color: var(--accent); }
.tech-item span { font-size: 13px; font-weight: 600; color: var(--text-muted); }

/* ─────────────────────────────────────────
   TEAM
───────────────────────────────────────── */
.team-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  height: 100%;
  transition: var(--transition);
}
.team-card:hover { border-color: rgba(0,229,160,0.2); transform: translateY(-4px); }

.team-avatar {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, rgba(0,229,160,0.2), rgba(64,64,255,0.2));
  border: 1px solid rgba(0,229,160,0.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 22px;
  color: var(--accent);
  margin: 0 auto 16px;
}

.team-card h5 { font-size: 1.05rem; margin-bottom: 4px; }
.team-role {
  display: inline-block;
  font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}
.team-card p { color: var(--text-muted); font-size: 13px; margin-bottom: 16px; }

.team-socials { display: flex; justify-content: center; gap: 10px; }
.team-socials a {
  width: 34px; height: 34px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
  text-decoration: none;
  transition: var(--transition);
}
.team-socials a:hover { border-color: var(--accent); color: var(--accent); }

/* ─────────────────────────────────────────
   CONTACT
───────────────────────────────────────── */
.contact-section { position: relative; overflow: hidden; }

.contact-orb {
  position: absolute;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(0,229,160,0.06) 0%, transparent 70%);
  border-radius: 50%;
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  pointer-events: none;
}

.contact-info-list { display: flex; flex-direction: column; gap: 16px; margin-top: 36px; }

.ci-item {
  display: flex; align-items: center; gap: 16px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  transition: var(--transition);
}
.ci-item:hover { border-color: rgba(0,229,160,0.2); }

.ci-icon {
  width: 44px; height: 44px;
  background: rgba(0,229,160,0.1);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 18px;
  flex-shrink: 0;
}
.ci-item small { display: block; font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 2px; }
.ci-item strong { font-size: 14px; font-weight: 600; color: var(--text); }

/* Enquiry Form Card */
.enquiry-form-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.form-label-nx {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-control-nx {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
select.form-control-nx {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238890a8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
select.form-control-nx option { background: #0e1018; color: var(--text); }
.form-control-nx:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,229,160,0.12); }
.form-control-nx::placeholder { color: rgba(136,144,168,0.5); }
textarea.form-control-nx { resize: vertical; min-height: 130px; }

.btn-submit { font-size: 16px; padding: 15px; border-radius: 12px !important; }

.spin { animation: spin 1s linear infinite; }

/* Alert styles */
.alert-success-nx {
  background: rgba(0,229,160,0.1);
  border: 1px solid rgba(0,229,160,0.3);
  color: var(--accent);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 14px;
}
.alert-error-nx {
  background: rgba(255,80,80,0.1);
  border: 1px solid rgba(255,80,80,0.3);
  color: #ff5050;
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 14px;
}

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
.footer-section {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 50px 0 30px;
}
.footer-tagline { color: var(--text-muted); font-size: 14px; }

.footer-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 8px;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--accent); }

.footer-socials { display: flex; gap: 10px; justify-content: flex-end; }
.footer-socials a {
  width: 38px; height: 38px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 16px;
  text-decoration: none;
  transition: var(--transition);
}
.footer-socials a:hover { border-color: var(--accent); color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 36px;
  padding-top: 24px;
  text-align: center;
}
.footer-bottom p { color: var(--text-muted); font-size: 13px; margin: 0; }

/* ─────────────────────────────────────────
   ANIMATIONS
───────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
@keyframes bounce {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(8px); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 991px) {
  .hero-section .container { flex-direction: column; padding-top: 120px; padding-bottom: 60px; }
  .hero-visual { max-width: 100%; }
  .ab-card-1, .ab-card-2 { position: static; margin: 8px 0; }
  .about-img-block { padding: 32px; }
  .enquiry-form-card { padding: 28px 20px; }
  .footer-socials { justify-content: flex-start; margin-top: 12px; }
}

@media (max-width: 576px) {
  .section-pad { padding: 70px 0; }
  .hero-stats { gap: 16px; }
  .hero-ctas { flex-direction: column; }
  .btn-primary-nx, .btn-ghost-nx { justify-content: center; }
  .badge-top { top: -10px; right: 0; }
  .badge-bot { bottom: -10px; left: 0; }
}
