:root {
  --primary: #ee2223;
  --primary-hover: #d11b1c;
  --secondary: #212529;
  --dark: #000000;
  --light: #f8f9fa;
  --white: #ffffff;
  --gray: #6c757d;
  --border: #e9ecef;
  --shadow-sm: 0 4px 6px rgba(0,0,0,0.02);
  --shadow-md: 0 20px 40px rgba(0,0,0,0.06);
  --shadow-lg: 0 30px 60px rgba(0,0,0,0.1);
  --nav-height: 80px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #1a1a1a;
  line-height: 1.6;
  background-color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Header */
header {
  height: var(--nav-height);
  background: transparent;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: all 0.4s ease;
}

header.scrolled, header.solid {
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(20px);
  height: 72px;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-size: 32px;
  font-weight: 900;
  color: white;
  text-decoration: none;
  letter-spacing: -2px;
  transition: color 0.3s;
}

.logo:hover {
  color: var(--primary) !important;
}

header.scrolled .logo, header.solid .logo {
  color: var(--primary) !important;
}

header.scrolled .logo:hover, header.solid .logo:hover {
  color: var(--primary-hover) !important;
}

nav {
  margin-left: 80px;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links a {
  padding: 0 24px;
  text-decoration: none;
  color: rgba(255,255,255,0.9);
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s;
  position: relative;
}

header.scrolled .nav-links a, header.solid .nav-links a {
  color: #333 !important;
}

.nav-links a:hover {
  color: var(--primary) !important;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 24px;
  right: 24px;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 24px;
  color: white;
}

header.scrolled .nav-right, header.solid .nav-right {
  color: #333 !important;
}

/* Hero */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  background: url('/images/banner.jpg?auto=format&fit=crop&q=80&w=2000') no-repeat center center;
  background-size: cover;
  color: white;
  position: relative;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 80% 20%, rgba(238, 34, 35, 0.2) 0%, transparent 50%),
              linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.8));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 850px;
}

.hero h1 {
  font-size: 88px;
  line-height: 1;
  margin-bottom: 32px;
  font-weight: 900;
  letter-spacing: -4px;
}

.hero p {
  font-size: 26px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 60px;
  line-height: 1.5;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 20px 48px;
  border-radius: 4px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  cursor: pointer;
}

.btn-primary {
  background: var(--primary) !important;
  color: white !important;
  border: none;
}

.btn-primary:hover {
  background: var(--primary-hover) !important;
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(238, 34, 35, 0.4);
}

.btn-outline {
  border: 2px solid rgba(255,255,255,0.4);
  color: white !important;
  margin-left: 24px;
}

.btn-outline:hover {
  background: white !important;
  color: black !important;
  border-color: white;
}

/* Sections */
.section {
  padding: 140px 0;
}

