@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@300;400;500;600;700&display=swap");


/* ═══════════════════════════════════════════════
   CYBERPUNK PROFILE — GLOBAL STYLES
   ═══════════════════════════════════════════════ */

:root {
  --bg: #0a0a0f;
  --bg-deep: #050508;
  --surface: rgba(15, 15, 25, 0.85);
  --surface-solid: #0f0f19;
  --surface-hover: rgba(20, 20, 35, 0.95);
  --glass: rgba(15, 15, 30, 0.6);
  --border: rgba(0, 255, 170, 0.08);
  --border-hover: rgba(0, 255, 170, 0.3);
  --ink: #e0e8f0;
  --ink-dim: #7a8a9a;
  --ink-muted: #4a5568;
  --neon: #00ffaa;
  --neon-rgb: 0, 255, 170;
  --neon-alt: #00d4ff;
  --neon-alt-rgb: 0, 212, 255;
  --neon-pink: #ff006e;
  --neon-pink-rgb: 255, 0, 110;
  --neon-yellow: #ffd600;
  --mono: "JetBrains Mono", "Fira Code", "SF Mono", monospace;
  --sans: "Space Grotesk", "Inter", system-ui, sans-serif;
  --radius: 4px;
  --radius-lg: 8px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  width: 100%;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* ─── Animated Grid Background ─── */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(0, 255, 170, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 170, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  animation: gridPulse 8s ease-in-out infinite;
}

/* ─── Scanline Overlay ─── */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
}

/* ─── Glow Orbs ─── */
.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

.glow-orb--1 {
  width: 500px;
  height: 500px;
  background: rgba(var(--neon-rgb), 0.08);
  top: -10%;
  left: -5%;
  animation: orbFloat1 20s ease-in-out infinite;
}

.glow-orb--2 {
  width: 400px;
  height: 400px;
  background: rgba(var(--neon-alt-rgb), 0.06);
  bottom: -10%;
  right: -5%;
  animation: orbFloat2 25s ease-in-out infinite;
}

.glow-orb--3 {
  width: 300px;
  height: 300px;
  background: rgba(var(--neon-pink-rgb), 0.04);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: orbFloat3 18s ease-in-out infinite;
}

/* ─── Main Layout ─── */
.cyber-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px 80px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* ─── Terminal Header ─── */
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-muted);
}

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

.terminal-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: block;
}

.terminal-dots span:nth-child(1) {
  background: #ff5f57;
}
.terminal-dots span:nth-child(2) {
  background: #ffbd2e;
}
.terminal-dots span:nth-child(3) {
  background: #28c840;
}

.terminal-path {
  color: var(--neon);
  margin-left: 8px;
}

.terminal-path::before {
  content: "~/";
  color: var(--ink-muted);
}

/* ─── Hero Section ─── */
.hero {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: none;
  padding: 0;
  overflow: hidden;
  backdrop-filter: blur(20px);
}

.hero-banner {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.4) saturate(0.8) hue-rotate(10deg);
  transition: filter 0.8s var(--ease);
}

.hero:hover .hero-banner img {
  filter: brightness(0.5) saturate(1) hue-rotate(0deg);
}

.hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, transparent 30%, var(--bg-deep) 100%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0, 255, 170, 0.015) 2px,
      rgba(0, 255, 170, 0.015) 4px
    );
}

.hero-content {
  position: relative;
  padding: 0 32px 32px;
  margin-top: -60px;
  z-index: 2;
}

.hero-avatar-row {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 20px;
}

.avatar-container {
  position: relative;
  flex-shrink: 0;
}

.avatar-img {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-lg);
  border: 2px solid var(--neon);
  background: var(--bg-deep);
  display: block;
  box-shadow:
    0 0 20px rgba(var(--neon-rgb), 0.2),
    0 0 60px rgba(var(--neon-rgb), 0.05);
  transition: all 0.5s var(--ease);
}

.avatar-container:hover .avatar-img {
  box-shadow:
    0 0 30px rgba(var(--neon-rgb), 0.4),
    0 0 80px rgba(var(--neon-rgb), 0.1);
  transform: scale(1.03);
}

.avatar-fallback {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-lg);
  border: 2px solid var(--neon);
  background: linear-gradient(
    135deg,
    rgba(var(--neon-rgb), 0.15),
    rgba(var(--neon-alt-rgb), 0.1)
  );
  color: var(--neon);
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 800;
  display: grid;
  place-items: center;
  text-shadow: 0 0 20px rgba(var(--neon-rgb), 0.6);
}

