:root {
  --primary: #0a2647;
  --primary-light: #144272;
  --secondary: #2c74b3;
  --accent: #e63946;
  --accent-hover: #c62833;
  --bg-light: #f5f7fa;
  --bg-white: #ffffff;
  --text-dark: #1a1a2e;
  --text-gray: #5a6a7a;
  --text-light: #8896a6;
  --border: #e2e8f0;
  --shadow: 0 4px 24px rgba(10, 38, 71, 0.08);
  --shadow-hover: 0 8px 40px rgba(10, 38, 71, 0.15);
  --radius: 10px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
  --header-height: 72px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text-dark);
  background: var(--bg-white);
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: color var(--transition); }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ========== Utilities ========== */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section-padding { padding: 100px 0; }

.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 34px; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.section-header .en { font-size: 13px; color: var(--text-light); letter-spacing: 4px; text-transform: uppercase; font-weight: 400; }
.section-header .divider { width: 50px; height: 3px; background: var(--accent); margin: 16px auto 0; border-radius: 2px; }
.section-header p.desc { margin-top: 20px; color: var(--text-gray); font-size: 15px; max-width: 560px; margin-left: auto; margin-right: auto; line-height: 1.8; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 32px; border-radius: 6px; font-size: 15px; font-weight: 500;
  transition: all var(--transition); gap: 8px;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(230, 57, 70, 0.35); }
