/* ==========================================================================
   Eastern Group — Tencent Enterprise Multi-Page Portal System
   Style Reference: Tencent Official Corporate Website (https://www.tencent.com/)
   Palette: Tencent Blue (#0052d9), Bright Royal (#0066ff), Soft Blue Tint (#ebf2ff),
            Pure White (#ffffff), Slate Surface (#f5f7fa), Deep Navy (#051026)
   ========================================================================== */

:root {
  /* Colors */
  --tencent-blue: #0052d9; /* Signature Tencent Primary Blue */
  --tencent-blue-hover: #003ebb; /* Darker Blue for Hover States */
  --tencent-blue-bright: #0066ff; /* Bright Electric Blue Accent */
  --tencent-blue-light: #ebf2ff; /* Soft Blue Background Wash */
  --tencent-blue-glow: rgba(0, 82, 217, 0.22);

  --bg-canvas: #ffffff; /* Pure White Page Background */
  --bg-surface: #f5f7fa; /* Light Grey Section Background */
  --bg-card: #ffffff; /* White Card Surface */
  --bg-dark: #051026; /* Deep Tencent Navy for Footer & High-Impact Blocks */
  --bg-dark-surface: #0a192f;

  --text-heading: #181818; /* Charcoal Black for Headings */
  --text-body: #4e5969; /* Main Body Copy */
  --text-muted: #86909c; /* Muted Helper Labels */
  --text-light: #ffffff; /* White Text */

  --border-light: #e5e6eb; /* Hairline Grey Border */
  --border-hover: #0052d9; /* Active Highlight Border */

  /* Fonts */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  /* Elevation Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 16px 36px rgba(0, 82, 217, 0.18);
  --shadow-mega: 0 24px 48px rgba(5, 16, 38, 0.16);

  /* Transitions */
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-spring: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Serif Italic Brand Accents (Motion.so & Apple Luxury Style) */
em.serif-italic,
span.serif-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  color: #00f2fe;
  background: linear-gradient(120deg, #00f2fe 0%, #8ed1fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-right: 0.08em;
}

/* Scroll Progress Bar at Top */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--tencent-blue) 0%, #00f2fe 100%);
  z-index: 2000;
  transition: width 0.1s ease-out;
}

/* Custom Interactive Magnetic Cursor (Desktop fine pointer) */
@media (hover: hover) and (pointer: fine) {
  .tencent-cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background: var(--tencent-blue-bright);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition:
      width 0.2s,
      height 0.2s,
      background-color 0.2s;
  }

  .tencent-cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(0, 82, 217, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition:
      transform 0.15s ease-out,
      width 0.3s ease,
      height 0.3s ease,
      border-color 0.3s ease,
      background 0.3s ease;
  }

  body.hover-active .tencent-cursor-ring {
    width: 56px;
    height: 56px;
    border-color: var(--tencent-blue);
    background: rgba(0, 82, 217, 0.08);
  }

  body.hover-active .tencent-cursor-dot {
    width: 12px;
    height: 12px;
    background: #00f2fe;
  }
}

/* Animated Text Shimmer */
.hero-shimmer-text {
  background: linear-gradient(
    120deg,
    #ffffff 0%,
    #ffffff 35%,
    #8ed1fc 50%,
    #ffffff 65%,
    #ffffff 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shineText 5s infinite linear;
}

@keyframes shineText {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

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

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

body {
  background-color: var(--bg-canvas);
  color: var(--text-body);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Tencent Top Navigation Header & Dropdown Submenus
   ========================================================================== */
.tencent-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 72px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  transition: var(--transition-smooth);
}

.tencent-header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-img-eg {
  height: 42px;
  width: auto;
  object-fit: contain;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-logo:hover .logo-img-eg {
  transform: rotate(360deg);
}

.logo-text-tencent {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.02em;
}

.logo-text-tencent span {
  font-size: 0.72rem;
  color: var(--tencent-blue);
  font-weight: 700;
  display: block;
  letter-spacing: 0.08em;
  margin-top: -3px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-item-dropdown {
  position: relative;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-heading);
  text-decoration: none;
  position: relative;
  padding: 24px 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--tencent-blue);
  transition: width var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--tencent-blue);
}

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

/* Submenu Mega Dropdown */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 16px 0;
  min-width: 240px;
  box-shadow: var(--shadow-mega);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-fast);
  z-index: 1100;
}

.nav-item-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  color: var(--text-body);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition:
    background var(--transition-fast),
    color var(--transition-fast);
}

.dropdown-link:hover {
  background: var(--tencent-blue-light);
  color: var(--tencent-blue);
}

