/*
Theme Name: KRS Custom Theme
Theme URI: https://www.allkrs.com/
Author: Antigravity
Author URI: https://www.allkrs.com/
Description: Custom WordPress theme for 株式会社KRS. Features premium dark mode styling and modules for vehicle export, sales, purchase, e-commerce, and general used goods buying. v2.0: Multi-language, global map, export flow, floating widget.
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: krs-theme
Tags: dark, responsive, custom-menu, portfolio, multilingual
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Noto+Sans+JP:wght@300;400;500;700&display=swap');

/* --- Custom Variables & Theme --- */
:root {
  --font-primary: 'Inter', 'Noto Sans JP', sans-serif;
  
  /* Color Palette */
  --color-primary: #0a192f;        /* Deep Navy */
  --color-secondary: #172a45;      /* Slate Blue */
  --color-accent: #00e5ff;         /* Electric Cyan */
  --color-accent-hover: #00b8d4;   /* Cyan Hover */
  --color-accent-warm: #cca43b;    /* Premium Muted Gold */
  --color-text-dark: #cbd5e1;      /* Light Slate Text */
  --color-text-light: #ffffff;     /* White Text */
  --color-text-muted: #8892b0;     /* Muted Grey-Blue */
  --color-bg-dark: #020c1b;        /* Pure Dark Blue */
  --color-bg-light: #0a192f;       /* Dark Blue Secondary */
  --color-card-bg: rgba(23, 42, 69, 0.4); /* Glassmorphism Card */
  --color-border: rgba(0, 229, 255, 0.15);
  
  /* Layout & Animation */
  --header-height: 80px;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-premium: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
  --border-radius: 12px;
}

/* --- Base Reset & Setup --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  background-color: var(--color-bg-dark);
  color: var(--color-text-dark);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

/* --- Typography / Section Header --- */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-text-light);
  font-weight: 700;
  line-height: 1.3;
}

.section {
  padding: 100px 0;
  position: relative;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header .sub {
  color: var(--color-accent);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
}

.section-header .title {
  font-size: 2.2rem;
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.section-header .title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: var(--color-accent);
  border-radius: 2px;
}

/* --- Components & UI Elements --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
  gap: 10px;
}

.btn-primary {
  background-color: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.btn-primary:hover {
  background-color: rgba(0, 229, 255, 0.1);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
  transform: translateY(-2px);
}

.btn-solid {
  background-color: var(--color-accent);
  color: var(--color-primary);
  font-weight: 600;
}

.btn-solid:hover {
  background-color: var(--color-text-light);
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 229, 255, 0.3);
}

/* --- Header / Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: var(--transition-smooth);
}

.header.scrolled {
  background-color: rgba(10, 25, 47, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 229, 255, 0.1);
  height: 70px;
}

.nav-container {
  max-width: 1300px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-text-light);
  letter-spacing: 1px;
}

.logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 229, 255, 0.15));
  transition: var(--transition-smooth);
}

.logo:hover .logo-img {
  filter: drop-shadow(0 4px 15px rgba(0, 229, 255, 0.5));
  transform: translateY(-1px);
}

.logo span {
  color: var(--color-accent);
}

/* --- Language Switcher --- */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 20px;
}

.lang-option {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted);
  padding: 4px 8px;
  border-radius: 4px;
  letter-spacing: 1px;
  transition: var(--transition-smooth);
}

.lang-option:hover {
  color: var(--color-accent);
}

.lang-option.active {
  color: var(--color-primary);
  background-color: var(--color-accent);
}

.lang-divider {
  color: rgba(255,255,255,0.15);
  font-size: 0.75rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 5px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: var(--transition-smooth);
}

.nav-link:hover {
  color: var(--color-accent);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--color-accent);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  cursor: pointer;
  z-index: 1100;
}

.hamburger .bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  transition: var(--transition-smooth);
  background-color: var(--color-text-light);
  border-radius: 2px;
}

