:root {
  --bg: #000000;
  --bg-dark: #cccccc;
  --panel: #e1e1e1;
  --text: #090909;
  --accent: #460005;
  --accent-soft: #565656;
  --border: #707070;
  --screen-bg: #121212;
  --screen-glow: rgba(253, 253, 253, 0.421);
  --screen-line: rgba(230, 230, 230, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Courier New", Courier, monospace;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
}

.page {
  position: relative;
  z-index: 1;
  width: min(960px, 92%);
  margin: 1.5rem auto 2rem;
}

.floating-cubes {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  perspective: 800px;
}

.cube {
  --size: 22px;
  --rot-0: 0deg;
  --rot-1: 12deg;
  --rot-2: -10deg;
  --dx-1: 14px;
  --dy-1: -20px;
  --dx-2: -12px;
  --dy-2: -12px;
  position: absolute;
  width: calc(var(--size) * 2);
  height: calc(var(--size) * 2);
  animation: cube-float 14s ease-in-out infinite;
}

.cube:nth-child(1) {
  top: 7%;
  left: 6%;
  --size: 12px;
  --rot-0: -8deg;
  --rot-1: 18deg;
  --rot-2: -16deg;
  animation-duration: 12s;
}

.cube:nth-child(2) {
  top: 13%;
  left: 78%;
  --size: 30px;
  --rot-0: 10deg;
  --rot-1: -14deg;
  --rot-2: 20deg;
  animation-duration: 17s;
  animation-delay: -2s;
}

.cube:nth-child(3) {
  top: 26%;
  left: 21%;
  --size: 9px;
  --rot-0: 22deg;
  --rot-1: -12deg;
  --rot-2: 8deg;
  animation-duration: 15s;
  animation-delay: -5s;
}

.cube:nth-child(4) {
  top: 34%;
  left: 86%;
  --size: 26px;
  --rot-0: -18deg;
  --rot-1: 6deg;
  --rot-2: -24deg;
  animation-duration: 13s;
  animation-delay: -4s;
}

.cube:nth-child(5) {
  top: 52%;
  left: 8%;
  --size: 34px;
  --rot-0: 4deg;
  --rot-1: 24deg;
  --rot-2: -14deg;
  animation-duration: 18s;
  animation-delay: -1s;
}

.cube:nth-child(6) {
  top: 58%;
  left: 68%;
  --size: 11px;
  --rot-0: -22deg;
  --rot-1: -6deg;
  --rot-2: 14deg;
  animation-duration: 11s;
  animation-delay: -3s;
}

.cube:nth-child(7) {
  top: 73%;
  left: 23%;
  --size: 32px;
  --rot-0: 14deg;
  --rot-1: -20deg;
  --rot-2: 8deg;
  animation-duration: 16s;
  animation-delay: -6s;
}

.cube:nth-child(8) {
  top: 5%;
  left: 50%;
  --size: 8px;
  --rot-0: -10deg;
  --rot-1: 16deg;
  --rot-2: -8deg;
  animation-duration: 10s;
  animation-delay: -7s;
}

.cube:nth-child(9) {
  top: 21%;
  left: 57%;
  --size: 13px;
  --rot-0: 18deg;
  --rot-1: 2deg;
  --rot-2: -20deg;
  animation-duration: 12s;
  animation-delay: -8s;
}

.cube:nth-child(10) {
  top: 39%;
  left: 12%;
  --size: 28px;
  --rot-0: -4deg;
  --rot-1: 20deg;
  --rot-2: -26deg;
  animation-duration: 19s;
  animation-delay: -5s;
}

.cube:nth-child(11) {
  top: 47%;
  left: 44%;
  --size: 10px;
  --rot-0: 24deg;
  --rot-1: -14deg;
  --rot-2: 12deg;
  animation-duration: 9s;
  animation-delay: -2s;
}

.cube:nth-child(12) {
  top: 69%;
  left: 84%;
  --size: 15px;
  --rot-0: -16deg;
  --rot-1: 8deg;
  --rot-2: -12deg;
  animation-duration: 14s;
  animation-delay: -7s;
}

.cube:nth-child(13) {
  top: 83%;
  left: 57%;
  --size: 12px;
  --rot-0: 6deg;
  --rot-1: -18deg;
  --rot-2: 22deg;
  animation-duration: 13s;
  animation-delay: -4s;
}

.cube:nth-child(14) {
  top: 88%;
  left: 6%;
  --size: 36px;
  --rot-0: -12deg;
  --rot-1: 14deg;
  --rot-2: -6deg;
  animation-duration: 17s;
  animation-delay: -10s;
}

.cube:nth-child(15) {
  top: 15%;
  left: 34%;
  --size: 7px;
  --rot-0: 20deg;
  --rot-1: -10deg;
  --rot-2: 16deg;
  animation-duration: 8s;
  animation-delay: -3s;
}

.cube:nth-child(16) {
  top: 30%;
  left: 63%;
  --size: 19px;
  --rot-0: -20deg;
  --rot-1: 4deg;
  --rot-2: -18deg;
  animation-duration: 21s;
  animation-delay: -6s;
}

.cube:nth-child(17) {
  top: 41%;
  left: 92%;
  --size: 9px;
  --rot-0: 12deg;
  --rot-1: 22deg;
  --rot-2: -8deg;
  animation-duration: 11s;
  animation-delay: -9s;
}

.cube:nth-child(18) {
  top: 55%;
  left: 31%;
  --size: 10px;
  --rot-0: -6deg;
  --rot-1: 16deg;
  --rot-2: -22deg;
  animation-duration: 18s;
  animation-delay: -12s;
}

.cube:nth-child(19) {
  top: 64%;
  left: 52%;
  --size: 8px;
  --rot-0: 18deg;
  --rot-1: -4deg;
  --rot-2: 24deg;
  animation-duration: 9s;
  animation-delay: -4s;
}

.cube:nth-child(20) {
  top: 77%;
  left: 75%;
  --size: 20px;
  --rot-0: -24deg;
  --rot-1: 10deg;
  --rot-2: -10deg;
  animation-duration: 15s;
  animation-delay: -11s;
}

.cube:nth-child(21) {
  top: 82%;
  left: 40%;
  --size: 6px;
  --rot-0: 14deg;
  --rot-1: -22deg;
  --rot-2: 10deg;
  animation-duration: 7s;
  animation-delay: -2s;
}

.cube:nth-child(22) {
  top: 9%;
  left: 90%;
  --size: 33px;
  --rot-0: -8deg;
  --rot-1: 18deg;
  --rot-2: -16deg;
  animation-duration: 20s;
  animation-delay: -13s;
}

.cube:nth-child(23) {
  top: 92%;
  left: 89%;
  --size: 11px;
  --rot-0: 26deg;
  --rot-1: -12deg;
  --rot-2: 6deg;
  animation-duration: 10s;
  animation-delay: -6s;
}

.cube:nth-child(24) {
  top: 3%;
  left: 24%;
  --size: 23px;
  --rot-0: -14deg;
  --rot-1: 2deg;
  --rot-2: -24deg;
  animation-duration: 16s;
  animation-delay: -8s;
}

.cube .face {
  position: absolute;
  inset: 0;
}

.cube .top {
  background: rgba(240, 240, 240, 0.45);
  clip-path: polygon(50% 0%, 100% 25%, 50% 50%, 0% 25%);
}

.cube .left {
  background: rgba(170, 170, 170, 0.42);
  clip-path: polygon(0% 25%, 50% 50%, 50% 100%, 0% 75%);
}

.cube .right {
  background: rgba(95, 95, 95, 0.52);
  clip-path: polygon(100% 25%, 50% 50%, 50% 100%, 100% 75%);
}

.floating-cubes .cube:is(:nth-child(1), :nth-child(4), :nth-child(10), :nth-child(7) , :nth-child(8), :nth-child(12), :nth-child(16), :nth-child(19), :nth-child(23)) .face {
  background: transparent;
}

.floating-cubes .cube:is(:nth-child(1), :nth-child(4), :nth-child(10), :nth-child(7), :nth-child(8), :nth-child(12), :nth-child(16), :nth-child(19), :nth-child(23))::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none'%3E%3Cpolyline points='50,0 100,25 50,50 0,25 50,0' stroke='white' stroke-opacity='0.95' stroke-width='2'/%3E%3Cpolyline points='0,25 50,50 50,100 0,75 0,25' stroke='white' stroke-opacity='0.8' stroke-width='2'/%3E%3Cpolyline points='100,25 50,50 50,100 100,75 100,25' stroke='white' stroke-opacity='0.65' stroke-width='2'/%3E%3C/svg%3E");
}

