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

:root {
  /* Exactly 2 primary accent colors representing dark cyberpunk / sigma aesthetic */
  --accent-primary: #766fac;
  --accent-primary-rgb: 118, 111, 172;
  --accent-secondary: #98b9c4;
  --accent-secondary-rgb: 152, 185, 196;

  /* Poki Color Palette - Transitioned to Nonchalant & Sigma Girl Style (Titanium, Slate, Icy Lavender, Gold Brass) */
  --poki-black: #08060e;
  --poki-dark: #121019;
  --poki-dark-gray: #1b172a;
  
  /* Alias former accent fields to the 2 strict system accents */
  --poki-pink: var(--accent-primary);
  --poki-pink-rgb: var(--accent-primary-rgb);
  --poki-lilac: var(--accent-primary);
  --poki-lilac-rgb: var(--accent-primary-rgb);
  --poki-aqua: var(--accent-secondary);
  --poki-aqua-rgb: var(--accent-secondary-rgb);
  --poki-peach: var(--accent-secondary);
  --poki-cream: #f6f5f9;

  /* Glassmorphism Variables */
  --glass-bg: rgba(27, 23, 42, 0.45);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-rgb: 255, 255, 255;
  --glass-glow: rgba(118, 111, 172, 0.15);

  /* Font & Shadow Variables */
  --shadow: rgba(0, 0, 0, 0.65);
  --text-light: #f6f5f8;
  --text-mid: #b8b3cc;
  --text-soft: #7a7594;
}

html,
body {
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro", "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--text-light);
  overflow-x: hidden;
  background-color: var(--poki-black);
}

/* ── Deep Space Background Gradient & Blobs ── */
body {
  position: relative;
  background: radial-gradient(circle at 50% 50%, #0d0a15 0%, #050408 100%);
  padding-bottom: 80px;
}

/* ── Three.js 3D Beams Background Canvas ── */
.beams-bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1; /* Above background blobs/gradients, but behind interactive hero details */
  pointer-events: none;
  opacity: 0.65;
  mix-blend-mode: screen; /* Glowing neon blend overlay */
}

/* ── Dynamic Rising Particles ── */
.bg-particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: floatUp linear infinite;
  filter: drop-shadow(0 0 5px currentColor);
}

@keyframes floatUp {
  0% {
    transform: translateY(105vh) rotate(0deg) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.5;
  }
  100% {
    transform: translateY(-10vh) rotate(360deg) scale(1);
    opacity: 0;
  }
}

/* ── Web App Container & Layout ── */
.app-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 30px 140px; /* Secure bottom padding for iOS floating dock */
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Premium Header ── */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 50px;
  animation: headerIn 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) both;
}

@keyframes headerIn {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.logo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: transform 0.3s;
}
.logo:hover {
  transform: scale(1.05);
}
.logo-sparkle {
  color: var(--poki-pink);
  animation: sparkleRotate 3s ease-in-out infinite;
}
.logo-sigma {
  color: var(--poki-peach);
  font-size: 16px;
  display: inline-block;
  animation: sigmaGlow 2.5s ease-in-out infinite;
  text-shadow: 0 0 6px var(--poki-peach);
}

@keyframes sparkleRotate {
  0%,
  100% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.2);
  }
}
@keyframes sigmaGlow {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.15);
    opacity: 1;
  }
}

/* Header Live indicator */
.header-status-dot-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-mid);
  position: relative;
}
.status-indicator-dot {
  width: 8px;
  height: 8px;
  background: #39e58c;
  border-radius: 50%;
  box-shadow: 0 0 8px #39e58c;
}
.pulse-ring {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid #39e58c;
  animation: ringPulse 1.8s ease-out infinite;
}
@keyframes ringPulse {
  0% {
    transform: translateY(-50%) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(-50%) scale(2.4);
    opacity: 0;
  }
}

/* ── Dynamic Tab Panes Styling ── */
.tab-content-wrapper {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: tabFadeIn 0.45s cubic-bezier(0.25, 0.8, 0.25, 1) both;
}

.tab-pane.exiting {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  animation: tabFadeOut 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) both;
  pointer-events: none;
  z-index: 1;
}

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

@keyframes tabFadeOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(-16px) scale(0.985);
  }
}

/* ── Tab 1: Hero Two-Column Grid ── */
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
  margin-top: auto;
  margin-bottom: auto;
}

/* Left Column: Hero Content */
.hero-content {
  animation: contentIn 0.9s cubic-bezier(0.25, 0.8, 0.25, 1) both;
}

