/* ================================================================
   VIOLET BUI — Personal Hub
   Ocean Dreamy × Editorial × Glassmorphism
   Dark ↔ Light Alternating Sections
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Inter:wght@300;400;500;600&family=Space+Mono:wght@400;700&display=swap');

@font-face {
  font-family: 'MS Bogart';
  src: url('./assets/fonts/MJ_CS_Bogart.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'MS Bogart';
  src: url('./assets/fonts/MJ_CS_Bogart_Italic.ttf') format('truetype');
  font-weight: normal;
  font-style: italic;
}
/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; font-family: var(--font-body); line-height: 1.6; }
img, video { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #050d1a; }
::-webkit-scrollbar-thumb { background: rgba(122,184,232,.35); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: rgba(122,184,232,.65); }

/* ── DESIGN TOKENS (NYNÄ BLUE PALETTE & GLASS) ── */
:root {
  /* NYNÄ Palette Tokens */
  --icy-blue:   #ABD2FA;
  --cornflower: #7692FF;
  --persian:    #1B2CC1;
  --dusk-blue:  #3D518C;
  --deep-navy:  #091540;

  /* Light */
  --l-bg:     #f0f6ff;
  --l-bg2:    #e0ecff;
  --l-text:   #091540;
  --l-muted:  #3D518C;
  --l-accent: #7692FF;
  --l-border: rgba(118,146,255,.2);

  /* Dark */
  --d-bg:     #091540;
  --d-bg2:    #0e1d52;
  --d-text:   #f0f6ff;
  --d-muted:  #ABD2FA;
  --d-accent: #7692FF;
  --d-glow:   rgba(118,146,255,.3);
  --d-border: rgba(171,210,250,.22);

  /* Shared */
  --gold:   #7692FF;
  --pearl:  #f8fcff;
  --dreamy: #ABD2FA;

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-title: 'MS Bogart', 'MJ CS Bogart', 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'Space Mono', monospace;

  /* Spacing */
  --max-w:  1280px;
  --pad-x:  clamp(20px, 5vw, 80px);
  --sec-py: clamp(80px, 10vw, 130px);
  --ease:   cubic-bezier(.4,0,.2,1);
  --bounce: cubic-bezier(.34,1.56,.64,1);
}

/* ── BASE TYPOGRAPHY ── */
h1,h2,h3,h4 { font-family: var(--font-display); }

.label {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 12px;
}

.sec-title {
  font-family: var(--font-title); /* Áp dụng MS Bogart */
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.1;
}

/* ── LAYOUT ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ── SECTION THEMES ── */
section { position: relative; overflow: hidden; }

.dark  { background: var(--d-bg);  color: var(--d-text); }
.light { background: var(--l-bg);  color: var(--l-text); }

.dark  .label { color: var(--d-accent); }
.light .label { color: var(--l-accent); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 36px; border-radius: 100px;
  font-family: var(--font-body); font-size: 0.95rem;
  font-weight: 600; letter-spacing: .05em;
  cursor: pointer; border: none; white-space: nowrap;
  position: relative; overflow: hidden;
  transition: all .38s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
.btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 65%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-25deg);
  transition: left 0.65s ease;
  pointer-events: none;
}
.btn:hover::before {
  left: 150%;
}