@keyframes cube-float {
  0% {
    transform: translate3d(0, 0, 0) rotateZ(var(--rot-0));
  }
  35% {
    transform: translate3d(var(--dx-1), var(--dy-1), 0) rotateZ(var(--rot-1));
  }
  70% {
    transform: translate3d(var(--dx-2), var(--dy-2), 0) rotateZ(var(--rot-2));
  }
  100% {
    transform: translate3d(0, 0, 0) rotateZ(var(--rot-0));
  }
}

.screen-block {
  background: var(--panel);
  border: 3px solid var(--border);
  margin-bottom: 1rem;
  padding: 1rem 1.2rem;
  box-shadow: 4px 4px 0 var(--accent-soft);
  position: relative;
  overflow: hidden;
}

.screen-block::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.05) 0,
      rgba(0, 0, 0, 0.05) 2px,
      transparent 2px,
      transparent 6px
    );
  opacity: 0.65;
}

.screen-block > * {
  position: relative;
  z-index: 1;
}

.hero {
  text-align: center;
  padding: 1.5rem 1.2rem 1.2rem;
}

.hero-chip {
  display: inline-block;
  margin: 0 0 0.7rem;
  padding: 0.2rem 0.65rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  border: 2px solid var(--border);
  background: var(--bg-dark);
}

