/* Nauf Network Studio — Custom CSS (complements Tailwind CDN) */
/* Charcoal & Neon Electric Blue. Deep charcoal base establishes a stable, dark foundation;
   the darkest tone in the palette is reserved for outlines/shadows so moving objects stay
   anchored against the background. Electric blue (#0055FF) is applied EXCLUSIVELY to
   interactive triggers — buttons, hovers, focus states, active nav/tabs — so it commands
   attention during transitions instead of being diluted across decorative text. */

:root {
  --bg-page:    #121317;
  --bg-soft:    #17181d;
  --bg-card:    #1c1d23;
  --border:     #090a0c;
  --text:       #f5f6f8;
  --text-body:  #b4b6bd;
  --muted:      #6c6e76;
  --accent:     #0055ff;
  --accent-h:   #2e74ff;
  --accent-2:   #0a0b0e;
  --accent-2-h: #000000;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg-page);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ---- ACCENT TEXT ---- */
/* Decorative headline emphasis stays neutral white — the accent color is reserved for
   interactive triggers only, per the contrast spec. */
.grad-text, .grad-text-warm {
  color: var(--text);
}

/* ---- HERO BACKGROUND ---- */
/* A restrained radial wash of electric blue behind the hero so it "pops" as the page's
   load-sequence content reveals, without bleeding into the rest of the dark canvas. */
.hero-glow {
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(0,85,255,0.16) 0%, transparent 70%),
    var(--bg-page);
}

/* ---- BUTTONS ---- */
/* Three-tier hierarchy: solid blue = primary action, outlined blue = secondary action,
   neutral outline = tertiary — keeps the pop color meaningful instead of everywhere. */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--accent-h);
  padding: 13px 27px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  border: 1.5px solid var(--accent);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary:hover {
  background: rgba(0,85,255,0.12);
  box-shadow: 0 0 22px rgba(0,85,255,0.35);
  transform: translateY(-2px);
}

.btn-primary, .btn-cta, .btn-secondary {
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:active, .btn-cta:active, .btn-secondary:active {
  transform: translateY(0) scale(0.97);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text);
  padding: 13px 27px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid var(--border);
  cursor: pointer;
  white-space: nowrap;
}

.btn-secondary:hover {
  border-color: var(--text-body);
  background: rgba(255,255,255,0.04);
  transform: translateY(-2px);
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  padding: 16px 32px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn-cta:hover {
  background: var(--accent-h);
  box-shadow: 0 0 28px rgba(0,85,255,0.45);
  transform: translateY(-2px);
}

/* ---- CARDS ---- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(0,85,255,0.25);
  transform: translateY(-3px);
}

.card-glow:hover {
  box-shadow: 0 0 24px rgba(0,85,255,0.2);
}

/* ---- NAV ---- */
.nav-link {
  position: relative;
  color: var(--text-body);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s;
  padding: 6px 2px;
}

.nav-link:hover, .nav-link.active {
  color: var(--text);
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
  box-shadow: 0 0 8px rgba(0,85,255,0.6);
}

.nav-link:hover::after, .nav-link.active::after {
  transform: scaleX(1);
}

nav.sticky-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(18,19,23,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

/* Taller, more spacious nav with wider letter-spacing — less "SaaS template" chrome */
nav.sticky-nav .h-16 { height: 4.75rem; }

nav.sticky-nav .nav-link {
  letter-spacing: 0.03em;
  font-size: 0.85rem;
}

/* ---- MOBILE MENU ---- */
#mobile-menu {
  display: none;
  background: var(--bg-page);
  border-bottom: 1px solid var(--border);
}

#mobile-menu.open { display: block; }

/* ---- TRUST BAR ---- */
.trust-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}

/* ---- BADGE (flat label, no pill) ---- */
/* Decorative eyebrow label — neutral, not accent, since it isn't an interactive trigger. */
.badge {
  display: inline-block;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.badge-orange, .badge-cyan { color: var(--muted); }

/* ---- SECTION DIVIDER ---- */
.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ---- PRICING CARD ---- */
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 28px;
  transition: border-color 0.2s ease;
  position: relative;
}

