/* =====================================================
   LIQUID GLASS PROFILE — style.css
   Apple VisionOS + Aurora + Glassmorphism
   ===================================================== */

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

:root {
  --glass-bg:        rgba(255,255,255,.07);
  --glass-bg-hover:  rgba(255,255,255,.12);
  --glass-border:    rgba(255,255,255,.18);
  --glass-shadow:    0 8px 40px rgba(0,0,0,.45), 0 2px 8px rgba(0,0,0,.25);
  --blur:            blur(22px) saturate(1.8);
  --radius-card:     24px;
  --radius-chip:     100px;
  --text-primary:    rgba(255,255,255,.95);
  --text-secondary:  rgba(255,255,255,.60);
  --text-muted:      rgba(255,255,255,.38);
  --accent-a:        #7c3aed;
  --accent-b:        #06b6d4;
  --accent-c:        #ec4899;
  --accent-d:        #22c55e;
  --transition:      .35s cubic-bezier(.34,1.56,.64,1);
  --transition-fast: .15s ease;
}

/* ── BASE ── */
html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  background: #060612;
  font-family: "Be Vietnam Pro", Inter, system-ui, sans-serif;
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Avatar size token — dùng lại nhiều chỗ */
:root { --avatar-size: 148px; --avatar-overlap: calc(var(--avatar-size) / 2); }

.hidden { display: none !important; }

/* ═══════════════════════════════════════════
   AURORA BACKGROUND
═══════════════════════════════════════════ */
.aurora-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 15% 20%, #3b0764 0%, transparent 55%),
    radial-gradient(ellipse 50% 60% at 85% 75%, #1e3a5f 0%, transparent 55%),
    radial-gradient(ellipse 45% 40% at 55% 10%, #831843 0%, transparent 50%),
    #060612;
  overflow: hidden;
}

.light-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .7;
  will-change: transform;
}

.orb-a {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #7c3aed 0%, #312e81 70%);
}
.orb-b {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #06b6d4 0%, #1e3a5f 70%);
}
.orb-c {
  width: 420px; height: 420px;
  background: radial-gradient(circle, #ec4899 0%, #7c3aed 70%);
}

/* ═══════════════════════════════════════════
   LOADING / ERROR
═══════════════════════════════════════════ */
.loading-screen,
.error-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}

.load-glass {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 40px 56px;
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  box-shadow: var(--glass-shadow);
}

.load-spinner {
  width: 40px; height: 40px;
  border: 3px solid rgba(255,255,255,.15);
  border-top-color: #7c3aed;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.load-text {
  font-size: .95rem;
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: .3px;
}

/* ═══════════════════════════════════════════
   MAIN WRAP
═══════════════════════════════════════════ */
.main-wrap {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 0 60px;
  animation: fadeSlideUp .8s cubic-bezier(.22,1,.36,1) both;
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════════ */
/* ══════════════════════════════════════
   HERO — cover block + avatar overlap
══════════════════════════════════════ */
.hero-section {
  position: relative;
  text-align: center;
  margin-bottom: 20px;
  overflow: visible;
}

/* Cover: fixed height, NO overflow hidden at section level */
.hero-cover {
  position: relative;
  height: 260px;
  background: linear-gradient(135deg, #1a0533 0%, #0c1a3a 50%, #0a1520 100%);
  background-size: cover;
  background-position: center top;
  border-radius: 0 0 36px 36px;
  overflow: hidden; /* only clips internally, not avatar */
}
.hero-cover.has-cover { filter: brightness(.72); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(6,6,18,.10) 0%,
    rgba(6,6,18,.08) 50%,
    rgba(6,6,18,.70) 100%
  );
}

/* AVATAR — sits between cover and hero-info via negative margin */
.avatar-wrap {
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: center;
  /* pull up by half avatar height to overlap cover bottom */
  margin-top: calc(-1 * var(--avatar-overlap));
  margin-bottom: 16px;
}

.avatar-ring {
  width: var(--avatar-size);
  height: var(--avatar-size);
  border-radius: 28px;
  padding: 3px;
  background: linear-gradient(135deg, #7c3aed, #06b6d4, #ec4899);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.15),
    0 0 40px rgba(124,58,237,.55),
    0 0 80px rgba(6,182,212,.25);
  animation: avatarPulse 3s ease-in-out infinite alternate;
}

@keyframes avatarPulse {
  from { box-shadow: 0 0 0 1px rgba(255,255,255,.15), 0 0 40px rgba(124,58,237,.55), 0 0 80px rgba(6,182,212,.25); }
  to   { box-shadow: 0 0 0 1px rgba(255,255,255,.25), 0 0 60px rgba(124,58,237,.75), 0 0 100px rgba(6,182,212,.45); }
}

.avatar-img {
  width: 100%; height: 100%;
  border-radius: 25px;
  object-fit: cover;
  display: block;
  transition: transform var(--transition);
}
.avatar-ring:hover .avatar-img { transform: scale(1.04); }


/* HERO INFO */
.hero-info {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0 24px 32px;
}

.badges-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 4px;
}

.badge-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-chip);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .4px;
  color: var(--text-primary);
  box-shadow: 0 2px 12px rgba(0,0,0,.3);
  animation: shimmer 3s ease infinite;
  background-size: 200% 100%;
}

