/* =========================================================
   CHICATILO — GUNDAM STEEL  |  style.css (desktop)
   ========================================================= */

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

:root {
  --accent:       #3A73A3;
  --accent-deep:  #2A5F8A;
  --accent-dark:  #1A3F60;
  --accent-glow:  rgba(58,115,163,.35);
  --red:          #C14549;
  --red-deep:     #A33438;
  --yellow:       #DDA14C;
  --olive:        #4D5840;
  --bg:           #141A1E;
  --bg-alt:       #1C2428;
  --glass:        rgba(26,34,40,.82);
  --glass-edge:   rgba(58,115,163,.22);
  --text:         #F4EFEB;
  --text-muted:   #8A9BA8;
  --font:         'Fira Code', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---------- Background ---------- */
#background-container {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: -3;
  isolation: isolate;
}

#background-container::after {
  content: '';
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0,0,0,.06) 2px,
      rgba(0,0,0,.06) 4px
    ),
    linear-gradient(
      160deg,
      rgba(20,26,30,.88) 0%,
      rgba(28,36,42,.70) 50%,
      rgba(20,26,30,.90) 100%
    );
}

canvas#particles {
  position: fixed; top:0; left:0;
  width:100%; height:100%;
  z-index: 0;
  pointer-events: none;
}

/* ---------- Attack map (left fixed panel) ---------- */
.attack-map {
  position: fixed;
  top: 24px; left: 20px;
  width: 480px; height: 680px;
  border: 1px solid var(--glass-edge);
  box-shadow:
    0 0 0 1px rgba(58,115,163,.06),
    0 0 30px rgba(58,115,163,.12),
    inset 0 0 20px rgba(0,0,0,.4);
  border-radius: 10px;
  overflow: hidden;
  background: #0e1318;
  z-index: 10;
}
.attack-map::before {
  content: '// LIVE THREAT MAP';
  position: absolute; top:0; left:0; right:0;
  padding: 7px 14px;
  font-size: .7em;
  color: var(--accent);
  background: rgba(10,14,18,.9);
  border-bottom: 1px solid var(--glass-edge);
  letter-spacing: .12em;
  z-index: 1;
}
.attack-map iframe {
  width: 100%; height: 100%;
  border: none;
  margin-top: 28px;
  height: calc(100% - 28px);
}

/* ---------- OSINT panel (right fixed panel) ---------- */
.osint-panel {
  position: fixed;
  top: 24px; right: 20px;
  width: 300px;
  display: flex; flex-direction: column; gap: 10px;
  z-index: 10;
  contain: layout style;
}

.osint-box {
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  border-radius: 8px;
  padding: 12px 14px;
  box-shadow: 0 0 20px rgba(58,115,163,.08);
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}
.osint-box::before {
  content: '';
  position: absolute; top:0; left:0;
  width: 3px; height: 100%;
  background: linear-gradient(to bottom, var(--accent), transparent);
}
.osint-box h3 {
  font-size: .68em;
  letter-spacing: .18em;
  color: var(--accent);
  margin-bottom: 6px;
  opacity: .85;
}
.osint-box pre {
  font-size: .78em;
  color: var(--text-muted);
  white-space: pre-wrap;
  line-height: 1.5;
  text-shadow: 0 0 6px rgba(58,115,163,.25);
}

@media(max-width:1300px) { .osint-panel { display:none; } }
@media(max-width:1100px) { .attack-map { display:none; } }

/* ---------- Main container ---------- */
.container {
  position: relative; z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 60px 52px 80px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}

/* ---------- Avatar ---------- */
.avatar-wrap {
  position: relative;
  width: 160px; height: 160px;
  margin-bottom: 32px;
}
.avatar-ring {
  position: absolute; inset: -5px;
  border-radius: 18px;
  background: conic-gradient(
    from 0deg,
    transparent 0%,
    var(--accent-deep) 25%,
    transparent 50%,
    var(--accent) 75%,
    transparent 100%
  );
  animation: ringRotate 3s linear infinite;
  filter: blur(1px);
}
@keyframes ringRotate { to { transform: rotate(360deg); } }