@keyframes contentIn {
  from {
    transform: translateX(-40px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.welcome-pill {
  display: inline-block;
  background: rgba(255, 117, 160, 0.1);
  border: 1px solid rgba(255, 117, 160, 0.22);
  color: var(--poki-pink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  padding: 6px 16px;
  border-radius: 99px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(1.8rem, 6vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

/* Gradient Text System */
.gradient-text {
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-name {
  background-image: linear-gradient(
    135deg,
    var(--poki-pink) 0%,
    var(--poki-lilac) 60%,
    var(--poki-peach) 100%
  );
  position: relative;
}
.text-role {
  background-image: linear-gradient(
    135deg,
    var(--poki-lilac) 0%,
    var(--poki-aqua) 50%,
    var(--poki-pink) 100%
  );
}

/* Typewriter Cursor */
.typewriter-cursor {
  font-family: "Fira Code", monospace;
  font-weight: 400;
  color: var(--poki-aqua);
  animation: cursorBlink 0.8s infinite;
  margin-left: 2px;
}

.text-type__cursor {
  font-size: 0.85em;
  font-weight: 300;
  opacity: 1;
  color: inherit;
  vertical-align: baseline;
  margin-left: 2px;
}

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

.hero-desc {
  font-size: 18px;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 540px;
}

/* Sleek Tags */
.tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}
.tag {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(181, 136, 247, 0.15);
  padding: 6px 16px;
  border-radius: 99px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-mid);
  transition: all 0.25s;
}
.tag:hover {
  background: rgba(255, 117, 160, 0.08);
  border-color: var(--poki-pink);
  color: var(--text-light);
  transform: translateY(-2px);
}

/* Action Buttons (Instagram & Email) */
.social-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 36px;
}

.btn-glow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
}

.btn-glow svg {
  width: 18px;
  height: 18px;
}

/* Instagram Neon Button */
.btn-instagram {
  background: linear-gradient(
    135deg,
    rgba(255, 117, 160, 0.2) 0%,
    rgba(181, 136, 247, 0.15) 100%
  );
  border: 1px solid rgba(255, 117, 160, 0.4);
  color: var(--text-light);
  box-shadow: 0 4px 20px rgba(255, 117, 160, 0.15);
}
.btn-instagram:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: var(--poki-pink);
  background: linear-gradient(
    135deg,
    rgba(255, 117, 160, 0.3) 0%,
    rgba(181, 136, 247, 0.25) 100%
  );
  box-shadow:
    0 8px 30px rgba(255, 117, 160, 0.3),
    0 0 15px rgba(255, 117, 160, 0.1) inset;
}

/* Email Neon Button */
.btn-email {
  background: linear-gradient(
    135deg,
    rgba(122, 209, 255, 0.15) 0%,
    rgba(181, 136, 247, 0.15) 100%
  );
  border: 1px solid rgba(122, 209, 255, 0.4);
  color: var(--text-light);
  box-shadow: 0 4px 20px rgba(122, 209, 255, 0.15);
}
.btn-email:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: var(--poki-aqua);
  background: linear-gradient(
    135deg,
    rgba(122, 209, 255, 0.25) 0%,
    rgba(181, 136, 247, 0.25) 100%
  );
  box-shadow:
    0 8px 30px rgba(122, 209, 255, 0.3),
    0 0 15px rgba(122, 209, 255, 0.1) inset;
}

/* Sleek Divider */
.sparkle-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  max-width: 450px;
}
.sparkle-divider .sparkle {
  color: var(--poki-lilac);
  font-size: 13px;
  animation: sparkleRotate 4s linear infinite;
}
.sparkle-divider .line {
  flex: 1;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(181, 136, 247, 0.25),
    transparent
  );
}

/* Premium Statistics Container */
.stats-card {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: center;
  gap: 12px;
  padding: 1rem 1.5rem;
  width: 100%;
  max-width: 450px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: 0 10px 30px var(--shadow);
}
.stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 0;
}
.stat-num {
  font-size: clamp(1.2rem, 5vw, 1.8rem);
  font-weight: 700;
  display: block;
  line-height: 1.2;
  color: var(--text-light);
  letter-spacing: -0.5px;
}
.stat-label {
  font-size: clamp(9px, 2.5vw, 11px);
  letter-spacing: 0.08em;
  white-space: nowrap;
  color: #888;
  margin-top: 2px;
  text-transform: uppercase;
}
.stat-divider {
  width: 1px;
  height: 38px;
  background: rgba(255, 255, 255, 0.08);
}

/* ── Right Column: Halo Ring Focus ── */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  animation: visualIn 1.1s cubic-bezier(0.25, 0.8, 0.25, 1) both;
}

