/* Jintaobao Digital - Classic Gold & Black Premium Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Outfit:wght@400;600;700;800&display=swap');

:root {
  --primary-gold: rgb(183, 141, 81);
  --gold-hover: #9e7740;
  --black-dark: #000000;
  --black-navy: #121212;
  --black-text: #1a1a1a;
  --bg-light: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #333333;
  --text-muted: #666666;
  --border-color: #e2e8f0;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 30px -10px rgba(0, 0, 0, 0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-main);
  background-color: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

/* Container */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Topbar - Pure Black (#000000) on Desktop */
.topbar {
  background-color: #000000 !important;
  color: #a3a3a3;
  font-size: 13px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.topbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.topbar-info {
  display: flex;
  gap: 22px;
}

.topbar-info span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-info i {
  color: var(--primary-gold);
}

/* Navbar */
.navbar {
  background-color: #ffffff;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid #f1f5f9;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: var(--black-dark);
  letter-spacing: -0.5px;
}

.brand-title span {
  color: var(--primary-gold);
}

.brand-subtitle {
  font-size: 10px;
  font-weight: 700;
  color: var(--primary-gold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  gap: 15px;
  align-items: center;
}

.nav-links li {
  position: relative;
  padding: 10px 0;
}

.nav-links a {
  font-size: 13px;
  font-weight: 600;
  color: var(--black-text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 14px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-gold);
  background-color: rgba(183, 141, 81, 0.08);
}

/* Dropdown Menu styling */
.has-dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background-color: #ffffff;
  box-shadow: var(--shadow-lg);
  border-radius: 12px;
  padding: 8px 0;
  border: 1px solid var(--border-color);
  z-index: 1200;
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
  display: block;
  animation: dropdownFadeIn 0.2s ease-in-out;
}

@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.dropdown-menu li {
  width: 100%;
  padding: 0;
}

.dropdown-menu a {
  font-size: 13px;
  font-weight: 600;
  color: var(--black-dark);
  padding: 10px 20px;
  border-radius: 0;
  display: block;
  text-transform: none;
}

.dropdown-menu a:hover {
  background-color: rgba(183, 141, 81, 0.08);
  color: var(--primary-gold);
}

.btn-contact {
  background-color: var(--primary-gold);
  color: #ffffff !important;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 50px;
  box-shadow: 0 4px 14px rgba(183, 141, 81, 0.3);
  transition: all 0.3s ease;
}

.btn-contact:hover {
  background-color: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(183, 141, 81, 0.4);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--black-dark);
  padding: 5px;
}

/* Premium Mobile Slide-in Drawer Sidebar */
.mobile-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100%;
  background-color: #ffffff;
  z-index: 2000;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer.active {
  right: 0;
}

.drawer-header {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
}

.drawer-close {
  font-size: 20px;
  color: var(--black-dark);
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: #f1f5f9;
  transition: all 0.2s ease;
}

.drawer-close:hover {
  background-color: #e2e8f0;
  color: var(--primary-gold);
}

.drawer-links {
  padding: 20px;
  flex: 1;
  overflow-y: auto;
}

.drawer-links li {
  margin-bottom: 8px;
}

.drawer-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--black-dark);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.drawer-links a:hover,
.drawer-links a.active {
  background-color: rgba(183, 141, 81, 0.1);
  color: var(--primary-gold);
}

.drawer-links i {
  color: var(--primary-gold);
  width: 20px;
}

.drawer-dropdown-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--black-dark);
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.drawer-dropdown-title:hover {
  background-color: rgba(183, 141, 81, 0.1);
  color: var(--primary-gold);
}

.drawer-dropdown-title span {
  display: flex;
  align-items: center;
  gap: 12px;
}

.drawer-submenu {
  display: none;
  padding-left: 20px;
  margin-top: 4px;
}

.drawer-submenu.active {
  display: block;
}

.drawer-submenu a {
  font-size: 13px;
  padding: 8px 12px;
}

.drawer-footer {
  padding: 20px;
  border-top: 1px solid var(--border-color);
}

