/* Modern Colorful Design with Animations */

:root {
    --primary-color: #4361ee;
    --secondary-color: #f72585;
    --success-color: #4cc9f0;
    --warning-color: #f8961e;
    --danger-color: #f94144;
    --info-color: #4895ef;
    --dark-color: #1e1e2f;
    --light-color: #f8f9fa;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-4: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --gradient-5: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --gradient-6: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
    --gradient-7: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-color: rgba(0, 0, 0, 0.2);
    --neon-blue: #00f2fe;
    --neon-pink: #f72585;
    --neon-purple: #b5179e;
    --neon-green: #4cc9f0;
    --neon-yellow: #fee440;
    --neon-orange: #f8961e;
}

/* Общие стили */
body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    position: relative;
    color: white;
}

/* Анимированный фон с частицами */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: particleFloat 20s infinite linear;
}

    .particle:nth-child(1) {
        top: 20%;
        left: 10%;
        animation-duration: 15s;
        background: var(--neon-blue);
    }

    .particle:nth-child(2) {
        top: 60%;
        left: 20%;
        animation-duration: 18s;
        background: var(--neon-pink);
    }

    .particle:nth-child(3) {
        top: 30%;
        left: 80%;
        animation-duration: 22s;
        background: var(--neon-green);
    }

    .particle:nth-child(4) {
        top: 70%;
        left: 90%;
        animation-duration: 25s;
        background: var(--neon-yellow);
    }

    .particle:nth-child(5) {
        top: 40%;
        left: 40%;
        animation-duration: 20s;
        background: var(--neon-orange);
    }

@keyframes particleFloat {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Анимированные фоновые фигуры */
.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.15;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 400px;
    height: 400px;
    top: -200px;
    left: -200px;
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    animation-delay: -2s;
}

