/* ====================================================================
   Alibaba Color Scheme - China Sourcing
   Orange/Red theme inspired by Alibaba.com
   ==================================================================== */

/* ==================== Alibaba Color Variables ==================== */
:root {
    /* Primary Alibaba Orange */
    --alibaba-primary: rgb(214, 64, 0);
    --alibaba-primary-dark: rgb(184, 54, 0);
    --alibaba-primary-light: rgb(255, 87, 34);
    --alibaba-primary-lighter: rgb(255, 112, 67);

    /* Secondary Orange */
    --alibaba-secondary: rgb(255, 106, 0);
    --alibaba-accent: rgb(255, 152, 0);

    /* Gradients */
    --alibaba-gradient: linear-gradient(135deg, rgb(214, 64, 0) 0%, rgb(255, 87, 34) 100%);
    --alibaba-gradient-reverse: linear-gradient(135deg, rgb(255, 87, 34) 0%, rgb(214, 64, 0) 100%);

    /* Override primary colors */
    --primary: rgb(214, 64, 0);
    --primary-dark: rgb(184, 54, 0);
    --primary-light: rgb(255, 87, 34);
}

/* ==================== Navbar Brand Hover Effect ==================== */
.navbar-brand,
.navbar-brand-2 {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0.75rem;
    padding: 1rem 1.5rem !important;
}

/* Effet de fond au hover */
.navbar-brand::before,
.navbar-brand-2::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--alibaba-gradient);
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
    border-radius: 0.75rem;
}

.navbar-brand:hover::before,
.navbar-brand-2:hover::before {
    left: 0;
}

/* Texte et icône au hover */
.navbar-brand:hover,
.navbar-brand-2:hover {
    color: rgb(255, 255, 255) !important;
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(214, 64, 0, 0.35);
}

.navbar-brand:hover h2,
.navbar-brand-2:hover h2 {
    color: rgb(255, 255, 255) !important;
}

.navbar-brand:hover i,
.navbar-brand-2:hover i {
    color: rgb(255, 255, 255) !important;
    background: transparent;
    -webkit-text-fill-color: rgb(255, 255, 255);
    transform: rotate(360deg) scale(1.1);
    filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.3));
}

.navbar-brand h2,
.navbar-brand-2 h2 {
    margin: 0;
    transition: color 0.4s ease;
    position: relative;
    z-index: 1;
}