/* --- Hero Section (Video Background) --- */
.hero {
  height: 100vh;
  min-height: 700px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(2, 12, 27, 0.92) 0%, rgba(2, 12, 27, 0.7) 50%, rgba(10, 25, 47, 0.4) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-sub {
  color: var(--color-accent);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 4px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 25px;
  line-height: 1.2;
}

.hero-title span {
  background: linear-gradient(90deg, var(--color-accent), #00b0ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: 40px;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 20px;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--color-text-muted);
  font-size: 0.8rem;
  letter-spacing: 2px;
}

.scroll-indicator .mouse {
  width: 24px;
  height: 40px;
  border: 2px solid var(--color-text-muted);
  border-radius: 12px;
  position: relative;
}

.scroll-indicator .wheel {
  width: 4px;
  height: 8px;
  background-color: var(--color-accent);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollMouse 1.8s infinite;
}

@keyframes scrollMouse {
  0% { top: 6px; opacity: 1; }
  50% { top: 16px; opacity: 0; }
  100% { top: 6px; opacity: 1; }
}

/* === Channel Entry / B2B-B2C Gateway === */
.channel-entry-section {
  padding: 0;
  margin-top: -60px;
  position: relative;
  z-index: 3;
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.channel-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 30px 28px;
  background: rgba(23, 42, 69, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  transition: var(--transition-smooth);
  cursor: pointer;
}

.channel-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-accent);
  box-shadow: 0 12px 40px rgba(0, 229, 255, 0.12);
}

.channel-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.channel-export .channel-icon {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.2), rgba(0, 229, 255, 0.05));
  color: var(--color-accent);
}

.channel-ec .channel-icon {
  background: linear-gradient(135deg, rgba(204, 164, 59, 0.2), rgba(204, 164, 59, 0.05));
  color: var(--color-accent-warm);
}

.channel-reuse .channel-icon {
  background: linear-gradient(135deg, rgba(46, 213, 115, 0.2), rgba(46, 213, 115, 0.05));
  color: #2ed573;
}

.channel-text h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
  font-weight: 600;
}

.channel-text p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0;
}

.channel-arrow {
  margin-left: auto;
  color: var(--color-text-muted);
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.channel-card:hover .channel-arrow {
  color: var(--color-accent);
  transform: translateX(4px);
}

/* --- Section: corporate-info / philosophy --- */
.philosophy-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

.philosophy-text h3 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.philosophy-text p {
  color: var(--color-text-muted);
  margin-bottom: 30px;
}

.highlight-box {
  background-color: var(--color-card-bg);
  border-left: 4px solid var(--color-accent);
  padding: 20px;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  margin-bottom: 30px;
}

.highlight-box p {
  color: var(--color-text-light);
  font-weight: 500;
  margin: 0;
}

.philosophy-img-wrapper {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-premium);
}

.philosophy-img-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 40%, rgba(2, 12, 27, 0.8) 100%);
  pointer-events: none;
}

/* --- Section: Services Overview --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-accent);
  box-shadow: 0 15px 35px rgba(0, 229, 255, 0.1);
}

.service-img {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.service-card:hover .service-img img {
  transform: scale(1.08);
}

.service-content {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-icon {
  font-size: 2rem;
  color: var(--color-accent);
  margin-bottom: 20px;
}

.service-title {
  font-size: 1.35rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.service-desc {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 25px;
  flex-grow: 1;
}

.service-link {
  color: var(--color-accent);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.service-link span {
  transition: var(--transition-smooth);
}

.service-card:hover .service-link span {
  transform: translateX(5px);
}

/* --- Section: Strengths (Stats) --- */
.stats-bg {
  background: linear-gradient(180deg, var(--color-bg-light) 0%, var(--color-bg-dark) 100%);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-item .num {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--color-accent);
  font-family: 'Inter', sans-serif;
  margin-bottom: 10px;
  display: inline-block;
}

.stat-item .label {
  font-size: 1.05rem;
  color: var(--color-text-light);
  font-weight: 600;
  margin-bottom: 5px;
}

