/* Базовые стили для всего сайта */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    min-height: 100vh;
    color: #fff;
    line-height: 1.6;
}

#vanta-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Обновляем стиль body - убираем градиент */
body {
    font-family: 'Montserrat', sans-serif;
    background: transparent; /* Убираем градиент, т.к. фон теперь от Vanta */
    min-height: 100vh;
    color: #fff;
    overflow-x: hidden;
}

/* Обновляем hero-section */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 2rem;
    z-index: 2; /* Важно: выше фона */
}

/* Утилиты */
.text-gradient {
    background: linear-gradient(45deg, #ff6ec7, #7873f5, #00d2ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Анимации */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Скрытие скроллбара для красоты */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #ff6ec7, #7873f5);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #ff6ec7, #00d2ff);
}

/* Медиа запросы для адаптивности */
@media (max-width: 1024px) {
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .main-title h1 {
        font-size: 4rem;
    }
    
    .navigation {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-card {
        width: 100%;
        max-width: 400px;
    }
    
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .main-title h1 {
        font-size: 3rem;
    }
    
    .gallery {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        flex-direction: column;
        align-items: center;
    }
}



/* Контейнер для кнопки */
.patreon-container {
    margin: 20px 0 15px 0; /* Уменьшили отступы */
    text-align: center;
    position: relative;
    z-index: 2;
}

/* Основные стили кнопки */
.patreon-button-with-logo {
    display: inline-block;
    background: linear-gradient(135deg, 
        #F96854 0%, 
        #FF424D 50%, 
        #F96854 100%
    ) !important;
    background-size: 200% 200% !important;
    text-decoration: none !important;
    padding: 0 !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: 3px solid rgba(255, 255, 255, 0.4) !important;
    cursor: pointer !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 
        0 15px 35px rgba(255, 66, 77, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
    min-width: 320px !important;
    animation: gradientShift 3s ease infinite !important;
}

/* Анимация градиента */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Внутреннее содержимое кнопки */
.patreon-button-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 30px; /* Уменьшили padding */
    position: relative;
    z-index: 2;
    gap: 15px; /* Уменьшили gap */
}

/* Логотип Patreon */
.patreon-logo {
    width: 32px; /* Чуть меньше */
    height: 32px;
    flex-shrink: 0;
}

/* Цвет новой иконки */
.patreon-logo path {
    fill: white !important;
}

/* Текст кнопки */
.patreon-button-text {
    flex-grow: 1;
    text-align: left;
    color: white;
}

.patreon-main-text {
    display: block;
    font-size: 1.2rem; /* Уменьшили размер */
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 2px; /* Уменьшили отступ */
    font-family: 'Montserrat', sans-serif;
}

.patreon-subtext {
    display: block;
    font-size: 0.8rem; /* Уменьшили размер */
    opacity: 0.9;
    font-weight: 500;
    letter-spacing: 0.3px;
    font-family: 'Montserrat', sans-serif;
}

/* Иконка стрелки */
.arrow-icon {
    width: 20px; /* Уменьшили */
    height: 20px;
    flex-shrink: 0;
    color: white;
    transition: transform 0.3s ease;
}

/* Эффект свечения */
.patreon-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 0.1) 0%,
        transparent 20%,
        transparent 80%,
        rgba(255, 255, 255, 0.1) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50px;
}

/* Эффект при наведении */
.patreon-button-with-logo:hover {
    transform: translateY(-5px) scale(1.05) !important;
    box-shadow: 
        0 25px 50px rgba(255, 66, 77, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
}

.patreon-button-with-logo:hover .patreon-glow {
    opacity: 1;
}

.patreon-button-with-logo:hover .arrow-icon {
    transform: translateX(5px);
}

/* Эффект пульсации (опционально) */
@keyframes pulse {
    0% {
        box-shadow: 
            0 15px 35px rgba(255, 66, 77, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
    50% {
        box-shadow: 
            0 15px 35px rgba(255, 66, 77, 0.6),
            inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }
    100% {
        box-shadow: 
            0 15px 35px rgba(255, 66, 77, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
}

.patreon-button-with-logo {
    animation: 
        gradientShift 3s ease infinite,
        pulse 2s ease-in-out infinite;
}

/* Для адаптивности */
@media (max-width: 768px) {
    .patreon-button-with-logo {
        min-width: 280px !important;
    }
    
    .patreon-button-inner {
        padding: 12px 25px;
        gap: 12px;
    }
    
    .patreon-main-text {
        font-size: 1.1rem;
    }
    
    .patreon-logo {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .patreon-button-with-logo {
        min-width: 250px !important;
    }
    
    .patreon-button-inner {
        padding: 10px 20px;
        gap: 10px;
    }
    
    .patreon-main-text {
        font-size: 1rem;
    }
    
    .patreon-subtext {
        font-size: 0.7rem;
    }
    
    .patreon-logo {
        width: 24px;
        height: 24px;
    }
}
