/* ===== RAGA 瑞基 - Complete Multi-page Styles ===== */
:root {
  --primary: #E70033;
  --primary-dark: #C4002A;
  --dark: #1A1A2E;
  --dark-2: #16213E;
  --gray-100: #F8F9FA;
  --gray-200: #E9ECEF;
  --gray-300: #DEE2E6;
  --gray-400: #CED4DA;
  --gray-500: #ADB5BD;
  --gray-600: #6C757D;
  --gray-700: #495057;
  --white: #FFFFFF;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 6px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== Top Bar ===== */
.top-bar {
  background: var(--dark);
  color: var(--gray-400);
  font-size: 13px;
  padding: 8px 0;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar a {
  color: var(--gray-400);
  text-decoration: none;
  margin-left: 20px;
  transition: color 0.3s;
}
.top-bar a:hover { color: var(--white); }
.top-bar .lang-switch a { margin-left: 8px; }

/* ===== Header ===== */
.header {
  background: var(--white);
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 48px; width: auto; }
.logo-text {
  margin-left: 12px;
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
}
.logo-text span { font-size: 13px; font-weight: 400; color: var(--gray-600); display: block; }
.header-qr { margin-left: 20px; flex-shrink: 0; }
.header-qr img { display: block; width: 64px; height: 64px; border-radius: 6px; border: 1px solid var(--gray-200); }
.logo-text span { font-size: 12px; font-weight: 400; color: var(--gray-600); display: block; }

/* ===== Navigation ===== */
.nav { display: flex; align-items: center; gap: 32px; }
.nav a {
  text-decoration: none;
  color: var(--dark);
  font-size: 15px;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
  transition: color 0.3s;
}
.nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s;
}
.nav a:hover::after, .nav a.active::after { width: 100%; }

/* ===== Dropdown Navigation ===== */
.nav-dd {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dd > a {
  text-decoration: none;
  color: var(--dark);
  font-size: 15px;
  font-weight: 600;
  position: relative;
  padding: 4px 0;
  transition: color 0.3s;
  border-bottom: 2px solid transparent;
  padding-bottom: 4px;
}

.nav-dd:hover > a, .nav-dd > a.active { color: var(--primary); border-bottom-color: var(--primary); }

/* Arrow indicator using ::after */
.nav-dd > a::after {
  content: ' ▾';
  font-size: 10px;
  display: inline-block;
  transition: transform 0.3s;
}

.nav-dd:hover > a::after {
  transform: rotate(180deg);
}

/* Dropdown menu */
.nav-dd-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--white);
  min-width: 170px;
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.13);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 200;
  margin-top: 8px;
}

.nav-dd-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: var(--white);
  box-shadow: -2px -2px 4px rgba(0,0,0,0.04);
}

.nav-dd:hover .nav-dd-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(4px);
}

.nav-dd-menu a {
  display: block;
  padding: 10px 22px;
  font-size: 14px;
  color: var(--dark);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.nav-dd-menu a:hover {
  background: var(--gray-100);
  color: var(--primary);
}

.nav-dd-menu a:first-child { border-radius: 10px 10px 0 0; }
.nav-dd-menu a:last-child { border-radius: 0 0 10px 10px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--dark);
  transition: 0.3s;
  display: block;
}

/* ===== Page Hero (inner pages) ===== */
.page-hero {
  position: relative;
  padding: 160px 0;
  text-align: center;
  overflow: hidden;
  background: var(--dark);
  min-height: 620px;
  display: flex;
  align-items: center;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.9);
}
.page-hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
}
.page-hero-content h1 {
  font-size: 42px;
  font-weight: 800;
}
.page-hero-content .breadcrumb {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  margin-top: 12px;
}
.page-hero-content .breadcrumb a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
}
.page-hero-content .breadcrumb a:hover { color: var(--white); }

/* Page hero slideshow */
.page-hero-slider {
  position: absolute;
  inset: 0;
}
.page-hero-slide {
  position: absolute;
  inset: 0;
  background-size: 100% auto;
  background-position: center;
  filter: brightness(0.9);
  opacity: 0;
  transition: opacity 0.8s;
}

