/* ======================================
   HuayiTech - 精密工业仪表官网
   Russian Market Blue + White Theme
   ====================================== */

/* --- CSS Variables --- */
:root {
  --primary: #003d6b;
  --primary-dark: #002a4d;
  --primary-medium: #004d8a;
  --primary-gradient: linear-gradient(135deg, #002a4d 0%, #003d6b 50%, #004d8a 100%);
  --accent: #e85d04;
  --accent-hover: #ff6b00;
  --accent-light: rgba(232, 93, 4, 0.08);
  --gold: #bd8a3a;
  --gold-light: rgba(189, 138, 58, 0.1);

  --bg-white: #ffffff;
  --bg-light: #f5f7fa;
  --bg-section: #f0f4f8;
  --bg-blue-light: #e8f0f8;

  --text-primary: #003d6b;
  --text-dark: #1a1a2e;
  --text-body: #44445a;
  --text-muted: #77778a;
  --text-white: #ffffff;

  --card-bg: #ffffff;
  --card-border: #e2e6ed;
  --card-shadow: 0 4px 20px rgba(0, 45, 90, 0.06);
  --card-shadow-hover: 0 8px 35px rgba(0, 45, 90, 0.12);
  --border-color: #e2e6ed;

  --nav-bg: rgba(255, 255, 255, 0.97);
  --nav-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  --footer-bg: #002a4d;

  --section-padding: 90px 0;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-white);
  color: var(--text-body);
  line-height: 1.7;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

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

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

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

.section-subtitle {
  display: inline-block;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 12px;
  position: relative;
}

.section-subtitle::before {
  content: '';
  display: inline-block;
  width: 30px;
  height: 2px;
  background: var(--accent);
  margin-right: 10px;
  vertical-align: middle;
}

.section-title {
  font-size: 40px;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.section-desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 45px;
}

.text-center {
  text-align: center;
}

.text-center .section-desc {
  margin-left: auto;
  margin-right: auto;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 35px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: inherit;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.btn-primary {
  background: var(--primary);
  color: var(--text-white);
  box-shadow: 0 4px 15px rgba(0, 61, 107, 0.25);
}

.btn-primary:hover {
  background: var(--primary-medium);
  box-shadow: 0 6px 25px rgba(0, 61, 107, 0.35);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--text-white);
}

.btn-sm {
  padding: 10px 24px;
  font-size: 13px;
}

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

.header.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  box-shadow: var(--nav-shadow);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--text-white);
}

.header.scrolled .logo {
  color: var(--text-dark);
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  color: var(--text-white);
}

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

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

.nav a,
.nav .nav-link {
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  font-weight: 500;
  position: relative;
  padding: 5px 0;
}

.header.scrolled .nav a,
.header.scrolled .nav .nav-link {
  color: var(--text-muted);
}

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

.nav a:hover,
.nav a.active,
.nav .nav-link:hover,
.nav .nav-link.active {
  color: var(--text-white);
}

.header.scrolled .nav a:hover,
.header.scrolled .nav a.active,
.header.scrolled .nav .nav-link:hover,
.header.scrolled .nav .nav-link.active {
  color: var(--primary);
}

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

.nav .btn {
  padding: 10px 22px;
  font-size: 13px;
}

.header.scrolled .nav .btn {
  color: var(--text-white);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-white);
  transition: var(--transition);
}

.header.scrolled .hamburger span {
  background: var(--text-dark);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: var(--primary-gradient);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect fill="none" stroke="%23ffffff" stroke-width="0.3" opacity="0.05" x="10" y="10" width="80" height="80"/><circle fill="none" stroke="%23ffffff" stroke-width="0.3" opacity="0.05" cx="50" cy="50" r="30"/></svg>') repeat;
  background-size: 200px 200px;
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding-top: 80px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 25px;
}

