/* ===== Aurelius Design Enterprise — Stylesheet ===== */

:root {
  --bg: #08070a;
  --bg-alt: #0c0a0d;
  --surface: #141116;
  --surface-2: #1a161c;
  --border: rgba(212, 175, 55, 0.14);
  --border-hover: rgba(212, 175, 55, 0.55);
  --text: #f3efe6;
  --text-muted: #a39c8c;
  --cyan: #d4af37;
  --blue: #b9902e;
  --gold: #d4af37;
  --gold-light: #f2d675;
  --gradient: linear-gradient(120deg, #f2d675 0%, #d4af37 55%, #a8842f 100%);
  --radius: 16px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.75);
  --font-en: "Poppins", "Noto Sans SC", sans-serif;
  --font-zh: "Noto Sans SC", "Poppins", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-en);
  line-height: 1.6;
  overflow-x: hidden;
}

body.font-zh { font-family: var(--font-zh); letter-spacing: 0.02em; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient);
  color: #1a1509;
  box-shadow: 0 10px 30px -8px rgba(212, 175, 55, 0.5);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -8px rgba(212, 175, 55, 0.65); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--border-hover); background: rgba(212, 175, 55, 0.06); }

.btn-full { width: 100%; }

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.3s ease;
  background: transparent;
}
.header.scrolled {
  padding: 12px 0;
  background: rgba(6, 10, 20, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
}
.logo img { width: 38px; height: 38px; border-radius: 8px; }
.logo-text { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
  position: relative;
}
.nav a:hover { color: var(--text); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}
.lang-option { padding: 2px 4px; transition: color 0.2s ease; }
.lang-option.active { color: var(--cyan); }
.lang-divider { color: var(--border); }

.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
}
.menu-btn span {
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.menu-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.active span:nth-child(2) { opacity: 0; }
.menu-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, #1c1608 0%, var(--bg) 65%);
}
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(212, 175, 55, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent 70%);
}
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}
.glow-1 { width: 420px; height: 420px; background: var(--cyan); top: -120px; right: -80px; }
.glow-2 { width: 380px; height: 380px; background: #8a6d1f; bottom: -140px; left: -100px; opacity: 0.3; }

.hero-inner { position: relative; z-index: 1; text-align: center; }

.eyebrow {
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(212, 175, 55, 0.06);
  margin-bottom: 28px;
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.hero-subtitle {
  max-width: 640px;
  margin: 0 auto 40px;
  font-size: 1.1rem;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 72px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-size: 2.2rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ===== Section shared ===== */
section { padding: 110px 0; position: relative; }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 64px; }
.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 600;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.25;
}
.section-subtitle { color: var(--text-muted); font-size: 1.05rem; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ===== About ===== */
.about { background: var(--bg-alt); }
.about-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
  align-items: center;
}
.about-media { display: flex; justify-content: center; }
.coin-flip-wrap {
  perspective: 1200px;
  width: 100%;
  max-width: 360px;
  cursor: pointer;
}
.coin-inner {
  position: relative;
  width: 100%;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.33, 0.1, 0.2, 1);
}
.coin-flip-wrap:hover .coin-inner {
  transform: rotateY(180deg);
}
.coin-face {
  display: block;
  width: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: filter 0.7s ease;
}
.coin-face-front {
  filter: drop-shadow(0 20px 50px rgba(212, 175, 55, 0.15));
}
.coin-face-back {
  position: absolute;
  top: 0;
  left: 0;
  transform: rotateY(180deg);
  filter: drop-shadow(0 20px 50px rgba(212, 175, 55, 0.15));
}
.coin-flip-wrap:hover .coin-face {
  filter: drop-shadow(0 0 36px rgba(242, 214, 117, 0.6));
}
.about-content .section-tag,
.about-content .section-title { text-align: left; }
.about-text { color: var(--text-muted); margin-bottom: 18px; font-size: 1.02rem; }
.about-points { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.point { display: flex; align-items: flex-start; gap: 12px; font-size: 0.98rem; }
.point-icon {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.15);
  color: var(--cyan);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  margin-top: 2px;
}

