/* ============================================================
   DLYYZ PORTFOLIO — style.css
   Base styles, variables, layout, components
   ============================================================ */

/* ---------- CSS VARIABLES ---------- */
:root {
  --bg:      #06000f;
  --bg2:     #0c0018;
  --surf:    #120020;
  --surf2:   #19002a;

  --border:  rgba(160, 50, 255, .14);
  --bhi:     rgba(255, 40, 160, .28);

  --pink:    #ff1a96;
  --pink2:   #ff72cc;
  --pglow:   rgba(255, 26, 150, .28);

  --pur:     #b500ff;
  --pur2:    #d46aff;
  --urglow:  rgba(181, 0, 255, .28);

  --rust:    #ff4d1a;
  --text:    #eddeff;
  --text2:   #9870b8;
  --text3:   #4a2a68;
  --green:   #00f5a0;

  --mono:    'Space Mono', monospace;
  --disp:    'Bebas Neue', sans-serif;
  --body:    'DM Sans', sans-serif;

  --nh:      58px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  cursor: none;
}

/* CRT scanline overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,.07) 2px,
    rgba(0,0,0,.07) 4px
  );
}

/* ---------- CANVAS ---------- */
#cv {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ---------- NAVIGATION ---------- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nh);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(18px, 5vw, 60px);
  background: rgba(6, 0, 15, .82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.nlogo {
  font-family: var(--disp);
  font-size: 24px;
  letter-spacing: 4px;
  text-decoration: none;
  background: linear-gradient(90deg, var(--pink), var(--pur2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nlinks { display: flex; gap: 2px; }

.nl {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text2);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 3px;
  border: 1px solid transparent;
  transition: all .2s;
}
.nl:hover {
  color: var(--pink2);
  border-color: var(--bhi);
  background: rgba(255, 26, 150, .07);
}
.nl.active {
  color: var(--pink2);
  border-color: var(--bhi);
}

/* Hamburger */
.hbg {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 4px;
}
.hbg span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text2);
  border-radius: 2px;
  transition: all .3s;
}

@media (max-width: 560px) {
  .nlinks { display: none; }
  .hbg    { display: flex; }

  nav.open .nlinks {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nh);
    left: 0;
    right: 0;
    background: rgba(6, 0, 15, .97);
    border-bottom: 1px solid var(--border);
    padding: 12px;
    gap: 4px;
  }
}

/* ---------- STATUS BAR ---------- */
.stbar {
  position: fixed;
  top: var(--nh);
  left: 0;
  right: 0;
  z-index: 199;
  height: 20px;
  background: rgba(12, 0, 24, .88);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 clamp(18px, 5vw, 60px);
  gap: 16px;
  overflow: hidden;
}

.sti {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 1px;
  color: var(--text3);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sticker-wrap {
  flex: 1;
  overflow: hidden;
}

.sticker {
  display: flex;
  gap: 40px;
  animation: stscroll 28s linear infinite;
}

.sdot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--pur2);
  animation: blink 2s infinite;
}
.sdot.g { background: var(--green); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: calc(var(--nh) + 52px) clamp(20px, 8vw, 100px) 80px;
}

.hero-tag {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--rust);
  text-transform: uppercase;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-tag::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--rust);
}

.hero-name {
  font-family: var(--disp);
  font-size: clamp(76px, 18vw, 196px);
  line-height: .88;
  letter-spacing: 4px;
  position: relative;
  margin-bottom: 4px;
}

.hero-name .fill {
  display: block;
  background: linear-gradient(120deg, var(--pink), var(--pur2), var(--pink2));
  background-size: 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 4s linear infinite;
}

.hero-name .ghost {
  position: absolute;
  inset: 0;
  font-family: var(--disp);
  font-size: inherit;
  letter-spacing: inherit;
  color: transparent;
  -webkit-text-stroke: 1px rgba(160, 50, 255, .12);
  transform: translate(5px, 5px);
  pointer-events: none;
  user-select: none;
}