.stat-item .desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* === Global Reach Map Section === */
.global-map-section {
  background: radial-gradient(ellipse at center, var(--color-secondary) 0%, var(--color-bg-dark) 70%);
}

.world-map-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.world-map {
  width: 100%;
  height: auto;
}

.continent {
  fill: rgba(0, 229, 255, 0.06);
  stroke: rgba(0, 229, 255, 0.15);
  stroke-width: 1;
  transition: fill 0.3s ease;
}

.map-dot {
  fill: var(--color-accent);
}

.map-dot.dot-japan {
  fill: #ff4757;
  filter: drop-shadow(0 0 8px rgba(255, 71, 87, 0.6));
}

.map-dot.dot-pulse {
  animation: mapPulse 2s ease-in-out infinite;
}

.map-dot-ring {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 1.5;
  animation: mapRing 2s ease-out infinite;
}

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

@keyframes mapRing {
  0% { r: 6; opacity: 0.8; stroke-width: 1.5; }
  100% { r: 18; opacity: 0; stroke-width: 0.5; }
}

.map-route {
  stroke: var(--color-accent);
  stroke-width: 1;
  stroke-dasharray: 6, 4;
  opacity: 0.3;
  animation: mapDash 20s linear infinite;
}

@keyframes mapDash {
  to { stroke-dashoffset: -200; }
}

.map-label {
  fill: #ff4757;
  font-size: 11px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  letter-spacing: 2px;
}

.map-regions {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.region-tag {
  padding: 8px 18px;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--color-text-dark);
  letter-spacing: 1px;
}

/* === Export Process Flow === */
.export-flow {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.flow-step {
  flex: 1;
  text-align: center;
  padding: 0 20px;
  position: relative;
}

.flow-number {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.flow-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.15), rgba(0, 229, 255, 0.03));
  border: 2px solid var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px auto;
  font-size: 1.6rem;
  color: var(--color-accent);
  transition: var(--transition-smooth);
}

.flow-step:hover .flow-icon {
  background: var(--color-accent);
  color: var(--color-primary);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
}

.flow-step h4 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--color-text-light);
  font-weight: 600;
}

.flow-step p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0;
}

.flow-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 50px;
  color: var(--color-accent);
  opacity: 0.5;
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* --- Section: News / Topics --- */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto 50px auto;
}

.news-item {
  display: flex;
  align-items: center;
  padding: 20px;
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  transition: var(--transition-smooth);
}

.news-item:hover {
  border-color: var(--color-accent);
  transform: translateX(8px);
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 250px;
}

.news-date {
  font-family: 'Inter', sans-serif;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.news-tag {
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
}

.tag-news {
  background-color: rgba(0, 229, 255, 0.15);
  color: var(--color-accent);
}

.tag-ir {
  background-color: rgba(204, 164, 59, 0.15);
  color: var(--color-accent-warm);
}

.news-title {
  font-size: 1rem;
  color: var(--color-text-light);
  font-weight: 500;
  flex-grow: 1;
}

.news-arrow {
  color: var(--color-accent);
  font-size: 1.2rem;
  transition: var(--transition-smooth);
}

.news-item:hover .news-arrow {
  transform: translateX(5px);
}

/* --- Section: Footer --- */
.footer {
  background-color: var(--color-bg-dark);
  border-top: 1px solid var(--color-border);
  padding: 80px 0 30px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 50px;
  margin-bottom: 60px;
}

.footer-brand .logo {
  margin-bottom: 20px;
}

.footer-brand .logo-img {
  height: 60px;
}

.footer-brand p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
  max-width: 280px;
}

.footer-socials {
  display: flex;
  gap: 15px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 1.1rem;
  transition: var(--transition-smooth);
}

.social-icon:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
  transform: translateY(-3px);
  background-color: rgba(0, 229, 255, 0.05);
}

.footer-title {
  color: var(--color-text-light);
  font-size: 1.1rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--color-accent);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--color-accent);
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 30px;
}

