/* ==========================================================================
   detached — Bio Card Stylesheet
   Theme: Pitch Black & Cosmic Crimson (#FF4040)
   ========================================================================== */

:root {
  --primary: #FF4040;
  --primary-glow: rgba(255, 64, 64, 0.55);
  --primary-soft: rgba(255, 64, 64, 0.12);
  --primary-subtle: rgba(255, 64, 64, 0.05);
  --primary-border: rgba(255, 64, 64, 0.28);
  --primary-border-hover: rgba(255, 64, 64, 0.7);

  --bg-pitch: #040406;
  --card-bg: rgba(13, 13, 18, 0.72);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-inner-bg: rgba(22, 22, 30, 0.55);

  --text-primary: #FFFFFF;
  --text-secondary: #B0B0C0;
  --text-muted: #6E6E82;

  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-card: 24px;
  --radius-pill: 100px;
  --radius-item: 14px;

  --transition-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: cubic-bezier(0.2, 0, 0, 1);
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

html, body {
  width: 100%;
  min-height: 100%;
  background-color: var(--bg-pitch);
  color: var(--text-primary);
  font-family: var(--font-main);
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-pitch);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 64, 64, 0.3);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* ==========================================================================
   Canvas & Background Effects
   ========================================================================== */

#starfield {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
}

/* Ambient Floating Orbs */
.ambient-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 2;
  opacity: 0.22;
  animation: orbFloat 18s ease-in-out infinite alternate;
}

.orb-1 {
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 550px;
  height: 450px;
  background: radial-gradient(circle, var(--primary) 0%, rgba(255, 64, 64, 0) 70%);
}

.orb-2 {
  bottom: -15%;
  right: 15%;
  width: 500px;
  height: 400px;
  background: radial-gradient(circle, #ff2a2a 0%, rgba(255, 64, 64, 0) 70%);
  animation-delay: -9s;
}

@keyframes orbFloat {
  0% {
    transform: translate(-50%, 0) scale(1);
  }
  50% {
    transform: translate(-45%, 40px) scale(1.12);
  }
  100% {
    transform: translate(-55%, -20px) scale(0.95);
  }
}

/* Cursor Follow Glow */
.cursor-glow {
  position: fixed;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 64, 64, 0.12) 0%, rgba(255, 64, 64, 0) 70%);
  pointer-events: none;
  z-index: 2;
  transform: translate(-50%, -50%);
  transition: opacity 0.4s ease;
  opacity: 0;
}

/* Top Controls: Language Switcher & Audio Toggle */
.top-controls {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 10px;
}

.control-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(18, 18, 24, 0.7);
  border: 1px solid var(--primary-border);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s var(--transition-smooth);
}

.control-btn:hover {
  border-color: var(--primary);
  color: var(--text-primary);
  box-shadow: 0 0 20px var(--primary-soft);
  transform: translateY(-2px);
}

.control-btn .icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.lang-toggle-btn {
  letter-spacing: 0.05em;
  font-weight: 700;
}

.lang-toggle-btn:active, .control-btn:active {
  transform: translateY(0) scale(0.96);
}

/* ==========================================================================
   Layout & 3D Card Architecture
   ========================================================================== */

.page-wrapper {
  position: relative;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 48px 20px;
  z-index: 10;
}

.card-container {
  perspective: 1400px;
  width: 100%;
  max-width: 680px;
}

