:root {
  --bg-deep: #030712;
  --accent-glow: #10b981;
  --accent-subtle: #06b6d4;
  --glass: rgba(6, 182, 212, 0.03);
  --border: rgba(16, 185, 129, 0.2);
  --nav-height: 70px;
}

body {
  background-color: var(--bg-deep);
  color: #e2e8f0;
  font-family: "Space Grotesk", sans-serif;
  margin: 0;
  overflow-x: hidden;
}

html {
  scrollbar-width: none;
  scroll-behavior: smooth;
}
html::-webkit-scrollbar {
  display: none;
}

.overlay-scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  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% 4px, 3px 100%;
}

.system-nav {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1001;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-content {
  width: 100%;
  max-width: 1200px;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
}
.nav-logo {
  font-family: "Fira Code", monospace;
  color: var(--accent-glow);
  text-decoration: none;
  letter-spacing: 2px;
}
.nav-btn {
  font-family: "Fira Code", monospace;
  text-decoration: none;
  color: #e2e8f0;
  font-size: 0.75rem;
  padding: 8px 16px;
  transition: 0.3s;
}
.nav-btn:hover {
  color: var(--accent-glow);
  border: 1px solid var(--accent-glow);
  background: rgba(16, 185, 129, 0.05);
}

#canvas-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 140px 40px 100px;
  position: relative;
  z-index: 10;
}
.hud-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 80px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
}
.encryption-status {
  color: var(--accent-glow);
  font-family: "Fira Code";
  font-size: 0.8rem;
}
.page-title {
  font-size: clamp(2rem, 5vw, 4rem);
  text-transform: uppercase;
  letter-spacing: -2px;
  font-weight: 700;
  background: linear-gradient(to bottom, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 30px;
  perspective: 1000px;
}
.project-card {
  background: rgba(6, 182, 212, 0.02);
  border: 1px solid var(--border);
  padding: 40px;
  position: relative;
  transition: transform 0.1s ease-out;
  transform-style: preserve-3d;
  backdrop-filter: blur(10px);
}
.project-card:hover {
  border-color: var(--accent-glow);
}
.card-id {
  font-family: "Fira Code", monospace;
  font-size: 0.8rem;
  color: var(--accent-subtle);
  margin-bottom: 20px;
  display: block;
}
.tech-stack {
  display: flex;
  gap: 15px;
  font-family: "Fira Code", monospace;
  font-size: 0.65rem;
  color: var(--accent-glow);
  margin-bottom: 25px;
}

/* Link/Status Styling */
.card-footer {
  margin-top: 10px;
}
.project-link {
  font-family: "Fira Code", monospace;
  font-size: 0.75rem;
  color: var(--accent-glow);
  text-decoration: none;
  border: 1px solid var(--border);
  padding: 8px 16px;
  transition: 0.3s;
  display: inline-block;
}
.project-link:not(.disabled):hover {
  background: rgba(16, 185, 129, 0.1);
  border-color: var(--accent-glow);
  box-shadow: 0 0 10px var(--accent-glow);
  transform: translateX(5px);
}

.project-link.disabled {
  color: #4b5563;
  border-color: rgba(75, 85, 99, 0.2);
  cursor: not-allowed;
  opacity: 0.7;
}

.corner {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 2px solid var(--accent-glow);
}
.top-left {
  top: -2px;
  left: -2px;
  border-right: 0;
  border-bottom: 0;
}
.bottom-right {
  bottom: -2px;
  right: -2px;
  border-left: 0;
  border-top: 0;
}

#backToTop {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 50px;
  height: 50px;
  border: 1px solid var(--border);
  color: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: 0.4s;
}
#backToTop.show {
  opacity: 1;
}
.arrow-icon {
  width: 12px;
  height: 12px;
  border-left: 2px solid var(--accent-glow);
  border-top: 2px solid var(--accent-glow);
  transform: rotate(45deg);
}
