/* =============================================================
   jimmyvu.me — Editorial Light Theme (v6.0)
   Inspired by Belltower: light cream bg, navy text, brass accent
   Custom cursor (dot + ring + magnetic), whitespace rộng,
   subtle shadows, borders rất nhạt.
   ============================================================= */

/* ============== VARIABLES ============== */
:root {
  /* Surface */
  --bg:        #fafaf7;   /* cream off-white - main bg */
  --bg-2:      #ffffff;   /* pure white - cards */
  --bg-3:      #f3f1ea;   /* slightly darker cream */
  --bg-4:      #0a121f;   /* deep navy - reverse section (footer, CTA) */

  /* Ink (text) */
  --ink:       #0a121f;   /* deep navy - main text */
  --ink-2:     #1c2536;   /* slightly lighter */
  --ink-dim:   #0a121f99; /* 60% opacity */
  --ink-mute:  #0a121f66; /* 40% opacity */
  --ink-soft:  #0a121fcc; /* 80% opacity */
  --ink-on-dark: #f0ead6;  /* text on navy bg */

  /* Brass / Gold accent */
  --gold:      #b8924a;
  --gold-2:    #d9bc7c;
  --gold-3:    #e8d59a;
  --gold-deep: #8a6d2e;
  --gold-soft: #b8924a22;

  /* Lines / borders */
  --line:      rgba(10, 18, 31, 0.08);
  --line-2:    rgba(10, 18, 31, 0.12);
  --line-3:    rgba(10, 18, 31, 0.18);
  --line-gold: rgba(184, 146, 74, 0.25);
  --line-gold-soft: rgba(184, 146, 74, 0.15);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(10, 18, 31, 0.05);
  --shadow:    0 4px 20px -4px rgba(10, 18, 31, 0.08);
  --shadow-lg: 0 20px 50px -20px rgba(10, 18, 31, 0.15);
  --shadow-xl: 0 30px 60px -20px rgba(10, 18, 31, 0.18);

  /* Typography */
  --font-display: 'Syne', 'Inter', sans-serif;
  --font-serif:   'Cormorant Garamond', 'Fraunces', Georgia, serif;
  --font-body:     'Plus Jakarta Sans', 'Inter', sans-serif;
  --font-mono:     'JetBrains Mono', monospace;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 32px;
  --space-xl: 64px;
  --space-2xl: 120px;

  /* Container */
  --max-w: 1200px;
  --max-w-narrow: 820px;

  /* Easing */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============== RESET ============== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  cursor: none; /* hide native cursor when custom cursor is active */
}
a { color: inherit; text-decoration: none; }
button {
  font-family: inherit;
  border: none;
  background: none;
  color: inherit;
  cursor: none;
}
img { max-width: 100%; display: block; }
input, textarea { font-family: inherit; cursor: none; }

/* Show native cursor on touch / coarse pointer */
@media (hover: none), (pointer: coarse) {
  body, button, a, input, textarea { cursor: auto !important; }
  .cursor-dot, .cursor-ring { display: none !important; }
}

/* ============== CUSTOM CURSOR ============== */
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .2s var(--ease), height .2s var(--ease), background .2s var(--ease);
  mix-blend-mode: difference; /* đảm bảo nhìn rõ trên cả 2 nền */
}
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 36px; height: 36px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width .3s var(--ease), height .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
  mix-blend-mode: difference;
}
/* Magnetic effect: enlarge + solid khi hover vào element có [data-magnetic] */
body.cursor-hover .cursor-dot {
  width: 12px; height: 12px;
  background: var(--gold);
}
body.cursor-hover .cursor-ring {
  width: 60px; height: 60px;
  border-color: var(--gold);
  background: rgba(184, 146, 74, 0.08);
}
body.cursor-active .cursor-dot { width: 8px; height: 8px; }
body.cursor-active .cursor-ring { width: 28px; height: 28px; }

/* ============== NAV ============== */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 24px 48px;
  display: flex; align-items: center; justify-content: space-between;
  transition: all .4s var(--ease);
  background: rgba(250, 250, 247, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--line);
  padding: 18px 48px;
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
}
.nav-mark {
  width: 38px; height: 38px;
  border: 1.5px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--gold);
  position: relative;
  letter-spacing: -.02em;
}
.nav-mark-dot {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  bottom: -3px; right: -3px;
  box-shadow: 0 0 8px var(--gold);
}
.nav-logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -.02em;
}
.nav-logo-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-left: -4px;
  font-weight: 500;
}
.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-dim);
  transition: color .3s;
  position: relative;
  letter-spacing: .02em;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a::after {
  content: ""; position: absolute; bottom: -6px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width .3s;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta {
  padding: 10px 22px;
  background: var(--ink);
  color: var(--bg-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  border-radius: 0;
  transition: all .3s;
}
.nav-cta:hover { background: var(--gold); color: var(--ink); }
.nav-burger { display: none; flex-direction: column; gap: 5px; width: 28px; height: 28px; align-items: center; justify-content: center; }
.nav-burger span { width: 22px; height: 1.5px; background: var(--ink); transition: .3s; }
@media (max-width: 768px) {
  .nav { padding: 18px 20px; }
  .nav.scrolled { padding: 14px 20px; }
  .nav-links { display: none; }
  .nav-links.open { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(20px); padding: 28px; gap: 20px; border-bottom: 1px solid var(--line); }
  .nav-burger { display: flex; }
}

/* ============== TYPOGRAPHY ============== */
.section-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  display: flex; align-items: center; gap: 16px;
  font-weight: 500;
}
.section-tag::before {
  content: ""; width: 32px; height: 1px; background: var(--gold);
}
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 1.05;
  letter-spacing: -.03em;
  color: var(--ink);
  margin-bottom: 24px;
}
.section-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--gold);
  font-size: 1.05em;
  letter-spacing: -.01em;
}
.section-desc {
  color: var(--ink-dim);
  font-size: 17px;
  max-width: 640px;
  line-height: 1.7;
}

/* ============== BUTTONS ============== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 18px 36px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: all .4s var(--ease);
  border: 1px solid transparent;
  position: relative;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg-2);
  border-color: var(--ink);
}
.btn-primary:hover {
  background: var(--gold);
  color: var(--bg-2);
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn-gold {
  background: var(--gold);
  color: var(--bg-2);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--ink);
  color: var(--bg-2);
  border-color: var(--ink);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-3);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-2);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--bg-2);
}

/* ============== SECTION SPACING ============== */
.section {
  padding: 100px 48px;
  position: relative;
}
.section-tight { padding: 64px 48px; }
.section-dark {
  background: var(--bg-4);
  color: var(--ink-on-dark);
}
@media (max-width: 1024px) {
  .section, .section-tight { padding: 80px 32px; }
}
@media (max-width: 768px) {
  .section, .section-tight { padding: 64px 20px; }
}

/* ============== CONTAINER ============== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}
.container-narrow { max-width: var(--max-w-narrow); }

/* ============== ANIMATIONS ============== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ============== FOOTER ============== */
.footer {
  padding: 80px 48px 48px;
  border-top: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink-dim);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
.footer-brand-name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.02em;
  margin-bottom: 16px;
}
.footer-brand-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-dim);
  max-width: 320px;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 14px;
  color: var(--ink-dim);
  transition: color .3s;
}
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--ink-mute);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--ink-mute);
}
@media (max-width: 768px) {
  .footer { padding: 48px 20px 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
