:root {
  --primary-color: #ff6700;
  --text-dark: #212121;
  --text-gray: #616161;
  --text-light: #b0b0b0;
  --bg-dark: #191919;
  --bg-light: #f7f7f7;
  --bg-white: #ffffff;
  --border-color: #e0e0e0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

/* Navbar */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 5%;
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  background-color: var(--primary-color);
  color: white;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-weight: 800;
  font-size: 24px;
}

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

.nav-links a {
  font-size: 16px;
  color: var(--text-dark);
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--primary-color);
}

.nav-icons {
  display: flex;
  gap: 20px;
  color: var(--text-gray);
  font-size: 20px;
  cursor: pointer;
}

.nav-icons span:hover {
  color: var(--primary-color);
}

/* Secondary Nav */
.sub-nav {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 15px 0;
  background-color: var(--bg-white);
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
  color: var(--text-gray);
}

.sub-nav a.active {
  color: var(--primary-color);
  font-weight: 600;
}

/* Main Content */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-white);
  padding: 60px 0;
}

.hero-text {
  flex: 1;
  max-width: 500px;
}

.hero-text h1 {
  font-size: 48px;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-dark);
  font-weight: 700;
  letter-spacing: -1px;
}

.hero-text p {
  font-size: 18px;
  color: var(--text-gray);
  margin-bottom: 40px;
}

.btn-primary {
  display: inline-block;
  background-color: #000;
  color: var(--bg-white);
  padding: 16px 40px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
  border: 1px solid #000;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: var(--bg-white);
  color: #000;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  max-width: 90%;
  height: auto;
  animation: float 4s ease-in-out infinite;
  border-radius: 20px;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}


/* Section Title */
.section-title {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 50px;
  color: var(--text-dark);
}

/* Problem Section */
.problem-section {
  background-color: var(--bg-light);
  padding: 80px 0;
  text-align: center;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.problem-card {
  background: var(--bg-white);
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  transition: transform 0.3s ease;
}

.problem-card:hover {
  transform: translateY(-5px);
}

.problem-card h3 {
  color: var(--primary-color);
  font-size: 24px;
  margin-bottom: 15px;
}


/* Features Grid */
.features-section {
  padding: 80px 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.product-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  padding: 30px 20px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}

.product-card:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  border-color: transparent;
  transform: translateY(-2px);
}

.discount-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: #fff1eb;
  color: #ff6a00;
  font-size: 12px;
  padding: 4px 8px;
  border: 1px solid #ffccb8;
  border-radius: 4px;
}

.product-img {
  width: 160px;
  height: 160px;
  object-fit: contain;
  margin: 20px auto;
  opacity: 0.8;
}

.product-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.product-desc {
  font-size: 14px;
  color: var(--text-gray);
  margin-bottom: 20px;
  height: 40px;
  overflow: hidden;
}

.btn-outline {
  display: inline-block;
  background-color: transparent;
  color: #000;
  padding: 8px 25px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 20px;
  border: 1px solid #ccc;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-outline:hover {
  border-color: #000;
  color: #000;
}

/* Social Proof */
.testimonial-section {
  background-color: var(--bg-light);
  padding: 80px 0;
}