.footer-bottom-links a:hover {
  color: var(--color-accent);
}

/* === Floating Chat Widget === */
.float-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.float-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.float-widget.active .float-actions {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.float-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 30px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: var(--transition-smooth);
}

.float-btn i {
  font-size: 1.2rem;
}

.float-btn:hover {
  transform: translateY(-2px) scale(1.03);
}

.float-whatsapp {
  background: #25D366;
}

.float-wechat {
  background: #07C160;
}

.float-email {
  background: var(--color-accent);
  color: var(--color-primary);
}

.float-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--color-accent), #00b0ff);
  color: var(--color-primary);
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 229, 255, 0.4);
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.float-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(0, 229, 255, 0.5);
}

.float-icon-close {
  display: none;
}

.float-widget.active .float-icon-open {
  display: none;
}

.float-widget.active .float-icon-close {
  display: block;
}

.float-widget.active .float-toggle {
  background: var(--color-secondary);
  color: var(--color-text-light);
}

/* WeChat Modal */
.wechat-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.wechat-modal.active {
  display: flex;
}

.wechat-modal-content {
  background: var(--color-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 40px;
  text-align: center;
  max-width: 400px;
  position: relative;
}

.wechat-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 1.2rem;
  cursor: pointer;
}

.wechat-modal-close:hover {
  color: var(--color-text-light);
}

.wechat-modal-content h3 {
  margin-bottom: 20px;
}

.wechat-qr-placeholder {
  padding: 30px;
  background: rgba(0,0,0,0.2);
  border-radius: 8px;
}

.wechat-qr-placeholder p {
  margin-top: 12px;
  color: var(--color-text-dark);
}

/* --- Timeline Layout (About Us) --- */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 0;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 2px;
  background-color: var(--color-border);
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  right: -8px;
  background-color: var(--color-bg-dark);
  border: 3px solid var(--color-accent);
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

.timeline-left {
  left: 0;
  text-align: right;
}

.timeline-right {
  left: 50%;
}

.timeline-right::after {
  left: -8px;
}

.timeline-content {
  padding: 20px;
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  position: relative;
}

.timeline-year {
  font-family: 'Inter', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 5px;
}

.timeline-title {
  font-size: 1rem;
  color: var(--color-text-light);
  font-weight: 600;
}

/* --- Detail Service Layout (Services page) --- */
.service-detail-section {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.service-detail-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.service-detail-row:nth-child(even) {
  direction: rtl;
}

.service-detail-row:nth-child(even) .service-detail-text {
  direction: ltr;
}

.service-detail-img {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-premium);
}

.service-detail-text h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.service-detail-text p {
  color: var(--color-text-muted);
  margin-bottom: 25px;
}

.features-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.feature-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.feature-tag i {
  color: var(--color-accent);
}