@keyframes visualIn {
  from {
    transform: translateX(40px) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
}

.halo-container {
  position: relative;
  width: 320px;
  height: 320px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Layers of premium rotating neon rings */
.halo-glow-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.ring-1 {
  inset: -8px;
  background: conic-gradient(
    from 0deg,
    var(--poki-pink) 0%,
    var(--poki-lilac) 35%,
    var(--poki-aqua) 70%,
    var(--poki-peach) 85%,
    var(--poki-pink) 100%
  );
  animation: ringRotate 8s linear infinite;
  z-index: 0;
}
.ring-2 {
  inset: -8px;
  background: conic-gradient(
    from 180deg,
    var(--poki-pink) 0%,
    var(--poki-lilac) 35%,
    var(--poki-aqua) 70%,
    var(--poki-peach) 85%,
    var(--poki-pink) 100%
  );
  animation: ringRotate 12s linear infinite reverse;
  filter: blur(14px);
  opacity: 0.65;
  z-index: 0;
}
.ring-3 {
  inset: -16px;
  background: radial-gradient(
    circle,
    rgba(255, 117, 160, 0.3) 0%,
    transparent 70%
  );
  filter: blur(28px);
  animation: ringBreathing 4s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes ringRotate {
  to {
    transform: rotate(360deg);
  }
}
@keyframes ringBreathing {
  0% {
    transform: scale(0.95);
    opacity: 0.4;
  }
  100% {
    transform: scale(1.05);
    opacity: 0.85;
  }
}

/* Avatar Photo Wrapper */
.halo-avatar-wrapper {
  position: relative;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  z-index: 1;
  background: var(--poki-dark);
  padding: 6px;
  overflow: hidden; /* Clips the rotating pseudo-element to stay circular */
}

/* High-performance rotating gradient border */
.halo-avatar-wrapper::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    var(--poki-pink) 0%,
    var(--poki-lilac) 25%,
    var(--poki-aqua) 50%,
    var(--poki-peach) 75%,
    var(--poki-pink) 100%
  );
  animation: borderRotate 6s linear infinite;
  z-index: -1;
  border-radius: 50%;
  will-change: transform;
}

@keyframes borderRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.halo-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--poki-dark);
  display: block;
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.halo-avatar-wrapper:hover .halo-avatar {
  transform: scale(1.05);
}

.halo-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 2;
  font-size: 26px;
  background: rgba(20, 16, 38, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px var(--shadow);
  animation: badgeFloating 3s ease-in-out infinite;
}

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

/* Instagram Note Speech/Thought Bubble style on top-left of the avatar */
.instagram-note-bubble {
  position: absolute;
  top: -8px;
  left: -22px;
  background: rgba(18, 14, 28, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(118, 111, 172, 0.35);
  border-radius: 20px;
  padding: 10px 16px;
  font-family: 'Fira Code', monospace;
  font-size: 13px;
  font-weight: 500;
  color: var(--poki-pink);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.05);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: noteFloating 4s ease-in-out infinite;
}

@keyframes noteFloating {
  0%, 100% {
    transform: translateY(0) rotate(-1.5deg);
  }
  50% {
    transform: translateY(-6px) rotate(1.5deg);
  }
}

.instagram-note-tail-1 {
  position: absolute;
  bottom: -6px;
  left: 28px;
  width: 10px;
  height: 10px;
  background: rgba(18, 14, 28, 0.9);
  border-right: 1px solid rgba(118, 111, 172, 0.35);
  border-bottom: 1px solid rgba(118, 111, 172, 0.35);
  border-radius: 50%;
}

.instagram-note-tail-2 {
  position: absolute;
  bottom: -11px;
  left: 23px;
  width: 5px;
  height: 5px;
  background: rgba(18, 14, 28, 0.9);
  border-right: 1px solid rgba(118, 111, 172, 0.35);
  border-bottom: 1px solid rgba(118, 111, 172, 0.35);
  border-radius: 50%;
}

/* ── Tab 2: About / Information Panel (Dashboard styling) ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
  margin-top: auto;
  margin-bottom: auto;
}

/* Glassmorphic About Dashboard Cards */
.about-card {
  background: var(--glass-bg);
  border: 1.5px solid var(--glass-border);
  border-radius: 24px;
  padding: 26px;
  margin-bottom: 24px;
  box-shadow:
    0 12px 36px var(--shadow),
    0 2px 8px rgba(255, 255, 255, 0.03) inset;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
}

.about-card:hover {
  transform: translateY(-4px) scale(1.008);
  border-color: rgba(255, 117, 160, 0.24);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.68),
    0 0 20px rgba(181, 136, 247, 0.08);
}

.about-card h3 {
  font-size: clamp(1.1rem, 4.5vw, 1.35rem);
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.2px;
}

.card-icon {
  font-size: 21px;
}