.dropdown-icon {
  font-size: 1.1rem;
}

.dropdown-icon-svg {
  flex-shrink: 0;
  color: var(--tencent-blue);
  stroke: var(--tencent-blue);
  transition: transform var(--transition-fast);
}

.dropdown-link:hover .dropdown-icon-svg {
  transform: scale(1.18);
}

/* Action Buttons & Multi-Language Switcher */
.lang-switcher-dropdown {
  position: relative;
  display: inline-block;
  margin-right: 10px;
}

.lang-switcher-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 82, 217, 0.08);
  border: 1px solid rgba(0, 82, 217, 0.25);
  color: var(--tencent-blue);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.lang-switcher-btn:hover {
  background: var(--tencent-blue);
  color: #ffffff;
  border-color: var(--tencent-blue);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 125px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
}

.lang-switcher-dropdown:hover .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-heading);
  text-decoration: none;
  border-radius: 8px;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.lang-option:hover {
  background: var(--tencent-blue-light);
  color: var(--tencent-blue);
}
.btn-tencent-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--tencent-blue);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 6px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px var(--tencent-blue-glow);
  transition: var(--transition-smooth);
}

.btn-tencent-primary:hover {
  background: var(--tencent-blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 82, 217, 0.35);
}

.btn-tencent-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: var(--text-heading);
  border: 1px solid var(--border-light);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-tencent-secondary:hover {
  border-color: var(--tencent-blue);
  color: var(--tencent-blue);
  background: var(--tencent-blue-light);
}

.btn-icon-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: transform var(--transition-fast);
}

.btn-tencent-primary:hover .btn-icon-arrow {
  transform: translateX(4px);
}

/* ==========================================================================
   Tencent Interactive Hero Slider (Auto-play + Progress Bar)
   ========================================================================== */
.hero-slider-section {
  margin-top: 72px;
  position: relative;
  height: 620px;
  overflow: hidden;
  background: var(--bg-dark);
}

.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
  opacity: 0.75;
}

.slider-track {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.8s ease;
  display: flex;
  align-items: center;
  color: #ffffff;
}

.slide-item.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.slide-item.active .slide-content {
  opacity: 1 !important;
  transform: translateY(0) !important;
  visibility: visible !important;
}

.slide-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 6s ease-out;
}

.slide-item.active .slide-bg-img {
  transform: scale(1);
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(5, 16, 38, 0.88) 0%,
    rgba(5, 16, 38, 0.5) 60%,
    rgba(5, 16, 38, 0.3) 100%
  );
}

.slide-content {
  position: relative;
  z-index: 5;
  max-width: 800px;
}

.slide-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(235, 242, 255, 0.15);
  border: 1px solid rgba(235, 242, 255, 0.3);
  padding: 6px 16px;
  border-radius: 20px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: #8ed1fc;
  margin-bottom: 24px;
}

.slide-title {
  font-family: var(--font-heading);
  font-size: 3.6rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: #ffffff;
}

.slide-subtitle {
  font-size: 1.18rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 36px;
}

/* Slider Controls & Progress Bar */
.slider-controls {
  position: absolute;
  bottom: 36px;
  left: 0;
  width: 100%;
  z-index: 10;
}

.controls-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.slider-pagination {
  display: flex;
  gap: 16px;
}

.page-tab {
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity var(--transition-fast);
  width: 140px;
}

.page-tab.active {
  opacity: 1;
}

.page-tab-label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
}

.page-tab-bar {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.page-tab.active .page-tab-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: var(--tencent-blue);
  animation: sliderProgress 5s linear forwards;
}

@keyframes sliderProgress {
  0% {
    width: 0%;
  }
  100% {
    width: 100%;
  }
}

/* Grid Layout Utilities */
.grid-2col-tencent {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.grid-3col-tencent {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Page Sub-Header Banners for /about, /services, /projects */
.page-hero-banner {
  margin-top: 72px;
  padding: 80px 0;
  background:
    linear-gradient(180deg, rgba(5, 16, 38, 0.85) 0%, rgba(5, 16, 38, 0.95) 100%),
    url('../images/about_hq.png') center/cover no-repeat;
  color: #ffffff;
  text-align: center;
}

.page-hero-title {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: #ffffff;
}

.page-hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 680px;
  margin: 0 auto;
}

/* ==========================================================================
   Tencent Category Switcher Tabs & Corporate Cards
   ========================================================================== */
.section-services {
  padding: 90px 0;
  background: var(--bg-canvas);
}

.category-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.tab-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  color: var(--text-body);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.tab-btn:hover {
  border-color: var(--tencent-blue);
  color: var(--tencent-blue);
}

.tab-btn.active {
  background: var(--tencent-blue);
  color: #ffffff;
  border-color: var(--tencent-blue);
  box-shadow: 0 4px 14px var(--tencent-blue-glow);
}

.cards-grid-tencent {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  perspective: 1000px;
}

.tencent-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.4s ease;
  position: relative;
  transform-style: preserve-3d;
  will-change: transform, box-shadow;
}