/* --- Corporate Profile Styles (Profile page) --- */
.profile-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 50px;
  background-color: var(--color-card-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.profile-table tr {
  border-bottom: 1px solid var(--color-border);
}

.profile-table tr:last-child {
  border-bottom: none;
}

.profile-table th,
.profile-table td {
  padding: 22px 30px;
  text-align: left;
}

.profile-table th {
  color: var(--color-accent);
  font-weight: 600;
  width: 25%;
  font-size: 1rem;
  background-color: rgba(0, 229, 255, 0.03);
}

.profile-table td {
  color: var(--color-text-dark);
}

/* Branch Tab controls */
.tabs-container {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
}

.tab-btn {
  padding: 12px 24px;
  background-color: var(--color-secondary);
  border: 1px solid var(--color-border);
  color: var(--color-text-light);
  border-radius: 30px;
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.tab-btn.active,
.tab-btn:hover {
  background-color: var(--color-accent);
  color: var(--color-primary);
  box-shadow: 0 4px 15px rgba(0, 229, 255, 0.25);
  border-color: var(--color-accent);
}

.tab-content {
  display: none;
  animation: fadeIn 0.5s ease;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.branch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.branch-card {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 30px;
  transition: var(--transition-smooth);
}

.branch-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-accent);
}

.branch-name {
  font-size: 1.15rem;
  color: var(--color-text-light);
  margin-bottom: 15px;
  font-weight: 600;
}

.branch-info {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* --- Contact Form Styles (Contact page) --- */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.contact-info-panel {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-info-panel h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.contact-info-panel p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 40px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-detail-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.contact-detail-item i {
  color: var(--color-accent);
  font-size: 1.25rem;
  margin-top: 3px;
}

.contact-detail-item h4 {
  font-size: 1rem;
  color: var(--color-text-light);
  margin-bottom: 5px;
}

.contact-detail-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.contact-form-panel {
  padding: 50px;
}

.form-group {
  margin-bottom: 25px;
}

.form-label {
  display: block;
  color: var(--color-text-light);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.form-label span {
  color: #ff3366;
  margin-left: 5px;
}

.form-control {
  width: 100%;
  background-color: rgba(2, 12, 27, 0.5);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 12px 18px;
  color: var(--color-text-light);
  font-family: var(--font-primary);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.form-checkbox input {
  margin-top: 4px;
}

.form-checkbox-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.form-checkbox-label a {
  color: var(--color-accent);
  text-decoration: underline;
}

.form-error {
  color: #ff3366;
  font-size: 0.8rem;
  margin-top: 5px;
  display: none;
}

/* Success modal screen */
.success-screen {
  display: none;
  text-align: center;
  padding: 60px 20px;
}

.success-icon {
  font-size: 4rem;
  color: var(--color-accent);
  margin-bottom: 25px;
  animation: scaleUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleUp {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.success-screen h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.success-screen p {
  color: var(--color-text-muted);
  max-width: 500px;
  margin: 0 auto 30px auto;
}

/* --- Scroll animations / Reveals --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive Adaptations --- */
@media (max-width: 1024px) {
  .philosophy-grid,
  .service-detail-row {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
  
  .branch-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-container {
    grid-template-columns: 1fr;
  }

  .channel-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .export-flow {
    flex-direction: column;
    align-items: center;
  }

  .flow-connector {
    padding-top: 0;
    transform: rotate(90deg);
    padding: 10px 0;
  }

  .flow-step {
    padding: 10px 0;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }
  
  .container {
    padding: 0 20px;
  }
  
  .hamburger {
    display: block;
  }

  .lang-switcher {
    margin-left: auto;
    margin-right: 16px;
  }
  
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 80%;
    height: calc(100vh - var(--header-height));
    background-color: var(--color-bg-dark);
    border-left: 1px solid var(--color-border);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 60px;
    gap: 30px;
    transition: var(--transition-smooth);
    z-index: 999;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .timeline::after {
    left: 31px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 55px;
    padding-right: 0;
  }
  
  .timeline-item::after {
    left: 23px;
  }
  
  .timeline-left {
    text-align: left;
  }
  
  .timeline-right {
    left: 0%;
  }
  
  .branch-grid {
    grid-template-columns: 1fr;
  }
  
  .profile-table th,
  .profile-table td {
    padding: 15px 20px;
    display: block;
    width: 100% !important;
  }
  
  .profile-table th {
    background-color: transparent;
    padding-bottom: 5px;
    color: var(--color-accent);
  }
  
  .profile-table td {
    padding-top: 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  .contact-info-panel,
  .contact-form-panel {
    padding: 30px 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .news-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .news-meta {
    min-width: auto;
  }

  .map-regions {
    gap: 10px;
  }

  .region-tag {
    font-size: 0.75rem;
    padding: 6px 12px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .stat-item .num {
    font-size: 2.5rem;
  }
}

/* Priority overrides for tab states */
.tab-content { display: none !important; }
.tab-content.active { display: block !important; }
.tab-btn.active { background-color: var(--color-accent) !important; color: var(--color-primary) !important; }
