/* ============================================
   骐智咨询 - 品牌营销咨询企业官网
   Style: 简约大气 · 专业信赖 · 高端质感
   ============================================ */

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

:root {
  /* Color System */
  --primary: #1a1a2e;
  --primary-light: #2d2d4a;
  --primary-dark: #0d0d1a;
  --gold: #c9a84c;
  --gold-light: #e8d5a3;
  --gold-dark: #a8882e;
  --accent: #d4af37;
  --text-dark: #1a1a2e;
  --text-body: #4a4a5a;
  --text-light: #8a8a9a;
  --white: #ffffff;
  --off-white: #f8f7f4;
  --bg-light: #f5f4f0;
  --border: #e5e3de;
  --shadow: rgba(26, 26, 46, 0.08);
  --shadow-dark: rgba(26, 26, 46, 0.16);

  /* Typography */
  --font-heading: 'Noto Serif SC', 'Source Han Serif SC', 'SimSun', serif;
  --font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-en: 'Playfair Display', 'Georgia', serif;

  /* Spacing */
  --section-padding: 100px 0;
  --container-width: 1200px;
  --grid-gap: 30px;

  /* Transitions */
  --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-slow: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--white);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.3;
}

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

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

ul { list-style: none; }

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Preloader --- */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

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

.preloader-logo {
  font-family: var(--font-en);
  font-size: 2rem;
  color: var(--gold);
  letter-spacing: 4px;
  margin-bottom: 20px;
}

.preloader-bar {
  width: 200px;
  height: 2px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto;
}

.preloader-bar::after {
  content: '';
  display: block;
  width: 40%;
  height: 100%;
  background: var(--gold);
  border-radius: 2px;
  animation: loading 1.2s ease-in-out infinite;
}

@keyframes loading {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}

.nav.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 0;
  box-shadow: 0 1px 30px var(--shadow);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.nav-logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
}

.nav-logo-main {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  letter-spacing: 1px;
}

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

.nav-logo-sub {
  font-size: 0.65rem;
  color: var(--gold-light);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.nav.scrolled .nav-logo-sub {
  color: var(--gold-dark);
}

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

.nav-links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  position: relative;
  letter-spacing: 0.5px;
}

.nav.scrolled .nav-links a {
  color: var(--text-body);
}

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

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

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}

.nav.scrolled .nav-links a:hover,
.nav.scrolled .nav-links a.active {
  color: var(--gold-dark);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
  border-radius: 2px;
}

.nav.scrolled .nav-toggle span {
  background: var(--text-dark);
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(201, 168, 76, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(201, 168, 76, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(26, 26, 46, 1) 0%, transparent 40%);
  z-index: 1;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 30px;
  font-size: 0.8rem;
  color: var(--gold-light);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 30px;
  animation: fadeInUp 1s ease forwards;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 25px;
  animation: fadeInUp 1s ease 0.2s forwards;
  opacity: 0;
}

.hero-title .highlight {
  color: var(--gold);
  font-family: var(--font-en);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 600px;
  animation: fadeInUp 1s ease 0.4s forwards;
  opacity: 0;
}

.hero-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 0.6s forwards;
  opacity: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: var(--font-body);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201, 168, 76, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.4);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: fadeInUp 1s ease 1s forwards;
  opacity: 0;
}

.scroll-indicator {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(201,168,76,0.6), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.15); }
}

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

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

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--gold-dark);
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 15px;
  position: relative;
}