/* Anime Corner Listing */
.anime-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.anime-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 12px 16px;
  border-radius: 14px;
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.anime-item:hover {
  background: rgba(255, 117, 160, 0.06);
  border-color: rgba(255, 117, 160, 0.2);
  transform: translateX(5px);
}

.anime-bullet {
  font-size: 16px;
}

.anime-info h4 {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-light);
}

.anime-info p {
  font-size: 12px;
  color: var(--text-soft);
  margin-top: 2px;
}

/* Overthinking Section */
.overthink-quote {
  font-style: italic;
  font-size: 14px;
  color: var(--poki-peach);
  line-height: 1.55;
  margin-bottom: 18px;
  background: rgba(255, 211, 182, 0.03);
  border-left: 3px solid var(--poki-peach);
  padding: 10px 14px;
  border-radius: 4px 12px 12px 4px;
}

.overthink-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.overthink-stats .pill {
  font-size: 11.5px;
  font-weight: 600;
  background: rgba(181, 136, 247, 0.12);
  color: var(--poki-lilac);
  border: 1px solid rgba(181, 136, 247, 0.2);
  padding: 5px 12px;
  border-radius: 99px;
}

/* Student & Traits widgets */
.student-text {
  font-size: 14.5px;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 20px;
}

.school-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  background: rgba(122, 209, 255, 0.12);
  color: var(--poki-aqua);
  border: 1px solid rgba(122, 209, 255, 0.2);
  padding: 6px 16px;
  border-radius: 99px;
}

.traits-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.trait-tag {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 99px;
}
.trait-tag.pink {
  background: rgba(255, 117, 160, 0.1);
  color: var(--poki-pink);
  border: 1px solid rgba(255, 117, 160, 0.2);
}
.trait-tag.lilac {
  background: rgba(181, 136, 247, 0.1);
  color: var(--poki-lilac);
  border: 1px solid rgba(181, 136, 247, 0.2);
}
.trait-tag.aqua {
  background: rgba(122, 209, 255, 0.1);
  color: var(--poki-aqua);
  border: 1px solid rgba(122, 209, 255, 0.2);
}

/* ── iOS-like Glassmorphic Bottom Navigation Dock ── */
.ios-dock-wrapper {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  animation: dockIn 1s cubic-bezier(0.25, 0.8, 0.25, 1) both;
  width: 480px;
  max-width: calc(100% - 32px);
  box-sizing: border-box;
}

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

.ios-dock {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(13, 10, 27, 0.65); /* Made slightly less transparent to keep contrast high */
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  padding: 10px 16px;
  border-radius: 28px;
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.65),
    0 2px 10px rgba(255, 255, 255, 0.03) inset,
    0 0 0 1px rgba(181, 136, 247, 0.05);
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.ios-dock:hover {
  background: rgba(13, 10, 27, 0.5);
  border-color: rgba(255, 117, 160, 0.22);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.75),
    0 0 25px rgba(181, 136, 247, 0.12);
}

.dock-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  color: var(--text-mid);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.015);
  border: 1.5px solid rgba(255, 255, 255, 0.03);
  transition: all 0.3s cubic-bezier(0.25, 1.25, 0.35, 1.25);
  outline: none;
}

.dock-item svg {
  width: 22px;
  height: 22px;
  transition: all 0.3s cubic-bezier(0.25, 1.25, 0.35, 1.25);
}

