/* Floating Action Buttons */
.floating-buttons {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Hide floating buttons on mobile devices */
@media (max-width: 991.98px) {
    .floating-buttons {
        display: none !important;
    }
}

.floating-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(10, 54, 144, 0.1);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.15),
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.floating-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.2),
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    background: rgba(10, 54, 144, 0.95);
}

.floating-btn svg,
.floating-btn img {
    width: 28px;
    height: 28px;
    transition: all 0.3s ease;
    filter: none;
}

/* Default state - brand color icons */
.floating-btn svg {
    fill: #0a3690;
    stroke: #0a3690;
}

.floating-btn img {
    filter: brightness(0) saturate(100%) invert(12%) sepia(87%) saturate(1234%) hue-rotate(207deg) brightness(95%) contrast(98%);
}

/* Hover state - white icons */
.floating-btn:hover svg,
.floating-btn:hover img {
    filter: brightness(0) invert(1);
    transform: scale(1.1);
}

.floating-btn:hover svg {
    fill: white;
    stroke: white;
}

/* Tooltip */
.floating-btn::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.floating-btn::after {
    content: '';
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid rgba(0, 0, 0, 0.8);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.floating-btn:hover::before,
.floating-btn:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Social Media Expandable Menu */
.social-menu-container {
    position: relative;
}

.social-menu {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.social-menu.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.social-menu-container:hover .floating-btn::before,
.social-menu-container:hover .floating-btn::after {
    opacity: 0;
    visibility: hidden;
}

.social-btn-item {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 6px 24px rgba(0, 0, 0, 0.15),
        0 2px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    transform: translateX(20px);
    animation: slideInSocial 0.4s ease forwards;
}

.social-btn-item:nth-child(1) { animation-delay: 0.1s; }
.social-btn-item:nth-child(2) { animation-delay: 0.15s; }
.social-btn-item:nth-child(3) { animation-delay: 0.2s; }
.social-btn-item:nth-child(4) { animation-delay: 0.25s; }

@keyframes slideInSocial {
    to {
        transform: translateX(0);
    }
}

.social-btn-item:hover {
    transform: translateY(-2px) scale(1.1);
    box-shadow: 
        0 8px 28px rgba(0, 0, 0, 0.2),
        0 3px 8px rgba(0, 0, 0, 0.15);
}

.social-btn-item svg {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
}

/* Individual social button colors */
.social-btn-item.facebook:hover {
    background: #1877f2;
}

.social-btn-item.facebook:hover svg {
    filter: brightness(0) invert(1);
}

.social-btn-item.twitter:hover {
    background: #1da1f2;
}

.social-btn-item.twitter:hover svg {
    filter: brightness(0) invert(1);
}

.social-btn-item.linkedin:hover {
    background: #0077b5;
}

.social-btn-item.linkedin:hover svg {
    filter: brightness(0) invert(1);
}

.social-btn-item.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
}

.social-btn-item.instagram:hover svg {
    filter: brightness(0) invert(1);
}

/* Contact Menu Expandable Menu - Remove Duplicates and Fix */
.contact-menu-container {
    position: relative;
}

.contact-menu {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.contact-menu.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.contact-menu-container:hover .floating-btn::before,
.contact-menu-container:hover .floating-btn::after {
    opacity: 0;
    visibility: hidden;
}

.contact-btn-item {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 6px 24px rgba(0, 0, 0, 0.15),
        0 2px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    transform: translateX(20px);
    animation: slideInContact 0.4s ease forwards;
}

.contact-btn-item:nth-child(1) { animation-delay: 0.1s; }
.contact-btn-item:nth-child(2) { animation-delay: 0.15s; }
.contact-btn-item:nth-child(3) { animation-delay: 0.2s; }

@keyframes slideInContact {
    to {
        transform: translateX(0);
    }
}

.contact-btn-item:hover {
    transform: translateY(-2px) scale(1.1);
    box-shadow: 
        0 8px 28px rgba(0, 0, 0, 0.2),
        0 3px 8px rgba(0, 0, 0, 0.15);
}

.contact-btn-item svg,
.contact-btn-item img {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
}

/* Individual contact button colors */
.contact-btn-item.email:hover {
    background: #0a3690;
}

.contact-btn-item.email:hover img {
    filter: brightness(0) invert(1);
}

.contact-btn-item.phone:hover {
    background: #02c9a8;
}

.contact-btn-item.phone:hover img {
    filter: brightness(0) invert(1);
}

.contact-btn-item.form:hover {
    background: #1645a4;
}

.contact-btn-item.form:hover svg {
    stroke: white !important;
}

/* Consistent brand color for all floating buttons */
.floating-btn.contact-btn:hover,
.floating-btn.social-btn:hover,
.floating-btn.links-btn:hover {
    background: rgba(10, 54, 144, 0.95);
}