/* ===== Main Hero ===== */
.hero {
  position: relative;
  height: 85vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.9);
  transform: scale(1.05);
  transition: transform 8s;
}
.hero:hover .hero-bg { transform: scale(1.12); }

/* ===== Hero Video Triangle ===== */
.hero-video-triangle {
  position: absolute;
  right: 0;
  top: 0;
  width: 45%;
  height: 100%;
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 35% 100%);
  z-index: 1;
  overflow: hidden;
}
.hero-video-triangle video {
  position: absolute;
  top: 50%;
  left: 50%;
  max-width: 100%;
  max-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: contain;
}
.hero-video-triangle::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.4) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 700px;
}
.hero-content .tag {
  display: inline-block;
  background: var(--primary);
  padding: 6px 16px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-content h1 {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero-content p {
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  font-family: var(--font);
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(231,0,51,0.3);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
}
.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}
.btn-outline-dark {
  background: transparent;
  color: var(--dark);
  border: 2px solid var(--gray-400);
}
.btn-outline-dark:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.btn-sm { padding: 8px 20px; font-size: 13px; }

/* ===== Section Common ===== */
.section { padding: 100px 0; }
.section-sm { padding: 60px 0; }
.section-title {
  text-align: center;
  margin-bottom: 16px;
}
.section-title .subtitle {
  display: inline-block;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.section-title h2 {
  font-size: 38px;
  font-weight: 800;
  color: var(--dark);
}
.section-title p {
  color: var(--gray-600);
  font-size: 17px;
  margin-top: 12px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== About ===== */
.about-section { background: var(--gray-100); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 60px;
}
.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-image img { width: 100%; height: 450px; object-fit: cover; display: block; }
.about-text h3 { font-size: 28px; font-weight: 700; margin-bottom: 20px; }
.about-text p { color: var(--gray-700); margin-bottom: 16px; font-size: 16px; line-height: 1.8; }
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.stat-card {
  text-align: center;
  background: var(--white);
  padding: 28px 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.stat-card .number { font-size: 36px; font-weight: 800; color: var(--primary); }
.stat-card .label { font-size: 13px; color: var(--gray-600); margin-top: 4px; }

/* ===== Full About Page ===== */
.full-about {
  padding: 80px 0;
}
.full-about .container {
  max-width: 900px;
}
.full-about h2 {
  font-size: 28px;
  font-weight: 700;
  margin: 40px 0 20px;
  color: var(--dark);
}
.full-about h2:first-child { margin-top: 0; }
.full-about p {
  color: var(--gray-700);
  font-size: 16px;
  line-height: 1.9;
  margin-bottom: 16px;
}
.full-about ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}
.full-about ul li {
  padding: 10px 0 10px 28px;
  position: relative;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-200);
}
.full-about ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}
/* ===== Timeline ===== */
.timeline {
  position: relative;
  padding-left: 40px;
  margin: 40px 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--primary), var(--primary-dark));
  border-radius: 2px;
}
.timeline-item {
  position: relative;
  padding: 0 0 36px 30px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -34px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--primary);
  z-index: 1;
}
.timeline-year {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 6px;
}
.timeline-content {
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  border-left: 3px solid var(--primary);
  transition: box-shadow 0.3s;
}
.timeline-content:hover {
  box-shadow: var(--shadow);
}
.timeline-content p {
  color: var(--gray-700);
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

/* ===== Product Scroll Strip (Marquee) ===== */
.product-scroll-wrapper {
  overflow: hidden;
  position: relative;
  background: var(--white);
  padding: 30px 0;
}
.product-scroll-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  width: 80px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  left: 0;
  background: linear-gradient(to right, var(--white), transparent);
}
.product-scroll-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  width: 80px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  right: 0;
  background: linear-gradient(to left, var(--white), transparent);
}
.product-scroll-strip {
  overflow: visible;
}
.product-scroll-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: productScroll 20s linear infinite;
}
.product-scroll-strip:hover .product-scroll-track {
  animation-play-state: paused;
}
.product-scroll-item {
  flex-shrink: 0;
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.3s;
  position: relative;
}
.product-scroll-item:hover {
  transform: scale(2.2);
  z-index: 10;
}
.product-scroll-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.product-scroll-item span {
  display: none;
}
@keyframes productScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
  .product-scroll-item { width: 120px; height: 120px; }
  .product-scroll-item:hover { transform: scale(1.8); }
}

