/*=================================
    Premium Glassmorphism Footer
==================================*/

.footer-glass-wrapper {
    position: relative;
    background: #080a10;
    /* Ultra dark navy/black */
    overflow: hidden;
    padding-top: 30px;
    padding-bottom: 0px;
    padding-left: 10px;
    padding-right: 10px;
    font-family: 'Archivo', sans-serif;
}

/* Animated background shapes */
.footer-glass-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.glass-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.2;
    animation: floatShape 20s infinite alternate ease-in-out;
}

.glass-shape-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #e02106 0%, transparent 70%);
    top: -200px;
    right: -100px;
}

.glass-shape-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #f16308 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    animation-delay: -5s;
}

.glass-shape-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #ffffff 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.05;
}

@keyframes floatShape {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(50px, 100px) rotate(15deg);
    }
}

.footer-premium-container {
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 60px 60px 0 0;
    padding: 50px 0 0 0;
    box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.5);
}

.footer-glass-logo-box {
    margin-bottom: 30px;
    background: #fff;
    padding: 15px;
    border-radius: 20px;
    display: inline-block;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.footer-glass-logo-box img {
    max-width: 90px;
}

.footer-glass-about-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 35px;
}

.footer-premium-year {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 25px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-premium-year .label {
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 2px;
}

.footer-premium-year .value {
    color: #fff;
    font-weight: 800;
    font-size: 18px;
    color: #f16308;
}

.footer-glass-widget-title {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 40px;
    position: relative;
    font-family: 'Titillium Web', sans-serif;
}

.footer-glass-widget-title::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #e02106, #f16308);
    border-radius: 10px;
}

.footer-glass-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-glass-menu li {
    margin-bottom: 18px;
}

.footer-glass-menu a {
    color: rgba(255, 255, 255, 0.65);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.2, 1);
}

.footer-glass-menu a i {
    font-size: 18px;
    color: #f16308;
    transition: all 0.4s ease;
}

.footer-glass-menu a:hover {
    color: #fff;
    transform: translateX(8px);
}

.footer-glass-menu a:hover i {
    transform: scale(1.2);
    color: #e02106;
}

/* Contact Specific Styles */
.footer-glass-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-glass-contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.footer-glass-icon-circle {
    min-width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f16308;
    font-size: 20px;
    transition: all 0.4s ease;
}

.footer-glass-contact-item:hover .footer-glass-icon-circle {
    background: #e02106;
    color: #fff;
    transform: translateY(-5px) rotate(10deg);
    box-shadow: 0 10px 20px rgba(224, 33, 6, 0.3);
}

.footer-glass-contact-info {
    display: flex;
    flex-direction: column;
}

.footer-glass-contact-info a,
.footer-glass-contact-info span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.footer-glass-contact-info a:hover {
    color: #fff;
}

/* Social Buttons */
.footer-glass-social {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.footer-glass-social-btn {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.footer-glass-social-btn:hover {
    background: #f16308;
    color: #fff;
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 15px 30px rgba(241, 99, 8, 0.3);
}

/* Bottom Bar */
.footer-glass-bottom {
    margin-top: 30px;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
}

.footer-glass-bottom .container>.row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
}

.footer-glass-bottom .container>.row>[class*="col-"] {
    width: auto;
    max-width: none;
    flex: none;
}

.footer-glass-bottom .container>.row>[class*="col-"]:first-child {
    grid-column: 2;
}

.footer-glass-bottom .container>.row>[class*="col-"]:last-child {
    grid-column: 3;
    justify-self: end;
}

.footer-glass-copyright {
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
    margin-bottom: 0;
    text-align: center;
}

.footer-glass-copyright strong {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

.footer-glass-designer {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
}

/* Standardized Centered Footer layout for all premium footers */
.footer-glass-bottom .container>.row {
    display: flex !important;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px 30px;
    grid-template-columns: none;
}

.footer-glass-bottom .container>.row>[class*="col-"] {
    width: auto !important;
    max-width: none !important;
    flex: none !important;
    grid-column: auto !important;
    justify-self: center !important;
    text-align: center !important;
    padding: 0 !important;
}

.footer-glass-designer {
    display: inline-flex;
    justify-content: center;
    width: auto;
    margin-top: 0 !important;
}

.footer-glass-bottom .text-md-end,
.footer-glass-bottom .text-md-start {
    text-align: center !important;
}

.footer-glass-copyright {
    display: inline-block;
    width: auto;
    max-width: 100%;
    white-space: nowrap;
}

.footer-glass-designer img {
    height: 25px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-glass-designer:hover img {
    opacity: 1;
}

/* Response for very small devices */
@media (max-width: 767px) {
    .footer-glass-copyright {
        white-space: normal;
    }
}

@media (max-width: 575px) {
    .footer-glass-copyright {
        font-size: 8px;
    }
}

/* Responsive */
@media (max-width: 1199px) {
    .footer-premium-container {
        padding: 40px 0 0 0;
    }
}

@media (max-width: 991px) {
    .footer-glass-widget {
        margin-bottom: 50px;
    }
}

/*=================================
    Floating Action Buttons
==================================*/

.floating-actions-wrapper {
    position: fixed;
    bottom: 100px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.floating-action-item {
    pointer-events: auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.floating-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #fff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    border: none;
    outline: none;
}

.floating-btn:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    color: #fff;
}

.whatsapp-float {
    background: #25d366;
}

.call-float {
    background: #e02106;
}

.whatsapp-float:hover {
    background: #128c7e;
}

.call-float:hover {
    background: #c01a05;
}

/* WhatsApp Hover Popup */
.whatsapp-popup {
    position: absolute;
    right: 85px;
    width: 260px;
    background: #fff;
    border-radius: 18px;
    padding: 12px 15px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-action-item:hover .whatsapp-popup {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.whatsapp-popup::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 8px 0 8px 8px;
    border-style: solid;
    border-color: transparent transparent transparent #fff;
}

.popup-logo {
    width: 45px;
    height: 45px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
}

.popup-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.popup-content {
    display: flex;
    flex-direction: column;
}

.popup-name {
    font-weight: 700;
    color: #15161C;
    font-size: 15px;
    margin-bottom: 2px;
    font-family: 'Titillium Web', sans-serif;
}

.popup-status {
    color: #25d366;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 5px;
}

.popup-status::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #25d366;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 5px #25d366;
}

/* Responsive */
@media (max-width: 767px) {

    .about-page .footer-glass-copyright,
    .contact-page .footer-glass-copyright,
    .service-page .footer-glass-copyright,
    .access-control-system-page .footer-glass-copyright,
    .fire-alarm-system-page .footer-glass-copyright,
    .fire-hydrant-page .footer-glass-copyright,
    .gas-suppression-page .footer-glass-copyright,
    .public-address-page .footer-glass-copyright,
    .video-surveillance-page .footer-glass-copyright,
    .water-leak-detection-page .footer-glass-copyright,
    .rodent-repellent-page .footer-glass-copyright {
        white-space: normal;
    }

    .footer-glass-bottom .container>.row {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .footer-glass-bottom .container>.row>[class*="col-"] {
        grid-column: auto;
        justify-self: center;
    }

    .floating-actions-wrapper {
        bottom: 90px;
        right: 28px;
    }

    .whatsapp-popup {
        display: none;
        /* Hide popup on small devices to avoid clutter */
    }
}