/* =========================================================
   KOLAP.RU — CYBERPUNK THEME
   Поверх базового style.css / responsive.css
   ========================================================= */

:root {
  --bg:          #04070c;
  --bg-soft:     #0a1019;
  --panel:       rgba(7, 13, 22, .84);
  --cyan:        #00e5ff;
  --magenta:     #ff2e88;
  --lime:        #b6ff3c;
  --text:        #d6e5f2;
  --muted:       #7790a8;
  --line:        rgba(0, 229, 255, .22);
}

/* ---------- Базовые переопределения ---------- */

body, html {
  background: var(--bg);
  color: var(--text);
  font-family: 'JetBrains Mono', 'Courier New', monospace;
}

body::selection, ::selection {
  background: var(--magenta);
  color: #fff;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Exo 2', 'Russo One', sans-serif;
  color: #fff;
  margin: 0 0 12px;
}

h1 { font-size: 46px; font-weight: 800; }
h2 { font-size: 30px; font-weight: 800; }
h3 { font-size: 14px; font-style: normal; font-weight: 400; }
h4 { font-size: 18px; font-weight: 600; }

p { line-height: 1.8; }

a, a:link { color: var(--cyan); }
a:hover, a:focus {
  color: var(--magenta);
  text-decoration: none;
}

hr {
  width: 100%;
  height: 1px;
  margin: 20px 0 0;
  border: 0;
  background: linear-gradient(90deg, var(--cyan), var(--magenta) 55%, transparent);
  box-shadow: 0 0 12px rgba(0, 229, 255, .45);
}

/* ---------- Глобальные HUD-слои ---------- */

.fx-grid, .fx-scanlines, .fx-scanbeam, .fx-vignette {
  position: fixed;
  pointer-events: none;
}

.fx-grid {
  inset: 0;
  z-index: 9994;
  background-image:
    linear-gradient(rgba(0, 229, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, .035) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
}

.fx-scanlines {
  inset: 0;
  z-index: 9998;
  background: repeating-linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0,
    rgba(0, 0, 0, 0) 2px,
    rgba(0, 0, 0, .28) 3px,
    rgba(0, 0, 0, .28) 4px
  );
  opacity: .55;
}

.fx-scanbeam {
  top: 0;
  left: 0;
  right: 0;
  height: 140px;
  z-index: 9996;
  background: linear-gradient(180deg, transparent, rgba(0, 229, 255, .055), transparent);
  animation: scanline 9s linear infinite;
}

.fx-vignette {
  inset: 0;
  z-index: 9997;
  box-shadow: inset 0 0 240px rgba(0, 0, 0, .92);
}

/* ---------- Hero ---------- */

#home {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: 110px 0 100px;
  overflow: hidden;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse at 18% 28%, rgba(255, 46, 136, .22), transparent 48%),
    radial-gradient(ellipse at 82% 65%, rgba(0, 229, 255, .20), transparent 50%),
    linear-gradient(180deg, rgba(4, 7, 12, .82), rgba(4, 7, 12, .96)),
    url(../img/bg1.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
}

/* Перспективная сетка-пол */
#home::before {
  content: "";
  position: absolute;
  left: -30%;
  right: -30%;
  bottom: -12%;
  height: 58%;
  background-image:
    linear-gradient(rgba(0, 229, 255, .24) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 46, 136, .18) 1px, transparent 1px);
  background-size: 72px 72px;
  transform: perspective(360px) rotateX(68deg);
  transform-origin: bottom center;
  -webkit-mask-image: linear-gradient(to top, #000 5%, transparent 88%);
  mask-image: linear-gradient(to top, #000 5%, transparent 88%);
  animation: gridflow 6s linear infinite;
  pointer-events: none;
}

#home::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 7, 12, .85), transparent 25%, transparent 75%, rgba(4, 7, 12, .85));
  pointer-events: none;
}

#home > .container { position: static; }
#home .content { position: relative; z-index: 2; }