/* ===== Services ===== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  transition: all 0.35s ease;
}
.service-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.service-card.featured {
  background: linear-gradient(160deg, rgba(212, 175, 55, 0.08), var(--surface) 60%);
  border-color: rgba(212, 175, 55, 0.25);
}
.service-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: rgba(212, 175, 55, 0.1);
  color: var(--cyan);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: 12px; }
.service-card p { color: var(--text-muted); font-size: 0.98rem; margin-bottom: 20px; }
.service-list { display: flex; flex-direction: column; gap: 10px; }
.service-list li {
  font-size: 0.9rem;
  color: var(--text);
  padding-left: 20px;
  position: relative;
}
.service-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gradient);
}

/* ===== Process ===== */
.process { background: var(--bg-alt); }
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.process-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: all 0.3s ease;
}
.process-step:hover { border-color: var(--border-hover); transform: translateY(-4px); }
.process-num {
  display: inline-block;
  font-size: 1.6rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 14px;
}
.process-step h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 10px; }
.process-step p { color: var(--text-muted); font-size: 0.92rem; }

/* ===== Contact ===== */
.contact-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
}
.contact-info .section-tag,
.contact-info .section-title,
.contact-info .section-subtitle { text-align: left; }
.contact-info .section-subtitle { margin-bottom: 40px; }
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}
.contact-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--cyan);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.contact-label { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 2px; }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 500;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
  resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--cyan);
}
.form-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 16px;
}
.form-note.success { color: var(--cyan); font-weight: 600; }

/* ===== Custom Select Dropdown ===== */
.custom-select {
  position: relative;
  user-select: none;
}
.custom-select-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color 0.2s ease;
  text-align: left;
}
.custom-select-trigger:hover,
.custom-select.open .custom-select-trigger {
  border-color: var(--border-hover);
}
.custom-select.open .custom-select-trigger { border-color: var(--gold); }
.custom-select-arrow {
  width: 16px;
  height: 16px;
  color: var(--gold);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.custom-select.open .custom-select-arrow { transform: rotate(180deg); }

.custom-select-options {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--surface-2);
  border: 1px solid var(--border-hover);
  border-radius: 12px;
  padding: 6px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 30;
  max-height: 240px;
  overflow-y: auto;
}
.custom-select.open .custom-select-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.custom-select-options li {
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 0.92rem;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.15s ease, color 0.15s ease;
}
.custom-select-options li:hover {
  background: rgba(212, 175, 55, 0.12);
  color: var(--text);
}
.custom-select-options li.selected {
  color: var(--gold-light);
  font-weight: 600;
}
.custom-select-options li.selected::after {
  content: "✓";
  color: var(--gold);
  margin-left: 12px;
}

/* ===== Footer ===== */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 56px 0 24px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; margin-top: 10px; }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); font-size: 0.92rem; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--cyan); }
.footer-bottom {
  padding-top: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .about-inner, .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .about-media { order: -1; }
  .service-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { gap: 40px; }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 68px;
    left: 0; right: 0;
    background: rgba(6, 10, 20, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }
  .nav.open { max-height: 400px; }
  .nav a {
    width: 100%;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
  }
  .menu-btn { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 28px; }
  .hero { padding-top: 120px; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
  .lang-toggle span { font-size: 0.78rem; }
}

/* ===== Custom Gold Cursor ===== */
/* Only enabled by JS on devices with a precise pointer (mouse/trackpad) */
body.custom-cursor,
body.custom-cursor * {
  cursor: none !important;
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.cursor-dot {
  width: 7px;
  height: 7px;
  background: var(--gold-light);
  box-shadow: 0 0 10px 2px rgba(212, 175, 55, 0.8);
  transform: translate(-50%, -50%);
}

.cursor-ring {
  width: 34px;
  height: 34px;
  border: 1.5px solid rgba(212, 175, 55, 0.55);
  background: rgba(212, 175, 55, 0.04);
  transform: translate(-50%, -50%);
  transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease,
    background 0.25s ease, opacity 0.25s ease;
}

.cursor-dot.is-visible,
.cursor-ring.is-visible {
  opacity: 1;
}

.cursor-ring.is-hovering {
  width: 58px;
  height: 58px;
  border-color: var(--gold-light);
  background: rgba(212, 175, 55, 0.1);
}

.cursor-ring.is-pressed {
  width: 26px;
  height: 26px;
}

@media (pointer: coarse), (hover: none) {
  .cursor-dot,
  .cursor-ring {
    display: none;
  }
}