.hero-badge i {
  font-size: 10px;
  color: var(--gold);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero h1 {
  font-size: 54px;
  margin-bottom: 20px;
  line-height: 1.1;
  color: var(--text-white);
}

.hero h1 span {
  color: var(--gold);
  display: block;
}

.hero p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 35px;
  max-width: 550px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.hero-buttons .btn-outline {
  color: var(--text-white);
  border-color: rgba(255, 255, 255, 0.4);
}

.hero-buttons .btn-outline:hover {
  background: var(--text-white);
  color: var(--primary);
  border-color: var(--text-white);
}

.hero-stats {
  display: flex;
  gap: 50px;
  margin-top: 60px;
  padding-top: 35px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-stat {
  text-align: center;
}

.hero-stat h3 {
  font-size: 34px;
  color: var(--gold);
  margin-bottom: 4px;
}

.hero-stat p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0;
}

/* --- Floating shapes --- */
.floating-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.floating-shapes .shape {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.floating-shapes .shape:nth-child(1) {
  width: 300px;
  height: 300px;
  top: 10%;
  right: 10%;
  border-radius: 50%;
  animation: float 20s infinite ease-in-out;
}

.floating-shapes .shape:nth-child(2) {
  width: 150px;
  height: 150px;
  bottom: 20%;
  right: 30%;
  transform: rotate(45deg);
  animation: float 15s infinite ease-in-out reverse;
}

.floating-shapes .shape:nth-child(3) {
  width: 200px;
  height: 200px;
  top: 40%;
  left: 5%;
  border-radius: 50%;
  animation: float 25s infinite ease-in-out;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-30px) rotate(5deg); }
  66% { transform: translateY(20px) rotate(-3deg); }
}

/* --- Sections Common --- */
section {
  padding: var(--section-padding);
}

/* --- Solutions Section --- */
.solutions {
  background: var(--bg-light);
}

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

.solution-card {
  background: var(--card-bg);
  padding: 40px 30px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.solution-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

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

.solution-card:hover {
  border-color: var(--primary);
  transform: translateY(-8px);
  box-shadow: var(--card-shadow-hover);
}

.solution-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 25px;
  background: var(--bg-blue-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--primary);
  transition: var(--transition);
}

.solution-card:hover .solution-icon {
  background: var(--primary);
  color: var(--text-white);
}

.solution-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.solution-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

/* --- About Section --- */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  position: relative;
  height: 450px;
  background: var(--bg-blue-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--card-border);
  overflow: hidden;
}

.about-image-placeholder {
  text-align: center;
  color: var(--text-muted);
}

.about-image-placeholder i {
  font-size: 60px;
  color: var(--primary);
  margin-bottom: 15px;
}

.about-image::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  border-right: 3px solid var(--primary);
  border-bottom: 3px solid var(--primary);
}

.about-text h2 {
  font-size: 40px;
  margin-bottom: 20px;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 18px;
  font-size: 15px;
}

.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 35px;
}

.about-stat-item {
  text-align: center;
  padding: 20px 15px;
  background: var(--bg-light);
  border-radius: 8px;
  border: 1px solid var(--card-border);
}

.about-stat-item h3 {
  font-size: 30px;
  color: var(--primary);
  margin-bottom: 4px;
}

.about-stat-item p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* --- Services Section --- */
.services {
  background: var(--bg-section);
}

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

.service-card {
  background: var(--card-bg);
  padding: 35px;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  position: relative;
}

.service-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: var(--card-shadow-hover);
}

/* ---- Service Card Icon (fallback / legacy) ---- */
.service-card .icon {
  width: 55px;
  height: 55px;
  background: var(--bg-blue-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--primary);
  margin-bottom: 20px;
  transition: var(--transition);
}

.service-card:hover .icon {
  background: var(--primary);
  color: var(--text-white);
}

.service-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 18px;
  line-height: 1.7;
}

.service-card .service-link {
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.service-card .service-link i {
  font-size: 12px;
  transition: var(--transition);
}

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

/* --- Service Card Image --- */
.service-card-img {
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 20px;
  background: var(--bg-blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

/* --- Application Industries Section --- */
.industries {
  background: var(--bg-white);
  padding: var(--section-padding);
}

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

.industry-card {
  background: var(--card-bg);
  border-radius: 12px;
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: var(--transition);
}

.industry-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--primary);
}

.industry-img {
  height: 200px;
  overflow: hidden;
}

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

.industry-card:hover .industry-img img {
  transform: scale(1.1);
}

.industry-info {
  padding: 25px;
}

.industry-info h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.industry-info p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 0;
}