/* iOS Magnification Hover Effect - Desktop Hover Only to Prevent Sticky Taps on Mobile */
@media (hover: hover) {
  .dock-item:hover {
    transform: translateY(-10px) scale(1.26);
    color: var(--poki-pink);
    background: rgba(255, 117, 160, 0.08);
    border-color: rgba(255, 117, 160, 0.3);
    box-shadow:
      0 10px 24px rgba(255, 117, 160, 0.25),
      0 0 12px rgba(255, 117, 160, 0.1) inset;
  }
  .dock-item:hover svg {
    transform: scale(1.1);
  }
  .dock-item:hover::after {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Active Mobile Touch Tap Shrinkage */
.dock-item:active {
  transform: scale(0.92);
  background: rgba(255, 117, 160, 0.12);
  transition: transform 0.1s;
}

/* Active iOS style dot */
.dock-item .dock-dot {
  position: absolute;
  bottom: 5px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--poki-pink);
  box-shadow: 0 0 6px var(--poki-pink);
  opacity: 0;
  transform: scale(0);
  transition: all 0.25s ease;
}
.dock-item.active {
  color: var(--poki-pink);
  background: rgba(255, 117, 160, 0.04);
  border-color: rgba(255, 117, 160, 0.15);
}
.dock-item.active .dock-dot {
  opacity: 1;
  transform: scale(1);
}

.dock-separator {
  width: 1px;
  height: 34px;
  background: rgba(255, 255, 255, 0.08);
  margin: 0 4px;
}

/* ── Redesigned Admin Panel Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 6, 14, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: rgba(20, 17, 38, 0.8);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.8),
    0 0 40px rgba(181, 136, 247, 0.05);
  transform: translateY(30px) scale(0.96);
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 30px 0;
  margin-bottom: 22px;
}

.modal-header h2 {
  font-size: clamp(1.15rem, 5vw, 1.45rem);
  font-weight: 700;
  color: var(--text-light);
  background: linear-gradient(
    135deg,
    var(--poki-pink) 0%,
    var(--poki-lilac) 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.modal-close {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
}
.modal-close:hover {
  background: rgba(255, 117, 160, 0.15);
  border-color: var(--poki-pink);
  color: var(--poki-pink);
  transform: scale(1.1);
}

.modal-body {
  padding: 0 30px 30px;
}

#password-gate {
  text-align: center;
  padding: 20px 0;
}
.gate-label {
  font-size: 15px;
  color: var(--text-mid);
  margin-bottom: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}

.modal-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 1.5px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--text-light);
  outline: none;
  transition:
    border-color 0.25s,
    box-shadow 0.25s;
}

.modal-input:focus {
  border-color: var(--poki-pink);
  box-shadow: 0 0 0 3px rgba(255, 117, 160, 0.15);
}

.save-btn {
  width: 100%;
  margin-top: 20px;
  padding: 14px;
  background: linear-gradient(
    135deg,
    var(--poki-pink) 0%,
    var(--poki-lilac) 100%
  );
  border: none;
  border-radius: 14px;
  color: white;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 6px 20px rgba(255, 117, 160, 0.25);
}

.save-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(255, 117, 160, 0.45);
}

.saved-msg {
  text-align: center;
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--poki-aqua);
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s;
}

.saved-msg.show {
  opacity: 1;
}

/* ── Scrollbars ── */
.modal::-webkit-scrollbar {
  width: 6px;
}
.modal::-webkit-scrollbar-track {
  background: transparent;
}
.modal::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
}

/* ── Responsive Mobile Styling ── */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
    margin-top: 20px;
  }
  .welcome-pill {
    margin-bottom: 20px;
  }
  .hero-title {
    font-size: 40px;
  }
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
    font-size: 16.5px;
  }
  .tags-row {
    justify-content: center;
  }
  .social-actions {
    justify-content: center;
  }
  .sparkle-divider {
    margin-left: auto;
    margin-right: auto;
  }
  .stats-card {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-visual {
    order: -1; /* Place visual above content on mobile */
  }
  .halo-container {
    width: 260px;
    height: 260px;
  }
  .halo-avatar-wrapper {
    width: 240px;
    height: 240px;
  }
  .halo-badge {
    bottom: 8px;
    right: 8px;
    width: 42px;
    height: 42px;
    font-size: 22px;
  }

  /* Stacking the About Dashboard columns cleanly */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 20px;
  }
}

@media (max-width: 768px) {
  .beams-bg-canvas,
  .plasma-container,
  .bg-particles,
  .pixel-blast-container {
    opacity: 0.6;
    will-change: transform;
    transform: translate3d(0, 0, 0);
  }
}

@media (max-width: 480px) {
  .app-container {
    padding: 20px 15px 140px; /* Secure bottom padding for mobile scroll clearance */
  }
  .header {
    margin-bottom: 30px;
  }
  .logo {
    font-size: 19px;
  }
  .hero-title {
    font-size: 32px;
  }
  .stats-card {
    padding: 0.8rem 1rem;
    gap: 8px;
  }
  .halo-container {
    width: 220px;
    height: 220px;
  }
  .halo-avatar-wrapper {
    width: 200px;
    height: 200px;
    padding: 5px;
  }
  .halo-badge {
    bottom: 6px;
    right: 6px;
    width: 38px;
    height: 38px;
    font-size: 20px;
  }
  .ios-dock {
    gap: 8px;
    padding: 8px 12px;
    border-radius: 22px;
  }
  .dock-item {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }
  .dock-item svg {
    width: 19px;
    height: 19px;
  }
  .dock-separator {
    height: 28px;
  }
  .modal-body {
    padding: 0 20px 20px;
  }
  .modal-header {
    padding: 20px 20px 0;
  }
}

/* ── Plasma Background ── */
.plasma-container {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.8;
}

/* ── PixelBlast Interactive Background ── */
.pixel-blast-container {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
}

/* ── Fall-through pointer-events for empty spaces of the app-container ── */
.app-container {
  pointer-events: none;
}
.header, .tab-content-wrapper {
  pointer-events: auto;
}