/* ===== Products Grid ===== */
.products-section { background: var(--white); }
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}
.product-card {
  background: transparent;
  border: none;
  border-radius: var(--radius);
  transition: transform 0.4s;
  text-decoration: none;
  display: block;
  color: inherit;
  position: relative;
  z-index: 1;
}
.product-card:hover {
  z-index: 10;
  transform: translateY(-4px);
}
.product-card-image {
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  transition: padding 0.3s;
  height: 220px;
}
.product-card-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.4s;
}
.product-card:hover .product-card-image img { transform: scale(2.5); }
.product-card:hover .product-card-image {
  padding: 0;
}
.product-card-body {
  padding: 12px 8px 8px;
  text-align: center;
  min-height: 70px;
}
.product-card-body h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.product-card-body p { font-size: 14px; color: var(--gray-600); line-height: 1.6; }
.product-tag {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

/* ===== Product Detail Page ===== */
.product-detail { padding: 60px 0; }
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.product-detail-image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  overflow: visible;
}
.product-detail-image img {
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
  transition: transform 0.3s ease;
  transform-origin: center center;
}
.product-detail-image:hover img {
  transform: scale(2);
}
.product-detail-info h1 { font-size: 32px; font-weight: 800; margin-bottom: 12px; }
.product-detail-info .desc { color: var(--gray-600); font-size: 16px; line-height: 1.8; margin-bottom: 30px; }

.product-specs { margin-bottom: 30px; }
.product-specs h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
}
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table tr { border-bottom: 1px solid var(--gray-200); }
.spec-table td { padding: 12px 8px; font-size: 14px; }
.spec-table td:first-child { font-weight: 600; color: var(--gray-700); width: 40%; }

.product-downloads { margin-top: 30px; }
.product-downloads h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
}
.download-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  transition: background 0.3s;
}
.download-item:hover { background: var(--gray-200); }
.download-item .file-info { display: flex; align-items: center; gap: 12px; }
.download-item .file-icon { font-size: 24px; }
.download-item .file-name { font-weight: 600; font-size: 14px; }
.download-item .file-size { font-size: 12px; color: var(--gray-500); }

/* ===== Features ===== */
.features-section {
  background: var(--dark);
  color: var(--white);
}
.features-section .section-title h2 { color: var(--white); }
.features-section .section-title p { color: rgba(255,255,255,0.6); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}
.feature-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  transition: all 0.4s;
}
.feature-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-4px);
}
.feature-card .icon {
  width: 64px;
  height: 64px;
  background: var(--primary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
}
.feature-card h3 { font-size: 20px; margin-bottom: 12px; }
.feature-card p { font-size: 14px; color: rgba(255,255,255,0.65); line-height: 1.7; }

/* ===== Production Gallery ===== */
.production-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 50px;
  overflow: visible;
}
.production-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  transition: transform 0.4s, box-shadow 0.4s;
  z-index: 1;
}
.production-item:hover {
  transform: scale(2.5);
  z-index: 10;
  overflow: visible;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  border-radius: var(--radius);
}
.production-item:nth-child(1):hover { transform-origin: center left; }
.production-item:nth-child(4):hover { transform-origin: center right; }
.production-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.production-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  pointer-events: none;
}

/* ===== News Section ===== */
.news-section {
  background: var(--dark);
  color: var(--white);
}
.news-section .section-title h2 { color: var(--white); }
.news-section .section-title p { color: rgba(255,255,255,0.6); }
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}
.news-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.4s;
}
.news-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-4px);
}
.news-date {
  display: inline-block;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.news-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
}
.news-card p {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  margin-bottom: 16px;
}
.news-link {
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s;
}
.news-link:hover {
  color: var(--primary-dark);
}
@media (max-width: 768px) {
  .production-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .news-card { padding: 24px; }
}
@media (max-width: 480px) {
  .production-grid { grid-template-columns: 1fr; }
}