.btn-outline { border: 2px solid rgba(255,255,255,0.7); color: #fff; }
.btn-outline:hover { background: #fff; color: var(--primary); border-color: #fff; }
.btn-outline-dark { border: 2px solid var(--primary); color: var(--primary); }
.btn-outline-dark:hover { background: var(--primary); color: #fff; }

/* ========== Header ========== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-height); transition: all var(--transition);
}
.header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}
.header .container { display: flex; align-items: center; justify-content: space-between; height: 100%; }

.logo { display: flex; align-items: center; font-size: 20px; font-weight: 700; color: #fff; transition: color var(--transition); letter-spacing: 1px; }
.header.scrolled .logo { color: var(--primary); }

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: 15px; font-weight: 500; color: rgba(255,255,255,0.85);
  position: relative; padding: 4px 0;
}
.nav-links a::after {
  content: ""; position: absolute; bottom: -2px; left: 0; width: 0;
  height: 2px; background: var(--accent); transition: width var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.header.scrolled .nav-links a { color: var(--text-gray); }
.header.scrolled .nav-links a:hover, .header.scrolled .nav-links a.active { color: var(--primary); }

.lang-dropdown { position: relative; margin-left: 8px; }
.lang-dropdown-toggle {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 4px; font-size: 13px; font-weight: 500;
  border: 1px solid rgba(255,255,255,0.5); color: rgba(255,255,255,0.85);
  transition: all var(--transition); white-space: nowrap;
}
.lang-dropdown-toggle:hover { background: rgba(255,255,255,0.15); color: #fff; border-color: #fff; }
.header.scrolled .lang-dropdown-toggle { border-color: var(--border); color: var(--text-gray); }
.header.scrolled .lang-dropdown-toggle:hover { border-color: var(--primary); color: var(--primary); background: rgba(10,38,71,0.05); }

.lang-arrow { font-size: 10px; transition: transform var(--transition); display: inline-block; }
.lang-dropdown:hover .lang-arrow, .lang-dropdown.open .lang-arrow { transform: rotate(180deg); }

.lang-dropdown-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 130px;
  background: #fff; border-radius: 8px; box-shadow: var(--shadow-hover);
  padding: 6px; opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: all var(--transition); z-index: 1100;
}
.lang-dropdown:hover .lang-dropdown-menu, .lang-dropdown.open .lang-dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.lang-option {
  display: block; padding: 8px 12px; border-radius: 5px; font-size: 14px;
  color: var(--text-gray); transition: all var(--transition);
}
.lang-option:hover { background: var(--bg-light); color: var(--primary); }
.lang-option.active { color: var(--accent); font-weight: 600; }

.menu-toggle { display: none; flex-direction: column; gap: 5px; padding: 4px; z-index: 1001; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: #fff; transition: all var(--transition); border-radius: 2px; }
.header.scrolled .menu-toggle span { background: var(--primary); }
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ========== Hero ========== */
.hero {
  position: relative; min-height: 600px;
  height: 100vh; height: 100svh;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.hero-bg::after {
  content: none;
}
.hero-content {
  position: relative; z-index: 2; text-align: center; color: #fff; padding: 0 24px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.25), 0 1px 4px rgba(0,0,0,0.15);
}
.hero-content h1 {
  font-size: 52px; font-weight: 800; margin-bottom: 8px; letter-spacing: 4px;
  animation: fadeInUp 0.8s ease-out;
  text-shadow: 0 3px 20px rgba(0,0,0,0.3), 0 1px 6px rgba(0,0,0,0.2);
}
.hero-content .subtitle {
  font-size: 16px; font-weight: 400; letter-spacing: 6px; opacity: 0.9;
  margin-bottom: 12px; animation: fadeInUp 0.8s ease-out 0.15s both;
}
.hero-content .tagline {
  font-size: 17px; opacity: 0.9; margin-bottom: 40px;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; animation: fadeInUp 0.8s ease-out 0.45s both; }

.scroll-indicator {
  position: absolute; bottom: 36px; left: 50%; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.8); font-size: 12px; letter-spacing: 2px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
  animation: scrollIndicatorFadeInUp 0.8s ease-out 0.6s both;
}
@keyframes scrollIndicatorFadeInUp {
  from { opacity: 0; transform: translateX(-50%) translateY(24px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.scroll-mouse { width: 24px; height: 38px; border: 2px solid rgba(255,255,255,0.7); border-radius: 12px; position: relative; box-shadow: 0 1px 8px rgba(0,0,0,0.15); }
.scroll-mouse::after {
  content: ""; position: absolute; top: 7px; left: 50%; width: 3px; height: 7px;
  margin-left: -1.5px; background: rgba(255,255,255,0.8); border-radius: 2px;
  animation: scroll-bounce 2s infinite;
}
@keyframes scroll-bounce { 0%,100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(8px); opacity: 0.2; } }

/* ========== Page Banner ========== */
.page-banner {
  position: relative; height: 360px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.page-banner .hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.page-banner .hero-bg::after {
  content: none;
}
.page-banner-content {
  position: relative; z-index: 2; text-align: center; color: #fff;
  text-shadow: 0 2px 16px rgba(0,0,0,0.3), 0 1px 4px rgba(0,0,0,0.2);
}
.page-banner-content h1 { font-size: 38px; font-weight: 700; letter-spacing: 3px; margin-bottom: 6px; }
.page-banner-content .en { font-size: 14px; letter-spacing: 5px; opacity: 0.6; text-transform: uppercase; }
.breadcrumb { margin-top: 14px; font-size: 14px; opacity: 0.5; }
.breadcrumb a:hover { opacity: 1; }

/* ========== Service Cards ========== */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.service-card {
  background: var(--bg-white); border-radius: var(--radius); padding: 36px 24px;
  text-align: center; box-shadow: var(--shadow); transition: all var(--transition);
  border: 1px solid transparent;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: rgba(44,116,179,0.15); }

.service-num {
  width: 56px; height: 56px; margin: 0 auto 20px; border-radius: 50%;
  border: 2px solid var(--secondary);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700; color: var(--secondary);
  transition: all var(--transition);
}
.service-card:hover .service-num { background: var(--secondary); color: #fff; }
.service-card h3 { font-size: 18px; color: var(--primary); margin-bottom: 10px; }
.service-card p { font-size: 14px; color: var(--text-gray); line-height: 1.7; }

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

.about-img {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3;
}
.about-img img { width: 100%; height: 100%; object-fit: cover; }

.about-text h3 { font-size: 26px; color: var(--primary); margin-bottom: 18px; }
.about-text p { color: var(--text-gray); margin-bottom: 14px; line-height: 1.8; }

.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.stat-item { text-align: center; }
.stat-number { font-size: 34px; font-weight: 800; color: var(--accent); line-height: 1; }
.stat-number span { font-size: 16px; }
.stat-label { font-size: 14px; color: var(--text-gray); margin-top: 4px; }

/* ========== Cases / Product Grid ========== */
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cases-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.case-card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; cursor: pointer; }
.case-card-bg { position: absolute; inset: 0; transition: transform 0.5s ease; }
.case-card-bg img { width: 100%; height: 100%; object-fit: cover; }
.case-card:hover .case-card-bg { transform: scale(1.06); }

.case-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,38,71,0.88) 0%, rgba(10,38,71,0.15) 60%, transparent 100%);
  transition: all var(--transition);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 24px;
}
.case-card:hover .case-card-overlay {
  background: linear-gradient(to top, rgba(10,38,71,0.92) 0%, rgba(10,38,71,0.45) 100%);
}

.case-tag {
  display: inline-block; padding: 3px 10px; background: var(--accent); color: #fff;
  font-size: 12px; border-radius: 3px; margin-bottom: 10px; width: fit-content;
  opacity: 0; transform: translateY(8px); transition: all var(--transition) 0.05s;
}
.case-card:hover .case-tag { opacity: 1; transform: translateY(0); }
.case-card h3 { color: #fff; font-size: 17px; margin-bottom: 6px; }
.case-card p {
  color: rgba(255,255,255,0.65); font-size: 13px; line-height: 1.6;
  opacity: 0; transform: translateY(10px); transition: all var(--transition) 0.1s;
}
.case-card:hover p { opacity: 1; transform: translateY(0); }

/* ========== CTA ========== */
.cta-section {
  position: relative; padding: 80px 0; text-align: center; color: #fff; overflow: hidden;
}
.cta-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
}
.cta-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(10,38,71,0.88), rgba(20,66,114,0.85));
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 { font-size: 32px; margin-bottom: 14px; }
.cta-section p { font-size: 16px; opacity: 0.75; margin-bottom: 28px; }

/* ========== Footer ========== */
.footer { background: var(--primary); color: rgba(255,255,255,0.7); padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand p { margin-top: 14px; font-size: 14px; line-height: 1.8; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; position: relative; padding-bottom: 10px; }
.footer h4::after { content: ""; position: absolute; bottom: 0; left: 0; width: 24px; height: 2px; background: var(--accent); }
.footer-links a { display: block; padding: 5px 0; font-size: 14px; color: rgba(255,255,255,0.55); transition: all var(--transition); }
.footer-links a:hover { color: #fff; padding-left: 4px; }
.footer-contact p { font-size: 14px; margin-bottom: 8px; }
.footer-contact a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { padding: 18px 0; text-align: center; font-size: 13px; color: rgba(255,255,255,0.35); }

/* ========== About Page ========== */
.intro-section { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.intro-text h3 { font-size: 26px; color: var(--primary); margin-bottom: 18px; }
.intro-text p { color: var(--text-gray); line-height: 1.9; margin-bottom: 12px; text-indent: 2em; }
.intro-img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; }
.intro-img img { width: 100%; height: 100%; object-fit: cover; }

/* Values */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.value-card {
  text-align: center; padding: 44px 28px; background: var(--bg-white);
  border-radius: var(--radius); box-shadow: var(--shadow); transition: all var(--transition);
  border-bottom: 3px solid transparent;
}
.value-card:hover { transform: translateY(-5px); border-bottom-color: var(--accent); }
.value-num {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 3px;
  color: #fff; background: var(--secondary); padding: 7px 22px; border-radius: 20px;
  margin-bottom: 18px; line-height: 1.4; transition: background var(--transition);
}
.value-card:hover .value-num { background: var(--accent); }
.value-card h3 { font-size: 18px; color: var(--primary); margin-bottom: 10px; }
.value-card p { color: var(--text-gray); font-size: 14px; line-height: 1.7; }

/* Culture Extra */
.culture-extra { max-width: 800px; margin: 48px auto 0; text-align: center; }
.culture-values { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.culture-values span {
  padding: 8px 22px; background: var(--bg-white); border: 1px solid var(--border);
  border-radius: 20px; font-size: 14px; color: var(--primary); font-weight: 500;
}
.culture-quote {
  background: var(--bg-white); border-left: 4px solid var(--accent);
  padding: 22px 26px; border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-gray); font-size: 15px; line-height: 1.8; text-align: left;
}

/* Insight Cases Marquee (native scroll: touch-draggable + JS auto-scroll) */
.insight-marquee {
  overflow-x: auto; overflow-y: hidden; width: 100%;
  -webkit-overflow-scrolling: touch; touch-action: pan-x;
  scrollbar-width: none; -ms-overflow-style: none;
  cursor: grab;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
}
.insight-marquee.dragging { cursor: grabbing; scroll-behavior: auto; }
.insight-marquee::-webkit-scrollbar { display: none; }
.insight-marquee-track { display: flex; gap: 24px; width: max-content; }
.insight-case {
  flex: 0 0 340px; width: 340px;
  background: var(--bg-white); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow); transition: box-shadow var(--transition); border-top: 3px solid var(--secondary);
}
.insight-case:hover { box-shadow: var(--shadow-hover); }
.insight-case-img { width: 100%; aspect-ratio: 4/3; border-radius: 8px; overflow: hidden; margin-bottom: 16px; }
.insight-case-img img { width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; }
.insight-case h4 { font-size: 16px; color: var(--primary); margin-bottom: 10px; }
.insight-case p { font-size: 14px; color: var(--text-gray); line-height: 1.8; }

/* FAQ Accordion */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item[hidden] { display: none; }
.faq-question {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  gap: 16px; padding: 22px 4px; font-size: 16px; font-weight: 600; color: var(--primary);
  text-align: left; transition: color var(--transition);
}
.faq-question:hover { color: var(--secondary); }
.faq-icon {
  font-size: 22px; color: var(--secondary); flex-shrink: 0; line-height: 1;
  transition: transform var(--transition);
}
.faq-item.active .faq-icon { transform: rotate(45deg); color: var(--accent); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-answer p { padding: 0 4px 22px; color: var(--text-gray); font-size: 14px; line-height: 1.9; }
.faq-hook {
  text-align: center; margin-top: 40px; padding-top: 32px; border-top: 1px dashed var(--border);
}
.faq-hook p { color: var(--text-gray); font-size: 15px; margin-bottom: 18px; }

@media (max-width: 768px) {
  .insight-case { flex: 0 0 260px; width: 260px; padding: 20px; }
}

.feature-list { margin-top: 20px; }
.feature-list li {
  display: flex; align-items: center; gap: 10px; padding: 8px 0;
  color: var(--text-gray); font-size: 15px;
}
.feature-list li::before {
  content: ""; display: block; width: 6px; height: 6px; background: var(--secondary);
  border-radius: 50%; flex-shrink: 0;
}

.modules-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.modules-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.module-card {
  background: var(--bg-white); border-radius: var(--radius); padding: 28px 20px;
  text-align: center; box-shadow: var(--shadow); transition: all var(--transition);
  position: relative; overflow: hidden;
}
.module-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  transform: scaleX(0); transition: transform var(--transition);
}
.module-card:hover::before { transform: scaleX(1); }
.module-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.module-num {
  font-size: 28px; font-weight: 800; color: rgba(44,116,179,0.12);
  margin-bottom: 8px; line-height: 1;
}
.module-card h3 { font-size: 16px; color: var(--primary); margin-bottom: 6px; }
.module-card p { font-size: 13px; color: var(--text-gray); line-height: 1.6; }

/* Application Fields Marquee (auto-scroll only, no drag needed) */
.fields-marquee {
  overflow: hidden; width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
}
.fields-marquee-track {
  display: flex; gap: 20px; width: max-content;
  animation: fields-marquee-scroll 26s linear infinite;
}
.fields-marquee-track .module-card { flex: 0 0 200px; width: 200px; }
@keyframes fields-marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .fields-marquee-track { animation: none; }
}
@media (max-width: 768px) {
  .fields-marquee-track .module-card { flex: 0 0 160px; width: 160px; padding: 20px 14px; }
}

/* ========== Contact ========== */
.contact-info { display: flex; flex-direction: column; gap: 20px; }

.contact-split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.section-header-left { text-align: left; margin-bottom: 32px; }
.section-header-left .divider { margin: 16px 0 0; }
.section-header-left p.desc { margin-left: 0; margin-right: 0; }
.contact-info-card {
  background: var(--bg-white); padding: 24px; border-radius: var(--radius);
  box-shadow: var(--shadow); display: flex; gap: 16px; align-items: flex-start;
  transition: all var(--transition);
}
.contact-info-card:hover { transform: translateX(4px); box-shadow: var(--shadow-hover); }
.contact-icon {
  width: 48px; height: 48px; background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: #fff; flex-shrink: 0; font-weight: 700;
}
.contact-info-card h4 { font-size: 15px; color: var(--primary); margin-bottom: 3px; }
.contact-info-card p { font-size: 14px; color: var(--text-gray); line-height: 1.6; }
.contact-info-card p a:hover { color: var(--secondary); text-decoration: underline; }

/* Filter */
.filter-tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 36px; flex-wrap: wrap; }
.filter-tab {
  padding: 7px 20px; border-radius: 18px; font-size: 14px; color: var(--text-gray);
  border: 1px solid var(--border); transition: all var(--transition); cursor: pointer;
}
.filter-tab:hover, .filter-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ========== Animations ========== */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease-out, transform 0.7s ease-out; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-left { opacity: 0; transform: translateX(-30px); transition: opacity 0.7s ease-out, transform 0.7s ease-out; }
.fade-left.visible { opacity: 1; transform: translateX(0); }
.fade-right { opacity: 0; transform: translateX(30px); transition: opacity 0.7s ease-out, transform 0.7s ease-out; }
.fade-right.visible { opacity: 1; transform: translateX(0); }
.scale-up { opacity: 0; transform: scale(0.95); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.scale-up.visible { opacity: 1; transform: scale(1); }

.stagger-children > * { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease-out, transform 0.5s ease-out; }
.stagger-children.visible > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.08s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.16s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.24s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.32s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(7) { transition-delay: 0.48s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(8) { transition-delay: 0.56s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(9) { transition-delay: 0.64s; opacity: 1; transform: translateY(0); }

@keyframes fadeInUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

/* ========== Image Lightbox ========== */
.lightbox {
  position: fixed; inset: 0; background: rgba(10,10,15,0.92);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity 0.25s ease;
  z-index: 2000; padding: 40px;
}
.lightbox.active { opacity: 1; visibility: visible; }
.lightbox-img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,0.5); }
.lightbox-close {
  position: absolute; top: 20px; right: 30px; color: #fff; font-size: 36px;
  cursor: pointer; line-height: 1; opacity: 0.8; transition: opacity 0.2s; user-select: none;
}
.lightbox-close:hover { opacity: 1; }

/* ========== Back to Top ========== */
.back-to-top {
  position: fixed; bottom: 28px; right: 28px; width: 42px; height: 42px;
  background: var(--primary); color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: all var(--transition); z-index: 999;
  box-shadow: 0 3px 10px rgba(10,38,71,0.25);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--accent); transform: translateY(-2px); }

/* ========== Page Enter Animation ========== */
.page-enter > *:not(.header):not(.page-transition) {
  animation: pageSlideIn 0.5s ease both;
}
@keyframes pageSlideIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .cases-grid, .cases-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .modules-grid, .modules-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-content h1 { font-size: 40px; }
}

