/* ==========================================================================
   GUNS.LOL MINIMALIST PROFILE - @tubarao
   Ultra-clean, dark aesthetic, centered glass card & micro-interactions
   ========================================================================== */

:root {
  --bg-color: #06070a;
  --card-bg: rgba(13, 14, 19, 0.62);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-border-hover: rgba(255, 255, 255, 0.18);
  
  --text-main: #ffffff;
  --text-muted: #8b90a0;
  --text-dim: #555a6d;

  --accent: #a855f7;
  --accent-glow: rgba(168, 85, 247, 0.35);

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

html, body {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
  background-color: var(--bg-color);
  font-family: var(--font-sans);
  color: var(--text-main);
  user-select: none;
}

body.screen-locked {
  overflow: hidden !important;
}

/* Custom Minimalist Dark Scrollbar */
::-webkit-scrollbar {
  width: 7px;
}

::-webkit-scrollbar-track {
  background: rgba(6, 7, 10, 0.95);
}

::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, 0.35);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(168, 85, 247, 0.7);
}

/* 3D Soft Blue Arrow Cursor */
@media (pointer: fine) {
  html, body, a, button, input, select, textarea, [role="button"], [data-copy] {
    cursor: url('assets/images/cursor_32.png') 5 0, auto !important;
  }

  body.has-custom-cursor,
  body.has-custom-cursor * {
    cursor: none !important;
  }

  .custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 999999;
    width: 38px;
    height: auto;
    opacity: 0;
    transform: translate3d(-100px, -100px, 0);
    will-change: transform;
    transition: opacity 0.2s ease;
  }

  .cursor-img {
    width: 38px;
    height: auto;
    display: block;
    user-select: none;
    pointer-events: none;
    transform-origin: 5px 0px;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.55));
    transition: transform 0.16s cubic-bezier(0.16, 1, 0.3, 1), filter 0.2s ease;
  }

  /* Hover over clickable elements */
  body.cursor-hover .cursor-img {
    transform: scale(1.14) rotate(-5deg);
    filter: drop-shadow(0 0 16px rgba(120, 160, 255, 0.65)) drop-shadow(0 8px 18px rgba(0, 0, 0, 0.7));
  }

  /* Active mouse press */
  body.cursor-clicking .cursor-img {
    transform: scale(0.9) rotate(-2deg);
  }
}

@media (pointer: coarse) {
  .custom-cursor {
    display: none !important;
  }
}

/* ==========================================================================
   BACKGROUND ATMOSPHERE
   ========================================================================== */

.bg-wrapper {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.68) contrast(1.06) saturate(1.05);
}

.bg-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(6, 7, 10, 0.15) 0%, rgba(6, 7, 10, 0.72) 100%);
  pointer-events: none;
}

#particle-canvas,
#spark-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

#particle-canvas { z-index: 1; }
#spark-canvas { z-index: 99997; }

/* ==========================================================================
   CLICK TO ENTER OVERLAY
   ========================================================================== */

.enter-screen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(6, 7, 10, 0.94);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.6s var(--ease-spring), visibility 0.6s;
}

.enter-screen.dismissed {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.enter-content {
  text-align: center;
}

.enter-text {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  letter-spacing: 2px;
  color: #e2e8f0;
  text-transform: lowercase;
  animation: enter-pulse 2.5s infinite ease-in-out;
}

@keyframes enter-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); text-shadow: 0 0 10px rgba(255, 255, 255, 0.2); }
  50% { opacity: 1; transform: scale(1.02); text-shadow: 0 0 20px rgba(255, 255, 255, 0.6); }
}

/* ==========================================================================
   TOP BAR (Minimal Views & Audio button)
   ========================================================================== */

.top-bar {
  position: fixed;
  top: 20px;
  left: 0;
  width: 100%;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  pointer-events: none;
}

.views-tag,
.nav-tool-pill,
.audio-btn {
  pointer-events: auto;
}

.views-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
  background: rgba(13, 14, 19, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  padding: 6px 12px;
  border-radius: 20px;
}

.views-tag svg {
  color: var(--text-dim);
}

