/* ============================================================
   Q360 AUTO — ELEVATED BRUTALISM STYLESHEET
   Tech Business Consulting · AI Transformation Lead
   ============================================================ */

:root {
  --bg:           #050505;
  --bg-2:         #0d0d0d;
  --bg-3:         #111111;
  --text:         #f0f0f0;
  --text-muted:   #4a4a4a;
  --text-dim:     #2a2a2a;
  --accent:       #00ff94;
  --accent-dim:   rgba(0, 255, 148, 0.12);
  --accent-2:     #7b2fff;
  --accent-2-dim: rgba(123, 47, 255, 0.15);
  --border:       #1a1a1a;
  --border-2:     #252525;
  --nav-h:        72px;
  --ease:         cubic-bezier(0.77, 0, 0.18, 1);
  --transition:   0.85s var(--ease);
  --sections:     5;
  --font-head:    'Space Grotesk', sans-serif;
  --font-mono:    'Space Mono', monospace;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-head);
  cursor: none;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
button { border: none; background: none; font-family: inherit; }

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
.cursor-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
}

.cursor-ring {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(0, 255, 148, 0.35);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, border-color 0.3s;
}

.cursor-ring.hovered {
  width: 52px;
  height: 52px;
  border-color: rgba(0, 255, 148, 0.7);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  border-bottom: 1px solid var(--border);
  background: rgba(5, 5, 5, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--text);
}
.nav-logo .accent { color: var(--accent); }

.nav-sections {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-2);
  cursor: pointer;
  transition: all 0.35s ease;
  border: none;
}
.nav-dot.active {
  background: var(--accent);
  width: 22px;
  border-radius: 3px;
}
.nav-dot:hover:not(.active) {
  background: var(--text-muted);
}

.nav-counter {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}
.nav-counter .current-section { color: var(--accent); }
.nav-counter .sep { margin: 0 4px; }

/* ============================================================
   VIEWPORT LOCK & SECTIONS WRAPPER
   ============================================================ */
.viewport-lock {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0; bottom: 0;
  overflow: hidden;
}

.sections-wrapper {
  display: flex;
  height: 100%;
  width: calc(100% * var(--sections));
  transform: translateX(0%);
  transition: transform var(--transition);
  will-change: transform;
}

.section {
  width: calc(100% / var(--sections));
  height: 100%;
  flex-shrink: 0;
  padding: 48px 56px 44px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Shared accent text */
.accent-text { color: var(--accent); }

/* Shared section header */
.section-header { margin-bottom: 36px; }
.section-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(36px, 4.5vw, 62px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.025em;
}

/* ============================================================
   SECTION 01 — HERO
   ============================================================ */
.section-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 80px;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.55;
  pointer-events: none;
}

.hero-noise {
  position: absolute;
  inset: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--text-muted);
  margin-bottom: 28px;
  /* entrance animation initial state */
  opacity: 0;
  transform: translateY(20px);
}

.hero-title {
  font-size: clamp(80px, 14vw, 168px);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
  user-select: none;
}
.title-line {
  display: block;
  will-change: transform;
  transition: transform 0.25s ease-out;
  /* entrance animation initial state */
  opacity: 0;
  transform: translateY(28px);
}

.hero-descriptor {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(16px);
}
.x-mark {
  color: var(--accent);
  font-size: 18px;
}

.hero-tagline {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 300;
  line-height: 1.45;
  max-width: 440px;
  margin-bottom: 48px;
  opacity: 0;
  transform: translateY(16px);
}
.hero-tagline em {
  font-style: normal;
  color: var(--accent);
  font-weight: 600;
}

.btn-explore {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  padding: 15px 32px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 0.35s;
  /* entrance animation initial state */
  opacity: 0;
  transform: translateY(20px);
}
.btn-explore::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
  z-index: 0;
}
.btn-explore:hover::before { transform: scaleX(1); }
.btn-explore:hover { color: var(--bg); }
.btn-explore span, .btn-explore svg { position: relative; z-index: 1; }
.btn-explore svg { width: 15px; height: 15px; }

.hero-hint {
  position: absolute;
  bottom: 28px;
  right: 56px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.28em;
  color: var(--text-dim);
}

.hero-side-label {
  position: absolute;
  right: 56px;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: center center;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.3em;
  color: var(--text-dim);
  white-space: nowrap;
}

/* ============================================================
   SECTION 02 — SERVICES (BENTO GRID)
   ============================================================ */
.section-services {
  display: flex;
  flex-direction: column;
}

