/* Floating Button */
.floating-btn {
    position: fixed;
    left: 95%;
    transform: translateX(-50%);
    background: #f16c41;
    color: white;
    padding: 12px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
}

.floating-btn:hover {
    transform: translateX(-50%) scale(1.05);
}

/* Popup Background */
.brochure-popup {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    animation: fadeInBg 0.4s ease;
}

/* Popup Content */
.popup-content {
    background: #fff;
    width: 70%;
    margin: 5% auto;
    padding: 20px;
    border-radius: 15px;
    animation: zoomIn 0.5s ease;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.4);
}

/* Close Button */
.close-btn {
    float: right;
    font-size: 28px;
    cursor: pointer;
    color: red;
    transition: 0.3s;
}

.close-btn:hover {
    transform: rotate(90deg);
    color: #000;
}

/* Brochure Grid */
.brochure-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

/* Brochure Items */
.brochure a {
    display: block;
    padding: 12px;
    background: #f1f1f1;
    text-align: center;
    border-radius: 10px;
    text-decoration: none;
    transition: 0.4s;
    opacity: 0;
    transform: translateY(20px);
    animation: bounceIn 0.6s forwards;
}

.brochure a:hover {
    background: #0073e6;
    color: #fff;
    transform: scale(1.05);
}

/* Keyframes */
@keyframes fadeInBg {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.7);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }

    60% {
        opacity: 1;
        transform: translateY(-5px) scale(1.05);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
@media (max-width: 768px) {
    .floating-btn {
        left: 90%; /* Moves button a bit more to the left on smaller screens */
        padding: 10px 16px;
        font-size: 14px;
    }

    .popup-content {
        width: 90%; /* Reduce width for smaller screens */
        margin: 10% auto;
        padding: 15px;
    }

    .brochure-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); /* Smaller items */
        gap: 10px;
    }

    .brochure a {
        font-size: 14px;
        padding: 10px;
    }

    .close-btn {
        font-size: 24px;
    }
}
#brochurePopup {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}