/* === Подключенные шрифты ===
   Poppins — для текста и заголовков
   Fira Code — для акцентов (можно в будущем для кода)
*/
body {
  margin: 0;
  font-family: "Fira Code", Arial, sans-serif;
  background: #0d0d0d;
  color: #e0e0e0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  background: #141414;
  padding: 12px 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* === Навигация === */
.navbar {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar li {
  margin: 0 18px;
}

.navbar a {
  text-decoration: none;
  color: #aaa;
  font-weight: 600;
  transition: color 0.3s ease, border-bottom 0.3s ease;
  padding: 6px 0;
}

.navbar a:hover,
.navbar .active {
  color: #00ff88;
  border-bottom: 2px solid #00ff88;
}

/* === Контент === */
main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
  text-align: center;
  animation: fadeIn 1s ease-in-out;
}

h1 {
  color: #00ff88;
  margin-bottom: 20px;
  font-weight: 600;
}

p {
  line-height: 1.6;
  font-size: 18px;
}

/* === Проекты === */
.project-list {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.project-card {
  background: #141414;
  padding: 20px;
  border-radius: 12px;
  width: 250px;
  box-shadow: 0 0 15px rgba(0,255,136,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  font-family: "Fira Code", monospace;
}

.project-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 0 25px rgba(0,255,136,0.4);
}

.project-card h2 {
  margin-top: 0;
  color: #00ff88;
  font-family: "Poppins", sans-serif;
}

/* === Соцсети === */
.social-links {
  list-style: none;
  padding: 0;
}

.social-links li {
  margin: 12px 0;
}

.social-links a {
  color: #00ff88;
  text-decoration: none;
  font-size: 20px;
  position: relative;
  transition: color 0.3s ease;
}

.social-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #00ff88;
  transition: width 0.3s ease;
}

.social-links a:hover {
  color: #fff;
}

.social-links a:hover::after {
  width: 100%;
}

/* === Подвал === */
footer {
  background: #141414;
  text-align: center;
  padding: 15px;
  font-size: 14px;
  color: #666;
  border-top: 1px solid #222;
}

/* === Анимации === */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

#matrix {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1; /* позади контента */
  width: 100%;
  height: 100%;
  background: #0d0d0d;
}

/* === Shell консоль === */
#shell {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 15, 0, 0.95);
  color: #00ff88;
  font-family: "Fira Code", monospace;
  font-size: 16px;
  padding: 20px;
  white-space: pre-wrap;
  overflow-y: auto;
  display: none;
  z-index: 9999;
}