.hero-status {
  margin: 0.9rem auto 0.85rem;
  max-width: 760px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
}

.hero-status span {
  border: 2px solid var(--border);
  background: var(--bg-dark);
  padding: 0.2rem 0.45rem;
  font-size: 0.76rem;
}

.hero-contact {
  margin: 0;
  padding: 0.45rem 0.6rem;
  border: 2px solid var(--border);
  background: var(--bg-dark);
  font-size: 0.88rem;
  word-break: break-word;
}

.hero-contact span {
  font-weight: bold;
}

.hero-contact a {
  color: var(--accent);
}

.tag {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.15rem 0.55rem;
  border: 2px solid var(--border);
  font-size: 0.8rem;
  background: var(--bg-dark);
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--accent);
}

h1 {
  margin-bottom: 0.35rem;
  font-size: clamp(1.5rem, 2vw + 1rem, 2.2rem);
}

h2 {
  font-size: 1.1rem;
  border-bottom: 2px dashed var(--accent-soft);
  padding-bottom: 0.35rem;
  margin-bottom: 0.8rem;
}

.subtitle,
.hero-note {
  margin: 0.3rem 0;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
}

.nav a {
  display: inline-block;
  text-decoration: none;
  color: var(--text);
  border-style: solid;
  border-width: 2px;
  border-color: #a7a7a7 #5e5e5e #484848 #9c9c9c;
  padding: 0.28rem 0.6rem;
  background: linear-gradient(180deg, #e4e4e4 0%, var(--bg-dark) 55%, #b9b9b9 100%);
  font-size: 0.9rem;
  box-shadow:
    0 3px 0 #4d4d4d,
    0 5px 0 rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  transform: translateY(0);
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease, color 120ms ease;
}

.nav a:hover,
.nav a:focus {
  background: linear-gradient(180deg, #d6d6d6 0%, #bdbdbd 100%);
  color: var(--accent);
}

.nav a:active {
  transform: translateY(3px);
  box-shadow:
    0 1px 0 #4d4d4d,
    0 2px 0 rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  background: linear-gradient(180deg, #bbbbbb 0%, #a8a8a8 100%);
  color: #fff;
}

.info-list,
.simple-list {
  margin: 0;
  padding-left: 1.25rem;
}

.info-list li,
.simple-list li {
  margin-bottom: 0.35rem;
}

.info-list span {
  font-weight: bold;
  color: var(--accent);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.8rem;
}

.card {
  --sweep-duration: 9s;
  --sweep-delay: -3s;
  border: 2px solid var(--border);
  padding: 0.8rem;
  background: linear-gradient(180deg, #2a2a2a 0%, var(--screen-bg) 52%, #0b0b0b 100%);
  color: #eeeeee;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(230, 230, 230, 0.12), inset 0 0 12px var(--screen-glow);
}

.cards .card:nth-child(odd) {
  --sweep-duration: 11s;
  --sweep-delay: -6s;
}

.cards .card:nth-child(3n) {
  --sweep-duration: 13s;
  --sweep-delay: -8s;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  background: repeating-linear-gradient(
    0deg,
    transparent 0,
    transparent 3px,
    var(--screen-line) 3px,
    var(--screen-line) 4px
  );
  opacity: 0.65;
}

.card::after {
  content: "";
  position: absolute;
  inset: -25%;
  pointer-events: none;
  z-index: 3;
  background: linear-gradient(
    180deg,
    transparent 0%,
    transparent 42%,
    rgba(245, 245, 245, 0.16) 50%,
    transparent 58%,
    transparent 100%
  );
  opacity: 0.24;
  animation: screen-sweep var(--sweep-duration) linear infinite;
  animation-delay: var(--sweep-delay);
}

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

.card h3,
.card strong,
.card a {
  color: #fafafa;
}

@keyframes screen-sweep {
  0% {
    transform: translateY(-140%);
  }
  100% {
    transform: translateY(140%);
  }
}

.card p {
  margin: 0.45rem 0;
}

.hackathon-meta {
  margin: 0.2rem 0;
  font-size: 0.92rem;
}

.project-image {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  margin: 0.6rem auto;
  border: 1px solid var(--border);
}

.footer {
  text-align: center;
  font-size: 0.9rem;
}

@media (max-width: 560px) {
  .page {
    width: 95%;
    margin-top: 1rem;
  }

  .hero-status {
    gap: 0.35rem;
  }

  .hero-contact {
    font-size: 0.8rem;
    line-height: 1.45;
  }

  .cube {
    opacity: 0.65;
  }

  .screen-block {
    padding: 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cube {
    animation: none;
  }

  .card::after {
    animation: none;
    opacity: 0.14;
  }
}