/* =========================================================
   1. EASY SETTINGS  -  change colors / fonts / images here
   Layout idea: one centered glass column floating over a
   moving neon aurora background.
   ========================================================= */
:root {
  color-scheme: dark;

  --bg:        #050914;                     /* page background            */
  --neon:      #38bdf8;                     /* sky blue neon (main color) */
  --pink:      #f472b6;                     /* second accent              */
  --violet:    #a78bfa;                     /* third accent               */
  --gold:      #ffc400;                     /* logo yellow (top circle)   */
  --text:      #eaf6ff;                     /* main text                  */
  --muted:     #93a8c4;                     /* soft text                  */
  --glass:     rgba(255, 255, 255, 0.06);   /* glass fill                 */
  --glass-line:rgba(255, 255, 255, 0.16);   /* glass border               */

  --font-display: "Unbounded", "Trebuchet MS", sans-serif;
  --font-body:    "Sora", "Segoe UI", Arial, sans-serif;

  /* FOOTER BACKGROUND IMAGE
     Replace the gradient below with your image, like this:
     --footer-image: url("your-image.jpg");                      */
  --footer-image: linear-gradient(120deg, #0b3b66, #3b1d6e 55%, #7a1f5c);
}

/* =========================================================
   2. BASE
   ========================================================= */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100%;
}

a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--neon); outline-offset: 4px; border-radius: 12px; }

.page {
  position: relative;
  z-index: 2;
  max-width: 960px;
  margin: 0 auto;
  padding: 56px 20px 40px;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

/* Reusable glass look - add class="glass" to any box */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.section-title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--neon);
  text-shadow: 0 0 14px rgba(56, 189, 248, 0.7);
  margin-bottom: 20px;
}

/* =========================================================
   3. ANIMATED BACKGROUND (aurora blobs + grid + cursor glow)
   ========================================================= */
.bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }

.blob {
  position: absolute;
  width: 46vmax; height: 46vmax;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.16;                       /* background strength: higher = brighter */
  animation: float 30s ease-in-out infinite alternate;
}
.blob.one   { background: var(--neon); top: -22vmax; left: -14vmax; }
.blob.two   { background: #1d4ed8;     bottom: -24vmax; right: -16vmax; animation-duration: 38s; animation-delay: -10s; }
.blob.three { background: #0ea5e9;     top: 40%; left: 50%; width: 26vmax; height: 26vmax; opacity: 0.07; animation-duration: 44s; animation-delay: -20s; }

@keyframes float {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(8vmax, 6vmax) scale(1.15); }
  100% { transform: translate(-6vmax, 10vmax) scale(0.9); }
}

.grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 75%);
}

.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 420px; height: 420px;
  margin: -210px 0 0 -210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56,189,248,0.09), transparent 65%);
  z-index: 1;
  pointer-events: none;
  transform: translate(50vw, 20vh);
  transition: transform 0.18s ease-out;
}

/* =========================================================
   4. HERO  (logo circle + typing name)
   ========================================================= */
.hero { display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }

/* ---- TOP LOGO CIRCLE (yellow, to match the logo) ----
   Layers, from outside to inside:
   1. dashed orbit with a small dot, turning slowly backwards
   2. two "sonar" rings that grow out of the circle and fade
   3. the logo itself, with a yellow neon outline              */
.logo-wrap {
  position: relative;
  width: 200px; height: 200px;
  display: grid; place-items: center;
  animation: hover-float 4s ease-in-out infinite;      /* whole logo gently floats */
}
@keyframes hover-float { 50% { transform: translateY(-8px); } }

/* 1. dashed orbit + dot */
.logo-wrap::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(255, 196, 0, 0.45);
  background: radial-gradient(circle at 50% 0, var(--gold) 0 4px, transparent 5px);
  animation: spin 12s linear infinite reverse;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* 2. sonar rings */