.section-tag::before,
.section-tag::after {
  content: '';
  display: inline-block;
  width: 30px;
  height: 1px;
  background: var(--gold);
  vertical-align: middle;
  margin: 0 15px;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* --- About Preview (Home) --- */
.about-preview {
  background: var(--off-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image-wrap {
  position: relative;
}

.about-image-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.about-image-placeholder .icon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 40px;
  opacity: 0.15;
}

.about-image-placeholder .icon-grid span {
  width: 50px;
  height: 50px;
  border: 1px solid var(--gold);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.about-exp-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 10px 40px rgba(201, 168, 76, 0.3);
}

.about-exp-badge .number {
  font-family: var(--font-en);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
}

.about-exp-badge .label {
  font-size: 0.7rem;
  letter-spacing: 2px;
  margin-top: 4px;
}

.about-text h3 {
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.about-text p {
  margin-bottom: 16px;
  line-height: 1.9;
}

.about-text .feature-list {
  margin-top: 25px;
}

.about-text .feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.about-text .feature-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}

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

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

.service-card {
  padding: 45px 35px;
  background: var(--off-white);
  border-radius: 8px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: linear-gradient(to bottom, var(--gold), var(--gold-light));
  transition: var(--transition-slow);
}

.service-card:hover::before {
  height: 100%;
}

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

.service-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(201,168,76,0.1), rgba(201,168,76,0.05));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  font-size: 1.6rem;
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 14px;
}

.service-card p {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.7;
}

.service-card .service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-dark);
}

.service-card .service-link .arrow {
  transition: var(--transition);
}

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

/* --- Stats Section --- */
.stats {
  background: var(--primary);
  color: var(--white);
  padding: 80px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.stat-item .number {
  font-family: var(--font-en);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-item .label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 1px;
}

/* --- Cases Section --- */
.cases {
  background: var(--off-white);
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
}

.case-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--border);
}

.case-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px var(--shadow);
}

.case-image {
  height: 220px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  font-family: var(--font-en);
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

.case-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 50%, rgba(26,26,46,0.3));
}

.case-content {
  padding: 28px;
}

.case-category {
  font-size: 0.75rem;
  color: var(--gold-dark);
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: 8px;
}

.case-content h4 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.case-content p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* --- CTA Section --- */
.cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  text-align: center;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(201,168,76,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 50%, rgba(201,168,76,0.05) 0%, transparent 50%);
}

.cta .container {
  position: relative;
  z-index: 1;
}

.cta h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--white);
  margin-bottom: 16px;
}

.cta p {
  color: rgba(255,255,255,0.65);
  margin-bottom: 35px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Footer --- */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.6);
  padding: 80px 0 30px;
}

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

.footer-brand .nav-logo-main {
  color: var(--white);
  font-size: 1.2rem;
}

.footer-brand .nav-logo-sub {
  color: var(--gold-light);
  font-size: 0.65rem;
}

.footer-brand p {
  margin-top: 20px;
  font-size: 0.9rem;
  line-height: 1.8;
  max-width: 300px;
}

.footer h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 25px;
  letter-spacing: 1px;
}

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

.footer-links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
}

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

.footer-contact li {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.88rem;
}

.footer-contact .icon {
  color: var(--gold);
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}

/* --- Page Header --- */
.page-header {
  padding: 160px 0 80px;
  background: var(--primary);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(201,168,76,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 50%, rgba(201,168,76,0.05) 0%, transparent 50%);
  background-image: linear-gradient(rgba(201,168,76,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--white);
  margin-bottom: 15px;
}

.page-header p {
  color: rgba(255,255,255,0.6);
  font-size: 1.05rem;
}

/* --- About Page --- */
.about-story {
  padding: 100px 0;
}

.about-story-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-story-content h2 {
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.about-story-content p {
  margin-bottom: 16px;
  line-height: 1.9;
  font-size: 0.95rem;
}

.about-story-content blockquote {
  border-left: 3px solid var(--gold);
  padding: 20px 30px;
  margin: 30px 0;
  background: var(--off-white);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--text-body);
  font-size: 1rem;
}

/* Timeline */
.timeline {
  padding: 100px 0;
  background: var(--off-white);
}

.timeline-wrapper {
  position: relative;
}

.timeline-wrapper::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--gold), var(--gold), transparent);
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 60px;
  position: relative;
}

.timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
}

.timeline-item .timeline-content {
  width: calc(50% - 40px);
  padding: 30px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 5px 20px var(--shadow);
  transition: var(--transition);
}

.timeline-item .timeline-content:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px var(--shadow-dark);
}

.timeline-item .timeline-year {
  font-family: var(--font-en);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-dark);
  margin-bottom: 10px;
}

.timeline-item .timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: var(--gold);
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(201,168,76,0.2);
  z-index: 1;
}

/* Values */
.values {
  padding: 100px 0;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--grid-gap);
}