.btn-glass {
  background: rgba(13, 28, 64, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(171, 210, 250, 0.38);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(9, 21, 64, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.15);
}
.btn-glass:hover {
  background: linear-gradient(135deg, #1B2CC1, #7692FF);
  border-color: #ABD2FA;
  color: #ffffff;
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 14px 38px rgba(118, 146, 255, 0.5), 0 0 25px rgba(171, 210, 250, 0.3);
}

.btn-ocean {
  background: linear-gradient(135deg, #1B2CC1 0%, #3D518C 50%, #7692FF 100%);
  color: #ffffff;
  border: 1px solid rgba(171, 210, 250, 0.3);
  box-shadow: 0 6px 22px rgba(27, 44, 193, 0.45);
}
.btn-ocean:hover {
  background: linear-gradient(135deg, #7692FF, #1B2CC1, #3D518C);
  border-color: #ABD2FA;
  color: #ffffff;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 14px 38px rgba(118, 146, 255, 0.6);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid rgba(118, 146, 255, 0.45);
  color: #ABD2FA;
}
.btn-outline:hover {
  background: linear-gradient(135deg, #1B2CC1, #7692FF);
  border-color: #ABD2FA;
  color: #ffffff;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 30px rgba(118, 146, 255, 0.4);
}

/* ── REUSABLE GLASSMORPHIC SHIMMER CARD ── */
.glass-shimmer-card {
  background: rgba(13, 28, 64, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(171, 210, 250, 0.28);
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(9, 21, 64, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease);
}
.glass-shimmer-card:hover {
  border-color: rgba(171, 210, 250, 0.65);
  box-shadow: 0 24px 50px rgba(27, 44, 193, 0.45), 0 0 30px rgba(118, 146, 255, 0.3);
  transform: translateY(-6px);
}

/* ── WAVE DIVIDERS ── */
.wave { position: absolute; bottom: -2px; left: 0; width: 100%; line-height: 0; z-index: 10; pointer-events: none; }
.wave-top { bottom: auto; top: -2px; }
.wave svg { display: block; width: 100%; height: 90px; }

/* ── SCROLL REVEAL ── */
.reveal, .rev-l, .rev-r, .rev-zoom, .rev-blur {
  opacity: 0;
  will-change: opacity, transform, filter;
  transition: opacity .75s var(--ease), transform .75s var(--ease), filter .75s var(--ease);
  transition-delay: var(--delay, 0s);
}
.reveal { transform: translateY(40px); }
.rev-l  { transform: translateX(-50px); }
.rev-r  { transform: translateX(50px); }
.rev-zoom { transform: scale(0.9); }
.rev-blur { transform: translateY(30px); filter: blur(8px); }

.reveal.on, .rev-l.on, .rev-r.on, .rev-zoom.on, .rev-blur.on { 
  opacity: 1; 
  transform: translate(0) scale(1); 
  filter: blur(0); 
}

/* ────────────────────────────────────────────────
   NAVBAR
──────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px var(--pad-x);
  transition: all .5s var(--ease);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.navbar.scrolled {
  background: rgba(9, 21, 64, 0.88);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-bottom: 1px solid rgba(171, 210, 250, 0.15);
  padding-top: 12px; padding-bottom: 12px;
  box-shadow: 0 8px 40px rgba(9, 21, 64, 0.5), 0 0 1px rgba(118, 146, 255, 0.3);
}

/* ── LEFT: Nav links ── */
.nav-left {
  display: flex; gap: 6px; align-items: center;
  justify-content: flex-start;
}
.nav-left li { list-style: none; }
.nav-left a {
  font-family: var(--font-body);
  font-size: .72rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  color: rgba(232,244,255,.65);
  padding: 5px 10px;
  border-radius: 6px;
  position: relative;
  transition: color .3s, background .3s;
  white-space: nowrap;
}
.nav-left a::after {
  content: ''; position: absolute; bottom: 2px; left: 10px; right: 10px;
  height: 1px; background: #7692FF;
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-left a:hover { color: #ABD2FA; }
.nav-left a:hover::after { transform: scaleX(1); }

/* Tiny vertical divider between links */
.nav-divider {
  width: 1px; height: 12px;
  background: rgba(171,210,250,.2);
  margin: 0 2px;
}

/* ── CENTER: Logo / Name ── */
.nav-center {
  display: flex; flex-direction: column; align-items: center;
  gap: 2px;
  text-decoration: none;
  position: relative;
}
.nav-logo-main {
  font-family: var(--font-title);
  font-size: 1.55rem; font-weight: 400; font-style: italic;
  color: var(--d-text); letter-spacing: .02em;
  line-height: 1;
  transition: color .3s;
  white-space: nowrap;
}
.nav-logo-dot {
  font-size: .55rem; color: #7692FF;
  letter-spacing: .3em;
  opacity: 0.8;
  transition: opacity .3s, transform .5s;
  display: block; text-align: center;
}
.nav-center:hover .nav-logo-main { color: #ABD2FA; }
.nav-center:hover .nav-logo-dot { opacity: 1; transform: rotate(180deg); }

/* Decorative line on both sides of center name */
.nav-center::before,
.nav-center::after {
  content: '';
  position: absolute; top: 50%;
  width: 28px; height: 1px;
  background: linear-gradient(to right, transparent, rgba(171,210,250,.4));
  transform: translateY(-50%);
}
.nav-center::before { right: calc(100% + 8px); transform: translateY(-50%) scaleX(-1); }
.nav-center::after  { left:  calc(100% + 8px); }

/* ── RIGHT: Studio + CTA ── */
.nav-right {
  display: flex; align-items: center; gap: 16px;
  justify-content: flex-end;
}
.nav-studio {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--font-body);
  font-size: .7rem; letter-spacing: .08em;
  color: rgba(232,244,255,.55);
  border: 1px solid rgba(171,210,250,.15);
  border-radius: 100px;
  padding: 5px 14px 5px 10px;
  transition: all .3s;
  white-space: nowrap;
  backdrop-filter: blur(8px);
}
.nav-studio-icon { font-size: .85rem; }
.nav-studio:hover {
  color: #ffffff;
  border-color: rgba(171,210,250, 0.8);
  background: rgba(171,210,250, 0.15);
  box-shadow: 0 0 15px rgba(171,210,250, 0.2);
}

/* CTA Button */
.nav-cta {
  font-family: var(--font-body) !important;
  font-size: .72rem !important; font-weight: 600 !important;
  letter-spacing: .1em !important; text-transform: uppercase !important;
  background: linear-gradient(135deg, #1B2CC1, #7692FF) !important;
  border: none !important;
  border-radius: 100px !important;
  padding: 9px 22px !important;
  color: #ffffff !important;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(118,146,255,.35) !important;
  transition: all .3s !important;
  position: relative; overflow: hidden;
}
.nav-cta::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #7692FF, #ABD2FA);
  opacity: 0; transition: opacity .3s;
}
.nav-cta:hover::before { opacity: 1; }
.nav-cta:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(118,146,255,.5) !important;
}
.nav-cta span { position: relative; z-index: 1; }



/* ────────────────────────────────────────────────
   1. HERO  [DARK]
──────────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 130px var(--pad-x) 160px;
  background: #050d1a;
  overflow: hidden;
  perspective: 1200px;
}
#hero::before {
  content: '';
  position: absolute; top: 15%; right: 5%;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,.07) 0%, transparent 70%);
  animation: orb 9s ease-in-out infinite; pointer-events: none;
  z-index: 1;
}
@keyframes orb {
  0%,100% { transform: scale(1) translate(0,0); opacity: .5; }
  50%      { transform: scale(1.25) translate(-20px,25px); opacity: .8; }
}

/* Video Background & Overlay */
.hero-bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  filter: brightness(0.85) saturate(1.1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 50% 50%, rgba(5, 13, 26, 0.45) 0%, rgba(5, 13, 26, 0.8) 100%),
    linear-gradient(180deg, rgba(5, 13, 26, 0.5) 0%, rgba(5, 13, 26, 0.35) 50%, rgba(5, 13, 26, 0.85) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Particles */
#particles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 2; }

/* Interactive Flashlight Glow */
.hero-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(118, 146, 255, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(calc(var(--mouse-x, 50vw) - 300px), calc(var(--mouse-y, 50vh) - 300px));
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.5s ease;
  mix-blend-mode: screen;
}
#hero:hover .hero-glow {
  opacity: 1;
}

/* Hero content */
.hero-content {
  position: relative; 
  z-index: 3; 
  max-width: 880px;
}

.hero-eyebrow {
  font-family: var(--font-mono); font-size: .8rem;
  letter-spacing: .2em; text-transform: uppercase;
  color: #ABD2FA; margin-bottom: 28px;
  display: flex; align-items: center; gap: 14px;
  opacity: 0; animation: fadeup .8s var(--ease) .3s forwards;
}
.hero-eyebrow::before { content: ''; width: 36px; height: 1px; background: currentColor; }

.hero-title {
  margin-bottom: 26px;
  opacity: 0; animation: fadeup .9s var(--ease) .5s forwards;
}
.hero-t1 {
  display: block;
  font-family: var(--font-title);
  font-size: clamp(68px,13vw,190px);
  font-weight: 300; font-style: italic;
  color: var(--d-text); line-height: .85;
  letter-spacing: -.02em;
  text-shadow: 0 0 80px rgba(122,184,232,.12);
}
.hero-t2 {
  display: block;
  font-family: var(--font-title);
  font-size: clamp(40px,7.5vw,100px);
  font-weight: 600;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(122,184,232,.65);
  line-height: 1;
  margin-left: clamp(20px,5vw,80px);
  letter-spacing: .04em;
}

/* Fisheye Hover Effect for Hero Title */
.ht-char {
  display: inline-block;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: bottom center;
  position: relative;
  will-change: transform, color, text-shadow;
}
/* Level 0 */
.ht-char:hover {
  transform: scale(1.25) translateY(-6px);
  color: #ABD2FA;
  -webkit-text-stroke: 0px transparent;
  text-shadow: 0 0 24px rgba(171, 210, 250, 0.9), 0 0 40px rgba(171, 210, 250, 0.6);
  z-index: 10;
}
/* Level 1 */
.ht-char:hover + .ht-char,
.ht-char:has(+ .ht-char:hover) {
  transform: scale(1.12) translateY(-2px);
  color: rgba(171, 210, 250, 0.8);
  -webkit-text-stroke: 0px transparent;
  text-shadow: 0 0 16px rgba(171, 210, 250, 0.5);
  z-index: 5;
}
/* Level 2 */
.ht-char:hover + .ht-char + .ht-char,
.ht-char:has(+ .ht-char + .ht-char:hover) {
  transform: scale(1.04);
  color: rgba(171, 210, 250, 0.4);
  z-index: 2;
}
.hero-tagline {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.2rem,2.2vw,1.6rem);
  color: #E8F4FF; margin-bottom: 44px;
  opacity: 0; animation: fadeup .8s var(--ease) .7s forwards;
}
.hero-actions {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  opacity: 0; animation: fadeup .8s var(--ease) .9s forwards;
}
.hero-link {
  font-size: 1rem; color: #ABD2FA;
  letter-spacing: .04em; transition: all .3s;
  display: inline-flex; align-items: center; gap: 6px;
}
.hero-link:hover { color: var(--d-accent); gap: 10px; }

/* Scroll Progress Bar (Creative) */
#scroll-progress {
  position: absolute;
  bottom: -2px; /* Hang slightly below navbar */
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(118, 146, 255, 0) 0%, #7692FF 70%, #ABD2FA 100%);
  width: 0%;
  z-index: 10;
  transition: width 0.1s ease-out;
  border-radius: 0 4px 4px 0;
  box-shadow: 0 0 10px rgba(118, 146, 255, 0.4);
}

/* Starfish leading the progress */
.scroll-starfish {
  position: absolute;
  top: 50%;
  right: 0;
  /* Dịch đúng tâm ngôi sao vào giữa mép phải của thanh */
  transform: translateY(-50%) translateX(50%);
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 0 10px rgba(171, 210, 250, 0.8));
  display: flex;
  align-items: center;
  justify-content: center;
}
.scroll-starfish svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  /* Đưa animation vào svg để không ghi đè transform translate của thẻ cha */
  animation: sfSpin 8s linear infinite;
}

@keyframes fadeup { from { opacity:0; transform:translateY(28px); } to { opacity:1; transform:none; } }
@keyframes fadein { from { opacity:0; } to { opacity:1; } }

/* ────────────────────────────────────────────────
   2. GALLERY MARQUEE  [LIGHT]
──────────────────────────────────────────────── */
#gallery {
  padding: 45px 0 60px;
  background: linear-gradient(180deg, var(--l-bg) 0%, var(--l-bg2) 100%);
  overflow: hidden;
}
.gallery-hd {
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 0 var(--pad-x);
  max-width: var(--max-w); margin: 0 auto 28px;
}
.gallery-hd h2 { font-family: var(--font-title); font-size: clamp(2.2rem,4.5vw,3.6rem); font-weight: 300; color: var(--l-text); text-align: center; }

.marquee-wrap { overflow: hidden; padding: 6px 0; position: relative; }
.marquee-track {
  display: flex; gap: 18px; width: max-content;
  height: 290px;
  cursor: grab; user-select: none; padding: 0 var(--pad-x);
  align-items: center;
}
.marquee-track:active { cursor: grabbing; }

.mitem {
  height: 100%; width: auto;
  flex-shrink: 0; overflow: hidden; border-radius: 10px;
  position: relative;
  box-shadow: 0 8px 28px rgba(13,31,60,.1);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.mitem:hover {
  transform: translateY(-7px) scale(1.02);
  box-shadow: 0 20px 48px rgba(37,99,235,.15);
  z-index: 2;
}
.mitem img,
.mitem video {
  height: 100%; width: auto; max-width: none;
  display: block; object-fit: contain;
  pointer-events: none;
  transition: transform .5s ease;
}
.mitem:hover img,
.mitem:hover video { transform: scale(1.04); }

/* gradient fallback for missing images */
.mitem.c1 img { background: linear-gradient(135deg,#1a3a5c,#0d2a4a); }
.mitem.c2 img { background: linear-gradient(135deg,#a8d8f0,#7ab8e8); }
.mitem.c3 img { background: linear-gradient(135deg,#ddeeff,#a8d8f0); }
.mitem.c4 img { background: linear-gradient(135deg,#0a1628,#1a4a7a); }

/* ────────────────────────────────────────────────
   3. ABOUT  [DARK]
──────────────────────────────────────────────── */
#about {
  position: relative;
  padding: var(--sec-py) var(--pad-x);
  padding-bottom: calc(var(--sec-py) + 80px);
  background: #091540;
  overflow: hidden;
}

.about-bg-fluid {
  position: absolute;
  inset: 0;
  background: linear-gradient(-45deg, #091540, #1B2CC1, #3D518C, #7692FF, #ABD2FA, #1B2CC1, #091540);
  background-size: 400% 400%;
  animation: fluidGradient 16s ease infinite;
  mask-image: linear-gradient(to bottom, transparent 0, #000 70px, #000 calc(100% - 70px), transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 70px, #000 calc(100% - 70px), transparent 100%);
  pointer-events: none;
  z-index: 0;
}

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

#about::before {
  content: '';
  position: absolute;
  top: -15%; left: -10%;
  width: 65%; height: 75%;
  background: radial-gradient(circle, rgba(118, 146, 255, 0.45) 0%, rgba(171, 210, 250, 0.25) 45%, transparent 70%);
  filter: blur(85px);
  animation: shimmerOrb1 13s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 1;
}

#about::after {
  content: '';
  position: absolute;
  bottom: -15%; right: -5%;
  width: 70%; height: 80%;
  background: radial-gradient(circle, rgba(27, 44, 193, 0.5) 0%, rgba(61, 81, 140, 0.35) 45%, rgba(9, 21, 64, 0.2) 70%, transparent 80%);
  filter: blur(95px);
  animation: shimmerOrb2 16s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 1;
}

@keyframes shimmerOrb1 {
  0% { transform: translate(0, 0) scale(1); opacity: 0.65; }
  50% { transform: translate(12%, 18%) scale(1.22); opacity: 0.95; }
  100% { transform: translate(5%, -8%) scale(0.92); opacity: 0.7; }
}

@keyframes shimmerOrb2 {
  0% { transform: translate(0, 0) scale(1); opacity: 0.7; }
  50% { transform: translate(-18%, -14%) scale(1.25); opacity: 0.92; }
  100% { transform: translate(8%, 8%) scale(0.95); opacity: 0.65; }
}

.about-grid {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.3fr;
  gap: clamp(40px,7vw,100px); align-items: center;
  padding: 0 0 40px;
  position: relative; z-index: 2;
}
.about-img-col { position: relative; }
.about-frame {
  position: relative; display: inline-block; width: 100%;
}
.about-frame::before {
  content: ''; position: absolute;
  top: -16px; left: -16px; right: 16px; bottom: 16px;
  border: 1px solid rgba(171, 210, 250, 0.4); border-radius: 4px;
  pointer-events: none;
}
.about-frame::after {
  content: ''; position: absolute;
  bottom: -16px; right: -16px; top: 16px; left: 16px;
  border: 1px solid rgba(118, 146, 255, 0.4); border-radius: 4px;
  pointer-events: none;
}
.about-frame img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: top;
  border-radius: 2px; position: relative; z-index: 1;
  filter: saturate(.9);
  transition: filter .4s;
  background: linear-gradient(160deg,#091540,#1B2CC1);
  box-shadow: 0 20px 50px rgba(9, 21, 64, 0.6);
}
.about-frame:hover img { filter: saturate(1.05); }

.about-badge {
  position: absolute; bottom: -28px; right: -28px; z-index: 3;
  background: rgba(9, 21, 64, 0.85); backdrop-filter: blur(20px);
  border: 1px solid rgba(118, 146, 255, 0.4); border-radius: 14px;
  padding: 18px 22px; text-align: center; min-width: 120px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.badge-n { display: block; font-family: var(--font-display); font-size: 2.4rem; font-weight: 300; color: #a5f3fc; line-height: 1; margin-bottom: 4px; }
.badge-l { font-family: var(--font-mono); font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(226, 232, 240, 0.85); line-height: 1.4; }

.about-name {
  font-family: var(--font-display);
  font-size: clamp(2.8rem,5.5vw,4.5rem);
  font-weight: 300; font-style: italic;
  color: #ffffff; line-height: 1; margin-bottom: 28px;
  text-shadow: 0 2px 24px rgba(5, 13, 26, 0.8);
}
.about-bio {
  font-size: 1rem; line-height: 1.85;
  color: rgba(241, 245, 249, 0.94); margin-bottom: 20px;
  text-shadow: 0 1px 8px rgba(5, 13, 26, 0.7);
}
.about-bio strong { color: #ffffff; font-weight: 600; text-shadow: 0 0 10px rgba(165, 243, 252, 0.3); }
.about-bio em { color: #7dd3fc; font-style: italic; }

.about-stats {
  display: flex; gap: 36px; flex-wrap: wrap;
  margin: 36px 0; padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.stat-n { display: block; font-family: var(--font-display); font-size: 2.6rem; font-weight: 300; color: #a5f3fc; line-height: 1; margin-bottom: 4px; text-shadow: 0 2px 16px rgba(5, 13, 26, 0.7); }
.stat-l { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(226, 232, 240, 0.88); }

/* ────────────────────────────────────────────────
   4. TIMELINE  [DARK LUXURY ENHANCED]
──────────────────────────────────────────────── */
#timeline {
  position: relative;
  padding: var(--sec-py) var(--pad-x);
  padding-bottom: calc(var(--sec-py) + 90px);
  background: linear-gradient(160deg, #091540 0%, #0d1e48 40%, #172864 75%, #091540 100%);
  overflow: hidden;
}

/* Ambient glow orbs in background */
#timeline::before {
  content: ''; position: absolute;
  top: 10%; left: -8%;
  width: 550px; height: 550px; border-radius: 50%;
  background: radial-gradient(circle, rgba(118, 146, 255, 0.22) 0%, rgba(27, 44, 193, 0.12) 50%, transparent 75%);
  filter: blur(90px); pointer-events: none; z-index: 1;
  animation: tlOrbFloat1 15s ease-in-out infinite alternate;
}
#timeline::after {
  content: ''; position: absolute;
  bottom: 15%; right: -6%;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(171, 210, 250, 0.2) 0%, rgba(61, 81, 140, 0.15) 50%, transparent 80%);
  filter: blur(100px); pointer-events: none; z-index: 1;
  animation: tlOrbFloat2 18s ease-in-out infinite alternate;
}

@keyframes tlOrbFloat1 {
  0% { transform: translate(0, 0) scale(1); opacity: 0.7; }
  50% { transform: translate(70px, 50px) scale(1.25); opacity: 1; }
  100% { transform: translate(-30px, 80px) scale(0.95); opacity: 0.75; }
}
@keyframes tlOrbFloat2 {
  0% { transform: translate(0, 0) scale(1); opacity: 0.65; }
  50% { transform: translate(-80px, -60px) scale(1.3); opacity: 0.95; }
  100% { transform: translate(50px, -90px) scale(0.9); opacity: 0.7; }
}

/* Sparkling floating particles for Timeline */
.tl-sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.sp-item {
  position: absolute;
  pointer-events: none;
  animation: floatSparkle var(--dur, 10s) ease-in-out infinite alternate;
  animation-delay: var(--delay, 0s);
  will-change: transform, opacity;
}

.sp-star {
  font-size: clamp(14px, 1.8vw, 24px);
  color: #ABD2FA;
  text-shadow: 0 0 12px rgba(171, 210, 250, 0.9), 0 0 24px rgba(118, 146, 255, 0.7);
  opacity: 0.8;
  line-height: 1;
}

.sp-dot {
  width: clamp(5px, 0.6vw, 9px);
  height: clamp(5px, 0.6vw, 9px);
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 12px #ffffff, 0 0 24px #7692FF, 0 0 35px #1B2CC1;
  opacity: 0.85;
}

@keyframes floatSparkle {
  0% {
    transform: translateY(0) translateX(0) scale(0.7) rotate(0deg);
    opacity: 0.25;
  }
  33% {
    transform: translateY(-30px) translateX(20px) scale(1.3) rotate(45deg);
    opacity: 0.95;
    filter: drop-shadow(0 0 15px rgba(171, 210, 250, 0.9));
  }
  66% {
    transform: translateY(-55px) translateX(-20px) scale(0.85) rotate(90deg);
    opacity: 0.45;
  }
  100% {
    transform: translateY(-85px) translateX(25px) scale(1.4) rotate(135deg);
    opacity: 1;
    filter: drop-shadow(0 0 22px rgba(255, 255, 255, 1));
  }
}

.tl-hd { text-align: center; margin-bottom: 80px; position: relative; z-index: 2; }
.tl-hd .label {
  color: #7692FF; font-family: var(--font-mono);
  letter-spacing: .2em; font-size: 0.75rem; text-transform: uppercase;
}
.tl-hd .sec-title {
  color: #ffffff;
  text-shadow: 0 0 35px rgba(118, 146, 255, 0.35);
}
.tl-sub {
  font-family: var(--font-display); font-style: italic;
  color: rgba(171, 210, 250, 0.85); margin-top: 10px; font-size: 1.15rem;
}

.tl-wrap { max-width: 920px; margin: 0 auto; position: relative; padding: 0 var(--pad-x); z-index: 2; }

/* Glowing neon spine line with traveling laser beam */
.tl-spine {
  position: absolute; left: 50%; transform: translateX(-50%);
  width: 2px; top: 0; bottom: 0;
  background: linear-gradient(to bottom, transparent, rgba(118, 146, 255, 0.35) 10%, rgba(171, 210, 250, 0.6) 50%, rgba(118, 146, 255, 0.35) 90%, transparent);
  box-shadow: 0 0 10px rgba(118, 146, 255, 0.3);
}
.tl-spine::after {
  content: ''; position: absolute;
  top: 0; left: -1px; width: 4px; height: 140px;
  border-radius: 4px;
  background: linear-gradient(to bottom, transparent, #ABD2FA, #7692FF, transparent);
  box-shadow: 0 0 18px #ABD2FA, 0 0 30px #7692FF;
  animation: spineLaser 4.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes spineLaser {
  0% { top: -140px; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.tl-item {
  display: flex; align-items: stretch;
  gap: 0; margin-bottom: 64px; position: relative;
}
.tl-item:last-child { margin-bottom: 0; }
.tl-item:nth-child(even) { flex-direction: row-reverse; }

.tl-year {
  width: calc(50% - 40px); flex-shrink: 0;
  display: flex; align-items: center; justify-content: flex-start; gap: 32px;
  flex-direction: row-reverse;
}
.tl-item:nth-child(even) .tl-year { 
  flex-direction: row; 
}

.tl-year-text {
  font-family: var(--font-display);
  font-size: clamp(2.2rem,4.5vw,3.6rem);
  font-weight: 300; font-style: italic;
  background: linear-gradient(135deg, #ABD2FA 0%, #7692FF 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  opacity: .55; line-height: 1.1; 
  text-align: right;
  transition: opacity .4s, transform .4s;
  filter: drop-shadow(0 2px 10px rgba(27, 44, 193, 0.3));
}
.tl-item:nth-child(even) .tl-year-text { text-align: left; }
.tl-item:hover .tl-year-text { opacity: 1; transform: scale(1.04); }

.tl-year-img {
  width: 240px; height: 280px; flex-shrink: 0;
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 8px 24px rgba(9, 21, 64, 0.4);
  border: 1px solid rgba(171, 210, 250, 0.15);
  transition: transform 0.5s var(--bounce), box-shadow 0.5s ease, border-color 0.5s ease, opacity 0.5s ease;
  position: relative; z-index: 2;
  opacity: 0.7; filter: grayscale(40%);
}
.tl-year-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s var(--bounce);
}
.tl-item:hover .tl-year-img {
  transform: translateY(-8px) rotate(-2deg); opacity: 1; filter: grayscale(0);
  border-color: rgba(171, 210, 250, 0.6);
  box-shadow: 0 16px 36px rgba(118, 146, 255, 0.35);
}
.tl-item:nth-child(even):hover .tl-year-img { transform: translateY(-8px) rotate(2deg); }
.tl-item:hover .tl-year-img img { transform: scale(1.1); }

.tl-node {
  display: flex; flex-direction: column; align-items: center;
  width: 80px; flex-shrink: 0; padding-top: 12px; z-index: 3;
}
/* ── Timeline SVG Marine Icons ───────────────────────────────── */
.tl-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  filter: drop-shadow(0 0 8px rgba(118, 146, 255, 0.55));
  transition: filter .4s var(--bounce), transform .4s var(--bounce);
}
.tl-icon svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.tl-item:hover .tl-icon {
  filter: drop-shadow(0 0 18px rgba(171, 210, 250, 0.9)) drop-shadow(0 0 32px rgba(118, 146, 255, 0.6));
  transform: scale(1.22) rotate(6deg);
}

/* Starfish — nhẹ xoay khi idle */
.tl-icon--starfish {
  animation: sfSpin 12s linear infinite;
}
.tl-item:hover .tl-icon--starfish {
  animation: sfSpin 3s linear infinite;
  transform: scale(1.22);
}
@keyframes sfSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Jellyfish — lơ lửng lên xuống */
.tl-icon--jellyfish {
  animation: jfFloat 3.5s ease-in-out infinite;
}
.tl-item:hover .tl-icon--jellyfish {
  filter: drop-shadow(0 0 18px rgba(200, 230, 255, 0.95)) drop-shadow(0 0 32px rgba(118, 146, 255, 0.7));
}
@keyframes jfFloat {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-6px); }
}

/* Ray (cá đuối hiện tại) — pulse glow */
.tl-icon--now {
  animation: rayPulse 2.2s ease-in-out infinite;
}
.tl-icon--ray svg {
  /* xoay nhẹ khi hover */
  transition: transform .4s var(--bounce);
}
.tl-item:hover .tl-icon--now {
  animation: none;
  filter: drop-shadow(0 0 20px rgba(171, 210, 250, 1)) drop-shadow(0 0 40px rgba(27, 44, 193, 0.8));
}
@keyframes rayPulse {
  0%,100% { filter: drop-shadow(0 0 6px rgba(118,146,255,0.5)); }
  50%      { filter: drop-shadow(0 0 22px rgba(171,210,250,0.95)) drop-shadow(0 0 40px rgba(27,44,193,0.6)); }
}


/* Glassmorphic timeline cards */
.tl-body {
  flex: 1;
  background: rgba(13, 28, 64, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(118, 146, 255, 0.22);
  border-radius: 18px;
  padding: 28px 32px;
  margin-left: 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  transition: all .4s var(--ease);
}
.tl-item:nth-child(even) .tl-body {
  margin-left: 0; margin-right: 20px; text-align: right;
}
.tl-item:hover .tl-body {
  transform: translateY(-6px);
  background: rgba(17, 36, 82, 0.75);
  border-color: rgba(171, 210, 250, 0.55);
  box-shadow: 0 24px 50px rgba(9, 21, 64, 0.6), 0 0 30px rgba(118, 146, 255, 0.25);
}

.tl-tag {
  display: inline-block; font-family: var(--font-mono);
  font-size: .62rem; letter-spacing: .16em; text-transform: uppercase;
  color: #ABD2FA; font-weight: 600;
  background: linear-gradient(135deg, rgba(27, 44, 193, 0.45), rgba(61, 81, 140, 0.5));
  border: 1px solid rgba(171, 210, 250, 0.35);
  border-radius: 100px; padding: 4px 14px; margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(9, 21, 64, 0.4);
}
.tl-body h3 {
  font-family: var(--font-display); font-size: 1.45rem;
  font-weight: 500; color: #ffffff;
  margin-bottom: 12px; line-height: 1.3;
}
.tl-body p { font-size: .94rem; color: rgba(226, 232, 240, 0.88); line-height: 1.75; }
.tl-body strong { color: #ABD2FA; font-weight: 600; }
.tl-body em { color: #7692FF; font-style: italic; }

/* Timeline CTA Button */
.tl-cta-wrap {
  display: flex; justify-content: center;
  margin-top: 60px; position: relative; z-index: 2;
}
.btn-tl-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 38px; border-radius: 100px;
  background: linear-gradient(135deg, #1B2CC1 0%, #3D518C 50%, #7692FF 100%);
  background-size: 200% 200%;
  color: #ffffff; text-decoration: none;
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  letter-spacing: 0.04em;
  border: 1px solid rgba(171, 210, 250, 0.45);
  box-shadow: 0 10px 30px rgba(27, 44, 193, 0.45), 0 0 20px rgba(118, 146, 255, 0.2);
  transition: all 0.4s var(--ease);
}
.btn-tl-cta:hover {
  transform: translateY(-4px) scale(1.03);
  background-position: 100% 0%;
  border-color: #ABD2FA;
  box-shadow: 0 16px 40px rgba(118, 146, 255, 0.65), 0 0 30px rgba(171, 210, 250, 0.4);
}
.btn-tl-cta svg { transition: transform 0.3s ease; }
.btn-tl-cta:hover svg { transform: translateX(5px); }

/* ────────────────────────────────────────────────
   4.5 CLIENT LOGOS  [DARK]
──────────────────────────────────────────────── */
#clients {
  padding: 35px 0 45px;
  background: var(--d-bg);
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,.05);
}
.clients-hd {
  text-align: center;
  margin-bottom: 22px;
}
.clients-hd .label {
  font-size: .65rem;
  letter-spacing: .14em;
}
.clients-title {
  font-family: var(--font-title);
  font-size: clamp(1.4rem, 2.5vw, 2.1rem);
  font-weight: 300;
  color: var(--d-text);
  margin-top: 4px;
}

.logo-marquee-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  padding: 4px 0;
}

.logo-track {
  display: flex;
  gap: 16px;
  width: max-content;
  user-select: none;
}

.logo-track.slide-left {
  animation: logoScrollLeft 32s linear infinite;
}

.logo-track.slide-right {
  animation: logoScrollRight 32s linear infinite;
}

.logo-marquee-wrap:hover .logo-track {
  animation-play-state: paused;
}

@keyframes logoScrollLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-33.33333%); }
}

@keyframes logoScrollRight {
  0% { transform: translateX(-33.33333%); }
  100% { transform: translateX(0); }
}

.logo-card {
  height: 42px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.logo-card:hover {
  background: #ffffff;
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 8px 22px rgba(59, 130, 246, 0.3);
}

.logo-card img {
  max-height: 26px;
  max-width: 95px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.8);
  transition: filter 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.logo-card:hover img {
  filter: grayscale(0%) opacity(1);
}

/* ────────────────────────────────────────────────
   5. HOBBIES  [DARK]
──────────────────────────────────────────────── */
#hobbies {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px var(--pad-x);
  background: var(--d-bg);
  position: relative;
  overflow: hidden;
}

.hobbies-bg-vid {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  filter: brightness(0.65) contrast(1.1);
}

.hobbies-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: radial-gradient(circle at center, rgba(5, 13, 26, 0.45) 0%, rgba(5, 13, 26, 0.85) 100%),
              linear-gradient(to bottom, rgba(5, 13, 26, 0.75) 0%, transparent 20%, transparent 80%, rgba(5, 13, 26, 0.88) 100%);
  z-index: 1;
  pointer-events: none;
}

#hobbies .sec-hd-c,
#hobbies .hc-wrap {
  position: relative;
  z-index: 2;
}

.sec-hd-c { text-align: center; max-width: var(--max-w); margin: 0 auto 60px; padding: 0 var(--pad-x); }

.hobbies-grid {
  width: 100%; max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  align-items: center;
  padding: 0 var(--pad-x);
  position: relative; z-index: 2;
}
.sec-hd-l {
  text-align: left;
}
.hobbies-title {
  font-size: clamp(3.5rem, 8vw, 7rem);
  line-height: 1.05;
  margin-top: 24px;
  letter-spacing: -0.02em;
}
.hobbies-title .hl-italic {
  font-style: italic;
  font-weight: 300;
  color: #7692FF; /* Cornflower Blue accent */
  font-size: 0.85em;
  display: block;
  margin-top: 8px;
}
@media (max-width: 900px) {
  .hobbies-grid { grid-template-columns: 1fr; gap: 32px; }
  .sec-hd-l { text-align: center; }
}
/* Deprecated grid cards (if any) */
.hobby-card {
  padding: 36px 28px;
  background: rgba(255,255,255,.035);
  border: 1px solid var(--d-border); border-radius: 16px;
  transition: all .4s var(--ease); cursor: default; position: relative; overflow: hidden;
}
.hobby-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg,transparent,rgba(122,184,232,.4),transparent);
  opacity: 0; transition: opacity .4s;
}
.hobby-card:hover {
  background: rgba(122,184,232,.06);
  border-color: rgba(122,184,232,.3);
  transform: translateY(-8px);
  box-shadow: 0 24px 58px rgba(0,0,0,.35), 0 0 40px rgba(122,184,232,.06);
}
.hobby-card:hover::before { opacity: 1; }
.hobby-icon { font-size: 2rem; display: block; margin-bottom: 20px; transition: transform .4s var(--bounce); }
.hobby-card:hover .hobby-icon { transform: scale(1.18) rotate(-5deg); }
.hobby-title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 400; color: var(--d-text); margin-bottom: 10px; }
.hobby-desc { font-size: .875rem; color: var(--d-muted); line-height: 1.7; }

/* ────────────────────────────────────────────────
   6. ARTICLES  [LIGHT]
──────────────────────────────────────────────── */
/* ────────────────────────────────────────────────
   6. ARTICLES  [LIGHT - EDITORIAL & HIGH END]
──────────────────────────────────────────────── */
#articles {
  padding: var(--sec-py) var(--pad-x);
  padding-bottom: calc(var(--sec-py) + 90px);
  background: linear-gradient(135deg, #ABD2FA, #7692FF, #ABD2FA);
  background-size: 300% 300%;
  animation: waveGradient 15s ease infinite;
  position: relative;
  overflow: hidden; /* Hide glowing orbs bounds */
}

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

/* Ocean Theme: Fluid Blobs (Jellyfish/Light Caustics) */
.water-blobs {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none; overflow: hidden;
}
.water-blobs::before, .water-blobs::after {
  content: ''; position: absolute;
  filter: blur(30px); /* Giảm blur để thấy rõ hình khối hơn */
  animation: morphWater 15s ease-in-out infinite alternate;
  box-shadow: inset 0 0 60px rgba(255,255,255,0.4); /* Viền sáng ảo diệu */
  border: 1px solid rgba(255,255,255,0.1);
}
.water-blobs::before {
  width: 450px; height: 450px;
  background: rgba(255, 255, 255, 0.15); /* Trắng trong suốt */
  top: 50px; left: 10%;
}
.water-blobs::after {
  width: 550px; height: 550px;
  background: rgba(171, 210, 250, 0.25); /* Xanh lam nhạt */
  bottom: 0px; right: 5%;
  animation-duration: 20s;
  animation-direction: alternate-reverse;
}

@keyframes morphWater {
  0% {
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  50% {
    border-radius: 60% 40% 30% 70% / 50% 60% 40% 50%;
  }
  100% {
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    transform: translate(50px, 80px) scale(1.1) rotate(20deg);
  }
}

/* Ocean Theme: Rising Bubbles */
.water-bubbles {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none; overflow: hidden;
}
.water-bubbles .bubble {
  position: absolute; bottom: -50px;
  left: var(--left);
  width: var(--size); height: var(--size);
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.8), rgba(255,255,255,0.1));
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  box-shadow: inset 0 0 10px rgba(255,255,255,0.3);
  animation: riseBubble var(--dur) ease-in infinite;
  animation-delay: var(--delay);
}
@keyframes riseBubble {
  0% { transform: translateY(0) scale(1); opacity: 0; }
  10% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateY(-120vh) scale(1.5); opacity: 0; }
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(50px, 80px) scale(1.1); }
  66% { transform: translate(-40px, 40px) scale(0.9); }
  100% { transform: translate(0, 0) scale(1); }
}

#articles .art-hd, #articles .art-grid {
  position: relative;
  z-index: 1; /* Keep content above background orbs */
}
.art-hd {
  display: flex; align-items: flex-end; justify-content: space-between;
  max-width: 960px; margin: 0 auto 50px;
  padding: 0 var(--pad-x) 22px;
  border-bottom: 1px solid rgba(37,99,235,.12);
}
.art-hd .label {
  color: #091540; /* Deep Navy cho tương phản cao */
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  font-weight: 700;
}
.art-sub { 
  font-family: var(--font-display); 
  font-size: 1.5rem; /* To hơn */
  font-style: italic; 
  color: #091540; /* Deep Navy */
  font-weight: 500; /* Đậm hơn */
}

.art-grid {
  max-width: 1060px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  padding: 0 var(--pad-x);
}
.art-card {
  display: flex; flex-direction: column;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 16px 40px -10px rgba(13, 31, 60, 0.08), inset 0 1px 0 rgba(255,255,255,0.9);
  transition: all .5s cubic-bezier(0.16, 1, 0.3, 1);
  color: inherit; position: relative;
  grid-column: span 1; /* 2 default cards take 1 column each */
}

/* Featured Bento Card - Spans 2 cols, 2 rows */
.art-card--featured {
  grid-column: span 2;
  grid-row: span 2;
  flex-direction: column; /* Vertical layout for featured */
  align-items: stretch;
}
.art-card--featured .art-cover {
  width: calc(100% - 32px); flex: 1; min-height: 300px;
  margin: 16px; border-radius: 16px;
  overflow: hidden; position: relative; background: #0a1628;
}
.art-card--featured .art-body {
  width: 100%; padding: 0 32px 32px;
  flex-grow: 0; /* Do not grow, forcing the image cover to take the empty space */
}

/* Regular Cards - Fluid Morphing */
.art-card:not(.art-card--featured) .art-cover {
  width: calc(100% - 32px); aspect-ratio: 1/1; /* Square shape */
  margin: 16px; position: relative; overflow: hidden; background: #0a1628;
  /* Fluid asymmetric border radius */
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  transition: border-radius 0.6s ease-in-out, transform 0.5s;
}
.art-card:not(.art-card--featured):hover .art-cover {
  /* Morph to rounded rectangle */
  border-radius: 16px;
}

.art-card:hover {
  transform: translateY(-12px);
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(118, 146, 255, 0.4);
  box-shadow: 0 30px 60px -15px rgba(37, 99, 235, 0.15), inset 0 1px 0 rgba(255,255,255,1);
}

.art-cover img, .art-cover video {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  transition: transform .7s cubic-bezier(0.16, 1, 0.3, 1), filter .5s ease;
  background: linear-gradient(135deg,#0a1628,#1a3a5c);
  transform: scale(1.05); /* Bắt đầu to vừa */
}
.art-card:hover .art-cover img, .art-card:hover .art-cover video {
  transform: scale(1); /* Zoom out về nguyên bản khi hover để thấy full */
}
.art-ov {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,0) 40%, rgba(15,23,42,0.25) 100%);
  transition: opacity .4s ease;
}
.art-card:hover .art-ov {
  opacity: 0.85;
}

.art-badge {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  font-family: var(--font-body); font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #ffffff; background: rgba(13, 31, 60, 0.55);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: 4px 12px; border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.art-body {
  padding: 24px 26px 26px;
  display: flex; flex-direction: column; flex-grow: 1;
  justify-content: space-between;
  background: #ffffff;
}
.art-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-body); font-size: 0.68rem;
  font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.07);
  border: 1px solid rgba(37, 99, 235, 0.14);
  padding: 5px 12px; border-radius: 30px;
  width: fit-content; margin-bottom: 14px;
}
.art-title {
  font-family: var(--font-display);
  font-size: 1.35rem; font-weight: 600;
  color: #0f172a; line-height: 1.38;
  margin-bottom: 20px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  transition: color .3s ease;
}
.art-card:hover .art-title {
  color: #2563eb;
}
.art-link {
  font-family: var(--font-body);
  font-size: 0.82rem; font-weight: 600;
  color: #475569;
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  margin-top: auto;
  transition: all .3s ease;
}
.art-link-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(37, 99, 235, 0.07);
  color: #2563eb; font-size: 0.95rem; font-weight: 700;
  transition: all .35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.art-card:hover .art-link {
  color: #1d4ed8;
}
.art-card:hover .art-link-btn {
  background: #2563eb;
  color: #ffffff;
  transform: translateX(4px) scale(1.08);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

/* ────────────────────────────────────────────────
   7. MEDIA / VIDEO  [DARK]
──────────────────────────────────────────────── */
#media {
  padding: var(--sec-py) var(--pad-x);
  padding-bottom: calc(var(--sec-py) + 80px);
  background:
    radial-gradient(ellipse 70% 70% at 50% 0%, rgba(13,42,74,.75) 0%,transparent 60%),
    var(--d-bg);
}
.media-grid {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3,1fr); gap: 24px;
  padding: 0 var(--pad-x);
  perspective: 1200px; /* Thêm phối cảnh 3D */
  align-items: flex-start; /* Để các card có thể dịch chuyển dọc khác nhau */
}
.vid-card {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--d-border); border-radius: 16px;
  overflow: hidden; cursor: pointer;
  transition: all .6s cubic-bezier(0.2, 0.8, 0.2, 1); /* mượt hơn cho 3D */
}