@keyframes shimmer {
  0%,100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.profile-name {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,.75) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}

.profile-nickname {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: .3px;
}

.profile-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .875rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.profile-quote {
  margin-top: 8px;
  max-width: 480px;
  font-size: 1rem;
  font-style: italic;
  font-weight: 400;
  color: rgba(255,255,255,.65);
  line-height: 1.6;
  border-left: 2px solid rgba(124,58,237,.7);
  padding-left: 14px;
  text-align: left;
}

/* ═══════════════════════════════════════════
   CONTENT GRID — mobile-first, 1 cột base
═══════════════════════════════════════════ */
.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 0 14px;
}

/* ═══════════════════════════════════════════
   GLASS CARD BASE
═══════════════════════════════════════════ */
.glass-card {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  padding: 20px;
  box-shadow: var(--glass-shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow .3s ease;
  isolation: isolate;
  animation: revealCard .6s cubic-bezier(.22,1,.36,1) both;
}

@keyframes revealCard {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    150deg,
    rgba(255,255,255,.5) 0%,
    rgba(255,255,255,.12) 50%,
    rgba(124,58,237,.2) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Glass shine sweep */
.glass-card::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent);
  transform: skewX(-15deg);
  pointer-events: none;
  transition: left .6s ease;
}
.glass-card:hover::after { left: 150%; }

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 60px rgba(0,0,0,.5), 0 4px 12px rgba(0,0,0,.3);
  background: var(--glass-bg-hover);
}

/* ── CARD HEADER ── */
.card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.card-icon {
  font-size: 1.2rem;
  line-height: 1;
  filter: drop-shadow(0 0 8px rgba(124,58,237,.6));
}

.card-header h2 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .3px;
  color: var(--text-primary);
}

/* ═══════════════════════════════════════════
   BIO CARD
═══════════════════════════════════════════ */
.bio-text {
  font-size: .95rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--text-secondary);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  transition: all .4s ease;
}
.bio-text.expanded {
  -webkit-line-clamp: unset;
  display: block;
}

.bio-toggle {
  margin-top: 10px;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(124,58,237,.9);
  font-size: .85rem;
  font-weight: 600;
  font-family: inherit;
  transition: color var(--transition-fast);
  padding: 0;
}
.bio-toggle:hover { color: #a78bfa; }

/* ═══════════════════════════════════════════
   MUSIC PLAYER
═══════════════════════════════════════════ */
.music-player {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.music-info { text-align: center; }
.music-title {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.music-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ctrl-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-primary);
  font-size: 1.1rem;
  cursor: pointer;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition), background .2s;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
}
.ctrl-btn:hover {
  transform: scale(1.1);
  background: rgba(124,58,237,.3);
}

.music-timeline {
  display: flex;
  align-items: center;
  gap: 10px;
}

.time-cur, .time-dur {
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  min-width: 32px;
}

.music-seek,
.vol-slider {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,.15);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
.music-seek::-webkit-slider-thumb,
.vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #06b6d4);
  box-shadow: 0 0 8px rgba(124,58,237,.7);
  transition: transform .15s;
}
.music-seek::-webkit-slider-thumb:hover,
.vol-slider::-webkit-slider-thumb:hover { transform: scale(1.3); }

