/* ===== zhmyh.blog — Shared Styles ===== */

:root {
  --bg: #0D0D0F;
  --surface: rgba(255,255,255,0.04);
  --surface-hover: rgba(255,255,255,0.08);
  --glass: rgba(255,255,255,0.05);
  --glass-border: rgba(255,255,255,0.08);
  --glass-hover: rgba(255,255,255,0.10);
  --fg: #F0EDEE;
  --muted: rgba(240,237,238,0.55);
  --border: rgba(255,255,255,0.06);
  --accent: #FF3B7F;
  --accent-dim: rgba(255,59,127,0.25);
  --violet-glow: rgba(139,92,246,0.20);
  --blue-glow: rgba(59,130,246,0.18);
  --pink-glow: rgba(244,114,182,0.15);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --radius: 20px;
  --radius-sm: 12px;
  --max-w: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ===== Glow Orbs ===== */
.glow-orbs { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.glow-orb { position: absolute; border-radius: 50%; filter: blur(100px); will-change: transform; }
.glow-orb--violet { width: 700px; height: 700px; background: var(--violet-glow); top: -15%; right: -10%; animation: floatV 20s ease-in-out infinite; }
.glow-orb--blue { width: 600px; height: 600px; background: var(--blue-glow); bottom: -10%; left: -10%; animation: floatB 25s ease-in-out infinite; }
.glow-orb--pink { width: 500px; height: 500px; background: var(--pink-glow); top: 40%; left: 50%; transform: translateX(-50%); animation: floatP 18s ease-in-out infinite; }

@keyframes floatV {
  0%,100% { transform:translate(0,0) scale(1); }
  33% { transform:translate(60px,-40px) scale(1.05); }
  66% { transform:translate(-30px,60px) scale(0.95); }
}
@keyframes floatB {
  0%,100% { transform:translate(0,0) scale(1); }
  33% { transform:translate(-50px,30px) scale(1.08); }
  66% { transform:translate(40px,-50px) scale(0.92); }
}
@keyframes floatP {
  0%,100% { transform:translateX(-50%) translateY(0) scale(1); }
  50% { transform:translateX(-50%) translateY(-30px) scale(1.03); }
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.10); border-radius: 3px; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

/* ===== Navigation ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 0; background: rgba(13,13,15,0.7);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.05); transition: background 0.3s;
}
.nav.scrolled { background: rgba(13,13,15,0.92); }
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
}
.nav__logo { display: flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.nav__logo svg { width: 28px; height: 28px; }
.nav__links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav__links a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 450; letter-spacing: 0.01em; transition: color 0.2s; }
.nav__links a:hover { color: var(--fg); }
.nav__links .nav--active { color: var(--fg); font-weight: 550; }

.nav__toggle {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 4px;
  width: 32px; height: 32px; align-items: center; justify-content: center;
}
.nav__toggle span {
  display: block; width: 22px; height: 2px; background: var(--fg);
  border-radius: 2px; transition: all 0.3s; transform-origin: center;
}
.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Mobile sidebar ===== */
.nav__mobile {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.55);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.3s, visibility 0.3s;
}
.nav__mobile.open {
  opacity: 1; visibility: visible; pointer-events: auto;
}

.nav__drawer {
  position: fixed; top: 0; left: 0; bottom: 0; width: 280px;
  max-width: 80vw; z-index: 201;
  background: rgba(13,13,15,0.97); backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  transform: translateX(-100%); transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 4px 0 40px rgba(0,0,0,0.4);
}
.nav__mobile.open .nav__drawer { transform: translateX(0); }

.nav__sidebar-close {
  position: absolute; top: 12px; right: 12px;
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.nav__sidebar-close:hover { background: rgba(255,255,255,0.10); color: var(--fg); }
.nav__sidebar-close svg { width: 18px; height: 18px; }

.nav__sidebar-header {
  display: flex; align-items: center; gap: 10px;
  padding: 20px 52px 16px 20px;
  border-bottom: 1px solid var(--border);
  font-weight: 600; font-size: 15px; letter-spacing: -0.01em; color: var(--fg);
}
.nav__sidebar-header svg { width: 22px; height: 22px; flex-shrink: 0; }

.nav__sidebar-links {
  flex: 1; padding: 12px; display: flex; flex-direction: column; gap: 2px;
}
.nav__sidebar-links a {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 10px;
  color: var(--muted); font-size: 14px; font-weight: 450;
  text-decoration: none; transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.nav__sidebar-links a:hover, .nav__sidebar-links a:active {
  color: var(--fg); background: rgba(255,255,255,0.04);
}
.nav__sidebar-links a svg {
  width: 20px; height: 20px; flex-shrink: 0;
}

.nav__sidebar-social {
  padding: 16px 20px; border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 10px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}
.nav__sidebar-social a {
  color: var(--muted); font-size: 12px; text-decoration: none;
  transition: color 0.2s; display: flex; align-items: center; gap: 8px;
}
.nav__sidebar-social a:hover { color: var(--fg); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 999px; font: 550 15px/1 var(--font);
  letter-spacing: 0.02em; text-decoration: none; cursor: pointer;
  transition: all 0.25s; border: none; position: relative; overflow: hidden;
}
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 0 30px var(--accent-dim); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 0 50px var(--accent-dim); }
.btn--secondary { background: transparent; color: var(--fg); border: 1px solid rgba(255,255,255,0.15); }
.btn--secondary:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.25); transform: translateY(-2px); }
.btn--large { padding: 18px 40px; font-size: 16px; }