.nav-tool-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(13, 14, 19, 0.72);
  border: 1px solid rgba(168, 85, 247, 0.35);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), 0 0 12px rgba(168, 85, 247, 0.15);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  text-decoration: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.25s var(--ease-spring);
}

.nav-tool-pill svg {
  color: var(--accent-soft);
}

.nav-tool-pill:hover {
  background: rgba(168, 85, 247, 0.25);
  border-color: rgba(168, 85, 247, 0.7);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), 0 0 20px rgba(168, 85, 247, 0.4);
  transform: translateY(-2px);
  color: #ffffff;
}

.audio-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(13, 14, 19, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.audio-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

/* Sound Waves */
.audio-waves {
  display: flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 12px;
}

.wave-bar {
  width: 2.5px;
  background-color: var(--text-muted);
  border-radius: 2px;
  animation: wave-bounce 1s infinite alternate;
}

.wave-bar:nth-child(1) { height: 6px; animation-delay: 0.1s; }
.wave-bar:nth-child(2) { height: 12px; animation-delay: 0.3s; }
.wave-bar:nth-child(3) { height: 8px; animation-delay: 0.5s; }

body.audio-paused .wave-bar {
  animation-play-state: paused;
  height: 3px !important;
  background-color: var(--text-dim);
}

@keyframes wave-bounce {
  0% { height: 3px; }
  100% { height: 12px; }
}

/* ==========================================================================
   MAIN CENTERING & MINIMAL CARD
   ========================================================================== */

.main-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.hero-section {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px 40px;
  position: relative;
  perspective: 1000px;
}

.card {
  width: 100%;
  max-width: 380px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-radius: 22px;
  padding: 30px 24px 22px;
  text-align: center;
  box-shadow: 
    0 25px 60px -15px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.03);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  border-color: var(--card-border-hover);
  box-shadow: 
    0 30px 70px -15px rgba(0, 0, 0, 0.9),
    0 0 30px -10px rgba(255, 255, 255, 0.05);
}

.card-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
  mix-blend-mode: overlay;
}

/* Avatar */
.avatar-container {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
  transform: translateZ(20px);
}

.avatar-ring {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  padding: 2px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s var(--ease-spring);
}

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

.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background-color: #121319;
}

/* Identity & Badges */
.identity {
  margin-bottom: 20px;
  transform: translateZ(15px);
}

.username {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-bottom: 5px;
}

.badges {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease;
  position: relative;
}

.badge:hover {
  transform: scale(1.15);
}

.badge.verified { color: #38bdf8; }
.badge.premium { color: #c084fc; }

/* Tooltip on Badge */
.badge::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 4px 8px;
  background: rgba(10, 11, 15, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  color: #fff;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 50;
}

.badge:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.bio-line {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  min-height: 20px;
}

.typewriter-text {
  letter-spacing: 0.3px;
}

.cursor-blink {
  color: #fff;
  animation: blink 1s step-end infinite;
}

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

/* ==========================================================================
   MINIMAL HORIZONTAL SOCIAL ICONS ROW
   ========================================================================== */

.socials-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 22px;
  transform: translateZ(15px);
}

.social-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #c9ccd6;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s var(--ease-spring);
}

.social-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.social-btn:active {
  transform: scale(0.96);
}

/* ==========================================================================
   MINIMAL AUDIO PLAYER WIDGET
   ========================================================================== */

.audio-player-widget {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(8, 9, 13, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  margin-bottom: 16px;
  transform: translateZ(10px);
  transition: border-color 0.2s ease;
}

.audio-player-widget:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

.player-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.player-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: scale(1.08);
}

.player-meta {
  flex-grow: 1;
  text-align: left;
  min-width: 0;
}

