/* ============================================================
   YND DIGITAL PARTNERS — Site Theme
   Hong Kong noir / neon triad aesthetic
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;700;900&family=Orbitron:wght@400;700;900&family=Inter:wght@300;400;600;700&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --black: #0a0a0a;
  --dark: #0f0f1a;
  --dark-card: #111122;
  --smoke: #1a1a2e;
  --red: #c41e3a;
  --red-glow: #ff1a3a;
  --gold: #ffd700;
  --gold-dim: #b8960f;
  --neon-blue: #00d4ff;
  --neon-pink: #ff1493;
  --text: #e8e8e8;
  --text-dim: #888899;
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-cn: 'Noto Sans SC', sans-serif;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: var(--gold); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--neon-blue); }
img { max-width: 100%; display: block; }

/* ── Rain Canvas ───────────────────────────────────────────── */
#rain-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.15;
}

/* ── Navigation ────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 215, 0, 0.1);
  padding: 0 2rem;
  transition: background 0.3s;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  color: var(--gold);
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}
.nav-logo span {
  color: var(--red);
  text-shadow: 0 0 20px rgba(196, 30, 58, 0.5);
}
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.3s, text-shadow 0.3s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--gold); margin: 5px 0;
  transition: transform 0.3s, opacity 0.3s;
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  z-index: 2;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 80%, rgba(196, 30, 58, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 20%, rgba(0, 212, 255, 0.05) 0%, transparent 50%),
    linear-gradient(180deg, var(--black) 0%, var(--dark) 100%);
  z-index: -1;
}

/* Skyline SVG silhouette */
.hero-skyline {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 300px;
  background: linear-gradient(0deg, rgba(10,10,10,0.9) 0%, transparent 100%);
  z-index: 1;
}

.hero-content { position: relative; z-index: 5; padding: 2rem; }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}
.hero-title .ynd {
  color: var(--gold);
  text-shadow:
    0 0 10px rgba(255, 215, 0, 0.6),
    0 0 40px rgba(255, 215, 0, 0.3),
    0 0 80px rgba(255, 215, 0, 0.15);
  animation: neon-pulse 3s ease-in-out infinite;
}
.hero-title .company {
  color: var(--text);
  font-size: 0.4em;
  letter-spacing: 0.4em;
  display: block;
  margin-top: 0.3rem;
}

.hero-cn {
  font-family: var(--font-cn);
  font-size: clamp(1rem, 3vw, 1.8rem);
  color: var(--red);
  text-shadow: 0 0 30px rgba(196, 30, 58, 0.4);
  margin-bottom: 1.5rem;
  letter-spacing: 0.3em;
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--text-dim);
  font-weight: 300;
  letter-spacing: 0.1em;
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--gold);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}
.hero-cta:hover {
  background: var(--neon-blue);
  color: var(--black);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.4);
}

/* ── Neon Animations ───────────────────────────────────────── */
@keyframes neon-pulse {
  0%, 100% {
    text-shadow:
      0 0 10px rgba(255, 215, 0, 0.6),
      0 0 40px rgba(255, 215, 0, 0.3),
      0 0 80px rgba(255, 215, 0, 0.15);
  }
  50% {
    text-shadow:
      0 0 5px rgba(255, 215, 0, 0.4),
      0 0 20px rgba(255, 215, 0, 0.2),
      0 0 40px rgba(255, 215, 0, 0.1);
  }
}

@keyframes neon-flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { opacity: 1; }
  20%, 24%, 55% { opacity: 0.6; }
}

@keyframes glow-red {
  0%, 100% { box-shadow: 0 0 15px rgba(196, 30, 58, 0.3); }
  50% { box-shadow: 0 0 25px rgba(196, 30, 58, 0.5); }
}

/* ── Sections ──────────────────────────────────────────────── */
.section {
  position: relative;
  z-index: 2;
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}
.section-title .gold { color: var(--gold); }
.section-title .red { color: var(--red); }

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 600px;
  margin-bottom: 3rem;
}

/* Divider — styled like a blade */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red), var(--gold), var(--red), transparent);
  margin: 0 auto;
  opacity: 0.4;
}

