/* Футуристические стили с темной космической темой */

/* Импорт Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@300;400;500;600;700&display=swap');

/* CSS переменные */
:root {
    --primary-bg: #0a0a0f;
    --secondary-bg: #1a1a2e;
    --accent-bg: #16213e;
    --primary-text: #ffffff;
    --secondary-text: #b8c5d6;
    --accent-color: #00d4ff;
    --accent-glow: #00d4ff;
    --neon-blue: #0080ff;
    --neon-purple: #8000ff;
    --neon-cyan: #00ffff;
    --border-glow: rgba(0, 212, 255, 0.3);
    --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.5);
}

/* Сброс стилей */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Основные стили */
body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--primary-bg);
    color: var(--primary-text);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(128, 0, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(0, 128, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Анимация звезд */
@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s infinite;
}

/* Заголовок */
header {
    background: linear-gradient(135deg, var(--secondary-bg) 0%, var(--accent-bg) 100%);
    border-bottom: 2px solid var(--border-glow);
    box-shadow: var(--shadow-glow);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(45deg, var(--accent-color), var(--neon-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px var(--accent-glow);
}

/* Бургер-меню */
.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1000;
    padding: 0.5rem;
}

.burger-menu span {
    width: 25px;
    height: 3px;
    background: var(--accent-color);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Мобильная навигация */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, var(--primary-bg) 0%, var(--secondary-bg) 100%);
    z-index: 999;
    padding-top: 80px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.mobile-nav.active {
    transform: translateX(0);
}

.mobile-nav ul {
    list-style: none;
    padding: 2rem;
}

.mobile-nav li {
    margin: 1.5rem 0;
}

.mobile-nav a {
    color: var(--primary-text);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    display: block;
    padding: 1rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.mobile-nav a:hover,
.mobile-nav a.active {
    color: var(--accent-color);
    border-color: var(--accent-color);
    background: rgba(0, 212, 255, 0.1);
    transform: translateX(10px);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: var(--primary-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

nav a:hover::before {
    left: 100%;
}

nav a:hover {
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-glow);
    transform: translateY(-2px);
}

/* Основной контент */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

/* Карточки */
.card {
    background: linear-gradient(145deg, var(--secondary-bg), var(--accent-bg));
    border: 1px solid var(--border-glow);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-glow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(0, 212, 255, 0.05), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.card:hover::before {
    transform: translateX(100%);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
    border-color: var(--accent-color);
}

.card h2 {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-glow);
}

.card h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-glow);
}

.card p {
    color: var(--secondary-text);
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Стили для постов */
.post-card {
    background: linear-gradient(145deg, var(--primary-bg), var(--secondary-bg));
    border: 1px solid var(--border-glow);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.post-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.2);
    transform: translateY(-2px);
}

.post-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    text-shadow: 0 0 10px var(--accent-glow);
}

.post-video-container {
    margin-bottom: 1rem;
}

.post-video-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--neon-cyan);
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid var(--neon-cyan);
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.post-video-link:hover {
    background: var(--neon-cyan);
    color: var(--primary-bg);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.3);
}

.post-video-link i {
    font-size: 1.2rem;
}

.post-description {
    color: var(--secondary-text);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.post-date {
    color: var(--secondary-text);
    font-size: 0.9rem;
    opacity: 0.7;
    text-align: right;
}

.no-posts {
    text-align: center;
    padding: 2rem;
    color: var(--secondary-text);
    font-style: italic;
}

/* Пагинация для постов */
.posts-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.page-btn {
    background: transparent;
    border: 1px solid var(--border-glow);
    color: var(--secondary-text);
    padding: 0.8rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
}

.page-btn:hover,
.page-btn.active {
    background: var(--accent-color);
    color: var(--primary-bg);
    border-color: var(--accent-color);
}

/* Изображения */
.card img {
    width: 100%;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.card:hover img {
    transform: scale(1.02);
}

/* Форма */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--primary-bg);
    border: 2px solid var(--border-glow);
    border-radius: 10px;
    color: var(--primary-text);
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    transform: scale(1.02);
}

.btn {
    background: linear-gradient(45deg, var(--accent-color), var(--neon-cyan));
    color: var(--primary-bg);
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.4);
}

/* Сообщения формы */
.form-message {
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.form-message.success {
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.3);
    color: #00ff00;
}

.form-message.error {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    color: #ff0000;
}

/* Футер */
footer {
    background: linear-gradient(135deg, var(--secondary-bg) 0%, var(--primary-bg) 100%);
    border-top: 2px solid var(--border-glow);
    padding: 2rem;
    text-align: center;
    margin-top: 4rem;
}