.shape-2 {
    width: 350px;
    height: 350px;
    top: 40%;
    right: -150px;
    background: linear-gradient(45deg, #48dbfb, #1dd1a1);
    animation-delay: -5s;
}

.shape-3 {
    width: 300px;
    height: 300px;
    bottom: -150px;
    left: 20%;
    background: linear-gradient(45deg, #f368e0, #ff9f43);
    animation-delay: -8s;
}

.shape-4 {
    width: 450px;
    height: 450px;
    bottom: 20%;
    right: 10%;
    background: linear-gradient(45deg, #54a0ff, #5f27cd);
    animation-delay: -12s;
}

.shape-5 {
    width: 250px;
    height: 250px;
    top: 10%;
    left: 30%;
    background: linear-gradient(45deg, #00d2ff, #3a7bd5);
    animation-delay: -3s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    25% {
        transform: translate(30px, -30px) rotate(5deg) scale(1.1);
    }

    50% {
        transform: translate(-30px, 50px) rotate(-5deg) scale(0.9);
    }

    75% {
        transform: translate(40px, 20px) rotate(3deg) scale(1.05);
    }
}

/* Стеклянные карточки с разными цветами */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: white;
    position: relative;
    overflow: hidden;
}

    .glass-card::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.7s ease;
    }

    .glass-card:hover::before {
        left: 100%;
    }

    .glass-card:hover {
        transform: translateY(-10px) scale(1.02);
        box-shadow: 0 30px 50px rgba(0, 0, 0, 0.4);
        border-color: rgba(255, 255, 255, 0.3);
    }

    /* Разноцветные карточки */
    .glass-card:nth-child(1) {
        background: linear-gradient(135deg, rgba(67, 97, 238, 0.2), rgba(76, 201, 240, 0.2));
    }

    .glass-card:nth-child(2) {
        background: linear-gradient(135deg, rgba(247, 37, 133, 0.2), rgba(76, 201, 240, 0.2));
    }

    .glass-card:nth-child(3) {
        background: linear-gradient(135deg, rgba(248, 150, 30, 0.2), rgba(247, 37, 133, 0.2));
    }

/* Заголовок с цветным градиентом */
.gradient-text {
    background: linear-gradient(135deg, #ff6b6b, #feca57, #48dbfb, #1dd1a1, #f368e0, #ff9f43, #54a0ff, #5f27cd );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 300% 300%;
    animation: gradientShift 10s ease infinite;
    position: relative;
    z-index: 10;
    font-size: 3.5rem;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.wave {
    display: inline-block;
    animation: wave 2.5s infinite;
    transform-origin: 70% 70%;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

@keyframes wave {
    0% {
        transform: rotate(0deg);
    }

    10% {
        transform: rotate(14deg);
    }

    20% {
        transform: rotate(-8deg);
    }

    30% {
        transform: rotate(14deg);
    }

    40% {
        transform: rotate(-4deg);
    }

    50% {
        transform: rotate(10deg);
    }

    60% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

/* Редактор кода */
.editor-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #1e1e2e;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: box-shadow 0.3s ease;
}

    .editor-wrapper:hover {
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), inset 0 0 0 2px rgba(76, 201, 240, 0.3);
    }

.code-editor {
    width: 100%;
    min-height: 350px;
    padding: 25px;
    background: #1e1e2e;
    color: #e4e4e4;
    font-family: 'Fira Code', 'Consolas', 'Monaco', monospace;
    font-size: 14px;
    line-height: 1.6;
    border: none;
    resize: vertical;
    outline: none;
}

    .code-editor:focus {
        box-shadow: inset 0 0 0 2px var(--neon-blue);
    }

.code-dots {
    display: flex;
    gap: 10px;
    padding: 15px;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

    .dot:hover {
        transform: scale(1.3);
        filter: brightness(1.2);
    }

    .dot.red {
        background: #ff5f56;
        box-shadow: 0 0 15px #ff5f56;
    }

    .dot.yellow {
        background: #ffbd2e;
        box-shadow: 0 0 15px #ffbd2e;
    }

    .dot.green {
        background: #27c93f;
        box-shadow: 0 0 15px #27c93f;
    }

/* Кнопка детекта с неоном */
.btn-detect {
    position: relative;
    background: linear-gradient(135deg, #4361ee, #f72585);
    color: white;
    border: none;
    border-radius: 50px;
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 35px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 10px 20px rgba(67, 97, 238, 0.3);
}

    .btn-detect::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        transition: left 0.5s ease;
    }

    .btn-detect:hover::before {
        left: 100%;
    }

    .btn-detect:hover {
        transform: translateY(-3px) scale(1.02);
        box-shadow: 0 15px 30px rgba(247, 37, 133, 0.4), 0 0 20px rgba(67, 97, 238, 0.6);
        background: linear-gradient(135deg, #f72585, #4361ee);
    }

    .btn-detect .btn-icon {
        transition: transform 0.3s ease;
        font-size: 1.2rem;
    }

    .btn-detect:hover .btn-icon {
        transform: translateX(8px) rotate(90deg);
    }

    .btn-detect.loading .btn-text,
    .btn-detect.loading .btn-icon {
        opacity: 0;
    }

    .btn-detect.loading .btn-loader {
        display: block;
    }

.btn-loader {
    display: none;
    position: absolute;
    width: 25px;
    height: 25px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-right: 3px solid var(--neon-pink);
    border-bottom: 3px solid var(--neon-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Сетка языков с цветными карточками */
.language-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 15px;
    padding: 15px;
}

.language-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

    .language-item:nth-child(1) {
        background: linear-gradient(135deg, rgba(155, 77, 150, 0.3), rgba(104, 33, 122, 0.3));
    }

    .language-item:nth-child(2) {
        background: linear-gradient(135deg, rgba(247, 223, 30, 0.3), rgba(240, 219, 79, 0.3));
    }

    .language-item:nth-child(3) {
        background: linear-gradient(135deg, rgba(75, 139, 190, 0.3), rgba(48, 105, 152, 0.3));
    }

    .language-item:nth-child(4) {
        background: linear-gradient(135deg, rgba(248, 152, 32, 0.3), rgba(83, 130, 161, 0.3));
    }

    .language-item:nth-child(5) {
        background: linear-gradient(135deg, rgba(0, 89, 156, 0.3), rgba(0, 68, 130, 0.3));
    }

    .language-item:nth-child(6) {
        background: linear-gradient(135deg, rgba(241, 101, 41, 0.3), rgba(227, 76, 38, 0.3));
    }

    .language-item:nth-child(7) {
        background: linear-gradient(135deg, rgba(41, 101, 241, 0.3), rgba(38, 77, 228, 0.3));
    }

    .language-item:nth-child(8) {
        background: linear-gradient(135deg, rgba(242, 145, 17, 0.3), rgba(0, 117, 143, 0.3));
    }

    .language-item:nth-child(9) {
        background: linear-gradient(135deg, rgba(136, 146, 190, 0.3), rgba(79, 91, 147, 0.3));
    }

    .language-item:nth-child(10) {
        background: linear-gradient(135deg, rgba(0, 173, 216, 0.3), rgba(41, 190, 176, 0.3));
    }

    .language-item:hover {
        transform: translateY(-8px) scale(1.05);
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.3);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), 0 0 20px currentColor;
    }

.lang-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    border-radius: 50%;
    margin-bottom: 12px;
    transition: all 0.4s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.language-item:hover .lang-icon {
    transform: scale(1.15) rotate(8deg);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.lang-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.language-item:hover .lang-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-15px);
}

/* Примеры кода */
.examples-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.example-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: white;
    width: 100%;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

    .example-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;
    }

    .example-btn:hover::before {
        left: 100%;
    }

    .example-btn:hover {
        background: rgba(255, 255, 255, 0.15);
        transform: translateX(8px) scale(1.02);
        border-color: rgba(255, 255, 255, 0.3);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    }

.example-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border-radius: 12px;
    transition: transform 0.3s;
}

.example-btn:hover .example-icon {
    transform: scale(1.1) rotate(5deg);
}

.example-text {
    font-weight: 500;
}

/* Результат с цветными элементами */
.result-success {
    animation: popIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.result-header {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
}

.result-icon {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-pink));
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 30px rgba(76, 201, 240, 0.5);
}

.confidence-meter {
    width: 250px;
    height: 12px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    overflow: hidden;
    margin: 12px 0;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2);
}