/* Hero Section Desktop (>= 1001px) */
.hero-section {
  background: linear-gradient(to right, rgba(10, 10, 10, 0.94) 0%, rgba(10, 10, 10, 0.8) 48%, rgba(10, 10, 10, 0.15) 90%), url('../assets/hero_bg.jpg') no-repeat center center / cover;
  padding: 90px 0;
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-left-content {
  color: #ffffff;
}

.hero-right-empty {
  min-height: 300px;
}

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: 42px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-title span {
  color: var(--primary-gold);
}

.hero-p {
  font-size: 15.5px;
  color: #cbd5e1;
  margin-bottom: 25px;
  line-height: 1.7;
}

/* Collaboration Banner Card */
.collab-card {
  background: #ffffff;
  border: 2px solid var(--primary-gold);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-md);
  margin-bottom: 25px;
}

.collab-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px dashed rgba(183, 141, 81, 0.3);
}

.collab-logo-img {
  height: 50px;
  object-fit: contain;
}

.collab-plus {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary-gold);
}

.collab-tagline {
  font-weight: 700;
  font-size: 15px;
  color: var(--black-dark);
  text-align: center;
}

.collab-quote {
  font-style: italic;
  color: var(--primary-gold);
  font-weight: 600;
  text-align: center;
  margin-top: 10px;
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 50px auto;
}

.section-tag {
  color: var(--primary-gold);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 34px;
  font-weight: 800;
  color: var(--black-dark);
  margin-bottom: 15px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 15px;
}

/* Round Avatars for Team Members - Larger (210px) & Perfectly Centered */
.round-avatar {
  width: 210px;
  height: 210px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center center;
  border: 4px solid var(--primary-gold);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  margin: 0 auto 20px auto;
  display: block;
  transition: transform 0.3s ease, border-color 0.3s ease;
  background-color: #ffffff;
}

.round-avatar:hover {
  transform: scale(1.06);
  border-color: #ffffff;
}

.team-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 30px 20px;
  text-align: center;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.team-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
  border-color: var(--primary-gold);
}

.team-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--black-dark);
  margin-bottom: 5px;
}

.team-role {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-gold);
  margin-bottom: 15px;
}

.team-bio {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Grid System */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.py-60 {
  padding: 60px 0;
}

/* Classic Cards */
.classic-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 25px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.classic-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--primary-gold);
}

.card-icon {
  font-size: 32px;
  color: var(--primary-gold);
  margin-bottom: 15px;
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--black-dark);
  margin-bottom: 10px;
}

.card-text {
  font-size: 13.5px;
  color: var(--text-muted);
}

/* Product & Automation Gallery */
.product-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 15px;
}

/* Client Logos Grid */
.client-logo-card {
  background-color: rgb(221, 221, 221) !important;
  border: 1px solid #cccccc;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.client-logo-card:hover {
  border-color: var(--primary-gold);
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

.client-logo-card img {
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
}

/* Footer */
.footer {
  background-color: var(--black-dark);
  color: #a3a3a3;
  padding: 60px 0 25px 0;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo-card {
  background-color: #ffffff;
  padding: 10px 18px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.footer-title {
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #cccccc;
  font-size: 13px;
}

.footer-links a:hover {
  color: var(--primary-gold);
}

.footer-bottom {
  border-top: 1px solid #262626;
  padding-top: 25px;
  text-align: center;
  font-size: 13px;
}

/* Form inputs */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--black-dark);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  font-size: 14px;
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-gold);
  box-shadow: 0 0 0 3px rgba(183, 141, 81, 0.15);
}

/* ========================================================= */
/* RESPONSIVE CSS FOR SCREENS BELOW 1000px (< 1000px)        */
/* ========================================================= */
@media (max-width: 1000px) {
  /* HIDE TOPBAR ON MOBILE / TABLET AS REQUESTED */
  .topbar {
    display: none !important;
  }

  .nav-links {
    display: none !important;
  }

  .menu-toggle {
    display: block !important;
  }

  /* MOBILE HERO SECTION WITH mobile_hero_bg.jpg & NO RIGHT EMPTY SPACE */
  .hero-section {
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.88) 0%, rgba(10, 10, 10, 0.78) 100%), url('../assets/mobile_hero_bg.jpg') no-repeat center center / cover !important;
    min-height: auto !important;
    padding: 45px 0 !important;
  }

  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  .hero-left-content {
    max-width: 100% !important;
  }

  /* ABSOLUTELY NO RIGHT EMPTY COLUMN BELOW 1000px AS REQUESTED */
  .hero-right-empty {
    display: none !important;
  }

  .hero-title {
    font-size: 28px !important;
  }

  .grid-3, .grid-4, .footer-grid, .grid-2 {
    grid-template-columns: 1fr !important;
  }
}