.player-track {
  font-size: 0.8rem;
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.progress-track {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #ffffff;
  border-radius: 2px;
  transition: width 0.3s linear;
}

.time-display {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
}

/* Mini Equalizer */
.mini-eq {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
  flex-shrink: 0;
}

.eq-col {
  width: 2px;
  background-color: var(--text-muted);
  border-radius: 1px;
  animation: mini-eq-bounce 0.8s infinite alternate;
}

.eq-col:nth-child(1) { height: 4px; animation-delay: 0.1s; }
.eq-col:nth-child(2) { height: 12px; animation-delay: 0.3s; }
.eq-col:nth-child(3) { height: 8px; animation-delay: 0.2s; }
.eq-col:nth-child(4) { height: 6px; animation-delay: 0.4s; }

body.audio-paused .eq-col {
  animation-play-state: paused;
  height: 3px !important;
}

@keyframes mini-eq-bounce {
  0% { height: 3px; }
  100% { height: 14px; }
}

/* ==========================================================================
   FOOTER LINK
   ========================================================================== */

.footer-link {
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.footer-link a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link a:hover {
  color: var(--text-muted);
}

/* ==========================================================================
   MINIMAL TOAST
   ========================================================================== */

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(40px);
  background: rgba(13, 14, 19, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease-spring);
  z-index: 100000;
  pointer-events: none;
}

.toast.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   SCROLL DOWN CTA BUTTON
   ========================================================================== */

.scroll-down-btn {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  z-index: 12;
  animation: indicator-float 2.8s ease-in-out infinite;
  transition: transform 0.25s var(--ease-spring);
}

.scroll-btn-inner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  border-radius: 999px;
  background: rgba(13, 14, 19, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #e2e8f0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.5), 
    0 0 16px rgba(168, 85, 247, 0.15);
  transition: all 0.25s ease;
}

.scroll-down-btn:hover .scroll-btn-inner {
  border-color: rgba(168, 85, 247, 0.6);
  background: rgba(22, 23, 32, 0.88);
  color: #ffffff;
  box-shadow: 
    0 12px 30px rgba(0, 0, 0, 0.6), 
    0 0 25px rgba(168, 85, 247, 0.4);
  transform: translateY(-2px);
}

.pulse-ring {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a855f7;
  box-shadow: 0 0 8px #a855f7;
  animation: ring-pulse 1.8s infinite;
}

@keyframes ring-pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.35); box-shadow: 0 0 12px #c084fc; }
}

.chevron-down-icon {
  transition: transform 0.2s ease;
}

.scroll-down-btn:hover .chevron-down-icon {
  transform: translateY(2px);
}

@keyframes indicator-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ==========================================================================
   PROJECTS SECTION
   ========================================================================== */

.projects-section {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 10px 24px 90px;
  position: relative;
  z-index: 10;
}

.section-header {
  text-align: center;
  margin-bottom: 42px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: #c084fc;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.25);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c084fc;
  box-shadow: 0 0 8px #c084fc;
  animation: ring-pulse 2s infinite;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #ffffff;
  margin-bottom: 10px;
}

.accent-dot {
  color: var(--accent);
}

.section-subtitle {
  font-size: 0.92rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 28px;
  line-height: 1.55;
}

/* Category Filters */
.project-filters {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(13, 14, 19, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 5px;
  border-radius: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-btn {
  padding: 7px 16px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.filter-btn.active {
  background: rgba(168, 85, 247, 0.2);
  color: #ffffff;
  border: 1px solid rgba(168, 85, 247, 0.35);
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.2);
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 50px;
}

/* Individual Project Card */
.project-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease-spring), border-color 0.3s ease, box-shadow 0.35s ease, opacity 0.35s ease;
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.7);
  position: relative;
}

.project-card.is-filtered-out {
  display: none;
}

.project-card:hover {
  transform: translateY(-8px) scale(1.012);
  border-color: rgba(168, 85, 247, 0.45);
  box-shadow: 
    0 25px 60px -10px rgba(0, 0, 0, 0.85), 
    0 0 25px rgba(168, 85, 247, 0.2);
}

.card-media {
  position: relative;
  width: 100%;
  height: 195px;
  overflow: hidden;
  background: #0f1118;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-spring);
}

.project-card:hover .project-img {
  transform: scale(1.06);
}

.media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(13, 14, 19, 0.95) 100%);
  pointer-events: none;
}

