/**
 * Animated Social Media Icons
 * Premium animations for header, footer, and contact page social icons
 */

/* ========================================
   CONTACT PAGE SOCIAL ICONS
======================================== */
.social-links-modern {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.social-links-modern a {
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    animation: socialPulse 3s ease-in-out infinite;
}

/* Continuous pulse animation */
@keyframes socialPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(255, 255, 255, 0);
    }
}

/* Gradient overlay effect */
.social-links-modern a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.social-links-modern a:hover::before {
    left: 100%;
}

/* Staggered animation delays */
.social-links-modern a:nth-child(1) {
    animation-delay: 0s;
}

.social-links-modern a:nth-child(2) {
    animation-delay: 0.3s;
}

.social-links-modern a:nth-child(3) {
    animation-delay: 0.6s;
}

.social-links-modern a:nth-child(4) {
    animation-delay: 0.9s;
}

/* Hover effects with platform-specific gradients */
.social-links-modern a:hover {
    transform: translateY(-8px) scale(1.1) rotate(5deg);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border-color: white;
    animation: none;
}

/* Facebook */
.social-links-modern a:has(.fa-facebook-f):hover {
    background: linear-gradient(135deg, #1877f2 0%, #0d5dbf 100%);
    color: white;
}

/* Twitter */
.social-links-modern a:has(.fa-twitter):hover {
    background: linear-gradient(135deg, #1da1f2 0%, #0d8bd9 100%);
    color: white;
}

/* LinkedIn */
.social-links-modern a:has(.fa-linkedin-in):hover {
    background: linear-gradient(135deg, #0077b5 0%, #005885 100%);
    color: white;
}

/* Instagram */
.social-links-modern a:has(.fa-instagram):hover {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

/* Icon animation on hover */
.social-links-modern a i {
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.social-links-modern a:hover i {
    transform: scale(1.2) rotate(-5deg);
}

/* ========================================
   HEADER SOCIAL ICONS
======================================== */
.header-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(102, 126, 234, 0.1);
    border: 2px solid rgba(102, 126, 234, 0.2);
    color: var(--primary-color, #667eea);
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    animation: headerSocialPulse 3s ease-in-out infinite;
}

@keyframes headerSocialPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.3);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(102, 126, 234, 0);
    }
}

/* Staggered delays for header */
.header-socials a:nth-child(1) {
    animation-delay: 0s;
}

.header-socials a:nth-child(2) {
    animation-delay: 0.2s;
}

.header-socials a:nth-child(3) {
    animation-delay: 0.4s;
}

.header-socials a:nth-child(4) {
    animation-delay: 0.6s;
}

.header-socials a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.header-socials a:hover::before {
    left: 100%;
}

.header-socials a:hover {
    transform: translateY(-4px) scale(1.15) rotate(8deg);
    animation: none;
}

/* Platform-specific colors for header */
.header-socials a:has(.fa-facebook-f):hover {
    background: linear-gradient(135deg, #1877f2 0%, #0d5dbf 100%);
    border-color: #1877f2;
    color: white;
}

.header-socials a:has(.fa-twitter):hover {
    background: linear-gradient(135deg, #1da1f2 0%, #0d8bd9 100%);
    border-color: #1da1f2;
    color: white;
}

.header-socials a:has(.fa-linkedin-in):hover {
    background: linear-gradient(135deg, #0077b5 0%, #005885 100%);
    border-color: #0077b5;
    color: white;
}

.header-socials a:has(.fa-instagram):hover {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: #f09433;
    color: white;
}

.header-socials a i {
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.header-socials a:hover i {
    transform: scale(1.2) rotate(-8deg);
}

/* ========================================
   FOOTER SOCIAL ICONS
======================================== */
.footer-socials .social-icon-footer,
.social-icon-footer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.1rem;
    margin-right: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    animation: footerSocialPulse 3s ease-in-out infinite;
}

@keyframes footerSocialPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.3);
    }

    50% {
        box-shadow: 0 0 0 7px rgba(255, 255, 255, 0);
    }
}

/* Staggered delays for footer */
.footer-socials .social-icon-footer:nth-child(1) {
    animation-delay: 0s;
}

.footer-socials .social-icon-footer:nth-child(2) {
    animation-delay: 0.25s;
}

.footer-socials .social-icon-footer:nth-child(3) {
    animation-delay: 0.5s;
}

.footer-socials .social-icon-footer:nth-child(4) {
    animation-delay: 0.75s;
}

.social-icon-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.social-icon-footer:hover::before {
    left: 100%;
}

.social-icon-footer:hover {
    transform: translateY(-6px) scale(1.12) rotate(6deg);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    animation: none;
}

/* Platform-specific colors for footer */
.social-icon-footer:has(.fa-facebook-f):hover {
    background: linear-gradient(135deg, #1877f2 0%, #0d5dbf 100%);
    border-color: white;
    color: white;
}

.social-icon-footer:has(.fa-twitter):hover {
    background: linear-gradient(135deg, #1da1f2 0%, #0d8bd9 100%);
    border-color: white;
    color: white;
}

.social-icon-footer:has(.fa-linkedin-in):hover {
    background: linear-gradient(135deg, #0077b5 0%, #005885 100%);
    border-color: white;
    color: white;
}

.social-icon-footer:has(.fa-instagram):hover {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: white;
    color: white;
}

.social-icon-footer i {
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.social-icon-footer:hover i {
    transform: scale(1.2) rotate(-6deg);
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
======================================== */
@media (max-width: 768px) {
    .social-links-modern a {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .header-socials a {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    .social-icon-footer {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .social-links-modern {
        justify-content: center;
    }
}