.bio-card {
  position: relative;
  background: var(--card-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 44px 38px;
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(255, 64, 64, 0.15),
    0 0 45px rgba(255, 64, 64, 0.08);
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out, box-shadow 0.3s ease;
  overflow: hidden;
  animation: cardEntrance 1.1s var(--transition-smooth) backwards;
}

@keyframes cardEntrance {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
    filter: blur(12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.bio-card:hover {
  box-shadow: 
    0 30px 70px rgba(0, 0, 0, 0.9),
    0 0 0 1px var(--primary-border-hover),
    0 0 60px rgba(255, 64, 64, 0.18);
}

/* Card Glare Layer */
.card-glare {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: radial-gradient(circle 350px at 50% 50%, rgba(255, 255, 255, 0.07), transparent 75%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 20;
}

/* Corner Cyber Accents */
.corner-accent {
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--primary);
  opacity: 0.6;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.bio-card:hover .corner-accent {
  opacity: 1;
  box-shadow: 0 0 8px var(--primary-glow);
}

.corner-accent.top-left {
  top: 14px;
  left: 14px;
  border-top: 2px solid var(--primary);
  border-left: 2px solid var(--primary);
}
.corner-accent.top-right {
  top: 14px;
  right: 14px;
  border-top: 2px solid var(--primary);
  border-right: 2px solid var(--primary);
}
.corner-accent.bottom-left {
  bottom: 14px;
  left: 14px;
  border-bottom: 2px solid var(--primary);
  border-left: 2px solid var(--primary);
}
.corner-accent.bottom-right {
  bottom: 14px;
  right: 14px;
  border-bottom: 2px solid var(--primary);
  border-right: 2px solid var(--primary);
}

/* ==========================================================================
   Header: Avatar, Title & Tagline
   ========================================================================== */

.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 30px;
  transform: translateZ(30px);
}

/* Avatar */
.avatar-wrapper {
  position: relative;
  width: 110px;
  height: 110px;
  margin-bottom: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(135deg, var(--primary) 0%, #ff7070 50%, var(--primary) 100%) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: ringRotate 8s linear infinite;
}

@keyframes ringRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.avatar-pulse-glow {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  opacity: 0.5;
  filter: blur(6px);
  animation: avatarPulse 3s ease-in-out infinite alternate;
}

@keyframes avatarPulse {
  0% {
    transform: scale(0.96);
    opacity: 0.35;
  }
  100% {
    transform: scale(1.08);
    opacity: 0.7;
  }
}

.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  z-index: 2;
  border: 2px solid rgba(10, 10, 14, 0.8);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  transition: transform 0.4s var(--transition-smooth);
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  pointer-events: none;
}

.avatar-shield {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  z-index: 10;
  background: transparent;
  pointer-events: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.avatar-wrapper:hover .avatar-img {
  transform: scale(1.04);
}

/* Online Status Indicator */
.status-indicator {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 18px;
  height: 18px;
  z-index: 5;
}

.status-dot {
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background-color: var(--primary);
  box-shadow: 0 0 10px var(--primary);
  border: 2px solid #0c0c10;
}

.status-ping {
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background-color: var(--primary);
  opacity: 0.75;
  animation: statusPing 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes statusPing {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  75%, 100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

/* Title & Bio */
.profile-title-group {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.nickname-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.nickname {
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  text-shadow: 0 0 25px rgba(255, 64, 64, 0.4);
  background: linear-gradient(180deg, #FFFFFF 40%, #FFD6D6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.verified-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: var(--primary);
  filter: drop-shadow(0 0 6px var(--primary-glow));
  animation: badgeGlow 2.5s ease-in-out infinite alternate;
}

@keyframes badgeGlow {
  0% { transform: scale(1); filter: drop-shadow(0 0 4px var(--primary-glow)); }
  100% { transform: scale(1.1); filter: drop-shadow(0 0 10px var(--primary)); }
}

.role-badge {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--primary-soft);
  border: 1px solid var(--primary-border);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
  box-shadow: 0 0 16px rgba(255, 64, 64, 0.15);
}

.bio-tagline {
  color: var(--text-secondary);
  font-size: 0.96rem;
  font-weight: 400;
  max-width: 480px;
  line-height: 1.55;
}

/* Cyber Digital Lag Glitch (Pure #FF4040 & White stutter, zero blue) */
.glitch-text {
  position: relative;
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #FFFFFF;
  text-shadow: 0 0 10px rgba(255, 64, 64, 0.7);
  user-select: none;
  cursor: default;
  animation: textLagJitter 4s steps(1) infinite;
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Red laggy slice */
.glitch-text::before {
  left: -2px;
  color: var(--primary);
  text-shadow: 0 0 8px var(--primary);
  animation: laggyGlitch1 4s steps(1) infinite;
}

/* White stutter slice */
.glitch-text::after {
  left: 2px;
  color: #FFFFFF;
  opacity: 0.85;
  text-shadow: -1px 0 4px rgba(255, 64, 64, 0.4);
  animation: laggyGlitch2 4s steps(1) infinite;
}

@keyframes textLagJitter {
  0%, 84%, 96%, 100% {
    transform: none;
    filter: none;
  }
  85% {
    transform: translate(-2px, 1px);
    filter: drop-shadow(0 0 6px var(--primary));
  }
  87% {
    transform: translate(3px, -1px) skewX(4deg);
  }
  89% {
    transform: translate(-1px, 2px);
  }
  91% {
    transform: translate(2px, 0) skewX(-3deg);
  }
  93% {
    transform: translate(-2px, -1px);
  }
  95% {
    transform: translate(1px, 1px);
  }
}

@keyframes laggyGlitch1 {
  0%, 84%, 96%, 100% {
    clip-path: inset(0 0 0 0);
    transform: none;
    opacity: 0;
  }
  85% {
    clip-path: inset(25% 0 50% 0);
    transform: translate(-4px, -1px) skew(-8deg);
    opacity: 1;
  }
  87% {
    clip-path: inset(70% 0 8% 0);
    transform: translate(4px, 1px) skew(6deg);
    opacity: 1;
  }
  89% {
    clip-path: inset(45% 0 30% 0);
    transform: translate(-3px, 0);
    opacity: 0.95;
  }
  91% {
    clip-path: inset(80% 0 5% 0);
    transform: translate(3px, -1px) skew(-4deg);
    opacity: 1;
  }
  93% {
    clip-path: inset(10% 0 70% 0);
    transform: translate(-2px, 1px);
    opacity: 0.9;
  }
  95% {
    clip-path: inset(55% 0 20% 0);
    transform: translate(2px, 0);
    opacity: 1;
  }
}

@keyframes laggyGlitch2 {
  0%, 85%, 96%, 100% {
    clip-path: inset(0 0 0 0);
    transform: none;
    opacity: 0;
  }
  86% {
    clip-path: inset(60% 0 20% 0);
    transform: translate(3px, 1px) skew(7deg);
    opacity: 1;
  }
  88% {
    clip-path: inset(15% 0 65% 0);
    transform: translate(-4px, -1px) skew(-5deg);
    opacity: 1;
  }
  90% {
    clip-path: inset(40% 0 35% 0);
    transform: translate(2px, 1px);
    opacity: 0.85;
  }
  92% {
    clip-path: inset(5% 0 80% 0);
    transform: translate(-3px, 0) skew(5deg);
    opacity: 1;
  }
  94% {
    clip-path: inset(75% 0 10% 0);
    transform: translate(3px, -1px);
    opacity: 0.95;
  }
}

/* ==========================================================================
   Meta Section (Location, Timezone, Languages)
   ========================================================================== */

.meta-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 28px;
  transform: translateZ(25px);
}

.meta-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card-inner-bg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-item);
  padding: 12px 14px;
  transition: all 0.3s var(--transition-smooth);
}

.meta-card:hover {
  background: rgba(30, 30, 42, 0.7);
  border-color: var(--primary-border);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.meta-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.meta-icon svg {
  width: 18px;
  height: 18px;
}

.meta-card:hover .meta-icon {
  transform: scale(1.1);
  box-shadow: 0 0 12px var(--primary-soft);
}

.meta-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.meta-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 4px;
}

.tz-badge {
  color: var(--primary);
  font-weight: 600;
}

.meta-value {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.time-display {
  font-family: var(--font-mono);
  color: #FFFFFF;
  letter-spacing: 0.04em;
  text-shadow: 0 0 10px rgba(255, 64, 64, 0.4);
}

/* Divider */
.card-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
  transform: translateZ(15px);
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 64, 64, 0.3), transparent);
}

.divider-gem {
  width: 6px;
  height: 6px;
  background: var(--primary);
  transform: rotate(45deg);
  box-shadow: 0 0 8px var(--primary);
}

/* ==========================================================================
   Skills & Programming Section
   ========================================================================== */

.skills-section {
  margin-bottom: 28px;
  transform: translateZ(30px);
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.section-icon {
  width: 18px;
  height: 18px;
  color: var(--primary);
}

.section-title {
  font-size: 0.92rem;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.skill-item {
  position: relative;
  background: var(--card-inner-bg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-item);
  padding: 16px;
  transition: all 0.35s var(--transition-smooth);
  overflow: hidden;
}

.skill-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--primary);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: scaleY(0.4);
}

.skill-item:hover {
  background: rgba(28, 28, 38, 0.85);
  border-color: var(--primary-border);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 20px var(--primary-soft);
}

.skill-item:hover::before {
  opacity: 1;
  transform: scaleY(1);
}

.skill-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.skill-brand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 64, 64, 0.08);
  color: var(--primary);
  border: 1px solid var(--primary-border);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.skill-brand-icon svg {
  width: 20px;
  height: 20px;
}

.skill-item:hover .skill-brand-icon {
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 0 15px var(--primary-glow);
  transform: rotate(-6deg) scale(1.05);
}

.skill-info {
  display: flex;
  flex-direction: column;
}

.skill-name {
  font-size: 1.02rem;
  font-weight: 700;
  color: #FFFFFF;
}

.skill-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--primary);
  letter-spacing: 0.02em;
}

