/* Floating Social Contact Links */
.social-contact-links {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    background: #FF7A5A;
    padding: 15px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.social-contact-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #FF5C00;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.social-contact-link:hover {
    transform: translateY(-2px);
    background: #f8f8f8;
}

/* Responsive styles for floating social links */
@media (max-width: 992px) {
    .social-contact-links {
        right: 20px;
        padding: 12px;
    }
}

@media (max-width: 768px) {
    .social-contact-links {
        position: fixed;
        bottom: 20px;
        right: 20px;
        top: auto;
        transform: none;
        flex-direction: row;
        padding: 10px;
    }

    .social-contact-link {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 576px) {
    .social-contact-links {
        bottom: 15px;
        right: 15px;
        padding: 8px;
    }
    
    .social-contact-link {
        width: 32px;
        height: 32px;
    }
}

/* Animation keyframes */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px) translateY(-50%);
    }
    to {
        opacity: 1;
        transform: translateX(0) translateY(-50%);
    }
}

@keyframes slideInBottom {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Container animation */
.social-contact-links {
    opacity: 0;
}

/* Desktop animation */
@media (min-width: 769px) {
    .social-contact-links {
        animation: slideInRight 0.8s ease-out forwards;
    }
}

/* Mobile animation */
@media (max-width: 768px) {
    .social-contact-links {
        animation: slideInBottom 0.8s ease-out forwards;
    }
}

/* Social links individual animations */
.social-contact-link {
    opacity: 0;
    animation: scaleIn 0.5s ease-out forwards;
}

/* Add delay for each social link */
.social-contact-links .social-contact-link:nth-child(1) { animation-delay: 0.3s; }
.social-contact-links .social-contact-link:nth-child(2) { animation-delay: 0.5s; }
.social-contact-links .social-contact-link:nth-child(3) { animation-delay: 0.7s; }

/* Enhanced hover effects */
.social-contact-link {
    position: relative;
    overflow: hidden;
}

.social-contact-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 92, 0, 0.1);
    transition: transform 0.4s ease;
}

.social-contact-link:hover::after {
    transform: translateX(100%);
}

/* Maintain original hover effect with important to override animation */
.social-contact-link:hover {
    transform: translateY(-2px) !important;
    background: #f8f8f8;
}

/* Add smooth transition for icon color */
.social-contact-link i {
    transition: color 0.3s ease;
}

.social-contact-link:hover i {
    color: #E65200;
}

/* Floating animation for container on desktop */
@media (min-width: 769px) {
    .social-contact-links {
        animation: slideInRight 0.8s ease-out forwards,
                   float 3s ease-in-out infinite;
    }

    @keyframes float {
        0%, 100% {
            transform: translateY(-50%) translateX(0);
        }
        50% {
            transform: translateY(-50%) translateX(-10px);
        }
    }
}