/* ── Tokens ─────────────────────────────────── */
:root {
  --orange:   #ff6b35;
  --orange2:  #ff9f1c;
  --blue:     #00b4d8;
  --blue2:    #0077b6;
  --gold:     #ffd60a;
  --red:      #ff073a;
  --green:    #00f5a0;
  --discord:  #5865f2;
  --text:     #f0f4f8;
  --dim:      #6b7c93;
  --card-bg:  rgba(5, 4, 11, 0.84);
  --radius:   20px;
}

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

body {
  background: #060408;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Rajdhani', sans-serif;
  overflow: hidden;
  user-select: none;
}

/* ── Intro Splash ───────────────────────────── */
.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(3, 2, 8, 0.95);
  cursor: pointer;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.intro.leaving {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}

/* Corner brackets */
.intro-corner {
  position: absolute;
  width: 40px;
  height: 40px;
  opacity: 0.35;
  animation: cornerBreath 3s ease-in-out infinite;
}

.intro-corner--tl { top: 32px; left: 32px; border-top: 1px solid var(--orange); border-left: 1px solid var(--orange); }
.intro-corner--tr { top: 32px; right: 32px; border-top: 1px solid var(--orange); border-right: 1px solid var(--orange); animation-delay: 0.5s; }
.intro-corner--bl { bottom: 32px; left: 32px; border-bottom: 1px solid var(--orange); border-left: 1px solid var(--orange); animation-delay: 1s; }
.intro-corner--br { bottom: 32px; right: 32px; border-bottom: 1px solid var(--orange); border-right: 1px solid var(--orange); animation-delay: 1.5s; }

@keyframes cornerBreath {
  0%, 100% { opacity: 0.25; }
  50%       { opacity: 0.6; }
}

.intro-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  text-align: center;
}

.intro-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 4px;
  color: rgba(255, 107, 53, 0.5);
  text-transform: uppercase;
  margin-bottom: 14px;
  animation: fadeSlideUp 0.8s ease 0.1s both;
}

.intro-name {
  font-family: 'Orbitron', monospace;
  font-size: clamp(44px, 8vw, 72px);
  font-weight: 900;
  color: #fff;
  letter-spacing: 6px;
  line-height: 1;
  margin-bottom: 28px;
  text-shadow:
    0 0 18px rgba(255, 107, 53, 1),
    0 0 50px rgba(255, 107, 53, 0.6),
    0 0 100px rgba(255, 107, 53, 0.25);
  animation: fadeSlideUp 0.8s ease 0.2s both, nameBreath 3s ease-in-out 1s infinite;
}

@keyframes nameBreath {
  0%, 100% {
    text-shadow:
      0 0 18px rgba(255, 107, 53, 1),
      0 0 50px rgba(255, 107, 53, 0.6),
      0 0 100px rgba(255, 107, 53, 0.25);
  }
  50% {
    text-shadow:
      0 0 28px rgba(255, 107, 53, 1),
      0 0 70px rgba(255, 107, 53, 0.8),
      0 0 140px rgba(255, 107, 53, 0.35),
      0 0 200px rgba(255, 107, 53, 0.1);
  }
}

.intro-sep {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 220px;
  margin-bottom: 28px;
  animation: fadeSlideUp 0.8s ease 0.3s both;
}

.intro-sep-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.4), transparent);
}

.intro-sep-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 10px var(--orange);
  flex-shrink: 0;
  animation: dotPulse 1.5s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 6px var(--orange); }
  50%       { transform: scale(1.6); box-shadow: 0 0 14px var(--orange), 0 0 28px rgba(255,107,53,0.4); }
}

.intro-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  animation: fadeSlideUp 0.8s ease 0.4s both, ctaPulse 2.2s ease-in-out 1.2s infinite;
}

.intro-cta-text {
  font-family: 'Orbitron', monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 5px;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
}

