/* KUJI ELECTRONIC - Dark Tech Theme - Unique Bento Layout */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Syne:wght@600;700;800&display=swap');

:root {
  --bg-dark: #0a0e17;
  --bg-card: #121827;
  --bg-elevated: #1a2235;
  --accent-blue: #0ea5e9;
  --accent-cyan: #22d3ee;
  --accent-glow: rgba(14, 165, 233, 0.3);
  --text-primary: #f1f5f9;
  --text-muted: #94a3b8;
  --border-subtle: rgba(148, 163, 184, 0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Header - Fixed minimal bar */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem 2.5rem;
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}
.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-family: 'Syne', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.logo span { color: var(--accent-cyan); }
.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-cyan); }
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-primary);
}
.site-header.page-header {
  position: relative;
  background: var(--bg-dark);
}

/* Hero - Full viewport vertical center */
.hero-full {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}
.hero-bg-carousel {
  position: absolute;
  inset: 0;
}
.hero-bg-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero-bg-slide.active { opacity: 1; z-index: 0; }
.hero-bg-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-bg-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,14,23,0.7) 0%, rgba(10,14,23,0.95) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}
.hero-content .badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(14, 165, 233, 0.2);
  color: var(--accent-cyan);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(14, 165, 233, 0.3);
}
.hero-content h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}
.hero-content p {
  color: var(--text-muted);
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.hero-btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
  color: var(--bg-dark) !important;
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}
.hero-dots {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
  z-index: 2;
}
.hero-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: all 0.3s;
}
.hero-dots span.active {
  background: var(--accent-cyan);
  width: 28px;
  border-radius: 5px;
}

/* Section common */
section { padding: 5rem 2rem; }
.container-wide { max-width: 1280px; margin: 0 auto; }
.sect-badge {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--accent-cyan);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}
.sect-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 2.5rem;
  letter-spacing: -0.02em;
}

/* Products - Bento grid (unique layout) */
.products-section {
  background: var(--bg-card);
  padding: 6rem 2rem;
}
.products-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
}
.bento-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1;
}
.bento-item:nth-child(1) { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; min-height: 320px; }
.bento-item:nth-child(4) { grid-column: span 2; }
.bento-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.bento-item:hover img { transform: scale(1.06); }
.bento-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.5rem 1.25rem;
  background: linear-gradient(transparent, rgba(10,14,23,0.95));
  color: white;
}
.bento-caption h3 { font-size: 1.1rem; margin-bottom: 0.25rem; font-weight: 600; }
.bento-caption p { font-size: 0.85rem; color: var(--text-muted); }
.bento-item::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  pointer-events: none;
  z-index: 1;
}

/* About - Alternating bento */
.about-section {
  background: var(--bg-dark);
  padding: 6rem 2rem;
}
.about-bento {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
.about-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.75rem;
}
.about-images .img-main {
  grid-column: span 2;
  grid-row: span 2;
  height: 100%;
  min-height: 280px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--border-subtle);
}
.about-images .img-sub {
  border-radius: 12px;
  height: 140px;
  object-fit: cover;
  border: 1px solid var(--border-subtle);
}
.about-text .sect-badge { margin-bottom: 0.5rem; }
.about-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

/* Testimonials - Horizontal cards with accent bar */
.testimonials-section {
  background: var(--bg-elevated);
  padding: 6rem 2rem;
}
.testimonials-stack {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.testimonial-card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  position: relative;
  transition: border-color 0.3s, transform 0.2s;
}
.testimonial-card:hover {
  border-color: rgba(14, 165, 233, 0.4);
  transform: translateY(-4px);
}
.testimonial-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent-blue), var(--accent-cyan));
  border-radius: 12px 0 0 12px;
}
.testimonial-stars {
  color: #fbbf24;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.testimonial-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.testimonial-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--bg-dark);
}
.testimonial-name { font-weight: 600; }
.testimonial-role { font-size: 0.85rem; color: var(--text-muted); }

/* Message form - Card style on dark */
.message-section {
  background: var(--bg-dark);
  padding: 6rem 2rem;
}
.message-wrap {
  max-width: 560px;
  margin: 0 auto;
  background: var(--bg-card);
  padding: 3rem;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
}
.message-form .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.4rem;
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); opacity: 0.6; }
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.btn-send {
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
  color: var(--bg-dark);
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-send:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--accent-glow);
}