/* ── Responsive Background Selection ── */
/* PixelBlast is the sole high-performance background element, displayed everywhere */
.pixel-blast-container {
  display: block !important;
}
.beams-bg-canvas,
.plasma-container,
.bg-particles {
  display: none !important;
}

/* ── Enhanced About Tab Sections ── */
.anime-footer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: var(--text-mid);
}

.tools-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tool-tag {
  background: rgba(122, 209, 255, 0.08);
  border: 1px solid rgba(122, 209, 255, 0.15);
  color: var(--poki-aqua);
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 500;
}

/* Music Player Widget */
.music-player {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 12px 16px;
  border-radius: 16px;
}

.song-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-light);
}

.song-artist {
  font-size: 12px;
  color: var(--text-soft);
}

.music-visualizer {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 20px;
}

.music-visualizer .bar {
  width: 3px;
  background: var(--poki-pink);
  border-radius: 2px;
  animation: visualizer 0.6s ease-in-out infinite alternate;
}

.music-visualizer .bar:nth-child(2) {
  animation-delay: 0.1s;
  height: 60%;
}
.music-visualizer .bar:nth-child(3) {
  animation-delay: 0.2s;
  height: 80%;
}
.music-visualizer .bar:nth-child(4) {
  animation-delay: 0.3s;
  height: 40%;
}

@keyframes visualizer {
  0% {
    height: 30%;
  }
  100% {
    height: 100%;
  }
}

/* ── Contact Tab Grid ── */
.contact-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
}

.contact-card {
  background: var(--glass-bg);
  border: 1.5px solid var(--glass-border);
  border-radius: 32px;
  padding: 40px;
  max-width: 500px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 50px var(--shadow);
  animation: contactIn 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) both;
}

@keyframes contactIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.contact-header {
  margin-bottom: 30px;
}

.contact-sparkle {
  color: var(--poki-pink);
  font-size: 24px;
  display: block;
  margin-bottom: 12px;
  animation: sparkleRotate 4s linear infinite;
}

.contact-header h2 {
  font-size: clamp(1.5rem, 5.5vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--poki-pink), var(--poki-lilac));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact-header p {
  color: var(--text-mid);
  font-size: 16px;
  line-height: 1.5;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-soft);
  font-weight: 700;
}

.info-value, button.info-value {
  font-size: 18px;
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.25s, transform 0.25s;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  font-family: inherit;
  font-weight: inherit;
  cursor: pointer;
}

.info-value:hover, button.info-value:hover {
  color: var(--poki-pink);
}

.contact-actions {
  display: flex;
  justify-content: center;
}

/* ── Folder Card Styles ── */
.folder-card {
  text-align: center;
}

.folder-card-hint {
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 20px;
  line-height: 1.5;
}

.folder-card .folder-section {
  display: flex;
  justify-content: center;
  padding: 30px 0 10px;
}

/* ── Easter Egg: Konami Code Secret Overlay ── */
.easter-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(8, 6, 14, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.easter-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.easter-content {
  text-align: center;
  position: relative;
  z-index: 2;
  animation: easterBounce 0.6s cubic-bezier(0.25, 1.25, 0.35, 1.25) both;
  max-width: 480px;
  padding: 40px;
}

@keyframes easterBounce {
  from {
    transform: scale(0.5) rotate(-5deg);
    opacity: 0;
  }
  to {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

.easter-title {
  font-size: 36px;
  font-weight: 800;
  background: linear-gradient(
    135deg,
    var(--poki-pink) 0%,
    var(--poki-lilac) 50%,
    var(--poki-aqua) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
  animation: easterShimmer 3s ease-in-out infinite;
}

@keyframes easterShimmer {
  0%,
  100% {
    filter: hue-rotate(0deg);
  }
  50% {
    filter: hue-rotate(30deg);
  }
}

.easter-text {
  font-size: 18px;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 30px;
}

.easter-close {
  background: linear-gradient(
    135deg,
    var(--poki-pink) 0%,
    var(--poki-lilac) 100%
  );
  border: none;
  border-radius: 99px;
  padding: 14px 36px;
  color: white;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro", "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 8px 30px rgba(255, 117, 160, 0.3);
}

.easter-close:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 40px rgba(255, 117, 160, 0.5);
}

.easter-emoji-rain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.easter-emoji-rain .rain-drop {
  position: absolute;
  top: -40px;
  font-size: 28px;
  animation: emojiRain linear forwards;
  opacity: 0.8;
}

@keyframes emojiRain {
  0% {
    transform: translateY(-40px) rotate(0deg);
    opacity: 0.9;
  }
  100% {
    transform: translateY(110vh) rotate(360deg);
    opacity: 0;
  }
}

/* ── Easter Egg: Heart Explosion ── */
.heart-explosion-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 8000;
  overflow: hidden;
}

.heart-float {
  position: absolute;
  font-size: 24px;
  animation: heartFloat 2s ease-out forwards;
  pointer-events: none;
  opacity: 0;
}

@keyframes heartFloat {
  0% {
    transform: translateY(0) scale(0);
    opacity: 0;
  }
  15% {
    transform: translateY(-20px) scale(1.2);
    opacity: 1;
  }
  100% {
    transform: translateY(-200px) scale(0.3);
    opacity: 0;
  }
}

/* ── Easter Egg: Secret Toast ── */
.secret-toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: rgba(20, 17, 38, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(255, 117, 160, 0.3);
  border-radius: 16px;
  padding: 14px 28px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro", "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-light);
  z-index: 8500;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.5),
    0 0 15px rgba(255, 117, 160, 0.15);
}

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

