/* --- Navigation Bar Styles --- */
.navbar {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar-scrolled {
    background: rgba(4, 17, 122, 0.95); /* Solid dark blue with slight transparency */
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 0.7rem 0;
}

/* Active Navigation Pill Styles */
.nav-link.active-pill {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.nav-link.active-pill:hover {
    background-color: rgba(255, 255, 255, 0.25) !important;
    transform: translateY(-1px);
}

/* Regular nav link hover effects */
.nav-link:not(.active-pill):hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    transition: all 0.3s ease;
}

/* Nav Links */
.nav-link-custom {
    color: rgba(255,255,255,0.8) !important;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s;
}

.nav-link-custom:hover,
.nav-link-custom.active {
    color: var(--accent-color) !important;
}

/* Underline Animation */
.nav-link-custom::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--accent-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link-custom:hover::after,
.nav-link-custom.active::after {
    width: 80%;
}

/* Icon Buttons */
.btn-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-icon:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Search Input Focus */
.form-control::placeholder {
    color: rgba(255,255,255,0.7);
}
input:focus::placeholder {
    color: #999;
}

/* Spacer for fixed nav */
.navbar-spacer {
    height: 80px; /* Adjust based on navbar height */
}

/* Dropdown Animation */
.dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1050;
}

.dropdown:hover .dropdown-menu,
.dropdown .dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item:hover {
    background-color: #f0f8ff;
    color: var(--primary-color);
}

/* Profile Dropdown Specific Fixes */
.navbar .dropdown {
    position: relative;
}

.navbar .dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    min-width: 200px;
    margin-top: 0.5rem;
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.navbar .dropdown-menu-end {
    right: 0;
    left: auto;
}

/* Ensure proper positioning on mobile */
@media (max-width: 991.98px) {
    .navbar .dropdown-menu {
        position: absolute;
        right: 15px;
        left: auto;
        width: 200px;
    }
}

/* Existing styles... */
:root {
    --primary-color: #1B4332;
    --secondary-color: #322f2f;
    --accent-color: #D4AF37;
    --accent-hover:  #856d66;
    --dark-blue: #020945;
}
/* ... rest of your CSS */

body {
    background-color: #f4f6f9;
    overflow-x: hidden;
}

/* --- Text & Background Utilities --- */
.text-primary { color: var(--secondary-color) !important; }
.text-accent { color: var(--accent-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.bg-accent { background-color: var(--accent-color) !important; }

/* Gradient Backgrounds */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.bg-gradient-footer {
    background: linear-gradient(to bottom, var(--primary-color),var(--secondary-color));
}

/* --- Buttons --- */
.btn-primary { 
    background-color: var(--primary-color); 
    border-color: var(--primary-color); 
}
.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-accent {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #f9f9fa; /* Dark text on bright accent */
    font-weight: bold;
}
.btn-accent:hover {
    background-color: var(--accent-hover);
    color: #edefff;
}

/* --- Product Card Styling --- */
.product-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 15px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.05);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(4, 17, 122, 0.15) !important;
}

.product-img-wrapper {
    position: relative;
    background: #f8f9fa;
    border-radius: 15px 15px 0 0;
    overflow: hidden;
}

.product-img-wrapper img {
    transition: transform 0.5s ease;
}

.product-card:hover .product-img-wrapper img {
    transform: scale(1.05);
}

.action-buttons {
    position: absolute;
    bottom: -60px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    transition: bottom 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    padding-bottom: 15px;
    z-index: 2;
}

.product-card:hover .action-buttons {
    bottom: 0;
}

.action-buttons .btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.3s ease;
}

.product-card:hover .action-buttons .btn {
    transform: scale(1);
    opacity: 1;
}

.action-buttons .btn:hover {
    background-color: var(--accent-color);
    color: var(--primary-color) !important;
}

/* --- Sticky Contact Button --- */
.sticky-contact-wrapper {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

.btn-sticky-contact {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    color: white;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 224, 255, 0.4);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: pulse-glow 2s infinite;
}

.btn-sticky-contact:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 8px 25px #812929;;
}

.contact-dropdown-menu {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 200px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.contact-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 10px;
    transition: background 0.2s;
}

.contact-item:hover {
    background-color: #f0f8ff;
    color: var(--secondary-color);
}

/* --- Animations --- */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(0, 224, 255, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(0, 224, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 224, 255, 0); }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

