/*
Theme Name:        Черная тема "devilcode"
Theme URI:         
Description:       Это тема разработанная для devicode
Author:            ludanceera
Author URI:        https://t.me/hikknight
Tags:              музей, две-колонки, адаптивный, синий
Text Domain:       cursedthem.ru
Requires at least: 6.0
Tested up to:      6.4
Requires PHP:      8.0
*/

/* ============================================
   1. RESET & БАЗОВЫЕ СТИЛИ
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #0a0a0f;
    font-family: 'Inter', sans-serif;
    color: #eef4ff;
    line-height: 1.5;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* ============================================
   2. КАСТОМНЫЙ СКРОЛЛ
   ============================================ */

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #0f0f17;
}

::-webkit-scrollbar-thumb {
    background: #c084fc;
    border-radius: 8px;
}

/* ============================================
   3. КОНТЕЙНЕРЫ
   ============================================ */

.container {
    max-width: 1300px;
    margin: 0 auto;
}

/* ============================================
   4. ГЛИТЧ-ЭФФЕКТЫ
   ============================================ */

.glitch-text {
    position: relative;
    font-size: clamp(2.8rem, 8vw, 5.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #f0f3ff;
    text-transform: uppercase;
    text-shadow: 0.05em 0 0 rgba(255, 0, 100, 0.6), -0.05em -0.025em 0 rgba(0, 255, 255, 0.6);
    animation: glitch-skew 3s infinite linear alternate-reverse;
}

@keyframes glitch-skew {
    0% {
        transform: skew(0deg, 0deg);
        text-shadow: 0.05em 0 0 #ff006e, -0.05em -0.025em 0 #00f7ff;
    }
    95% {
        transform: skew(0deg, 0deg);
        text-shadow: 0.05em 0 0 #ff006e, -0.05em -0.025em 0 #00f7ff;
    }
    96% {
        transform: skew(2deg, 1deg);
        text-shadow: -0.05em 0 0 #ff006e, 0.05em 0.025em 0 #00f7ff;
    }
    97% {
        transform: skew(-1deg, -0.5deg);
        text-shadow: 0.03em 0 0 #ff006e, -0.03em -0.02em 0 cyan;
    }
    100% {
        transform: skew(0deg, 0deg);
    }
}

/* ============================================
   5. ГРАДИЕНТНЫЕ ГРАНИЦЫ
   ============================================ */

.gradient-border {
    background: linear-gradient(135deg, #1e1a2f, #0b0b12);
    border: 1px solid rgba(192, 132, 252, 0.3);
    border-radius: 2rem;
    transition: all 0.3s ease;
}

.gradient-border:hover {
    border-color: #c084fc;
    box-shadow: 0 0 18px rgba(192, 132, 252, 0.2);
}

/* ============================================
   6. КНОПКИ
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 28px;
    font-weight: 600;
    font-size: 1rem;
    font-family: 'JetBrains Mono', monospace;
    border-radius: 40px!important;
    transition: 0.25s ease;
    cursor: pointer;
    text-decoration: none;
    background: rgba(20, 20, 35, 0.8);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(192, 132, 252, 0.5);
    color: #e2e8ff;
}

.btn-primary {
    background: linear-gradient(95deg, #7c3aed, #c084fc);
    border: none;
    color: white;
    box-shadow: 0 4px 14px 0 rgba(124, 58, 237, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px -5px rgba(124, 58, 237, 0.6);
    background: linear-gradient(95deg, #8b5cf6, #d946ef);
}

.btn-outline:hover {
    background: rgba(192, 132, 252, 0.15);
    border-color: #c084fc;
    transform: translateY(-2px);
}

/* ============================================
   7. НАВИГАЦИЯ (ШАПКА)
   ============================================ */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
    flex-wrap: wrap;
    gap: 20px;
}

.logo {
    font-size: 1.9rem;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    background: linear-gradient(130deg, #c084fc, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -1px;
    margin-left: 20px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

/* Убираем точки у пунктов меню */
.nav-links,
.nav-links ul,
.nav-links li,
.menu-item {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a,
.menu-item a {
    text-decoration: none;
    color: #cbd5e6;
    font-weight: 500;
    transition: 0.2s;
    font-size: 1rem;
}

.nav-links a:hover,
.menu-item a:hover {
    color: #c084fc;
    text-shadow: 0 0 4px #c084fc;
}

/* ============================================
   8. HERO СЕКЦИЯ
   ============================================ */

.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding: 2rem 0 4rem;
}

.hero-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
    align-items: center;
}

.hero-content {
    flex: 1.2;
    min-width: 280px;
}

.hero-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    background: rgba(192, 132, 252, 0.2);
    display: inline-block;
    padding: 6px 14px;
    border-radius: 60px;
    margin-bottom: 1rem;
    backdrop-filter: blur(2px);
    border-left: 3px solid #c084fc;
}

.hero-title {
    font-size: clamp(2.2rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.2;
    margin: 1rem 0 1.2rem;
}

.highlight {
    color: #c084fc;
    text-shadow: 0 0 6px rgba(192, 132, 252, 0.5);
}

.hero-desc {
    font-size: 1.1rem;
    color: #a0afc5;
    max-width: 550px;
    margin-bottom: 2rem;
}

.btn-group {
    gap: 1rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    color: #c084fc;
}

.hero-visual {
    flex: 0.9;
    display: flex;
    justify-content: center;
    position: relative;
}

.code-card {
    background: #0e0e17cc;
    backdrop-filter: blur(12px);
    border-radius: 2rem;
    padding: 1.2rem;
    width: 100%;
    max-width: 380px;
    border: 1px solid rgba(192, 132, 252, 0.4);
    box-shadow: 0 20px 35px -12px black;
}

.code-card pre {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: #b9c7db;
    overflow-x: auto;
    margin: 0!important;
}

.code-card .tag {
    color: #c084fc;
}

.code-card .key {
    color: #7dd3fc;
}

/* Исправленная код-карточка */
.code-card {
    background: #0e0e17cc;
    backdrop-filter: blur(12px);
    border-radius: 2rem;
    padding: 1.2rem;
    width: 100%;
    max-width: 380px;
    border: 1px solid rgba(192, 132, 252, 0.4);
    box-shadow: 0 20px 35px -12px black;
}

.code-card pre {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: #b9c7db;
    /* ГЛАВНЫЕ ФИКСЫ - перенос текста */
    white-space: pre-wrap;      /* Переносит длинные строки */
    word-wrap: break-word;      /* Разбивает длинные слова */
    word-break: break-all;      /* Принудительный перенос */
    overflow-x: auto;           /* Скролл если всё-таки не влезло */
    max-width: 100%;            /* Не вылезает за пределы */
    line-height: 1.5;           /* Увеличенный межстрочный интервал для читаемости */
}

/* Для мобильных устройств */
@media (max-width: 550px) {
    .code-card pre {
        font-size: 0.7rem;
        white-space: pre-wrap;
        word-break: break-all;
    }
}

/* ============================================
   9. СЕКЦИЯ НАВЫКОВ (СТЕК)
   ============================================ */

.section {
    padding: 5rem 0;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.section-sub {
    text-align: center;
    color: #8a9ac0;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.skill-card {
    background: #111118;
    border-radius: 1.8rem;
    padding: 2rem 1.5rem;
    transition: all 0.3s;
    border: 1px solid #25253a;
    text-align: center;
}

.skill-card:hover {
    border-color: #c084fc;
    transform: translateY(-8px);
    background: #13131e;
}

.skill-icon {
    font-size: 2.8rem;
    color: #c084fc;
    margin-bottom: 1rem;
}

.skill-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 1rem;
}

.skill-tags span {
    background: #1e1a2f;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-family: monospace;
    color: #cdd9ff;
}

/* ============================================
   10. СЕКЦИЯ ПРОЕКТОВ
   ============================================ */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: #0f0f18;
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid #26263b;
}

.project-card:hover {
    border-color: #c084fc;
    transform: translateY(-5px);
    box-shadow: 0 20px 30px -15px rgba(0, 0, 0, 0.6);
}

.project-img-place {
    height: 180px;
    background: linear-gradient(145deg, #1e1a3a, #0c0b14);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #c084fc;
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.project-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.2rem;
}

.project-links a {
    color: #b7c3e6;
    transition: 0.2s;
    font-size: 0.9rem;
    text-decoration: none;
}

.project-links a:hover {
    color: #c084fc;
}

/* ============================================
   11. КОНТАКТНАЯ СЕКЦИЯ
   ============================================ */

.contact-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    background: #0b0b12;
    border-radius: 2rem;
    padding: 2.5rem;
    border: 1px solid #2a2a3c;
    justify-content: space-between;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.contact-detail {
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: monospace;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-links a {
    font-size: 1.8rem;
    color: #b9c2dc;
    transition: 0.2s;
}

.social-links a:hover {
    color: #c084fc;
    transform: scale(1.1);
}

.contact-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    background: #111117;
    border: 1px solid #2c2c40;
    padding: 12px 18px;
    border-radius: 28px;
    color: white;
    font-family: inherit;
    resize: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #c084fc;
}

/* ============================================
   12. ПОДВАЛ (FOOTER)
   ============================================ */

footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid #1f1f2e;
    font-size: 0.85rem;
    color: #6f7a9a;
}

/* ============================================
   13. АНИМИРОВАННЫЙ ФОН
   ============================================ */

.bg-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: radial-gradient(circle at 20% 30%, #0d0b1a, #030103);
}

.cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(192, 132, 252, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    transition: transform 0.1s;
}

/* ============================================
   14. АДАПТИВНОСТЬ (MEDIA QUERIES)
   ============================================ */

@media (max-width: 900px) {
    .hero-grid {
        flex-direction: column;
        text-align: center;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .btn-group {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .navbar {
        flex-direction: column;
    }

    .contact-flex {
        flex-direction: column;
    }
}

@media (max-width: 550px) {
    .container {
        padding: 0 20px;
    }

    .project-card {
        margin: 0;
    }
}

.logo a{
    text-decoration: none;
    color: inherit;
}