/* ==========================================================================
   D1GMASTE • 2014 Swag Underground Cyber Console
   Cinematic Blackout Shutter Opening • My Portfolio View • Dedicated LTC Button
   Music: SWAG LIKE ITS 2014 - SKULLFACE
   ========================================================================== */

:root {
  --bg-deep: #050608;
  --console-glass: rgba(10, 13, 19, 0.86);
  --console-border: rgba(255, 255, 255, 0.12);
  --console-border-bright: rgba(255, 255, 255, 0.32);
  --text-pure: #ffffff;
  --text-silver: #d1d5db;
  --text-muted: #8b92a0;
  --text-dim: #4b5262;

  --accent-ltc: #345d9d;
  --status-online: #22c55e;
  --status-rec: #ef4444;

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

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

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

html, body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  background-color: var(--bg-deep);
  color: var(--text-pure);
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  position: relative;
  padding: 24px 16px;
}

/* ==========================================================================
   1. Background Layer (Pinterest Lazer Dim Cash Clip + 35mm Film Grain)
   ========================================================================== */
.ambient-backdrop {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.ambient-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.44) contrast(1.22) saturate(1.1);
  user-select: none;
}

.vignette-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(5, 6, 8, 0.28) 0%, rgba(5, 6, 8, 0.94) 100%);
}

.grain-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.09;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* ==========================================================================
   2. CINEMATIC BLACKOUT SHUTTER OPENING (Pure Black + "click to enter")
   ========================================================================== */
.blackout-screen {
  position: fixed;
  inset: 0;
  z-index: 999999;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  user-select: none;
}

.shutter-pane {
  position: absolute;
  left: 0;
  width: 100%;
  height: 50.5%;
  background: #000000;
  z-index: 1;
  transition: transform 0.65s cubic-bezier(0.77, 0, 0.175, 1);
  will-change: transform;
}

.shutter-top {
  top: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.shutter-bottom {
  bottom: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.blackout-prompt {
  position: relative;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  letter-spacing: 0.14em;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 4px;
  text-transform: lowercase;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.prompt-cursor {
  color: #38bdf8;
  animation: blinkRec 0.8s infinite;
}

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

.blackout-screen.revealed .blackout-prompt {
  opacity: 0;
  transform: scale(0.92);
}

.blackout-screen.revealed .shutter-top {
  transform: translateY(-100%);
}

.blackout-screen.revealed .shutter-bottom {
  transform: translateY(100%);
}

/* ==========================================================================
   3. Floating Audio Controls Widget (Top Right)
   ========================================================================== */
.floating-audio-bar {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100;
}

.audio-widget-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  background: rgba(12, 16, 24, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--console-border);
  border-radius: 30px;
  color: var(--text-silver);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.25s var(--ease-spring);
}

.audio-widget-btn:hover {
  border-color: var(--console-border-bright);
  background: rgba(18, 24, 36, 0.9);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.08);
}

.equalizer-bars {
  display: flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 11px;
}

.equalizer-bars .bar {
  width: 2.5px;
  background: var(--text-muted);
  border-radius: 1px;
  height: 3px;
  transition: height 0.2s ease;
}

.audio-widget-btn.playing .equalizer-bars .bar {
  background: #38bdf8;
  animation: eqBounce 1s infinite alternate ease-in-out;
}

.audio-widget-btn.playing .equalizer-bars .bar:nth-child(1) { height: 9px;  animation-delay: 0.1s; }
.audio-widget-btn.playing .equalizer-bars .bar:nth-child(2) { height: 5px;  animation-delay: 0.3s; }
.audio-widget-btn.playing .equalizer-bars .bar:nth-child(3) { height: 11px; animation-delay: 0.15s; }
.audio-widget-btn.playing .equalizer-bars .bar:nth-child(4) { height: 6px;  animation-delay: 0.4s; }

@keyframes eqBounce {
  0% { transform: scaleY(0.3); }
  100% { transform: scaleY(1); }
}

/* ==========================================================================
   4. Center Screen: Balanced Obsidian Cyber-Console
   ========================================================================== */
.tilt-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 650px;
  perspective: 1200px;
}

