/* =============================================
   NUX.BG — Main Stylesheet
   ============================================= */

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

/* Variables */
:root {
  --bg: #080808;
  --text: #ffffff;
  --dim: #888888;
  --muted: #555555;
  --border: #1a1a1a;
  --card: #0f0f0f;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base */
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Space Grotesk', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

/* =============================================
   NAVIGATION
   ============================================= */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 56px;
  transition: background 0.3s var(--ease), padding 0.3s var(--ease);
}

nav.scrolled {
  background: rgba(8,8,8,0.92);
  backdrop-filter: blur(20px);
  padding: 16px 56px;
  border-bottom: 1px solid var(--border);
}

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 4px;
  color: var(--text);
}

nav ul.nav-links {
  display: flex;
  list-style: none;
  gap: 40px;
}

nav ul.nav-links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--dim);
  transition: color 0.2s;
}

nav ul.nav-links a:hover { color: var(--text); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text);
  transition: 0.3s;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.mobile-menu.active { display: flex; }

.mobile-menu a {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--text);
}

/* =============================================
   SECTIONS — BASE
   ============================================= */
section {
  padding: 140px 56px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

section.hero {
  max-width: 100%;
  padding: 0;
  margin: 0;
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

section.why-section,
section.approach-section,
section.stats-section,
section.tech-section {
  min-height: auto;
}

/* =============================================
   LABELS & HEADINGS
   ============================================= */
.label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.section-heading {
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 64px;
  color: var(--text);
}

/* =============================================
   HERO
   ============================================= */
.hero canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 56px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.hero-heading {
  font-size: clamp(56px, 10vw, 130px);
  font-weight: 800;
  letter-spacing: -4px;
  line-height: 0.92;
  margin: 16px 0 24px;
}

.hero-sub {
  font-size: clamp(16px, 2vw, 22px);
  color: var(--dim);
  margin-bottom: 16px;
  font-weight: 300;
}

.hero-desc {
  font-size: 17px;
  color: var(--dim);
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-bottom: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.hero-stat-number {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1;
}

.hero-stat-label {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 1px;
  margin-top: 6px;
}

.hero-about {
  font-size: 16px;
  color: var(--dim);
  max-width: 520px;
  line-height: 1.7;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

/* =============================================
   BUTTON
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: var(--text);
  color: var(--bg);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: opacity 0.2s;
}

.btn:hover { opacity: 0.85; }

.btn-sm { padding: 12px 24px; font-size: 12px; }

.arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(4px); }

/* =============================================
   WHY NUX
   ============================================= */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.why-item {
  padding: 40px 32px;
  background: var(--card);
  border: 1px solid var(--border);
}

.why-item h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  color: var(--text);
}

.why-item p {
  font-size: 15px;
  color: var(--dim);
  line-height: 1.7;
}

/* =============================================
   APPROACH
   ============================================= */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.approach-num {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--muted);
  margin-bottom: 20px;
}

.approach-step h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.approach-step p {
  font-size: 14px;
  color: var(--dim);
  line-height: 1.7;
}

/* =============================================
   STATS
   ============================================= */
.stats-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.stat-number {
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 900;
  letter-spacing: -3px;
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.4;
}

/* =============================================
   SERVICES
   ============================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.service-item {
  padding: 40px 32px;
  background: var(--card);
  border: 1px solid var(--border);
  transition: background 0.2s;
}

.service-item:hover { background: #111; }

.service-num {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.service-item h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.service-item p {
  font-size: 14px;
  color: var(--dim);
  line-height: 1.7;
  margin-bottom: 20px;
}

.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-list li {
  font-size: 13px;
  color: var(--muted);
  padding-left: 16px;
  position: relative;
}

.service-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--muted);
}

/* =============================================
   TECHNOLOGIES
   ============================================= */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 60px;
}

.tech-group h3 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-tags span {
  font-size: 13px;
  color: var(--dim);
  padding: 6px 14px;
  border: 1px solid var(--border);
  transition: border-color 0.2s, color 0.2s;
}

.tech-tags span:hover {
  border-color: #333;
  color: var(--text);
}

/* =============================================
   PROJECTS PREVIEW
   ============================================= */
.projects-preview {
  display: flex;
  flex-direction: column;
}

.project-preview-item {
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 48px 280px 1fr auto;
  gap: 32px;
  align-items: start;
  transition: background 0.2s;
}

.project-preview-item:hover { background: rgba(255,255,255,0.02); }
.project-preview-item:first-child { border-top: 1px solid var(--border); }

.project-preview-num {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 2px;
  padding-top: 4px;
}

.project-preview-title {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.project-preview-title:hover { color: var(--dim); }

.project-preview-desc {
  font-size: 14px;
  color: var(--dim);
  line-height: 1.6;
  max-width: 480px;
}

.project-preview-stats {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: right;
}

.project-preview-stats span {
  font-size: 12px;
  color: var(--muted);
}

/* =============================================
   WORK PAGE
   ============================================= */
.work-section {
  max-width: 100%;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
}

.bg-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: grayscale(100%) brightness(0.4);
}

.overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(8,8,8,0.75);
  z-index: 1;
}