.bg-light { background-color: var(--light) !important; }
.bg-dark { background-color: #080808 !important; color: white !important; }

.section-header {
  text-align: center;
  margin-bottom: 100px;
}

.section-header h2 {
  font-size: 56px;
  font-weight: 900;
  margin-bottom: 24px;
  letter-spacing: -2px;
}

.section-header p {
  color: var(--gray);
  font-size: 22px;
  max-width: 800px;
  margin: 0 auto;
}

/* Grid Layouts */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

/* Stats */
.stats-bar {
  background: var(--white);
  padding: 120px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.stat-item {
  text-align: center;
}

.stat-item h3 {
  font-size: 72px;
  color: var(--primary);
  margin-bottom: 12px;
  font-weight: 900;
  letter-spacing: -2px;
}

.stat-item p {
  font-size: 18px;
  color: var(--gray);
  font-weight: 600;
}

/* Industry Cards */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.industry-card {
  position: relative;
  height: 520px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.industry-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.industry-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
  color: white;
}

.industry-card:hover img {
  transform: scale(1.1);
}

/* Product Card */
.card {
  background: white !important;
  padding: 48px;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-15px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.card-icon {
  width: 64px;
  height: 64px;
  background: #fff5f5;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 24px;
}

.feature-tag {
  background: #f0f0f0;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  margin-right: 8px;
  margin-bottom: 8px;
  display: inline-block;
}

/* Case Cards */
.case-card {
  background: var(--light) !important;
  padding: 60px;
  border-radius: 12px;
  transition: all 0.4s;
}

/* Scroll Animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
footer {
  background: #0a0a0a !important; /* Slightly softer black */
  padding: 100px 0 60px;
  color: #888;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 80px;
}

.footer-logo {
  font-size: 32px;
  font-weight: 900;
  color: #ffffff !important;
  margin-bottom: 32px;
  display: block;
  text-decoration: none;
  letter-spacing: -1.5px;
}

footer h4 {
  color: #ffffff !important;
  margin-bottom: 32px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

footer ul { 
  list-style: none; 
}

footer ul li { 
  margin-bottom: 16px; 
}

footer a { 
  color: #999999 !important; /* Consistent gray */
  text-decoration: none; 
  transition: all 0.3s ease; 
  font-size: 15px;
  font-weight: 400;
}

footer a:hover { 
  color: var(--primary) !important; /* Red on hover */
  padding-left: 5px; /* Subtle slide effect */
}

.footer-bottom {
  border-top: 1px solid #222;
  padding-top: 60px;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #666;
}

.footer-bottom a {
  color: #999999 !important;
  margin-left: 30px;
  transition: all 0.3s ease;
}

.footer-bottom a:hover {
  color: var(--primary) !important;
  padding-left: 0;
}

/* Progress Bar */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--primary);
  width: 0%;
  z-index: 1001;
}

/* Floating Btn */
.floating-btn {
  position: fixed;
  right: 40px;
  bottom: 40px;
  width: 72px;
  height: 72px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 15px 40px rgba(238, 34, 35, 0.4);
  cursor: pointer;
  z-index: 999;
}

.icon-btn {
  cursor: pointer;
  font-size: 20px;
  transition: all 0.3s;
}

.icon-btn:hover {
  color: var(--primary) !important;
  transform: scale(1.2);
}

/* Card Link Optimization */
.card a {
  transition: all 0.3s ease;
}

.card a:hover {
  color: var(--primary-hover) !important;
  gap: 10px; /* If there's an icon with margin-left, this can be achieved via flex gap or translate */
}

.card a i {
  transition: transform 0.3s ease;
}

.card a:hover i {
  transform: translate(3px, -3px);
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: white;
  width: 100%;
  max-width: 500px;
  padding: 48px;
  border-radius: 20px;
  position: relative;
  transform: translateY(30px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 24px;
  cursor: pointer;
  color: #999;
  transition: color 0.3s;
}

.modal-close:hover {
  color: var(--primary);
}

.modal-header {
  margin-bottom: 32px;
  text-align: center;
}

.modal-header h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 12px;
  color: #1a1a1a;
}

.modal-header p {
  color: #666;
  font-size: 16px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #333;
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: 16px;
  font-family: inherit;
  transition: all 0.3s;
  background: #f9fafb;
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(238, 34, 35, 0.1);
}

.submit-btn {
  width: 100%;
  padding: 16px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 12px;
}

.submit-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(238, 34, 35, 0.2);
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(10px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-content {
  position: absolute;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100%;
  background: white;
  padding: 40px 30px;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -10px 0 30px rgba(0,0,0,0.1);
}

.mobile-nav-overlay.active .mobile-nav-content {
  right: 0;
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 50px;
}

.close-mobile-menu {
  font-size: 24px;
  cursor: pointer;
  color: #333;
}

.mobile-nav-links {
  list-style: none;
}

.mobile-nav-links li {
  margin-bottom: 24px;
}

.mobile-nav-links a {
  text-decoration: none;
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  transition: color 0.3s;
}

.mobile-nav-links a:hover {
  color: var(--primary);
}

.platform-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.partners-grid {
  display: flex;
  justify-content: space-around;
  align-items: center;
  filter: grayscale(1);
  opacity: 0.6;
  flex-wrap: wrap;
  gap: 30px;
}

.page-header {
  padding-top: 200px !important;
  padding-bottom: 100px !important;
  text-align: center;
}

.main-title {
  font-size: 72px;
  font-weight: 950;
  margin-bottom: 24px;
  letter-spacing: -3px;
  color: white;
}

.sub-title {
  color: #888;
  font-size: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.about-hero {
  padding-top: 200px !important;
  padding-bottom: 120px !important;
  text-align: center;
  background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('/images/web/photo-1497366216548-37526070297c.jpg?auto=format&fit=crop&q=80&w=1600') center/cover !important;
}

.platform-hero {
  padding-top: 220px !important;
  padding-bottom: 140px !important;
  text-align: center;
  background: radial-gradient(circle at 20% 30%, rgba(238, 34, 35, 0.15) 0%, transparent 40%),
              radial-gradient(circle at 80% 70%, rgba(238, 34, 35, 0.1) 0%, transparent 40%),
              linear-gradient(rgba(0,0,0,0.85), rgba(0,0,0,0.9)),
              url('/images/web/photo-1550751827-4bd374c3f58b.jpg?auto=format&fit=crop&q=80&w=1200') center/cover !important;
}

.feature-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.cta-section {
  text-align: center;
  background: var(--primary) !important;
  color: white !important;
  padding: 100px 0;
}

.cta-btns {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* Responsive Media Queries */
@media (max-width: 1200px) {
  .container {
    padding: 0 30px;
  }
  
  .hero h1 {
    font-size: 72px;
  }

  .main-title {
    font-size: 64px;
  }
}

@media (max-width: 1024px) {
  nav {
    margin-left: 40px;
  }
  
  .nav-links a {
    padding: 0 12px;
    font-size: 15px;
  }
  
  .hero h1 {
    font-size: 64px;
  }

  .grid, .stats-grid, .industry-grid, .platform-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 24px;
  }

  .footer-top {
    grid-template-columns: repeat(3, 1fr);
  }

  .main-title {
    font-size: 56px;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 70px;
  }

  .container {
    padding: 0 20px;
  }

  header.scrolled, header.solid {
    height: 64px;
  }

  nav {
    display: none;
  }

  .nav-right .btn-outline, .nav-right .icon-btn:not(.mobile-menu-btn, .mobile-nav-header .close-mobile-menu) {
    display: none !important;
  }

  .mobile-menu-btn {
    display: block !important;
    color: inherit;
  }

  .hero h1 {
    font-size: 48px;
    letter-spacing: -2px;
  }

  .hero p {
    font-size: 20px;
  }

  .section {
    padding: 80px 0;
  }

  .section-header h2 {
    font-size: 36px;
  }

  .grid, .stats-grid, .industry-grid, .footer-top, .platform-grid, .feature-mini-grid {
    grid-template-columns: 1fr !important;
  }

  .cta-btns {
    flex-direction: column;
    gap: 15px;
  }

  .stat-item h3 {
    font-size: 56px;
  }

  .industry-card {
    height: 400px;
  }

  .platform-grid h2 {
    font-size: 36px !important;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .footer-bottom a {
    margin: 0 10px;
  }

  .modal-content {
    padding: 30px 20px;
    border-radius: 0;
    height: 100%;
    max-width: 100%;
    overflow-y: auto;
  }

  .hero-btns {
    flex-direction: column;
    gap: 15px;
  }

  .btn {
    width: 100%;
    padding: 16px 32px;
  }

  .btn-outline {
    margin-left: 0;
  }

  .main-title {
    font-size: 42px;
    letter-spacing: -1px;
  }

  .sub-title {
    font-size: 18px;
  }

  .page-header, .about-hero {
    padding-top: 140px !important;
    padding-bottom: 60px !important;
  }

  .partners-grid {
    justify-content: center;
    gap: 20px;
  }

  .partners-grid span {
    font-size: 20px !important;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 36px;
  }

  .stat-item h3 {
    font-size: 48px;
  }

  .industry-overlay {
    padding: 24px;
  }

  .card {
    padding: 30px;
  }

  .main-title {
    font-size: 32px;
  }
}