.skill-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* ==========================================================================
   Projects & Work Showcase Section
   ========================================================================== */

.projects-section {
  margin-bottom: 28px;
  transform: translateZ(30px);
}

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-card {
  position: relative;
  background: var(--card-inner-bg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-item);
  padding: 16px 18px;
  transition: all 0.35s var(--transition-smooth);
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--primary);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: scaleY(0.4);
}

.project-card:hover {
  background: rgba(28, 28, 38, 0.85);
  border-color: var(--primary-border);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 20px var(--primary-soft);
}

.project-card:hover::before {
  opacity: 1;
  transform: scaleY(1);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.project-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.project-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--primary-subtle);
  color: var(--primary);
  border: 1px solid var(--primary-border);
  transition: all 0.25s ease;
  text-decoration: none;
}

.project-link-btn:hover {
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 0 12px var(--primary-glow);
  transform: translateY(-2px);
}

.project-link-btn svg {
  width: 13px;
  height: 13px;
}

.project-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
}

.project-date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.project-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.proj-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--primary);
  background: var(--primary-subtle);
  border: 1px solid var(--primary-border);
  padding: 2px 8px;
  border-radius: 6px;
  transition: all 0.25s ease;
}

.project-card:hover .proj-tag {
  border-color: var(--primary-border-hover);
  background: var(--primary-soft);
  color: #FFFFFF;
}