/* Footer */
.site-footer {
  background: var(--bg-card);
  padding: 4rem 2rem 2rem;
  border-top: 1px solid var(--border-subtle);
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}
.footer-logo {
  font-family: 'Syne', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  display: block;
  margin-bottom: 1rem;
}
.footer-logo span { color: var(--accent-cyan); }
.footer-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 300px;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.footer-social h4,
.footer-nav h4,
.footer-contact h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-cyan);
  margin-bottom: 1rem;
}
.footer-social-links {
  display: flex;
  gap: 0.75rem;
}
.footer-social-links a {
  width: 40px; height: 40px;
  background: var(--bg-elevated);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: background 0.3s, color 0.3s;
}
.footer-social-links a:hover {
  background: var(--accent-cyan);
  color: var(--bg-dark);
}
.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-cyan); }
.footer-contact p,
.footer-contact a {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  text-decoration: none;
}
.footer-contact a:hover { color: var(--accent-cyan); }
.footer-copy {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.back-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 48px; height: 48px;
  background: var(--accent-cyan);
  color: var(--bg-dark);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: bold;
  transition: transform 0.2s, box-shadow 0.2s;
  z-index: 999;
}
.back-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px var(--accent-glow);
}

/* About page */
.page-hero {
  height: 45vh;
  min-height: 300px;
  position: relative;
  overflow: hidden;
  margin-top: 0;
}
.page-hero img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,14,23,0.5), rgba(10,14,23,0.9));
}
.page-hero h1 {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: white;
  z-index: 1;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.about-content {
  padding: 4rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}
.about-content h2 {
  font-family: 'Syne', sans-serif;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}
.about-content p { color: var(--text-muted); margin-bottom: 1rem; }
.about-img-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.about-img-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
}

/* Contact page */
.contact-page {
  padding: 8rem 2rem 5rem;
  max-width: 800px;
  margin: 0 auto;
}
.contact-page h1 {
  font-family: 'Syne', sans-serif;
  font-size: 2.5rem;
  color: var(--text-primary);
  margin-bottom: 2.5rem;
  text-align: center;
}
.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.contact-card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
}
.contact-card .icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--bg-dark);
}
.contact-card h3 { font-size: 1rem; color: var(--text-primary); margin-bottom: 0.5rem; }
.contact-card p, .contact-card a { color: var(--text-muted); text-decoration: none; }
.contact-card a:hover { color: var(--accent-cyan); }

/* Responsive */
@media (max-width: 1100px) {
  .products-bento { grid-template-columns: repeat(2, 1fr); }
  .bento-item:nth-child(1) { grid-column: span 2; grid-row: span 1; aspect-ratio: 2/1; min-height: auto; }
  .bento-item:nth-child(4) { grid-column: span 1; }
}
@media (max-width: 968px) {
  .about-bento { grid-template-columns: 1fr; }
  .about-images .img-main { grid-column: span 2; grid-row: span 1; min-height: 200px; }
  .testimonials-stack { grid-template-columns: 1fr; }
  .message-form .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .products-bento { grid-template-columns: 1fr; }
  .bento-item:nth-child(1), .bento-item:nth-child(4) { grid-column: 1; aspect-ratio: 4/3; }
}
@media (max-width: 768px) {
  .site-header { padding: 1rem 1.5rem; }
  .nav-menu {
    position: fixed;
    top: 0; right: -100%;
    width: 75%;
    max-width: 280px;
    height: 100vh;
    background: var(--bg-card);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    transition: right 0.3s;
    box-shadow: -4px 0 30px rgba(0,0,0,0.5);
    border-left: 1px solid var(--border-subtle);
  }
  .nav-menu.open { right: 0; }
  .menu-toggle { display: block; z-index: 101; }
  section { padding: 4rem 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-desc { max-width: none; }
  .footer-social-links { justify-content: center; }
  .contact-cards { grid-template-columns: 1fr; }
  .about-img-grid { grid-template-columns: 1fr; }
  .message-wrap { padding: 2rem 1.5rem; }
}