.work-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 120px 56px;
}

.work-tag {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

.work-title {
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 800;
  letter-spacing: -3px;
  line-height: 0.95;
  margin-bottom: 16px;
}

.work-subtitle {
  font-size: clamp(18px, 2.5vw, 28px);
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  margin-bottom: 40px;
}

.work-challenge { margin-bottom: 24px; }

.work-detail-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.work-desc {
  font-size: 16px;
  color: var(--dim);
  line-height: 1.7;
}

.work-result { margin-top: 32px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.1); }

.work-result-label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.work-result-text {
  font-size: 15px;
  color: var(--text);
  line-height: 1.6;
}

/* =============================================
   CONTACT
   ============================================= */
.contact-section {
  min-height: auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
}

.contact-item { margin-bottom: 32px; }

.contact-item h3 {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.contact-item a, .contact-item p {
  font-size: 18px;
  color: var(--text);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-form input,
.contact-form textarea {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 18px 20px;
  font-family: inherit;
  font-size: 15px;
  outline: none;
  resize: none;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus { border-color: #333; }

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

.contact-steps { margin-top: 48px; }

.contact-step { display: flex; gap: 20px; margin-bottom: 28px; }

.contact-step-num {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 2px;
  padding-top: 2px;
  min-width: 24px;
}

.contact-step h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.contact-step p { font-size: 14px; color: var(--dim); }

/* =============================================
   FOOTER
   ============================================= */
footer {
  padding: 48px 56px;
  border-top: 1px solid var(--border);
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer span { font-size: 13px; color: var(--muted); }
footer a { font-size: 13px; color: var(--dim); transition: color 0.2s; }
footer a:hover { color: var(--text); }

/* =============================================
   ABOUT PAGE
   ============================================= */
.about-hero { min-height: 60vh; display: flex; align-items: flex-end; padding-bottom: 80px; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}

.value-item {
  padding: 40px 32px;
  background: var(--card);
  border: 1px solid var(--border);
}

.value-item h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.value-item p { font-size: 14px; color: var(--dim); line-height: 1.7; }

/* =============================================
   SERVICES PAGE
   ============================================= */
.service-detail {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}

.service-detail h2 { font-size: clamp(28px, 4vw, 48px); font-weight: 800; letter-spacing: -1.5px; margin-bottom: 24px; }
.service-detail p { font-size: 16px; color: var(--dim); line-height: 1.8; margin-bottom: 16px; max-width: 680px; }
.service-detail-includes { margin-top: 32px; }
.service-detail-includes h4 { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.service-detail-includes ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.service-detail-includes li { font-size: 15px; color: var(--dim); padding-left: 20px; position: relative; }
.service-detail-includes li::before { content: '→'; position: absolute; left: 0; color: var(--muted); }
.service-for { margin-top: 24px; font-size: 14px; color: var(--muted); font-style: italic; }

/* =============================================
   FADE IN ANIMATIONS
   ============================================= */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  section { padding: 100px 32px; }
  nav { padding: 20px 32px; }
  nav.scrolled { padding: 14px 32px; }
  .hero-content { padding: 0 32px; }
  .work-content { padding: 80px 32px; }
  footer { padding: 40px 32px; }
  .approach-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .project-preview-item { grid-template-columns: 40px 1fr; }
  .project-preview-desc, .project-preview-stats { display: none; }
}

@media (max-width: 768px) {
  section { padding: 80px 24px; }
  nav { padding: 20px 24px; }
  nav.scrolled { padding: 14px 24px; }
  nav ul.nav-links { display: none; }
  .hamburger { display: flex; }
  .hero-content { padding: 0 24px; }
  .hero-heading { letter-spacing: -2px; }
  .hero-stats { flex-direction: column; gap: 24px; }
  .why-grid { grid-template-columns: 1fr; }
  .approach-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .values-grid { grid-template-columns: 1fr; }
  .work-content { padding: 80px 24px; }
  footer { padding: 32px 24px; flex-direction: column; gap: 16px; text-align: center; }
}

/* Hero background image */
.hero-bg-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.30;
  filter: grayscale(100%);
}

/* Background image sections */
.why-section,
section[style*="background-image"] {
  position: relative;
}
.why-section::before,
section[style*="background-image"]::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(8,8,8,0.82);
  z-index: 0;
}
.why-section > *,
section[style*="background-image"] > * {
  position: relative;
  z-index: 1;
}

/* === Tech Grid Full === */
.tech-grid-full {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 64px;
}

.tech-cat-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.tech-items {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tech-item {
  display: flex;
  flex-direction: column;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: padding-left 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.tech-item:hover {
  padding-left: 8px;
}

.ti-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
  transition: color 0.2s;
}

.tech-item:hover .ti-name {
  color: rgba(255,255,255,0.7);
}

.ti-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

@media (max-width: 1024px) {
  .tech-grid-full { grid-template-columns: repeat(2, 1fr); gap: 36px 40px; }
}
@media (max-width: 768px) {
  .tech-grid-full { grid-template-columns: 1fr; gap: 32px; }
}

/* === Tech Pages === */
.tech-hero {
  padding-top: 160px;
  padding-bottom: 80px;
  min-height: auto;
}

.tech-hero .tech-category-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.tech-hero h1 {
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 800;
  letter-spacing: -3px;
  line-height: 0.95;
  margin-bottom: 24px;
}

.tech-hero .tech-oneliner {
  font-size: 18px;
  color: var(--dim);
  max-width: 560px;
  line-height: 1.7;
}

.tech-body {
  padding-top: 0;
  padding-bottom: 80px;
  min-height: auto;
}

.tech-body h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
  margin-top: 56px;
}

.tech-body h2:first-child {
  margin-top: 0;
}

.tech-body p {
  font-size: 16px;
  color: var(--dim);
  line-height: 1.8;
  max-width: 680px;
  margin-bottom: 16px;
}

.tech-body ul {
  list-style: none;
  margin: 16px 0 32px;
}

.tech-body ul li {
  font-size: 15px;
  color: var(--dim);
  line-height: 1.7;
  padding: 8px 0 8px 20px;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.tech-body ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--muted);
}

.tech-body .results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin: 24px 0 48px;
}

.tech-body .result-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 32px 24px;
}

.tech-body .result-card p {
  font-size: 14px;
  margin: 0;
}

.tech-cta {
  padding: 80px 0;
  border-top: 1px solid var(--border);
  min-height: auto;
}

@media (max-width: 768px) {
  .tech-body .results-grid { grid-template-columns: 1fr; }
}