/* ===== CTA ===== */
.cta-banner {
  position: relative;
  padding: 100px 0;
  text-align: center;
  overflow: hidden;
}
.cta-banner-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.9);
}
.cta-banner-content {
  position: relative;
  z-index: 2;
  color: var(--white);
}
.cta-banner-content h2 { font-size: 36px; font-weight: 800; margin-bottom: 16px; }
.cta-banner-content p {
  font-size: 17px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Contact ===== */
.contact-section { background: var(--gray-100); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 50px;
  margin-top: 50px;
}
.contact-info h3 { font-size: 24px; font-weight: 700; margin-bottom: 24px; }
.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}
.contact-item .icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 18px;
}
.contact-item h4 { font-size: 15px; font-weight: 600; }
.contact-item p { font-size: 14px; color: var(--gray-600); margin-top: 2px; }
.contact-item a { color: #E70032; text-decoration: underline; cursor: pointer; }
.contact-item a:hover { color: #C4002A; text-decoration: underline; }
.office-email { color: #E70032; text-decoration: underline; cursor: pointer; }
.office-email:hover { color: #C4002A; }

.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--gray-200);
  display: flex;
  flex-direction: column;
  min-height: 400px;
}

#company-map {
  width: 100%;
  height: 450px;
  z-index: 1;
}

.map-footer-links {
  display: flex;
  gap: 12px;
  padding: 12px 20px;
  justify-content: center;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  flex-wrap: wrap;
}

/* Fix Leaflet z-index conflicts */
.leaflet-pane { z-index: 1; }
.leaflet-top, .leaflet-bottom { z-index: 2; }

.contact-form-wrapper {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--gray-200);
}

.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--dark);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 15px;
  transition: border-color 0.3s;
  outline: none;
  background: var(--white);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(231,0,51,0.1);
}
.form-group textarea { height: 120px; resize: vertical; }

/* ===== Footer ===== */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .logo img { height: 40px; }
.footer-brand p { font-size: 14px; margin-top: 16px; line-height: 1.7; }
.footer h4 { color: var(--white); font-size: 16px; margin-bottom: 20px; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}
.footer ul a:hover { color: var(--primary); }
.footer-bottom {
  text-align: center;
  padding: 24px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}
.footer-bottom a { color: rgba(255,255,255,0.5); text-decoration: none; }
.footer-bottom a:hover { color: var(--primary); }

/* ===== Back to Top ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(231,0,51,0.3);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 999;
  font-size: 20px;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(231,0,51,0.4); }

/* ===== Product Filters ===== */
.product-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 8px 24px;
  border: 1px solid var(--gray-300);
  border-radius: 30px;
  background: var(--white);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  font-family: var(--font);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* ===== Page Content ===== */
.page-content { padding: 80px 0; }
.page-content .container { max-width: 900px; }
.page-content h2 {
  font-size: 26px;
  font-weight: 700;
  margin: 40px 0 16px;
}
.page-content h2:first-child { margin-top: 0; }
.page-content h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 28px 0 12px;
}
.page-content p {
  color: var(--gray-700);
  line-height: 1.9;
  margin-bottom: 14px;
}

/* ===== Technology Page ===== */
.tech-list { margin-top: 40px; }
.tech-item {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 30px;
  padding: 32px 0;
  border-bottom: 1px solid var(--gray-200);
}
.tech-item:last-child { border-bottom: none; }
.tech-item .tech-icon {
  width: 300px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tech-item .tech-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
}
.tech-item .tech-icon:hover img {
  transform: scale(2);
}
.tech-item h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.tech-item p { font-size: 15px; color: var(--gray-600); line-height: 1.7; }

/* ===== Certificate Gallery ===== */
.cert-gallery { margin-top: 40px; }
.cert-group { margin-bottom: 40px; }
.cert-group-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--dark);
  padding-left: 14px;
  border-left: 4px solid var(--primary);
}
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.cert-item {
  display: block;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  background: var(--white);
  transition: box-shadow 0.3s, transform 0.3s;
}
.cert-item:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  transform: translateY(-4px);
}
.cert-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--gray-100);
}
.cert-item .cert-label {
  display: block;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-700);
  text-align: center;
  line-height: 1.4;
}
@media (max-width: 768px) {
  .cert-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cert-item img { height: 140px; }
}
@media (max-width: 480px) {
  .cert-grid { grid-template-columns: 1fr; }
}

