/* Multipurpose business CMS custom styling */

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Custom modern variables */
:root {
    --transition-speed: 0.3s;
    --primary-color: #0d6efd;
}

/* Base custom classes */
.hover-light:hover {
    color: #fff !important;
}

/* Custom buttons and actions */
.btn-primary {
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(var(--primary-rgb), 0.2), 0 2px 4px -2px rgba(var(--primary-rgb), 0.2);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(var(--primary-rgb), 0.3), 0 4px 6px -4px rgba(var(--primary-rgb), 0.3);
}

/* Cards shadow and hover transition */
.card {
    transition: transform var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0,0,0,0.03);
}
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
}

/* Carousel Caption Styling */
.carousel-item {
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.carousel-control-prev, .carousel-control-next {
    width: 5%;
}
.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-left: 6px;
    margin-right: 6px;
    background-color: #fff;
    opacity: 0.5;
    transition: all 0.3s ease;
}
.carousel-indicators .active {
    width: 28px;
    border-radius: 6px;
    opacity: 1;
    background-color: var(--primary-color, #3b82f6);
}

/* Nav links highlight effect */
.navbar-nav .nav-link {
    position: relative;
    font-weight: 500;
    transition: color 0.3s ease;
}
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
}

/* Admin Panel Enhancements */
.sidebar .nav-link {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.sidebar .nav-link:hover {
    padding-left: 1.50rem;
}
.admin-card {
    transition: none !important;
    transform: none !important;
}
.admin-card:hover {
    transform: none !important;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1) !important;
}

/* Photo cropping box visual optimization */
.img-container {
    background-color: #f8f9fa;
    border: 2px dashed #cbd5e1;
    border-radius: 0.5rem;
}

/* Accordion Custom Styling */
.accordion-button:not(.collapsed) {
    color: var(--primary-color);
    background-color: rgba(var(--primary-rgb), 0.05);
    box-shadow: inset 0 -1px 0 rgba(0,0,0,.125);
}
.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(var(--primary-rgb), 0.1);
}

/* Modern Form input controls */
.form-floating > .form-control:focus {
    background-color: #fff !important;
    border: 1.5px solid var(--primary-color) !important;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.08) !important;
}

/* Services section specific card hover icon */
.card:hover .bg-primary {
    background-color: var(--primary-color) !important;
    color: #fff !important;
    transform: scale(1.1) rotate(5deg);
}

/* Testimonial rating stars bounce on load */
.fa-star {
    animation: starPulse 2s infinite ease-in-out;
}
@keyframes starPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Floating WhatsApp Widget Styling */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
}
.whatsapp-float:hover {
    background-color: #128c7e;
    color: #fff;
    transform: scale(1.1);
}
.whatsapp-float .my-float {
    font-size: 32px;
}

/* Subtle continuous pulsing wave animation */
.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #25d366;
    opacity: 0.7;
    z-index: -1;
    animation: waPulse 2s infinite;
}
@keyframes waPulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* Mobile responsive adjustments */
@media (max-width: 575.98px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-float .my-float {
        font-size: 26px;
    }
}

/* Gallery section custom hovers */
.gallery-item:hover img {
    transform: scale(1.1);
}
.gallery-item:hover .gallery-overlay {
    opacity: 1 !important;
}
