/* xenoOS.css */
body {
    margin: 0;
    overflow-x: hidden;
    font-family: 'Days One', sans-serif;
    min-height: calc(100vh + 1080px);
    color: white;
}

#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: #000;
}

.main-content {
    position: relative;
    min-height: calc(100vh + 1080px);
}

/* Исправления для мобильного меню */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    flex-direction: column;
    justify-content: space-between;
    height: 30px;
    width: 40px;
}

.mobile-menu-btn span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--light);
    border-radius: 3px;
    transition: all 0.3s;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* Стили для мобильного меню из JS */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-container {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    z-index: 9999;
    overflow-y: auto;
}

.mobile-menu-overlay.active .mobile-menu-container {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #333;
    background: rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.mobile-menu-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 18px;
}

.mobile-logo-img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: background 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-nav-links {
    flex: 1;
    padding: 20px 0;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    font-size: 16px;
}

.mobile-nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: #4CAF50;
}

.mobile-nav-link i {
    width: 20px;
    text-align: center;
    font-size: 18px;
}

.mobile-nav-link span {
    font-weight: 500;
}

.mobile-social-links {
    padding: 20px;
    border-top: 1px solid #333;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

.mobile-social-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    font-size: 14px;
}

.mobile-social-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.mobile-social-link i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.mobile-login-btn {
    margin: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-shrink: 0;
    font-size: 16px;
}

.mobile-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

body.no-scroll {
    overflow: hidden;
}

.mobile-nav-link.active {
    background: rgba(76, 175, 80, 0.2) !important;
    border-left-color: #4CAF50 !important;
    color: #4CAF50 !important;
}

.hero {
    height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.logo-container {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    pointer-events: all;
}

.logo {
    width: 150px;
    height: 150px;
    object-fit: contain;
    filter:
            drop-shadow(0 0 10px rgba(255,255,255,0.7))
            brightness(1.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.logo:hover {
    transform: scale(1.05);
    filter:
            drop-shadow(0 0 15px #fff)
            brightness(1.5);
}

.title {
    font-size: 5rem;
    margin: 0;
    background: linear-gradient(135deg, #ffffff, #b5b5ff);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    z-index: 2;
}

.subtitle {
    font-size: 1.5rem;
    margin-top: 1rem;
    text-shadow: 0 0 5px rgba(255,255,255,0.5);
    z-index: 2;
}

.info-section {
    height: 1080px;
    position: relative;
    z-index: 2;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(5px);
    padding: 80px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.info-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.info-container h2 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 60px;
    background: linear-gradient(90deg, #fff, #aaa);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.feature-card {
    background: rgba(30, 30, 30, 0.7);
    border: 1px solid #333;
    border-radius: 15px;
    padding: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.feature-card h3 {
    color: #5b65f5;
    margin-top: 0;
    font-size: 1.5rem;
}

.commands {
    background: rgba(20, 20, 20, 0.8);
    padding: 30px;
    border-radius: 15px;
    max-width: 800px;
    margin: 0 auto 40px;
}

.commands h3 {
    color: #5b65f5;
    margin-top: 0;
    font-size: 1.5rem;
}

.commands ul {
    columns: 2;
    column-gap: 40px;
    padding-left: 20px;
}

.commands li {
    margin-bottom: 15px;
    break-inside: avoid;
    font-size: 1.1rem;
}

code {
    background: rgba(91, 101, 245, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    color: #5b65f5;
    font-family: monospace;
}

/* Основные стили кнопки */
.invite-btn {
    position: relative;
    display: block;
    margin: 40px auto 0;
    padding: 18px 50px;
    background: transparent;
    color: white;
    border: 2px solid #5b65f5;
    border-radius: 50px;
    font-size: 1.2rem;
    font-family: 'Days One', sans-serif;
    cursor: pointer;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s;
}

/* Текст кнопки */
.btn-text {
    position: relative;
    z-index: 2;
    transition: color 0.3s;
}

/* Жидкий металл - появляется сразу при наведении */
.invite-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
            45deg,
            #5b65f5,
            #8b3df5,
            #e73c7e,
            #23a6d5,
            #5b65f5
    );
    background-size: 400% 400%;
    z-index: -1;
    border-radius: 50px;
    opacity: 0;
    transition: opacity 0.15s ease; /* Быстрое появление */
}

/* Анимация градиента */
@keyframes liquidFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Состояние при наведении */
.invite-btn:hover {
    border-color: transparent;
    box-shadow:
            0 0 15px rgba(91, 101, 245, 0.6),
            0 0 30px rgba(91, 101, 245, 0.3);
}

.invite-btn:hover::before {
    opacity: 1;
    animation: liquidFlow 3s linear infinite;
}

.invite-btn:hover .btn-text {
    color: white;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .invite-btn {
        padding: 15px 40px;
        font-size: 1rem;
    }
}

/* Анимации */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .title {
        font-size: 3rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .logo {
        width: 100px;
        height: 100px;
    }

    .info-container h2 {
        font-size: 2rem;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .commands ul {
        columns: 1;
    }

    .feature-card {
        padding: 20px;
    }

    .commands {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 2.5rem;
    }

    .info-section {
        padding: 40px 0;
    }

    .invite-btn {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

/* Стили для карточек с иконками рядом */
.feature-content {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.feature-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    object-fit: contain;
    filter: drop-shadow(0 0 3px rgba(91, 101, 245, 0.5));
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(91, 101, 245, 0.8));
}

.feature-content > div {
    flex: 1;
}

.feature-content h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #5b65f5;
}

.feature-content p {
    margin: 0;
    color: rgba(255,255,255,0.8);
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .feature-content {
        flex-direction: column;
        gap: 10px;
    }

    .feature-icon {
        width: 30px;
        height: 30px;
        min-width: 30px;
    }
}