/* ============================================
   Naimur Ferdous — base styles
   Tailwind (CDN) handles utility classes.
   This file covers the custom classes referenced
   in the HTML that Tailwind doesn't provide.
   ============================================ */

:root {
  --ink: #0A0E13;
  --inkraised: #12181F;
  --inkline: #1E2730;
  --paper: #ECEFF2;
  --paperdim: #8B96A3;
  --signal: #E9A23B;
  --sync: #35D6C0;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--paper);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--sync); color: var(--ink); }

/* Layout container */
.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Grain overlay */
.grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Header */
#site-header {
  background: rgba(10, 14, 19, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
#site-header.scrolled {
  background: rgba(10, 14, 19, 0.92);
  border-bottom-color: var(--inkline);
}

.nav-link {
  color: var(--paperdim);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav-link:hover,
.nav-link[aria-current="page"] { color: var(--paper); }

/* Eyebrow label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sync);
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 10px;
  border-radius: 50%;
  background: currentColor;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--signal);
  color: var(--ink);
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: #f0ae55;
}
.btn-ghost {
  background: transparent;
  color: var(--paper);
  border: 1px solid var(--inkline);
}
.btn-ghost:hover {
  border-color: var(--sync);
  color: var(--sync);
}

/* Cards */
.card {
  background: var(--inkraised);
  border: 1px solid var(--inkline);
  border-radius: 20px;
}
.service-card {
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--sync);
  background: #141b23;
}
.service-index {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  color: var(--paperdim);
}

/* Form fields */
.field {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--inkline);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  color: var(--paper);
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}
.field::placeholder { color: #5A6572; }
.field:focus {
  outline: none;
  border-color: var(--sync);
}

/* Signal line divider */
.signal-line {
  display: block;
  width: 100%;
  height: 1px;
}
.signal-line path {
  stroke: var(--inkline);
  stroke-width: 1;
  fill: none;
}

/* Marquee (platforms strip) */
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

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

/* Stat counters */
.stat-value { font-variant-numeric: tabular-nums; }

/* Modal */
.modal-backdrop {
  background: rgba(10, 14, 19, 0.8);
  backdrop-filter: blur(4px);
}
.modal-backdrop.flex { display: flex; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  .btn-primary:hover, .service-card:hover { transform: none; }
}
