/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #e0e0e0;
    line-height: 1.8;
    min-height: 100vh;
}

/* Контейнер */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Хедер */
header {
    text-align: center;
    padding: 60px 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0 0 50px 50px;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 64, 129, 0.2), transparent);
    animation: pulse 10s infinite;
    z-index: 0;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.logo {
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.logo svg {
    transition: transform 0.3s;
}

.logo svg:hover {
    transform: rotate(360deg);
}

h1 {
    font-size: 3.5em;
    color: #ff4081;
    text-shadow: 0 0 10px rgba(255, 64, 129, 0.5);
    position: relative;
    z-index: 1;
}

/* Слайдер */
.slider {
    position: relative;
    height: 1.5em;
    overflow: hidden;
    margin-top: 10px;
    z-index: 1;
}

.slider-text {
    position: absolute;
    width: 100%;
    text-align: center;
    font-family: monospace;
    font-size: 1.2em;
    color: #00e5ff;
    opacity: 0;
    animation: slide 12s infinite;
}

.slider-text:nth-child(1) { animation-delay: 0s; }
.slider-text:nth-child(2) { animation-delay: 3s; }
.slider-text:nth-child(3) { animation-delay: 6s; }
.slider-text:nth-child(4) { animation-delay: 9s; }

@keyframes slide {
    0% { opacity: 0; transform: translateY(100%); }
    8% { opacity: 1; transform: translateY(0); }
    25% { opacity: 1; transform: translateY(0); }
    33% { opacity: 0; transform: translateY(-100%); }
    100% { opacity: 0; transform: translateY(-100%); }
}

/* Навигация */
nav {
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

.nav-link {
    color: #ff4081;
    text-decoration: none;
    margin: 0 15px;
    font-size: 1.1em;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #00e5ff;
}

/* Заголовки секций */
h2 {
    color: #00e5ff;
    margin-bottom: 20px;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 2px;
    background: #00e5ff;
    bottom: -5px;
    left: 0;
}

/* Секции */
.section {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    margin: 20px 0;
    border-radius: 15px;
    backdrop-filter: blur(5px);
    transition: transform 0.3s;
}

.section:hover {
    transform: translateY(-5px);
}

/* Навыки */
.skills ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.skills li {
    background: #ff4081;
    padding: 10px;
    border-radius: 25px;
    text-align: center;
    transition: all 0.3s;
}

.skills li:hover {
    background: #00e5ff;
    transform: scale(1.05);
}

/* Контакты */
.contact p {
    margin: 10px 0;
    padding: 10px;
    background: rgba(0, 229, 255, 0.1);
    border-radius: 10px;
}

.contact p a {
    color: #ff4081;
    text-decoration: none;
    transition: color 0.3s;
}

.contact p a:hover {
    color: #00e5ff;
    text-decoration: underline;
}

/* Посты блога */
.blog-post {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    margin: 20px 0;
    border-radius: 15px;
    backdrop-filter: blur(5px);
    transition: transform 0.3s;
}

.blog-post:hover {
    transform: translateY(-5px);
}

.blog-post h3 {
    color: #ff4081;
    margin-bottom: 15px;
}

.blog-post p {
    margin-bottom: 15px;
}

.meta {
    font-family: monospace;
    font-size: 0.9em;
    color: #00e5ff;
    margin-bottom: 15px;
    background: rgba(0, 229, 255, 0.1);
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block;
}

/* Футер */
footer {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    position: relative;
    margin-top: 40px;
}

/* О себе */
.about p {
    margin-bottom: 15px;
}

/* 404-страница */
body.not-found {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.not-found .container {
    max-width: 600px;
    padding: 20px;
}

.not-found h1 {
    font-size: 3em;
    margin-bottom: 20px;
}

.not-found p {
    font-size: 1.2em;
    color: #00e5ff;
    font-family: monospace;
    margin-bottom: 30px;
}

.not-found a {
    display: inline-block;
    padding: 10px 20px;
    background: #ff4081;
    color: #e0e0e0;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s;
}

.not-found a:hover {
    background: #00e5ff;
    color: #1a1a2e;
    transform: scale(1.05);
}

.error-code {
    font-size: 6em;
    color: #00e5ff;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
    animation: flicker 2s infinite;
}

@keyframes flicker {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}