.confidence-bar {
    height: 100%;
    background: linear-gradient(90deg, #4cc9f0, #f72585, #fee440);
    border-radius: 6px;
    animation: fillBar 1.5s ease-out;
    box-shadow: 0 0 15px rgba(76, 201, 240, 0.6);
}

@keyframes fillBar {
    from {
        width: 0;
    }
}

.other-matches {
    margin-top: 20px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.match-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.match-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

    .match-item:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: translateX(8px);
        border-color: rgba(255, 255, 255, 0.2);
    }

.match-language {
    font-weight: 600;
    color: var(--neon-blue);
}

.match-score {
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-orange));
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Неизвестный результат */
.result-unknown {
    text-align: center;
    padding: 40px 20px;
    color: white;
}

.unknown-animation {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

    .unknown-animation .emoji {
        font-size: 50px;
        animation: floatEmoji 2.5s infinite;
        filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.5));
    }

        .unknown-animation .emoji:nth-child(1) {
            animation-delay: 0s;
            color: #ff6b6b;
        }

        .unknown-animation .emoji:nth-child(2) {
            animation-delay: 0.3s;
            color: #feca57;
        }

        .unknown-animation .emoji:nth-child(3) {
            animation-delay: 0.6s;
            color: #48dbfb;
        }

@keyframes floatEmoji {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(5deg);
    }
}

/* Уведомления */
.notification {
    position: fixed;
    top: 25px;
    right: 25px;
    min-width: 350px;
    padding: 18px 22px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 9999;
    animation: slideInRight 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.notification-success {
    background: linear-gradient(135deg, rgba(132, 250, 176, 0.95), rgba(143, 211, 244, 0.95));
    color: #1a1a2e;
}

.notification-warning {
    background: linear-gradient(135deg, rgba(250, 217, 97, 0.95), rgba(247, 107, 28, 0.95));
    color: white;
}

.notification-error {
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.95), rgba(245, 87, 108, 0.95));
    color: white;
}

