/* ==========================================================================
   AL QAZMIR MARITIME MANAGEMENT LLC
   Sticky Social Media, Call & WhatsApp Floating System
   Maritime Luxury Theme (Deep Navy #071527 & Aztec Gold #c79e60)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Left-Side Sticky Social Media Dock (Desktop & Tablets)
   -------------------------------------------------------------------------- */
.sticky-social-dock {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 99990;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 6px 0;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.sticky-social-dock.dock-collapsed {
    transform: translateY(-50%) translateX(-46px);
}

.sticky-social-dock a.sticky-social-item {
    pointer-events: auto;
    position: relative;
    display: flex;
    align-items: center;
    height: 44px;
    width: 44px;
    background: rgba(7, 21, 39, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(199, 158, 96, 0.28);
    border-left: none;
    border-radius: 0 24px 24px 0;
    text-decoration: none;
    color: #ffffff;
    overflow: hidden;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transition: width 0.35s cubic-bezier(0.34, 1.4, 0.64, 1),
                background 0.3s ease,
                border-color 0.3s ease,
                box-shadow 0.3s ease,
                transform 0.25s ease;
}

.sticky-social-dock a.sticky-social-item:hover {
    width: 220px;
    transform: translateX(4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    z-index: 10;
}

.sticky-social-dock .sticky-icon-box {
    width: 44px;
    min-width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.sticky-social-dock a.sticky-social-item:hover .sticky-icon-box {
    transform: scale(1.15);
    color: #ffffff !important;
}

.sticky-social-dock .sticky-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    padding-right: 16px;
    opacity: 0;
    transform: translateX(-12px);
    transition: opacity 0.25s ease 0.05s, transform 0.25s ease 0.05s;
}

.sticky-social-dock a.sticky-social-item:hover .sticky-label {
    opacity: 1;
    transform: translateX(0);
}

/* Individual Channel Styling & Brand Hover */
/* WhatsApp */
.sticky-social-dock .item-whatsapp .sticky-icon-box { color: #25D366; }
.sticky-social-dock .item-whatsapp:hover {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-color: #25D366;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

/* Phone Call */
.sticky-social-dock .item-phone .sticky-icon-box { color: #dfb776; }
.sticky-social-dock .item-phone:hover {
    background: linear-gradient(135deg, #c79e60 0%, #e5c38c 100%);
    border-color: #c79e60;
    color: #071527;
    box-shadow: 0 6px 20px rgba(199, 158, 96, 0.5);
}
.sticky-social-dock .item-phone:hover .sticky-label { color: #071527; }
.sticky-social-dock .item-phone:hover .sticky-icon-box { color: #071527 !important; }

/* Email */
.sticky-social-dock .item-email .sticky-icon-box { color: #38bdf8; }
.sticky-social-dock .item-email:hover {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    border-color: #38bdf8;
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.45);
}

/* LinkedIn */
.sticky-social-dock .item-linkedin .sticky-icon-box { color: #0a66c2; }
.sticky-social-dock .item-linkedin:hover {
    background: linear-gradient(135deg, #0a66c2 0%, #004182 100%);
    border-color: #0a66c2;
    box-shadow: 0 6px 20px rgba(10, 102, 194, 0.45);
}

/* Facebook */
.sticky-social-dock .item-facebook .sticky-icon-box { color: #1877f2; }
.sticky-social-dock .item-facebook:hover {
    background: linear-gradient(135deg, #1877f2 0%, #0d5ec4 100%);
    border-color: #1877f2;
    box-shadow: 0 6px 20px rgba(24, 119, 242, 0.45);
}

/* Instagram */
.sticky-social-dock .item-instagram .sticky-icon-box { color: #e1306c; }
.sticky-social-dock .item-instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: #e1306c;
    box-shadow: 0 6px 20px rgba(225, 48, 108, 0.45);
}

/* YouTube */
.sticky-social-dock .item-youtube .sticky-icon-box { color: #ff0000; }
.sticky-social-dock .item-youtube:hover {
    background: linear-gradient(135deg, #ff0000 0%, #b30000 100%);
    border-color: #ff0000;
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.45);
}

/* Toggle Collapse Handle */
.sticky-dock-toggle {
    pointer-events: auto;
    position: relative;
    width: 28px;
    height: 28px;
    margin-left: 2px;
    background: rgba(7, 21, 39, 0.95);
    border: 1px solid rgba(199, 158, 96, 0.4);
    border-radius: 0 14px 14px 0;
    color: #dfb776;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.sticky-dock-toggle:hover {
    background: #c79e60;
    color: #071527;
    width: 32px;
}

.sticky-social-dock.dock-collapsed .sticky-dock-toggle i {
    transform: rotate(180deg);
}

/* --------------------------------------------------------------------------
   2. Bottom-Right Sticky Quick-Action Hub (Call & WhatsApp)
   -------------------------------------------------------------------------- */
.floating-contact-hub {
    position: fixed;
    right: 26px;
    bottom: 26px;
    z-index: 99995;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
    pointer-events: none;
}

.floating-contact-hub > * {
    pointer-events: auto;
}

/* Speech Bubble Prompt for WhatsApp */
.wa-floating-bubble {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: #071527;
    padding: 9px 15px 9px 12px;
    border-radius: 20px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(37, 211, 102, 0.35);
    margin-bottom: -2px;
    animation: bubbleFloat 3s ease-in-out infinite alternate;
    cursor: pointer;
    user-select: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.wa-floating-bubble::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 22px;
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-bottom: 1px solid rgba(37, 211, 102, 0.35);
    border-right: 1px solid rgba(37, 211, 102, 0.35);
    transform: rotate(45deg);
}

.wa-floating-bubble .bubble-wave {
    font-size: 14px;
}

.wa-floating-bubble .bubble-text {
    color: #0b2239;
    letter-spacing: 0.1px;
}

.wa-floating-bubble .bubble-close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    padding: 0 0 0 4px;
    margin-left: 2px;
    transition: color 0.2s;
}

.wa-floating-bubble .bubble-close:hover {
    color: #ef4444;
}

@keyframes bubbleFloat {
    0% { transform: translateY(0); }
    100% { transform: translateY(-5px); }
}

/* Action Button Wrapper */
.floating-action-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* Direct Phone Call Button */
.floating-btn-call {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #071527 0%, #10263f 100%);
    border: 2px solid #c79e60;
    color: #dfb776;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(7, 21, 39, 0.4);
    transition: all 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.floating-btn-call:hover {
    background: linear-gradient(135deg, #c79e60 0%, #e2be84 100%);
    color: #071527;
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 10px 25px rgba(199, 158, 96, 0.5);
    border-color: #ffffff;
}

.floating-btn-call i {
    animation: phoneRingShake 4.5s ease-in-out infinite;
}

@keyframes phoneRingShake {
    0%, 82%, 100% { transform: rotate(0deg); }
    84% { transform: rotate(14deg); }
    86% { transform: rotate(-14deg); }
    88% { transform: rotate(10deg); }
    90% { transform: rotate(-10deg); }
    92% { transform: rotate(6deg); }
    94% { transform: rotate(-6deg); }
    96% { transform: rotate(0deg); }
}

/* Tooltip for Call Button */
.floating-btn-call .hub-tooltip {
    position: absolute;
    right: 62px;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    background: rgba(7, 21, 39, 0.95);
    color: #dfb776;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid rgba(199, 158, 96, 0.4);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.25s ease;
}

.floating-btn-call .hub-tooltip::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 5px solid rgba(7, 21, 39, 0.95);
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}

.floating-btn-call:hover .hub-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

/* Main WhatsApp Floating Button */
.floating-btn-wa {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.55);
    transition: all 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.floating-btn-wa:hover {
    color: #ffffff;
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.75);
}

/* Animated Pulsing Radar Rings */
.floating-btn-wa::before,
.floating-btn-wa::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    border: 2px solid #25D366;
    animation: waRadarPulse 2.2s infinite ease-out;
    pointer-events: none;
}

.floating-btn-wa::after {
    animation-delay: 1.1s;
}

@keyframes waRadarPulse {
    0% {
        transform: scale(0.95);
        opacity: 0.9;
    }
    100% {
        transform: scale(1.65);
        opacity: 0;
    }
}

/* Online Pulsing Status Dot */
.wa-online-status {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    background: #10b981;
    border: 2px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.4);
    animation: onlineDotPulse 1.8s infinite;
}

@keyframes onlineDotPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.4); }
    50% { transform: scale(1.15); box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.1); }
}

/* Tooltip for WhatsApp Button */
.floating-btn-wa .hub-tooltip {
    position: absolute;
    right: 74px;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    background: rgba(7, 21, 39, 0.95);
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    padding: 7px 14px;
    border-radius: 8px;
    border: 1px solid rgba(37, 211, 102, 0.5);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.25s ease;
}

.floating-btn-wa .hub-tooltip span {
    color: #25D366;
    font-weight: 700;
}

.floating-btn-wa .hub-tooltip::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 5px solid rgba(7, 21, 39, 0.95);
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}

.floating-btn-wa:hover .hub-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

/* --------------------------------------------------------------------------
   3. Quick Contact Overview Popover (Interactive Modal)
   -------------------------------------------------------------------------- */
.contact-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(3, 10, 20, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.contact-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.contact-quick-card {
    position: relative;
    width: 100%;
    max-width: 440px;
    background: #08172c;
    border: 1px solid rgba(199, 158, 96, 0.45);
    border-radius: 20px;
    padding: 28px 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55), 0 0 30px rgba(199, 158, 96, 0.15);
    transform: scale(0.92) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
}

.contact-modal-overlay.active .contact-quick-card {
    transform: scale(1) translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 18px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(199, 158, 96, 0.3);
    color: #dfb776;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.modal-close-btn:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: #ffffff;
}

.modal-card-header {
    text-align: center;
    margin-bottom: 20px;
}

.modal-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.modal-card-sub {
    font-size: 12px;
    color: #dfb776;
    font-weight: 500;
}

.modal-actions-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.modal-action-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13.5px;
    transition: all 0.25s ease;
}

.modal-action-wa {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.15) 0%, rgba(18, 140, 126, 0.2) 100%);
    border: 1px solid rgba(37, 211, 102, 0.4);
    color: #25D366;
}

.modal-action-wa:hover {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #ffffff;
    border-color: #25D366;
    transform: translateY(-2px);
}

.modal-action-call {
    background: linear-gradient(135deg, rgba(199, 158, 96, 0.15) 0%, rgba(223, 183, 118, 0.2) 100%);
    border: 1px solid rgba(199, 158, 96, 0.4);
    color: #dfb776;
}

.modal-action-call:hover {
    background: linear-gradient(135deg, #c79e60 0%, #dfb776 100%);
    color: #071527;
    border-color: #c79e60;
    transform: translateY(-2px);
}

.modal-action-mail {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.15) 0%, rgba(2, 132, 199, 0.2) 100%);
    border: 1px solid rgba(14, 165, 233, 0.4);
    color: #38bdf8;
}

.modal-action-mail:hover {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: #ffffff;
    border-color: #0ea5e9;
    transform: translateY(-2px);
}

.modal-action-link i {
    font-size: 20px;
    min-width: 24px;
    text-align: center;
}

.modal-action-details {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.modal-action-name {
    font-size: 13.5px;
    font-weight: 700;
}

.modal-action-val {
    font-size: 11.5px;
    opacity: 0.85;
    font-weight: 400;
}

.modal-socials-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-socials-label {
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-right: 4px;
}

.modal-social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(199, 158, 96, 0.3);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
}

.modal-social-btn:hover {
    transform: translateY(-2px);
}

.modal-social-btn.linkedin:hover { background: #0a66c2; border-color: #0a66c2; color: #ffffff; }
.modal-social-btn.facebook:hover { background: #1877f2; border-color: #1877f2; color: #ffffff; }
.modal-social-btn.instagram:hover { background: #e1306c; border-color: #e1306c; color: #ffffff; }
.modal-social-btn.youtube:hover { background: #ff0000; border-color: #ff0000; color: #ffffff; }

/* --------------------------------------------------------------------------
   4. Mobile Sticky Bottom Action Bar (Screens <= 768px)
   -------------------------------------------------------------------------- */
.mobile-sticky-action-bar {
    display: none;
}

@media (max-width: 768px) {
    body {
        padding-bottom: 60px !important;
    }

    .sticky-social-dock {
        display: none;
    }

    .floating-contact-hub {
        right: 16px;
        bottom: 72px;
        gap: 10px;
    }

    .wa-floating-bubble {
        display: none;
    }

    .floating-btn-call {
        display: none;
    }

    .floating-btn-wa {
        width: 52px;
        height: 52px;
        font-size: 28px;
    }

    .floating-btn-wa .hub-tooltip {
        display: none;
    }

    .mobile-sticky-action-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 58px;
        background: rgba(7, 21, 39, 0.98);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border-top: 1px solid rgba(199, 158, 96, 0.35);
        z-index: 99999;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.35);
        justify-content: space-around;
        align-items: center;
        padding: 0 4px;
    }

    .mobile-bar-btn {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
        text-decoration: none;
        color: #e2e8f0;
        font-family: 'Plus Jakarta Sans', sans-serif;
        font-size: 10.5px;
        font-weight: 600;
        gap: 3px;
        transition: all 0.2s ease;
        position: relative;
    }

    .mobile-bar-btn i {
        font-size: 17px;
        transition: transform 0.2s ease;
    }

    .mobile-bar-btn:active {
        transform: scale(0.95);
    }

    .mobile-bar-btn.btn-call i {
        color: #dfb776;
    }

    .mobile-bar-btn.btn-wa {
        color: #25D366;
    }
    .mobile-bar-btn.btn-wa i {
        color: #25D366;
        font-size: 20px;
    }

    .mobile-bar-btn.btn-mail i {
        color: #38bdf8;
    }

    .mobile-bar-btn.btn-socials i {
        color: #c79e60;
    }

    .mobile-wa-badge {
        position: absolute;
        top: 6px;
        right: 28%;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #25D366;
        box-shadow: 0 0 0 2px #071527;
        animation: onlineDotPulse 1.8s infinite;
    }
}