.hero-role {
  font-family: var(--disp);
  font-size: clamp(20px, 4.5vw, 48px);
  letter-spacing: 3px;
  color: var(--text2);
  margin-bottom: 28px;
  line-height: 1;
}

.hero-bio {
  font-size: clamp(13px, 1.8vw, 15px);
  color: var(--text2);
  max-width: 500px;
  line-height: 1.85;
  margin-bottom: 40px;
}
.hero-bio em {
  color: var(--pink2);
  font-style: normal;
}

/* ---------- BUTTONS ---------- */
.btns { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-p {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--pink), var(--pur));
  color: #fff;
  padding: 12px 26px;
  border-radius: 4px;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  box-shadow: 0 0 20px var(--pglow);
  transition: all .3s;
  position: relative;
  overflow: hidden;
}
.btn-p::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 30%;
  height: 200%;
  background: rgba(255,255,255,.14);
  transform: skewX(-20deg);
  transition: left .4s;
}
.btn-p:hover::before { left: 130%; }
.btn-p:hover {
  box-shadow: 0 0 36px var(--pglow);
  transform: translateY(-2px);
}

.btn-g {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--pur2);
  padding: 11px 24px;
  border-radius: 4px;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 1px solid rgba(160, 50, 255, .38);
  transition: all .3s;
}
.btn-g:hover {
  background: rgba(160, 50, 255, .1);
  border-color: var(--pur);
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 36px;
  left: clamp(20px, 8vw, 100px);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 2px;
  color: var(--text3);
  display: flex;
  align-items: center;
  gap: 10px;
}
.scroll-hint::after {
  content: '';
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, var(--text3), transparent);
  animation: drip 1.6s ease-in-out infinite;
}

/* ---------- SECTION BASE ---------- */
section { position: relative; z-index: 3; }

.sec {
  padding: 90px clamp(20px, 8vw, 100px);
  border-top: 1px solid var(--border);
}

.sec-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.sec-tag {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 3px;
  color: var(--pink);
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sec-tag::after {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--pink);
  opacity: .4;
}

.sec-title {
  font-family: var(--disp);
  font-size: clamp(38px, 6vw, 68px);
  letter-spacing: 2px;
  line-height: 1;
  color: var(--text);
  margin-bottom: 52px;
}
.sec-title span { color: var(--pur2); }

/* ---------- ABOUT ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 700px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
}

.about-p {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.9;
  margin-bottom: 16px;
}
.about-p strong { color: var(--text); font-weight: 600; }
.about-p em     { color: var(--pink2); font-style: normal; }

/* ACARD */
.acard {
  background: var(--surf);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(160, 50, 255, .06);
}
.acard-head {
  padding: 14px 20px;
  background: var(--surf2);
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 2px;
  color: var(--text3);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}
.acard-head::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: blink 1.8s infinite;
}
.acard-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(160, 50, 255, .08);
  font-family: var(--mono);
  font-size: 10px;
}
.acard-row:last-child { border: none; }
.ak { color: var(--text3); letter-spacing: 1px; text-transform: uppercase; font-size: 9px; }
.av { color: var(--pink2); }
.av.ok { color: var(--green); }

/* ---------- SKILLS ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 10px;
}

.sk {
  background: var(--surf);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all .25s;
  position: relative;
  overflow: hidden;
  cursor: default;
}
.sk::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,26,150,.05), rgba(160,50,255,.05));
  opacity: 0;
  transition: opacity .3s;
}
.sk:hover {
  border-color: var(--bhi);
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(255, 26, 150, .1);
}
.sk:hover::after { opacity: 1; }

.sk-icon { font-size: 22px; }
.sk-name {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--text2);
  text-transform: uppercase;
}
.sk-pct {
  font-family: var(--mono);
  font-size: 8px;
  color: var(--text3);
  letter-spacing: 1px;
}
.sk-bar {
  height: 2px;
  background: rgba(160, 50, 255, .15);
  border-radius: 2px;
  overflow: hidden;
}
.sk-fill {
  height: 100%;
  border-radius: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--pink), var(--pur));
  transition: width 1.3s cubic-bezier(.16, 1, .3, 1);
}

/* ---------- PROJECTS ---------- */
.proj-grid { display: grid; gap: 12px; }