.avatar-ring-inner {
  position: absolute; inset: 2px;
  border-radius: 15px;
  background: var(--bg);
}
.avatar {
  position: relative; z-index: 1;
  width: 100%; height: 100%;
  border-radius: 14px;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.avatar-wrap:hover .avatar { transform: scale(1.04); }
.avatar-wrap:hover .avatar-ring { animation-duration: 1.2s; }

/* ---------- Name & subtitle ---------- */
.name {
  font-size: 2.8em;
  letter-spacing: .25em;
  color: var(--accent);
  margin-bottom: 10px;
  text-shadow:
    0 0 10px rgba(58,115,163,.6),
    0 0 30px rgba(42,90,138,.3);
  animation: neonPulse 2.5s ease-in-out infinite alternate;
  position: relative;
}
@keyframes neonPulse {
  from { text-shadow: 0 0 8px rgba(58,115,163,.5), 0 0 20px rgba(42,90,138,.2); }
  to   { text-shadow: 0 0 16px rgba(58,115,163,.9), 0 0 40px rgba(42,90,138,.5), 0 0 70px rgba(42,90,138,.2); }
}

.subtitle {
  font-size: 1em;
  color: var(--text-muted);
  letter-spacing: .12em;
  margin-bottom: 36px;
}
.subtitle span { color: var(--yellow); opacity: .7; margin: 0 6px; }

/* Online indicator */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .72em;
  letter-spacing: .1em;
  color: #7BC67E;
  margin-bottom: 32px;
  background: rgba(123,198,126,.08);
  border: 1px solid rgba(123,198,126,.2);
  border-radius: 20px;
  padding: 4px 14px;
}
.status-eye {
  font-size: .8em;
  color: #7BC67E;
  filter: drop-shadow(0 0 4px #7BC67E);
  animation: statusPulse 2s ease-in-out infinite;
}
@keyframes statusPulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.5; transform:scale(.8); }
}

/* ---------- Section dividers ---------- */
.sec-divider {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 32px 0 24px;
}
.sec-divider span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(58,115,163,.4), transparent);
  position: relative;
}
.sec-divider i {
  font-size: .75em;
  color: var(--accent);
  opacity: .7;
  width: 28px; height: 28px;
  border: 1px solid var(--glass-edge);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  background: rgba(20,26,30,.85);
  box-shadow: 0 0 12px rgba(58,115,163,.12);
}

/* ---------- Bio card ---------- */
.bio-card {
  width: 100%;
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  border-radius: 12px;
  padding: 28px 30px;
  margin-bottom: 36px;
  backdrop-filter: blur(12px);
  box-shadow:
    0 0 40px rgba(58,115,163,.07),
    inset 0 1px 0 rgba(58,115,163,.1);
  text-align: left;
  position: relative;
  overflow: hidden;
}
.bio-card::after {
  content: '';
  position: absolute; bottom:0; left:0; right:0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-deep), transparent);
  opacity: .4;
}

#bio { font-size: .88em; line-height: 1.8; }
#bio.bio-rendered { animation: fadeUp .5s ease forwards; }
@keyframes fadeUp {
  from { opacity:0; transform:translateY(8px); }
  to   { opacity:1; transform:translateY(0); }
}

/* Markdown inside bio */
#bio h1,#bio h2,#bio h3,#bio h4 {
  font-family: var(--font);
  color: var(--accent);
  margin: 1.3em 0 .5em;
  text-shadow: 0 0 8px rgba(58,115,163,.3);
}
#bio h1 { font-size:1.25em; border-bottom:1px solid var(--glass-edge); padding-bottom:.3em; }
#bio h2 { font-size:1.1em; border-bottom:1px solid rgba(58,115,163,.1); padding-bottom:.2em; }
#bio h3 { font-size:.97em; color:#78A8CC; }
#bio p  { margin:.55em 0; color: var(--text); }
#bio strong { color: var(--yellow); font-weight:600; }
#bio em    { color:#9BC0D8; font-style:italic; }
#bio hr {
  border:none; border-top:1px solid var(--glass-edge);
  margin:1.1em 0;
}
#bio ul,#bio ol { padding-left:1.5em; margin:.5em 0; }
#bio li { margin:.22em 0; }
#bio ul li::marker,#bio ol li::marker { color: var(--accent); }
#bio code {
  background: rgba(58,115,163,.12);
  border: 1px solid rgba(58,115,163,.22);
  border-radius: 3px;
  padding: .1em .4em;
  font-size: .88em;
  color: var(--accent);
}
#bio pre {
  background: rgba(10,14,18,.9);
  border-left: 2px solid var(--accent-deep);
  border-radius: 4px;
  padding: 12px 16px;
  margin: .8em 0;
  overflow-x: auto;
}
#bio pre code {
  background:none; border:none; padding:0;
  color: #78A8CC; font-size:.85em; line-height:1.55;
}
#bio a { color:var(--accent); text-decoration:underline; text-underline-offset:3px; }
#bio a:hover { color:#78A8CC; }
#bio blockquote {
  border-left: 2px solid rgba(58,115,163,.4);
  margin:.8em 0; padding:.4em 1em;
  color: var(--text-muted); font-style:italic;
}

