/* Demo content */
.demo-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    color: #333;
}

/* Fixed Call Button Container */
.fixed-call-button {
    position: fixed;
    bottom: 143px;
    right: 50px;
    z-index: 1000;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Phone Number Container (Hidden by default) */
.phone-number-box {
    background: linear-gradient(135deg, #65CA7B 0%, #4CAF50 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    margin-right: 10px;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(101, 202, 123, 0.3);
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.phone-number-box i {
    font-size: 16px;
    color: white;
}

/* Call Icon Button */
.call-icon-button {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #65CA7B 0%, #4CAF50 100%);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(101, 202, 123, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.call-icon-button i {
    font-size: 22px;
    color: white;
    z-index: 2;
    transition: all 0.3s ease;
    position: relative;
}

/* Ripple Animation */
.call-icon-button::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    animation: ripple 1.5s infinite;
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Phone Icon Shake Animation */
@keyframes shake {

    0%,
    100% {
        transform: rotate(0deg);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: rotate(-10deg);
    }

    20%,
    40%,
    60%,
    80% {
        transform: rotate(10deg);
    }
}

.call-icon-button i {
    animation: shake 2s infinite;
}

/* Hover Effects */
.fixed-call-button:hover .phone-number-box {
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
}

.fixed-call-button:hover .call-icon-button {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(101, 202, 123, 0.6);
}

.fixed-call-button:hover .call-icon-button i {
    animation: none;
    transform: scale(1.1);
}

/* Active/Click Effect */
.fixed-call-button:active .call-icon-button {
    transform: scale(0.95);
}

/* Responsive Design */
@media (max-width: 768px) {
    .fixed-call-button {
        bottom: 20px;
        right: 20px;
    }

    .call-icon-button {
        width: 40px;
        height: 40px;
    }

    .call-icon-button i {
        font-size: 18px;
    }

    .phone-number-box {
        font-size: 14px;
        padding: 10px 16px;
    }
}

/* Accessibility - Remove animations on user preference */
@media (prefers-reduced-motion: reduce) {

    .call-icon-button::before,
    .call-icon-button i {
        animation: none;
    }

    .phone-number-box,
    .call-icon-button,
    .call-icon-button i {
        transition: none;
    }
}