.value-card {
  text-align: center;
  padding: 40px 25px;
  background: var(--off-white);
  border-radius: 8px;
  transition: var(--transition);
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--shadow);
}

.value-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.value-card h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.value-card p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* --- Services Page --- */
.service-detail {
  padding: 100px 0;
}

.service-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.service-detail-card {
  padding: 50px 40px;
  background: var(--off-white);
  border-radius: 8px;
  transition: var(--transition);
  border: 1px solid transparent;
}

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

.service-detail-card .icon {
  font-size: 2rem;
  margin-bottom: 20px;
}

.service-detail-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.service-detail-card p {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* Case list full on services page */
.case-showcase {
  padding: 100px 0;
  background: var(--off-white);
}

.case-showcase-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.case-showcase-item {
  padding: 30px 20px;
  background: var(--white);
  border-radius: 8px;
  text-align: center;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.case-showcase-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px var(--shadow);
  border-color: var(--gold-light);
}

.case-showcase-item h4 {
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.case-showcase-item .cat {
  font-size: 0.75rem;
  color: var(--text-light);
}

/* Model Section */
.model-section {
  padding: 100px 0;
}

.model-visual {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 60px;
}

.model-node {
  text-align: center;
  padding: 35px 25px;
  background: var(--off-white);
  border-radius: 8px;
  flex: 1;
  max-width: 280px;
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
}

.model-node:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px var(--shadow);
  border-color: var(--gold-light);
}

.model-node .number {
  font-family: var(--font-en);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 10px;
  line-height: 1;
}

.model-node h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.model-node p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.6;
}

.model-connector {
  display: flex;
  align-items: center;
  color: var(--gold);
  font-size: 1.5rem;
}

/* --- Contact Page --- */
.contact-section {
  padding: 100px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info h3 {
  font-size: 1.4rem;
  margin-bottom: 25px;
}

.contact-info p {
  font-size: 0.95rem;
  margin-bottom: 30px;
  line-height: 1.8;
}

.contact-detail-item {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
}

.contact-detail-icon {
  width: 50px;
  height: 50px;
  background: var(--off-white);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-detail-text h4 {
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.contact-detail-text p {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: 0;
}

.contact-form-wrap {
  background: var(--off-white);
  padding: 40px;
  border-radius: 8px;
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  background: var(--white);
  transition: var(--transition);
  color: var(--text-dark);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

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

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

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

/* --- Mobile Responsive --- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .cases-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline-wrapper::before { left: 30px; }
  .timeline-item,
  .timeline-item:nth-child(odd) {
    flex-direction: row;
    padding-left: 60px;
  }
  .timeline-item .timeline-content { width: 100%; }
  .timeline-item .timeline-dot { left: 30px; }
  .case-showcase-items { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --section-padding: 70px 0; }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 80px 40px;
    gap: 25px;
    box-shadow: -10px 0 40px var(--shadow);
    transition: var(--transition);
    align-items: flex-start;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    color: var(--text-body) !important;
    font-size: 1rem;
  }

  .nav-toggle {
    display: flex;
  }

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

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

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

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

  .services-grid { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .service-detail-grid { grid-template-columns: 1fr; }
  .case-showcase-items { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }

  .about-exp-badge {
    width: 100px;
    height: 100px;
    bottom: -15px;
    right: -15px;
  }

  .about-exp-badge .number { font-size: 1.8rem; }

  .model-visual {
    flex-direction: column;
    align-items: center;
  }

  .model-connector {
    transform: rotate(90deg);
  }

  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: 1rem; }

  .contact-form-wrap { padding: 30px 20px; }

  .page-header { padding: 140px 0 60px; }

  .form-group input,
  .form-group textarea {
    padding: 12px 14px;
  }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: 1fr; }
  .case-showcase-items { grid-template-columns: 1fr; }

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

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* --- Mobile Overlay --- */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
}

.mobile-overlay.show {
  display: block;
}

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  background: var(--primary);
  color: var(--gold);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 99;
  box-shadow: 0 4px 15px var(--shadow-dark);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--gold);
  color: var(--white);
  transform: translateY(-3px);
}