.hud {
  position: absolute;
  z-index: 3;
  font-family: 'Orbitron', 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: .26em;
  color: rgba(0, 229, 255, .65);
  text-shadow: 0 0 12px rgba(0, 229, 255, .5);
}
.hud-top { top: 34px; right: 34px; }
.hud-bottom { bottom: 34px; left: 34px; color: rgba(255, 46, 136, .75); }

#home .content {
  padding-top: 0;
  max-width: 820px;
  margin: 0 auto;
}

.sys-tag {
  margin: 0 0 22px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: .28em;
  color: var(--lime);
  text-transform: uppercase;
  text-shadow: 0 0 14px rgba(182, 255, 60, .45);
}
.pulse-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 12px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 14px var(--lime);
  animation: pulse 1.6s ease-in-out infinite;
  vertical-align: middle;
}
.sys-tag-dim { color: var(--muted); text-shadow: none; }

/* Глитч-логотип */
#home h1.glitch {
  position: relative;
  display: inline-block;
  font-family: 'Orbitron', 'Exo 2', sans-serif;
  font-size: clamp(44px, 9vw, 96px);
  font-weight: 900;
  letter-spacing: .06em;
  line-height: 1;
  margin: 0 0 20px;
  color: #f2fbff;
  text-shadow:
    0 0 10px rgba(0, 229, 255, .85),
    0 0 34px rgba(0, 229, 255, .45),
    4px 4px 0 rgba(255, 46, 136, .75);
}
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  text-shadow: none;
}
.glitch::before {
  color: var(--magenta);
  animation: glitch-top 4s infinite steps(1, end);
}
.glitch::after {
  color: var(--cyan);
  animation: glitch-bottom 3.2s infinite steps(1, end);
}

#home h4.hero-role {
  font-family: 'Exo 2', sans-serif;
  font-size: clamp(15px, 2.1vw, 22px);
  font-weight: 600;
  letter-spacing: .14em;
  line-height: 1.5;
  color: var(--cyan);
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(0, 229, 255, .4);
}
.hero-owner {
  margin: 10px 0 34px;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Терминал */
.header-text.btn.terminal {
  display: inline-block;
  width: min(100%, 600px);
  height: auto;
  padding: 0;
  overflow: hidden;
  text-align: left;
  vertical-align: middle;
  background: var(--panel);
  border: 1px solid rgba(0, 229, 255, .5);
  border-radius: 0;
  box-shadow:
    0 0 0 1px rgba(255, 46, 136, .14),
    0 0 34px rgba(0, 229, 255, .18),
    inset 0 0 40px rgba(0, 229, 255, .05);
  -webkit-clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}
.header-text.btn:hover { color: inherit; }

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 16px;
  background: rgba(0, 229, 255, .07);
  border-bottom: 1px solid rgba(0, 229, 255, .22);
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--muted);
}
.terminal-dots { display: inline-flex; gap: 5px; }
.terminal-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--magenta);
  box-shadow: 0 0 8px var(--magenta);
}
.terminal-dots i:nth-child(2) { background: #ffd23f; box-shadow: 0 0 8px #ffd23f; }
.terminal-dots i:nth-child(3) { background: var(--lime); box-shadow: 0 0 8px var(--lime); }
.terminal-path { flex: 1; }
.terminal-status {
  font-family: 'Orbitron', sans-serif;
  font-size: 9px;
  color: var(--lime);
  text-shadow: 0 0 10px rgba(182, 255, 60, .6);
}
.terminal-body {
  padding: 22px 26px 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(17px, 2.6vw, 26px);
  color: #fff;
  text-shadow: 0 0 14px rgba(0, 229, 255, .65);
}
.header-text h1 {
  display: inline;
  margin: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: inherit;
  font-weight: 400;
  text-transform: none;
}
.prompt { color: var(--magenta); margin-right: 12px; }

.typed-cursor {
  opacity: 1;
  display: inline-block;
  padding: 0;
  margin: 0 0 0 4px;
  width: .55em;
  height: 1em;
  vertical-align: -.14em;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  -webkit-animation: blink .7s steps(1, end) infinite;
  -moz-animation: blink .7s steps(1, end) infinite;
  animation: blink .7s steps(1, end) infinite;
}
span.typed-cursor { top: 0; position: relative; }

/* Меню-гамбургер */
nav#menu {
  position: fixed;
  top: 26px;
  left: 24px;
  left: clamp(16px, calc(50% - 480px), 40px);
  z-index: 20;
}
nav#menu span.fa.fa-bars {
  position: static;
  display: inline-block;
  padding: 11px 13px;
  font-size: 18px;
  color: var(--cyan);
  background: rgba(4, 10, 18, .8);
  border: 1px solid rgba(0, 229, 255, .5);
  box-shadow: 0 0 20px rgba(0, 229, 255, .22), inset 0 0 14px rgba(0, 229, 255, .08);
  cursor: pointer;
  transition: all .25s;
}
nav#menu span.fa.fa-bars:hover {
  color: #04070c;
  background: var(--cyan);
  box-shadow: 0 0 28px rgba(0, 229, 255, .6);
}

