/* ================================================
   ANIMATED VALVE QUESTION TEXT
   ================================================ */

.profile-animated-question {
    margin: 15px 0;
    padding: 15px 20px;
    background: rgba(180, 83, 79, 0.08);
    border-left: 3px solid #ef4444;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.animated-valve-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.6;
    color: #c7d5e0;
    margin: 0;
    font-family: 'Roboto Mono', monospace;
}

/* The main animation element */
.animated-valve-title span {
    display: inline-block;
    opacity: 0;
    animation: fadeInChar 0.5s forwards;
}

/* Emphasized words with a glitch effect */
.glitch-word {
    position: relative;
    color: #ff4d4d;
    font-weight: 700;
    display: inline-block;
    animation: glitch-animation 2.5s infinite;
    text-shadow: 0 0 5px #ff4d4d, 0 0 10px #ff4d4d;
}

/* Glitch pseudo-elements */
.glitch-word::before,
.glitch-word::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    overflow: hidden;
}

.glitch-word::before {
    left: 2px;
    text-shadow: -2px 0 #00f;
    animation: glitch-anim-1 2s infinite linear alternate-reverse;
}

.glitch-word::after {
    left: -2px;
    text-shadow: -2px 0 #f0f, 2px 2px #0f0;
    animation: glitch-anim-2 2s infinite linear alternate-reverse;
}

/* Keyframe Animations */
@keyframes fadeInChar {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glitch-animation {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

@keyframes glitch-anim-1 {
    0% { clip: rect(44px, 450px, 56px, 0); }
    5% { clip: rect(59px, 450px, 92px, 0); }
    10% { clip: rect(69px, 450px, 98px, 0); }
    15% { clip: rect(64px, 450px, 69px, 0); }
    20% { clip: rect(41px, 450px, 73px, 0); }
    100% { clip: rect(18px, 450px, 94px, 0); }
}

@keyframes glitch-anim-2 {
    0% { clip: rect(74px, 450px, 86px, 0); }
    5% { clip: rect(39px, 450px, 42px, 0); }
    10% { clip: rect(19px, 450px, 68px, 0); }
    15% { clip: rect(4px, 450px, 19px, 0); }
    20% { clip: rect(21px, 450px, 53px, 0); }
    100% { clip: rect(48px, 450px, 54px, 0); }
}

/* Profile Social Icons - Under Profile */
.profile-social-icons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 15px 0 0 0;
}

.profile-social-link {
    display: inline-block;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.profile-social-link:hover {
    transform: scale(1.15) translateY(-4px) rotate(5deg);
}

.profile-social-icon {
    width: 42px;
    height: 42px;
    clip-path: url(#squircleClip);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow:
        inset 1px 2px 6px rgba(0, 0, 0, 0.6),
        0 4px 12px rgba(0, 0, 0, 0.4);
}

.profile-social-link:hover .profile-social-icon {
    box-shadow:
        inset 1px 2px 8px rgba(0, 0, 0, 0.7),
        0 8px 24px rgba(0, 0, 0, 0.6),
        0 0 0 3px rgba(255, 255, 255, 0.1);
}

.profile-icon-svg {
    width: 22px;
    height: 22px;
    position: relative;
    z-index: 2;
    transition: all 0.35s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.profile-social-link:hover .profile-icon-svg {
    transform: rotate(-45deg) scale(1.1);
}

/* Individual icon styles */
.profile-twitter {
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
    border: 1px solid rgba(107, 114, 128, 0.5);
}

.profile-twitter .profile-icon-svg {
    color: #ffffff;
}

.profile-instagram {
    background: linear-gradient(135deg, #ec4899 0%, #f59e0b 100%);
    border: 1px solid rgba(236, 72, 153, 0.6);
}

.profile-instagram .profile-icon-svg {
    color: #ffffff;
}

.profile-telegram {
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    border: 1px solid rgba(14, 165, 233, 0.6);
}

.profile-telegram .profile-icon-svg {
    color: #ffffff;
}

.profile-email {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    border: 1px solid rgba(107, 114, 128, 0.5);
}

.profile-email .profile-icon-svg {
    color: #ffffff;
}

@media (max-width: 768px) {
    .profile-animated-question {
        padding: 12px 16px;
        margin: 12px 0;
    }

    .animated-valve-title {
        font-size: 13px;
    }

    .profile-social-icons {
        gap: 10px;
    }

    .profile-social-icon {
        width: 38px;
        height: 38px;
    }

    .profile-icon-svg {
        width: 20px;
        height: 20px;
    }
}
