@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&family=Permanent+Marker&family=Archivo+Black&display=swap');

:root {
  --bg: #000000;
  --fg: #ffffff;
  --accent: #ff0000;
  --muted: #666666;
  --terminal-bg: #0a0a0a;
  --font-main: 'JetBrains Mono', monospace;
  --font-logo: 'Permanent Marker', cursive;
  --font-header: 'Archivo Black', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  cursor: text;
}

/* Scanline Effect */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    rgba(18, 16, 16, 0) 50%,
    rgba(0, 0, 0, 0.1) 50%
  ),
  linear-gradient(
    90deg,
    rgba(255, 0, 0, 0.02),
    rgba(0, 255, 0, 0.01),
    rgba(0, 0, 255, 0.02)
  );
  background-size: 100% 3px, 3px 100%;
  pointer-events: none;
  z-index: 9999;
}

/* Boot Screen */
.boot-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.8s ease-out;
}

.boot-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

.boot-content {
  width: 100%;
  max-width: 800px;
  padding: 2rem;
  color: #00ff00;
  font-family: var(--font-main);
  font-size: 0.9rem;
  text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

.boot-line {
  margin: 0.4rem 0;
  opacity: 0;
  animation: typeIn 0.05s forwards;
}

.boot-line:nth-child(1) { animation-delay: 0ms; }
.boot-line:nth-child(2) { animation-delay: 400ms; }
.boot-line:nth-child(3) { animation-delay: 800ms; }
.boot-line:nth-child(4) { animation-delay: 1000ms; }
.boot-line:nth-child(5) { animation-delay: 1400ms; }
.boot-line:nth-child(6) { animation-delay: 1800ms; }
.boot-line:nth-child(7) { animation-delay: 2200ms; }
.boot-line:nth-child(8) { animation-delay: 2600ms; }
.boot-line:nth-child(9) { animation-delay: 3000ms; }
.boot-line:nth-child(10) { animation-delay: 3400ms; }
.boot-line:nth-child(11) { animation-delay: 3800ms; }
.boot-line:nth-child(12) { animation-delay: 4200ms; }

@keyframes typeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.access-hint {
  animation: blink 0.8s infinite;
  animation-delay: 4200ms;
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0.3; }
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
  opacity: 0;
  transition: opacity 0.8s ease-out 0.6s;
}

.container.visible {
  opacity: 1;
}

/* Top Bar */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1rem 2rem;
  font-size: 0.75rem;
  border-bottom: 1px solid #1a1a1a;
  color: var(--muted);
  opacity: 0;
  animation: slideDown 0.5s ease-out 4s forwards;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.top-left .prompt {
  color: var(--accent);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  animation: cursorBlink 0.8s infinite;
}

@keyframes cursorBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0.2; }
}

.top-center {
  color: var(--accent);
  letter-spacing: 2px;
}

.top-right {
  text-align: right;
  line-height: 1.4;
}

.top-right span {
  display: block;
}

.top-right span::before {
  content: "> ";
  color: var(--muted);
}

.top-right span::after {
  content: " <";
  color: var(--muted);
}

.top-right .active {
  color: var(--accent);
}

/* Header */
.header {
  text-align: center;
  padding: 4rem 0 2rem;
  position: relative;
}

.logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.big-fahhhh {
  font-family: var(--font-logo);
  font-size: 8rem;
  color: var(--accent);
  line-height: 1;
  text-transform: uppercase;
  margin: 0;
  text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
  animation: fadeInLogo 0.8s ease-out 4.2s both;
}

@keyframes fadeInLogo {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lab-text {
  font-family: var(--font-header);
  font-size: 3rem;
  color: var(--fg);
  margin-top: -1.5rem;
  margin-left: 5rem;
  text-transform: uppercase;
  letter-spacing: 5px;
  animation: fadeInLogo 0.8s ease-out 4.3s both;
}

.slogan {
  font-family: var(--font-header);
  font-size: 1.2rem;
  letter-spacing: 3px;
  color: var(--fg);
  margin-top: 1rem;
  animation: fadeInLogo 0.8s ease-out 4.4s both;
  line-height: 1.8;
}

.slogan .accent-text {
  color: var(--accent);
  display: block;
  margin-top: 0.5rem;
}

/* Sections as Terminal Windows */
.section {
  margin-bottom: 4rem;
  border: 1px solid #222;
  background: var(--terminal-bg);
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-header {
  background: #111;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid #222;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.section-header::before {
  content: "● ● ●";
  color: #333;
  font-size: 0.8rem;
  letter-spacing: 2px;
}

.section-title {
  color: var(--accent);
  font-size: 0.9rem;
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 1px;
  font-style: italic;
}

.section-content {
  padding: 2rem;
}

h2 {
  display: none;
}

h3 {
  color: var(--accent);
  margin-bottom: 1rem;
  font-size: 1.1rem;
  text-transform: uppercase;
}

p {
  margin-bottom: 1.5rem;
  color: #ccc;
}

.prompt-text {
  color: var(--muted);
  font-weight: bold;
}

.config-key {
  color: var(--accent);
  font-weight: bold;
}

.config-line {
  margin-bottom: 0.8rem;
  color: #ddd;
}

.cmd-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.2s;
  cursor: pointer;
}

.cmd-link:hover {
  border-bottom-color: var(--accent);
  background: rgba(255, 0, 0, 0.1);
  text-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
}

.command-output {
  font-family: var(--font-main);
  color: #bbb;
  margin-bottom: 0.8rem;
}

/* Module list styling */
.module-list {
  margin-top: 1rem;
}

.module-item {
  margin-bottom: 0.7rem;
  padding-left: 1rem;
  color: #aaa;
  border-left: 1px dashed #333;
  position: relative;
}

.module-item::before {
  content: "→";
  position: absolute;
  left: -0.6rem;
  color: var(--accent);
}

.module-name {
  color: var(--fg);
  font-weight: bold;
}

/* Work Item Styling */
.work-item {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px dashed #222;
}

.work-item:last-child {
  border-bottom: none;
}

.work-desc {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

/* Bottom Bar / Footer */
.bottom-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
  border-top: 1px solid #1a1a1a;
  background: #050505;
  margin-top: 4rem;
  opacity: 0;
  animation: slideDown 0.5s ease-out 4.5s forwards;
}

.bottom-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: bold;
  color: var(--fg);
}

.status-light {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #00ff00;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
  box-shadow: 0 0 5px rgba(0, 255, 0, 0.8);
}

.status-indicator {
  color: var(--accent);
  animation: blink 1s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.github-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1.5rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s;
  cursor: pointer;
}

.github-link:hover {
  background: var(--accent);
  color: #000;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

/* Rare glitch effect */
@keyframes glitch {
  0% { transform: translate(0); }
  20% { transform: translate(-2px, 2px); }
  40% { transform: translate(-2px, -2px); }
  60% { transform: translate(2px, 2px); }
  80% { transform: translate(2px, -2px); }
  100% { transform: translate(0); }
}

/* Responsive */
@media (max-width: 768px) {
  .big-fahhhh {
    font-size: 5rem;
  }
  .lab-text {
    font-size: 2rem;
    margin-left: 2rem;
  }
  .top-bar {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }
  .top-right {
    text-align: center;
  }
  .bottom-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}