/* Кнопка вниз */
#home a.down-btn {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
}
#home a.down-btn span.fa.fa-angle-down {
  display: inline-block;
  margin: 0;
  padding: 9px 9px 6px;
  font-size: 22px;
  line-height: 1;
  color: var(--cyan);
  border: 1px solid var(--cyan);
  border-radius: 0;
  background: rgba(0, 229, 255, .06);
  box-shadow: 0 0 18px rgba(0, 229, 255, .35), inset 0 0 12px rgba(0, 229, 255, .12);
  animation: bob 2.2s ease-in-out infinite;
  transition: all .25s;
}
.down-btn:hover span.fa.fa-angle-down {
  color: #04070c !important;
  background: var(--cyan) !important;
}

/* ---------- Боковое меню ---------- */

.navmenu, .navbar-offcanvas { width: 290px; z-index: 30; }
.navmenu-default, .navbar-default .navbar-offcanvas {
  background-color: #060b12;
  border: 0;
  border-right: 1px solid rgba(0, 229, 255, .4);
  box-shadow: 16px 0 70px rgba(0, 0, 0, .85), 2px 0 30px rgba(0, 229, 255, .14);
}
.navmenu-head {
  position: absolute;
  top: 28px;
  left: 28px;
  right: 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.navmenu-logo {
  font-family: 'Orbitron', sans-serif;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: .06em;
  color: #fff;
  text-shadow: 0 0 16px rgba(0, 229, 255, .7);
}
.navmenu-logo span { color: var(--magenta); text-shadow: 0 0 16px rgba(255, 46, 136, .7); }
.navmenu-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: .22em;
  color: var(--muted);
}
.navmenu .close {
  position: absolute;
  top: 24px;
  right: 20px;
  padding: 7px 9px;
  line-height: 1;
  font-size: 14px;
  color: #fff;
  background: rgba(255, 46, 136, .85);
  border: 0;
  opacity: 1;
  transition: all .25s;
}
.navmenu .close:hover {
  color: #04070c;
  background: var(--cyan);
  opacity: 1;
}
.add-margin { margin-top: 190px; }

.navmenu-default .navmenu-nav > li > a,
.navbar-default .navbar-offcanvas .navmenu-nav > li > a {
  position: relative;
  padding: 15px 28px;
  font-family: 'Exo 2', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .14em;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--text);
  border-bottom: 1px solid rgba(0, 229, 255, .12);
  border-left: 2px solid transparent;
  transition: all .25s;
}
.navmenu-default .navmenu-nav > li > a::before {
  content: attr(data-index);
  font-family: 'Orbitron', sans-serif;
  font-size: 10px;
  letter-spacing: 0;
  color: var(--magenta);
  margin-right: 14px;
}
.navmenu-default .navmenu-nav > li > a:hover,
.navmenu-default .navmenu-nav > li > a:focus,
.navmenu-default .navmenu-nav > .active > a,
.navmenu-default .navmenu-nav > .active > a:hover,
.navmenu-default .navmenu-nav > .active > a:focus {
  color: #fff;
  background-color: rgba(0, 229, 255, .07);
  border-left-color: var(--cyan);
  text-shadow: 0 0 14px rgba(0, 229, 255, .7);
}
.navmenu-foot {
  position: absolute;
  bottom: 28px;
  left: 28px;
  font-size: 9px;
  letter-spacing: .18em;
  color: var(--muted);
}
.navmenu-foot span { color: var(--lime); }