.intro-cta-arrow {
  font-size: 11px;
  color: var(--orange);
  opacity: 0.7;
  animation: arrowBounce 1.5s ease-in-out infinite;
}

@keyframes arrowBounce {
  0%, 100% { transform: translateX(0); opacity: 0.7; }
  50%       { transform: translateX(5px); opacity: 1; }
}

@keyframes ctaPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

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

/* ── Scene hidden initially ─────────────────── */
.scene {
  opacity: 0;
  transform: scale(0.94) translateY(12px);
  transition: opacity 0.7s ease 0.2s, transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s;
}

.scene.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* ── Video BG ───────────────────────────────── */
#bg-video {
  position: fixed;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: saturate(1.3) brightness(0.6) contrast(1.05);
}

/* Layered dark gradient */
.overlay-gradient {
  position: fixed;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 80% 60% at 50% 110%, rgba(255, 107, 53, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse at center, transparent 25%, rgba(5, 4, 11, 0.72) 100%),
    linear-gradient(180deg, rgba(5,4,11,0.5) 0%, rgba(5,4,11,0.2) 50%, rgba(5,4,11,0.6) 100%);
}

/* ── Canvas ─────────────────────────────────── */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

/* ── Sound Prompt ───────────────────────────── */
.sound-prompt {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(5, 4, 11, 0.8);
  border: 1px solid rgba(255, 107, 53, 0.3);
  border-radius: 30px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 107, 53, 0.8);
  letter-spacing: 0.5px;
  backdrop-filter: blur(10px);
  animation: promptPulse 2s ease-in-out infinite, fadeInDown 0.4s ease;
  white-space: nowrap;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes promptPulse {
  0%, 100% { border-color: rgba(255, 107, 53, 0.3); }
  50%       { border-color: rgba(255, 107, 53, 0.7); box-shadow: 0 0 12px rgba(255, 107, 53, 0.2); }
}

.sound-prompt.hide {
  animation: fadeOut 0.4s ease forwards;
}

@keyframes fadeOut {
  to { opacity: 0; transform: translateX(-50%) translateY(-10px); pointer-events: none; }
}

/* ── Scene / Card ───────────────────────────── */
.scene {
  perspective: 1100px;
  z-index: 10;
  position: relative;
  /* entrance animation handled by .scene.visible */
}

.card {
  width: 390px;
  background: var(--card-bg);
  border-radius: var(--radius);
  position: relative;
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  transform-style: preserve-3d;
  will-change: transform;
  animation: drift 8s ease-in-out infinite;
  overflow: hidden;

  box-shadow:
    0 0 0 1px rgba(255, 107, 53, 0.18),
    0 32px 64px rgba(0, 0, 0, 0.7),
    0 0 80px rgba(255, 107, 53, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Animated gradient border */
.card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--radius) + 1px);
  background: linear-gradient(130deg,
    var(--orange) 0%,
    var(--gold) 25%,
    var(--blue) 55%,
    var(--orange2) 80%,
    var(--orange) 100%
  );
  background-size: 300% 300%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: borderShift 5s linear infinite;
  z-index: -1;
}

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

@keyframes drift {
  0%, 100% { transform: translateY(0); }
  40%       { transform: translateY(-9px) rotateX(0.4deg); }
  70%       { transform: translateY(-5px) rotateX(-0.2deg); }
}

/* Glare */
.card-glow {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  pointer-events: none;
  background: radial-gradient(
    circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 107, 53, 0.09) 0%,
    transparent 60%
  );
  z-index: 0;
}

/* ── Racing Stripes ─────────────────────────── */
.stripe-top,
.stripe-bottom {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0;
}

.stripe-top { padding-top: 0; margin-bottom: 0; }
.stripe-bottom { margin-top: 0; }

.stripe-line {
  height: 3px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 107, 53, 0.5) 20%,
    rgba(255, 159, 28, 0.7) 50%,
    rgba(255, 107, 53, 0.5) 80%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: stripeFlow 3s linear infinite;
}

