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

:root {
  color-scheme: dark;
  --bg: #030712;
  --bg-deep: #000000;
  --panel: #080d18;
  --panel-card: rgba(8, 13, 24, 0.92);
  --text: #f1f5f9;
  --muted: #94a3b8;
  --accent: #00F0FF;
  --accent-blue: #0077FE;
  --accent-glow: rgba(0, 240, 255, 0.35);
  --line: rgba(0, 240, 255, 0.18);
  --line-subtle: rgba(255, 255, 255, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: #020408;
  background-image:
    radial-gradient(circle at 50% 0%, rgba(0, 240, 255, 0.09) 0%, transparent 55%),
    radial-gradient(circle at 90% 40%, rgba(0, 119, 254, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 10% 80%, rgba(0, 240, 255, 0.05) 0%, transparent 45%);
  background-attachment: fixed;
  color: var(--text);
  font: 16px 'DM Sans', sans-serif;
  min-height: 100vh;
}

header, footer {
  padding: 24px 5vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: rgba(3, 7, 18, 0.75);
  backdrop-filter: blur(16px);
}

header > a {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 18px;
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s;
}

header > a:hover {
  color: var(--accent);
  text-shadow: 0 0 12px var(--accent-glow);
}

nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
}

nav a:hover {
  color: var(--accent);
  text-shadow: 0 0 12px var(--accent-glow);
}

#public-link {
  color: var(--accent);
  border: 1px solid rgba(0, 240, 255, 0.35);
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(0, 240, 255, 0.06);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.15);
}

#public-link:hover {
  background: rgba(0, 240, 255, 0.16);
  box-shadow: 0 0 22px rgba(0, 240, 255, 0.4);
}

a {
  color: inherit;
  text-underline-offset: 6px;
}

main {
  max-width: 1300px;
  margin: auto;
  padding: 65px 5vw;
  position: relative;
}

/* Hero Titles: Matrix Animation Text Fill with Obsidian & Blue Aesthetics */
h1 {
  font: 800 clamp(54px, 8vw, 110px)/0.96 'Space Grotesk', sans-serif;
  letter-spacing: -0.055em;
  margin: 28px 0;
  background: url('/assets/avatars/matrix_text_fill.webp') center/cover no-repeat,
              linear-gradient(135deg, #00F0FF 0%, #38BDF8 50%, #0077FE 100%);
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  filter: drop-shadow(0 0 20px rgba(0, 240, 255, 0.55)) drop-shadow(0 0 40px rgba(0, 119, 254, 0.35));
  display: inline-block;
}

h1 em, h1 span {
  background: inherit !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  font-style: normal;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font: 700 11px/1 'Space Grotesk', monospace;
  letter-spacing: 0.16em;
  color: var(--accent);
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.32);
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.2);
  margin-bottom: 0.8rem;
}

.eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00F0FF;
  box-shadow: 0 0 10px #00F0FF;
  display: inline-block;
}

.number {
  display: inline-block;
  font: 700 11px 'Space Grotesk', monospace;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 8px;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.35);
}

.lead {
  font-size: 20px;
  line-height: 1.65;
  max-width: 780px;
  color: var(--muted);
  margin: 24px 0 55px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

article {
  position: relative;
  background: linear-gradient(135deg, rgba(8, 14, 26, 0.95) 0%, rgba(4, 7, 14, 0.98) 100%);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 34px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.88), 0 0 25px rgba(0, 240, 255, 0.06);
  backdrop-filter: blur(16px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

article:hover {
  border-color: rgba(0, 240, 255, 0.35);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.95), 0 0 35px rgba(0, 240, 255, 0.14);
}

.wide {
  grid-column: 1 / -1;
}

h2 {
  font: 700 28px 'Space Grotesk', sans-serif;
  letter-spacing: -0.035em;
  color: #ffffff;
  margin: 6px 0 20px;
}

form {
  display: grid;
  gap: 18px;
}

label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

input, select, textarea {
  font: inherit;
  border-radius: 10px;
  border: 1px solid rgba(0, 240, 255, 0.2);
  padding: 13px 15px;
  background: #02050c;
  color: var(--text);
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(0, 240, 255, 0.25), 0 0 20px rgba(0, 240, 255, 0.25);
}

input[type=color] {
  height: 49px;
  padding: 4px 8px;
  cursor: pointer;
}

textarea {
  min-height: 90px;
  resize: vertical;
}

button {
  cursor: pointer;
  background: linear-gradient(135deg, #00F0FF 0%, #0080FF 60%, #38BDF8 100%);
  color: #020617;
  border: 0;
  font-weight: 800;
  font-size: 15px;
  padding: 14px 22px;
  border-radius: 10px;
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.42), 0 4px 18px rgba(0, 0, 0, 0.6);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: -0.01em;
}

button:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 0 36px rgba(0, 240, 255, 0.68), 0 6px 24px rgba(0, 0, 0, 0.8);
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.hint {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

fieldset {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: 12px;
  gap: 12px;
  padding: 18px;
  background: rgba(2, 5, 12, 0.5);
}

fieldset legend {
  padding: 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-family: 'Space Grotesk', monospace;
  letter-spacing: 0.1em;
  font-weight: 700;
}

fieldset label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--text);
}

fieldset input {
  width: auto;
  accent-color: #00F0FF;
}

code {
  overflow-wrap: anywhere;
  word-break: break-word;
}

pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #38BDF8;
  background: #02050c;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  line-height: 1.7;
  font-size: 13px;
  font-family: 'JetBrains Mono', Consolas, monospace;
}

output:not(:empty) {
  position: fixed;
  bottom: 24px;
  left: 5vw;
  right: 5vw;
  max-width: 600px;
  margin: 0 auto;
  padding: 16px 24px;
  border-radius: 12px;
  background: #030712;
  border: 1px solid var(--accent);
  color: var(--accent);
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.95), 0 0 35px rgba(0, 240, 255, 0.35);
  font-weight: 600;
  z-index: 50;
}

footer {
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
}

.job {
  border-top: 1px solid var(--line);
  padding: 22px 0;
  display: grid;
  gap: 12px;
}

.job button {
  max-width: 240px;
}

.job h3 {
  margin: 0;
  color: #ffffff;
}

/* ==========================================================================
   MY ART SPACE & 3D DOOR PORTAL
   Tiny matrix dropping animation within the frame
   ========================================================================== */

.art-main {
  text-align: center;
}

.art-main h1 {
  font-size: clamp(50px, 7vw, 92px);
}

.door-stage {
  perspective: 1000px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 480px;
  background: radial-gradient(ellipse at center, rgba(0, 240, 255, 0.08) 0%, rgba(2, 6, 18, 0.3) 45%, transparent 70%);
  position: relative;
  margin: 30px 0;
}

/* The Door Frame with Obsidian Border and Glowing Matrix Rain Dropping Within */
.door {
  position: relative;
  display: flex;
  width: 220px;
  height: 340px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 22px;
  text-decoration: none;
  border: 10px solid #080d16;
  outline: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: 12px;
  background-color: #020408;
  box-shadow:
    0 0 0 2px var(--accent),
    0 0 50px rgba(0, 240, 255, 0.4),
    inset 0 0 35px rgba(0, 0, 0, 0.95);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s ease;
  transform-origin: left center;
  overflow: hidden;
  isolation: isolate;
  color: #ffffff;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.18em;
}

/* Really tiny matrix animation dropping within the door's frame */
.door::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-color: #020408;
  background-image:
    linear-gradient(180deg, rgba(2, 4, 8, 0.25) 0%, rgba(2, 4, 8, 0.65) 100%),
    url('/assets/avatars/ai_matrix_rain.webp');
  background-size: auto, 52px 52px;
  background-repeat: no-repeat, repeat;
  animation: matrixDoorRainDrop 5.5s linear infinite;
  opacity: 0.9;
  filter: brightness(1.2) contrast(1.15);
  z-index: 0;
  pointer-events: none;
}

@keyframes matrixDoorRainDrop {
  0% {
    background-position: center top, 0 0;
  }
  100% {
    background-position: center top, 0 220px;
  }
}

/* Door handle */
.door::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 38px;
  background: linear-gradient(180deg, #00F0FF, #0077FE);
  border-radius: 4px;
  box-shadow: 0 0 16px #00F0FF;
  z-index: 3;
}

.door > * {
  position: relative;
  z-index: 2;
}

.portal-symbol {
  font-size: 46px;
  line-height: 1;
  color: var(--accent);
  text-shadow: 0 0 20px var(--accent), 0 0 40px var(--accent-blue);
  filter: drop-shadow(0 0 8px var(--accent));
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#door-label {
  font-weight: 800;
  font-size: 15px;
  color: #ffffff;
  letter-spacing: 0.22em;
  text-shadow: 0 0 14px rgba(0, 240, 255, 0.8), 0 2px 6px #000;
}

.door small {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.16em;
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.6);
  background: rgba(2, 6, 15, 0.85);
  padding: 5px 12px;
  border-radius: 9999px;
  border: 1px solid rgba(0, 240, 255, 0.4);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.2);
}

.door:hover, .door:focus-visible {
  transform: rotateY(-18deg);
  box-shadow:
    0 0 0 2px var(--accent),
    0 0 65px rgba(0, 240, 255, 0.65),
    inset 0 0 45px rgba(0, 0, 0, 0.95);
}

.door:hover .portal-symbol {
  transform: scale(1.15) rotate(45deg);
}

.door.arch {
  border-radius: 110px 110px 8px 8px;
}

.door.arch::before {
  border-radius: 100px 100px 4px 4px;
}

.door.vault {
  border-width: 18px;
  border-color: #0b111c;
}

.tags {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0;
}

.tag {
  font: 700 12px 'Space Grotesk', monospace;
  letter-spacing: 0.08em;
  border: 1px solid rgba(0, 240, 255, 0.3);
  background: rgba(0, 240, 255, 0.08);
  color: var(--accent);
  padding: 7px 18px;
  border-radius: 30px;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.12);
}

.profile-about {
  max-width: 680px;
  margin: 25px auto;
  color: var(--muted);
  line-height: 1.8;
  white-space: pre-wrap;
  font-size: 18px;
}

@media (max-width: 700px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .wide {
    grid-column: auto;
  }
  header {
    gap: 15px;
    font-size: 13px;
  }
  nav {
    gap: 14px;
  }
  main {
    padding-top: 35px;
  }
  article {
    padding: 24px;
  }
  .door-stage {
    min-height: 400px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .door {
    transition: none;
  }
  .door:hover {
    transform: none;
  }
  .door::before {
    animation: none;
  }
}
