    /* ==============================
       SMOOTH SCROLL OFFSET (navbar)
    ============================== */
    section { scroll-margin-top: 70px; }

    /* ==============================
       HERO
    ============================== */
/* ...existing code... */

/* ==============================
   HERO — SPLIT SCREEN
============================== */
.hero-section {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding: 6rem clamp(1.5rem, 6vw, 7rem);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(124,58,237,0.1) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 20%, rgba(0,212,255,0.07) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 90%, rgba(79,142,247,0.06) 0%, transparent 50%),
    var(--dark);
}

/* grid bg */
.hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.012) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

/* particles canvas */
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ===== LEFT ===== */
.hero-left {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}



/* status badge */
.hero-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.85rem 0.3rem 0.5rem;
  border-radius: 8px;
  border: 1px solid rgb(0, 153, 255);
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(8px);
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 2px;
  text-transform: uppercase;
  width: fit-content;
  position: relative;
  overflow: hidden;
}

.hero-status-badge::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(34,197,94,0.06), transparent);
  pointer-events: none;
}

/* ===== GLITCH NAME ===== */
.hero-name {
  font-size: clamp(4.5rem, 9vw, 8rem);
  font-weight: 900;
  letter-spacing: -4px;
  line-height: 1;
  position: relative;
  width: fit-content;

  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* glitch pseudo layers */
.hero-name::before,
.hero-name::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: inherit;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-name::before {
  color: var(--cyan);
  -webkit-text-fill-color: var(--cyan);
  background: none;
  animation: glitchTop 4s infinite;
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
  opacity: 0;
}

.hero-name::after {
  color: var(--pink);
  -webkit-text-fill-color: var(--pink);
  background: none;
  animation: glitchBot 4s infinite;
  clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
  opacity: 0;
}

@keyframes glitchTop {
  0%,88%,100% { opacity:0; transform:none; }
  90%  { opacity:0.8; transform:translate(-3px, -2px) skewX(-3deg); }
  92%  { opacity:0;   transform:none; }
  94%  { opacity:0.6; transform:translate(3px, 1px) skewX(2deg); }
  96%  { opacity:0;   transform:none; }
}

@keyframes glitchBot {
  0%,88%,100% { opacity:0; transform:none; }
  90%  { opacity:0.6; transform:translate(3px, 2px) skewX(2deg); }
  92%  { opacity:0;   transform:none; }
  94%  { opacity:0.8; transform:translate(-2px, -1px) skewX(-3deg); }
  96%  { opacity:0;   transform:none; }
}

/* ===== TYPEWRITER ROLE ===== */
.hero-role-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 700;
  color: var(--text-dim);
}

.hero-role-prefix {
  color: var(--text-dim);
  white-space: nowrap;
}

.hero-role-typed {
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  min-width: 2px;
}

.hero-role-cursor {
  color: var(--purple);
  animation: blink 0.8s step-end infinite;
  font-weight: 300;
  font-size: 1.4em;
  line-height: 1;
}

/* subtitle */
.hero-subtitle {
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.85;
  max-width: 480px;
}

/* buttons */
.hero-btns {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

/* stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.hero-stat { text-align: center; }

.hero-stat-num {
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1.2;
}

.hero-stat-label {
  color: var(--text-dim);
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 0.2rem;
}

.hero-stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
  flex-shrink: 0;
}

/* ===== FLOAT BADGES — แก้ไม่ให้เลยจอ ===== */
.hero-right {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 5rem; /* เพิ่ม padding รอบๆ ให้ badge มีที่อยู่ */
}

/* outer profile container */
.hero-profile-outer {
  position: relative;
  width: min(300px, 55vw);
  height: min(300px, 55vw);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* glow ring รอบนอกสุด */
.hero-profile-outer::before {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: conic-gradient(
    rgba(184,71,245,0.15),
    rgba(0,212,255,0.1),
    rgba(245,71,168,0.12),
    rgba(184,71,245,0.15)
  );
  animation: ringRotate 8s linear infinite;
  filter: blur(12px);
}

/* scan line animation */
.hero-profile-scan {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  overflow: hidden;
  pointer-events: none;
}

.hero-profile-scan::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0,212,255,0.5), transparent);
  animation: scanLine 3s linear infinite;
}

/* corner brackets */
.hero-corner {
  position: absolute;
  width: 22px; height: 22px;
  border-color: rgba(0,212,255,0.5);
  border-style: solid;
  z-index: 3;
  transition: border-color 0.3s ease;
}

.hero-profile-outer:hover .hero-corner {
  border-color: rgba(0,212,255,0.9);
}