.navbar-brand i,
.navbar-brand-2 i {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

/* ==================== Primary Buttons - Alibaba Style ==================== */
.btn-primary {
    background: var(--alibaba-gradient) !important;
    border: none !important;
    color: rgb(255, 255, 255) !important;
    box-shadow: 0 4px 14px rgba(214, 64, 0, 0.3) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
    background: var(--alibaba-gradient-reverse) !important;
    box-shadow: 0 8px 24px rgba(214, 64, 0, 0.45) !important;
    transform: translateY(-3px);
}

.btn-primary:active {
    transform: translateY(-1px);
}

/* ==================== Text Primary Color ==================== */
.text-primary {
    color: rgb(214, 64, 0) !important;
}

.text-primary.text-uppercase {
    background: var(--alibaba-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==================== Navigation Links ==================== */
.navbar-nav .nav-link:hover {
    color: rgb(214, 64, 0) !important;
}

.navbar-nav .nav-link.active {
    color: rgb(214, 64, 0) !important;
}

.navbar-nav .nav-link::before {
    background: var(--alibaba-gradient) !important;
}

/* ==================== Dropdown Items ==================== */
.dropdown-item:hover {
    background: var(--alibaba-gradient) !important;
}

.dropdown-item.active {
    background: var(--alibaba-gradient) !important;
}

/* ==================== Hero Section ==================== */
.hero-header::before {
    background: linear-gradient(
        135deg,
        rgba(214, 64, 0, 0.85) 0%,
        rgba(255, 87, 34, 0.75) 50%,
        rgba(214, 64, 0, 0.85) 100%
    ) !important;
}

/* ==================== Service Items ==================== */
.service-item::before {
    background: var(--alibaba-gradient) !important;
}

.service-item .fa-4x {
    color: rgb(214, 64, 0) !important;
}

.service-item:hover h4 {
    color: rgb(214, 64, 0) !important;
}

/* ==================== Product Cards ==================== */
.product-item::before {
    background: linear-gradient(135deg, rgba(214, 64, 0, 0.05) 0%, rgba(255, 87, 34, 0.02) 100%) !important;
}

.product-item:hover::after {
    box-shadow: 0 30px 60px -12px rgba(214, 64, 0, 0.3) !important;
}

.product-overlay {
    background: var(--alibaba-gradient) !important;
}

.product-item:hover h5 {
    color: rgb(214, 64, 0) !important;
}

/* ==================== Blog Items ==================== */
.blog-item:hover h4 {
    color: rgb(214, 64, 0) !important;
}

.blog-item .text-uppercase {
    color: rgb(214, 64, 0) !important;
}

/* ==================== Process Timeline ==================== */
.bg-primary.rounded-circle {
    background: var(--alibaba-gradient) !important;
    box-shadow: 0 8px 20px rgba(214, 64, 0, 0.35) !important;
}

/* ==================== Social Icons ==================== */
.btn-sm-square:hover {
    background: rgb(214, 64, 0) !important;
    border-color: rgb(214, 64, 0) !important;
    box-shadow: 0 4px 12px rgba(214, 64, 0, 0.35) !important;
}

.footer .btn-outline-light:hover,
.footer .btn-social:hover {
    background: rgb(214, 64, 0) !important;
    border-color: rgb(214, 64, 0) !important;
    box-shadow: 0 8px 20px rgba(214, 64, 0, 0.4) !important;
}

/* ==================== Back to Top ==================== */
.back-to-top {
    background: var(--alibaba-gradient) !important;
    box-shadow: 0 8px 20px rgba(214, 64, 0, 0.35) !important;
}

.back-to-top:hover {
    box-shadow: 0 12px 30px rgba(214, 64, 0, 0.5) !important;
}

/* ==================== Testimonials ==================== */
.testimonial-item:hover {
    border-color: rgb(214, 64, 0) !important;
}

.testimonial-item img {
    border-color: rgb(214, 64, 0) !important;
}

.testimonial-item:hover img {
    box-shadow: 0 8px 20px rgba(214, 64, 0, 0.35) !important;
}

/* ==================== Form Focus ==================== */
.form-control:focus,
.form-select:focus {
    border-color: rgb(214, 64, 0) !important;
    box-shadow: 0 0 0 4px rgba(214, 64, 0, 0.15) !important;
}

/* ==================== Footer Links ==================== */
.footer .btn-link:hover {
    color: rgb(255, 87, 34) !important;
}

.footer::before {
    background: linear-gradient(90deg, transparent 0%, rgb(214, 64, 0) 50%, transparent 100%) !important;
}

.footer h4::after {
    background: var(--alibaba-gradient) !important;
}

/* ==================== Copyright ==================== */
.copyright a {
    color: rgb(214, 64, 0) !important;
}

.copyright a:hover {
    color: rgb(255, 87, 34) !important;
}

/* ==================== Scroll Progress Bar ==================== */
.scroll-progress {
    background: var(--alibaba-gradient) !important;
}

/* ==================== Loading Spinner ==================== */
#spinner .spinner-grow {
    background: var(--alibaba-gradient) !important;
    box-shadow: 0 4px 12px rgba(214, 64, 0, 0.35) !important;
}

/* ==================== Topbar Icons ==================== */
.container-fluid.bg-light .fa,
.container-fluid.bg-light .far {
    color: rgb(214, 64, 0) !important;
}

/* ==================== Accent Elements ==================== */
.text-warning {
    color: rgb(255, 152, 0) !important;
}

/* Star ratings */
.fa-star {
    color: rgb(255, 152, 0) !important;
}

/* ==================== Hover Effects Enhancement ==================== */
.product-item:hover,
.service-item:hover,
.blog-item:hover {
    border-color: rgba(214, 64, 0, 0.3) !important;
}

/* ==================== Navbar CTA Button ==================== */
.navbar .btn-primary i {
    color: rgb(255, 255, 255) !important;
}

/* ==================== Additional Alibaba-style Effects ==================== */

/* Pulsing effect for important CTAs */
@keyframes alibaba-pulse {
    0%, 100% {
        box-shadow: 0 4px 14px rgba(214, 64, 0, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(214, 64, 0, 0.5);
    }
}

.hero-header .btn-light:hover {
    animation: alibaba-pulse 2s ease-in-out infinite;
}

/* Gradient text for headings */
h1.display-3,
h1.mb-4,
h1.mb-5 {
    background: linear-gradient(135deg, #1F2937 0%, rgb(214, 64, 0) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Section titles */
.section-title h1,
.text-center h1 {
    position: relative;
    display: inline-block;
}

.section-title h1::after,
.text-center h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--alibaba-gradient);
    border-radius: 3px;
}

/* ==================== Mobile Optimizations ==================== */
@media (max-width: 991px) {
    .navbar-brand,
    .navbar-brand-2 {
        padding: 0.75rem 1rem !important;
    }

    .navbar-brand:hover,
    .navbar-brand-2:hover {
        transform: scale(1.02);
    }
}

/* ==================== Accessibility ==================== */
.navbar-brand:focus,
.navbar-brand-2:focus,
.btn-primary:focus {
    outline: 3px solid rgb(214, 64, 0);
    outline-offset: 2px;
}

/* ==================== Print Styles ==================== */
@media print {
    .navbar-brand:hover::before,
    .btn-primary,
    .product-overlay {
        background: rgb(214, 64, 0) !important;
    }
}