.bento-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  flex: 1;
}

.bento-item {
  border: 1px solid var(--border-2);
  background: var(--bg-2);
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.3s ease, background 0.3s ease;
  overflow: hidden;
}
.bento-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), var(--accent-dim), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.bento-item:hover::before { opacity: 1; }
.bento-item:hover { border-color: rgba(0, 255, 148, 0.35); }

.bento-large {
  grid-row: span 2;
}
.bento-wide {
  grid-column: span 2;
}
.bento-accent {
  background: var(--accent-2-dim);
  border-color: rgba(123, 47, 255, 0.25) !important;
}
.bento-accent:hover {
  border-color: rgba(123, 47, 255, 0.6) !important;
}
.bento-accent .bento-tag {
  color: var(--accent-2);
  border-color: rgba(123, 47, 255, 0.4);
}

.bento-num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.bento-item h3 {
  font-size: clamp(14px, 1.4vw, 19px);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 12px;
}
.bento-large h3 {
  font-size: clamp(20px, 2.2vw, 30px);
}

.bento-item p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

.bento-tag {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.22em;
  color: var(--accent);
  border: 1px solid rgba(0, 255, 148, 0.3);
  padding: 4px 9px;
  display: inline-block;
  margin-top: 18px;
  align-self: flex-start;
}

/* ============================================================
   SECTION 03 — APPROACH
   ============================================================ */
.section-approach {
  display: flex;
  flex-direction: column;
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border-2);
  flex: 1;
}

.approach-step {
  padding: 36px 32px 32px;
  border-right: 1px solid var(--border-2);
  background: var(--bg-2);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: background 0.3s ease;
}
.approach-step:last-child { border-right: none; }
.approach-step:hover { background: rgba(0, 255, 148, 0.025); }

.step-num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--text-dim);
  margin-bottom: 48px;
}

.approach-step h3 {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 16px;
}

.approach-step p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}

.step-arrow {
  position: absolute;
  bottom: 28px;
  right: 28px;
  font-size: 20px;
  color: var(--border-2);
  font-family: var(--font-mono);
  transition: color 0.3s;
}
.approach-step:hover .step-arrow { color: var(--text-muted); }
.step-arrow.final { color: var(--accent) !important; }

.approach-tagline {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* ============================================================
   SECTION 04 — IMPACT
   ============================================================ */
.section-impact {
  display: flex;
  flex-direction: column;
}

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

.stat-block {
  border: 1px solid var(--border-2);
  background: var(--bg-2);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease;
}
.stat-block::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.stat-block:hover { background: rgba(0, 255, 148, 0.02); }
.stat-block:hover::after { transform: scaleX(1); }

.stat-row {
  display: flex;
  align-items: baseline;
  line-height: 1;
  margin-bottom: 12px;
}
.stat-number {
  font-family: var(--font-mono);
  font-size: clamp(52px, 7vw, 88px);
  font-weight: 700;
  color: var(--text);
}
.stat-suffix {
  font-family: var(--font-mono);
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 700;
  color: var(--accent);
  margin-left: 4px;
}
.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.industries-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  margin-top: 18px;
}
.industries-bar span {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 5px 11px;
  transition: all 0.25s ease;
  cursor: default;
}
.industries-bar span:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

/* ============================================================
   SECTION 05 — CONTACT
   ============================================================ */
.section-contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr auto;
  gap: 0 60px;
  position: relative;
}

.contact-content {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-title {
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin: 14px 0 24px;
}

.contact-sub {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 44px;
}

.contact-timestamp {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--accent);
}

.contact-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  padding: 17px 34px;
  transition: all 0.3s ease;
}
.btn-primary svg { width: 15px; height: 15px; }
.btn-primary:hover {
  background: var(--text);
  transform: translate(-3px, -3px);
  box-shadow: 5px 5px 0 var(--accent);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-2);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  padding: 17px 34px;
  transition: all 0.3s ease;
}
.btn-secondary:hover {
  border-color: var(--text);
  background: rgba(240, 240, 240, 0.04);
}

.contact-details {
  display: flex;
  gap: 48px;
}
.contact-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.contact-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.25em;
  color: var(--text-dim);
}
.contact-value {
  font-size: 14px;
  color: var(--text-muted);
}