/* Status Badges */
.status-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.status-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

/* Status 1: Done */
.status-done {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.3);
}
.status-done::before {
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
}

/* Status 2: In Development */
.status-in-dev {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
}
.status-in-dev::before {
  background: #fbbf24;
  box-shadow: 0 0 8px #fbbf24;
  animation: pulseInDev 2s infinite alternate;
}

@keyframes pulseInDev {
  0% { transform: scale(0.9); opacity: 0.7; }
  100% { transform: scale(1.3); opacity: 1; }
}

/* Status 3: Planned */
.status-planned {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
}
.status-planned::before {
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
}

/* Status 4: Archived / Abandoned */
.status-archived {
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.25);
}
.status-archived::before {
  background: #94a3b8;
  box-shadow: 0 0 6px #94a3b8;
}

/* ==========================================================================
   Smooth Language Switching Transitions
   ========================================================================== */

[data-i18n], #soundLabel, #langLabel {
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.lang-fading {
  opacity: 0 !important;
  transform: translateY(-3px) !important;
  filter: blur(2px) !important;
}

/* ==========================================================================
   Social & Contact Section
   ========================================================================== */

.social-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  transform: translateZ(25px);
}

.social-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  background: var(--card-inner-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-item);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s var(--transition-smooth);
  overflow: hidden;
  font-family: var(--font-main);
}

.social-svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.social-btn .btn-text {
  transition: color 0.3s ease;
}

.social-btn .btn-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, var(--primary-glow) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.social-btn:hover {
  border-color: var(--primary-border-hover);
  color: #FFFFFF;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 20px var(--primary-soft);
}

.social-btn:hover .btn-glow {
  opacity: 0.2;
}

.social-btn:hover .social-svg {
  transform: scale(1.15);
  color: var(--primary);
}

.discord-btn {
  border-color: rgba(255, 64, 64, 0.2);
}

.discord-btn .copy-hint {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  background: var(--primary-soft);
  color: var(--primary);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 2px;
  transition: all 0.2s ease;
}

.discord-btn:hover .copy-hint {
  background: var(--primary);
  color: #FFFFFF;
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */

.toast-notification {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  opacity: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(18, 18, 24, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--primary);
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 25px var(--primary-soft);
  z-index: 100;
  transition: all 0.4s var(--transition-smooth);
}

.toast-notification.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.toast-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary);
  color: #FFFFFF;
  flex-shrink: 0;
}

.toast-icon svg {
  width: 14px;
  height: 14px;
}

.toast-content {
  display: flex;
  flex-direction: column;
}

.toast-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #FFFFFF;
}

.toast-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

@media (max-width: 680px) {
  .top-controls {
    top: 16px;
    right: 16px;
    gap: 8px;
  }

  .control-btn {
    padding: 6px 12px;
    font-size: 0.75rem;
  }

  .bio-card {
    padding: 32px 22px;
  }

  .nickname {
    font-size: 1.9rem;
  }

  .meta-section {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .skills-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .social-section {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
}

@media (max-width: 400px) {
  .top-controls {
    top: 12px;
    right: 12px;
  }

  .control-btn {
    padding: 5px 10px;
    font-size: 0.7rem;
  }

  .social-section {
    grid-template-columns: 1fr;
  }
  
  .avatar-wrapper {
    width: 90px;
    height: 90px;
  }
}