/* 3D Cinematic Cascade Layout */
.media-grid .vid-card:nth-child(1) {
  transform: rotateY(12deg) translateZ(-10px);
}
.media-grid .vid-card:nth-child(2) {
  margin-top: 40px; /* Đẩy thẻ giữa xuống tạo hình V */
  transform: scale(1.05); /* To hơn chút xíu để tạo điểm nhấn */
  z-index: 2;
  position: relative;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.media-grid .vid-card:nth-child(3) {
  transform: rotateY(-12deg) translateZ(-10px);
}

.media-grid .vid-card:hover {
  border-color: rgba(122,184,232,.35);
  transform: rotateY(0deg) translateZ(30px) translateY(-10px) scale(1.02);
  box-shadow: 0 30px 60px rgba(0,0,0,.6), 0 0 50px rgba(122,184,232,.1);
  z-index: 10;
}
.vid-thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.vid-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.9) brightness(0.85);
  transition: all .5s ease;
  background: linear-gradient(135deg,#0a1628,#1a3a5c);
}
.vid-card:hover .vid-thumb img { filter: saturate(1.05) brightness(1); transform: scale(1.05); }

.reel-badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-body); font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: #ffffff; background: rgba(5, 13, 26, 0.65);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: 4px 12px; border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.play-btn {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(232,244,255,.12); backdrop-filter: blur(8px);
  border: 1.5px solid rgba(232,244,255,.25);
  display: flex; align-items: center; justify-content: center;
  transition: all .3s var(--bounce);
}
.vid-card:hover .play-btn {
  background: rgba(122,184,232,.22);
  border-color: rgba(122,184,232,.5);
  box-shadow: 0 0 30px rgba(122,184,232,.3);
  transform: translate(-50%,-50%) scale(1.1);
}
.play-icon {
  width: 0; height: 0; border-style: solid;
  border-width: 8px 0 8px 15px;
  border-color: transparent transparent transparent rgba(232,244,255,.9);
  margin-left: 4px;
}
.vid-body { padding: 18px 22px 22px; }
.vid-title { font-family: var(--font-display); font-size: 1.15rem; color: var(--d-text); margin-bottom: 6px; }
.vid-meta { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .1em; color: var(--d-muted); }