/* ORB */
.contact-visual {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orb-outer {
  width: min(280px, 22vw);
  height: min(280px, 22vw);
  border: 1px solid var(--border-2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: spin-slow 25s linear infinite;
}
.orb-outer::before {
  content: '';
  position: absolute;
  width: 115%;
  height: 115%;
  border-radius: 50%;
  border: 1px solid transparent;
  border-top-color: var(--accent);
  border-bottom-color: rgba(0, 255, 148, 0.2);
  animation: spin-slow 12s linear infinite reverse;
}
.orb-outer::after {
  content: '';
  position: absolute;
  width: 85%;
  height: 85%;
  border-radius: 50%;
  border: 1px solid rgba(123, 47, 255, 0.3);
  border-left-color: transparent;
  animation: spin-slow 18s linear infinite;
}

.orb-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: spin-slow 25s linear infinite reverse;
}
.orb-text {
  font-family: var(--font-mono);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.1em;
  line-height: 1;
}
.orb-sub {
  font-family: var(--font-mono);
  font-size: clamp(10px, 1.2vw, 14px);
  color: var(--accent);
  letter-spacing: 0.35em;
  margin-top: 4px;
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.site-footer {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--text-dim);
}

/* ============================================================
   ARROW NAVIGATION
   ============================================================ */
.nav-arrows {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 200;
}

.nav-arrow {
  width: 46px;
  height: 46px;
  border: 1px solid var(--border-2);
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(10px);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}
.nav-arrow:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}
.nav-arrow:disabled {
  opacity: 0.18;
  cursor: not-allowed;
}
.nav-arrow svg { width: 17px; height: 17px; }

/* ============================================================
   PROGRESS BAR
   ============================================================ */
.progress-track {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border);
  z-index: 200;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width var(--transition);
}

/* ============================================================
   RESPONSIVE — TABLET & MOBILE
   ============================================================ */
@media (max-width: 900px) {
  .main-nav { padding: 0 20px; }
  .section { padding: 36px 24px 36px; }
  .section-hero { padding: 36px 28px; }
  .hero-side-label { display: none; }

  .bento-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .bento-large { grid-row: auto; grid-column: span 2; }
  .bento-wide  { grid-column: span 2; }

  .approach-grid { grid-template-columns: 1fr 1fr; }
  .approach-step { border-right: none; border-bottom: 1px solid var(--border-2); }
  .approach-step:nth-child(odd) { border-right: 1px solid var(--border-2); }

  .stats-grid { grid-template-columns: 1fr 1fr; }

  .section-contact {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  .contact-visual { grid-column: 1; grid-row: 2; justify-content: flex-start; }
  .site-footer    { grid-row: 3; }
}

@media (max-width: 600px) {
  :root { --nav-h: 60px; }

  .hero-title { font-size: clamp(60px, 18vw, 96px); }
  .approach-grid { grid-template-columns: 1fr; }
  .approach-step { border-right: none !important; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 6px; }
  .industries-bar { display: none; }
  .contact-visual { display: none; }
  .section-contact { grid-template-columns: 1fr; }
}

/* ============================================================
   VERSION BADGE
   ============================================================ */
.site-version {
  position: fixed;
  bottom: 10px;
  right: 16px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  z-index: 199;
  pointer-events: none;
  user-select: none;
}

/* ============================================================
   SECTION IMAGES — proximity focus reveal
   ============================================================ */
.section-img-wrap {
  position: absolute;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}

.section-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  --img-focus: 0;
  filter: blur(calc(14px * (1 - var(--img-focus))))
          brightness(calc(0.18 + 0.42 * var(--img-focus)));
  opacity: calc(0.5 + 0.5 * var(--img-focus));
  transform: scale(calc(1.08 - 0.08 * var(--img-focus)));
  transition: filter 0.55s ease, opacity 0.55s ease, transform 0.55s ease;
}

/* Per-section placements */
.img-hero     { right: 0;   top: 0;    width: 40%; height: 100%; }
.img-services { right: 0;   bottom: 0; width: 34%; height: 46%;  }
.img-approach { right: 0;   top: 0;    width: 38%; height: 38%;  }
.img-impact   { right: 0;   top: 0;    width: 30%; height: 100%; }
.img-contact  { right: 0;   top: 0;    width: 50%; height: 100%; }

/* Fade the image edge inward so it blends with the dark section */
.img-hero::after,
.img-services::after,
.img-approach::after,
.img-impact::after,
.img-contact::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--bg) 0%, transparent 40%);
  pointer-events: none;
}

.img-services::after { background: linear-gradient(to top, var(--bg) 0%, transparent 40%); }
.img-approach::after { background: linear-gradient(to bottom, var(--bg) 0%, transparent 40%); }

@media (max-width: 600px) {
  .section-img-wrap { display: none; }
}