.hero-identity {
  padding-bottom: 8px;
}

.hero-name {
  font-family: var(--sans);
  font-size: 32px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1.1;
  position: relative;
}

.hero-name::after {
  content: "_";
  color: var(--neon);
  animation: cursorBlink 1s step-end infinite;
}

.hero-bio {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-dim);
  margin-top: 6px;
}

.hero-bio::before {
  content: "> ";
  color: var(--neon);
}

/* ─── Role Tags ─── */
.roles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.role-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid rgba(var(--neon-rgb), 0.2);
  background: rgba(var(--neon-rgb), 0.04);
  color: var(--neon);
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.role-chip:hover {
  background: rgba(var(--neon-rgb), 0.12);
  border-color: rgba(var(--neon-rgb), 0.5);
  transform: translateY(-1px);
}

/* ─── Section Panels ─── */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: none;
  backdrop-filter: blur(20px);
  overflow: hidden;
  transition: border-color 0.3s var(--ease);
}

.panel:last-child {
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.panel:hover {
  border-color: var(--border-hover);
}

.panel-head {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* .panel-head::before {
  content: "■";
  color: var(--neon);
  font-size: 8px;
  animation: dotPulse 2s ease-in-out infinite;
} */

.panel-head h2 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0;
}

.panel-head .count {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--neon);
  opacity: 0.5;
}

.panel-body {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* ─── Contact Items & Sliding Indicator ─── */
.contacts-list {
  position: relative;
}

.contact-indicator {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 0;
  height: 0;
  background: rgba(var(--neon-rgb), 0.05);
  border: 1px solid rgba(var(--neon-rgb), 0.22);
  border-radius: var(--radius);
  pointer-events: none;
  opacity: 0;
  transform: translateY(0);
  transition:
    transform 0.24s cubic-bezier(0.16, 1, 0.3, 1),
    height 0.24s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.2s ease;
  z-index: 0;
  box-shadow: 0 0 15px rgba(var(--neon-rgb), 0.08);
}

/* .contact-indicator::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 15%;
  height: 70%;
  width: 3px;
  background: var(--neon);
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 8px var(--neon);
} */

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  color: inherit;
  text-decoration: none;
  font-size: 13px;
  position: relative;
  z-index: 1;
  transition: color 0.25s var(--ease);
}

.contact-item .icon {
  width: 18px;
  height: 18px;
  color: var(--neon);
  flex-shrink: 0;
  font-size: 18px;
  filter: drop-shadow(0 0 4px rgba(var(--neon-rgb), 0.3));
  transition:
    transform 0.25s var(--ease),
    filter 0.25s var(--ease);
}

.contact-item span:not(.icon) {
  color: var(--ink-dim);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  word-break: break-word;
  transition: color 0.25s var(--ease);
}

.contact-item:hover span:not(.icon) {
  color: var(--ink);
}

/* ─── Project Items ─── */
.project-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  color: inherit;
  text-decoration: none;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
  height: 100%;
}

.project-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, rgba(var(--neon-rgb), 0.06), transparent);
  transition: width 0.5s var(--ease);
}

.project-item:hover {
  background: rgba(var(--neon-rgb), 0.03);
  border-color: rgba(var(--neon-rgb), 0.15);
}

.project-item:hover::before {
  width: 100%;
}

.project-name {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.project-desc {
  margin: 0;
  font-size: 12px;
  color: var(--ink-dim);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-grow: 1;
}

.project-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-left: 4px;
  margin-top: auto;
  padding-top: 10px;
}

.stat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-muted);
}

.stat .material-symbols-outlined {
  font-size: 14px;
  color: var(--neon);
  filter: drop-shadow(0 0 3px rgba(var(--neon-rgb), 0.3));
}

/* ─── Footer ─── */
.cyber-footer {
  text-align: center;
  padding: 40px 20px 20px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-muted);
  letter-spacing: 0.1em;
  opacity: 0.5;
}

/* ─── Layout: Two Column ─── */
.content-grid {
  display: flex;
  flex-direction: column;
  border-top: none;
}

.content-grid > .panel {
  border-top: none;
}

