    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }
    
    body {
      margin: 0;
      font-family: Arial, sans-serif;
      background: linear-gradient(to bottom, #000000, #1a001a);
      color: #d8b4fe;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      overflow-x: hidden;
      width: 100%;
    }

    body::before {
      content: "";
      position: fixed;
      top: 0; left: 0;
      width: 100%; height: 100%;
      background: radial-gradient(circle, rgba(192,132,252,0.15) 0%, transparent 70%) 10% 20%,
                  radial-gradient(circle, rgba(167,139,250,0.12) 0%, transparent 60%) 80% 30%,
                  radial-gradient(circle, rgba(216,180,254,0.1) 0%, transparent 60%) 50% 80%;
      background-size: 300px 300px, 400px 400px, 500px 500px;
      animation: floatBg 30s infinite linear;
      z-index: 0;
    }
    
    @keyframes floatBg {
      0% { background-position: 10% 20%, 80% 30%, 50% 80%; }
      50% { background-position: 15% 25%, 75% 35%, 55% 85%; }
      100% { background-position: 10% 20%, 80% 30%, 50% 80%; }
    }

    header, main, footer { 
      position: relative; 
      z-index: 1;
      width: 100%;
      max-width: 100%;
    }

    header {
      position: sticky;
      top: 0;
      background: rgba(0,0,0,0.8);
      backdrop-filter: blur(10px);
      border-bottom: 1px solid rgba(168,85,247,0.3);
      z-index: 1000;
      width: 100%;
    }
    
    nav {
      max-width: 1200px;
      margin: 0 auto;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 1rem;
      width: 100%;
    }
    
    nav .logo {
      font-weight: bold;
      font-size: 1.6rem;
      white-space: nowrap;
    }
    
    nav .logo span:nth-child(1) { color: #c084fc; }
    nav .logo span:nth-child(2) { color: #fff; }
    nav .logo span:nth-child(3) { color: #a78bfa; }
    
    nav .logo span { 
      text-shadow: 0 0 10px rgba(192,132,252,0.6), 0 0 20px rgba(192,132,252,0.3);
    }

    .nav-links {
      display: flex;
      gap: 0.5rem;
    }
    
    .nav-links button {
      background: none;
      border: none;
      color: #d8b4fe;
      font-size: 0.9rem;
      cursor: pointer;
      padding: 0.5rem 0.8rem;
      border-radius: 0.8rem;
      transition: 0.3s;
      white-space: nowrap;
    }
    
    .nav-links button:hover, .nav-links button.active {
      background: linear-gradient(to right, #7e22ce, #a21caf);
      color: white;
      box-shadow: 0 0 12px rgba(167,139,250,0.6);
    }

    .menu-toggle {
      display: none;
      font-size: 1.5rem;
      background: none;
      border: none;
      color: #d8b4fe;
      cursor: pointer;
      z-index: 1001;
    }

    main { 
      flex: 1; 
      position: relative;
      max-width: 1200px;
      margin: 0 auto;
      width: 100%;
      padding: 0 1rem;
    }
    
    section {
      display: none;
     width: 100%;
     padding: 2rem 0 3rem;
     opacity: 0;
     transform: translateY(20px);
     transition: opacity 0.6s ease, transform 0.6s ease;
   }

    section.active {
      display: block;
      opacity: 1;
      transform: translateY(0);
    }

    .home h1,
    .projects-section h2,
    .about-section h2 {
      font-size: 2.2rem;
      text-align: center;
      margin-bottom: 1.5rem;
      margin-top: 0;
      color: #fff;
      animation: glowPulse 3s infinite ease-in-out;
      padding: 0 1rem;
    }
    
    @keyframes glowPulse {
      0%,100% { text-shadow: 0 0 15px rgba(192,132,252,0.7); }
      50% { text-shadow: 0 0 30px rgba(167,139,250,1); }
    }

    .feed {
      display: flex;
      flex-direction: column;
      gap: 1.2rem;
      width: 100%;
      max-width: 600px;
      margin: 0 auto;
      padding: 0 0.5rem;
    }
    
    .post {
      background: rgba(0,0,0,0.6);
      border: 1px solid rgba(168,85,247,0.3);
      border-radius: 1rem;
      padding: 1rem;
      box-shadow: 0 4px 20px rgba(139,92,246,0.2);
      animation: fadeUp 0.3s ease;
      width: 100%;
    }
    
    .post-header {
      display: flex;
      align-items: center;
      gap: 0.8rem;
      margin-bottom: 0.8rem;
    }
    
    .avatar {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      border: 2px solid #a78bfa;
      object-fit: cover;
    }
    
    .post-header h3 {
      margin: 0;
      font-size: 1.1rem;
      color: #fff;
    }
    
    .post-header .time {
      font-size: 0.8rem;
      color: #a78bfa;
    }
    
    .post-content {
      font-size: 0.95rem;
      line-height: 1.5;
      color: #d8b4fe;
      margin-bottom: 1rem;
      overflow-wrap: break-word;
    }
    
    .post-footer {
      display: flex;
      gap: 1rem;
    }
    
    .post-footer button {
      background: none;
      border: none;
      color: #a78bfa;
      font-size: 0.9rem;
      cursor: pointer;
      transition: 0.2s;
    }
    
    .post-footer button:hover {
      color: #fff;
      text-shadow: 0 0 8px #a78bfa;
    }

    .projects {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 1.2rem;
      padding: 0 0.5rem;
      width: 100%;
    }
    
    .card {
      background: rgba(0,0,0,0.6);
      border: 1px solid rgba(168,85,247,0.3);
      border-radius: 1rem;
      padding: 1.2rem;
      transition: 0.3s;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      opacity: 0;
      transform: translateY(20px) scale(0.98);
      animation: fadeUp 0.8s forwards;
      width: 100%;
    }
    
    .card:hover { box-shadow: 0 8px 30px rgba(139,92,246,0.3); }
    
    .card:nth-child(1) { animation-delay: 0.2s; }
    .card:nth-child(2) { animation-delay: 0.4s; }
    .card:nth-child(3) { animation-delay: 0.6s; }
    
    @keyframes fadeUp {
      to { opacity: 1; transform: translateY(0) scale(1); }
    }

    .card h3 {
      margin: 0 0 0.8rem;
      color: #fff;
      font-size: 1.3rem;
    }
    
    .card p {
      color: #d8b4fe;
      font-size: 0.95rem;
      line-height: 1.4;
      flex-grow: 1;
    }
    
    .card button {
      align-self: flex-start;
      margin-top: 1rem;
      background: linear-gradient(to right, #7e22ce, #a21caf);
      border: none;
      color: white;
      padding: 0.6rem 1.2rem;
      border-radius: 0.6rem;
      cursor: pointer;
      font-size: 0.9rem;
      transition: 0.3s;
    }
    
    .card button:hover {
      opacity: 0.9;
      transform: translateY(-2px);
    }

    .about-section .about-box {
      background: rgba(0,0,0,0.6);
      border: 1px solid rgba(168,85,247,0.3);
      border-radius: 1rem;
      padding: 1.2rem;
      box-shadow: 0 4px 20px rgba(139,92,246,0.2);
      max-width: 800px;
      margin: 0 auto 1.5rem;
      line-height: 1.6;
      color: #d8b4fe;
      font-size: 0.95rem;
      width: calc(100% - 2rem);
    }

    .social-buttons {
      margin-top: 1.5rem;
      display: flex;
      gap: 0.8rem;
      justify-content: center;
      flex-wrap: wrap;
      padding: 0 0.5rem;
    }
    
    .social-btn {
      display: flex;
      align-items: center;
      gap: 0.6rem;
      padding: 0.7rem 1.2rem;
      border-radius: 999px;
      text-decoration: none;
      font-weight: 600;
      font-size: 0.95rem;
      color: white;
      transition: transform 0.2s ease, box-shadow 0.3s ease;
      box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    }
    
    .social-btn img { 
      width: 18px; 
      height: 18px; 
    }
    
    .social-btn:hover {
      transform: translateY(-3px) scale(1.03);
      box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    }
    
    .social-btn.telegram {
      background: linear-gradient(135deg, #37aee2, #1e96c8);
    }
    
    .social-btn.github {
      background: linear-gradient(135deg, #333, #111);
    }

    footer {
      border-top: 1px solid rgba(168,85,247,0.3);
      text-align: center;
      padding: 1.5rem 1rem;
      font-size: 0.8rem;
      color: #a78bfa;
      margin-top: auto;
      width: 100%;
    }

    .overlay {
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.55);
      backdrop-filter: blur(6px);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 2000;
      padding: 1rem;
    }
    
    .overlay.active { display: flex; }
    
    .modal {
      width: 100%;
      max-width: 720px;
      background: rgba(6,6,10,0.98);
      border: 1px solid rgba(168,85,247,0.35);
      border-radius: 12px;
      padding: 1.2rem;
      box-shadow: 0 10px 40px rgba(0,0,0,0.6);
      color: #fff;
      position: relative;
      animation: popIn 0.25s ease;
    }
    
    @keyframes popIn {
      from { opacity: 0; transform: translateY(8px) scale(0.98); }
      to { opacity: 1; transform: translateY(0) scale(1); }
    }
    
    .modal .modal-image {
      width: 100%;
      height: 160px;
      border-radius: 8px;
      object-fit: cover;
      margin-bottom: 1rem;
      border: 1px solid rgba(168,85,247,0.2);
    }
    
    .modal h3 { 
      margin: 0 0 0.6rem 0; 
      color: #fff; 
      font-size: 1.3rem; 
    }
    
    .modal p { 
      color: #d8b4fe; 
      line-height: 1.6; 
      margin: 0 0 1rem 0; 
      white-space: pre-wrap; 
      font-size: 0.95rem; 
    }
    
    .modal .modal-actions { 
      display:flex; 
      gap: 0.6rem; 
      margin-top: 0.6rem; 
    }
    
    .close-btn {
      position: absolute;
      top: 10px;
      right: 10px;
      background: none;
      border: none;
      color: #a78bfa;
      font-size: 1.4rem;
      cursor: pointer;
    }
    
    .close-btn:hover { color: #fff; }

    /* Мобильная адаптация */
    @media (max-width: 768px) {
      nav {
        padding: 0.8rem;
        flex-wrap: nowrap;
      }
      
      .menu-toggle { 
        display: block; 
        order: 2;
      }
      
      .nav-links { 
        display: none; 
        flex-direction: column; 
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(0,0,0,0.95);
        backdrop-filter: blur(10px);
        padding: 1rem;
        border-top: 1px solid rgba(168,85,247,0.3);
        box-shadow: 0 5px 15px rgba(0,0,0,0.3);
        z-index: 999;
        width: 100%;
      }
      
      .nav-links.active { 
        display: flex; 
      }
      
      .nav-links button {
        width: 100%;
        text-align: left;
        padding: 0.8rem 1rem;
        margin: 0.2rem 0;
        font-size: 1rem;
      }
      
      section { 
        padding: 1.5rem 0 2rem;
      }
      
      .home h1, .projects-section h2, .about-section h2 { 
        font-size: 1.8rem; 
        margin-bottom: 1.2rem;
      }
      
      .feed {
        gap: 1rem;
        padding: 0 0.5rem;
      }
      
      .post {
        padding: 0.9rem;
      }
      
      .post-header {
        gap: 0.6rem;
      }
      
      .avatar {
        width: 36px;
        height: 36px;
      }
      
      .post-header h3 {
        font-size: 1rem;
      }
      
      .post-content {
        font-size: 0.9rem;
      }
      
      .projects { 
        grid-template-columns: 1fr; 
        gap: 1rem;
        padding: 0 0.5rem;
      }
      
      .card { 
        padding: 1rem; 
      }
      
      .card h3 { 
        font-size: 1.2rem; 
      }
      
      .card p { 
        font-size: 0.9rem; 
      }
      
      .card button {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
      }
      
      .about-section .about-box {
        padding: 1rem;
        margin: 0 0.5rem 1.5rem;
        font-size: 0.9rem;
        width: calc(100% - 1rem);
      }
      
      .social-buttons {
        gap: 0.6rem;
        margin-top: 1.2rem;
      }
      
      .social-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
      }
      
      .social-btn img { 
        width: 16px; 
        height: 16px; 
      }
      
      .modal { 
        padding: 1rem; 
        max-width: calc(100% - 2rem);
      }
      
      .modal .modal-image { 
        height: 140px; 
      }
      
      .modal h3 { 
        font-size: 1.2rem; 
      }
      
      .modal p { 
        font-size: 0.9rem; 
      }
    }

    @media (max-width: 480px) {
      nav .logo {
        font-size: 1.4rem;
      }
      
      .home h1, .projects-section h2, .about-section h2 { 
        font-size: 1.6rem; 
      }
      
      .post-header .time {
        font-size: 0.75rem;
      }
      
      .about-section .about-box {
        font-size: 0.85rem;
        line-height: 1.5;
      }
      
      .social-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
      }
      
      .social-btn {
        width: 90%;
        justify-content: center;
      }
      
      .modal .modal-actions {
        flex-direction: column;
      }
      
      .modal .modal-actions button {
        width: 100%;
      }
    }