*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  background: #0B1026;
  color: #E8ECF1;
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
}

#bg {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
}

#content {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 8vh 24px 48px;
  pointer-events: none;
}

#content > * { pointer-events: auto; }

#hero {
  text-align: center;
  max-width: 820px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.hero-glass {
  max-width: 820px;
  background: rgba(5, 8, 18, 0.6);
  backdrop-filter: blur(18px) saturate(1.2) opacity(0.9);
  -webkit-backdrop-filter: blur(18px) saturate(1.2) opacity(0.9);
  border: 1px solid #00ff9f;
  border-radius: 6px;
  padding: 32px 36px;
  box-shadow: 0 0 24px rgba(0, 255, 159, 0.12), inset 0 0 60px rgba(0, 255, 159, 0.02);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  position: relative;
}

.hero-glass::before {
  content: 'reviniere@tty0:~$ ./bootstrap --profile=streamer';
  position: absolute;
  top: -12px;
  left: 16px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.65rem;
  color: #00ff9f;
  background: #050812;
  padding: 2px 10px;
  letter-spacing: 0.06em;
  text-shadow: 0 0 8px rgba(0, 255, 159, 0.5);
}

#logo {
  width: 120px;
  height: 120px;
  filter: drop-shadow(0 0 16px rgba(0, 255, 159, 0.3));
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

#logo:hover { transform: scale(1.08) rotate(-2deg); }

h1 {
  font-family: 'Share Tech Mono', monospace;
  font-weight: 800;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  letter-spacing: 0.04em;
  background: none;
  color: #00ff9f;
  -webkit-text-fill-color: #00ff9f;
  text-shadow: 0 0 20px rgba(0, 255, 159, 0.4);
  position: relative;
}

h1::after {
  content: '_';
  animation: blink-cursor 1s step-end infinite;
  color: #00ff9f;
  margin-left: 4px;
}

.tagline {
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(0.85rem, 2vw, 1rem);
  color: #ff00a0;
  text-shadow: 0 0 12px rgba(255, 0, 160, 0.3);
  letter-spacing: 0.1em;
}

.socials {
  display: flex;
  gap: 14px;
  margin-top: 8px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 10px 18px;
  border-radius: 4px;
  font-family: 'Share Tech Mono', monospace;
  border: 1px solid rgba(0, 255, 159, 0.25);
  background: rgba(0, 255, 159, 0.05);
  backdrop-filter: blur(6px);
  color: #00ff9f;
  transition: all 0.25s ease;
}

.social-btn svg { width: 20px; height: 20px; }

.social-btn:hover {
  background: rgba(0, 255, 159, 0.12);
  border-color: #00ff9f;
  box-shadow: 0 0 16px rgba(0, 255, 159, 0.2);
  color: #00ff9f;
}

.social-btn.twitch:hover {
  color: #ff00a0;
  border-color: #ff00a0;
  box-shadow: 0 0 16px rgba(255, 0, 160, 0.2);
  background: rgba(255, 0, 160, 0.08);
}

.social-btn.discord:hover {
  color: #00ccff;
  border-color: #00ccff;
  box-shadow: 0 0 16px rgba(0, 204, 255, 0.2);
  background: rgba(0, 204, 255, 0.08);
}

#web-games, #projects {
  margin-top: 32px;
  width: 100%;
  max-width: 820px;
}

#web-games h2, #projects h2 {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #00ff9f;
  margin-bottom: 18px;
  display: inline-block;
  padding: 6px 14px;
  border-radius: 4px;
  background: rgba(5, 8, 18, 0.7);
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  border: 1px solid #00ff9f;
  box-shadow: 0 0 16px rgba(0, 255, 159, 0.08);
  text-shadow: 0 0 8px rgba(0, 255, 159, 0.3);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.project-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 4px;
  border: 1px solid rgba(0, 255, 159, 0.15);
  background: rgba(5, 8, 18, 0.65);
  backdrop-filter: blur(6px) saturate(1.2) opacity(0.9);
  -webkit-backdrop-filter: blur(6px) saturate(1.2) opacity(0.9);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.project-card:hover {
  border-color: #00ff9f;
  box-shadow: 0 0 20px rgba(0, 255, 159, 0.12);
  transform: translateY(-2px);
}

.project-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  color: #ff00a0;
  stroke-width: 1.8;
}

.project-info h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #e8ecf1;
  font-family: 'Share Tech Mono', monospace;
  margin-bottom: 2px;
}

.project-info p {
  font-size: 0.8rem;
  color: #8a9bb5;
  font-family: 'Share Tech Mono', monospace;
}

.status-badge {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  background: #ff00a0;
  padding: 2px 6px;
  border-radius: 4px;
  vertical-align: middle;
  /* margin-left: 4px; */
}

.coming-soon { cursor: default; }
.coming-soon:hover {
  transform: none;
  border-color: rgba(0, 255, 159, 0.15);
  box-shadow: none;
}

@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@media (max-width: 768px) {
  #content {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: auto !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 8vh 16px 32px !important;
    gap: 0 !important;
  }
  #hero, #web-games, #projects {
    grid-column: auto !important;
    grid-row: auto !important;
    max-width: none !important;
    width: 100% !important;
    margin-top: 32px !important;
    z-index: auto !important;
  }
  #hero { margin-top: 0 !important; }
  .hero-glass {
    flex-direction: column !important;
    max-width: none !important;
    justify-content: center !important;
  }
  #logo {
    width: 90px !important;
    height: 90px !important;
  }
  h1 {
    font-size: clamp(2.2rem, 6vw, 3.5rem) !important;
    text-align: center !important;
    margin-left: 0 !important;
    flex: 0 1 auto !important;
  }
}

@media (max-width: 520px) {
  #content { padding: 8vh 16px 32px; }
  #logo { width: 90px; height: 90px; }
  .socials { flex-direction: column; width: 100%; }
  .social-btn { justify-content: center; }
  .project-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

#bg-dom {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  display: none;
  overflow: hidden;
  background: #000;
}

#bg-dom iframe {
  position: absolute;
  top: 50%; left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-height: 100vh;
  min-width: 177.77vh;
  transform: translate(-50%, -50%);
  pointer-events: none;
  border: 0;
}

#bg.crt-dom-overlay {
  mix-blend-mode: multiply;
  pointer-events: none;
}
