/* ==========================================================================
   NM INNOVATION HUB — Home Page
   ========================================================================== */

/* ── Hero Section ───────────────────────────────────────────────────────── */
.hero,
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--navbar-height);
  padding-bottom: var(--space-3xl);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 800px 600px at 35% 40%, rgba(0, 168, 255, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 600px 500px at 70% 60%, rgba(157, 0, 255, 0.04) 0%, transparent 70%),
    var(--color-navy-800);
}

/* Perspective grid pattern (Tron-like) */
.hero::before,
.hero-section::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: -50%;
  width: 200%;
  height: 60%;
  background-image:
    linear-gradient(rgba(0, 168, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 168, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: perspective(500px) rotateX(60deg);
  transform-origin: center bottom;
  pointer-events: none;
  z-index: 0;
  mask-image: linear-gradient(to top, rgba(0,0,0,0.3) 0%, transparent 80%);
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.3) 0%, transparent 80%);
}

.hero-inner,
.hero-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: var(--space-xl);
  width: 100%;
  position: relative;
  z-index: 10;
}

/* ── Hero Content ────────────────────────────────────────────────── */
.hero-content {
  max-width: 800px;
  position: relative;
  z-index: var(--z-base);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-cyan-500);
  background: rgba(0, 168, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 8px 20px;
  border-radius: 50px;
  margin-bottom: var(--space-lg);
  border: 1px solid rgba(0, 168, 255, 0.2);
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-cyan-500);
  box-shadow: 0 0 12px var(--color-cyan-glow);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.7);
  }
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  line-height: var(--lh-tight);
  margin-bottom: var(--space-lg);
  color: var(--color-text-primary);
  font-weight: 700;
}

.hero-title .highlight {
  color: var(--color-cyan-500);
  text-shadow: 0 0 30px var(--color-cyan-glow);
}

.hero-subtitle {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: var(--color-text-secondary);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Hero Buttons ───────────────────────────────────────────────────────── */
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

/* ── Hero Stats ─────────────────────────────────────────────────────────── */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-3xl);
  margin-top: var(--space-2xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid rgba(26, 42, 68, 0.6);
  background: rgba(5, 10, 20, 0.3);
  border-radius: var(--border-radius-md);
  padding: var(--space-xl) var(--space-2xl);
}

.hero-stat {
  display: flex;
  flex-direction: column;
}

.hero-stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--color-cyan-500);
  line-height: 1;
  margin-bottom: 6px;
  text-shadow: 0 0 20px var(--color-cyan-glow), 0 0 40px rgba(0, 168, 255, 0.1);
}

.hero-stat-label {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--font-mono);
}

/* ── Hero Visual (Right) ───────────────────────────────────────────────── */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

/* ── Hero HUD Labels ────────────────────────────────────────────────────── */
.hero-hud-label {
  position: absolute;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--color-text-dim);
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 12px;
  border: 1px solid var(--color-navy-400);
  border-radius: var(--border-radius-sm);
  background: rgba(15, 26, 46, 0.7);
  backdrop-filter: blur(8px);
  white-space: nowrap;
}

.hero-hud-label--top {
  top: 10%;
  right: 5%;
}

.hero-hud-label--bottom {
  bottom: 15%;
  left: 5%;
}

/* ── Services Preview Section ───────────────────────────────────────────── */
.services-preview {
  padding: var(--space-section) 0;
  position: relative;
}

.services-preview-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.services-preview-header .section-label {
  justify-content: center;
}

.services-preview-header .section-title {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.services-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

/* ── Service Preview Card Overrides ─────────────────────────────────────── */
.service-preview-card {
  text-align: center;
  padding: var(--space-2xl) var(--space-xl);
  position: relative;
  overflow: hidden;
}

/* Large faded index number in background */
.service-preview-card::before {
  content: attr(data-index);
  position: absolute;
  top: var(--space-md);
  right: var(--space-lg);
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 800;
  color: var(--color-navy-400);
  line-height: 1;
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
  transition: opacity var(--transition-base);
}

.service-preview-card:hover::before {
  opacity: 0.08;
  color: var(--color-cyan-500);
}

.service-preview-card .card-icon {
  margin-left: auto;
  margin-right: auto;
  width: 48px;
  height: 48px;
  font-size: 1.5rem;
  border-radius: var(--border-radius-md);
  background: linear-gradient(135deg, rgba(0, 168, 255, 0.12) 0%, rgba(0, 168, 255, 0.04) 100%);
  border: 1px solid rgba(0, 168, 255, 0.1);
}

.service-preview-card .card-title {
  margin-bottom: var(--space-sm);
}

.service-preview-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--space-md);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--color-cyan-500);
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: gap var(--transition-fast);
}

.service-preview-card:hover .card-link {
  gap: 10px;
}

/* ── Section CTA (link under grid) ─────────────────────────────────────── */
.section-cta {
  text-align: center;
  margin-top: var(--space-2xl);
}

/* ── Testimonials Section ───────────────────────────────────────────────── */
.testimonials,
.testimonials-section {
  padding: var(--space-section) 0;
  position: relative;
}

.testimonials-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.testimonials-header .section-label {
  justify-content: center;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-bottom: var(--space-4xl);
}

/* ── Testimonial Card ───────────────────────────────────────────────────── */
.testimonial-card {
  background: rgba(15, 26, 46, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(26, 42, 68, 0.8);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-smooth);
  /* Subtle left accent line */
  border-left: 3px solid rgba(0, 168, 255, 0.3);
}

.testimonial-card:hover {
  border-color: rgba(0, 168, 255, 0.3);
  border-left-color: var(--color-cyan-500);
  box-shadow: 0 12px 40px rgba(0, 168, 255, 0.08);
  transform: translateY(-4px);
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  margin-bottom: var(--space-xs);
}

/* Large quote mark in top-right */
.testimonial-quote-icon {
  position: absolute;
  top: var(--space-md);
  right: var(--space-lg);
  font-size: 3.5rem;
  color: var(--color-cyan-500);
  opacity: 0.12;
  line-height: 1;
  font-family: Georgia, serif;
  pointer-events: none;
}

.testimonial-text {
  font-style: normal;
  font-weight: 400;
  color: var(--color-text-secondary);
  line-height: 1.75;
  font-size: var(--fs-body);
  flex: 1;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-navy-400);
  margin-top: auto;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-cyan-dim);
  border: 2px solid var(--color-cyan-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--color-cyan-500);
  overflow: hidden;
  box-shadow: 0 0 12px var(--color-cyan-glow);
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-author-info {
  display: flex;
  flex-direction: column;
}

.testimonial-author-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-small);
  color: var(--color-text-primary);
}

.testimonial-author-role {
  font-size: var(--fs-xs);
  color: var(--color-cyan-500);
}

/* ── Clients Marquee Section ────────────────────────────────────────────── */
.clients-section {
  padding: var(--space-3xl) 0;
  position: relative;
}

.clients-section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

/* ── CTA Final Section ──────────────────────────────────────────────────── */
.cta-section {
  padding: var(--space-section) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-content {
  max-width: 640px;
  margin: 0 auto;
}

.cta-section .section-label {
  justify-content: center;
}

.cta-title {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  margin-bottom: var(--space-lg);
  line-height: var(--lh-tight);
}

.cta-description {
  color: var(--color-text-secondary);
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-xl);
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
}

/* ── CTA Background Glow ───────────────────────────────────────────────── */
.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(0, 168, 255, 0.06) 0%,
    transparent 70%
  );
  pointer-events: none;
  border-radius: 50%;
}