/* ===== Case Study Cards ===== */
.case-cards {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 40px;
}
.case-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 360px;
  display: flex;
  align-items: center;
}
.case-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.case-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,26,46,0.92) 0%, rgba(26,26,46,0.6) 50%, rgba(26,26,46,0.3) 100%);
}
.case-card-body {
  position: relative;
  z-index: 1;
  padding: 48px 56px;
  max-width: 720px;
}
.case-card-number {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.case-card-body h3 {
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  margin: 8px 0 16px;
}
.case-card-body p {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  line-height: 1.8;
}
@media (max-width: 768px) {
  .case-card { min-height: 280px; }
  .case-card-body { padding: 32px 24px; }
  .case-card-body h3 { font-size: 22px; }
  .case-card-body p { font-size: 14px; }
}

/* ===== Client Marquee ===== */
.client-marquee {
  overflow: visible;
  padding: 40px 0;
  position: relative;
}
.client-marquee::before,
.client-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  width: 80px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.client-marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--white), transparent);
}
.client-marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--white), transparent);
}
.client-marquee-track {
  display: flex;
  gap: 60px;
  width: max-content;
  animation: marqueeScroll 30s linear infinite;
}
.client-marquee:hover .client-marquee-track {
  animation-play-state: paused;
}
.client-logo {
  flex-shrink: 0;
  width: 200px;
  height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 16px;
  transition: box-shadow 0.3s, transform 0.3s;
}
.client-logo:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  transform: scale(2.2);
  z-index: 10;
  overflow: visible;
}
.client-logo img {
  max-width: 80%;
  max-height: 64px;
  object-fit: contain;
}
.client-logo span {
  font-size: 12px;
  color: var(--gray-500);
  font-weight: 500;
  white-space: nowrap;
}
@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== Office/Contact Page ===== */
.office-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
  transition: box-shadow 0.3s;
}
.office-card:hover { box-shadow: var(--shadow); }
.office-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; color: var(--primary); }
.office-card p { color: var(--gray-600); font-size: 14px; line-height: 1.8; }

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .hero-content h1 { font-size: 40px; }
  .hero-product { max-height: 450px; }
  @keyframes heroProductSlideIn {
    0%   { right: -300px; }
    100% { right: 2%; }
  }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .product-detail-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .nav { display: none; flex-direction: column; position: absolute; top: 80px; left: 0; right: 0; background: var(--white); padding: 14px 24px; box-shadow: 0 8px 32px rgba(0,0,0,0.1); gap: 4px; }
  .nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-dd { flex-direction: column; width: 100%; }
  .nav-dd > a::after { display: none; }
  .nav-dd-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 4px 16px; margin-top: 0; border-radius: 0; background: transparent; min-width: auto; }
  .nav-dd-menu::before { display: none; }
  .nav-dd-menu a { padding: 8px 16px; font-size: 14px; white-space: normal; }
  .hero { height: 70vh; min-height: 500px; }
  .hero-content h1 { font-size: 32px; }
  .hero-content p { font-size: 16px; }
  .hero-product { display: none; }
  .section { padding: 60px 0; }
  .section-title h2 { font-size: 28px; }
  .about-stats { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .stat-card { padding: 20px 12px; }
  .stat-card .number { font-size: 28px; }
  .features-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
  #company-map { height: 400px; }
  .top-bar .container { flex-direction: column; gap: 4px; }
  .page-hero-content h1 { font-size: 28px; }
  .product-detail-image { min-height: 250px; }
  .tech-item { grid-template-columns: 1fr; gap: 16px; }
  .tech-item .tech-icon { width: 200px; height: 200px; }
}

@media (max-width: 480px) {
  .hero { height: 60vh; min-height: 400px; }
  .hero-content h1 { font-size: 24px; }
  .hero-buttons { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .products-grid { grid-template-columns: 1fr; }
  .about-grid { gap: 24px; }
  .about-image img { height: 250px; }
}

/* ===== Copy Toast ===== */
.copy-toast {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1A1A2E;
  color: #fff;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 14px;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 99999;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.copy-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