.volume-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
}

/* ═══════════════════════════════════════════
   INFO WIDGET GRID
═══════════════════════════════════════════ */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.info-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 14px;
  transition: background .2s, transform .2s;
  cursor: default;
  min-width: 0; /* prevent overflow */
}
.info-item:hover {
  background: rgba(255,255,255,.10);
  transform: translateY(-2px);
}

.info-icon {
  font-size: 1.3rem;
  line-height: 1;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.06);
  border-radius: 10px;
}

.info-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.info-label {
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1.2;
  white-space: nowrap;
}

.info-value {
  font-size: .88rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* ═══════════════════════════════════════════
   EDU CARD
═══════════════════════════════════════════ */
.edu-list { display: flex; flex-direction: column; gap: 14px; }

.edu-item {
  display: flex;
  gap: 14px;
  padding: 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px;
  transition: background .2s;
}
.edu-item:hover { background: rgba(255,255,255,.08); }

.edu-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(124,58,237,.15);
  border-radius: 12px;
}

.edu-body {}
.edu-title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
}
.edu-sub {
  font-size: .82rem;
  color: var(--text-secondary);
  font-weight: 400;
}

/* ═══════════════════════════════════════════
   CHIPS (Skills, Languages, etc.)
═══════════════════════════════════════════ */
.chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-chip);
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: default;
  overflow: hidden;
  transition: transform var(--transition), box-shadow .3s ease;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.chip:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 24px rgba(124,58,237,.4);
}
.chip::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.15), transparent);
  transform: skewX(-20deg);
  transition: left .5s ease;
}
.chip:hover::after { left: 150%; }

/* ═══════════════════════════════════════════
   HOBBY LIST
═══════════════════════════════════════════ */
.hobby-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hobby-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background .2s, color .2s;
}
.hobby-item:hover {
  background: rgba(124,58,237,.12);
  color: var(--text-primary);
}
.hobby-icon { font-size: 1.1rem; }

/* ═══════════════════════════════════════════
   SOCIALS GRID
═══════════════════════════════════════════ */
.socials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.social-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  font-size: .88rem;
  overflow: hidden;
  position: relative;
  transition: transform var(--transition), box-shadow .3s;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
}
.social-item:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
}

.social-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  background: rgba(255,255,255,.08);
}

/* Ripple on click */
.social-item .ripple-el {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  transform: scale(0);
  animation: rippleAnim .6s ease-out forwards;
  pointer-events: none;
}
@keyframes rippleAnim {
  to { transform: scale(5); opacity: 0; }
}

/* ═══════════════════════════════════════════
   TIMELINE
═══════════════════════════════════════════ */
.timeline-list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: 28px;
}

.timeline-list::before {
  content: '';
  position: absolute;
  left: 10px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #7c3aed, #06b6d4, #ec4899);
  border-radius: 1px;
}

.timeline-item {
  position: relative;
  padding: 16px 0 16px 20px;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity .5s ease, transform .5s ease;
}
.timeline-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -23px; top: 22px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #06b6d4);
  box-shadow: 0 0 12px rgba(124,58,237,.7);
  border: 2px solid rgba(255,255,255,.3);
}

.timeline-year {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--accent-b);
  margin-bottom: 4px;
}

.timeline-title {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.5;
}

/* ═══════════════════════════════════════════
   GALLERY
═══════════════════════════════════════════ */
.gallery-grid {
  columns: 3;
  column-gap: 12px;
}

.gallery-item {
  display: block;
  width: 100%;
  margin-bottom: 12px;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  break-inside: avoid;
  border: 1px solid rgba(255,255,255,.08);
  transition: transform var(--transition), box-shadow .3s;
}
.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
}
.gallery-item img {
  width: 100%;
  display: block;
  object-fit: cover;
  transition: transform .4s ease;
}
.gallery-item:hover img { transform: scale(1.05); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex; align-items: center; justify-content: center;
  transition: background .3s;
  border-radius: inherit;
}
.gallery-item:hover .gallery-overlay {
  background: rgba(0,0,0,.35);
}
.gallery-overlay::after {
  content: '🔍';
  font-size: 1.4rem;
  opacity: 0;
  transform: scale(.6);
  transition: all .3s ease;
}
.gallery-item:hover .gallery-overlay::after {
  opacity: 1;
  transform: scale(1);
}