/* ────────────────────────────────────────────────
   8. LE'MONET  [LIGHT]
──────────────────────────────────────────────── */
#lemonet {
  padding: var(--sec-py) var(--pad-x);
  padding-bottom: calc(var(--sec-py) + 80px);
  background: linear-gradient(135deg,#eef8ff 0%,var(--l-bg) 50%,#e4f4ff 100%);
}
.lm-grid {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(40px,7vw,100px); align-items: center;
  padding: 0 var(--pad-x);
}
.lm-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem,5vw,4.8rem);
  font-weight: 300; color: var(--l-text); line-height: 1.05; margin-bottom: 24px;
}
.lm-title em { font-weight: 500; font-style: italic; color: var(--l-accent); }
.lm-desc { font-size: 1rem; line-height: 1.85; color: var(--l-muted); margin-bottom: 18px; }
.lm-desc strong { color: var(--l-text); font-weight: 600; }

.lm-social-links { display: flex; gap: 16px; margin-top: 28px; }
.lm-slink {
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: #ffffff; color: #1B2CC1;
  box-shadow: 0 4px 14px rgba(9, 21, 64, 0.08);
  border: 1px solid rgba(27, 44, 193, 0.12);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.lm-slink svg { width: 22px; height: 22px; }
.lm-slink:hover {
  transform: translateY(-4px);
  background: linear-gradient(135deg, #1B2CC1, #7692FF);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(118, 146, 255, 0.3);
  border-color: transparent;
}

.lm-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
  padding-bottom: 24px;
}
.cafe-img {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(171, 210, 250, 0.35);
  box-shadow: 0 14px 36px rgba(9, 21, 64, 0.12);
  transition: all .45s var(--ease);
  background: #091540;
}
.cafe-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .6s var(--ease), filter .4s ease;
}
.cafe-img:hover {
  border-color: #7692FF;
  box-shadow: 0 20px 48px rgba(27, 44, 193, 0.25), 0 0 25px rgba(118, 146, 255, 0.3);
}
.cafe-img:hover img {
  transform: scale(1.08);
}