/* The "Most Popular" highlight is a justified exception — it's a conversion-critical cue
   guiding the purchase decision, not decoration. */
.pricing-card.featured {
  border: 2px solid var(--accent);
  box-shadow: 0 0 30px rgba(0,85,255,0.18);
}

.pricing-card .popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 100px;
  white-space: nowrap;
  box-shadow: 0 0 16px rgba(0,85,255,0.5);
}

/* ---- TESTIMONIAL ---- */
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
}

.stars { color: #fbbf24; letter-spacing: 2px; }

/* ---- FAQ ---- */
.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  padding: 20px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-answer {
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.7;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.open {
  max-height: 400px;
  padding-bottom: 20px;
}

.faq-icon { transition: transform 0.3s ease; flex-shrink: 0; color: var(--muted); }
.faq-item.open .faq-icon { transform: rotate(45deg); color: var(--accent); }

/* ---- FORM ---- */
.form-input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 12px 16px;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,85,255,0.22);
}

.form-input::placeholder { color: var(--muted); }

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

select.form-input option {
  background: var(--bg-card);
  color: var(--text);
}

/* ---- PROCESS STEP ---- */
.process-step {
  position: relative;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-2);
  border: 1px solid var(--border);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ---- CASE STUDY / PORTFOLIO GRID (always-visible caption, no hover-reveal) ---- */
.portfolio-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.portfolio-item:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(0,85,255,0.25);
  transform: translateY(-3px);
}

.portfolio-thumb {
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  overflow: hidden;
}

.portfolio-thumb > svg, .portfolio-thumb > div {
  transition: transform 0.45s cubic-bezier(0.16,1,0.3,1);
}

.portfolio-item:hover .portfolio-thumb > svg,
.portfolio-item:hover .portfolio-thumb > div {
  transform: scale(1.06);
}

.portfolio-caption {
  padding: 18px 20px 20px;
  border-top: 1px solid var(--border);
}

.portfolio-caption .tag {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portfolio-caption p.text-sm {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.45;
  color: var(--text-body);
}

/* ---- CLIENT LOGO STRIP ---- */
.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  opacity: 0.65;
  filter: grayscale(1);
  transition: opacity 0.2s ease, filter 0.2s ease, transform 0.2s ease;
}

/* Light backing chip behind real logo art so it stays legible regardless of the logo's
   own colors, even under the grayscale/opacity treatment. */
.client-logo img {
  background: rgba(255,255,255,0.92);
  border-radius: 6px;
  padding: 6px 12px;
}

.client-logo:hover {
  opacity: 1;
  filter: grayscale(0);
  transform: scale(1.06);
}

/* ---- STATS ---- */
.stat-item { text-align: center; }
.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}
.stat-label {
  color: var(--muted);
  font-size: 0.875rem;
  margin-top: 4px;
}

/* ---- FLOATING WHATSAPP ---- */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  transition: transform 0.2s;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* ---- STICKY MOBILE CTA ---- */
.sticky-mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 12px 16px;
}

@media (max-width: 768px) {
  .sticky-mobile-cta { display: flex; gap: 12px; }
}

/* ---- FOOTER (darkest anchor surface) ---- */
footer {
  background: var(--accent-2);
  border-top: 1px solid var(--border);
  color: #9499a3;
}

.footer-link {
  color: #8b8f99;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.15s;
}

.footer-link:hover { color: var(--accent-h); }

/* ---- SECTION SPACING ---- */
.section { padding: 120px 0; }
.section-sm { padding: 56px 0; }

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

