* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: default;
}

body {
    font-family: 'JetBrains Mono', sans-serif;
    background-color: #0f0f0f;
    user-select: none;
    -webkit-user-drag: none;
    user-drag: none;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: transparent;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 23px;
    font-weight: 700;
    color: #ebebeb;
    text-decoration: none;
    letter-spacing: 1px;
}

.logo:hover {
    color: #a8a8a8;
}

/* ===== Навигация ===== */
.nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #ffffff;
}

.nav a:hover::after {
  width: 100%;
}

.nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #818181;
}

.nav a.active:hover::after {
  width: 100%;
}

.nav a.active {
    color: #818181;
}







.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 40px 20px;
    text-align: center;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 300;
    color: #c4c4c4;
    max-width: 600px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0s ease-out 0.3s forwards;
    opacity: 0;
}

.fade-in-delay {
    animation: fadeIn 0s ease-out 0.8s forwards;
    opacity: 0;
}

.fade-in-delay-x2 {
    animation: fadeIn 0s ease-out 1.4s forwards;
    opacity: 0;
}

/* ===== Секция проектов ===== */
.projects {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px;
}

.terminal-line {
    margin-bottom: 40px;
    font-size: 18px;
    color: #c7c7c7;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* ===== Карточка проекта ===== */
.project-card {
    background: #1a1a1a;
    padding: 20px;
    position: relative;
}

.project-card:hover {
    background-color: #202020;
}

/* ===== Шапка карточки ===== */
.project-header {
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #2a2a2a;
    padding-bottom: 12px;
    margin-bottom: 12px;
    font-family: 'JetBrains Mono', monospace;
}

.project-icon {
    font-size: 18px;
}

.project-name {
    color: #c7c7c7;
    font-weight: 500;
    font-size: 16px;
    letter-spacing: 0.5px;
}

.project-status {
    color: #666;
    font-size: 14px;
    margin-left: auto;
}

/* ===== Тело карточки ===== */
.project-body {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: #c4c4c4;
}

.project-desc {
    margin-bottom: 12px;
}

.comment {
    color: #808080; /* зелёный комментарий как в IDE */
    font-style: italic;
}

/* ===== Технологии ===== */
.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.tech-tag {
    background: #2a2a2a;
    color: #b0b0b0;
    padding: 4px 12px;
    font-size: 12px;
    letter-spacing: 0.3px;
}

.tech-tag:hover {
    background: #353535;
    color: #cfcfcf;
}

/* ===== Ссылки ===== */
.project-links {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.project-link {
    text-decoration: none;
    font-size: 14px;
}

.project-link.main {
    color: #dddddd;
}

.project-link.second {
    color: #b3b3b3;
}

.project-link:hover {
    text-decoration: none;
}

.project-link.main:hover {
    color: #ffffff;
}

.project-link.second:hover {
    color: #cacaca;
}

/* ===== Подвал с курсором ===== */
.project-footer {
    margin-top: 15px;
    border-top: 1px solid #2a2a2a;
    padding-top: 10px;
    display: flex;
    justify-content: flex-end;
}

.cursor-blink {
    display: inline-block;
    width: 10px;
    height: 1.2em;
    background: #dddddd;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ===== Адаптивность ===== */
@media (max-width: 768px) {
    .projects {
        padding: 40px 20px;
    }
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .project-header {
        flex-wrap: wrap;
    }
    .project-status {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
  .header {
    padding: 15px 20px;
    flex-wrap: wrap;
  }
  .nav {
    display: none; /* скрываем навигацию */
    gap: 15px;
  }
  .nav a {
    font-size: 12px;
  }
  .hamburger {
    display: flex; /* показываем гамбургер */
  }
  .hero-title {
    font-size: 32px;
  }
  .hero-subtitle {
    font-size: 16px;
  }
}
@media (max-width: 480px) {
  .nav {
    gap: 10px;
  }
  .logo {
    font-size: 22px;
  }
}