/* Staggered offsets for 4 images (so le) */
.cafe-img.lm-stagger-1 { transform: translateY(0); }
.cafe-img.lm-stagger-2 { transform: translateY(36px); }
.cafe-img.lm-stagger-3 { transform: translateY(-14px); }
.cafe-img.lm-stagger-4 { transform: translateY(22px); }

.cafe-img.lm-stagger-1:hover { transform: translateY(-8px) scale(1.03); }
.cafe-img.lm-stagger-2:hover { transform: translateY(26px) scale(1.03); }
.cafe-img.lm-stagger-3:hover { transform: translateY(-22px) scale(1.03); }
.cafe-img.lm-stagger-4:hover { transform: translateY(14px) scale(1.03); }

/* ────────────────────────────────────────────────
   9. PRODUCTS — NETFLIX CAROUSEL  [DARK]
──────────────────────────────────────────────── */
#products {
  padding: var(--sec-py) 0 var(--sec-py);
  background: var(--d-bg2);
  position: relative;
  overflow: hidden;
}

.courses-bg-vid {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  filter: brightness(0.65) contrast(1.1);
}

.courses-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: radial-gradient(circle at center, rgba(5, 13, 26, 0.4) 0%, rgba(5, 13, 26, 0.85) 100%),
              linear-gradient(to bottom, rgba(5, 13, 26, 0.75) 0%, rgba(5, 13, 26, 0.5) 50%, rgba(5, 13, 26, 0.9) 100%);
  z-index: 1;
  pointer-events: none;
}