/* ═══════════════════════════════════════════
   LIGHTBOX
═══════════════════════════════════════════ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  cursor: pointer;
}

.lb-content {
  position: relative;
  z-index: 1;
  max-width: min(90vw, 900px);
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: lbReveal .3s ease both;
}
@keyframes lbReveal {
  from { opacity: 0; transform: scale(.9); }
  to   { opacity: 1; transform: scale(1); }
}

.lb-img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 20px 80px rgba(0,0,0,.8);
}

.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform var(--transition), background .2s;
  line-height: 1;
}
.lb-close {
  top: -16px; right: -16px;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.lb-prev, .lb-next {
  top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}
.lb-prev { left: -56px; }
.lb-next { right: -56px; }
.lb-close:hover  { transform: scale(1.1); background: rgba(236,72,153,.3); }
.lb-prev:hover   { transform: translateY(-50%) scale(1.1); }
.lb-next:hover   { transform: translateY(-50%) scale(1.1); }

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.site-footer {
  margin-top: 40px;
  text-align: center;
  font-size: .8rem;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: .3px;
}

/* ═══════════════════════════════════════════
   SCROLL ANIMATION BASE
═══════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════
   RESPONSIVE — 3 breakpoints rõ ràng
   phone  < 600px  : 1 cột
   tablet 600–899px: 2 cột linh hoạt
   pc    ≥ 900px   : grid-template-areas
═══════════════════════════════════════════ */

/* ── PHONE (< 600px) ── */
@media (max-width: 599px) {
  :root { --avatar-size: 108px; }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 0 12px;
  }

  /* mọi card chiếm full width */
  .content-grid > * { grid-column: 1; }

  .info-grid { grid-template-columns: 1fr; }

  .hero-cover { height: 190px; }
  .gallery-grid { columns: 2; }
  .profile-name { font-size: 1.65rem; }
  .lb-prev { left: -36px; }
  .lb-next { right: -36px; }
}

/* ── TABLET (600–899px) ── */
@media (min-width: 600px) and (max-width: 899px) {
  :root { --avatar-size: 124px; }

  .content-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 0 16px;
  }

  /* full-width: các card nội dung dài */
  .music-card,
  .bio-card,
  .info-card,
  .device-card,
  .socials-card,
  .timeline-card,
  .gallery-card { grid-column: 1 / -1; }

  /* info-card: 2 cột */
  .info-grid { grid-template-columns: repeat(2, 1fr); }

  /* device-card: 2–4 cột tùy số item */
  .device-card .info-grid { grid-template-columns: repeat(2, 1fr); }

  .gallery-grid { columns: 3; }
}

/* ── PC / DESKTOP (≥ 900px) ── */
@media (min-width: 900px) {
  .content-grid {
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
    padding: 0 16px;
  }

  /* ── full 12 cột ── */
  .music-card    { grid-column: span 12; }
  .bio-card      { grid-column: span 12; }
  .info-card     { grid-column: span 12; }
  .device-card   { grid-column: span 12; }
  .socials-card  { grid-column: span 12; }
  .timeline-card { grid-column: span 12; }
  .gallery-card  { grid-column: span 12; }

  /* ── 6 cột mỗi card ── */
  .edu-card      { grid-column: span 6; }
  .skills-card   { grid-column: span 6; }

  /* ── 4 cột mỗi card ── */
  .lang-card     { grid-column: span 4; }
  .hobby-card    { grid-column: span 4; }
  .fav-card      { grid-column: span 4; }

  /* ── info-grid: 4 cột trên desktop ── */
  .info-card .info-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* ── device-grid: auto-fit rộng ── */
  .device-card .info-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .gallery-grid { columns: 4; }
}

/* ── 4K / wide (≥ 1400px) ── */
@media (min-width: 1400px) {
  .main-wrap { max-width: 1200px; }
}

/* ── tiny phone (≤ 380px) ── */
@media (max-width: 380px) {
  :root { --avatar-size: 96px; }
  .gallery-grid { columns: 1; }
  .socials-grid { grid-template-columns: 1fr 1fr; }
}