/* --- Why Choose Us Section --- */
.why-choose {
  position: relative;
  background: var(--bg-white);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.why-item {
  text-align: center;
  padding: 30px 20px;
  background: var(--bg-light);
  border-radius: 12px;
  border: 1px solid var(--card-border);
  transition: var(--transition);
}

.why-item:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: var(--card-shadow-hover);
}

.why-item i {
  font-size: 32px;
  color: var(--primary);
  margin-bottom: 15px;
}

.why-item h4 {
  font-size: 16px;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.why-item p {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
}

/* --- CTA Section --- */
.cta-section {
  background: var(--primary-gradient);
  text-align: center;
  padding: 80px 0;
}

.cta-section h2 {
  font-size: 36px;
  margin-bottom: 12px;
  color: var(--text-white);
}

.cta-section p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 16px;
  margin-bottom: 35px;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-buttons .btn-outline {
  color: var(--text-white);
  border-color: rgba(255, 255, 255, 0.4);
}

.cta-buttons .btn-outline:hover {
  background: var(--text-white);
  color: var(--primary);
  border-color: var(--text-white);
}

/* --- Testimonials --- */
.testimonials {
  background: var(--bg-section);
}

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

.testimonial-card {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
}

.testimonial-card .stars {
  color: #f59e0b;
  margin-bottom: 15px;
  font-size: 14px;
}

.testimonial-card p {
  color: var(--text-body);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-author .avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--bg-blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: 700;
  font-size: 16px;
}

.testimonial-author .info h5 {
  font-size: 14px;
  margin-bottom: 2px;
  color: var(--text-dark);
}

.testimonial-author .info span {
  font-size: 12px;
  color: var(--text-muted);
}

/* --- Footer --- */
.footer {
  background: var(--footer-bg);
  padding: 70px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 40px;
  padding-bottom: 50px;
}

.footer-about h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: var(--text-white);
}

.footer-about h3 span {
  color: var(--gold);
}

.footer-about p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--gold);
  color: var(--text-white);
  border-color: var(--gold);
}

.footer h4 {
  font-size: 17px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
  color: var(--text-white);
}

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

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

.footer-links a {
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links a i {
  font-size: 10px;
  color: var(--gold);
}

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

.footer-contact li {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

.footer-contact li i {
  color: var(--gold);
  margin-top: 5px;
  min-width: 16px;
}

.footer-newsletter p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  margin-bottom: 15px;
}

.newsletter-form {
  display: flex;
  gap: 0;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-right: none;
  border-radius: 4px 0 0 4px;
  color: var(--text-white);
  font-size: 14px;
  outline: none;
  font-family: inherit;
  transition: var(--transition);
}

.newsletter-form input:focus {
  border-color: var(--gold);
}

.newsletter-form button {
  padding: 12px 18px;
  background: var(--gold);
  color: var(--text-white);
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  transition: var(--transition);
}

.newsletter-form button:hover {
  background: #a67a2e;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

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

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.4);
}

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

/* ======================================
   PAGE HEADER / BANNER
   ====================================== */
.page-banner {
  padding: 180px 0 90px;
  background: var(--primary-gradient);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect fill="none" stroke="%23ffffff" stroke-width="0.3" opacity="0.05" x="10" y="10" width="80" height="80"/><circle fill="none" stroke="%23ffffff" stroke-width="0.3" opacity="0.05" cx="50" cy="50" r="30"/></svg>') repeat;
  background-size: 200px 200px;
  opacity: 0.3;
}

.page-banner h1 {
  font-size: 44px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
  color: var(--text-white);
}

.page-banner p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  position: relative;
  z-index: 1;
  max-width: 500px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  position: relative;
  z-index: 1;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.6);
}

.breadcrumb a:hover {
  color: var(--text-white);
}

.breadcrumb span {
  color: var(--gold);
}

