/* ============================================================
   NEXUS TECH — Global Stylesheet
   ============================================================ */

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

/* ─── CSS Variables ─────────────────────────────────────── */
:root {
  --bg:          #04091A;
  --bg-2:        #07112B;
  --bg-card:     #0C1B36;
  --bg-glass:    rgba(12, 27, 54, 0.7);
  --accent:      #06C8FF;
  --accent-dim:  rgba(6, 200, 255, 0.15);
  --accent-2:    #7C6AF6;
  --accent-2-dim:rgba(124, 106, 246, 0.15);
  --green:       #0FD98A;
  --text:        #E8F0FF;
  --text-muted:  #7A90BF;
  --border:      rgba(6, 200, 255, 0.12);
  --border-2:    rgba(255,255,255,0.06);
  --radius:      14px;
  --radius-lg:   22px;
  --shadow:      0 20px 60px rgba(0,0,0,0.5);
  --glow:        0 0 40px rgba(6, 200, 255, 0.25);
}

/* ─── Reset & Base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.nav-burger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ─── Scrollbar ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent-dim); border-radius: 10px; }

/* ─── Background Grid ───────────────────────────────────── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(6,200,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6,200,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* ─── Noise Overlay ─────────────────────────────────────── */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.4; pointer-events: none;
}

/* ─── Nav ───────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%;
  height: 72px;
  background: rgba(4,9,26,0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}
nav.scrolled {
  background: rgba(4,9,26,0.97);
  box-shadow: 0 4px 40px rgba(0,0,0,0.4);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Syne', sans-serif;
  font-size: 1.4rem; font-weight: 800;
  letter-spacing: -0.02em;
}
.nav-logo .dot {
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 8px var(--accent); }
  50% { box-shadow: 0 0 20px var(--accent), 0 0 40px rgba(6,200,255,0.3); }
}
.nav-links {
  display: flex; align-items: center; gap: 2px;
}
.nav-links a {
  padding: 8px 16px;
  font-size: 0.9rem; font-weight: 500;
  color: var(--text-muted);
  border-radius: 8px;
  transition: all 0.2s ease;
  position: relative;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text);
  background: rgba(6,200,255,0.08);
}
.nav-links a.active::after {
  content: '';
  position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px;
  background: var(--accent); border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
}
.nav-cta {
  background: var(--accent) !important;
  color: #000 !important;
  font-weight: 600 !important;
  padding: 9px 22px !important;
}
.nav-cta:hover { background: #fff !important; transform: translateY(-1px); }
.nav-cta.active::after { display: none !important; }
.nav-burger {
  display: none;
  flex-direction: column; gap: 5px; cursor: pointer; padding: 5px;
  border-radius: 8px;
}
.nav-burger span {
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ─── Page Wrapper ──────────────────────────────────────── */
main { position: relative; z-index: 1; padding-top: 72px; }

/* ─── Section Base ──────────────────────────────────────── */
.section { padding: 100px 5%; }
.section-sm { padding: 70px 5%; }
.container { max-width: 1200px; margin: 0 auto; }

/* ─── Section Labels ────────────────────────────────────── */
.label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(6,200,255,0.25);
  padding: 6px 14px; border-radius: 100px;
  margin-bottom: 20px;
}
.label::before {
  content: ''; width: 6px; height: 6px;
  background: var(--accent); border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
}

/* ─── Headings ──────────────────────────────────────────── */
h1,h2,h3,h4,h5 { font-family: 'Syne', sans-serif; font-weight: 700; line-height: 1.15; }
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.section-sub {
  font-size: 1.1rem; color: var(--text-muted);
  max-width: 560px; line-height: 1.7;
  margin-bottom: 60px;
}
.highlight { color: var(--accent); }
.highlight-2 { color: var(--accent-2); }

/* ─── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 28px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem; font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer; border: none;
  transition: all 0.25s ease;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent); color: #000;
  box-shadow: 0 0 30px rgba(6,200,255,0.3);
}
.btn-primary:hover {
  background: #fff; color: #000;
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(6,200,255,0.4);
}
.btn-outline {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent; color: var(--text-muted);
  padding: 10px 0;
}
.btn-ghost:hover { color: var(--accent); }
.btn svg { width: 18px; height: 18px; transition: transform 0.2s; }
.btn:hover svg { transform: translateX(3px); }

/* ─── Cards ─────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: all 0.3s ease;
  position: relative; overflow: hidden;
}
.card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(6,200,255,0.03) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.3s;
  pointer-events: none;
}
.card:hover {
  border-color: var(--border);
  transform: translateY(-4px);
  box-shadow: var(--shadow), var(--glow);
}
.card:hover::before { opacity: 1; }

/* ─── Icon Box ──────────────────────────────────────────── */
.icon-box {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 14px;
  margin-bottom: 24px;
  font-size: 1.5rem;
}
.icon-box.cyan { background: var(--accent-dim); color: var(--accent); border: 1px solid rgba(6,200,255,0.2); }
.icon-box.purple { background: var(--accent-2-dim); color: var(--accent-2); border: 1px solid rgba(124,106,246,0.2); }
.icon-box.green { background: rgba(15,217,138,0.1); color: var(--green); border: 1px solid rgba(15,217,138,0.2); }