.cyber-console {
  position: relative;
  width: 100%;
  background: var(--console-glass);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--console-border);
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: 0 28px 75px rgba(0, 0, 0, 0.85),
              0 0 0 1px rgba(255, 255, 255, 0.05),
              inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 0.08s ease-out, box-shadow 0.3s ease;
  overflow: hidden;
  will-change: transform;
}

.cyber-console:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

/* Specular Glow */
.specular-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    550px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255, 255, 255, 0.05),
    transparent 50%
  );
  z-index: 1;
}

/* Shimmer Cyber Border */
.shimmer-border {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.22) 0%,
    transparent 35%,
    rgba(255, 255, 255, 0.04) 70%,
    rgba(255, 255, 255, 0.18) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}

/* Tactical Corner Brackets */
.bracket {
  position: absolute;
  width: 9px;
  height: 9px;
  border-color: rgba(255, 255, 255, 0.4);
  border-style: solid;
  pointer-events: none;
  z-index: 3;
}
.b-top-left { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.b-top-right { top: -1px; right: -1px; border-width: 2px 2px 0 0; }
.b-bottom-left { bottom: -1px; left: -1px; border-width: 0 0 2px 2px; }
.b-bottom-right { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

/* --------------------------------------------------------------------------
   4.1 Console Header Bar (Clean Live Views in Left Corner)
   -------------------------------------------------------------------------- */
.console-header {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 10px;
  margin-bottom: 18px;
}

.live-views {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
}

.live-views svg {
  color: var(--text-dim);
  transition: color 0.2s ease;
}

.live-views:hover {
  color: var(--text-pure);
}

.live-views:hover svg {
  color: #38bdf8;
}

/* --------------------------------------------------------------------------
   4.2 Console Body: Dual-Wing Architecture (Clean Circle Avatar + Right Wing Deck)
   -------------------------------------------------------------------------- */
.console-body {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 22px;
  align-items: center;
}

/* LEFT WING: Clean Circular Avatar */
.console-left-wing {
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-circle-frame {
  position: relative;
  width: 135px;
  height: 135px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.04) 50%, rgba(255, 255, 255, 0.16) 100%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(255, 255, 255, 0.05);
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s ease, background 0.35s ease;
  cursor: pointer;
}

.avatar-circle-frame:hover {
  transform: scale(1.04);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.35) 100%);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.85), 0 0 30px rgba(255, 255, 255, 0.15);
}

.avatar-circle-frame .avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: contrast(1.1) brightness(0.98);
  transition: filter 0.3s ease;
}

.avatar-circle-frame:hover .avatar-img {
  filter: contrast(1.18) brightness(1.05);
}

/* RIGHT WING: DUAL-DECK ARCHITECTURE */
.console-right-wing {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  position: relative;
  min-height: 165px;
  justify-content: center;
}

.deck-panel {
  display: none;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.deck-panel.active {
  display: flex;
  animation: deckFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Identity & Badges */
.identity-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.name-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-name {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-pure);
  line-height: 1.1;
  text-shadow: 0 0 25px rgba(255, 255, 255, 0.2);
}

.silver-badges {
  display: flex;
  align-items: center;
  gap: 5px;
}

.badge-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 5px;
  color: var(--text-silver);
  transition: all 0.2s var(--ease-spring);
  cursor: default;
}

.badge-item:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--text-pure);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

/* Monospace Swag Terminal Line */
.typewriter-line {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.25);
  padding: 5px 8px;
  border-radius: 5px;
  border-left: 2px solid #38bdf8;
  letter-spacing: 0.04em;
}

.tw-prefix {
  color: #38bdf8;
  font-weight: 700;
}

.tw-text {
  color: var(--text-silver);
  font-weight: 500;
}

.tw-cursor {
  color: #38bdf8;
  animation: blinkRec 0.8s infinite;
}

/* Tactical Action Buttons (Discord, GitHub, LTC Copy Button) */
.tactical-actions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 8px;
  background: rgba(16, 20, 28, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  color: var(--text-silver);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s var(--ease-spring);
  user-select: none;
  position: relative;
  overflow: hidden;
}

.action-btn:hover {
  transform: translateY(-2px);
  color: var(--text-pure);
}