/* ======================================
   PRODUCTS PAGE
   ====================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.product-card {
  background: var(--card-bg);
  border-radius: 12px;
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: var(--transition);
}

.product-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: var(--card-shadow-hover);
}

.product-card-image {
  height: 200px;
  background: var(--bg-blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  color: var(--primary);
  position: relative;
}

.product-card-image .badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--accent);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-white);
}

.product-card-image .badge-gold {
  background: var(--gold);
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-white);
}

.product-card-body {
  padding: 25px;
}

.product-card-body h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.product-card-body p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 15px;
}

.product-card-body .product-link {
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.product-card-body .product-link i {
  font-size: 12px;
  transition: var(--transition);
}

.product-card-body .product-link:hover i {
  transform: translateX(5px);
}

/* ======================================
   PRODUCT DETAIL
   ====================================== */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.product-detail-image {
  background: var(--bg-blue-light);
  border-radius: 12px;
  border: 1px solid var(--card-border);
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  color: var(--primary);
}

.product-detail-info h2 {
  font-size: 30px;
  margin-bottom: 15px;
}

.product-detail-info .product-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.product-detail-info .product-meta span {
  font-size: 13px;
  color: var(--text-muted);
  background: var(--bg-light);
  padding: 6px 14px;
  border-radius: 4px;
  border: 1px solid var(--card-border);
}

.product-detail-info .product-meta i {
  color: var(--primary);
  margin-right: 5px;
}

.product-detail-info p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 25px;
}

.product-features {
  margin-bottom: 30px;
}

.product-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-body);
  font-size: 14px;
  padding: 8px 0;
  border-bottom: 1px solid var(--card-border);
}

.product-features li i {
  color: var(--primary);
  font-size: 14px;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  margin-bottom: 30px;
}

.specs-table th,
.specs-table td {
  padding: 12px 15px;
  text-align: left;
  border: 1px solid var(--card-border);
  font-size: 14px;
}

.specs-table th {
  background: var(--bg-blue-light);
  color: var(--text-primary);
  font-weight: 600;
}

.specs-table td {
  color: var(--text-body);
}

/* ======================================
   PORTFOLIO / CASES PAGE
   ====================================== */
.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 24px;
  background: var(--bg-white);
  border: 1px solid var(--card-border);
  border-radius: 4px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--text-white);
}

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

.portfolio-item {
  background: var(--card-bg);
  border-radius: 12px;
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: var(--transition);
}

.portfolio-item:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: var(--card-shadow-hover);
}

.portfolio-image {
  height: 200px;
  background: var(--bg-blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: var(--primary);
}

.portfolio-body {
  padding: 25px;
}

.portfolio-body .category {
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 8px;
}

.portfolio-body h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.portfolio-body p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 15px;
}