/* Sidebar Categories */
.category-card {
    border-radius: 15px;
    overflow: hidden;
}
.list-group-item {
    border: none;
    border-bottom: 1px solid #f0f0f0;
    padding: 15px 20px;
    transition: all 0.2s;
}
.list-group-item:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
    padding-left: 25px;
    border-left: 4px solid var(--accent-color);
}

/* Footer Links & Styles */
.footer-link {
    color: rgba(255,255,255,0.7);
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.95rem;
}
.footer-link i {
    transition: transform 0.3s ease;
    opacity: 0.7;
}
.footer-link:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}
.footer-link:hover i {
    opacity: 1;
    transform: translateX(3px); /* Double movement for depth */
}

/* Social Icons in Footer */
.social-icon {
    width: 40px; 
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.social-icon:hover::before {
    left: 100%;
}

.social-icon:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(220, 119, 119, 0.4);
}

/* Specific social media brand colors on hover */
.social-icon:hover .fa-facebook-f {
    color: #1877f2;
}

.social-icon:hover .fa-telegram {
    color: #0088cc;
}

.social-icon:hover .fa-instagram {
    color: #e4405f;
}

.social-icon:hover .fa-linkedin {
    color: #0077b5;
}

.social-icon:hover .fa-whatsapp {
    color: #25d366;
}

/* Add subtle glow effect to indicate interactivity */
.social-icon:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(220, 119, 119, 0.3);
}

/* Contact Page Social Icons */
.contact-social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.contact-social-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.contact-social-icon:hover::after {
    width: 100%;
    height: 100%;
}

.contact-social-icon:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.contact-social-icon i {
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.contact-social-icon:hover i {
    transform: scale(1.2);
}

/* Hover Lift Effect */
.hover-lift {
    transition: transform 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-5px);
}

/* Mobile Responsive Improvements for Product Cards */
@media (max-width: 576px) {
    .product-card .card-body {
        padding: 0.75rem !important;
    }
    
    .product-card .card-title {
        font-size: 0.9rem !important;
        line-height: 1.3 !important;
        min-height: 2.6rem !important;
    }
    
    .product-card .card-text {
        font-size: 1rem !important;
    }
    
    .product-card .btn {
        font-size: 0.8rem !important;
        padding: 0.4rem 0.8rem !important;
    }
    
    .rental-card .card-body {
        padding: 0.75rem !important;
    }
    
    .rental-card .card-title {
        font-size: 0.9rem !important;
        line-height: 1.3 !important;
        min-height: 2.6rem !important;
    }
    
    .rental-card .card-text {
        font-size: 1rem !important;
    }
    
    .rental-card .btn {
        font-size: 0.8rem !important;
        padding: 0.4rem 0.8rem !important;
    }
    
    /* Adjust image height for mobile */
    .product-img-wrapper {
        height: 180px !important;
    }
    
    /* Smaller badges on mobile */
    .badge {
        font-size: 0.65rem !important;
        padding: 0.25rem 0.5rem !important;
    }
    
    /* Adjust quick info overlay */
    .quick-info {
        padding: 0.5rem !important;
        font-size: 0.7rem !important;
    }
    
    /* Smaller action buttons */
    .action-buttons .btn {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.8rem !important;
    }
    
    /* Improve spacing between cards */
    .row.g-4 {
        --bs-gutter-x: 0.75rem;
        --bs-gutter-y: 0.75rem;
    }
    
    /* Ensure cards don't get too cramped */
    .col-6 {
        padding-left: 0.375rem;
        padding-right: 0.375rem;
    }
}

/* Tablet responsive improvements */
@media (min-width: 577px) and (max-width: 768px) {
    .product-card .card-body {
        padding: 1rem !important;
    }
    
    .rental-card .card-body {
        padding: 1rem !important;
    }
    
    .product-img-wrapper {
        height: 200px !important;
    }
}

/* Enhanced Link Interactions */
a[href^="tel:"]:hover,
a[href^="mailto:"]:hover {
    color: var(--accent-color) !important;
    text-decoration: underline !important;
}

/* Social Icon Pulse Animation */
@keyframes social-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.social-icon:hover {
    animation: social-pulse 0.6s ease-in-out;
}

/* Contact Social Icon Ripple Effect */
@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

.contact-social-icon:active::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: ripple 0.6s linear;
}