.pcard {
  background: var(--surf);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px 28px 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: all .3s;
  position: relative;
  overflow: hidden;
}
.pcard::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--pink), var(--pur));
  opacity: 0;
  transition: opacity .3s;
}
.pcard:hover {
  border-color: var(--bhi);
  transform: translateX(6px);
  box-shadow: -6px 0 24px rgba(255, 26, 150, .1);
}
.pcard:hover::before { opacity: 1; }

.p-num {
  font-family: var(--mono);
  font-size: 8px;
  color: var(--text3);
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.p-name {
  font-family: var(--disp);
  font-size: clamp(22px, 3vw, 32px);
  letter-spacing: 2px;
  color: var(--text);
  margin-bottom: 8px;
}
.p-desc {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.75;
}
.p-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.ptag {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
  background: rgba(160, 50, 255, .1);
  color: var(--pur2);
  border: 1px solid rgba(160, 50, 255, .2);
}
.parrow {
  font-family: var(--mono);
  font-size: 20px;
  color: var(--text3);
  transition: all .3s;
  flex-shrink: 0;
}
.pcard:hover .parrow {
  color: var(--pink);
  transform: translateX(4px);
}

/* ---------- CONTACT ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
}
@media (max-width: 700px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-desc {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.85;
  margin-bottom: 8px;
}
.contact-desc strong { color: var(--pink2); }

.socials {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 28px;
}

.sitem {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surf);
  text-decoration: none;
  color: var(--text2);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .5px;
  transition: all .25s;
  position: relative;
  overflow: hidden;
}
.sitem::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--pink), var(--pur));
  transform: scaleY(0);
  transition: transform .25s;
}
.sitem:hover {
  border-color: var(--bhi);
  color: var(--text);
  background: var(--surf2);
}
.sitem:hover::before { transform: scaleY(1); }
.sicon   { font-size: 18px; flex-shrink: 0; }
.slabel  { flex: 1; }
.shandle { color: var(--pink2); }

/* ---------- TERMINAL ---------- */
.terminal {
  background: #040010;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.tbar {
  background: var(--surf2);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}
.td     { width: 10px; height: 10px; border-radius: 50%; }
.tdr    { background: #ff5f57; }
.tdy    { background: #febc2e; }
.tdg    { background: #28c840; }
.ttitle {
  flex: 1;
  text-align: center;
  font-family: var(--mono);
  font-size: 8px;
  color: var(--text3);
  letter-spacing: 1px;
}
.tbody {
  padding: 20px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 2;
  color: var(--text2);
}
.tc-p { color: var(--pur2); }
.tc-c { color: var(--pink2); }
.tc-g { color: var(--green); }
.tc-d { color: var(--text3); }
.tcur {
  display: inline-block;
  width: 7px;
  height: 12px;
  background: var(--pink);
  vertical-align: middle;
  animation: blink .9s infinite;
}

/* ---------- GRADIENT LINE ---------- */
.gline {
  position: relative;
  z-index: 3;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--pink) 30%,
    transparent 60%,
    var(--pur) 80%,
    transparent
  );
  animation: glinea 5s infinite;
}

/* ---------- FOOTER ---------- */
footer {
  position: relative;
  z-index: 3;
  border-top: 1px solid var(--border);
  padding: 22px clamp(20px, 8vw, 100px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--mono);
  font-size: 8px;
  color: var(--text3);
  letter-spacing: 1px;
}
footer a { color: var(--text2); text-decoration: none; transition: color .2s; }
footer a:hover { color: var(--pink2); }