/* ---------- Skills ---------- */
.skills {
  width: 100%;
  margin-bottom: 36px;
  display: flex; flex-direction: column; gap: 10px;
}
.skill {
  display: grid;
  grid-template-columns: 120px 1fr 40px;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  border-radius: 8px;
  transition: border-color .2s, box-shadow .2s;
}
.skill:hover {
  border-color: rgba(58,115,163,.5);
  box-shadow: 0 0 20px rgba(58,115,163,.1);
}
.skill span {
  font-size: .82em;
  letter-spacing: .06em;
  color: var(--text-muted);
  text-align: left;
  transition: color .2s;
}
.skill:hover span { color: var(--accent); }
.skill .bar {
  background: rgba(255,255,255,.05);
  border-radius: 4px;
  height: 6px;
  overflow: hidden;
  position: relative;
}
.skill .bar div {
  height: 100%; width: 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent));
  transition: width .9s cubic-bezier(.4,0,.2,1);
  position: relative;
}
.skill .bar div::after {
  content:'';
  position:absolute; right:0; top:0; bottom:0;
  width: 4px;
  background: #fff;
  opacity: 0;
  border-radius: 2px;
  transition: opacity .2s;
}
.skill:hover .bar div::after { opacity:.5; }
.skill .pct {
  font-size: .75em;
  color: var(--yellow);
  text-align: right;
  opacity: .85;
}

/* ---------- Tech icons ---------- */
.technologies {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 36px;
  width: 100%;
}
.tech-icon-wrap {
  position: relative;
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  border-radius: 10px;
  transition: border-color .25s, box-shadow .25s, transform .25s;
  cursor: default;
}
.tech-icon-wrap:hover {
  border-color: rgba(58,115,163,.6);
  box-shadow: 0 0 24px rgba(58,115,163,.2);
  transform: translateY(-4px) scale(1.05);
}
.tech-icon {
  font-size: 24px;
  color: var(--accent-deep);
  transition: color .2s, text-shadow .2s;
}
.tech-icon-wrap:hover .tech-icon {
  color: var(--accent);
  text-shadow: 0 0 12px rgba(58,115,163,.7);
}
.tech-tip {
  position: absolute; bottom: calc(100% + 8px);
  left: 50%; transform: translateX(-50%);
  background: rgba(10,14,18,.95);
  border: 1px solid var(--glass-edge);
  color: var(--accent);
  font-size: .65em;
  letter-spacing: .08em;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s;
}
.tech-icon-wrap:hover .tech-tip { opacity:1; }

/* ---------- Socials ---------- */
.socials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  width: 100%;
  margin-bottom: 36px;
}
.socials a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  color: var(--text);
  text-decoration: none;
  font-size: .85em;
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  border-radius: 8px;
  transition: border-color .22s, color .22s, transform .22s, box-shadow .22s;
  position: relative;
  overflow: hidden;
}
.socials a::before {
  content:'';
  position:absolute; inset:0;
  background: linear-gradient(135deg, rgba(58,115,163,.07), transparent);
  opacity:0;
  transition: opacity .22s;
}
.socials a:hover::before { opacity:1; }
.socials a:hover {
  border-color: rgba(58,115,163,.5);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(58,115,163,.1);
}
.socials i {
  font-size: 1.15em;
  color: var(--accent);
  width: 20px; text-align: center;
  flex-shrink: 0;
}