/* ── Easter Egg: Avatar Wiggle ── */
@keyframes avatarWiggle {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
  }
  10% {
    transform: scale(1.1) rotate(-5deg);
  }
  20% {
    transform: scale(1.15) rotate(5deg);
  }
  30% {
    transform: scale(1.1) rotate(-3deg);
  }
  40% {
    transform: scale(1.05) rotate(3deg);
  }
  50% {
    transform: scale(1) rotate(0deg);
  }
}

.avatar-wiggle .halo-avatar {
  animation: avatarWiggle 1s ease-in-out !important;
}

/* ── Easter Egg: Rainbow Border Flash ── */
@keyframes rainbowBorder {
  0% {
    border-color: var(--poki-pink);
  }
  25% {
    border-color: var(--poki-lilac);
  }
  50% {
    border-color: var(--poki-aqua);
  }
  75% {
    border-color: var(--poki-peach);
  }
  100% {
    border-color: var(--poki-pink);
  }
}

.rainbow-flash {
  animation: rainbowBorder 1s linear 3 !important;
}

/* ── Easter Egg: Matrix Rain ── */
.matrix-rain-char {
  position: fixed;
  font-family: "Fira Code", monospace;
  font-size: 16px;
  color: var(--poki-pink);
  opacity: 0;
  pointer-events: none;
  z-index: 7000;
  text-shadow: 0 0 8px var(--poki-pink);
  animation: matrixFall linear forwards;
}

@keyframes matrixFall {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    opacity: 0;
    transform: translateY(100vh);
  }
}

/* ── Terminal and CRT Aura Aesthetic Styles ── */

/* CRT Retro Screen Layer */
.crt-vignette {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle, rgba(0, 0, 0, 0) 60%, rgba(5, 3, 10, 0.55) 100%);
  pointer-events: none;
  z-index: 10;
}

.crt-scanlines {
  position: fixed;
  inset: 0;
  background: linear-gradient(
    rgba(18, 16, 25, 0) 50%,
    rgba(0, 0, 0, 0.28) 50%
  );
  background-size: 100% 4px;
  pointer-events: none;
  z-index: 11;
  opacity: 0.18;
}

.crt-scanline-sweep {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 120px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(118, 111, 172, 0.12) 50%,
    transparent
  );
  pointer-events: none;
  z-index: 12;
  animation: scanlineSweep 2.5s cubic-bezier(0.25, 1, 0.5, 1) 1 forwards;
}

@keyframes scanlineSweep {
  0% {
    transform: translateY(-120px);
  }
  100% {
    transform: translateY(110vh);
  }
}