/* ---------- Секции ---------- */

#meet-us, #contact { position: relative; padding: 100px 0; }

#meet-us {
  background: linear-gradient(180deg, #04070c, #08101a 55%, #04070c);
  border-top: 1px solid rgba(0, 229, 255, .18);
}
#contact {
  background:
    radial-gradient(ellipse at 80% 30%, rgba(255, 46, 136, .09), transparent 55%),
    #05090f;
  border-top: 1px solid rgba(255, 46, 136, .22);
}
#meet-us::before, #contact::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 229, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, .035) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000, transparent 75%);
  mask-image: radial-gradient(ellipse at center, #000, transparent 75%);
}
#meet-us > .container, #contact > .container { position: relative; z-index: 1; }

.section-title { margin-bottom: 34px; }
.section-index {
  display: inline-block;
  margin-bottom: 10px;
  font-family: 'Orbitron', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .32em;
  color: var(--magenta);
  text-shadow: 0 0 16px rgba(255, 46, 136, .65);
}
.section-title h2 {
  font-size: clamp(30px, 4.5vw, 46px);
  font-weight: 800;
  letter-spacing: .1em;
  line-height: 1.2;
  text-transform: uppercase;
}
.section-title h2::before { content: "< "; color: var(--cyan); }
.section-title h2::after { content: " />"; color: var(--cyan); }

.data-panel {
  position: relative;
  padding: 36px 40px;
  text-align: left;
  background: linear-gradient(135deg, rgba(0, 229, 255, .055), rgba(255, 46, 136, .035));
  border: 1px solid var(--line);
  -webkit-clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
  transition: border-color .3s, background .3s;
}
.data-panel:hover {
  border-color: rgba(0, 229, 255, .5);
  background: linear-gradient(135deg, rgba(0, 229, 255, .085), rgba(255, 46, 136, .055));
}
.data-panel::before, .data-panel::after {
  content: "";
  position: absolute;
  width: 90px;
  height: 2px;
}
.data-panel::before { top: 0; left: 0; background: var(--cyan); box-shadow: 0 0 14px var(--cyan); }
.data-panel::after { bottom: 0; right: 0; background: var(--magenta); box-shadow: 0 0 14px var(--magenta); }

.data-panel p {
  margin: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  line-height: 2;
  color: var(--text);
}

.skill-stack {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 8px;
  margin-top: 28px;
}
.skill-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: rgba(0, 229, 255, .035);
  border: 1px solid rgba(0, 229, 255, .16);
  transition: all .25s;
}
.skill-row:hover {
  background: rgba(0, 229, 255, .1);
  border-color: rgba(0, 229, 255, .45);
  transform: translateX(4px);
}
.skill-label {
  min-width: 46px;
  font-family: 'Orbitron', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--magenta);
}
.skill-val { font-size: 11px; letter-spacing: .04em; color: var(--text); }

#meet-us a.down-btn { margin-top: 44px; }
a.down-btn span.fa.fa-angle-down {
  padding: 9px 8px 6px;
  font-size: 20px;
  line-height: 1;
  color: var(--magenta);
  border: 1px solid var(--magenta);
  border-radius: 0;
  background: rgba(255, 46, 136, .06);
  box-shadow: 0 0 16px rgba(255, 46, 136, .3);
  transition: all .25s;
}
a.down-btn:hover span.fa.fa-angle-down {
  color: #04070c;
  background: var(--magenta);
}

/* ---------- Контакты ---------- */

.contact-block {
  padding: 8px 0 8px 24px;
  border-left: 2px solid var(--cyan);
}
#contact .col-md-6:nth-child(2) .contact-block { border-left-color: var(--magenta); }

