/* ============================================================
   Nexbyte — Software Development Company
   style.css
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --bg: #0b1020;
  --bg-2: #0e1428;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-strong: rgba(255, 255, 255, 0.1);
  --border: rgba(255, 255, 255, 0.12);
  --text: #eef2ff;
  --muted: #9aa6c4;
  --brand: #4f8cff;
  --brand-2: #22d3ee;
  --accent: #7c5cff;
  --danger: #ff6b6b;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --maxw: 1160px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  background: var(--bg);
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(79, 140, 255, 0.18), transparent 60%),
    radial-gradient(1000px 500px at 100% 0%, rgba(124, 92, 255, 0.16), transparent 55%),
    var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .brand-name {
  font-family: "Sora", system-ui, sans-serif;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 22px;
}

/* ---------- Background orbs ---------- */
.bg-orbs { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  animation: float 18s ease-in-out infinite;
}
.orb-1 { width: 460px; height: 460px; background: #2f6bff; top: -120px; left: -80px; }
.orb-2 { width: 380px; height: 380px; background: #22d3ee; bottom: -100px; right: -60px; animation-delay: -6s; }
.orb-3 { width: 300px; height: 300px; background: #7c5cff; top: 40%; left: 55%; animation-delay: -11s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -40px) scale(1.08); }
}

/* ---------- Glassmorphism ---------- */
.glass {
  background: var(--surface);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
  will-change: transform;
}
.btn.full { width: 100%; }
.btn-primary {
  color: #071022;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 10px 30px rgba(79, 140, 255, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(79, 140, 255, 0.5); }
.btn-ghost {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border);
}
.btn-ghost:hover { transform: translateY(-2px); background: var(--surface-strong); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(11, 16, 32, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  color: #071022;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}
.brand-name { font-size: 1.2rem; }

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--muted); font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--brand-2); }
.nav-cta { color: #071022 !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 150px 0 80px; }
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 50px;
  align-items: center;
}
.hero-copy, .hero-visual { min-width: 0; }
.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-2);
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  margin-bottom: 18px;
}
.hero-title { font-size: clamp(2.3rem, 5vw, 3.6rem); margin-bottom: 18px; }
.grad-text {
  background: linear-gradient(135deg, var(--brand), var(--brand-2), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub { color: var(--muted); font-size: 1.08rem; max-width: 540px; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 38px; }

.hero-stats { display: flex; gap: 14px; flex-wrap: wrap; }
.stat { padding: 16px 20px; border-radius: var(--radius-sm); flex: 1; min-width: 120px; }
.stat-num { font-family: "Sora", sans-serif; font-size: 1.7rem; font-weight: 800; }
.stat-plus { font-family: "Sora", sans-serif; font-size: 1.2rem; font-weight: 700; color: var(--brand-2); }
.stat p { color: var(--muted); font-size: 0.85rem; margin-top: 2px; }

/* Code card */
.hero-visual { position: relative; }
.code-card { overflow: hidden; animation: cardFloat 6s ease-in-out infinite; }
@keyframes cardFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.code-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }
.code-file { margin-left: auto; color: var(--muted); font-size: 0.82rem; font-family: monospace; }
.code-body { padding: 20px; overflow-x: auto; }
.code-body code {
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 0.88rem;
  line-height: 1.7;
  color: #cdd6f4;
  white-space: pre;
}
.tk-key { color: #c792ea; }
.tk-fn { color: #82aaff; }
.tk-str { color: #c3e88d; }
.tk-num { color: #f78c6c; }

/* ---------- Marquee ---------- */
.marquee-section { padding: 30px 0; }
.marquee-label { text-align: center; color: var(--muted); font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 18px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 60px; width: max-content; animation: scroll 28s linear infinite; }
.marquee-track span { font-family: "Sora", sans-serif; font-weight: 600; font-size: 1.25rem; color: var(--muted); opacity: 0.7; white-space: nowrap; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 54px; }
.section-title { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 14px; }
.section-lead { color: var(--muted); font-size: 1.05rem; }

/* ---------- Grid ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- Service cards ---------- */
.card { padding: 30px 26px; transition: transform 0.35s var(--ease), border-color 0.3s; }
.card:hover { transform: translateY(-6px); border-color: rgba(79,140,255,0.5); }
.card-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 14px;
  color: var(--brand-2);
  background: linear-gradient(135deg, rgba(79,140,255,0.2), rgba(34,211,238,0.15));
  margin-bottom: 18px;
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.96rem; }

/* ---------- Portfolio ---------- */
.project { overflow: hidden; transition: transform 0.35s var(--ease); }
.project:hover { transform: translateY(-6px); }
.project-thumb {
  height: 180px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}
.thumb-1 { background: linear-gradient(135deg, #1e3a8a, #2563eb); }
.thumb-2 { background: linear-gradient(135deg, #0f766e, #22d3ee); }
.thumb-3 { background: linear-gradient(135deg, #4338ca, #7c5cff); }
.thumb-4 { background: linear-gradient(135deg, #9333ea, #ec4899); }
.thumb-5 { background: linear-gradient(135deg, #0e7490, #3b82f6); }
.thumb-6 { background: linear-gradient(135deg, #b45309, #f59e0b); }
.project-tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(6px);
  color: #fff;
}
.project-body { padding: 22px 24px 26px; }
.project-body h3 { font-size: 1.2rem; margin-bottom: 6px; }
.project-body p { color: var(--muted); font-size: 0.94rem; margin-bottom: 14px; }
.link-arrow { color: var(--brand-2); font-weight: 600; font-size: 0.9rem; transition: gap 0.2s; display: inline-flex; gap: 6px; }
.link-arrow:hover span { transform: translateX(4px); display: inline-block; transition: transform 0.2s; }

/* ---------- Technologies ---------- */
.tech-grid { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.tech {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.25s var(--ease), border-color 0.25s;
}
.tech:hover { transform: translateY(-4px); border-color: rgba(34,211,238,0.6); }
.tech-dot { width: 9px; height: 9px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-2)); }

/* ---------- Pricing ---------- */
.pricing-grid { align-items: stretch; }
.price-card { padding: 34px 28px; display: flex; flex-direction: column; position: relative; transition: transform 0.35s var(--ease); }
.price-card:hover { transform: translateY(-6px); }
.price-card.featured { border-color: rgba(79,140,255,0.6); box-shadow: 0 20px 60px rgba(79,140,255,0.28); }
.badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #071022;
  font-size: 0.75rem; font-weight: 700;
  padding: 5px 14px; border-radius: 999px;
  white-space: nowrap;
}
.price-name { font-size: 1.4rem; margin-bottom: 6px; }
.price-desc { color: var(--muted); font-size: 0.92rem; margin-bottom: 18px; }
.price { font-family: "Sora", sans-serif; font-size: 2.4rem; font-weight: 800; margin-bottom: 22px; }
.price-cur { font-size: 1.3rem; vertical-align: super; margin-right: 2px; }
.price-per { font-size: 0.95rem; color: var(--muted); font-weight: 500; }
.price-custom { font-size: 2rem; }
.price-list { display: grid; gap: 12px; margin-bottom: 26px; flex: 1; }
.price-list li { color: var(--muted); font-size: 0.95rem; position: relative; padding-left: 26px; }
.price-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--brand-2); font-weight: 700;
}

/* ---------- About ---------- */
.about-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 50px; align-items: center; }
.about-copy p { color: var(--muted); margin-bottom: 16px; }
.about-copy .section-title { text-align: left; }
.about-points { display: grid; gap: 12px; margin-top: 22px; }
.about-points li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.check {
  display: grid; place-items: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #071022; font-size: 0.8rem; font-weight: 800;
  flex-shrink: 0;
}
.about-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.about-stat { padding: 26px 22px; text-align: center; }
.about-stat p { color: var(--muted); font-size: 0.9rem; margin-top: 4px; }
.about-stat .stat-num { font-size: 2.1rem; }

/* ---------- Contact ---------- */
.contact-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 50px; align-items: start; }
.contact-copy .section-title { text-align: left; }
.contact-details { display: grid; gap: 16px; margin-top: 26px; }
.contact-details li { display: flex; align-items: center; gap: 14px; color: var(--muted); }
.contact-details a:hover { color: var(--text); }
.c-ico {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--brand-2); font-size: 1.05rem;
  flex-shrink: 0;
}

.contact-form { padding: 34px 30px; display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #6b7699; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(79,140,255,0.25);
}
.field select { appearance: none; cursor: pointer; }
.field select option { background: var(--bg-2); color: var(--text); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); }
.error { color: var(--danger); font-size: 0.82rem; min-height: 0; }
.form-success { color: var(--brand-2); font-weight: 600; text-align: center; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding-top: 60px; margin-top: 40px; background: rgba(8,12,24,0.5); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; padding-bottom: 44px; }
.footer-tag { color: var(--muted); margin: 14px 0 18px; max-width: 260px; }
.socials { display: flex; gap: 10px; }
.social {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 0.8rem; font-weight: 700; color: var(--muted);
  transition: transform 0.2s, color 0.2s, border-color 0.2s;
}
.social:hover { transform: translateY(-3px); color: var(--text); border-color: var(--brand); }
.footer-col h4 { font-size: 0.95rem; margin-bottom: 16px; }
.footer-col a { display: block; color: var(--muted); font-size: 0.92rem; padding: 5px 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0; border-top: 1px solid var(--border);
  color: var(--muted); font-size: 0.88rem; flex-wrap: wrap; gap: 10px;
}
.footer-legal { display: flex; gap: 20px; }
.footer-legal a:hover { color: var(--text); }

/* ---------- Scroll to top ---------- */
.to-top {
  position: fixed; bottom: 26px; right: 26px; z-index: 60;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #071022; font-size: 1.2rem; font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.25s var(--ease), opacity 0.25s;
}
.to-top:hover { transform: translateY(-4px); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner, .about-inner, .contact-inner { grid-template-columns: minmax(0, 1fr); }
  .about-copy .section-title, .contact-copy .section-title { text-align: left; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    top: 72px; right: 0;
    height: calc(100dvh - 72px);
    width: min(78vw, 320px);
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 28px 26px;
    background: rgba(11,16,32,0.96);
    backdrop-filter: blur(16px);
    border-left: 1px solid var(--border);
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.05rem; padding: 8px 0; width: 100%; }
  .nav-cta { margin-top: 10px; }
  .nav-toggle { display: flex; }
  .hero { padding: 120px 0 60px; }
  .hero-title { font-size: clamp(2rem, 8vw, 2.6rem); }
  .hero-sub { font-size: 1rem; }
  .hero-stats { gap: 10px; }
  .stat { flex: 1 1 calc(50% - 5px); min-width: 0; padding: 14px 16px; }
  .stat-num { font-size: 1.5rem; }
  .grid-3 { grid-template-columns: 1fr; }
  .about-cards { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { justify-content: center; text-align: center; }
  .section { padding: 64px 0; }
}

@media (max-width: 420px) {
  .about-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
