/* MacBook Style Floating Circular Dock Stylesheet */

.the-bottom-navigation__box {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 420px;
    height: 66px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 33px; /* Perfect circular pill shape */
    z-index: 999;
    padding-bottom: 0;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12), 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s, width 0.3s;
}

.the-bottom-navigation__links {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 100%;
    padding: 0 16px;
}

.the-bottom-navigation__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-gray-shade-2, #757575) !important;
    text-decoration: none !important;
    font-size: 10px;
    font-weight: 500;
    flex: 1;
    height: 100%;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding-top: 4px;
}

/* Icon Styling */
.the-bottom-navigation__link .icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-bottom: 2px;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.2s ease;
}

.the-bottom-navigation__link .icon-wrapper i {
    font-size: 20px;
}

.the-bottom-navigation__link span {
    font-size: 9.5px;
    line-height: 1.2;
    font-weight: 600;
    transition: color 0.2s ease, opacity 0.2s ease;
    white-space: nowrap;
    opacity: 0.9;
}

/* MacBook Active Indicator Dot */
.the-bottom-navigation__link.active::after {
    content: '';
    position: absolute;
    bottom: 6px;
    width: 4px;
    height: 4px;
    background-color: var(--color-primary-default, #116466);
    border-radius: 50%;
    animation: dockActivePulse 2s infinite ease-in-out;
}

@keyframes dockActivePulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); }
}

/* Active State Styles */
.the-bottom-navigation__link.active {
    color: var(--color-primary-default, #116466) !important;
}

.the-bottom-navigation__link.active .icon-wrapper {
    color: var(--color-primary-default, #116466);
    transform: translateY(-4px) scale(1.1);
}

.the-bottom-navigation__link.active span {
    color: var(--color-primary-default, #116466);
    opacity: 1;
}

/* Middle Contact Button with Green Circle */
.the-bottom-navigation__link.middle-nav-button {
    position: relative;
    overflow: visible;
}

.the-bottom-navigation__link.middle-nav-button .phone-circle-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    background: linear-gradient(135deg, #4caf50, #388e3c); /* Vibrant phone green */
    border-radius: 50%;
    position: absolute;
    top: -15px; /* Elevated above the floating pill */
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 6px 16px rgba(56, 142, 60, 0.35);
    border: 4px solid #ffffff; /* White ring border */
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.the-bottom-navigation__link.middle-nav-button .phone-circle-wrapper i {
    color: #ffffff !important;
    font-size: 20px;
    transform: scaleX(-1);
}

.the-bottom-navigation__link.middle-nav-button span:not(.phone-circle-wrapper) {
    margin-top: 32px; /* Position the label below the elevated green circle */
    opacity: 0.9;
}

/* MacBook style Hover Zoom-in effect */
@media (hover: hover) {
    .the-bottom-navigation__link:hover:not(.middle-nav-button) {
        color: var(--color-primary-default, #116466) !important;
    }
    .the-bottom-navigation__link:hover:not(.middle-nav-button) .icon-wrapper {
        transform: translateY(-6px) scale(1.25);
        color: var(--color-primary-default, #116466);
    }
    .the-bottom-navigation__link:hover span {
        opacity: 1;
    }
    .the-bottom-navigation__link.middle-nav-button:hover .phone-circle-wrapper {
        transform: translateX(-50%) translateY(-3px) scale(1.05);
        box-shadow: 0 8px 20px rgba(56, 142, 60, 0.5);
    }
}

/* Prevent layout overlapping by adding page padding */
body {
    padding-bottom: 96px;
}

/* Responsive Visibility */
@media (min-width: 768px) {
    .the-bottom-navigation__box {
        display: none !important;
    }
    body {
        padding-bottom: 0px !important;
    }
}
