/* FUSHEN ELECTRONIC - Dark Tech Theme - Distinct from other sites */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg-dark: #0f172a;
  --bg-card: #1e293b;
  --bg-elevated: #334155;
  --accent: #00d4aa;
  --accent-dim: #0d9488;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --border: rgba(148, 163, 184, 0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

/* Header - Fixed, dark bar */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 1rem 2.5rem;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.05em;
}
.logo:hover { color: var(--text); }
.nav-menu {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}
.nav-menu a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--accent); }
.menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text); }

/* Hero - Full viewport, centered overlay, no split */
.hero-fullscreen {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,0.6) 0%, rgba(15,23,42,0.9) 100%);
  z-index: 1;
}
.hero-slides {
  position: absolute;
  inset: 0;
}
.hero-slides .hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-slides .hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero-slides .hero-slide.active { opacity: 1; z-index: 1; }
.hero-slides .hero-slide img { width: 100%; height: 100%; object-fit: cover; }

.hero-center {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
}
.hero-center .tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.hero-center h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.hero-center p {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 520px;
  margin: 0 auto 2rem;
}
.hero-btn {
  display: inline-block;
  padding: 1rem 2.25rem;
  background: var(--accent);
  color: var(--bg-dark) !important;
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.3s;
}
.hero-btn:hover { background: var(--text); transform: translateY(-2px); }

.hero-dots {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
  z-index: 3;
}
.hero-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.5;
  cursor: pointer;
  transition: all 0.3s;
}
.hero-dots span.active {
  background: var(--accent);
  opacity: 1;
  transform: scale(1.2);
}

/* Section common */
section { padding: 5rem 2.5rem; }
.container { max-width: 1200px; margin: 0 auto; }
.sect-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.sect-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 2.5rem;
}

/* Products - Zigzag alternating layout */
.products-section { background: var(--bg-card); }
.product-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 4rem;
}
.product-row:last-child { margin-bottom: 0; }
.product-row.reverse { direction: rtl; }
.product-row.reverse > * { direction: ltr; }
.product-row .prod-img {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.product-row .prod-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.product-row .prod-img:hover img { transform: scale(1.05); }
.product-row .prod-text h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}
.product-row .prod-text p { color: var(--text-muted); }

/* About - Single large image + text block */
.about-section { background: var(--bg-dark); }
.about-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-img-main {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16/10;
}
.about-img-main img { width: 100%; height: 100%; object-fit: cover; }
.about-intro p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 1.05rem;
}
.about-intro .hero-btn { margin-top: 1rem; }

/* Testimonials - Horizontal cards, dark bordered */
.testimonials-section { background: var(--bg-elevated); }
.testimonial-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: border-color 0.3s;
}
.testimonial-card:hover { border-color: var(--accent); }
.testimonial-card .stars {
  color: #fbbf24;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.testimonial-card p {
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}
.testimonial-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.testimonial-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-dark);
  font-weight: 700;
  font-size: 0.85rem;
}
.testimonial-name { font-weight: 600; color: var(--text); }
.testimonial-role { font-size: 0.85rem; color: var(--text-muted); }

/* Message form - Light accent section */
.message-section {
  background: linear-gradient(135deg, var(--accent-dim) 0%, #0f766e 100%);
  padding: 5rem 2.5rem;
}
.message-section .sect-tag { color: rgba(0,0,0,0.5); }
.message-section .sect-title { color: white; }
.message-form {
  max-width: 560px;
  margin: 2rem auto 0;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: white;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 8px;
  color: white;
  font-family: inherit;
  font-size: 1rem;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.7); }
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: white;
  background: rgba(255,255,255,0.2);
}
.form-group textarea { min-height: 130px; resize: vertical; }
.btn-send {
  padding: 1rem 2.5rem;
  background: white;
  color: var(--accent-dim);
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}
.btn-send:hover { transform: translateY(-2px); box-shadow: 0 4px 20px rgba(0,0,0,0.2); }

/* Footer */
.site-footer {
  background: var(--bg-card);
  padding: 4rem 2.5rem 2rem;
  border-top: 1px solid var(--border);
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}
.footer-logo {
  display: block;
  margin-bottom: 1rem;
}
.footer-logo img { max-height: 48px; }
.footer-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 300px;
  line-height: 1.7;
}
.footer-nav h4,
.footer-contact h4,
.footer-social h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 1rem;
}
.footer-nav ul { list-style: none; }
.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  display: block;
  padding: 0.35rem 0;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--accent); }
.footer-contact p,
.footer-contact a {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
  text-decoration: none;
}
.footer-contact a:hover { color: var(--accent); }
.footer-social-links { display: flex; gap: 0.75rem; }
.footer-social-links a {
  width: 42px; height: 42px;
  background: var(--bg-elevated);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.3s;
}
.footer-social-links a:hover {
  background: var(--accent);
  color: var(--bg-dark);
}
.footer-copy {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.back-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 48px; height: 48px;
  background: var(--accent);
  color: var(--bg-dark);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0.9;
  transition: opacity 0.3s;
  z-index: 999;
  font-size: 1.2rem;
}
.back-top:hover { opacity: 1; }

/* Page header for about/contact */
.page-header {
  padding: 8rem 2.5rem 4rem;
  background: var(--bg-card);
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.page-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.5rem;
}
.page-header p { color: var(--text-muted); }

/* About page */
.about-content {
  padding: 4rem 2.5rem;
  max-width: 900px;
  margin: 0 auto;
}
.about-content p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}
.about-img-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.about-img-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
}

/* Contact page */
.contact-page {
  padding: 4rem 2.5rem 5rem;
  max-width: 700px;
  margin: 0 auto;
}
.contact-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2rem;
  border-radius: 12px;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}
.contact-card .icon {
  width: 56px; height: 56px;
  background: var(--bg-elevated);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent);
  flex-shrink: 0;
}
.contact-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.contact-card p, .contact-card a { color: var(--text-muted); text-decoration: none; }
.contact-card a:hover { color: var(--accent); }

/* Responsive */
@media (max-width: 1024px) {
  .product-row { grid-template-columns: 1fr; gap: 2rem; }
  .product-row.reverse { direction: ltr; }
  .about-layout { grid-template-columns: 1fr; }
  .testimonial-cards { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .site-header { padding: 0.75rem 1.5rem; }
  .nav-menu {
    position: fixed;
    top: 0; right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--bg-card);
    flex-direction: column;
    padding: 5rem 2rem;
    transition: right 0.3s;
    border-left: 1px solid var(--border);
  }
  .nav-menu.open { right: 0; }
  .menu-toggle { display: block; z-index: 201; }
  section { padding: 3rem 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-desc { max-width: none; }
  .footer-social-links { justify-content: center; }
  .about-img-grid { grid-template-columns: 1fr; }
}