@media (min-width: 768px) {
  .content-grid {
    flex-direction: row;
  }
  .content-grid > .panel-contacts {
    width: 320px;
    flex-shrink: 0;
    border-right: 1px solid var(--border);
    border-radius: 0 0 0 var(--radius-lg);
  }
  .content-grid > .panel-projects {
    flex: 1;
    border-radius: 0 0 var(--radius-lg) 0;
  }
  .content-grid > .panel-contacts.panel:last-child,
  .content-grid > .panel-projects.panel:last-child {
    border-radius: 0 0 var(--radius-lg) 0;
  }
  .content-grid > .panel:first-child:last-child {
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }
}

/* ─── Projects Grid on Desktop ─── */
@media (min-width: 768px) {
  .panel-projects .panel-body {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2px;
  }
}

/* ─── Reveal on Scroll ─── */
.reveal {
  opacity: 0;
  transform: translateY(15px);
  transition:
    opacity 0.6s var(--ease),
    transform 0.6s var(--ease);
}

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

.reveal-delay-1 {
  transition-delay: 0.05s;
}
.reveal-delay-2 {
  transition-delay: 0.1s;
}
.reveal-delay-3 {
  transition-delay: 0.15s;
}
.reveal-delay-4 {
  transition-delay: 0.2s;
}

/* ─── Animations ─── */
@keyframes cursorBlink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

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

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

@keyframes orbFloat1 {
  0%,
  100% {
    transform: translate(0, 0);
  }
  33% {
    transform: translate(60px, 40px);
  }
  66% {
    transform: translate(-30px, 60px);
  }
}

@keyframes orbFloat2 {
  0%,
  100% {
    transform: translate(0, 0);
  }
  33% {
    transform: translate(-50px, -30px);
  }
  66% {
    transform: translate(40px, -50px);
  }
}

@keyframes orbFloat3 {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.3);
  }
}

@keyframes glitchFlicker {
  0%,
  100% {
    opacity: 1;
  }
  92% {
    opacity: 1;
  }
  93% {
    opacity: 0.8;
    transform: translateX(-2px);
  }
  94% {
    opacity: 1;
    transform: translateX(1px);
  }
  95% {
    opacity: 0.9;
    transform: translateX(0);
  }
}

/* ─── Typing Animation for Bio ─── */
.typing-text {
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid var(--neon);
  animation:
    typing 2s steps(40) 0.5s forwards,
    blinkCaret 0.75s step-end infinite;
  width: 0;
  display: inline-block;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blinkCaret {
  50% {
    border-color: transparent;
  }
}

/* ─── Reduced Motion ─── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ─── Mobile Responsive ─── */
@media (max-width: 767px) {
  .cyber-shell {
    padding: 12px 10px 60px;
  }

  .hero-content {
    padding: 0 20px 24px;
  }

  .hero-banner {
    height: 140px;
  }

  .hero-name {
    font-size: 24px;
  }

  .avatar-img,
  .avatar-fallback {
    width: 80px;
    height: 80px;
  }

  .hero-avatar-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* ═══════════════════════════════════════════════
   INTRO TERMINAL SPLASH (DEAD-CENTER)
   ═══════════════════════════════════════════════ */
.intro-screen {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  z-index: 9999999 !important;
  background: #080a0f !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  padding: 24px !important;
  box-sizing: border-box !important;
  pointer-events: all;
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.intro-screen.intro-done {
  opacity: 0 !important;
  filter: blur(16px) !important;
  pointer-events: none !important;
}

.intro-screen.intro-hidden {
  display: none !important;
}

.intro-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  max-width: 90vw;
  font-family: var(--mono);
}

.intro-line-1 {
  font-size: clamp(32px, 7vw, 56px);
  font-weight: 800;
  color: var(--neon);
  text-shadow: 0 0 24px rgba(var(--neon-rgb), 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  line-height: 1.2;
}

.intro-line-2 {
  font-size: clamp(14px, 2.5vw, 20px);
  font-weight: 500;
  color: var(--ink-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1.4;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.intro-prompt {
  color: var(--neon-alt);
  font-weight: 700;
  user-select: none;
}

.intro-cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--neon);
  box-shadow: 0 0 10px var(--neon);
  animation: introCursorBlink 0.7s step-end infinite;
  vertical-align: middle;
}

.intro-cursor.dim {
  background: var(--neon-alt);
  box-shadow: 0 0 10px var(--neon-alt);
}

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

.page-content {
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.page-content.page-visible {
  opacity: 1;
}