.testimonial-grid {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.testimonial-card {
  background: var(--bg-white);
  padding: 30px;
  border-radius: 12px;
  max-width: 450px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.stars {
  color: #ffb800;
  font-size: 18px;
  margin-bottom: 15px;
}

.quote {
  font-size: 15px;
  font-style: italic;
  color: var(--text-gray);
  margin-bottom: 20px;
}

.author {
  font-weight: 600;
  font-size: 14px;
}

/* CTA Section */
.cta-section {
  padding: 100px 0;
  text-align: center;
  background: linear-gradient(to right, #fbfbfb, #fdfdfd);
  border-top: 1px solid var(--border-color);
}

.cta-box {
  max-width: 700px;
  margin: 0 auto;
}

.price {
  font-size: 36px;
  font-weight: 700;
  color: #c00;
  margin: 20px 0;
}

.price strike {
  font-size: 20px;
  color: var(--text-light);
  margin-left: 10px;
}

.countdown {
  color: #c00;
  font-weight: bold;
  font-size: 20px;
  margin: 20px 0;
}

.form-group {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 400px;
  margin: 40px auto;
}

.form-control {
  padding: 15px 20px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* Footer (Xiaomi Style) */
.footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 60px 0 30px;
  font-size: 14px;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  border-bottom: 1px solid #333;
  padding-bottom: 40px;
}

.footer-col h4 {
  color: #fff;
  font-size: 14px;
  margin-bottom: 20px;
  text-transform: uppercase;
  font-weight: 600;
}

.footer-col ul li {
  margin-bottom: 12px;
}

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

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.footer-text p {
  margin-bottom: 5px;
}

/* Projects List Section */
.project-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.proj-card {
  background: var(--bg-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.proj-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.proj-img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.proj-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: rgba(211, 47, 47, 0.9);
  color: white;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  z-index: 2;
}

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

.proj-card:hover .proj-img {
  transform: scale(1.05);
}

.proj-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.proj-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.proj-addr {
  font-size: 14px;
  color: var(--text-gray);
  margin-bottom: 15px;
}

.proj-stats {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
  margin-bottom: 15px;
}

.stat {
  font-size: 13px;
  color: var(--text-gray);
  display: flex;
  align-items: center;
  gap: 5px;
}

.proj-financials {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: auto;
}

.fin-item {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.fin-label {
  color: var(--text-gray);
}

.fin-value {
  font-weight: 600;
}

/* --- NEW SECTIONS CSS --- */

/* Chairman Section */
.chairman-section {
  padding: 80px 0;
  background-color: var(--bg-white);
  border-top: 1px solid var(--border-color);
}

.chairman-wrap {
  display: flex;
  align-items: center;
  gap: 50px;
}

.chairman-image {
  flex: 1;
}

.chairman-content {
  flex: 1.2;
}

.chairman-content p {
  font-size: 16px;
  color: var(--text-gray);
  margin-bottom: 15px;
  line-height: 1.8;
}

/* Investment Section */
.invest-section {
  padding: 80px 0;
  background-color: var(--bg-light);
}

.invest-grid {
  display: flex;
  gap: 40px;
}

.invest-calc, .invest-models {
  flex: 1;
  background: var(--bg-white);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.fin-table {
  width: 100%;
  border-collapse: collapse;
}

.fin-table th, .fin-table td {
  padding: 15px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 15px;
}

.total-row td {
  font-weight: bold;
  color: var(--text-dark);
  border-bottom: none;
  padding-top: 20px;
}

.model-item {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.model-icon {
  font-size: 24px;
  color: var(--primary-color);
  background: #fff1eb;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.model-item h4 {
  margin-bottom: 8px;
  font-size: 16px;
}

.model-item p {
  font-size: 14px;
  color: var(--text-gray);
}

/* Gallery Section */
.gallery-section {
  padding: 80px 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 300px;
}

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

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: white;
  padding: 20px;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
  opacity: 1;
}

.gallery-overlay h4 {
  font-size: 20px;
  margin-bottom: 5px;
}

.gallery-overlay p {
  font-size: 14px;
  margin-bottom: 2px;
}

/* Operations Section */
.ops-section {
  padding: 80px 0;
  background-color: var(--bg-white);
}

.ops-wrap {
  display: flex;
  gap: 50px;
  align-items: center;
}

.ops-text {
  flex: 1;
}

.ops-list {
  margin-top: 20px;
}

.ops-list li {
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--text-gray);
  display: flex;
  align-items: flex-start;
}

.ops-stats {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.ops-stat-card {
  background: var(--bg-light);
  padding: 30px 20px;
  text-align: center;
  border-radius: 12px;
}

.ops-stat-card h2 {
  font-size: 36px;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.ops-stat-card p {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 40px 0;
  }
  .hero-text h1 {
    font-size: 36px;
  }
  .nav-links {
    display: none; /* simple mobile hide for demo */
  }
  .chairman-wrap, .invest-grid, .ops-wrap {
    flex-direction: column;
  }
  .ops-stats {
    width: 100%;
  }
}

/* --- CHATBOT WIDGET --- */
.chatbot-toggler {
  position: fixed;
  bottom: 30px;
  right: 35px;
  outline: none;
  border: none;
  height: 60px;
  width: 60px;
  display: flex;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #d32f2f;
  color: #fff;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(211, 47, 47, 0.4);
  font-size: 26px;
}
.chatbot-toggler i {
  position: absolute;
}
.chatbot-toggler i.fa-times {
  opacity: 0;
}
body.show-chatbot .chatbot-toggler i.fa-comment-dots {
  opacity: 0;
}
body.show-chatbot .chatbot-toggler i.fa-times {
  opacity: 1;
  transform: rotate(90deg);
  transition: all 0.3s ease;
}
.chatbot {
  position: fixed;
  right: 35px;
  bottom: 110px;
  width: 380px;
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8) translateY(20px);
  transform-origin: bottom right;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  transition: all 0.3s cubic-bezier(0.15, 0.85, 0.35, 1.2);
  z-index: 1000;
  border: 1px solid var(--border-color);
}
body.show-chatbot .chatbot {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1) translateY(0);
}
.chatbot header {
  padding: 16px 20px;
  position: relative;
  text-align: center;
  color: #fff;
  background: #d32f2f;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chatbot header h2 {
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.chatbot header span {
  cursor: pointer;
  font-size: 18px;
}
.chatbot .chatbox {
  overflow-y: auto;
  height: 400px;
  padding: 25px 20px 80px;
}
.chatbot :where(.chatbox, textarea)::-webkit-scrollbar {
  width: 6px;
}
.chatbot :where(.chatbox, textarea)::-webkit-scrollbar-track {
  background: #fff;
}
.chatbot :where(.chatbox, textarea)::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 25px;
}
.chatbox .chat {
  display: flex;
  list-style: none;
  margin-bottom: 20px;
}
.chatbox .outgoing {
  margin-left: auto;
  justify-content: flex-end;
}
.chatbox .outgoing p {
  color: #fff;
  background: #d32f2f;
  border-radius: 20px 20px 0 20px;
}
.chatbox .incoming p {
  color: #000;
  background: #f2f2f2;
  border-radius: 20px 20px 20px 0;
}
.chatbox .chat p {
  white-space: pre-wrap;
  padding: 12px 16px;
  font-size: 14.5px;
  max-width: 80%;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  line-height: 1.5;
}
.chatbox .incoming .chat-icon {
  width: 36px;
  height: 36px;
  color: #fff;
  background: #d32f2f;
  text-align: center;
  line-height: 36px;
  border-radius: 50%;
  margin-right: 10px;
  font-size: 15px;
  flex-shrink: 0;
}
.chatbot .chat-input {
  display: flex;
  gap: 10px;
  position: absolute;
  bottom: 0;
  width: 100%;
  background: #fff;
  padding: 15px 20px;
  border-top: 1px solid #eee;
}
.chat-input input {
  height: 45px;
  width: 100%;
  border: none;
  outline: none;
  font-size: 14.5px;
  padding: 0 15px;
  border-radius: 20px;
  background: #f0f0f0;
}
.chat-input span {
  align-self: flex-end;
  color: #d32f2f;
  cursor: pointer;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  width: 45px;
  background: #fee;
  border-radius: 50%;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.chat-input span:hover {
  background: #d32f2f;
  color: #fff;
}
@media (max-width: 490px) {
  .chatbot-toggler {
    right: 20px;
    bottom: 20px;
  }
  .chatbot {
    right: 0;
    bottom: 0;
    height: 100%;
    border-radius: 0;
    width: 100%;
  }
  .chatbot .chatbox {
    height: calc(100% - 130px);
    padding: 25px 15px;
  }
}
