/* ═══════════════════════════════════════════
   VolTrexa-DEV — style.css
   Theme: Modern White-Red  |  Thai Font: Sarabun + Prompt
   ═══════════════════════════════════════════ */

:root {
  --red:        #E8181A;
  --red-bright: #FF3232;
  --red-glow:   rgba(232,24,26,.18);
  --red-pale:   rgba(232,24,26,.07);
  --white:      #FFFFFF;
  --off-white:  #F9F9F9;
  --surface:    #FFFFFF;
  --border:     rgba(0,0,0,.07);
  --text-dark:  #0F0F0F;
  --text-mid:   #555555;
  --text-soft:  #999999;
  --shadow-sm:  0 2px 14px rgba(0,0,0,.06);
  --shadow-md:  0 8px 40px rgba(232,24,26,.12);
  --r-card:     20px;
  --r-icon:     14px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Sarabun', 'Prompt', sans-serif;
  background: var(--off-white);
  min-height: 100vh;
  overflow-x: hidden;
  cursor: none;
}

/* ════════════════════════════════
   CURSOR
════════════════════════════════ */
#cursor {
  position: fixed;
  width: 10px; height: 10px;
  background: var(--red);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%,-50%);
  transition: width .2s, height .2s, background .2s;
  mix-blend-mode: multiply;
}
#cursor-ring {
  position: fixed;
  width: 34px; height: 34px;
  border: 1.5px solid var(--red);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%,-50%);
  transition: width .25s ease, height .25s ease, opacity .2s ease;
  opacity: .45;
}
.hovering #cursor       { width: 14px; height: 14px; }
.hovering #cursor-ring  { width: 54px; height: 54px; opacity: .85; }

/* ════════════════════════════════
   BACKGROUND
════════════════════════════════ */
.bg-mesh {
  position: fixed; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 60% 55% at 85% 15%, rgba(232,24,26,.08) 0%, transparent 65%),
    radial-gradient(ellipse 45% 60% at 10% 85%, rgba(232,24,26,.05) 0%, transparent 65%),
    var(--off-white);
}
.bg-grid {
  position: fixed; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(0,0,0,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

/* Floating Orbs */
.orb {
  position: fixed; border-radius: 50%;
  pointer-events: none; z-index: 0;
  filter: blur(72px);
  animation: orbFloat ease-in-out infinite;
}
.orb-1 { width:360px; height:360px; top:-100px; right:-80px;  background:rgba(232,24,26,.09); animation-duration:20s; }
.orb-2 { width:220px; height:220px; bottom:8%;  left:-70px;   background:rgba(232,24,26,.06); animation-duration:27s; animation-delay:-9s; }
.orb-3 { width:180px; height:180px; top:52%;    right:4%;     background:rgba(232,24,26,.05); animation-duration:23s; animation-delay:-5s; }

@keyframes orbFloat {
  0%,100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-28px) scale(1.07); }
}

/* Particle Canvas */
#particle-canvas {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
}

/* ════════════════════════════════
   CONTAINER
════════════════════════════════ */
.container {
  position: relative; z-index: 1;
  max-width: 500px; margin: 0 auto;
  padding: 64px 22px 80px;
  display: flex; flex-direction: column; align-items: center;
}

/* ════════════════════════════════
   ANIMATIONS — stagger via --d var
════════════════════════════════ */
.anim-up {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp .7s var(--d, 0s) cubic-bezier(.22,1,.36,1) forwards;
}
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ════════════════════════════════
   AVATAR
