/* Floating Contact Button */
.floating-contact {
    position: fixed !important;
    bottom: 100px !important;
    right: 20px !important;
    width: 60px !important;
    height: 60px !important;
    background: linear-gradient(90deg, rgba(204, 198, 198, 0.9), rgba(0, 255, 255, 0.9), rgba(138, 43, 226, 0.9));
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
    z-index: 9999 !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    transition: all 0.3s ease !important;
    animation: bounceGlow 1.5s infinite;

}
/* Thêm chuyển động cho icon */
.floating-contact i {
    font-size: 24px !important;
    color: #0A0F24!important;
    animation: iconWave 1.5s infinite;
    transition: transform 0.3s ease !important;
}

/* Hiệu ứng nhảy và phát sáng */
@keyframes bounceGlow {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
        box-shadow: 0 0 15px #00ffee;
    }
    40% {
        transform: translateY(-10px);
        box-shadow: 0 0 25px #00ffee;
    }
    60% {
        transform: translateY(-5px);
        box-shadow: 0 0 20px #00ffee;
    }
}
/* Hiệu ứng tỏa sáng cho floating contact */
@keyframes pulseGlow {
    0% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3),
                    0 0 0 0 rgba(255, 212, 152, 0.7);
    }
    70% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3),
                    0 0 0 15px rgba(255, 212, 152, 0);
    }
    100% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3),
                    0 0 0 0 rgba(255, 212, 152, 0);
    }
}

.floating-contact::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(90deg, rgba(204, 198, 198, 0.9), rgba(0, 255, 255, 0.9), rgba(138, 43, 226, 0.9));
    z-index: -1;
    animation: ripple 1.5s linear infinite;
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 0.4;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.floating-contact i {
    font-size: 24px !important;
    color: #0A0F24!important;
    transition: transform 0.3s ease !important;
}

@keyframes iconWave {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(-10deg) scale(1.1);
    }
    75% {
        transform: rotate(10deg) scale(1.1);
    }
}

.floating-contact:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4) !important;
}

.floating-contact.active {
    background: linear-gradient(90deg, rgba(204, 198, 198, 0.9), rgba(0, 255, 255, 0.9), rgba(138, 43, 226, 0.9));

}

.floating-contact.active::before {
    animation: none;
}

.floating-contact.active i {
    color: #0A0F24 !important;
    transform: rotate(360deg) !important;
}

/* Contact Menu */
.contact-menu {
    position: fixed;
    bottom: 120px;
    right: -300px;
    width: auto;
    background: linear-gradient(90deg, rgba(204, 198, 198, 0.9), rgba(0, 255, 255, 0.9), rgba(138, 43, 226, 0.9));
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
}

.contact-menu.active {
    right: 20px;
    opacity: 1;
    visibility: visible;
}

.contact-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 212, 152, 0.1);
}

.contact-menu-header h3 {
    color: #0A0F24; 
    margin: 0;
    font-size: 1.2rem;
  
    text-align: center;
}

.close-menu {
    background: none;
    border: none;
    color: #0A0F24; 
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px;
    transition: transform 0.3s ease;
}

.close-menu:hover {
    transform: rotate(90deg);
}

.contact-menu-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: rgba(19, 19, 18, 0.1);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(19, 18, 18, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.contact-item:hover::before {
    transform: translateX(100%);
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: rgba(12, 12, 12, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.contact-icon i {
    font-size: 20px;
    color: #0A0F24; 
}

.contact-info {
    flex: 1;
}

.contact-info h4 {
    color: #0A0F24; 
    margin: 0 0 5px 0;
    font-size: 1rem;
}

.contact-info p {
    color: #0A0F24; 
    margin: 0;
    font-size: 0.9rem;
}

.arrow-icon {
    color: #0A0F24; 
    font-size: 0.8rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 212, 152, 0.2);
    transform: translateX(5px);
}

.contact-item:hover .arrow-icon {
    opacity: 1;
    transform: translateX(0);
}

/* Animation for menu items */
.contact-item {
    animation: slideIn 0.3s ease backwards;
}

.contact-item:nth-child(1) { animation-delay: 0.1s; }
.contact-item:nth-child(2) { animation-delay: 0.2s; }
.contact-item:nth-child(3) { animation-delay: 0.3s; }

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
} 