.notification-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
    transition: all 0.3s;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

    .notification-close:hover {
        opacity: 1;
        background: rgba(0, 0, 0, 0.1);
        transform: rotate(90deg);
    }

.fade-out {
    animation: fadeOut 0.3s ease-out forwards;
}

/* Модальное окно */
.modal-content {
    background: rgba(20, 30, 48, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.btn-close-white {
    filter: brightness(0) invert(1);
    opacity: 0.7;
    transition: all 0.3s;
}

    .btn-close-white:hover {
        opacity: 1;
        transform: rotate(90deg);
    }

.language-detail {
    text-align: center;
}

.detail-icon {
    font-size: 100px;
    margin-bottom: 20px;
    animation: pulse 2.5s infinite;
    filter: drop-shadow(0 0 25px currentColor);
}

.feature-list {
    list-style: none;
    padding: 0;
    text-align: left;
}

    .feature-list li {
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        display: flex;
        align-items: center;
        gap: 12px;
    }

        .feature-list li i {
            font-size: 1.2rem;
            filter: drop-shadow(0 0 8px currentColor);
        }

/* Навигация */
.navbar-glass {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.8rem;
    background: linear-gradient(135deg, #4cc9f0, #f72585, #fee440);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s;
    letter-spacing: -0.5px;
}

    .navbar-brand:hover {
        transform: scale(1.05);
        filter: drop-shadow(0 0 20px rgba(76, 201, 240, 0.5));
    }

.nav-link {
    color: white !important;
    font-size: 1.3rem;
    transition: all 0.3s;
    padding: 0.5rem 1.2rem !important;
    border-radius: 30px;
}

    .nav-link:hover {
        transform: translateY(-3px);
        background: rgba(255, 255, 255, 0.1);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }

/* Футер */
.heart-beat {
    animation: heartBeat 1.8s ease-in-out infinite;
    color: #f72585;
    display: inline-block;
    margin: 0 5px;
}

@keyframes heartBeat {
    0%, 100% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.2);
    }

    40% {
        transform: scale(1);
    }

    60% {
        transform: scale(1.2);
    }
}

/* Анимации */
@keyframes slideInRight {
    from {
        transform: translateX(100%) scale(0.5);
        opacity: 0;
    }

    to {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(100%) scale(0.5);
    }
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.3) rotate(-10deg);
    }

    50% {
        transform: scale(1.1) rotate(2deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
    }

    50% {
        transform: scale(1.1);
        filter: brightness(1.2);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Цвета для иконок языков */
.lang-icon.cs {
    background: linear-gradient(135deg, #9b4d96, #68217a);
    box-shadow: 0 5px 20px rgba(155, 77, 150, 0.5);
}

.lang-icon.js {
    background: linear-gradient(135deg, #f7df1e, #f0db4f);
    box-shadow: 0 5px 20px rgba(247, 223, 30, 0.5);
}

.lang-icon.py {
    background: linear-gradient(135deg, #4b8bbe, #306998);
    box-shadow: 0 5px 20px rgba(75, 139, 190, 0.5);
}

.lang-icon.java {
    background: linear-gradient(135deg, #f89820, #5382a1);
    box-shadow: 0 5px 20px rgba(248, 152, 32, 0.5);
}

.lang-icon.cpp {
    background: linear-gradient(135deg, #00599c, #004482);
    box-shadow: 0 5px 20px rgba(0, 89, 156, 0.5);
}

.lang-icon.html {
    background: linear-gradient(135deg, #f16529, #e34c26);
    box-shadow: 0 5px 20px rgba(241, 101, 41, 0.5);
}

.lang-icon.css {
    background: linear-gradient(135deg, #2965f1, #264de4);
    box-shadow: 0 5px 20px rgba(41, 101, 241, 0.5);
}

.lang-icon.sql {
    background: linear-gradient(135deg, #f29111, #00758f);
    box-shadow: 0 5px 20px rgba(242, 145, 17, 0.5);
}

.lang-icon.php {
    background: linear-gradient(135deg, #8892be, #4f5b93);
    box-shadow: 0 5px 20px rgba(136, 146, 190, 0.5);
}

.lang-icon.go {
    background: linear-gradient(135deg, #00add8, #29beb0);
    box-shadow: 0 5px 20px rgba(0, 173, 216, 0.5);
}

/* Адаптивность */
@media (max-width: 768px) {
    .container-fluid {
        padding: 1rem !important;
    }

    .gradient-text {
        font-size: 2.2rem;
    }

    .language-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .result-header {
        flex-direction: column;
        text-align: center;
    }

    .notification {
        left: 20px;
        right: 20px;
        min-width: auto;
    }

    .confidence-meter {
        width: 100%;
    }

    .result-icon {
        width: 70px;
        height: 70px;
        font-size: 40px;
    }
}

@media (max-width: 480px) {
    .language-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .btn-detect {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* Скроллбар */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #4cc9f0, #f72585);
    border-radius: 6px;
    border: 3px solid rgba(0, 0, 0, 0.2);
}

    ::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(135deg, #f72585, #4cc9f0);
    }

/* Добавим немного неонового текста */
.neon-text {
    color: #fff;
    text-shadow: 0 0 7px #fff, 0 0 10px #fff, 0 0 21px #fff, 0 0 42px var(--neon-blue), 0 0 82px var(--neon-blue), 0 0 92px var(--neon-blue), 0 0 102px var(--neon-blue), 0 0 151px var(--neon-blue);
}

/* Частицы в фоне */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}
/* Стили для ссылок в модальном окне */
.links-section, .social-section, .developer-section {
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.link-item {
    margin-bottom: 12px;
    transition: transform 0.2s ease;
}

    .link-item:hover {
        transform: translateX(5px);
    }

.hover-link {
    transition: all 0.2s ease;
    position: relative;
    display: inline-block;
}

    .hover-link:hover {
        color: white !important;
        text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
    }

    .hover-link::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 0;
        height: 1px;
        background: linear-gradient(90deg, var(--neon-blue), var(--neon-pink));
        transition: width 0.3s ease;
    }

    .hover-link:hover::after {
        width: 100%;
    }

/* Социальные ссылки */
.social-link {
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    display: inline-block;
}

    .social-link:hover {
        color: white;
        transform: translateY(-3px) scale(1.1);
        text-shadow: 0 0 15px currentColor;
    }

    .social-link:nth-child(1):hover {
        color: #0088cc;
    }
    /* Telegram */
    .social-link:nth-child(2):hover {
        color: #4c75a3;
    }
    /* VK */
    .social-link:nth-child(3):hover {
        color: #1da1f2;
    }
    /* Twitter */
    .social-link:nth-child(4):hover {
        color: #5865f2;
    }
/* Информация о разработчике */
.developer-info p {
    display: flex;
    align-items: center;
    transition: background 0.2s ease;
    padding: 5px 10px;
    border-radius: 8px;
}

    .developer-info p:hover {
        background: rgba(255, 255, 255, 0.05);
    }


/* Анимация для иконок в модальном окне */
.feature-item i, .link-item i, .developer-info i {
    transition: transform 0.2s ease;
}

.feature-item:hover i, .link-item:hover i, .developer-info p:hover i {
    transform: scale(1.2);
}

/* Дополнительные стили для модального окна */
.modal-body {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 15px;
}

    /* Стилизация скроллбара в модальном окне */
    .modal-body::-webkit-scrollbar {
        width: 5px;
    }

    .modal-body::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 10px;
    }

    .modal-body::-webkit-scrollbar-thumb {
        background: linear-gradient(135deg, var(--neon-blue), var(--neon-pink));
        border-radius: 10px;
    }

/* Кнопка закрытия */
.btn-close-white {
    transition: all 0.3s ease;
}

    .btn-close-white:hover {
        transform: rotate(90deg) scale(1.1);
    }