/* Сброс стилей и базовые настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: radial-gradient(circle, #0d0e15, #1c1e2b);
    color: #fff;
    animation: backgroundShift 20s ease-in-out infinite alternate; /* Добавил ease-in-out для плавности */
    will-change: background; /* Оптимизация */
}

@keyframes backgroundShift {
    0% {
        background: radial-gradient(circle, #0d0e15, #1c1e2b);
    }
    100% {
        background: radial-gradient(circle, #1c1e2b, #0d0e15);
    }
}

.background-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: url('https://www.transparenttextures.com/patterns/polished-dark.png') repeat;
    animation: backgroundMove 40s linear infinite; /* Увеличил время анимации */
    opacity: 0.15;
    will-change: transform; /* Оптимизация движения фона */
}


/* Анимация движения фона */
@keyframes backgroundMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(200px, 200px);
    }
}

/* Основная контейнер */
.container {
    z-index: 10;
    text-align: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    animation: fadeIn 2s ease-out;
}

/* Анимация для заголовка */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Заголовок с эффектом мягкого переливающегося свечения */
h1.glow-title {
    position: relative;
    font-size: 72px;
    margin-bottom: 20px;
    color: transparent; /* Текст становится прозрачным, чтобы видеть фон */
    text-transform: uppercase;
    letter-spacing: 5px;
    z-index: 1;
    background: linear-gradient(135deg, rgba(255, 87, 34, 1), rgba(52, 152, 219, 1), rgba(255, 215, 0, 1)); /* Красивый градиент */
    background-clip: text; /* Фон применяется только к тексту */
    -webkit-background-clip: text; /* Поддержка для WebKit-браузеров */
    border: 2px solid transparent; /* Легкая градиентная рамка */
    border-image: linear-gradient(135deg, rgba(255, 87, 34, 0.5), rgba(52, 152, 219, 0.5)) 1;
    animation: softGlow 6s infinite ease-in-out; /* Плавная анимация */
}

/* Анимация плавного изменения градиента */
@keyframes softGlow {
    0% {
        border-image: linear-gradient(135deg, rgba(255, 87, 34, 0.3), rgba(52, 152, 219, 0.3)) 1;
    }
    50% {
        border-image: linear-gradient(135deg, rgba(52, 152, 219, 0.5), rgba(255, 87, 34, 0.5)) 1;
    }
    100% {
        border-image: linear-gradient(135deg, rgba(255, 87, 34, 0.3), rgba(52, 152, 219, 0.3)) 1;
    }
}

/* Переливающееся свечение сзади текста */
h1.glow-title::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    background: none; /* Убираем градиент */
    transform: translate(-50%, -50%);
    z-index: -1;
    animation: none; /* Убираем анимацию свечения */
    border-radius: 0; /* Убираем округление */
    filter: none; /* Убираем размытие */
}

/* Эффект мягкого свечения */
@keyframes glowPulse {
    0% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
    100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
    }
}

p {
    font-size: 24px;
    margin-bottom: 60px;
    opacity: 0.9;
}

.links {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.link-box {
    text-decoration: none;
    color: #fff;
    padding: 25px;
    width: 200px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.link-box:hover {
    transform: scale(1.05);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.link-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent);
    transform: rotate(45deg);
    animation: floatGlow 8s ease-in-out infinite;
}

/* Анимация всплытия ссылок */
@keyframes floatGlow {
    0% {
        transform: translate(-20%, -20%);
    }
    100% {
        transform: translate(20%, 20%);
    }
}

.icon-container {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: iconBounce 4s infinite;
}

@keyframes iconBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

.icon-container img {
    width: 80px;
    height: 80px;
}

span {
    font-size: 22px;
    font-weight: bold;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}