.portfolio-body .portfolio-link {
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.portfolio-body .portfolio-link i {
  font-size: 12px;
  transition: var(--transition);
}

.portfolio-body .portfolio-link:hover i {
  transform: translateX(5px);
}

/* ======================================
   TEAM SECTION
   ====================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.team-card {
  background: var(--card-bg);
  border-radius: 12px;
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  text-align: center;
  transition: var(--transition);
}

.team-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: var(--card-shadow-hover);
}

.team-card-avatar {
  height: 180px;
  background: var(--bg-blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--primary);
}

.team-card-body {
  padding: 25px;
}

.team-card-body h4 {
  font-size: 18px;
  margin-bottom: 5px;
}

.team-card-body .role {
  color: var(--accent);
  font-size: 13px;
  margin-bottom: 12px;
}

.team-card-body p {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 15px;
}

.team-social {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.team-social a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 13px;
  transition: var(--transition);
}

.team-social a:hover {
  background: var(--primary);
  color: var(--text-white);
}

/* ======================================
   CONTACT PAGE
   ====================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 50px;
}

.contact-info-box {
  background: var(--card-bg);
  padding: 40px;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
}

.contact-info-item {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}

.contact-info-item:last-child {
  margin-bottom: 0;
}

.contact-info-item i {
  width: 50px;
  height: 50px;
  min-width: 50px;
  background: var(--bg-blue-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--primary);
}

.contact-info-item h4 {
  font-size: 16px;
  margin-bottom: 5px;
}

.contact-info-item p {
  color: var(--text-muted);
  font-size: 14px;
}

.contact-form-box {
  background: var(--card-bg);
  padding: 40px;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
}

.contact-form-box h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.contact-form-box p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 25px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

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

.form-group label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  background: var(--bg-light);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  color: var(--text-dark);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 61, 107, 0.1);
}

.form-group textarea {
  height: 120px;
  resize: vertical;
}

.map-container {
  margin-top: 50px;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 45, 90, 0.08);
}

.map-container iframe {
  display: block;
  width: 100%;
  height: 400px;
}

.map-overlay-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 45, 77, 0.85);
  backdrop-filter: blur(4px);
  color: #fff;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  pointer-events: none;
}

.map-overlay-info i {
  font-size: 16px;
  color: var(--accent);
}

.map-container iframe {
  display: block;
  width: 100%;
  height: 400px;
}

@container (max-width: 600px) {
  .map-container iframe {
    height: 280px;
  }
}

/* ======================================
   FAQ PAGE
   ====================================== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--primary);
}

.faq-question {
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
}

.faq-question h4 {
  font-size: 16px;
  font-weight: 500;
  margin-right: 15px;
  color: var(--text-dark);
}

.faq-question i {
  color: var(--primary);
  font-size: 14px;
  transition: var(--transition);
  min-width: 14px;
}

.faq-item.active .faq-question i {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 25px 20px;
}

.faq-answer p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.8;
}

/* ======================================
   ANIMATIONS
   ====================================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ======================================
   RESPONSIVE
   ====================================== */
@media (max-width: 1024px) {
  .solutions-grid,
  .services-grid,
  .industries-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 76px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 76px);
    background: var(--bg-white);
    flex-direction: column;
    justify-content: flex-start;
    padding: 40px 20px;
    gap: 20px;
    transition: var(--transition);
    box-shadow: var(--nav-shadow);
  }

  .nav.active {
    left: 0;
  }

  .nav a {
    color: var(--text-muted) !important;
  }

  .nav a:hover,
  .nav a.active {
    color: var(--primary) !important;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero p {
    font-size: 15px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 25px;
  }

  .section-title {
    font-size: 26px;
  }

  .solutions-grid,
  .services-grid,
  .industries-grid {
    grid-template-columns: 1fr;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-stats-grid {
    grid-template-columns: 1fr;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

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

  .products-grid {
    grid-template-columns: 1fr;
  }

  .product-detail-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .filter-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .page-banner {
    padding: 160px 0 70px;
  }

  .page-banner h1 {
    font-size: 30px;
  }

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

  .footer-bottom-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-stat h3 {
    font-size: 26px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 26px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .cta-buttons {
    flex-direction: column;
  }
}

/* --- Language Switcher --- */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-light);
  border-radius: 6px;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}
.lang-switch:hover {
  background: var(--accent);
  color: #fff;
}
.lang-switch i {
  font-size: 12px;
}

/* Responsive for lang-switch in nav */
@media (max-width: 991px) {
  .nav .lang-switch {
    display: inline-flex;
    margin: 10px 20px;
    justify-content: center;
  }
}

/* === Industry Cards with Background Images + Hover === */
.industry-card {
  position: relative;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 25px 20px;
  z-index: 1;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

.industry-card:hover {
  border-color: var(--primary);
}

.industry-card h3,
.industry-card p {
  position: relative;
  z-index: 1;
  color: #fff !important;
}

.industry-card h3 {
  font-size: 22px;
  margin-bottom: 15px;
  text-shadow: 0 2px 15px rgba(0,0,0,0.9);
  font-weight: 700;
  background: rgba(0,0,0,0.35);
  display: inline-block;
  padding: 6px 14px;
  border-radius: 6px;
}

.industry-card p {
  font-size: 14px;
  line-height: 1.7;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
  font-weight: 500;
  background: rgba(0,0,0,0.25);
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
}

.industry-card .solution-icon {
  display: none !important;
}