════════════════════════════════ */
.avatar-wrap {
  position: relative;
  margin-bottom: 26px;
}
.avatar-ring {
  width: 108px; height: 108px;
  border-radius: 50%;
  background: conic-gradient(var(--red), #FF7070, #fff, var(--red));
  padding: 3px;
  display: flex; align-items: center; justify-content: center;
  animation: spinRing 8s linear infinite;
}
@keyframes spinRing {
  to { transform: rotate(360deg); }
}
.avatar-inner {
  width: 102px; height: 102px; border-radius: 50%;
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Bebas Neue', 'Prompt', sans-serif;
  font-size: 38px; color: var(--red);
  letter-spacing: 2px; user-select: none;
  animation: spinRing 8s linear infinite reverse; /* counter-rotate so text stays upright */
}
.avatar-badge {
  position: absolute; bottom: 6px; right: 6px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #22c55e; border: 3px solid var(--off-white);
}
.avatar-pulse {
  position: absolute; bottom: 6px; right: 6px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #22c55e; opacity: .5;
  animation: pulseRing 2s ease-out infinite;
}
@keyframes pulseRing {
  0%   { transform: scale(1); opacity:.5; }
  100% { transform: scale(2.4); opacity:0; }
}

/* ════════════════════════════════
   NAME
════════════════════════════════ */
.name {
  font-family: 'Bebas Neue', 'Prompt', sans-serif;
  font-size: clamp(42px, 10vw, 60px);
  letter-spacing: 4px;
  color: var(--text-dark);
  line-height: 1; text-align: center;
  margin-bottom: 14px;
}
.name span { color: var(--red); }

/* ════════════════════════════════
   TAGS
════════════════════════════════ */
.tag-row {
  display: flex; gap: 8px; flex-wrap: wrap;
  justify-content: center; margin-bottom: 14px;
}
.tag {
  font-family: 'Sarabun', sans-serif;
  font-size: 11.5px; font-weight: 500;
  letter-spacing: 1.4px; text-transform: uppercase;
  padding: 5px 14px; border-radius: 30px;
  border: 1.5px solid rgba(232,24,26,.22);
  color: var(--red); background: rgba(232,24,26,.06);
  transition: background .2s, transform .2s;
}
.tag:hover { background: rgba(232,24,26,.12); transform: translateY(-2px); }

/* ════════════════════════════════
   BIO
════════════════════════════════ */
.bio-text {
  font-family: 'Sarabun', sans-serif;
  font-size: 15px; font-weight: 400;
  color: var(--text-mid); text-align: center;
  line-height: 1.85; max-width: 340px;
  margin-bottom: 4px;
}

/* ════════════════════════════════
   DIVIDER
════════════════════════════════ */
.divider {
  width: 100%; display: flex; align-items: center; gap: 14px;
  margin: 26px 0 22px;
}
.divider-line { flex: 1; height: 1px; background: rgba(0,0,0,.08); }
.divider-diamond {
  width: 10px; height: 10px;
  background: var(--red);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* ════════════════════════════════
   LINK CARDS
════════════════════════════════ */
.links-list {
  width: 100%; display: flex; flex-direction: column; gap: 13px;
}

.link-card {
  position: relative; overflow: hidden;
  width: 100%; border-radius: var(--r-card);
  background: var(--surface);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex; align-items: center; gap: 16px;
  padding: 17px 20px;
  text-decoration: none; color: inherit;
  cursor: none;
  transform-style: preserve-3d;
  transition:
    transform .35s cubic-bezier(.34,1.56,.64,1),
    box-shadow .35s ease,
    border-color .3s ease;
}

/* Hover lift */
.link-card:hover {
  transform: translateY(-5px) scale(1.012);
  box-shadow: var(--shadow-md);
  border-color: rgba(232,24,26,.28);
}

/* Gradient tint on hover */
.link-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(232,24,26,.04), transparent 70%);
  opacity: 0; transition: opacity .3s;
}
.link-card:hover::before { opacity: 1; }

/* Shimmer sweep */
.link-card::after {
  content: '';
  position: absolute; top: 0; left: -110%;
  width: 55%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-18deg);
  transition: left .55s ease;
}
.link-card:hover::after { left: 170%; }

/* ── Card Icon ── */
.card-icon {
  flex-shrink: 0;
  width: 50px; height: 50px; border-radius: var(--r-icon);
  display: flex; align-items: center; justify-content: center;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}
.link-card:hover .card-icon { transform: rotate(-8deg) scale(1.14); }
.card-icon svg { width: 26px; height: 26px; }