@media (max-width: 768px) {
  :root { --header-height: 60px; }
  .section-padding { padding: 60px 0; }
  .section-header { margin-bottom: 32px; }
  .section-header h2 { font-size: 26px; }

  .menu-toggle { display: flex; }
  .nav-links {
    position: fixed; top: 0; right: -100%; width: 260px; height: 100vh;
    background: var(--primary); flex-direction: column; justify-content: center;
    gap: 0; transition: right var(--transition); z-index: 1000; padding: 24px;
  }
  .nav-links.active { right: 0; }
  .nav-links a { color: rgba(255,255,255,0.8); padding: 12px 0; font-size: 16px; width: 100%; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .header.scrolled .nav-links a { color: rgba(255,255,255,0.8); }
  .header.scrolled .nav-links a:hover { color: #fff; }
  .mobile-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 999; }
  .mobile-overlay.active { display: block; }

  .hero { min-height: 480px; }
  .hero-content h1 { font-size: 28px; letter-spacing: 2px; }
  .hero-content .subtitle { font-size: 13px; letter-spacing: 3px; }
  .hero-content .tagline { font-size: 14px; }
  .page-banner { height: 260px; }
  .page-banner-content h1 { font-size: 26px; }

  .services-grid, .values-grid, .modules-grid, .modules-grid.cols-3 { grid-template-columns: 1fr; gap: 14px; }
  .cases-grid, .cases-grid.cols-4 { grid-template-columns: 1fr; }
  .about-preview, .intro-section { grid-template-columns: 1fr; gap: 28px; }
  .about-text { text-align: center; }
  .about-stats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .stat-number { font-size: 26px; }

  .contact-split { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta-section h2 { font-size: 24px; }
  .cta-section p { font-size: 14px; }
  .back-to-top { bottom: 18px; right: 18px; width: 38px; height: 38px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-content h1 { font-size: 24px; }
  .about-stats { grid-template-columns: 1fr; text-align: center; }
  .filter-tab { padding: 5px 14px; font-size: 13px; }
}
