/* ═══════════════════════════════════════════════
   EM LABS — Home Page Styles
   ═══════════════════════════════════════════════ */

/* ── Hero Section ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 24px 80px;
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease;
  pointer-events: none;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}



.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  /* Dark, tuff gradient overlay for better blending and contrast */
  background: linear-gradient(
    to bottom,
    rgba(8, 13, 26, 0.4) 0%,
    rgba(8, 13, 26, 0.8) 100%
  );
  z-index: 1;
}

.hero-bg .circuit-grid {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  z-index: 2;
  filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.3));
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(123, 47, 255, 0.05) 0%, transparent 50%);
  z-index: 3;
}

#particles-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.hero-left {
  max-width: 600px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid var(--color-border);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  margin-bottom: 20px;
  color: #fff;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin-bottom: 32px;
  max-width: 480px;
  line-height: 1.7;
}

@media (max-width: 1024px) {
  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }
}

.hero-ctas {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

@media (max-width: 1024px) {
  .hero-ctas {
    justify-content: center;
  }
}

.trust-badges {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--color-text-dark);
}

@media (max-width: 1024px) {
  .trust-badges {
    justify-content: center;
  }
}

.trust-badges .sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-text-dark);
}

.trust-badges strong {
  color: var(--color-primary);
  font-weight: 600;
}

.hero-right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-pcb {
  width: 100%;
  max-width: 500px;
  position: relative;
}

.hero-pcb img {
  width: 100%;
  border-radius: 20px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(0, 212, 255, 0.1);
  border: 1px solid var(--color-border);
}

.hero-pcb::before {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: 28px;
  border: 1px solid var(--color-border);
  opacity: 0.3;
  animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.5; }
}

/* ── Stats Section ── */
.stats-section {
  padding: 80px 24px;
  position: relative;
}

.stats-bar {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--color-surface);
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  overflow: hidden;
}

@media (max-width: 768px) {
  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat-item {
  padding: 40px 24px;
  text-align: center;
  position: relative;
}

.stat-item::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  bottom: 20%;
  width: 1px;
  background: var(--color-border);
}

.stat-item:last-child::after {
  display: none;
}

@media (max-width: 768px) {
  .stat-item:nth-child(2)::after {
    display: none;
  }
  .stat-item:nth-child(1)::after,
  .stat-item:nth-child(3)::after {
    right: auto;
    left: 0;
    top: auto;
    bottom: 0;
    width: auto;
    height: 1px;
    right: 10%;
    left: 10%;
  }
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Services Section ── */
.services-section {
  padding: 100px 24px;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

.section-header h2 {
  margin-bottom: 16px;
  color: #fff;
}

.section-header p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.services-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-smooth);
  cursor: default;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-smooth);
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  position: relative;
}

.service-icon svg {
  width: 28px;
  height: 28px;
  color: var(--color-primary);
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: #fff;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ── About Section ── */
.about-section {
  padding: 100px 24px;
  position: relative;
}

.about-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 900px) {
  .about-content {
    grid-template-columns: 1fr;
  }
}

.about-left h2 {
  color: #fff;
  margin-bottom: 24px;
}

.about-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-btn);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all var(--transition-smooth);
}

.about-item:hover {
  background: rgba(0, 212, 255, 0.03);
  border-color: var(--color-border);
}

.about-item .check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 212, 255, 0.15);
  border: 1px solid rgba(0, 212, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.about-item .check svg {
  width: 14px;
  height: 14px;
  color: var(--color-primary);
}

.about-item span {
  color: var(--color-text);
  font-size: 0.95rem;
  line-height: 1.6;
}

.about-right {
  position: relative;
}

.about-visual {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.about-visual::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  animation: scanLine 3s ease-in-out infinite;
}

@keyframes scanLine {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.visual-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.visual-row:last-child {
  border-bottom: none;
}

.visual-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.visual-icon svg {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
}

.visual-text h4 {
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 2px;
}

.visual-text p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ── Industries Section ── */
.industries-section {
  padding: 100px 24px;
  position: relative;
}

.industries-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .industries-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .industries-grid {
    grid-template-columns: 1fr;
  }
}

.industry-card {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  padding: 32px;
  text-align: center;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.industry-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(123, 47, 255, 0.05));
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.industry-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-border-hover);
}

.industry-card:hover::before {
  opacity: 1;
}

.industry-card .industry-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.industry-card h4 {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.industry-card p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  position: relative;
  z-index: 1;
}

/* ── Featured Products ── */
.featured-section {
  padding: 100px 24px;
  position: relative;
}

.featured-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 1024px) {
  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .featured-grid {
    grid-template-columns: 1fr;
  }
}

.featured-card {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: all var(--transition-smooth);
}

.featured-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-primary);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(0, 212, 255, 0.1);
}

.featured-card .card-img-wrap {
  height: 200px;
  background: #080D1A;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.featured-card .card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: transform var(--transition-smooth);
}

.featured-card:hover .card-img-wrap img {
  transform: scale(1.05);
}

.featured-card .card-info {
  padding: 24px;
}

.featured-card h4 {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 12px;
}

.featured-card .card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.featured-card .card-specs span {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  background: rgba(0, 212, 255, 0.08);
  color: var(--color-primary);
  border: 1px solid var(--color-border);
}

.featured-card .btn-view {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-btn);
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-primary);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition-smooth);
  text-decoration: none;
}

.featured-card .btn-view:hover {
  background: rgba(0, 212, 255, 0.1);
  border-color: var(--color-primary);
}

.featured-cta {
  text-align: center;
  margin-top: 48px;
}

/* ── Contact CTA Section ── */
.cta-section {
  padding: 120px 24px;
  position: relative;
  text-align: center;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(0, 212, 255, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: #fff;
  margin-bottom: 16px;
}

.cta-content p {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: 36px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.cta-contact-info {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.cta-contact-item svg {
  width: 18px;
  height: 18px;
  color: var(--color-primary);
}
