  :root {
    --bg: #0d0d0d;
    --accent: #00ffd5;
    --text: #f5f5f5;
    --secondary: #999;
    --font: 'JetBrains Mono', monospace;
    --transition: 0.4s ease;
  }

  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
  }

  html {
    scroll-behavior: smooth;
  }

  body {
    font-family: var(--font);
    background: linear-gradient(135deg, #0d0d0d, #1a1a1a);
    color: var(--text);
    overflow-x: hidden;
  }

  header {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem 1rem;
    animation: fadeIn 1.5s ease-in;
    position: relative;
    overflow: hidden;
  }

  h1 {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1rem;
    z-index: 2;
  }

  .typed-text {
    font-size: 1.4rem;
    margin-top: 1rem;
    color: var(--text);
    z-index: 2;
    font-weight: 400;
    word-break: break-word;
    max-width: 100%;
  }

  .typed-text::after {
    content: "|";
    animation: blink 1s step-start infinite;
    color: var(--accent);
  }

  section {
    padding: 0.5rem 1rem;
    max-width: 1000px;
    margin: auto;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.5s ease-out;
    animation: fadeIn 0.3s ease-in;
  }

  section.visible {
    opacity: 1;
    transform: translateY(0);
  }

  .card {
    background: rgba(26, 26, 26, 0.9);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 255, 213, 0.15);
    color: var(--text);
    position: relative;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
  }

  .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 213, 0.2);
  }

  ul {
    list-style: none;
    padding-left: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 0.8rem;
  }

  li {
    background: #121212;
    padding: 0.7rem;
    border-radius: 10px;
    color: var(--accent);
    text-align: center;
    box-shadow: inset 0 0 10px rgba(0, 255, 213, 0.1);
    font-size: 0.95rem;
  }

  .projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.project-card {
  aspect-ratio: 1 / 1; /* Квадрат */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #121212;
  border-radius: 13px;
  padding: 1rem;
  box-shadow: 0 0 15px rgba(0, 255, 213, 0.1);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 255, 213, 0.2);
}

.project-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.project-card p {
  flex-grow: 1;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-card a {
  font-weight: bold;
  font-size: 0.95rem;
  margin-top: 0.3rem;
  display: inline-block;
}


  .quote {
    margin-top: 2rem;
    padding: 1rem 1.5rem;
    border-left: 4px solid var(--accent);
    background-color: rgba(255, 255, 255, 0.03);
    font-style: italic;
    color: var(--secondary);
  }

  .quote p {
    margin-bottom: 0.5rem;
  }

  .quote cite {
    display: block;
    text-align: right;
    font-style: normal;
    font-size: 0.9rem;
    color: var(--text);
    opacity: 0.8;
  }

  footer {
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
    opacity: 0.6;
  }

  a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
    word-break: break-word;
  }

  a:hover {
    color: #ffffff;
  }

  .custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
    transform: translate(-50%, -50%);
  }

  .particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: scale(0.9);
    }
    to {
      opacity: 1;
      transform: scale(1);
    }
  }

  @keyframes blink {
    50% {
      opacity: 0;
    }
  }

  /* Мобильная адаптация */
  @media (max-width: 768px) {
    h1 {
      font-size: 2rem;
    }

    .typed-text {
      font-size: 1rem;
    }

    .card {
      padding: 1.5rem;
      margin: 1rem 0.5rem;
    }

    ul {
      grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }

    .project-card {
      padding: 1rem;
    }

    .quote {
      font-size: 0.9rem;
    }
  }

  @media (max-width: 480px) {
    h1 {
      font-size: 1.6rem;
    }

    .typed-text {
      font-size: 0.95rem;
      line-height: 1.4rem;
    }

    .card {
      padding: 1.2rem;
    }

    .project-card h3 {
      font-size: 1.1rem;
    }

    .project-card p,
    .project-card a {
      font-size: 0.9rem;
    }

    ul {
      grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    }
  }
  @media (max-width: 768px) {
  .custom-cursor {
    display: none;
  }

  * {
    cursor: auto !important;
  }
  .scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  cursor: pointer;
  z-index: 10;
  opacity: 0.8;
  transition: opacity 0.3s ease, transform 0.3s ease;
  animation: scrollBounce 1.8s infinite;
}

.scroll-down:hover {
  opacity: 1;
  transform: translateX(-50%) scale(1.05);
}

.scroll-down svg {
  width: 48px;
  height: 48px;
  color: var(--accent);
  stroke: var(--accent);
}

@keyframes scrollBounce {
  0% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(10px);
  }
  100% {
    transform: translateX(-50%) translateY(0);
  }
}

@media (max-width: 768px) {
  .scroll-down svg {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 480px) {
  .scroll-down svg {
    width: 28px;
    height: 28px;
  }
}
.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  cursor: pointer;
  z-index: 10;
  opacity: 0.8;
  transition: opacity 0.4s ease, transform 0.3s ease;
  animation: scrollBounce 1.8s infinite;
}

}