/* ---- BIG EDITORIAL TYPE ---- */
.hero-glow h1 {
  font-size: clamp(2.6rem, 1.6rem + 4.2vw, 4.75rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.text-center.mb-14 h2, section h2.text-3xl, section h2.text-4xl {
  font-size: clamp(2.1rem, 1.3rem + 2.6vw, 3.25rem) !important;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.text-center.mb-14 { margin-bottom: 4rem; }

/* ---- ICON BOXES ---- */
/* Minimal editorial mark — icon sits above a short underline instead of inside a colored
   circle/box. The underline stays neutral (not accent) since it's decorative, not a trigger. */
.icon-box {
  width: auto;
  height: auto;
  border-radius: 0;
  background: none !important;
  display: inline-flex;
  align-items: flex-end;
  justify-content: flex-start;
  font-size: 1.75rem;
  flex-shrink: 0;
  position: relative;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--border);
}

.icon-box::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 28px;
  height: 2px;
  background: var(--text-body);
}

.icon-box-primary, .icon-box-cyan, .icon-box-orange, .icon-box-green { background: none !important; }

/* ---- CHECK LIST ---- */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
  color: var(--text-body);
  font-size: 0.95rem;
}
.check-list li::before {
  content: '✓';
  color: #2dd47e;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.cross-list li::before {
  content: '✗';
  color: #e05252;
}

/* ---- ANIMATIONS ---- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-fade-up {
  animation: fadeInUp 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.2s; opacity: 0; }
.delay-3 { animation-delay: 0.3s; opacity: 0; }
.delay-4 { animation-delay: 0.4s; opacity: 0; }

/* ---- LP SPECIFIC ---- */
.lp-body {
  background: var(--bg-page);
}

.progress-bar {
  height: 3px;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(0,85,255,0.6);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  transition: width 0.1s;
}

/* ---- LEGACY UTILITY OVERRIDES ---- */
/* Pages carry old Tailwind slate/white classes from earlier theme passes. Rather than
   hand-edit every occurrence, remap them here so the whole site stays in sync with the
   current palette. Footer keeps its own (already-dark) surface, so no separate override
   is needed for it under this dark theme. */
.text-white { color: var(--text) !important; }
.text-slate-300, .text-slate-400 { color: var(--text-body) !important; }
.text-slate-500, .text-slate-600 { color: var(--muted) !important; }
.text-slate-700, .text-slate-800, .text-slate-900 { color: var(--text) !important; }
.text-indigo-400, .text-cyan-400, .text-orange-400 { color: var(--accent-h) !important; }
.group:hover .group-hover\:text-indigo-400, .group:hover .group-hover\:text-cyan-400 { color: var(--accent-h) !important; }
.border-slate-800 { border-color: var(--border) !important; }
a.hover\:text-white:hover, .hover\:text-white:hover { color: var(--text) !important; }

footer .text-white,
footer .text-slate-300, footer .text-slate-400,
footer .text-slate-500, footer .text-slate-600 { color: #9499a3 !important; }
footer .hover\:text-white:hover { color: var(--accent-h) !important; }

/* ---- FILTER TABS (flat, underline-active — replaces pill buttons) ---- */
.filter-tab {
  padding: 8px 4px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.filter-tab.active, .filter-tab:hover {
  color: var(--text);
  border-bottom-color: var(--accent);
}

/* ---- SCROLL REVEAL FRAMEWORK ---- */
/* Applied automatically by main.js (no per-page markup needed) to cards, pricing tiers,
   testimonials, portfolio items, process steps, stats, FAQ items, and section header
   blocks site-wide — gives every page a fade/stagger entrance as it loads into view. */
.reveal {
  opacity: 0;
  transform: translateY(46px) scale(0.97);
  transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1), transform 0.9s cubic-bezier(0.16,1,0.3,1);
  will-change: opacity, transform;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
}

/* ---- HERO PARALLAX (driven by main.js scroll listener) ---- */
.hero-glow > div {
  transition: opacity 0.15s linear, transform 0.15s linear;
}

/* ---- CLIENT LOGO MARQUEE ---- */
.marquee {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 32s linear infinite;
}

.marquee-track .client-logo {
  padding: 0 40px;
  white-space: nowrap;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}
