/* izzishor.uk — terminal theme */

:root {
  --cyan: #27e6ff;
  --magenta: #ff2fd6;
  --green: #3cff9e;
  --panel-bg: rgba(6, 8, 16, 0.78);
  --panel-border: rgba(39, 230, 255, 0.25);
  --text: #e8f4f5;
  --text-dim: rgba(232, 244, 245, 0.62);
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  font-family: "Cascadia Code", Consolas, "JetBrains Mono", "Fira Code", monospace;
  color: var(--text);
  background: #07070f url("../images/background.png") center / cover no-repeat fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 16px 56px;
}

/* dark overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(4, 4, 10, 0.55);
  pointer-events: none;
  z-index: 0;
}

/* CRT scanlines */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 2px,
    rgba(0, 0, 0, 0.18) 2px 4px
  );
  pointer-events: none;
  z-index: 2;
}

body > * { position: relative; z-index: 1; }

a { text-decoration: none; color: inherit; }

/* ---- glitch logo ---- */
.logo {
  position: relative;
  font-size: clamp(46px, 10vw, 80px);
  font-weight: 400;
  letter-spacing: 2px;
  margin: 12px 0 0;
  color: #fff;
  text-align: center;
}

.logo .glitch {
  position: relative;
  display: inline-block;
  text-shadow: -3px 0 var(--cyan), 3px 0 var(--magenta);
}

.logo .glitch::before,
.logo .glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  overflow: hidden;
  color: #fff;
}

.logo .glitch::before {
  text-shadow: -3px 0 var(--cyan);
  clip-path: inset(20% 0 55% 0);
  animation: glitch-a 3.1s infinite linear alternate;
}

.logo .glitch::after {
  text-shadow: 3px 0 var(--magenta);
  clip-path: inset(60% 0 15% 0);
  animation: glitch-b 2.3s infinite linear alternate;
}

@keyframes glitch-a {
  0%, 86%, 100% { transform: none; opacity: 0; }
  88% { transform: translate(-5px, 1px); opacity: 1; }
  92% { transform: translate(4px, -1px); opacity: 1; clip-path: inset(10% 0 70% 0); }
  96% { transform: translate(-2px, 0); opacity: 1; clip-path: inset(40% 0 30% 0); }
}

@keyframes glitch-b {
  0%, 80%, 100% { transform: none; opacity: 0; }
  83% { transform: translate(5px, -1px); opacity: 1; }
  89% { transform: translate(-4px, 1px); opacity: 1; clip-path: inset(30% 0 40% 0); }
  95% { transform: translate(3px, 0); opacity: 1; clip-path: inset(75% 0 5% 0); }
}

.tagline {
  margin: 10px 0 0;
  font-size: clamp(13px, 2.4vw, 16px);
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: center;
}

.tagline::before { content: "// "; color: var(--green); }

/* ---- terminal window ---- */
.terminal {
  background: var(--panel-bg);
  backdrop-filter: blur(5px);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  margin-top: 36px;
  max-width: 640px;
  width: 100%;
  box-shadow: 0 0 30px rgba(39, 230, 255, 0.08), 0 0 60px rgba(255, 47, 214, 0.05);
  overflow: hidden;
  text-align: left;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: var(--text-dim);
}

.terminal-bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-r { background: #ff5f57; }
.dot-y { background: #febc2e; }
.dot-g { background: #28c840; }
.terminal-bar .title { margin-left: 8px; letter-spacing: 1px; }

.terminal-body { padding: 22px 24px 26px; font-size: 15px; line-height: 1.7; }

.prompt { color: var(--green); }
.prompt::before { content: "izzishor@uk"; color: var(--cyan); }
.prompt::after { content: " $ "; color: var(--magenta); }

.cmd { color: var(--text); }

.output { color: var(--text-dim); margin: 6px 0 22px; }
.output a { color: var(--cyan); border-bottom: 1px dotted var(--cyan); }
.output a:hover { color: var(--magenta); border-color: var(--magenta); text-shadow: 0 0 8px var(--magenta); }

.cursor {
  display: inline-block;
  width: 9px;
  height: 18px;
  background: var(--green);
  vertical-align: text-bottom;
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

/* ---- project listing ---- */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 6px 18px;
  margin: 8px 0 22px;
}

.projects a {
  color: var(--text);
  padding: 3px 6px;
  border-radius: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.12s ease, color 0.12s ease;
}

.projects a::before { content: "> "; color: var(--magenta); }

.projects a:hover {
  background: rgba(39, 230, 255, 0.12);
  color: var(--cyan);
  text-shadow: 0 0 8px rgba(39, 230, 255, 0.7);
}

/* ---- buttons ---- */
.actions { margin-top: 4px; }

.button {
  display: inline-block;
  padding: 10px 20px;
  margin: 4px 8px 4px 0;
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  letter-spacing: 1px;
  background: rgba(39, 230, 255, 0.07);
  cursor: pointer;
  transition: all 0.15s ease;
}

.button:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 12px rgba(39, 230, 255, 0.35);
  color: var(--cyan);
}

.button.primary {
  border-color: rgba(255, 47, 214, 0.5);
  background: rgba(255, 47, 214, 0.1);
}

.button.primary:hover {
  border-color: var(--magenta);
  box-shadow: 0 0 12px rgba(255, 47, 214, 0.4);
  color: var(--magenta);
}

/* ---- socials ---- */
.socials {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 42px;
}

.socials img {
  width: 30px;
  height: 30px;
  opacity: 0.85;
  transition: transform 0.15s ease, opacity 0.15s ease, filter 0.15s ease;
}

.socials a:hover img {
  transform: scale(1.2);
  opacity: 1;
  filter: drop-shadow(0 0 8px var(--cyan));
}

/* ---- hidden tools door ---- */
.footer-note {
  margin-top: 52px;
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--text-dim);
  opacity: 0.55;
  transition: opacity 0.2s ease, text-shadow 0.2s ease;
}

.footer-note:hover { opacity: 1; text-shadow: 0 0 10px var(--magenta); }

/* ---- tiles (tools page) ---- */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px 36px;
  justify-items: center;
  padding: 6px 0;
}

@media (max-width: 480px) {
  .tiles { grid-template-columns: repeat(2, 1fr); gap: 26px 20px; }
}

.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 14px;
  letter-spacing: 2px;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.tile img { width: 82px; height: 82px; }

.tile:hover { transform: scale(1.08); filter: drop-shadow(0 0 10px var(--cyan)); }

/* ---- login ---- */
.login-input {
  width: 100%;
  padding: 11px 14px;
  margin: 10px 0 14px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  color: var(--green);
  font-family: inherit;
  font-size: 16px;
  letter-spacing: 3px;
  outline: none;
}

.login-input:focus { border-color: var(--cyan); box-shadow: 0 0 10px rgba(39, 230, 255, 0.3); }

.login-error { color: #ff5f57; font-size: 14px; margin: 0 0 12px; }