/* Terminal Card Mockup */
.terminal-media {
  background: #090a10;
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.term-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.term-dot.red { background: #ff5f56; }
.term-dot.yellow { background: #ffbd2e; }
.term-dot.green { background: #27c93f; }

.term-title {
  margin-left: 8px;
  font-size: 0.68rem;
  color: var(--text-dim);
}

.terminal-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.term-line { color: #a1a1aa; }
.term-prompt { color: #c084fc; font-weight: 700; margin-right: 6px; }
.term-line.success { color: #34d399; }
.term-line.info { color: #38bdf8; }
.term-line.highlight { color: #fbbf24; }
.term-check, .term-arrow, .term-star { margin-right: 6px; }

/* Status Badges */
.project-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(10, 11, 16, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
}

.status-live { border-color: rgba(52, 211, 153, 0.4); color: #34d399; }
.status-online { border-color: rgba(56, 189, 248, 0.4); color: #38bdf8; }
.status-version { border-color: rgba(192, 132, 252, 0.4); color: #c084fc; }
.status-oss { border-color: rgba(251, 191, 36, 0.4); color: #fbbf24; }

.status-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
  animation: ring-pulse 1.6s infinite;
}

/* Card Body */
.project-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-meta-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.project-category {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #c084fc;
  letter-spacing: 1px;
  font-weight: 600;
}

.project-year {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
}

.project-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}

.project-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 16px;
  flex-grow: 1;
}

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

.tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #a1a1aa;
}

.project-actions {
  display: flex;
  gap: 10px;
}

.btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s var(--ease-spring);
  flex: 1;
  border: 1px solid transparent;
}

.btn-primary {
  background: rgba(168, 85, 247, 0.18);
  border-color: rgba(168, 85, 247, 0.35);
  color: #ffffff;
}

.btn-primary:hover {
  background: rgba(168, 85, 247, 0.35);
  border-color: rgba(168, 85, 247, 0.6);
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.25);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  transform: translateY(-2px);
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================================== */

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ==========================================================================
   PROJECT DETAILS MODAL
   ========================================================================== */

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease-spring), visibility 0.3s;
}

.project-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 7, 10, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.modal-dialog {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 560px;
  max-height: 88vh;
  overflow-y: auto;
  background: rgba(14, 16, 22, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  box-shadow: 
    0 30px 80px rgba(0, 0, 0, 0.9), 
    0 0 35px rgba(168, 85, 247, 0.25);
  transform: translateY(20px) scale(0.96);
  transition: transform 0.3s var(--ease-spring);
}

.project-modal.active .modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.modal-media-wrap {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
  border-radius: 22px 22px 0 0;
  background: #090a10;
}

.modal-media-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal-content {
  padding: 24px;
  text-align: left;
}

.modal-header {
  margin-bottom: 12px;
}

.modal-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #c084fc;
  font-weight: 600;
  letter-spacing: 1px;
}

.modal-title {
  font-size: 1.45rem;
  color: #ffffff;
  margin-top: 4px;
  font-weight: 700;
}

.modal-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.modal-section-title {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: #e2e8f0;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  font-weight: 600;
}

.modal-features {
  list-style: none;
  margin-bottom: 20px;
}

.modal-features li {
  font-size: 0.84rem;
  color: #cbd5e1;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-features li::before {
  content: '▹';
  color: #c084fc;
  font-weight: bold;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 22px;
}

.modal-actions {
  display: flex;
  gap: 12px;
}

/* ==========================================================================
   FLOATING BACK TO TOP BUTTON
   ========================================================================== */

.back-to-top-btn {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(13, 14, 19, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.3s var(--ease-spring);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top-btn:hover {
  background: rgba(168, 85, 247, 0.3);
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 
    0 12px 30px rgba(0, 0, 0, 0.8), 
    0 0 20px rgba(168, 85, 247, 0.35);
  transform: translateY(-3px);
}

.projects-footer {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 30px;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .section-title {
    font-size: 1.85rem;
  }
}

@media (max-width: 440px) {
  .card {
    max-width: 340px;
    padding: 26px 18px 18px;
  }

  .username {
    font-size: 1.35rem;
  }

  .social-btn {
    width: 38px;
    height: 38px;
  }

  .projects-section {
    padding: 10px 16px 80px;
  }

  .modal-dialog {
    max-width: 95%;
  }
}