/* ---------- Terminal ---------- */
.terminal {
  width: 100%;
  background: rgba(10,14,18,.92);
  border: 1px solid var(--glass-edge);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 36px;
  box-shadow:
    0 0 40px rgba(58,115,163,.07),
    inset 0 0 30px rgba(0,0,0,.3);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  background: rgba(20,26,30,.85);
  border-bottom: 1px solid var(--glass-edge);
}
.terminal-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
}
.terminal-dot.close  { background: #C14549; box-shadow: 0 0 6px rgba(193,69,73,.5); }
.terminal-dot.min    { background: #DDA14C; box-shadow: 0 0 6px rgba(221,161,76,.4); }
.terminal-dot.max    { background: #4D8C54; box-shadow: 0 0 6px rgba(77,140,84,.4); }
.terminal-title {
  flex:1; text-align:center;
  font-size: .7em;
  color: var(--text-muted);
  letter-spacing: .1em;
}
.term-text {
  font-family: var(--font);
  font-size: .88em;
  color: var(--accent);
  line-height: 1.6;
  white-space: pre-wrap;
  padding: 18px 20px;
  text-shadow: 0 0 4px rgba(58,115,163,.3);
}
.term-text::after {
  content:'█';
  animation: blink .9s step-start infinite;
  opacity:.7;
}
@keyframes blink { 0%,49%{opacity:.7;} 50%,100%{opacity:0;} }

/* ---------- Audio Widget ---------- */
.audio-widget {
  position: fixed;
  bottom: 24px; left: 20px;
  width: 480px;
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  border-radius: 10px;
  padding: 12px 15px 13px;
  backdrop-filter: blur(12px);
  box-shadow:
    0 0 30px rgba(58,115,163,.09),
    inset 0 1px 0 rgba(58,115,163,.07);
  z-index: 10;
  overflow: hidden;
}
.audio-widget::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-deep), transparent);
  opacity: .4;
}
.audio-widget-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.aw-label {
  font-size: .65em;
  color: var(--accent);
  letter-spacing: .14em;
  opacity: .8;
  flex-shrink: 0;
}
.aw-track {
  font-size: .65em;
  color: var(--text-muted);
  letter-spacing: .05em;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#vizCanvas {
  display: block;
  width: 100%;
  height: 52px;
  border-radius: 4px;
  background: rgba(10,14,18,.6);
  margin-bottom: 9px;
}
.aw-vol-row {
  display: flex;
  align-items: center;
  gap: 9px;
}
.aw-vol-row i {
  font-size: .8em;
  color: var(--text-muted);
  width: 16px;
  text-align: center;
  flex-shrink: 0;
  transition: color .2s;
}
#bgVolume {
  -webkit-appearance: none;
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,.08);
  cursor: pointer;
}
#bgVolume::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 13px; height: 13px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--accent-glow);
  transition: transform .15s;
}
#bgVolume::-webkit-slider-thumb:hover { transform: scale(1.2); }
#bgVolume::-moz-range-thumb {
  width: 13px; height: 13px;
  background: var(--accent);
  border-radius: 50%; border: none;
}
.aw-vol-pct {
  font-size: .65em;
  color: var(--accent);
  width: 28px;
  text-align: right;
  flex-shrink: 0;
  opacity: .8;
}
@media(max-width:1100px) { .audio-widget { display: none; } }

/* ---------- Order bio CTA ---------- */
.order-bio-btn {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 20;
  display: flex; align-items: center; gap: 9px;
  padding: 13px 22px;
  font-family: var(--font);
  font-size: .85em;
  font-weight: 600;
  letter-spacing: .06em;
  color: #F4EFEB;
  text-decoration: none;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent-deep));
  border-radius: 28px;
  box-shadow:
    0 0 20px rgba(58,115,163,.4),
    0 4px 20px rgba(0,0,0,.4);
  transition: all .25s ease;
}
.order-bio-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow:
    0 0 35px rgba(58,115,163,.6),
    0 8px 30px rgba(0,0,0,.4);
}
.order-bio-btn i { font-size:1em; }

/* ---------- Fade-in animations ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s ease, transform .55s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media(max-width:768px){
  .container{ padding:40px 20px 60px; }
  .name{ font-size:2em; }
}
