/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #240046, #3a006e, #1b0031, #5e008e);
    background-size: 400% 400%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh; /* Вместо height: 100vh */
    overflow-x: hidden; /* Разрешаем прокрутку вниз, но не вбок */
    animation: gradientBackground 5s ease infinite;
    flex-direction: column; /* Чтобы контент шел сверху вниз */
}

/* Контейнер теперь не ограничен высотой */
.container {
    text-align: center;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 800px;
    min-height: 50vh; /* Чтобы не схлопывался */
    margin-bottom: 2rem; /* Отступ для удобства прокрутки */
}

/* Убрать display: none у скрытых секций, иначе они не займут места */
.hidden {
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: opacity 0.5s ease, height 0.5s ease;
}

.hidden.active {
    opacity: 1;
    height: auto;
}

/* Container Styling */
.container {
    text-align: center;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Title and Subtitle */
.title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.5rem;
    color: #ddd;
    margin-bottom: 2rem;
}

/* Content Section */
.content p {
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto 2rem auto;
}

/* Button Styling */
.button {
    font-size: 1.2rem;
    text-decoration: none;
    color: white;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(145deg, #6a1b9a, #8e24aa);
    border: none;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Hover effects for the button */
.button:hover {
    background: linear-gradient(145deg, #8e24aa, #6a1b9a);
    transform: scale(1.05);
	animation: pulse 1s infinite;
}

/* About Me Section */
.about-me {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 2rem;
    max-width: 700px;
    margin: 2rem auto;
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.3);
    transition: all 0.3s ease;
}

/* Hidden class for hiding "Обо мне" section */
.hidden {
    display: none;
}

.social-icons {
    display: flex;
    flex-wrap: wrap; /* Чтобы не лезли друг на друга, если места мало */
    justify-content: center; /* Центрирует кнопки */
    align-items: center; /* Центрирует по вертикали */
    gap: 1rem; /* Отступ между кнопками */
    margin-top: 2rem;
}
/* Стиль для иконок */
.icon {
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    color: white;
    font-size: 1.2rem;
    text-align: center;
    display: inline-block;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

/* Стиль для кнопок на hover */
.icon:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

/* Анимация для фона */
@keyframes gradientBackground {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Анимация появления социальных кнопок */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Стили для сетки логотипов */
.tech-stack {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr)); /* Автоматическое заполнение */
    gap: 1rem;
    justify-content: center; /* Центрируем содержимое */
    align-items: center;
    padding: 1rem;
    max-width: 400px; /* Чтобы не растягивалось по всей ширине */
    margin: 0 auto; /* Центрирование по горизонтали */
}

.tech-item {
    font-size: 2rem;
    text-align: center;
    color: #ddd;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.tech-item i:hover {
    transform: scale(1.2);
    text-shadow: 0 0 10px #ff00ff;
}

/* Стили для нового блока (Dark side) */
.dark-side {
    background-color: #0a0a0a; /* Почти черный фон */
    color: #fff; /* Белый текст */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.2); /* Легкое фиолетовое свечение */
    text-align: center;
}
.dark-side p {
    font-size: 1rem;
    line-height: 1.6;
}

.dark-side h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #8e24aa;
}

/* Если блок скрыт, он не виден */
.hidden {
    display: none;
}
/* Стиль для кнопки "Обо мне (Dark side)" */
.dark-side-button {
    font-size: 1.2rem;
    text-decoration: none;
    color: white;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(145deg, #6a1b9a, #8e24aa);
    border: none;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Hover effects для кнопки "Обо мне (Dark side)" */
.dark-side-button:hover {
    background: linear-gradient(145deg, #8e24aa, #6a1b9a);
    transform: scale(1.05);
}
.dark-side .tech-stack {
    display: flex;
    justify-content: center; /* Центрирует иконки по горизонтали */
    align-items: center; /* Центрирует по вертикали (если нужно) */
    gap: 1rem; /* Промежуток между иконками */
    padding: 1rem;
}
@keyframes glitch {
    0% {
        text-shadow: 2px 2px 0 #ff00ff, -2px -2px 0 #00ffff;
        transform: translate(0);
    }
    20% {
        text-shadow: -2px -2px 0 #ff00ff, 2px 2px 0 #00ffff;
        transform: translate(-2px, 2px);
    }
    40% {
        text-shadow: 2px -2px 0 #ff00ff, -2px 2px 0 #00ffff;
        transform: translate(2px, -2px);
    }
    60% {
        text-shadow: -2px 2px 0 #ff00ff, 2px -2px 0 #00ffff;
        transform: translate(-2px, -2px);
    }
    80% {
        text-shadow: 3px 3px 0 #ff00ff, -3px -3px 0 #00ffff;
        transform: translate(3px, -3px);
    }
    100% {
        text-shadow: -2px -2px 0 #ff00ff, 2px 2px 0 #00ffff;
        transform: translate(0);
    }
}

.glitch {
    font-size: 3rem;
    font-weight: bold;
    color: white;
    position: relative;
    display: inline-block;
    animation: glitch 0.5s infinite alternate;
}
/* Стили для заголовка */
.glowing-text {
    font-size: 3rem;
    font-weight: bold;
    color: white;
    position: relative;
    display: inline-block;
    animation: glowing 1.5s ease-in-out infinite;
    text-shadow: 0 0 5px #8e24aa, 0 0 10px #8e24aa, 0 0 15px #8e24aa, 0 0 20px #8e24aa;
}

/* Анимация для мягкого свечения */
@keyframes glowing {
    0% {
        text-shadow: 0 0 5px #8e24aa, 0 0 10px #8e24aa, 0 0 15px #8e24aa, 0 0 20px #8e24aa;
    }
    50% {
        text-shadow: 0 0 10px #8e24aa, 0 0 20px #8e24aa, 0 0 30px #8e24aa, 0 0 40px #8e24aa;
    }
    100% {
        text-shadow: 0 0 5px #8e24aa, 0 0 10px #8e24aa, 0 0 15px #8e24aa, 0 0 20px #8e24aa;
    }
}
/* Основной стиль кнопки */
.neon-button {
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    background: transparent;
    border: 2px solid #8e24aa;
    padding: 12px 24px;
    cursor: pointer;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    transition: 0.3s ease-in-out;
    box-shadow: 0 0 10px #8e24aa;
}

/* Эффект свечения на hover */
.neon-button:hover {
    background: #8e24aa;
    color: black;
    box-shadow: 0 0 20px #8e24aa, 0 0 40px #8e24aa, 0 0 60px #8e24aa;
    transition: 0.3s ease-in-out;
}

/* Анимация "пульсации" */
@keyframes pulse {
    0% {
        box-shadow: 0 0 10px #8e24aa;
    }
    50% {
        box-shadow: 0 0 20px #8e24aa, 0 0 40px #8e24aa;
    }
    100% {
        box-shadow: 0 0 10px #8e24aa;
    }
}

/* Применяем пульсацию к кнопке */
.neon-button:hover {
    animation: pulse 1s infinite;
}
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Rajdhani:wght@400;700&display=swap');

.dynamic-text {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2rem;
    font-weight: 400;
    color: #ffffff;
    transition: font-family 0.5s ease-in-out, letter-spacing 0.3s ease-in-out, color 0.3s ease-in-out;
}

/* При наведении меняем шрифт на футуристичный */
.dynamic-text:hover {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    letter-spacing: 2px;
    color: #8e24aa;
}