#products .prd-header,
#products .prd-carousel-outer,
#products .prd-arrows {
  position: relative;
  z-index: 2;
}

/* Header */
.prd-header {
  padding: 0 var(--pad-x);
  margin-bottom: clamp(36px, 5vw, 60px);
}
.prd-main-title {
  font-family: var(--font-title);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 400; font-style: normal;
  background: linear-gradient(135deg, #ffffff 20%, var(--d-accent) 80%, var(--dreamy) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0px 8px 32px rgba(168, 216, 240, 0.4);
  line-height: 1.15;
  margin-bottom: 16px;
}
.prd-sub-label { font-family: var(--font-display); font-style: italic; color: var(--d-muted); font-size: .95rem; }

/* Carousel outer — overflow clips side items */
.prd-carousel-outer {
  width: 100%;
  overflow: hidden;
  cursor: default;
}

/* Track — flex row, translated to center active */
.prd-track {
  display: flex;
  gap: 16px;
  height: clamp(500px, 60vw, 640px);
  padding-left: 0;
  padding-right: 0;
  transition: transform .62s cubic-bezier(.4,0,.2,1);
  will-change: transform;
  user-select: none;
}

/* Each item */
.prd-item {
  flex: 0 0 160px;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: flex .55s cubic-bezier(.4,0,.2,1);
}
.prd-item:focus-visible { outline: 2px solid var(--d-accent); outline-offset: 3px; }

/* Hover non-active: slight grow hint */
.prd-item:not(.active):hover { flex: 0 0 180px; }

/* Active item expands — much wider so image is clearly visible */
.prd-item.active { flex: 0 0 min(680px, 62vw); cursor: default; }

/* Image */
.prd-item img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .7s var(--ease), filter .5s;
  filter: brightness(.5) saturate(.65);
}
.prd-item:not(.active):hover img { filter: brightness(.62) saturate(.8); }
.prd-item.active img {
  transform: scale(1.04);
  filter: brightness(.7) saturate(.9);
}

/* Bottom gradient */
.prd-grad {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, transparent 30%, rgba(5,13,26,.88) 100%);
  transition: background .5s;
}
.prd-item.active .prd-grad {
  background:
    linear-gradient(to right, rgba(5,13,26,0) 40%, rgba(5,13,26,.15) 100%),
    linear-gradient(to bottom, transparent 20%, rgba(5,13,26,.92) 100%);
}

/* Type badge — top left */
.prd-badge-wrap {
  position: absolute; top: 18px; left: 18px; z-index: 3;
}
.prd-badge {
  display: inline-block; padding: 4px 12px; border-radius: 100px;
  font-family: var(--font-mono); font-size: .56rem;
  letter-spacing: .16em; text-transform: uppercase; font-weight: 700;
}
.prd-badge.kh {
  background: rgba(201,168,76,.15);
  border: 1px solid rgba(201,168,76,.45);
  color: #c9a84c;
}
.prd-badge.cn {
  background: rgba(122,184,232,.12);
  border: 1px solid rgba(122,184,232,.38);
  color: var(--d-accent);
}

/* ── Collapsed name (shows when not active) ── */
.prd-col-name {
  position: absolute; bottom: 22px;
  left: 14px; right: 14px;
  font-family: var(--font-display);
  font-size: 1rem; font-style: italic; font-weight: 400;
  color: rgba(232,244,255,.88); line-height: 1.3; text-align: center;
  opacity: 1; transition: opacity .28s; z-index: 2;
  pointer-events: none;
}
.prd-item.active .prd-col-name { opacity: 0; }