.tencent-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--tencent-blue) 0%, #38bdf8 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 5;
}

.tencent-card:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow:
    0 20px 40px rgba(0, 82, 217, 0.14),
    0 4px 12px rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 82, 217, 0.35);
}

.tencent-card:hover::before {
  transform: scaleX(1);
}

.card-img-tencent {
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.card-image-box {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #051026;
}

.card-img-tencent {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.tencent-card:hover .card-img-tencent {
  transform: scale(1.06) rotate(0.3deg);
}

.card-badge-tencent {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  color: var(--tencent-blue);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.card-body-tencent {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title-tencent {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 12px;
}

.card-desc-tencent {
  font-size: 0.92rem;
  color: var(--text-body);
  margin-bottom: 20px;
  line-height: 1.55;
}

.card-features-tencent {
  list-style: none;
  margin-bottom: 24px;
  flex-grow: 1;
}

.card-features-tencent li {
  font-size: 0.88rem;
  color: var(--text-heading);
  padding-left: 22px;
  position: relative;
  margin-bottom: 10px;
}

.card-features-tencent li::before {
  content: '•';
  position: absolute;
  left: 4px;
  color: var(--tencent-blue);
  font-size: 1.2rem;
  line-height: 1;
}

.card-action-tencent {
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

/* ==========================================================================
   Tencent Innovation Spotlight (Kumushkan Resort Showcase)
   ========================================================================== */
.section-spotlight {
  padding: 90px 0;
  background: var(--bg-surface);
}

.spotlight-box {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.spotlight-hero-img-box {
  position: relative;
  height: 400px;
  overflow: hidden;
}

.spotlight-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.spotlight-box:hover .spotlight-hero-img {
  transform: scale(1.03);
}

.spotlight-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 36px;
  background: linear-gradient(0deg, rgba(5, 16, 38, 0.92) 0%, rgba(5, 16, 38, 0) 100%);
  color: #ffffff;
}

.spotlight-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}

.projects-grid-tencent {
  padding: 36px 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  background: #ffffff;
}

.project-item-tencent {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 24px;
  transition: var(--transition-fast);
}

.project-item-tencent:hover {
  border-color: var(--tencent-blue);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
}

.project-icon-tencent {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.project-name-tencent {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 6px;
}

.project-desc-tencent {
  font-size: 0.85rem;
  color: var(--text-body);
  margin-bottom: 14px;
}

.status-pill-tencent {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--tencent-blue-light);
  color: var(--tencent-blue);
}

/* ==========================================================================
   Tencent Corporate Metrics Counter Section
   ========================================================================== */
.section-metrics {
  padding: 80px 0;
  background: var(--bg-canvas);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.metrics-grid-tencent {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.metric-box-tencent {
  text-align: center;
  padding: 0 16px;
  position: relative;
}

.metric-box-tencent:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: var(--border-light);
}

.metric-number-tencent {
  font-family: var(--font-heading);
  font-size: 3.6rem;
  font-weight: 800;
  line-height: 1;
  color: var(--tencent-blue);
  margin-bottom: 10px;
  letter-spacing: -0.03em;
}

.metric-label-tencent {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-heading);
}

/* ==========================================================================
   Lead Form Section
   ========================================================================== */
.section-lead-tencent {
  padding: 90px 0;
  background: var(--bg-surface);
}

.lead-grid-tencent {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.lead-form-tencent {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 40px;
  box-shadow: var(--shadow-card);
}

.form-group-tencent {
  margin-bottom: 20px;
}

.form-label-tencent {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 6px;
}

.input-tencent,
.select-tencent,
.textarea-tencent {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text-heading);
  outline: none;
  transition: var(--transition-fast);
}

.input-tencent:focus,
.select-tencent:focus,
.textarea-tencent:focus {
  border-color: var(--tencent-blue);
  box-shadow: 0 0 0 3px var(--tencent-blue-glow);
}

/* ==========================================================================
   Contacts Section
   ========================================================================== */
.section-contacts-tencent {
  padding: 80px 0;
  background: var(--bg-canvas);
}

.contacts-grid-tencent {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-card-tencent {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  margin-bottom: 16px;
}

.contact-icon-tencent {
  width: 44px;
  height: 44px;
  background: var(--tencent-blue-light);
  color: var(--tencent-blue);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.map-wrapper-tencent {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  height: 340px;
  box-shadow: var(--shadow-sm);
}

.map-wrapper-tencent iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ==========================================================================
   Tencent Global Dark Footer
   ========================================================================== */
.tencent-footer {
  background: var(--bg-dark);
  color: var(--text-muted);
  padding: 60px 0 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top-tencent {
  display: flex;
  justify-content: space-between;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 30px;
}

.footer-brand-tencent {
  max-width: 340px;
}

.footer-logo-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand-desc {
  font-size: 0.85rem;
  line-height: 1.65;
  color: #86909c;
}

.footer-links-tencent {
  display: flex;
  gap: 60px;
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
}

.footer-col-links {
  list-style: none;
}

.footer-col-links li {
  margin-bottom: 8px;
}

.footer-col-links a {
  color: #86909c;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color var(--transition-fast);
}

.footer-col-links a:hover {
  color: #ffffff;
}

.footer-bottom-tencent {
  text-align: center;
  font-size: 0.8rem;
  color: #64748b;
}

/* Scroll Reveals & Staggered Animations (Instant Visibility) */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Staggered Delay Helpers */
.delay-1 {
  transition-delay: 0.1s;
}
.delay-2 {
  transition-delay: 0.2s;
}
.delay-3 {
  transition-delay: 0.3s;
}

/* Toast Notifications */
.landing-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--tencent-blue);
  border-radius: 8px;
  padding: 14px 22px;
  font-size: 0.9rem;
  color: var(--text-heading);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  z-index: 2000;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.landing-toast.active {
  opacity: 1;
  transform: translateY(0);
}

.landing-toast.success {
  border-left-color: #00d084;
}
.landing-toast.error {
  border-left-color: #ef4444;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .cards-grid-tencent,
  .projects-grid-tencent,
  .grid-3col-tencent {
    grid-template-columns: repeat(2, 1fr);
  }
  .metrics-grid-tencent {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
  .metric-box-tencent:not(:last-child)::after {
    display: none;
  }
  .lead-grid-tencent,
  .contacts-grid-tencent,
  .grid-2col-tencent {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .slide-title {
    font-size: 2.7rem;
  }
  .footer-top-tencent {
    flex-direction: column;
    gap: 32px;
  }
  .slider-pagination {
    display: none;
  }
}

@media (max-width: 640px) {
  .nav-menu {
    display: none;
  }
  .cards-grid-tencent,
  .projects-grid-tencent,
  .metrics-grid-tencent,
  .grid-3col-tencent {
    grid-template-columns: 1fr;
  }
  .slide-title {
    font-size: 2.1rem;
  }
  .hero-slider-section {
    height: 480px;
  }
}

/* Interactive Video Presenter Play Button */
.play-video-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  background: rgba(0, 82, 217, 0.9);
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 0 35px rgba(0, 242, 254, 0.6);
  transition: var(--transition-spring);
}

.play-video-btn::after {
  content: '';
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border: 1px solid rgba(0, 242, 254, 0.5);
  border-radius: 50%;
  animation: pulseRing 2s infinite ease-out;
}

@keyframes pulseRing {
  0% {
    transform: scale(0.9);
    opacity: 1;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

.play-video-btn:hover {
  transform: translate(-50%, -50%) scale(1.15);
  background: var(--tencent-blue-bright);
}

/* Video Showcase Modal (Motion.so Style) */
.video-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 16, 38, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.4s ease;
}

.video-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.video-modal-content {
  position: relative;
  width: 100%;
  max-width: 920px;
  background: #051026;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.9);
  transform: scale(0.92) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-modal-backdrop.active .video-modal-content {
  transform: scale(1) translateY(0);
}

.video-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 25, 47, 0.7);
}

.video-modal-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
}

.video-modal-close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.6rem;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.video-modal-close:hover {
  color: #ffffff;
}

.video-player-box {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000000;
  position: relative;
}

.video-player-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   Comprehensive Mobile & Tablet Responsive Media Queries
   ========================================================================== */

/* Mobile Hamburger Toggle Button */
.mobile-toggle-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
  padding: 0;
}

.mobile-toggle-btn span {
  width: 100%;
  height: 2px;
  background: var(--tencent-blue);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-toggle-btn.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.mobile-toggle-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle-btn.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Screen Width <= 1024px (Tablets & Mobile Landscape) */
@media (max-width: 1024px) {
  .container {
    padding: 0 20px;
  }

  .grid-2col-tencent,
  .grid-3col-tencent,
  .cards-grid-tencent,
  .contacts-grid-tencent,
  .lead-grid-tencent {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .projects-grid-tencent {
    grid-template-columns: 1fr 1fr;
  }

  .metrics-grid-tencent {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

/* Header Controls & Mobile Responsive Rules */
.header-right-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-drawer-action {
  display: none;
  width: 100%;
}

@media (max-width: 991px) {
  .desktop-only-btn {
    display: none !important;
  }

  .mobile-drawer-action {
    display: block;
  }

  .mobile-toggle-btn {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    background: rgba(0, 82, 217, 0.06);
    border: 1px solid rgba(0, 82, 217, 0.18);
    border-radius: 10px;
    cursor: pointer;
    z-index: 100000;
    padding: 0;
    transition: all 0.25s ease;
  }

  .mobile-toggle-btn:hover,
  .mobile-toggle-btn:active {
    background: rgba(0, 82, 217, 0.12);
  }

  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100vw;
    height: calc(100vh - 72px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px;
    gap: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
      opacity 0.3s ease,
      visibility 0.3s ease;
    z-index: 99999;
    overflow-y: auto;
  }

  .nav-menu.mobile-open {
    transform: translateX(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    display: flex !important;
  }

  .nav-menu .nav-link {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-heading);
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
  }

  .nav-item-dropdown {
    width: 100%;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: rgba(0, 82, 217, 0.04);
    border-radius: 10px;
    margin-top: 8px;
    padding: 12px;
  }

  .hero-slider-section {
    height: 560px;
    min-height: 560px;
    padding: 0;
  }

  .slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
  }

  .slide-item.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
  }

  .slide-title {
    font-size: 2.1rem;
    line-height: 1.2;
  }

  .slide-subtitle {
    font-size: 1rem;
    margin-bottom: 24px;
    line-height: 1.55;
  }

  .hero-actions-tencent {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .hero-actions-tencent .btn-tencent-primary,
  .hero-actions-tencent .btn-tencent-secondary {
    width: 100%;
    justify-content: center;
  }

  .slider-controls {
    bottom: 20px;
  }

  .slider-pagination {
    width: 100%;
    justify-content: center;
  }

  .page-tab {
    width: auto;
    flex: 1;
  }
}

/* Screen Width <= 768px (Smartphones) */
@media (max-width: 768px) {
  .tencent-header {
    height: 64px;
  }

  .logo-text-tencent {
    font-size: 1.1rem;
  }

  .logo-text-tencent span {
    font-size: 0.6rem;
  }

  .lang-switcher-btn {
    padding: 6px 10px;
    font-size: 0.78rem;
  }

  .btn-tencent-primary span:not(.btn-icon-arrow) {
    font-size: 0.82rem;
  }

  .section-title-tencent {
    font-size: 1.8rem;
  }

  .section-subtitle-tencent {
    font-size: 0.95rem;
  }

  /* Category Switcher Horizontal Scroll on Mobile */
  .category-tabs {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 8px;
  }

  .category-tabs::-webkit-scrollbar {
    display: none;
  }

  .tab-btn {
    flex-shrink: 0;
    padding: 8px 16px;
    font-size: 0.85rem;
  }

  .projects-grid-tencent {
    grid-template-columns: 1fr;
  }

  .spotlight-hero-img {
    height: 260px;
  }

  .spotlight-overlay {
    padding: 16px;
  }

  .spotlight-title {
    font-size: 1.2rem;
  }

  .spotlight-overlay p {
    display: none;
  }

  .metrics-grid-tencent {
    grid-template-columns: 1fr;
  }

  .lead-form-tencent {
    padding: 24px 18px;
  }

  .tencent-footer {
    padding: 48px 0 24px 0;
  }

  .footer-top-tencent {
    flex-direction: column;
    gap: 32px;
  }

  .footer-links-tencent {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .map-wrapper-tencent iframe {
    height: 280px;
  }
}

/* Screen Width <= 480px (Compact Mobile Screens) */
@media (max-width: 480px) {
  .slide-title {
    font-size: 1.85rem;
  }

  .slide-tag {
    font-size: 0.75rem;
    padding: 4px 12px;
  }

  .btn-tencent-primary,
  .btn-tencent-secondary {
    padding: 12px 18px;
    font-size: 0.9rem;
  }

  .footer-links-tencent {
    grid-template-columns: 1fr;
  }

  .video-modal-header {
    padding: 12px 16px;
  }

  .video-modal-title {
    font-size: 0.95rem;
  }
}