.pulse-ring {
  position: absolute; inset: 30px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  opacity: 0;
  animation: pulse-out 3s ease-out infinite;
}
.pulse-ring.two { animation-delay: 1.5s; }
@keyframes pulse-out {
  0%   { transform: scale(1);   opacity: 0.7; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* 3. the logo */
.logo {
  position: relative;
  width: 140px; height: 140px;
  border-radius: 50%;
  border: 2px solid var(--gold);                 /* yellow neon outline */
  background: #000000;
  display: grid; place-items: center;
  overflow: hidden;
  animation: neon-pulse 2.4s ease-in-out infinite;
}
.logo img { width: 100%; height: 100%; object-fit: cover; }
.logo-fallback {            /* text shown only if a logo image cannot load */
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.4rem;
  color: var(--neon);
  text-shadow: 0 0 18px var(--neon);
}
@keyframes neon-pulse {
  0%, 100% { box-shadow: 0 0 8px var(--gold), 0 0 26px rgba(255, 196, 0, 0.45); }
  50%      { box-shadow: 0 0 16px var(--gold), 0 0 60px rgba(255, 196, 0, 0.75); }
}

.name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 7.5vw, 3.4rem);   /* grows with the screen, between these two sizes */
  line-height: 1.1;
  min-height: 1.1em;
  letter-spacing: 0.02em;
  /* "Mohit" = white with a soft white glow */
  color: #ffffff;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.45);
  white-space: pre;                      /* keeps the space while typing and never wraps to 2 lines */
}
/* "Syngh" = plain logo yellow, no glow */
.name-yellow {
  color: var(--gold);
  text-shadow: none;
}
@keyframes shine { to { background-position: 300% 0; } }