/* ── Service Cards ─────────────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }

.card {
  background: linear-gradient(135deg, var(--dark-card) 0%, rgba(26, 26, 46, 0.8) 100%);
  border: 1px solid rgba(255, 215, 0, 0.08);
  padding: 2.5rem 2rem;
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--gold));
  opacity: 0;
  transition: opacity 0.4s;
}
.card:hover {
  border-color: rgba(255, 215, 0, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}
.card:hover::before { opacity: 1; }

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1.2rem;
  display: block;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 0.8rem;
}

.card-text {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ── Values / Code Section ─────────────────────────────────── */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.value-item {
  text-align: center;
  padding: 2rem;
}
.value-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: var(--red);
  text-shadow: 0 0 30px rgba(196, 30, 58, 0.3);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.value-cn {
  font-family: var(--font-cn);
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 0.3rem;
}
.value-en {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--text);
  margin-bottom: 0.8rem;
}
.value-desc {
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* ── About Page ────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-text p { margin-bottom: 1.2rem; color: var(--text-dim); }
.about-text p:first-child { color: var(--text); font-size: 1.1rem; }

.crew-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}
.crew-card {
  background: var(--dark-card);
  border: 1px solid rgba(255, 215, 0, 0.05);
  padding: 1.5rem;
  text-align: center;
}
.crew-role {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--red);
  margin-bottom: 0.3rem;
}
.crew-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.3rem;
}
.crew-desc { font-size: 0.85rem; color: var(--text-dim); }

/* ── Technology Page ───────────────────────────────────────── */
.tech-stack {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
.tech-item {
  background: var(--dark-card);
  border: 1px solid rgba(0, 212, 255, 0.08);
  padding: 1.5rem;
  transition: border-color 0.3s;
}
.tech-item:hover { border-color: rgba(0, 212, 255, 0.2); }
.tech-item-label {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--neon-blue);
  margin-bottom: 0.3rem;
}
.tech-item-name {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.tech-item-desc { font-size: 0.9rem; color: var(--text-dim); }

/* ── Legal Pages ───────────────────────────────────────────── */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding-top: 120px;
}
.legal-content h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.legal-content .last-updated {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}
.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text);
  letter-spacing: 0.05em;
  margin-top: 2.5rem;
  margin-bottom: 0.8rem;
}
.legal-content p, .legal-content li {
  color: var(--text-dim);
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
}
.legal-content ul { padding-left: 1.5rem; margin-bottom: 1rem; }

/* ── Contact Page ──────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}
.contact-info-item {
  margin-bottom: 2rem;
}
.contact-info-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--red);
  margin-bottom: 0.3rem;
}
.contact-info-value {
  font-size: 1.1rem;
  color: var(--text);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--dark-card);
  border: 1px solid rgba(255, 215, 0, 0.1);
  color: var(--text);
  padding: 0.8rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  transition: border-color 0.3s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form button {
  padding: 0.8rem 2.5rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--gold);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}
.contact-form button:hover {
  background: var(--neon-blue);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255, 215, 0, 0.08);
  padding: 3rem 2rem;
  margin-top: 4rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--gold);
  letter-spacing: 0.1em;
}
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a {
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}
.footer-links a:hover { color: var(--gold); }
.footer-copy {
  width: 100%;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 1.5rem;
  opacity: 0.6;
}

/* ── Page Header (non-home pages) ──────────────────────────── */
.page-header {
  position: relative;
  z-index: 2;
  padding: 140px 2rem 60px;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(196, 30, 58, 0.1) 0%, transparent 60%),
    linear-gradient(180deg, var(--black) 0%, var(--dark) 100%);
}
.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: 0.08em;
}
.page-header h1 .gold { color: var(--gold); }
.page-header .page-subtitle {
  color: var(--text-dim);
  font-size: 1.1rem;
  margin-top: 0.5rem;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: rgba(10, 10, 10, 0.95);
    padding: 1.5rem 2rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
  }
  .nav-toggle { display: block; }

  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .cards { grid-template-columns: 1fr; }

  .section { padding: 4rem 1.5rem; }
  .hero { min-height: 90vh; }
}

@media (max-width: 480px) {
  .nav-inner { padding: 0 1rem; }
  .hero-title { font-size: 2.2rem; }
  .value-number { font-size: 2rem; }
}
