/* ==========================================================================
   KEYU PRECISION METAL - B2B EXPORT PORTAL STYLESHEET
   High-Tech Precision Industrial Aesthetic
   ========================================================================== */

:root {
  --color-primary: #0066FF;
  --color-primary-dark: #004ecc;
  --color-primary-light: #3385ff;
  --color-accent: #FF6B00;
  --color-accent-hover: #e55e00;
  --color-dark-bg: #0B1120;
  --color-dark-card: #111B30;
  --color-dark-border: #1E293B;
  --color-metal-light: #F1F5F9;
  --color-metal-gray: #64748B;
  --color-text-main: #0F172A;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Base Smooth Scrolling & Typography */
html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
}

body {
  background-color: #0B1120;
  color: #F8FAFC;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0B1120;
}
::-webkit-scrollbar-thumb {
  background: #1E293B;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* Hero Video Background Styling */
.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.42) contrast(1.15);
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 75% 30%, rgba(0, 102, 255, 0.12) 0%, rgba(11, 17, 32, 0.88) 75%),
              linear-gradient(180deg, rgba(11, 17, 32, 0.4) 0%, rgba(11, 17, 32, 0.98) 100%);
  z-index: 1;
}

/* Metallic Tech Card Gradients */
.tech-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.85) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.tech-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 102, 255, 0.4);
  box-shadow: 0 16px 32px -8px rgba(0, 102, 255, 0.2);
}

.tech-badge {
  background: rgba(0, 102, 255, 0.12);
  border: 1px solid rgba(0, 102, 255, 0.3);
  color: #60A5FA;
}

/* Precision Grid Accent Lines */
.bg-grid-pattern {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

/* Pulse Beacon */
.status-beacon {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10B981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* Modals */
.modal-backdrop {
  background: rgba(4, 8, 18, 0.85);
  backdrop-filter: blur(8px);
}

/* Video Player Modal Aspect Ratio */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
}

.video-wrapper iframe,
.video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Language Switcher Dropdown Styling */
.lang-dropdown {
  transform-origin: top right;
  transition: all 0.2s ease-in-out;
}

/* Responsive Product Showcase Image Frame */
.product-frame {
  aspect-ratio: 4/3;
  overflow: hidden;
  background-color: #0F172A;
}

.product-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-frame img {
  transform: scale(1.06);
}

/* Subtle Gradient Glow for Key Buttons */
.btn-primary-glow {
  background: linear-gradient(135deg, #0066FF 0%, #0052cc 100%);
  box-shadow: 0 4px 14px 0 rgba(0, 102, 255, 0.39);
  transition: all 0.25s ease;
}
.btn-primary-glow:hover {
  background: linear-gradient(135deg, #1a75ff 0%, #0066FF 100%);
  box-shadow: 0 6px 20px rgba(0, 102, 255, 0.55);
  transform: translateY(-1px);
}

.btn-accent-glow {
  background: linear-gradient(135deg, #FF6B00 0%, #E05300 100%);
  box-shadow: 0 4px 14px 0 rgba(255, 107, 0, 0.39);
  transition: all 0.25s ease;
}
.btn-accent-glow:hover {
  background: linear-gradient(135deg, #FF7D1A 0%, #FF6B00 100%);
  box-shadow: 0 6px 20px rgba(255, 107, 0, 0.55);
  transform: translateY(-1px);
}

/* Keyboard navigation and stable layouts without changing the visual design. */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  transform: translateY(-180%);
  padding: 12px 18px;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 4px;
}
.page-product-detail td, .page-product-detail th { overflow-wrap: anywhere; }
.page-product-detail main img { height: auto; }