.caret {
  display: inline-block;
  width: 4px; height: 0.9em;
  margin-left: 6px;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
  vertical-align: -0.08em;
  animation: blink 0.8s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* =========================================================
   5. SOCIAL MEDIA CAPSULE
   ========================================================= */
.social { display: flex; flex-direction: column; align-items: center; }

.social-capsule {
  display: flex;
  gap: 18px;
  padding: 14px 22px;
  border-radius: 999px;
}

.social-icon {
  --brand: var(--neon);                 /* each icon sets its own color below */
  position: relative;
  width: 58px; height: 58px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--glass-line);
  transition: transform 0.35s cubic-bezier(.34, 1.8, .64, 1), background 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.social-icon svg { width: 26px; height: 26px; transition: transform 0.5s cubic-bezier(.34, 1.8, .64, 1); }

.social-icon.instagram { --brand: #ff4d8d; }
.social-icon.youtube   { --brand: #ff3b3b; }
.social-icon.linkedin  { --brand: #3ea0ff; }
.social-icon.codepen   { --brand: #22c55e; }

/* hover (mouse) and .pop (added by JS on touch) share the same animation */
.social-icon:hover,
.social-icon.pop {
  transform: translateY(-10px) scale(1.18);
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: 0 0 22px var(--brand), 0 14px 30px rgba(0, 0, 0, 0.4);
}
.social-icon:hover svg,
.social-icon.pop svg { transform: rotate(360deg) scale(1.1); }

/* ripple ring that bursts out on touch / hover */
.social-icon::after {
  content: "";
  position: absolute; inset: -2px;
  border-radius: 50%;
  border: 2px solid var(--brand);
  opacity: 0;
}
.social-icon:hover::after,
.social-icon.pop::after { animation: ripple 0.7s ease-out; }
@keyframes ripple {
  from { opacity: 0.9; transform: scale(1); }
  to   { opacity: 0;   transform: scale(2); }
}

/* =========================================================
   6. SLIDING ROLES  (moves to the right)
   Speed: change 26s  ->  smaller = faster, bigger = slower
   ========================================================= */
.roles {
  overflow: hidden;
  width: 100vw;
  margin-left: calc(50% - 50vw);       /* full screen width */
  padding: 10px 0;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.roles-track {
  display: flex;
  gap: 18px;
  width: max-content;
  padding-right: 18px;
  animation: slide-right 26s linear infinite;
}
.roles:hover .roles-track { animation-play-state: paused; }

@keyframes slide-right {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

.role {
  position: relative;
  flex: none;
  padding: 12px 26px 12px 44px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
  border: 1.5px solid transparent;
  /* glass inside + moving rainbow border */
  background:
    linear-gradient(#0c1424, #0c1424) padding-box,
    linear-gradient(90deg, var(--neon), var(--pink), var(--violet), var(--neon)) border-box;
  background-size: 100% 100%, 300% 100%;
  animation: shine 4s linear infinite;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.25);
}
/* glowing dot inside each capsule */
.role::before {
  content: "";
  position: absolute;
  left: 20px; top: 50%;
  width: 10px; height: 10px;
  margin-top: -5px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 12px var(--neon);
  animation: blink 1.4s ease-in-out infinite;
}
.role:nth-child(3n+2)::before { background: var(--pink);   box-shadow: 0 0 12px var(--pink); }
.role:nth-child(3n)::before   { background: var(--violet); box-shadow: 0 0 12px var(--violet); }

/* =========================================================
   7. DETAILS  (about me tiles)
   ========================================================= */
.details-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.detail {
  grid-column: span 2;
  padding: 22px;
  border-radius: 26px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease-out, border-color 0.3s;
}
.detail.big { grid-column: span 4; }
.detail:hover { border-color: var(--neon); }

/* soft glow blob in the corner of each tile */
.detail::after {
  content: "";
  position: absolute;
  right: -30px; bottom: -30px;
  width: 110px; height: 110px;
  border-radius: 50%;
  background: var(--neon);
  filter: blur(40px);
  opacity: 0.25;
  transition: opacity 0.3s, transform 0.3s;
}
.detail:nth-child(2)::after { background: var(--pink); }
.detail:nth-child(4)::after { background: var(--violet); }
.detail:nth-child(5)::after { background: var(--pink); }
.detail:hover::after { opacity: 0.6; transform: scale(1.3); }

.detail-label {
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
}
.detail-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.9rem, 2.6vw, 1.6rem);   /* shrinks on small screens so long words fit */
  line-height: 1.2;
  margin-top: 6px;
  white-space: nowrap;                       /* never break a word onto a second line */
}

/* =========================================================
   8. JOURNEY  (experience cards)
   ========================================================= */
.journey-list { display: flex; flex-direction: column; gap: 18px; }

.card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 20px;
  padding: 24px 28px;
  border-radius: 34px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease-out, border-color 0.3s, box-shadow 0.3s;
}
.card:hover {
  border-color: var(--neon);
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.25), 0 10px 40px rgba(0, 0, 0, 0.35);
}
/* light sweep that crosses the card on hover */
.card::before {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.14), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s ease;
}
.card:hover::before { left: 130%; }

.card-number {
  grid-row: span 3;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.6rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--neon);
  opacity: 0.8;
}
.card-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.chip {
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.5);
  color: var(--neon);
}
.chip.tag {
  background: rgba(244, 114, 182, 0.12);
  border-color: rgba(244, 114, 182, 0.5);
  color: var(--pink);
}
.card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.3;
  text-wrap: balance;
}
.card p { color: var(--muted); font-size: 0.95rem; max-width: 62ch; }

/* =========================================================
   9. FOOTER  (box with background image)
   ========================================================= */
.footer {
  position: relative;
  border-radius: 34px;
  overflow: hidden;
  border: 1px solid var(--glass-line);
  padding: 32px 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;   /* row 1: logo block | back to top.  row 2: copyright */
  align-items: center;
  gap: 24px;
  /* dark layer on top keeps the text readable over any image */
  background:
    linear-gradient(rgba(5, 9, 20, 0.6), rgba(5, 9, 20, 0.78)),
    var(--footer-image) center / cover no-repeat;
}
/* logo on top, description centered right below it */
.footer-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: 100%;
  min-width: 0;
  text-align: center;
}
/* Wide logo box. The logo image has empty space above and below the
   words, so this box crops that space off (object-fit: cover).
   Change width to make the logo bigger or smaller.               */