.stripe-line--accent {
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(0, 180, 216, 0.4) 20%,
    rgba(0, 180, 216, 0.6) 50%,
    rgba(0, 180, 216, 0.4) 80%,
    transparent 100%
  );
  animation: stripeFlow 3s linear infinite reverse;
}

@keyframes stripeFlow {
  0%   { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

/* ── Card Body ──────────────────────────────── */
.card-body {
  padding: 28px 30px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  position: relative;
  z-index: 1;
}

/* ── Avatar ─────────────────────────────────── */
.avatar-wrap {
  position: relative;
  width: 100px;
  height: 100px;
  margin-bottom: 18px;
}

.ring-svg {
  position: absolute;
  inset: -6px;
  width: calc(100% + 12px);
  height: calc(100% + 12px);
}

.ring-track {
  fill: none;
  stroke: rgba(255, 107, 53, 0.1);
  stroke-width: 2;
}

.ring-spin {
  fill: none;
  stroke: url(#ringGrad);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 60 255;
  animation: rotateDash 2s linear infinite;
  transform-origin: center;
}

.ring-spin2 {
  fill: none;
  stroke: rgba(0, 180, 216, 0.5);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 30 285;
  animation: rotateDash 3s linear infinite reverse;
  transform-origin: center;
}

@keyframes rotateDash {
  to { stroke-dashoffset: -314; }
}

/* Inject SVG gradient via CSS (works for inline CSS) */
.ring-svg defs { display: none; }

.avatar {
  position: absolute;
  inset: 3px;
  width: calc(100% - 6px);
  height: calc(100% - 6px);
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(5, 4, 11, 0.9);
  z-index: 1;
}

.avatar-pulse {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--green);
  border: 2px solid rgba(5, 4, 11, 0.9);
  z-index: 2;
  animation: greenPulse 2.2s ease-in-out infinite;
}

@keyframes greenPulse {
  0%, 100% { box-shadow: 0 0 4px var(--green); }
  50%       { box-shadow: 0 0 12px var(--green), 0 0 22px rgba(0, 245, 160, 0.35); }
}

/* ── Name Block ─────────────────────────────── */
.name-block {
  text-align: center;
  margin-bottom: 20px;
}

.username {
  font-family: 'Orbitron', monospace;
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 4px;
  line-height: 1;
  margin-bottom: 8px;
  text-shadow:
    0 0 12px rgba(255, 107, 53, 0.9),
    0 0 30px rgba(255, 107, 53, 0.5),
    0 0 60px rgba(255, 107, 53, 0.2);
  animation: nameGlitch 9s ease-in-out infinite;
}

@keyframes nameGlitch {
  0%, 91%, 100% {
    text-shadow:
      0 0 12px rgba(255, 107, 53, 0.9),
      0 0 30px rgba(255, 107, 53, 0.5);
    clip-path: none;
    transform: none;
  }
  92% {
    text-shadow: -3px 0 var(--blue), 3px 0 var(--orange), 0 0 30px rgba(255, 107, 53, 0.5);
    transform: skewX(-3deg);
  }
  93% {
    text-shadow: 3px 0 var(--red), -3px 0 var(--blue), 0 0 30px rgba(255, 107, 53, 0.5);
    transform: skewX(3deg) translateX(2px);
  }
  94% {
    text-shadow:
      0 0 12px rgba(255, 107, 53, 0.9),
      0 0 30px rgba(255, 107, 53, 0.5);
    transform: none;
  }
}

.tagline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2.5px;
  color: var(--dim);
  text-transform: uppercase;
}

.tag-bracket {
  color: var(--orange);
  opacity: 0.7;
  font-size: 14px;
}

.tag-text { color: rgba(240, 244, 248, 0.55); }

/* ── Separator ──────────────────────────────── */
.sep {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-bottom: 20px;
}

.sep-bar {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.3), transparent);
}