/* ── Expanded info panel (fades in when active) ── */
.prd-info-col {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: clamp(24px, 3.5vw, 52px);
  display: flex; flex-direction: column; gap: 12px;
  opacity: 0; pointer-events: none; z-index: 3;
  transform: translateY(22px);
  transition: opacity .42s .08s, transform .42s .08s var(--bounce);
}
.prd-item.active .prd-info-col {
  opacity: 1; pointer-events: all; transform: none;
}

.prd-num {
  font-family: var(--font-mono); font-size: .68rem;
  letter-spacing: .2em; color: var(--d-accent); opacity: .65;
}
.prd-exp-name {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.2vw, 3.2rem);
  font-weight: 300; font-style: italic;
  color: var(--d-text); line-height: 1.05;
}
.prd-exp-desc {
  font-size: .9rem; color: rgba(232,244,255,.75);
  line-height: 1.72; max-width: 400px;
}
.prd-cta {
  align-self: flex-start;
  font-size: .88rem; padding: 13px 32px; margin-top: 6px;
}

/* ── Prev / Next arrows ── */
.prd-arrows {
  display: flex; gap: 12px;
  justify-content: center; margin-top: 28px;
  padding: 0 var(--pad-x);
}
.prd-arrow {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(122,184,232,.2);
  color: var(--d-muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .25s var(--ease);
}
.prd-arrow:hover {
  background: rgba(122,184,232,.15);
  border-color: rgba(122,184,232,.4);
  color: var(--d-accent); transform: scale(1.08);
}
.prd-arrow svg { width: 17px; height: 17px; }
.prd-arrow:disabled { opacity: .25; pointer-events: none; }

/* ── Dot indicators ── */
.prd-dots {
  display: flex; gap: 7px; align-items: center; justify-content: center;
  margin-top: 22px;
}
.prd-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(122,184,232,.22);
  border: none; cursor: pointer; padding: 0;
  transition: all .3s var(--ease);
}
.prd-dot.active {
  background: var(--d-accent); transform: scale(1.45);
  box-shadow: 0 0 8px rgba(122,184,232,.45);
}

.prd-desc-sub { font-family: var(--font-display); font-style: italic; color: var(--d-muted); margin-top: 8px; }

/* ────────────────────────────────────────────────
   10. FOOTER / SOCIAL  [DARK]
──────────────────────────────────────────────── */
#social {
  padding: 90px var(--pad-x) 52px;
  background: linear-gradient(180deg, #091540 0%, #060e2c 60%, #03081a 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.footer-big {
  font-family: var(--font-title);
  font-size: clamp(3.5rem,9vw,8rem);
  font-weight: 300; font-style: italic;
  line-height: 1; margin-bottom: 14px; letter-spacing: -.02em;
  display: flex; justify-content: center; cursor: default;
}
.fb-char {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(171, 210, 250, 0.45);
  text-shadow: 0 0 40px rgba(118, 146, 255, 0.35);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-block;
  transform-origin: bottom center;
}

/* ── Mức 0: Chữ cái đang được trỏ chuột vào ── */
.fb-char:hover {
  transform: scale(1.4) translateY(-10px);
  color: #a5f3fc;
  -webkit-text-stroke: 0px transparent;
  text-shadow: 0 0 30px rgba(165, 243, 252, 0.9), 0 0 60px rgba(165, 243, 252, 0.6);
  z-index: 10; position: relative;
}

/* ── Mức 1: Các chữ cái kề sát (Bên phải & Bên trái) ── */
.fb-char:hover + .fb-char,
.fb-char:has(+ .fb-char:hover) {
  transform: scale(1.2) translateY(-4px);
  color: rgba(165, 243, 252, 0.6);
  -webkit-text-stroke: 1.5px rgba(165, 243, 252, 0.8);
  text-shadow: 0 0 20px rgba(165, 243, 252, 0.5);
  z-index: 5; position: relative;
}

/* ── Mức 2: Các chữ cái cách 1 kí tự (Bên phải & Bên trái) ── */
.fb-char:hover + .fb-char + .fb-char,
.fb-char:has(+ .fb-char + .fb-char:hover) {
  transform: scale(1.08) translateY(-1px);
  color: rgba(165, 243, 252, 0.15);
  -webkit-text-stroke: 1.5px rgba(165, 243, 252, 0.5);
  z-index: 2; position: relative;
}
.footer-role {
  font-family: var(--font-mono); font-size: .68rem;
  letter-spacing: .22em; text-transform: uppercase;
  color: #ABD2FA; margin-bottom: 56px;
}
.social-row {
  display: flex; justify-content: center; gap: 28px;
  margin-bottom: 56px; flex-wrap: wrap;
}
.slink {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: rgba(232, 244, 255, 0.85); transition: all .3s var(--ease);
}
.slink:hover { color: #ABD2FA; transform: translateY(-6px); }
.sicon {
  width: 54px; height: 54px; border-radius: 16px;
  background: rgba(13, 28, 64, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(171, 210, 250, 0.3);
  display: flex; align-items: center; justify-content: center;
  transition: all .35s var(--ease);
  box-shadow: 0 8px 20px rgba(9, 21, 64, 0.4);
}
.sicon svg { width: 22px; height: 22px; }
.slink:hover .sicon {
  background: linear-gradient(135deg, #1B2CC1, #7692FF);
  border-color: #ABD2FA;
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(118, 146, 255, 0.55), 0 0 20px rgba(171, 210, 250, 0.4);
  transform: translateY(-4px) scale(1.06);
}
.sname { font-family: var(--font-mono); font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; }
.footer-div { width: 100%; height: 1px; background: rgba(171,210,250,.15); margin: 0 0 24px; }
.footer-copy { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .08em; color: rgba(232,244,255,.4); }

/* ── STARS (dark sections) ── */
.star {
  position: absolute; width: 2px; height: 2px;
  background: rgba(171,210,250,.6); border-radius: 50%;
  animation: twinkle ease-in-out infinite; pointer-events: none; z-index: 0;
}
@keyframes twinkle { 0%,100%{opacity:.15;transform:scale(.8);} 50%{opacity:.7;transform:scale(1.3);} }

/* ── SCROLL-TO-TOP ── */
.scroll-top {
  position: fixed; bottom: 32px; right: 32px;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(13, 28, 64, 0.75); backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(171, 210, 250, 0.4);
  color: #ABD2FA; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 999;
  opacity: 0; transform: translateY(20px);
  transition: all .4s var(--ease);
  box-shadow: 0 8px 24px rgba(9, 21, 64, 0.4);
}
.scroll-top.show { opacity: 1; transform: translateY(0); }
.scroll-top:hover {
  background: linear-gradient(135deg, #1B2CC1, #7692FF);
  border-color: #ABD2FA;
  color: #ffffff;
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 12px 30px rgba(118, 146, 255, 0.6);
}

/* ════════════════════════════════════════════════
   SECTION 5 — HOBBIES POLAROID CAROUSEL
═══════════════════════════════════════════════ */
#hobbies {
  padding: var(--sec-py) var(--pad-x);
  display: flex; flex-direction: column; align-items: center;
}

.sec-hd-c {
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.sec-hd-c .label { display: block; text-align: center; }
.sec-hd-c .sec-title { color: var(--d-text); }

/* ── Wrap + Stage ── */
.hc-wrap {
  display: flex; flex-direction: column; align-items: center;
  gap: 36px; width: 100%;
}

.hc-stage {
  position: relative;
  width: min(380px, 90vw);
  height: 620px; /* Fixed height to fit 4:5 image + caption */
  perspective: 1500px;
}

/* ── Individual Card ── */
.hc-card {
  position: absolute;
  left: 50%; top: 50%;
  width: 100%; height: 100%;
  transform: translate(-50%, -50%);
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.2, 0, 0.2, 1), width 0.5s cubic-bezier(0.2, 0, 0.2, 1), opacity 0.5s;
  border-radius: 18px;
  cursor: grab;
  will-change: transform;
}
.hc-card.dragging {
  transition: none;
  cursor: grabbing;
}
.hc-card.flipped {
  width: min(720px, 90vw);
  transform: translate(-50%, -50%) rotateY(180deg) !important;
  z-index: 100 !important;
  cursor: default;
}
.hc-card.fly-out {
  opacity: 0;
  pointer-events: none;
}

/* ── FRONT (Polaroid) ── */
.hc-front, .hc-back {
  position: absolute; inset: 0;
  border-radius: 18px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.hc-front {
  background: #0a1628;
  display: flex; flex-direction: column;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0,0,0,.5), inset 0 0 0 1px rgba(122,184,232,.15);
  pointer-events: none; /* Let drag events hit the card wrapper */
}

.pol-img {
  position: relative;
  flex: none; /* Do not stretch */
  aspect-ratio: 4 / 5;
  overflow: hidden;
  margin: 14px 14px 0;
  border-radius: 10px;
  background: #081526;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pol-tiktok-badge {
  position: absolute;
  top: 10px; right: 10px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  color: #ffffff;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  z-index: 5;
  pointer-events: auto;
}
.pol-tiktok-badge:hover {
  background: #000000;
  color: #25f4ee;
  transform: scale(1.15);
  box-shadow: 0 4px 16px rgba(37, 244, 238, 0.45);
}
.pol-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .5s var(--ease);
}
.hc-card:hover .pol-img img { transform: scale(1.04); }

.pol-caption {
  padding: 16px 18px 20px;
  background: transparent;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  justify-content: center;
}
.pol-eyebrow {
  color: #7692FF;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.pol-title {
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 500;
  color: #e8f4ff; margin-bottom: 14px;
  line-height: 1.3;
}
.pol-out-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: #ABD2FA; font-weight: 500; font-size: 0.95rem;
  text-decoration: none; transition: color 0.2s;
  pointer-events: auto;
}
.pol-out-link:hover { color: #ffffff; }

.pol-more-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 24px; border-radius: 100px;
  background: rgba(118, 146, 255, 0.15); color: #ABD2FA;
  border: 1px solid rgba(118, 146, 255, 0.3);
  font-family: var(--font-body); font-size: .8rem;
  font-weight: 500; letter-spacing: .04em;
  cursor: pointer;
  transition: all .25s, transform .2s var(--bounce);
  pointer-events: auto; /* Re-enable clicks on button */
}
.pol-more-btn:hover {
  background: rgba(118, 146, 255, 0.3);
  transform: scale(1.05);
}

/* ── BACK (Detail card) ── */
.hc-back {
  transform: rotateY(180deg);
  background: linear-gradient(145deg, #0a1e38, #071426);
  border: 1px solid rgba(122,184,232,.18);
  box-shadow: 0 24px 64px rgba(0,0,0,.55), inset 0 0 60px rgba(122,184,232,.04);
  display: flex; flex-direction: row;
  overflow: hidden;
  pointer-events: auto;
}

.det-img-wrap {
  position: relative;
  background: #040b17;
  width: 58%;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.det-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: brightness(.95) saturate(1);
}
.det-img-wrap::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to right, transparent 75%, #0a1e38 100%);
  pointer-events: none;
}

.det-body {
  width: 42%;
  flex: none;
  padding: 24px 20px 24px 14px;
  display: flex; flex-direction: column; gap: 10px; justify-content: center;
  position: relative;
  overflow-y: auto;
}
.det-close {
  position: absolute; top: 12px; right: 14px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(122,184,232,.2);
  color: var(--d-muted); cursor: pointer;
  width: 28px; height: 28px; border-radius: 50%;
  font-size: .7rem; display: flex; align-items: center; justify-content: center;
  transition: all .2s;
  z-index: 10;
}
.det-close:hover { background: rgba(122,184,232,.2); color: #fff; }

.det-icon { font-size: 1.4rem; line-height: 1; }
.det-title {
  font-family: var(--font-display);
  font-size: 1.15rem; font-weight: 500;
  color: var(--d-text); line-height: 1.25;
}
.det-text {
  font-size: .8rem; color: rgba(232,244,255,.85);
  line-height: 1.55; flex: 1;
}
.det-tiktok-btn {
  display: inline-flex; align-items: center; gap: 6px;
  align-self: flex-start;
  margin: 4px 0 6px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  color: #7dd3fc;
  font-size: 0.78rem; font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  pointer-events: auto;
}
.det-tiktok-btn:hover {
  background: #000000;
  color: #fe2c55;
  border-color: #fe2c55;
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(254, 44, 85, 0.4);
}
.pol-insta-badge:hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #ffffff;
  border-color: rgba(255,255,255,0.6);
  box-shadow: 0 4px 16px rgba(220, 39, 67, 0.45);
}
.det-insta-btn:hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #ffffff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(220, 39, 67, 0.45);
}
.det-tags {
  display: flex; flex-wrap: wrap; gap: 5px;
  margin-top: 2px;
}
.det-tag {
  padding: 3px 8px; border-radius: 100px;
  background: rgba(122,184,232,.1);
  border: 1px solid rgba(122,184,232,.2);
  font-family: var(--font-mono); font-size: .58rem;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--d-accent);
}

