/* Premium executive resume site */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #090b0d;
  --panel: rgba(20, 22, 24, .82);
  --panel-solid: #141618;
  --line: rgba(231, 222, 202, .14);
  --line-strong: rgba(231, 222, 202, .28);
  --text: #f4efe5;
  --muted: #a7a093;
  --soft: #756f65;
  --gold: #d7b46a;
  --teal: #61c8bd;
  --wine: #9b4d57;
  --shadow: 0 24px 80px rgba(0,0,0,.36);
}
html { scroll-behavior: smooth; }
body {
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.72;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(110deg, rgba(215,180,106,.13), transparent 32%),
    linear-gradient(250deg, rgba(97,200,189,.10), transparent 34%),
    #090b0d;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .26;
  background-image:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}
::selection { background: rgba(215,180,106,.35); }
#particles { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .36; }

#entry-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #090b0d;
  transition: opacity .75s ease, visibility .75s ease;
}
#entry-overlay.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.entry-content {
  width: min(420px, calc(100vw - 40px));
  padding: 44px 34px;
  text-align: center;
  border: 1px solid var(--line);
  background: rgba(18,20,22,.86);
  box-shadow: var(--shadow);
  border-radius: 8px;
}
.entry-avatar { width: 122px; height: 122px; margin: 0 auto 28px; border-radius: 50%; padding: 4px; border: 1px solid rgba(215,180,106,.55); }
.entry-avatar::before { display: none; }
.entry-avatar-img { width: 100%; height: 100%; object-fit: cover; object-position: center center; border-radius: 50%; display: block; }
.entry-title { font-size: 40px; font-weight: 800; letter-spacing: 6px; color: var(--text); margin-bottom: 8px; }
.entry-subtitle { color: var(--muted); font-size: 15px; letter-spacing: 3px; margin-bottom: 30px; }
.entry-btn {
  height: 46px;
  padding: 0 28px;
  border: 1px solid rgba(215,180,106,.48);
  border-radius: 6px;
  background: rgba(215,180,106,.08);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font: inherit;
  transition: transform .25s, border-color .25s, background .25s;
}
.entry-btn:hover { transform: translateY(-2px); border-color: var(--gold); background: rgba(215,180,106,.15); }