.hc-tl { top:-8px; left:-8px;  border-width:2px 0 0 2px; }
.hc-tr { top:-8px; right:-8px; border-width:2px 2px 0 0; }
.hc-bl { bottom:-8px; left:-8px;  border-width:0 0 2px 2px; }
.hc-br { bottom:-8px; right:-8px; border-width:0 2px 2px 0; }

/* profile wrapper override */
.hero-right .profile-wrapper {
  width: min(250px, 48vw);
  height: min(250px, 48vw);
  flex-shrink: 0;
}

/* HUD labels */
.hero-hud {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  z-index: 4;
  white-space: nowrap;
}

.hero-hud-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  animation: blink 1.5s infinite;
  flex-shrink: 0;
}

.hero-hud-tl { top:-28px; left:50%; transform:translateX(-50%); }
.hero-hud-br { bottom:-28px; left:50%; transform:translateX(-50%); }

/* ===== FLOAT BADGES ===== */
.hero-float-badge {
  position: absolute;
  padding: 0.38rem 0.75rem 0.38rem 0.55rem;
  border-radius: 8px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(5,5,12,0.7);
  backdrop-filter: blur(12px);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
}

.hero-float-badge span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  animation: blink 2s infinite;
}

.hero-float-badge:hover {
  transform: scale(1.06) !important;
  border-color: rgba(255,255,255,0.15);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

/* ── per-badge accent color ── */
.hfb-1 {
  top: 5%; left: -10%;
  animation: floatBadge1 4s ease-in-out infinite;
}
.hfb-1 span {
  background: #b847f5;
  box-shadow: 0 0 6px #b847f5;
}
.hfb-1:hover { border-color: rgba(184,71,245,0.35) !important; }

.hfb-2 {
  top: 15%; right: -10%;
  animation: floatBadge2 4.5s ease-in-out infinite;
}
.hfb-2 span {
  background: #00d4ff;
  box-shadow: 0 0 6px #00d4ff;
}
.hfb-2:hover { border-color: rgba(0,212,255,0.35) !important; }

.hfb-3 {
  bottom: 15%; left: -10%;
  animation: floatBadge3 3.8s ease-in-out infinite;
}
.hfb-3 span {
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
}
.hfb-3:hover { border-color: rgba(34,197,94,0.35) !important; }

.hfb-4 {
  bottom: 5%; right: -10%;
  animation: floatBadge4 5s ease-in-out infinite;
}
.hfb-4 span {
  background: #f547a8;
  box-shadow: 0 0 6px #f547a8;
}
.hfb-4:hover { border-color: rgba(245,71,168,0.35) !important; }

@keyframes floatBadge1 {
  0%,100% { transform:translateY(0) rotate(-2deg); }
  50%     { transform:translateY(-10px) rotate(1deg); }
}
@keyframes floatBadge2 {
  0%,100% { transform:translateY(0) rotate(2deg); }
  50%     { transform:translateY(-12px) rotate(-1deg); }
}
@keyframes floatBadge3 {
  0%,100% { transform:translateY(0) rotate(1deg); }
  50%     { transform:translateY(-8px) rotate(-2deg); }
}
@keyframes floatBadge4 {
  0%,100% { transform:translateY(0) rotate(-1deg); }
  50%     { transform:translateY(-14px) rotate(2deg); }
}

/* ==============================
   RESPONSIVE
============================== */
@media (max-width: 900px) {
  .hero-section {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 3rem;
    padding: 7rem 1.5rem 4rem;
    text-align: center;
  }

  .hero-left {
    align-items: center;
    order: 2;
  }

  .hero-subtitle { margin: 0 auto; }
  .hero-btns     { justify-content: center; }
  .hero-stats    { justify-content: center; }
  .hero-status-badge { margin: 0 auto; }

  .hero-right { order: 1; }

  .hfb-1 { top:5%;    left:0; }
  .hfb-2 { top:5%;    right:0; }
  .hfb-3 { bottom:5%; left:0; }
  .hfb-4 { bottom:5%; right:0; }

  .hero-name { letter-spacing: -2px; }
}

@media (max-width: 480px) {
  .hero-float-badge { font-size:0.62rem; padding:0.3rem 0.6rem; }
  .hero-profile-outer { width:200px; height:200px; }
  .hero-right .profile-wrapper { width:180px; height:180px; }
}

/* ...existing code... */

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;        /* ✅ เพิ่มบรรทัดนี้ */
  display: block;
  position: relative;
  z-index: 2;
  mix-blend-mode: screen;
}

/* ...existing code... */