.contact-label {
  margin: 0 0 20px;
  font-family: 'Orbitron', sans-serif;
  font-size: 10px;
  letter-spacing: .24em;
  color: var(--cyan);
  text-shadow: 0 0 14px rgba(0, 229, 255, .5);
}
#contact .col-md-6:nth-child(2) .contact-label { color: var(--magenta); text-shadow: 0 0 14px rgba(255, 46, 136, .5); }

#contact p {
  margin-bottom: 10px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--text);
}
#contact p strong {
  display: inline-block;
  min-width: 74px;
  font-family: 'Exo 2', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
#contact a, #contact a:link {
  color: var(--cyan);
  border-bottom: 1px dashed rgba(0, 229, 255, .45);
  text-shadow: 0 0 12px rgba(0, 229, 255, .45);
  transition: all .25s;
}
#contact a:hover, #contact a:focus {
  color: #fff;
  border-bottom-color: var(--magenta);
  text-shadow: 0 0 16px rgba(255, 46, 136, .8);
}

/* ---------- Подвал ---------- */

nav#footer {
  padding: 30px 0;
  background: #030609;
  border-top: 1px solid rgba(0, 229, 255, .25);
  border-bottom: 3px solid var(--magenta);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--muted);
}
nav#footer p { margin: 0; line-height: 1.8; }
#footer a, #footer a:link { color: var(--cyan); }
#footer a:hover { color: var(--magenta); }
#footer .footer-sep { color: var(--magenta); margin: 0 8px; }
#footer .footer-sys { color: rgba(119, 144, 168, .75); }
#footer .pull-right a { text-transform: uppercase; }
#footer span.fa {
  margin-left: 8px;
  font-size: 14px;
  color: var(--magenta);
}

/* ---------- Адаптив ---------- */

@media (max-width: 992px) {
  #home { min-height: 720px; }
  .contact-block { margin-bottom: 32px; }
}

@media (max-width: 768px) {
  #home { padding: 100px 0 90px; }
  #home h1.glitch { font-size: clamp(40px, 12vw, 72px); }
  .hud-top { top: 76px; right: 20px; font-size: 8px; }
  .hud-bottom { bottom: 80px; left: 20px; font-size: 8px; }
  .data-panel { padding: 26px 22px; }
  .section-title h2::before, .section-title h2::after { display: none; }
  #meet-us, #contact { padding: 76px 0; }
}

@media (max-width: 460px) {
  #home h1.glitch { font-size: 42px; }
  .sys-tag { font-size: 9px; letter-spacing: .16em; }
  .sys-tag-dim { display: none; }
  .terminal-bar { padding: 8px 12px; }
  .terminal-body { padding: 18px 16px; font-size: 16px; }
  .skill-stack { grid-template-columns: 1fr; }
  #footer .pull-left, #footer .pull-right { float: none !important; text-align: center; }
  #footer .pull-right { margin-top: 12px; }
}

/* ---------- Анимации ---------- */

@keyframes scanline {
  0%   { transform: translateY(-140px); }
  100% { transform: translateY(100vh); }
}
@keyframes gridflow {
  0%   { background-position: 0 0, 0 0; }
  100% { background-position: 0 72px, 0 72px; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .45; transform: scale(.8); }
}
@keyframes blink {
  0%, 49%  { opacity: 1; }
  50%, 100% { opacity: 0; }
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(7px); }
}
@keyframes glitch-top {
  0%, 88%, 100% { clip-path: inset(0 0 100% 0); transform: translate(0); }
  89% { clip-path: inset(8% 0 68% 0); transform: translate(-5px, -2px); }
  92% { clip-path: inset(38% 0 45% 0); transform: translate(5px, 1px); }
  95% { clip-path: inset(62% 0 22% 0); transform: translate(-3px, 2px); }
}
@keyframes glitch-bottom {
  0%, 84%, 100% { clip-path: inset(100% 0 0 0); transform: translate(0); }
  85% { clip-path: inset(72% 0 12% 0); transform: translate(4px, 2px); }
  89% { clip-path: inset(46% 0 38% 0); transform: translate(-5px, -1px); }
  93% { clip-path: inset(18% 0 70% 0); transform: translate(3px, -2px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