.sep-icon {
  font-size: 13px;
  color: var(--orange);
  opacity: 0.6;
  flex-shrink: 0;
  animation: sepSpin 6s linear infinite;
}

@keyframes sepSpin {
  0%, 80%, 100% { transform: rotate(0deg); opacity: 0.6; }
  85%           { transform: rotate(180deg); opacity: 1; }
  90%           { transform: rotate(360deg); opacity: 0.6; }
}

/* ── Links ──────────────────────────────────── */
.links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}

.link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  position: relative;
  overflow: hidden;
}

/* Shine sweep on hover */
.link::after {
  content: '';
  position: absolute;
  top: 0; left: -75%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  transition: left 0.5s ease;
}

.link:hover::after { left: 150%; }
.link:hover { transform: translateY(-2px) scale(1.01); }
.link:active { transform: translateY(0) scale(0.99); }

.link-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.link-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
  transition: transform 0.22s ease;
}

.link:hover .link-icon-wrap { transform: scale(1.1) rotate(-6deg); }

.link-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.link-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.3px;
}

.link-url {
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 0.2px;
}

.link-chevron {
  font-size: 11px;
  opacity: 0.35;
  transition: all 0.25s ease;
}

.link:hover .link-chevron { opacity: 0.9; transform: translateX(3px); }

/* Web */
.web-link {
  background: rgba(255, 107, 53, 0.07);
  border-color: rgba(255, 107, 53, 0.2);
}

.web-link .link-icon-wrap {
  background: rgba(255, 107, 53, 0.14);
  color: var(--orange);
  box-shadow: 0 0 10px rgba(255, 107, 53, 0.18);
}

.web-link .link-chevron { color: var(--orange); }

.web-link:hover {
  border-color: rgba(255, 107, 53, 0.5);
  box-shadow: 0 6px 24px rgba(255, 107, 53, 0.12), 0 0 0 1px rgba(255, 107, 53, 0.14);
}

/* Discord */
.disc-link {
  background: rgba(88, 101, 242, 0.07);
  border-color: rgba(88, 101, 242, 0.2);
}

.disc-link .link-icon-wrap {
  background: rgba(88, 101, 242, 0.14);
  color: var(--discord);
  box-shadow: 0 0 10px rgba(88, 101, 242, 0.18);
}

.disc-link .link-chevron { color: var(--discord); }

.disc-link:hover {
  border-color: rgba(88, 101, 242, 0.5);
  box-shadow: 0 6px 24px rgba(88, 101, 242, 0.12), 0 0 0 1px rgba(88, 101, 242, 0.14);
}

/* ── Card Footer ────────────────────────────── */
.card-footer {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.views-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 12px;
  color: var(--dim);
  transition: all 0.3s ease;
}

.views-pill:hover {
  border-color: rgba(255, 107, 53, 0.25);
  background: rgba(255, 107, 53, 0.05);
}

.views-pill i {
  color: var(--orange);
  font-size: 13px;
  animation: eyeBlink 5s ease-in-out infinite;
}

@keyframes eyeBlink {
  0%, 86%, 100% { transform: scaleY(1); }
  88%           { transform: scaleY(0.1); }
  90%           { transform: scaleY(1); }
}

#view-count {
  font-family: 'Orbitron', monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}

.views-text { font-size: 11px; opacity: 0.5; letter-spacing: 0.5px; }

/* Sound toggle button */
.sound-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 107, 53, 0.25);
  background: rgba(255, 107, 53, 0.08);
  color: var(--orange);
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.sound-toggle:hover {
  background: rgba(255, 107, 53, 0.18);
  border-color: rgba(255, 107, 53, 0.5);
  transform: scale(1.1);
  box-shadow: 0 0 14px rgba(255, 107, 53, 0.25);
}