/* ── Navigation ── */
.hc-nav {
  display: flex; align-items: center; gap: 20px;
}
.hc-arrow {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(122,184,232,.2);
  color: var(--d-muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .25s var(--ease);
}
.hc-arrow:hover {
  background: rgba(122,184,232,.15);
  border-color: rgba(122,184,232,.4);
  color: var(--d-accent);
  transform: scale(1.1);
}
.hc-arrow svg { width: 18px; height: 18px; }
.hc-arrow:disabled { opacity: .3; cursor: default; pointer-events: none; }

.hc-dots { display: flex; gap: 8px; align-items: center; }
.hc-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(122,184,232,.25);
  border: none; cursor: pointer; padding: 0;
  transition: all .3s var(--ease);
}
.hc-dot.active {
  background: var(--d-accent);
  transform: scale(1.35);
  box-shadow: 0 0 10px rgba(122,184,232,.45);
}

.hc-counter {
  font-family: var(--font-mono); font-size: .7rem;
  letter-spacing: .12em; color: var(--d-muted);
  display: flex; gap: 4px; align-items: baseline;
}
#hcCur { color: var(--d-accent); font-weight: 700; }
.hc-sep { margin: 0 1px; }

.hc-hint {
  font-family: var(--font-mono); font-size: .6rem;
  letter-spacing: .12em; text-transform: uppercase;
  color: rgba(122,184,232,.3); text-align: center;
}

/* ── Slide-out animation ── */
@keyframes hcSlideLeft {
  from { opacity: 1; transform: translateX(0) rotate(0); }
  to   { opacity: 0; transform: translateX(-70px) rotate(-5deg); }
}
@keyframes hcSlideRight {
  from { opacity: 1; transform: translateX(0) rotate(0); }
  to   { opacity: 0; transform: translateX(70px) rotate(5deg); }
}
@keyframes hcEnterLeft {
  from { opacity: 0; transform: translateX(60px) rotate(3deg); }
  to   { opacity: 1; transform: translateX(0) rotate(0); }
}
@keyframes hcEnterRight {
  from { opacity: 0; transform: translateX(-60px) rotate(-3deg); }
  to   { opacity: 1; transform: translateX(0) rotate(0); }
}
.hc-exit-l  { animation: hcSlideLeft  .35s var(--ease) forwards; }
.hc-exit-r  { animation: hcSlideRight .35s var(--ease) forwards; }
.hc-enter-l { animation: hcEnterLeft  .38s var(--ease) .06s both; }
.hc-enter-r { animation: hcEnterRight .38s var(--ease) .06s both; }

/* ────────────────────────────────────────────────
   RESPONSIVE
──────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .art-grid    { grid-template-columns: repeat(2,1fr); }
  .art-card--featured { grid-column: span 2; flex-direction: column; }
  .art-card--featured .art-cover { width: calc(100% - 32px); aspect-ratio: 4/3; }
  .art-card--featured .art-body { width: 100%; padding: 0 24px 24px; }
  .hobbies-grid{ grid-template-columns: repeat(2,1fr); }
  .media-grid  { grid-template-columns: repeat(2,1fr); }
  .prod-grid   { grid-template-columns: repeat(2,1fr); }
  .about-grid  { grid-template-columns: 1fr; max-width: 580px; margin: 0 auto; }
  .lm-grid     { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .about-badge  { right: 0; bottom: -24px; }
  .tl-spine     { display: none; }
  .tl-item, .tl-item:nth-child(even) { flex-direction: column; gap: 16px; }
  .tl-year, .tl-item:nth-child(even) .tl-year { width: 100%; justify-content: flex-start; gap: 16px; flex-direction: row; margin-bottom: 12px; }
  .tl-year-text, .tl-item:nth-child(even) .tl-year-text { width: auto; text-align: left; padding: 0; font-size: 2rem; opacity: .5; }
  .tl-year-img { width: 140px; height: 160px; border-radius: 8px; }
  .tl-body, .tl-item:nth-child(even) .tl-body { margin: 0; padding: 20px 22px; text-align: left; }
  .gallery-hd { justify-content: center; text-align: center; align-items: center; }
  .art-hd { flex-direction: column; align-items: flex-start; gap: 8px; }
  .art-grid    { grid-template-columns: 1fr; }
  .art-card { grid-column: span 1; }
  .art-card--featured { grid-column: span 1; }
  .hobbies-grid{ grid-template-columns: 1fr; }
  .media-grid  { grid-template-columns: 1fr; }
  .prod-grid   { grid-template-columns: 1fr; }
  .lm-gallery  { grid-template-columns: 1fr 1fr; grid-template-rows: 160px 160px; }
  .cafe-img.tall { grid-row: span 1; }
  .social-row  { gap: 16px; }
}
@media (max-width: 480px) {
  .about-stats { gap: 20px; }
  .lm-gallery  { grid-template-columns: 1fr; grid-template-rows: auto; }
  .cafe-img    { height: 200px; }
  .scroll-top  { bottom: 20px; right: 20px; }
}

/* ── FIREFLY CURSOR ── */
#cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 14px; height: 14px;
  background: #ffffff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  box-shadow: 0 0 10px 4px rgba(171, 210, 250, 0.9), 
              0 0 30px 12px rgba(118, 146, 255, 0.7);
  will-change: transform;
  mix-blend-mode: screen;
  opacity: 0; /* Hidden by default until mouse moves */
  transition: opacity 0.5s ease;
}
body.mouse-moved #cursor-glow {
  opacity: 1;
}
/* Hide on mobile devices */
@media (hover: none) and (pointer: coarse) {
  #cursor-glow { display: none !important; }
}