.footer-logo {
  position: relative;
  width: 300px;
  max-width: 100%;
  aspect-ratio: 866 / 110;
  display: grid; place-items: center;
  overflow: hidden;
}
/* the image fills the box exactly and is cropped around its center */
.footer-logo img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.footer-logo .logo-fallback { font-size: 1.2rem; white-space: nowrap; }
.footer-desc { font-size: 0.9rem; max-width: 28ch; }
.footer-copy {
  grid-column: 1 / -1;                   /* full width, so it sits centered at the bottom */
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 10px;
  white-space: nowrap;                   /* always one row */
  padding-top: 18px;
  border-top: 1px solid var(--glass-line);
  font-size: clamp(0.68rem, 2.8vw, 0.9rem);
  color: var(--muted);
}
.footer-copy strong {
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
/* SKY BLUE FLAME between the years and "All Rights Reserved."
   Three flame shapes sit on top of each other (big blue, lighter blue,
   white-hot core). Each one sways and stretches at its own speed,
   and a small ember rises from the tip.
   Size: change font-size below.  Colour: change the three background colours. */
.flame {
  position: relative;
  display: inline-block;
  font-size: 1.5em;
  width: 1em; height: 1.4em;
  filter: drop-shadow(0 0 5px var(--neon)) drop-shadow(0 0 14px rgba(56, 189, 248, 0.6));
}
.flame i {
  --size: 1;                              /* how big this layer is */
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 100%;
  transform-origin: 50% 100%;             /* sway from the bottom, like a real flame */
  animation: flame-dance 0.45s ease-in-out infinite alternate;
}
/* the teardrop shape of each layer */
.flame i::before {
  content: "";
  position: absolute;
  left: 50%; bottom: 14%;
  width: 62%; aspect-ratio: 1;
  margin-left: -31%;
  border-radius: 0 55% 55% 55%;
  transform: rotate(45deg);               /* sharp corner points up */
  background: #0ea5e9;
}
.flame i:nth-child(2)         { --size: 0.68; animation-duration: 0.33s; }
.flame i:nth-child(2)::before { background: #7dd3fc; }
.flame i:nth-child(3)         { --size: 0.38; animation-duration: 0.27s; }
.flame i:nth-child(3)::before { background: #f0fbff; }

@keyframes flame-dance {
  from { transform: scale(var(--size)) skewX(-7deg) scaleY(0.92); }
  to   { transform: scale(var(--size)) skewX(7deg)  scaleY(1.28); }
}
/* ember that floats up from the tip and fades */
.flame::after {
  content: "";
  position: absolute;
  left: 50%; top: 10%;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: #bae6fd;
  animation: ember 1.1s ease-out infinite;
}
@keyframes ember {
  from { transform: translate(-50%, 0); opacity: 1; }
  to   { transform: translate(180%, -16px); opacity: 0; }
}

/* STARS: a canvas stretched over the whole footer, behind the text */
.footer-stars {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.footer > *:not(.footer-stars) { position: relative; z-index: 1; }   /* keep text above the stars */

/* BURNING LETTERS: the two letters touching the flame ("6" and "A")
   pick up a small, soft blue flicker from it.
   Add class="burning" to another letter to light it too.            */
.burning {
  color: #d6f1ff;
  animation: burn 0.6s ease-in-out infinite alternate;
}
@keyframes burn {
  from { text-shadow: 0 -1px 3px rgba(125, 211, 252, 0.7), 0 -3px 6px rgba(56, 189, 248, 0.35); }
  to   { text-shadow: 0 -2px 4px rgba(125, 211, 252, 0.9), 0 -5px 8px rgba(56, 189, 248, 0.5); }
}

/* BUILD ANIMATION: JavaScript splits the text into single characters.
   Each one drops in after the one before it: 2, then 0, then 1 ...
   Used by the 01, 02, 03 journey numbers.                           */
.build-letter { display: inline-block; }
.play .build-letter { animation: build-in 0.5s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes build-in {
  from { opacity: 0; transform: translateY(18px) scale(0.2) rotate(-25deg); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: none; }
}
.to-top {
  justify-self: end;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.85rem;
  transition: transform 0.3s, border-color 0.3s;
}
.to-top:hover { transform: translateY(-4px); border-color: var(--neon); }

/* =========================================================
   10. SCROLL REVEAL  (JS adds .hide to things below the screen,
       then removes it when you scroll to them)
   ========================================================= */
.reveal { transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2, .9, .3, 1.2); }
.reveal.hide { opacity: 0; transform: translateY(40px) scale(0.96); }

/* =========================================================
   11. RESPONSIVE  (how the layout changes per screen size)
       desktop  = everything above
       tablet   = 641px to 900px
       phone    = 640px and smaller
       small phone = 380px and smaller
   ========================================================= */

/* ---- TABLET ---- */
@media (max-width: 900px) {
  .page { gap: 56px; padding-top: 48px; }
  .card { padding: 22px 24px; }
}

/* ---- PHONE ---- */
@media (max-width: 640px) {
  .page { gap: 44px; padding: 36px 16px 28px; }
  .section-title { margin-bottom: 16px; }

  /* hero */
  .hero { gap: 22px; }
  .logo-wrap { width: 176px; height: 176px; }
  .logo { width: 124px; height: 124px; }
  .pulse-ring { inset: 26px; }

  /* social */
  .social-capsule { gap: 14px; padding: 12px 18px; }
  .social-icon { width: 52px; height: 52px; }

  /* sliding roles: smaller capsules */
  .roles-track { gap: 12px; padding-right: 12px; }
  .role { font-size: 0.8rem; padding: 10px 20px 10px 38px; }
  .role::before { left: 16px; width: 8px; height: 8px; margin-top: -4px; }

  /* about me: name full width, the other four in two columns */
  .details-grid { gap: 12px; }
  .detail { grid-column: span 3; padding: 16px 14px; border-radius: 22px; }
  .detail.big { grid-column: span 6; }
  .detail-value { font-size: clamp(0.9rem, 4vw, 1.4rem); }

  /* journey: number + year + Freelancer share the first row, text goes below */
  .journey-list { gap: 14px; }
  .card { grid-template-columns: auto minmax(0, 1fr); gap: 8px 10px; padding: 20px; border-radius: 26px; }
  .card-number { grid-row: auto; font-size: 1.6rem; align-self: center; }
  .card-top { gap: 6px; flex-wrap: nowrap; align-self: center; }
  .chip { padding: 3px 10px; font-size: 0.7rem; white-space: nowrap; }
  .card h3, .card p { grid-column: 1 / -1; }      /* title and description use the full width */
  .card h3 { font-size: 1.05rem; }
  .card p { font-size: 0.9rem; }

  /* footer: everything stacked and centered */
  .footer { grid-template-columns: minmax(0, 1fr); padding: 26px 18px; gap: 18px; border-radius: 26px; text-align: center; }
  .footer-left { width: 100%; }
  .footer-logo { width: min(260px, 100%); }
  .footer-desc { max-width: none; }
  .to-top { justify-self: center; }
  .footer-copy { gap: 8px; }

  /* lighter effects = smoother scrolling on phones */
  .glass { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  .blob { filter: blur(70px); }
  .blob.three { display: none; }
}

/* ---- SMALL PHONE ---- */
@media (max-width: 380px) {
  .page { padding-left: 14px; padding-right: 14px; }
  .social-capsule { gap: 10px; padding: 10px 14px; }
  .social-icon { width: 46px; height: 46px; }
  .card { padding: 18px 16px; }
  .card-number { font-size: 1.4rem; }
  .card-top { gap: 5px; }
  .chip { padding: 3px 7px; font-size: 0.6rem; }
  .detail-label { letter-spacing: 0.18em; }
}

/* ---- TOUCH SCREENS (no mouse) ----
   On phones a "hover" style stays stuck after a tap, so switch the
   mouse-only effects off. The social icons still animate on tap.  */
@media (hover: none) {
  .cursor-glow { display: none; }
  .social-icon:hover:not(.pop) {
    transform: none;
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--glass-line);
    box-shadow: none;
  }
  .social-icon:hover:not(.pop) svg { transform: none; }
  .social-icon:hover:not(.pop)::after { animation: none; }
  .roles:hover .roles-track { animation-play-state: running; }
  .to-top:hover { transform: none; }
}

/* People who turned off animations in their device settings */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