/* Redesigned Terminal Status Pill */
.terminal-status-pill {
  font-family: 'Fira Code', monospace;
  background: rgba(118, 111, 172, 0.07) !important;
  border: 1px solid rgba(118, 111, 172, 0.25) !important;
  color: var(--poki-pink) !important;
  box-shadow: 0 0 15px rgba(118, 111, 172, 0.1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.terminal-pulse-indicator {
  color: #10b981;
  font-size: 8px;
  animation: pulseIndicator 1.8s infinite ease-in-out;
}

@keyframes pulseIndicator {
  0%, 100% {
    opacity: 0.3;
    transform: scale(0.9);
    filter: drop-shadow(0 0 0px #10b981);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
    filter: drop-shadow(0 0 4px #10b981);
  }
}

.terminal-lbl {
  color: var(--poki-aqua);
  font-weight: 600;
  margin-right: 2px;
}

/* Core Terminal Dashboard Widget */
.tech-terminal-box {
  margin-top: 30px;
  background: rgba(10, 8, 18, 0.65);
  border: 1px solid rgba(118, 111, 172, 0.2);
  border-radius: 12px;
  width: 100%;
  max-width: 450px;
  box-shadow: 0 15px 35px var(--shadow), inset 0 1px 2px rgba(255, 255, 255, 0.05);
  overflow: hidden;
  font-family: 'Fira Code', 'Courier New', Courier, monospace;
  animation: terminalFadeIn 1s cubic-bezier(0.25, 0.8, 0.25, 1) both;
}

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

.tech-terminal-header {
  background: rgba(18, 14, 28, 0.85);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(118, 111, 172, 0.15);
}

.tech-dots {
  display: flex;
  gap: 6px;
}

.tech-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  opacity: 0.75;
}

.dot-r { background-color: #ff5f56; }
.dot-y { background-color: #ffbd2e; }
.dot-g { background-color: #27c93f; }

.tech-terminal-title {
  color: var(--text-soft);
  font-size: 11px;
  letter-spacing: 0.5px;
}

.tech-system-active {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  color: #10b981;
  letter-spacing: 1px;
}

.active-pulse {
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 6px #10b981;
  animation: blinkFast 1s steps(2, start) infinite;
}

@keyframes blinkFast {
  to { visibility: hidden; }
}

.tech-terminal-body {
  padding: 16px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--poki-pink);
  background: radial-gradient(circle at 10% 10%, rgba(118, 111, 172, 0.05) 0%, transparent 80%);
  min-height: 260px; /* Base safety min-height large enough to fit all lines fully typed */
  overflow: hidden;
}

.term-line {
  margin-bottom: 6px;
}

.term-accent-color {
  color: var(--poki-aqua);
}

.term-success-color {
  color: #10b981;
  font-weight: 600;
}

.term-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.04);
  padding: 4px 0;
}

.term-label {
  color: var(--text-soft);
  font-weight: 500;
}

.term-value {
  color: var(--text-light);
  text-align: right;
  font-weight: 500;
}

.text-lavender {
  color: var(--poki-pink);
}

.text-aqua {
  color: var(--poki-aqua);
}

.term-progress {
  color: #10b981;
  font-weight: 600;
  letter-spacing: -1.5px;
  text-shadow: 0 0 5px rgba(16, 185, 129, 0.3);
}

.term-line-cursor {
  margin-top: 10px;
  color: var(--poki-lilac);
}

.term-blinking-cursor {
  background-color: var(--poki-lilac);
  color: var(--poki-lilac);
  animation: cursorBlink 1s infinite;
}

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

/* Subtle holographic glitch glow details on hover of specific containers */
.about-card:hover, .stats-card:hover {
  outline: 1px solid rgba(118, 111, 172, 0.35);
  box-shadow: 0 10px 40px rgba(118, 111, 172, 0.08), 0 0 25px rgba(118, 111, 172, 0.05);
}

/* --- Section Layout Grids & Responsiveness --- */
.anime-grid, .tools-list {
  display: grid !important;
  gap: 16px !important;
}

@media (max-width: 599px) {
  .anime-grid, .tools-list {
    grid-template-columns: 1fr !important;
  }
}

@media (min-width: 600px) and (max-width: 1023px) {
  .anime-grid, .tools-list {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (min-width: 1024px) {
  .anime-grid, .tools-list {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* --- Hero Section Mobile Centering --- */
@media (max-width: 768px) {
  .hero-grid {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }
  .hero-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .halo-container, .halo-avatar-wrapper {
    margin: 0 auto !important;
    max-width: 260px !important;
    width: 100% !important;
  }
}

/* --- Tech Terminal Mobile Scroll-Safety --- */
@media (max-width: 768px) {
  .tech-terminal-box {
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .tech-terminal-body {
    overflow-x: auto !important;
    font-size: clamp(10px, 2.5vw, 13px) !important;
    max-width: 100% !important;
  }
}

/* --- Accessible Interactive Tap Targets --- */
a, button, .btn-glow, .social-icon-btn, .tab-btn, .modal-close {
  min-width: 44px;
  min-height: 44px;
}

@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-delay: -1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    background-attachment: scroll !important;
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }
}

/* --- Scroll Reveal Hardware-Accelerated Animations --- */
.reveal-on-scroll {
  transform: translateY(30px) scale(0.96);
  opacity: 0;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.revealed {
  transform: translateY(0) scale(1) !important;
  opacity: 1 !important;
}

/* --- Dot Grid Layer (Desktop Parallax) --- */
.dot-grid-layer {
  position: fixed;
  top: -10%;
  left: -10%;
  width: 120vw;
  height: 120vh;
  z-index: -2;
  background-image: radial-gradient(rgba(213, 206, 227, 0.08) 1.5px, transparent 1.5px);
  background-size: 32px 32px;
  pointer-events: none;
  opacity: 0.8;
  will-change: transform;
}