#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 32px;
  border-bottom: 1px solid transparent;
  transition: background .25s, border-color .25s;
}
#navbar.scrolled { background: rgba(9,11,13,.82); backdrop-filter: blur(18px); border-bottom-color: var(--line); }
.nav-inner { max-width: 1200px; height: 72px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.logo { color: var(--text); font-weight: 800; letter-spacing: .5px; font-size: 18px; }
.nav-links { list-style: none; display: flex; align-items: center; gap: 4px; }
.nav-links a { display: block; padding: 8px 14px; color: var(--muted); text-decoration: none; font-size: 14px; border-radius: 6px; transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(215,180,106,.10); }
.menu-toggle { display: none; border: 1px solid var(--line); color: var(--text); background: rgba(255,255,255,.04); width: 40px; height: 40px; border-radius: 6px; font-size: 20px; }

#hero { position: relative; z-index: 1; min-height: 100vh; display: grid; place-items: center; padding: 118px 28px 70px; }
.hero-content { width: min(1120px, 100%); display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 56px; align-items: center; text-align: left; }
.avatar-ring { width: 300px; height: 380px; margin: 0; border-radius: 8px; overflow: hidden; position: relative; border: 1px solid var(--line-strong); box-shadow: var(--shadow); background: var(--panel-solid); }
.avatar-ring::before { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(215,180,106,.32); z-index: 2; pointer-events: none; border-radius: 6px; }
.avatar-img { width: 100%; height: 100%; object-fit: cover; object-position: center center; display: block; filter: saturate(.92) contrast(1.04); animation: none; border-radius: 0; }
.glitch { font-size: clamp(54px, 7vw, 96px); line-height: 1; color: var(--text); font-weight: 900; letter-spacing: 0; margin-bottom: 20px; }
.glitch::before, .glitch::after { display: none; }
.hero-subtitle { min-height: 36px; color: var(--gold); font-size: 22px; letter-spacing: 1px; margin-bottom: 20px; }
.cursor { color: var(--gold); animation: blink .9s infinite; }
@keyframes blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-start; margin: 22px 0 34px; }
.hero-tags span { padding: 7px 13px; color: #e8dfcf; border: 1px solid var(--line); background: rgba(255,255,255,.035); border-radius: 6px; font-size: 13px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: flex-start; }
.btn-primary, .btn-outline { min-height: 46px; padding: 0 20px; border-radius: 6px; display: inline-flex; align-items: center; gap: 9px; font-size: 14px; text-decoration: none; cursor: pointer; transition: transform .22s, border-color .22s, background .22s; font-family: inherit; }
.btn-primary { border: 1px solid rgba(215,180,106,.72); color: #14100a; background: linear-gradient(135deg, #f2d995, #bf8f3d); box-shadow: 0 18px 40px rgba(215,180,106,.18); }
.btn-outline { border: 1px solid var(--line-strong); color: var(--text); background: rgba(255,255,255,.035); }
.btn-primary:hover, .btn-outline:hover { transform: translateY(-2px); }
.btn-outline:hover { border-color: var(--gold); background: rgba(215,180,106,.09); }
.scroll-indicator { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); color: var(--soft); font-size: 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; }

section { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 96px 28px; }
.section-header { display: grid; grid-template-columns: auto auto 1fr; gap: 16px; align-items: center; margin-bottom: 34px; }
.section-number { color: var(--gold); font-size: 13px; letter-spacing: 2px; font-weight: 700; }
.section-header h2 { color: var(--text); font-size: clamp(28px, 3vw, 42px); line-height: 1.1; letter-spacing: 0; }
.section-line { height: 1px; background: linear-gradient(90deg, var(--line-strong), transparent); }
.glass { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 28px; box-shadow: 0 18px 54px rgba(0,0,0,.18); backdrop-filter: blur(12px); transition: transform .25s, border-color .25s, background .25s; }
.glass:hover { transform: translateY(-3px); border-color: rgba(215,180,106,.36); background: rgba(24,27,29,.9); }
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 20px; }
.about-card i { width: 44px; height: 44px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; color: var(--gold); border: 1px solid rgba(215,180,106,.25); background: rgba(215,180,106,.07); margin-bottom: 18px; font-size: 20px; }
.about-card h3, .timeline-content h3 { color: var(--text); font-size: 20px; margin-bottom: 8px; }
.about-card p, .timeline-content p, .project-details p { color: var(--muted); font-size: 14px; line-height: 1.86; }
.about-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 20px; }
.stat-item { border: 1px solid var(--line); background: rgba(255,255,255,.035); border-radius: 8px; padding: 20px 10px; text-align: center; }
.stat-num { color: var(--gold); font-size: 36px; font-weight: 900; line-height: 1; }
.stat-plus, .stat-percent { color: var(--gold); font-size: 18px; font-weight: 800; }
.stat-label { display: block; color: var(--soft); font-size: 12px; margin-top: 8px; }
.skills-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.skill-group { border: 1px solid var(--line); background: rgba(255,255,255,.03); padding: 24px; border-radius: 8px; }
.skill-group h3 { color: var(--text); font-size: 18px; margin-bottom: 18px; }
.skill-group h3 i { color: var(--teal); margin-right: 8px; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 9px; }
.skill-tag { color: #d9d1c1; border: 1px solid rgba(231,222,202,.13); background: rgba(231,222,202,.04); border-radius: 6px; padding: 8px 11px; font-size: 13px; transition: transform .2s, border-color .2s, color .2s; }
.skill-tag:hover { transform: translateY(-2px); border-color: rgba(97,200,189,.45); color: var(--text); }
.project-hero { padding: 34px; margin-bottom: 18px; }
.project-title-row { display: flex; gap: 18px; align-items: center; margin-bottom: 24px; }
.project-title-row i { color: var(--gold); font-size: 36px; }
.project-title-row h3 { font-size: 30px; color: var(--text); line-height: 1.12; }
.project-subtitle { color: var(--muted); font-size: 14px; }
.project-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.metric { border: 1px solid var(--line); background: rgba(255,255,255,.035); border-radius: 8px; min-height: 108px; padding: 18px 10px; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.metric-val { color: var(--gold); font-size: 30px; font-weight: 900; line-height: 1.05; }
.metric-unit { color: var(--teal); font-size: 13px; font-weight: 700; }
.metric-label { color: var(--soft); font-size: 12px; margin-top: 7px; }
.project-details { margin-bottom: 16px; }
.project-details h4 { color: var(--text); font-size: 18px; display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.project-details h4 i { color: var(--gold); }
.format-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.format-item { min-height: 52px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.03); border-radius: 8px; padding: 12px; color: #d8d0c2; font-size: 14px; }
.format-item i { color: var(--teal); width: 18px; }
.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(var(--gold), rgba(97,200,189,.55), transparent); }
.timeline-item { position: relative; margin-bottom: 18px; }
.timeline-dot { position: absolute; left: -29px; top: 30px; width: 13px; height: 13px; background: var(--gold); border: 3px solid var(--bg); border-radius: 50%; }
.timeline-date { color: var(--gold); font-weight: 800; font-size: 13px; letter-spacing: 1px; margin-bottom: 6px; }
.timeline-content h4 { color: var(--muted); font-size: 14px; font-weight: 500; margin-bottom: 10px; }
.contact-container { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; align-items: start; }
.contact-info { display: grid; gap: 12px; }
.contact-item { display: grid; grid-template-columns: 42px 1fr; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.025); }
.contact-item i { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; color: var(--gold); background: rgba(215,180,106,.08); }
.contact-label { display: block; color: var(--soft); font-size: 12px; }
.contact-value { display: block; color: var(--text); font-size: 14px; word-break: break-word; }
.contact-form { display: grid; gap: 12px; }
.contact-form input, .contact-form textarea { width: 100%; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--text); border-radius: 8px; padding: 13px 14px; font: inherit; outline: none; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: rgba(215,180,106,.55); }
footer { position: relative; z-index: 1; border-top: 1px solid var(--line); color: var(--soft); text-align: center; padding: 28px; font-size: 13px; }
.music-btn { position: fixed; right: 28px; bottom: 28px; z-index: 999; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(20,22,24,.86); color: var(--gold); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: var(--shadow); }
.music-btn.playing i { animation: spin-record 3s linear infinite; }
@keyframes spin-record { to { transform: rotate(360deg); } }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (max-width: 980px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; gap: 30px; justify-items: center; }
  .hero-tags, .hero-actions { justify-content: center; }
  .avatar-ring { width: 220px; height: 220px; border-radius: 50%; }
  .avatar-ring::before { border-radius: 50%; }
  .avatar-img { border-radius: 50%; }
  .about-grid, .skills-container, .contact-container { grid-template-columns: 1fr; }
  .about-stats, .project-metrics { grid-template-columns: repeat(2, 1fr); }
  .format-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  #navbar { padding: 0 16px; }
  .nav-inner { height: 62px; }
  .menu-toggle { display: block; }
  .nav-links { position: fixed; top: 62px; left: 12px; right: 12px; display: none; flex-direction: column; padding: 12px; border: 1px solid var(--line); background: rgba(12,14,16,.96); border-radius: 8px; }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; }
  #hero { padding: 96px 18px 58px; }
  section { padding: 68px 18px; }
  .section-header { grid-template-columns: 1fr; gap: 8px; }
  .section-line { width: 72px; }
  .glitch { font-size: 48px; }
  .hero-subtitle { font-size: 18px; }
  .about-stats, .project-metrics, .format-grid { grid-template-columns: 1fr; }
  .glass, .project-hero { padding: 22px; }
  .music-btn { right: 18px; bottom: 18px; width: 44px; height: 44px; }
}

/* Codex mobile compatibility patch - 20260522 */
@media (max-width: 760px) {
  html, body { width: 100%; overflow-x: hidden; }
  .entry-content { width: calc(100vw - 28px); padding: 30px 20px; }
  .entry-title { font-size: 32px; letter-spacing: 4px; }
  .logo { font-size: 16px; }
  .hero-content { width: 100%; }
  .avatar-ring { width: min(62vw, 220px); height: min(62vw, 220px); }
  .glitch { font-size: clamp(40px, 14vw, 54px); }
  .hero-tags span { flex: 1 1 auto; text-align: center; }
  .hero-actions { width: 100%; }
  .btn-primary, .btn-outline { width: 100%; justify-content: center; min-height: 48px; }
  .about-card p, .timeline-content p, .project-details p { font-size: 14px; }
  .contact-item { grid-template-columns: 38px minmax(0, 1fr); }
  .contact-item i { width: 38px; height: 38px; }
  footer { padding-bottom: 76px; }
}
@media (max-width: 380px) {
  .glitch { font-size: 38px; }
  .hero-subtitle { font-size: 16px; }
  .glass, .project-hero { padding: 18px; }
}