footer p {
    color: var(--secondary-text);
    font-size: 1rem;
}

/* Страница контактов */
.contacts-page {
    min-height: 100vh;
    padding: 2rem;
}

.contact-header {
    text-align: center;
    margin-bottom: 4rem;
}

.contact-header h1 {
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(45deg, var(--accent-color), var(--neon-cyan), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    text-shadow: 0 0 30px var(--accent-glow);
}

.contact-header p {
    font-size: 1.2rem;
    color: var(--secondary-text);
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    gap: 3rem;
}

.contact-photo {
    text-align: center;
}

.contact-photo img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 4px solid var(--accent-color);
    box-shadow: 0 0 30px var(--accent-glow);
    transition: all 0.3s ease;
}

.contact-photo img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px var(--accent-glow);
}

.contact-info {
    background: linear-gradient(145deg, var(--secondary-bg), var(--accent-bg));
    border: 1px solid var(--border-glow);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-glow);
}

.contact-info h2 {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    color: var(--accent-color);
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 0 0 15px var(--accent-glow);
}

.contact-links {
    display: grid;
    gap: 1.5rem;
}

.contact-link {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: var(--primary-bg);
    border: 1px solid var(--border-glow);
    border-radius: 15px;
    text-decoration: none;
    color: var(--primary-text);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.contact-link:hover::before {
    left: 100%;
}

.contact-link:hover {
    transform: translateX(10px);
    border-color: var(--accent-color);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.3);
}

.contact-link i {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: var(--accent-color);
}

.contact-link span {
    font-weight: 500;
    font-size: 1.1rem;
}

/* Страница "Обо мне" */
.about-page {
    min-height: 100vh;
    padding: 2rem;
}

.about-header {
    text-align: center;
    margin-bottom: 4rem;
}

.about-header h1 {
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(45deg, var(--accent-color), var(--neon-cyan), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    text-shadow: 0 0 30px var(--accent-glow);
}

.about-header p {
    font-size: 1.2rem;
    color: var(--secondary-text);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    gap: 3rem;
}

.about-photo {
    text-align: center;
}

.about-photo img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 4px solid var(--accent-color);
    box-shadow: 0 0 30px var(--accent-glow);
    transition: all 0.3s ease;
}

.about-photo img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px var(--accent-glow);
}

.about-info {
    background: linear-gradient(145deg, var(--secondary-bg), var(--accent-bg));
    border: 1px solid var(--border-glow);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-glow);
}

.about-info h2 {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    color: var(--accent-color);
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 0 0 15px var(--accent-glow);
}

.about-text {
    color: var(--secondary-text);
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: justify;
}

.about-text p {
    margin-bottom: 1.5rem;
}

.about-text strong {
    color: var(--accent-color);
    font-weight: 600;
}

/* Адаптивность */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    nav ul {
        display: none;
    }
    
    .burger-menu {
        display: flex;
        position: absolute;
        top: 1.5rem;
        right: 2rem;
    }
    
    .mobile-nav {
        display: block;
    }
    
    main {
        padding: 1rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .card h2 {
        font-size: 1.5rem;
    }
    
    .contact-header h1,
    .about-header h1 {
        font-size: 2rem;
    }
    
    .contact-photo img,
    .about-photo img {
        width: 200px;
        height: 200px;
    }
    
    .contact-info,
    .about-info {
        padding: 1.5rem;
    }
    
    .contact-info h2,
    .about-info h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 1rem;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .burger-menu {
        top: 1rem;
        right: 1rem;
    }
    
    main {
        padding: 0.5rem;
    }
    
    .card {
        padding: 1rem;
    }
    
    .contact-header h1,
    .about-header h1 {
        font-size: 1.8rem;
    }
    
    .contact-photo img,
    .about-photo img {
        width: 150px;
        height: 150px;
    }
    
    .contact-info,
    .about-info {
        padding: 1rem;
    }
    
    .contact-link {
        padding: 0.8rem;
    }
    
    .contact-link span {
        font-size: 1rem;
    }
    
    .about-text {
        font-size: 1rem;
    }
}

@media (min-width: 1200px) {
    .container {
        grid-template-columns: 2fr 1fr;
    }
    
    .contact-content,
    .about-content {
        max-width: 1000px;
    }
    
    .contact-photo img {
        width: 300px;
        height: 300px;
    }
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card, .contact-info, .about-info {
    animation: fadeInUp 0.8s ease-out;
}

/* Скроллбар */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--neon-cyan);
}