/* ===== Section ===== */
section { padding: 100px 0; position: relative; z-index: 1; }
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 550; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 16px;
}
.section-label::before { content: ''; width: 24px; height: 1.5px; background: var(--accent); }

.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 650; letter-spacing: -0.02em; line-height: 1.2; }
.section-title p { color: var(--muted); font-size: 17px; max-width: 560px; margin: 12px auto 0; line-height: 1.6; }

/* ===== Glass Card ===== */
.glass-card {
  background: var(--glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border); border-radius: var(--radius); padding: 32px;
  transition: all 0.3s;
}
.glass-card:hover { background: var(--glass-hover); border-color: rgba(255,255,255,0.12); transform: translateY(-4px); }

/* ===== Footer ===== */
.footer { border-top: 1px solid var(--border); padding: 40px 0; text-align: center; color: var(--muted); font-size: 13px; letter-spacing: 0.02em; position: relative; z-index: 1; }
.footer__social { display: flex; justify-content: center; gap: 20px; margin-bottom: 16px; }
.footer__social a { color: var(--muted); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.footer__social a:hover { color: var(--fg); }

/* ===== Scroll Animations ===== */
.anim { opacity: 0; transform: translateY(24px); transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.anim.vis { opacity: 1; transform: translateY(0); }
.anim--d1 { transition-delay: 0.05s; }
.anim--d2 { transition-delay: 0.12s; }
.anim--d3 { transition-delay: 0.20s; }
.anim--d4 { transition-delay: 0.28s; }
.anim--d5 { transition-delay: 0.36s; }
.anim--d6 { transition-delay: 0.44s; }
.anim--d7 { transition-delay: 0.52s; }
.anim--d8 { transition-delay: 0.60s; }
.anim--d9 { transition-delay: 0.68s; }

.anim--scale { opacity: 0; transform: scale(0.92); transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.anim--scale.vis { opacity: 1; transform: scale(1); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .section-title h2 { font-size: clamp(22px, 2.8vw, 30px); }
  .btn--large { padding: 16px 32px; font-size: 15px; }
}
@media (max-width: 768px) {
  section { padding: 56px 0; }
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .container { padding: 0 16px; }
  .section-title { margin-bottom: 36px; }
  .glow-orb--violet { width: 350px; height: 350px; }
  .glow-orb--blue { width: 300px; height: 300px; }
  .glow-orb--pink { width: 250px; height: 250px; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  section { padding: 44px 0; }
  .btn--large { padding: 14px 28px; font-size: 14px; }
  .nav__sidebar-header { padding: 16px 44px 12px 16px; font-size: 14px; }
  .nav__sidebar-links { padding: 8px; }
  .nav__sidebar-links a { font-size: 13px; padding: 10px 12px; }
  .nav__sidebar-social { padding: 12px 16px; gap: 8px; }
  .nav__sidebar-close { top: 8px; right: 8px; width: 32px; height: 32px; }
  .footer { padding: 28px 0; }
  .footer__social { gap: 14px; flex-wrap: wrap; }
  .footer__social a { font-size: 13px; }
}
@media (max-width: 380px) {
  .container { padding: 0 12px; }
}