/* Platform icon BGs */
.icon-tt      { background: #F0F0F0; }
.icon-fb      { background: #E8EEFF; }
.icon-web     { background: #FFF0F0; }
.icon-booking { background: var(--red); border-radius: var(--r-icon); }

/* ── Card Text ── */
.card-text { flex: 1; min-width: 0; }
.card-platform {
  font-family: 'Sarabun', sans-serif;
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-soft); margin-bottom: 1px;
}
.card-name {
  font-family: 'Bebas Neue', 'Prompt', sans-serif;
  font-size: 22px; letter-spacing: 1.8px;
  color: var(--text-dark); line-height: 1.1;
}
.card-sub {
  font-family: 'Sarabun', sans-serif;
  font-size: 12px; color: var(--text-soft);
  margin-top: 2px;
}

/* ── Arrow Button ── */
.card-arrow {
  flex-shrink: 0;
  width: 36px; height: 36px; border-radius: 10px;
  background: #F2F2F2; color: #888;
  display: flex; align-items: center; justify-content: center;
  transition: background .3s, transform .3s cubic-bezier(.34,1.56,.64,1), color .3s;
}
.link-card:hover .card-arrow {
  background: var(--red); color: #fff;
  transform: rotate(45deg) scale(1.1);
}
.card-arrow svg { width: 15px; height: 15px; }

/* ── Highlighted Card (Booking) ── */
.link-card--highlight {
  background: linear-gradient(135deg, var(--red) 0%, #C00 100%);
  border-color: transparent;
  box-shadow: 0 6px 28px rgba(232,24,26,.30);
}
.link-card--highlight:hover {
  box-shadow: 0 14px 48px rgba(232,24,26,.45);
  border-color: transparent;
}
.link-card--highlight::before {
  background: linear-gradient(120deg, rgba(255,255,255,.1), transparent 70%);
}
.card-arrow--white { background: rgba(255,255,255,.22); color: #fff; }
.link-card--highlight:hover .card-arrow--white { background: rgba(255,255,255,.36); }

/* ════════════════════════════════
   STATS ROW
════════════════════════════════ */
.stats-row {
  display: flex; width: 100%;
  border-radius: var(--r-card); overflow: hidden;
  border: 1.5px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  margin-top: 26px;
}
.stat-item {
  flex: 1; padding: 18px 10px; text-align: center; position: relative;
}
.stat-item:not(:last-child)::after {
  content: ''; position: absolute; right: 0; top: 22%; bottom: 22%;
  width: 1px; background: rgba(0,0,0,.07);
}
.stat-num {
  display: block;
  font-family: 'Bebas Neue', 'Prompt', sans-serif;
  font-size: 28px; color: var(--red); letter-spacing: 1px;
}
.stat-label {
  font-family: 'Sarabun', sans-serif;
  font-size: 10px; text-transform: uppercase;
  letter-spacing: 1.6px; color: var(--text-soft); font-weight: 600;
}

/* ════════════════════════════════
   FOOTER
════════════════════════════════ */
.footer {
  margin-top: 36px; text-align: center;
  display: flex; flex-direction: column; gap: 6px;
}
.footer-made {
  font-family: 'Sarabun', sans-serif;
  font-size: 13px; color: rgba(0,0,0,.35);
}
.heart {
  color: var(--red);
  display: inline-block;
  animation: heartBeat 1.4s ease infinite;
}
@keyframes heartBeat {
  0%,100% { transform: scale(1); }
  14%     { transform: scale(1.3); }
  28%     { transform: scale(1); }
  42%     { transform: scale(1.2); }
}
.footer-copy {
  font-family: 'Sarabun', sans-serif;
  font-size: 11.5px; color: rgba(0,0,0,.28);
  letter-spacing: .4px;
}

/* ════════════════════════════════
   RIPPLE
════════════════════════════════ */
.ripple {
  position: fixed; border-radius: 50%;
  border: 2px solid var(--red);
  pointer-events: none; z-index: 9997;
  transform: translate(-50%,-50%) scale(0);
  animation: rippleAnim .65s ease-out forwards;
}
@keyframes rippleAnim {
  to { transform: translate(-50%,-50%) scale(4); opacity: 0; }
}

/* ════════════════════════════════
   RESPONSIVE
════════════════════════════════ */
@media (max-width: 480px) {
  body { cursor: auto; }
  #cursor, #cursor-ring { display: none; }
  .container { padding: 48px 16px 64px; }
  .name { font-size: 42px; }
}
