@media (min-width: 1000px) { 
    .mobile-nav { display: none !important; }
    .popup { display: none !important; }
    }

@media (max-width: 1000px) { 
    .navbar-toggle { display: none !important;}
    .navbar-brand {    margin: 0 auto !important;text-align: center !important;width: 250px; }
    }

/* Mobile Navigation Bar */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-color: var(--secondary-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    border-top: 1px solid var(--divider-color);
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 33.33%;
    height: 100%;
    color: var(--accent-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.mobile-nav-item i {
    font-size: 1.5rem;
    margin-bottom: 5px;
    transition: transform 0.3s ease;
}

.mobile-nav-item span {
    font-size: 0.8rem;
    font-weight: 500;
}

.mobile-nav-item:hover {
    background-color: #444444;
}

.mobile-nav-item:hover i {
    transform: translateY(-3px);
}

.mobile-nav-item:active {
    background-color: #555555;
}

/* Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    max-height: 90vh;
    background-color: #fff;
    z-index: 999;
    overflow-y: auto;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
}

.popup.active {
      bottom: 20px;
          padding-bottom: 50px;
}

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

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    background-color: var(--secondary-color);
}

.popup-header h3 {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.close-popup {
    background: none;
    border: none;
    color: var(--accent-color);
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.close-popup:hover {
    transform: rotate(90deg);
}

.popup-content {
   padding: 15px 30px;
}

/* Contact Popup Styles */
.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.contact-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-right: 15px;
    margin-top: 5px;
}

.contact-info h4 {
    margin-bottom: 5px;
    color: #333;
    font-size: 16px;
    font-weight: 300;
}

.contact-info p {
    color: #555;
    font-size: 14px;
    font-weight: 400;
}

.contact-info a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--accent-color);
}

.directions-btn {
  display: inline-block;
    margin-top: 10px;
    padding: 18px 25px;
    background-color: var(--accent-color);
    color: #555555 !important;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.directions-btn:hover {
    background-color: #c4a030;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(212, 175, 55, 0.3);
}

/* Services Popup Styles */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.service-item {
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-item i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.service-item h4 {
    margin-bottom: 10px;
    color: #333;
}

/* About Popup Styles */
.about-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.about-link {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.about-link:hover {
    background-color: #333333;
    color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-link i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-right: 15px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.popup-content > * {
    animation: fadeIn 0.5s ease forwards;
}

.contact-item, .service-item, .about-link {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

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

.service-item:nth-child(1) { animation-delay: 0.1s; }
.service-item:nth-child(2) { animation-delay: 0.2s; }
.service-item:nth-child(3) { animation-delay: 0.3s; }

.about-link:nth-child(1) { animation-delay: 0.1s; }
.about-link:nth-child(2) { animation-delay: 0.15s; }
.about-link:nth-child(3) { animation-delay: 0.2s; }
.about-link:nth-child(4) { animation-delay: 0.25s; }
.about-link:nth-child(5) { animation-delay: 0.3s; }
.about-link:nth-child(6) { animation-delay: 0.35s; }

    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-links {
        grid-template-columns: 1fr;
    }


    .popup {
        width: 100%;
        left: 50%;
        transform: translateX(-50%);
    }