/* Discord Button */
.action-discord:hover {
  background: rgba(88, 101, 242, 0.15);
  border-color: rgba(88, 101, 242, 0.4);
  box-shadow: 0 4px 15px rgba(88, 101, 242, 0.2);
  color: #a5b4fc;
}

/* GitHub Button */
.action-github:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

/* DEDICATED LTC COPY BUTTON (MUST BE A BUTTON TO COPY) */
.action-ltc {
  background: rgba(52, 93, 157, 0.12);
  border-color: rgba(52, 93, 157, 0.3);
  color: #93c5fd;
}

.action-ltc:hover {
  background: rgba(52, 93, 157, 0.25);
  border-color: rgba(52, 93, 157, 0.6);
  box-shadow: 0 4px 18px rgba(52, 93, 157, 0.3);
  color: #ffffff;
}

.action-ltc.copied {
  background: rgba(34, 197, 94, 0.2) !important;
  border-color: rgba(34, 197, 94, 0.6) !important;
  color: #86efac !important;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.4) !important;
}

/* "MY PORTFOLIO" BUTTON WITH WHITE ARROW */
.portfolio-trigger-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.2s var(--ease-spring);
  user-select: none;
  margin-top: 2px;
}

.port-btn-text {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ffffff;
  text-transform: lowercase;
}

.port-arrow-icon {
  stroke: #ffffff;
  transition: transform 0.2s ease;
}

.portfolio-trigger-btn:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.06) 100%);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.portfolio-trigger-btn:hover .port-arrow-icon {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   4.3 DECK PANEL 2: PORTFOLIO PROJECTS (Compact & Sleek, No Scrollbars)
   -------------------------------------------------------------------------- */
.deck-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 2px;
}

.deck-tag-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 5px;
}

.deck-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.2s var(--ease-spring);
}

.deck-back-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateX(-2px);
  color: #ffffff;
}

.deck-strips-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.project-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(14, 18, 26, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 6px 10px;
  transition: all 0.2s var(--ease-spring);
}

.project-strip:hover {
  background: rgba(22, 28, 40, 0.88);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateX(2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.strip-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.strip-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.p-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
  flex-shrink: 0;
}

.p-dot-cyan {
  background: #38bdf8;
  box-shadow: 0 0 6px #38bdf8;
}

.p-dot-gray {
  background: #64748b;
  box-shadow: none;
}

.strip-name {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
}

.strip-badge {
  font-family: var(--font-mono);
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 1px 5px;
  border-radius: 3px;
  white-space: nowrap;
}

.badge-shop {
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.32);
  color: #7dd3fc;
}

.badge-repo {
  background: rgba(168, 85, 247, 0.14);
  border: 1px solid rgba(168, 85, 247, 0.32);
  color: #d8b4fe;
}

.badge-placeholder {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-dim);
}

.strip-subtext {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.01em;
}

.strip-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 9px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  color: var(--text-silver);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s ease;
  flex-shrink: 0;
  white-space: nowrap;
}

.strip-action-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
  transform: translateY(-1px);
}

.strip-buttons-group {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.strip-btn-rar {
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.3);
  color: #d8b4fe;
}

.strip-btn-rar:hover {
  background: rgba(168, 85, 247, 0.25);
  border-color: rgba(168, 85, 247, 0.55);
  color: #ffffff;
}

/* ==========================================================================
   5. Minimalist Silver Toast Notification
   ========================================================================== */
.silver-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(15, 18, 25, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  padding: 7px 16px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-pure);
  letter-spacing: 0.05em;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(255, 255, 255, 0.1);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s var(--ease-spring);
  z-index: 999999;
}

.silver-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ==========================================================================
   6. Mobile & Tablet Responsiveness
   ========================================================================== */
@media (max-width: 620px) {
  body {
    padding: 16px 12px;
  }

  .cyber-console {
    padding: 18px 16px;
  }

  .console-body {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .console-left-wing {
    justify-content: center;
  }

  .avatar-circle-frame {
    width: 120px;
    height: 120px;
  }

  .hero-name {
    font-size: 1.55rem;
  }

  .tactical-actions-grid {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .floating-audio-bar {
    top: 12px;
    right: 12px;
  }
}