/* ─── Tags ──────────────────────────────────────────────── */
.tag {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.78rem; font-weight: 500;
  border-radius: 100px;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(6,200,255,0.2);
}
.tag.purple {
  background: var(--accent-2-dim); color: var(--accent-2);
  border-color: rgba(124,106,246,0.2);
}
.tag.green {
  background: rgba(15,217,138,0.1); color: var(--green);
  border-color: rgba(15,217,138,0.2);
}

/* ─── Grid Helpers ──────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ─── Divider ───────────────────────────────────────────── */
.divider {
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 2px; margin-bottom: 24px;
}

/* ─── Stats ─────────────────────────────────────────────── */
.stat-value {
  font-family: 'Syne', sans-serif;
  font-size: 2.6rem; font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 0.9rem; color: var(--text-muted); margin-top: 4px;
}

/* ─── Page Hero (inner pages) ───────────────────────────── */
.page-hero {
  padding: 80px 5% 80px;
  text-align: center;
  position: relative;
}
.page-hero::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse at center, rgba(6,200,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.page-hero p {
  font-size: 1.15rem; color: var(--text-muted);
  max-width: 580px; margin: 0 auto;
  line-height: 1.75;
}

/* ─── Footer ────────────────────────────────────────────── */
footer {
  position: relative; z-index: 1;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 70px 5% 30px;
}
.footer-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr repeat(3,1fr); gap: 48px;
  margin-bottom: 50px;
}
.footer-brand p {
  color: var(--text-muted); font-size: 0.92rem;
  line-height: 1.7; margin-top: 16px; max-width: 280px;
}
.footer-col h4 {
  font-family: 'Syne', sans-serif;
  font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 20px;
}
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a {
  color: var(--text-muted); font-size: 0.92rem;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--border-2); padding-top: 28px;
  font-size: 0.85rem; color: var(--text-muted);
}
.social-links { display: flex; gap: 12px; }
.social-links a {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 10px;
  border: 1px solid var(--border-2);
  color: var(--text-muted); font-size: 0.85rem;
  transition: all 0.2s;
}
.social-links a:hover {
  border-color: var(--accent); color: var(--accent);
  background: var(--accent-dim);
}

/* ─── Animations ────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity:0; transform: translateY(30px); }
  to   { opacity:1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity:0; }
  to   { opacity:1; }
}
@keyframes slideRight {
  from { opacity:0; transform: translateX(-20px); }
  to   { opacity:1; transform: translateX(0); }
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.animate-fade-up { animation: fadeUp 0.7s ease both; }
.animate-fade-in { animation: fadeIn 0.5s ease both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }

/* ─── Responsive ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; position: fixed; top: 72px; left:0; right:0;
    flex-direction: column; background: rgba(4,9,26,0.98); border-bottom:1px solid var(--border);
    padding: 20px; gap: 4px; }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 12px 16px; }
  .nav-burger { display: flex; }
  .grid-2,.grid-3,.grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap:32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .section { padding: 70px 5%; }
}

/* Custom page extensions for Niktasoft contact/admin/legal pages */
.panel {
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.contact-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
}
.form-grid {
  display: grid;
  gap: 14px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
label {
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text);
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border-2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  padding: 11px 12px;
}
/* Force readable select menu options across browsers/OS themes */
select option {
  color: #0b1220;
  background: #ffffff;
}
select option[value=""] {
  color: #64748b;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--border);
  box-shadow: 0 0 0 3px rgba(6, 200, 255, 0.12);
}
.form-status,
.gate-status,
.admin-status {
  display: none;
  margin-top: 10px;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.9rem;
  font-weight: 500;
}
.form-status.is-success,
.gate-status.is-success,
.admin-status.is-success {
  background: rgba(15, 217, 138, 0.12);
  border: 1px solid rgba(15, 217, 138, 0.28);
  color: var(--green);
}
.form-status.is-error,
.gate-status.is-error,
.admin-status.is-error {
  background: rgba(244, 99, 99, 0.12);
  border: 1px solid rgba(244, 99, 99, 0.3);
  color: #ff8383;
}
.detail-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.detail-list li {
  color: var(--text-muted);
  font-size: 0.92rem;
}
.legal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 16px;
}
.legal-card h2 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.legal-card h3 {
  margin-top: 20px;
  font-size: 1rem;
}
.admin-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.admin-product-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-2);
  border-radius: 14px;
  padding: 16px;
}
.admin-product-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}
.admin-products {
  display: grid;
  gap: 12px;
}
.badge-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.button-danger {
  border: 1px solid rgba(244, 99, 99, 0.4);
  background: rgba(244, 99, 99, 0.12);
  color: #ff8383;
  border-radius: 10px;
  padding: 9px 12px;
}
.hidden {
  display: none !important;
}

@media (max-width: 900px) {
  .contact-layout,
  .field-row {
    grid-template-columns: 1fr;
  }
}
