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

body {
    min-height: 100vh;
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: white;
    display: flex;
    flex-direction: column;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@media (prefers-color-scheme: dark) {
    body {
    background: linear-gradient(135deg, #2c3e50, #1c1c1c);
    animation: none;
    }
}

/* Верхнее меню навигации */
.top-nav {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 6px 12px;
    border-radius: 8px;
}

.top-nav a:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Основной контент */
.container {
    text-align: center;
    max-width: 800px;
    width: 100%;
    margin: 60px auto 0;
    padding: 0 20px;
}

.container-h1 {
      font-size: 4rem;
      font-weight: 800;
      margin-bottom: 1rem;
      text-shadow: 0 2px 10px rgba(0,0,0,0.2);
      letter-spacing: -1px;
    }

    .container p {
      font-size: 1.2rem;
      margin-bottom: 1.2rem;
      line-height: 1.5;
    }

    

.nickname {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 2.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    letter-spacing: -0.5px;
}

.links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.link {
    display: flex;
    justify-content: center;
    gap: 14px;
    padding: 16px 24px;
    text-decoration: none;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 14px;
    transition: transform 0.2s, opacity 0.2s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.link:hover {
    transform: translateY(-2px);
    opacity: 0.95;
}

.link img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

/* Цвета кнопок соцсетей */
.telegram { background: #0088cc; }
.github { background: #181717; }
.vk { background: #0077ff; }
.back {background: #cfcfcf3d}

@media (max-width: 600px) {
    .nickname {
    font-size: 2.5rem;
    }
    .link {
    padding: 14px 20px;
    font-size: 1rem;
    }
    .top-nav {
    gap: 16px;
    padding: 12px;
    }
    .top-nav a {
    font-size: 1rem;
    }
}

/* Стили только для страницы проектов */
   .projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 50%);
    gap: 24px;
    margin-top: 2rem;
    padding: 0 20px;
  }

  .project-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s, opacity 0.2s;
  }

  .project-card:hover {
    transform: translateY(-4px);
    opacity: 0.95;
  }

  .project-area {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .project-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
  }

    .project-area,
    .project-title,
    .tech-stack,
    .company-logo-wrapper {
      text-align: left;
      align-self: flex-start;
    }

  .tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .tech-link {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: background 0.2s;
  }

  .tech-link:hover {
    background: rgba(255, 255, 255, 0.25);
    text-decoration: underline;
  }

  .company-logo {
    margin-top: auto;
    height: 32px;
    filter: brightness(0) invert(1) opacity(0.8);
    align-self: flex-start;
  }

  @media (max-width: 768px) {
    .projects-grid {
      grid-template-columns: 1fr;
    }
    .project-card.full-width {
      grid-column: span 1 !important;
    }
  }