.sound-toggle.active {
  background: rgba(255, 107, 53, 0.2);
  border-color: var(--orange);
  box-shadow: 0 0 16px rgba(255, 107, 53, 0.3);
}

/* ── Avatar section (collapsible) ──────────── */
.avatar-section {
  display: flex;
  justify-content: center;
  width: 100%;
  max-height: 130px;
  opacity: 1;
  overflow: hidden;
  margin-bottom: 0;
  transition:
    max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    opacity    0.35s ease,
    margin     0.5s ease;
}

/* Links collapsible */
#links-section {
  max-height: 200px;
  opacity: 1;
  overflow: hidden;
  transition:
    max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    opacity    0.3s ease,
    margin     0.45s ease;
}

/* Portfolio section */
.projects {
  width: 100%;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    opacity    0.4s ease 0.1s,
    margin     0.5s ease;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ── Portfolio mode overrides ───────────────── */
.card.portfolio-mode .avatar-section {
  max-height: 0;
  opacity: 0;
  margin-bottom: -18px; /* remove gap that was below avatar */
}

.card.portfolio-mode #links-section {
  max-height: 0;
  opacity: 0;
  margin-bottom: -20px;
  pointer-events: none;
}

.card.portfolio-mode .projects {
  max-height: 600px;
  opacity: 1;
  margin-bottom: 20px;
}

/* ── Project items ──────────────────────────── */
.proj-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border-radius: 10px;
  background: rgba(255, 107, 53, 0.05);
  border: 1px solid rgba(255, 107, 53, 0.14);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  flex-shrink: 0;
}

a.proj-item:hover {
  transform: translateY(-2px) scale(1.01);
  border-color: rgba(255, 107, 53, 0.4);
  box-shadow: 0 4px 18px rgba(255, 107, 53, 0.1);
}

.proj-no-link { cursor: default; }

.proj-left {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 1;
  min-width: 0;
}

.proj-tag {
  font-family: 'Orbitron', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 3px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.tag-web    { background: rgba(0, 180, 216, 0.15); color: var(--blue);    border: 1px solid rgba(0,180,216,0.25); }
.tag-tool   { background: rgba(255,107,53,0.15);   color: var(--orange);  border: 1px solid rgba(255,107,53,0.25); }
.tag-script { background: rgba(0,245,160,0.12);    color: var(--green);   border: 1px solid rgba(0,245,160,0.2); }
.tag-ctf    { background: rgba(255,214,10,0.12);   color: var(--gold);    border: 1px solid rgba(255,214,10,0.2); }
.tag-other  { background: rgba(168,85,247,0.12);   color: #a855f7;        border: 1px solid rgba(168,85,247,0.2); }

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

.proj-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.proj-desc {
  font-size: 11px;
  color: var(--dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.proj-chevron {
  font-size: 11px;
  color: var(--orange);
  opacity: 0.4;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

a.proj-item:hover .proj-chevron { opacity: 1; transform: translateX(2px); }

/* ── Portfolio toggle button ────────────────── */
.port-btn {
  width: 100%;
  margin-top: 14px;
  padding: 10px;
  border-radius: 10px;
  border: 1px dashed rgba(255, 107, 53, 0.25);
  background: transparent;
  color: rgba(255, 107, 53, 0.55);
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.port-btn:hover {
  border-color: rgba(255, 107, 53, 0.55);
  color: var(--orange);
  background: rgba(255, 107, 53, 0.06);
  transform: translateY(-1px);
}

.port-btn:active { transform: translateY(0); }

.card.portfolio-mode .port-btn {
  border-color: rgba(0, 180, 216, 0.3);
  color: rgba(0, 180, 216, 0.6);
}

.card.portfolio-mode .port-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(0, 180, 216, 0.06);
}

/* ── Responsive ─────────────────────────────── */
@media (max-width: 450px) {
  .card { width: 345px; }
  .card-body { padding: 24px 22px 20px; }
  .username { font-size: 24px; }
}
