.about-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    padding: 100px 0;
    min-height: 100vh;
}

.panel-content {
    position: relative;
    z-index: 1;
    color: #fff;
}

.about-text {
    flex: 1;
    color: white;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
}

.skill-btn {
    background-color: rgba(255, 255, 255, 0.3);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.skill-btn:hover {
    background-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.skill-btn.active {
    background-color: rgba(80, 15, 21, 0.8);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .skill-btn {
        position: relative;
    }
    #codeTooltip {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
}

#codeTooltip {
    position: fixed;
    background: rgba(0, 0, 0, 0.73);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    padding: 20px;
    max-width: 600px;
    max-height: 400px;
    overflow: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.95);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95) translateY(-5px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

/* Скрываем скроллбар когда не нужен */
#codeTooltip {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
#codeTooltip::-webkit-scrollbar {
    width: 0px;
    height: 0px;
}

#codeTooltip.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
}

#codeTooltip code {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.8;
    white-space: pre-wrap;
    word-break: break-word;
    background: transparent !important;
    color: #e6e6e6;
}

.skill-btn {
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.skill-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(45, 90, 45, 0.4);
}

/* ===== КНОПКИ ===== */
.skill-btn[data-skill="html"] {
    background: rgba(228, 77, 38, 0.2);
    border-color: rgba(228, 77, 38, 0.4);
    color: #f06529;
}
.skill-btn[data-skill="html"]:hover {
    background: rgba(228, 77, 38, 0.4);
    box-shadow: 0 4px 20px rgba(228, 77, 38, 0.3);
}

.skill-btn[data-skill="css"] {
    background: rgba(38, 77, 228, 0.2);
    border-color: rgba(38, 77, 228, 0.4);
    color: #2965f1;
}
.skill-btn[data-skill="css"]:hover {
    background: rgba(38, 77, 228, 0.4);
    box-shadow: 0 4px 20px rgba(38, 77, 228, 0.3);
}

.skill-btn[data-skill="js"] {
    background: rgba(247, 223, 30, 0.2);
    border-color: rgba(112, 101, 0, 0.4);
    color: #f7df1e;
}
.skill-btn[data-skill="js"]:hover {
    background: rgba(247, 223, 30, 0.4);
    box-shadow: 0 4px 20px rgba(247, 223, 30, 0.3);
}

.skill-btn[data-skill="tg"] {
    background: rgba(36, 161, 222, 0.2);
    border-color: rgba(36, 161, 222, 0.4);
    color: #24a1de;
}
.skill-btn[data-skill="tg"]:hover {
    background: rgba(36, 161, 222, 0.4);
    box-shadow: 0 4px 20px rgba(36, 161, 222, 0.3);
}

/* ===== ОКОШКИ - ОДИНАКОВЫЙ ФОН ===== */
#codeTooltip[data-skill="html"] {
    border-color: rgba(228, 77, 38, 0.3);
    box-shadow: 0 20px 60px rgba(228, 77, 38, 0.1);
}

#codeTooltip[data-skill="css"] {
    border-color: rgba(38, 77, 228, 0.3);
    box-shadow: 0 20px 60px rgba(38, 77, 228, 0.1);
}

#codeTooltip[data-skill="js"] {
    border-color: rgba(247, 223, 30, 0.3);
    box-shadow: 0 20px 60px rgba(247, 223, 30, 0.1);
}

#codeTooltip[data-skill="tg"] {
    border-color: rgba(3, 45, 62, 0.49);
    box-shadow: 0 20px 60px rgba(36, 161, 222, 0.1);
}

#codeTooltip .hljs {
    background: transparent !important;
    padding: 0 !important;
}

#codeTooltip .hljs-tag {
    color: #ff7b72;
}

#codeTooltip .hljs-attr {
    color: #d2a8ff;
}

#codeTooltip .hljs-string {
    color: #a5d6ff;
}

#codeTooltip .hljs-comment {
    color: #8b949e;
    font-style: italic;
}

/* ===== PRE - КОНТЕЙНЕР ДЛЯ КОДА И ИНДИКАТОРА ===== */
#codeTooltip pre {
    display: flex !important;
    align-items: flex-start !important;
    gap: 8px !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Код занимает всю ширину */
#codeTooltip code {
    flex: 1;
    min-width: 0;
}

/* ===== ИНДИКАТОР СКРОЛЛА ===== */
#codeTooltip .scroll-indicator {
    position: sticky;
    top: 50%;
    transform: translateY(-50%);
    flex-shrink: 0;
    margin-left: auto;
    width: 28px;
    height: 50px;
    background: rgba(255,255,255,0.06);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.06);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 10;
}

#codeTooltip .scroll-indicator.visible {
    opacity: 1;
    animation: pulse-indicator 2s ease-in-out infinite;
}

@keyframes pulse-indicator {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

#codeTooltip .scroll-indicator .arrow-up,
#codeTooltip .scroll-indicator .arrow-down {
    display: block;
    font-size: 11px;
    line-height: 1;
    transition: opacity 0.3s ease;
    color: rgba(255,255,255,0.5);
}

#codeTooltip .scroll-indicator .arrow-up.hidden,
#codeTooltip .scroll-indicator .arrow-down.hidden {
    opacity: 0.15;
}

#codeTooltip .scroll-indicator .line {
    width: 2px;
    height: 12px;
    background: rgba(255,255,255,0.08);
    border-radius: 1px;
    margin: 2px 0;
}

#codeTooltip .scroll-indicator .dot {
    width: 4px;
    height: 4px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    margin: 1px 0;
}

/* ===== ДЛЯ TELEGRAM ===== */
#codeTooltip[data-skill="tg"] {
    padding: 12px !important;
    max-width: 420px !important;
    width: 420px !important;
    overflow: visible !important;
}

#codeTooltip[data-skill="tg"] code {
    padding: 0 !important;
    margin: 0 !important;
}

#codeTooltip[data-skill="tg"] .scroll-indicator {
    display: none !important;
}
.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
    position: relative;     /* важно */
}

.skills-hint {
    position: absolute;
    bottom: -45px;           /* расстояние под кнопками */
    left: 0;
    width: 100%;
    height: 45px;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.hint-icon {
    position: absolute;
    font-size: 32px;
    transform: translateX(-50%);
    top: 0;
    transition: left 0.9s cubic-bezier(0.4, 0.0, 0.2, 1);
    will-change: left;
    pointer-events: none;
    color: rgba(255, 255, 255, 0.75);

}

.hint-icon.pulse {
    animation: hint-pulse 2s ease-in-out infinite;
}

@keyframes hint-pulse {
    0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.2; }
    50% { transform: translateX(-50%) scale(1.3); opacity: 0.5; }
}
