/* -------------------------------------------------------------
   DESIGN SYSTEM & MODERN STYLING FOR MÃ VẠCH BÌNH DƯƠNG
   ------------------------------------------------------------- */

/* Root Custom Properties for Premium Theme Colors & Fonts */
:root {
    --primary-color: #0d6efd;
    --primary-light: rgba(13, 110, 253, 0.1);
    --secondary-color: #1e293b;
    --accent-color: #f59e0b;
    --accent-light: rgba(245, 158, 11, 0.1);
    --success-color: #10b981;
    --dark-bg: #0f172a;
    --light-bg: #f8fafc;
    --white: #ffffff;
    --border-color: #e2e8f0;
    --text-main: #334155;
    --text-muted: #64748b;
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles & Typography */
body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--light-bg);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .font-outfit {
    font-family: var(--font-heading);
    color: var(--secondary-color);
}

/* Header & Brand styling */
.top-header {
    background-color: #f8fafc !important;
    font-size: 0.85rem;
    font-weight: 500;
}

.top-header a:hover {
    color: var(--primary-color) !important;
}

.main-header {
    background: linear-gradient(to right, #ffffff, #f8fafc);
    border-bottom: 1px solid var(--border-color);
}

.brand-logo {
    text-decoration: none;
    transition: var(--transition-smooth);
}

.brand-logo:hover {
    transform: scale(1.02);
}

.logo-icon {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pulseIcon 3s infinite alternate;
}

.logo-text {
    line-height: 1.2;
}

.logo-text span:first-child {
    letter-spacing: 1px;
    font-size: 1.35rem;
    background: linear-gradient(to right, var(--secondary-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-text span:last-child {
    letter-spacing: 3px;
}

/* Premium Search Bar */
.search-form input {
    border: 2px solid var(--border-color);
    transition: var(--transition-smooth);
}

.search-form input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.15);
}

.search-form button {
    background: linear-gradient(135deg, var(--primary-color), #0b5ed7);
    border: none;
    transition: var(--transition-smooth);
}

.search-form button:hover {
    background: linear-gradient(135deg, #0b5ed7, #0a58ca);
    transform: scale(1.03);
}

/* Hotline Button Hover */
.hotline-btn {
    transition: var(--transition-smooth);
}

.hotline-btn:hover {
    transform: translateY(-2px);
}

.bg-primary-light {
    background-color: var(--primary-light);
    width: 45px;
    height: 45px;
    transition: var(--transition-smooth);
}

.hotline-btn:hover .bg-primary-light {
    background-color: var(--primary-color);
    color: var(--white) !important;
}

/* Sticky & Navbar Customization */
.sticky-top {
    backdrop-filter: blur(12px);
    background-color: rgba(15, 23, 42, 0.9) !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
}

.navbar-nav .nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 1.25rem 1.1rem !important;
    color: rgba(241, 245, 249, 0.85) !important;
    transition: var(--transition-smooth);
    border-bottom: 3px solid transparent;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--white) !important;
    border-bottom-color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.04);
}

/* Dropdown Menu Upgrades */
.dropdown-menu {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px !important;
    animation: slideDown 0.3s ease-out;
}

.dropdown-item {
    font-weight: 550;
    color: var(--secondary-color);
    transition: var(--transition-smooth);
}

.dropdown-item:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
    transform: translateX(6px);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Slideshow Banner */
.hero-slideshow {
    position: relative;
    overflow: hidden;
}

.slide-item {
    background-size: cover;
    background-position: center;
    min-height: 80vh;
    display: flex !important;
    align-items: center;
}

.slide-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.65);
    z-index: 1;
}

.slide-item .container {
    position: relative;
    z-index: 2;
}

/* Section Title Style */
.section-title-wrapper .title-underline {
    width: 60px;
    height: 4px;
    border-radius: 2px;
}

/* Section 1: Features */
.feature-card {
    background: var(--white);
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color) !important;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-light);
    color: var(--primary-color);
    transition: var(--transition-smooth);
}

.feature-card:hover .feature-icon {
    background-color: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

/* Section 2: Products Grid with Zoom Effect */
.bg-light-gradient {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.product-card {
    transition: var(--transition-smooth);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
}

.product-img-wrapper {
    position: relative;
    height: 250px;
}

.product-img {
    height: 100%;
    transition: var(--transition-smooth);
}

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

/* Section 3: News Cards */
.news-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05) !important;
}

.news-img-wrapper {
    height: 230px;
    position: relative;
}

.news-img {
    height: 100%;
    transition: var(--transition-smooth);
}

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

/* Section 4: Partners Slider */
.partner-box {
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    cursor: pointer;
}

.partner-box:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.partner-logo-img {
    max-height: 45px;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.65;
    transition: var(--transition-smooth);
}

.partner-box:hover .partner-logo-img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* Section: Typical Customers */
.client-logo-card {
    border: 1px solid var(--border-color) !important;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.client-logo-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.client-logo-img {
    max-height: 45px;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.65;
    transition: var(--transition-smooth);
}

.client-logo-card:hover .client-logo-img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* Footer Styling */
footer {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%) !important;
    border-top: 4px solid var(--primary-color);
}

.footer-brand {
    font-family: var(--font-heading);
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links li a {
    color: #94a3b8 !important;
    font-weight: 500;
    transition: var(--transition-smooth);
    display: inline-block;
}

.footer-links li a:hover {
    color: var(--white) !important;
    transform: translateX(6px);
}

.social-icons a {
    transition: var(--transition-smooth);
    border-color: rgba(255,255,255,0.15) !important;
}

.social-icons a:hover {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    transform: translateY(-3px) scale(1.1);
}

.map-placeholder {
    border: 3px solid rgba(255,255,255,0.05);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.3);
    transition: var(--transition-smooth);
}

.map-placeholder:hover {
    border-color: var(--primary-color);
}

/* Responsive Navigation Sidebar Drawer */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    z-index: 1050;
    transition: var(--transition-smooth);
    box-shadow: -5px 0 15px rgba(0,0,0,0.2);
}

.mobile-sidebar.open {
    right: 0;
}

.mobile-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1040;
    display: none;
    transition: var(--transition-smooth);
}

.mobile-sidebar-overlay.show {
    display: block;
}

/* Floating Action Widgets (Hotline & Zalo) */
.floating-widgets {
    bottom: 2rem !important;
    right: 2rem !important;
}

.widget-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.widget-btn:hover {
    transform: scale(1.1) rotate(5deg);
}

.zalo-btn {
    background-color: #0068ff;
    color: white;
}

.phone-btn {
    background-color: #ef4444;
    color: white;
}

/* Slide widget labels */
.widget-label {
    position: absolute;
    right: 70px;
    opacity: 0;
    transform: translateX(10px);
    white-space: nowrap;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.widget-btn:hover .widget-label {
    opacity: 1;
    transform: translateX(0);
}

/* Pulse Rings Animations for Widgets */
.pulse-ring, .pulse-ring-phone {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    z-index: -1;
}

.pulse-ring {
    border: 3px solid #0068ff;
    animation: pulseRing 1.5s infinite ease-out;
}

.pulse-ring-phone {
    border: 3px solid #ef4444;
    animation: pulseRing 1.5s infinite ease-out 0.3s;
}

/* Custom Search Enhancements */
.py-2-5 {
    padding-top: 0.65rem !important;
    padding-bottom: 0.65rem !important;
}

.bg-primary-light {
    background-color: var(--primary-light);
}

/* Animations Keyframes */
@keyframes pulseRing {
    0% {
        transform: scale(0.95);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes pulseIcon {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.15);
    }
}

/* Performance optimizations: Will-change properties */
.product-card, .feature-card, .widget-btn {
    will-change: transform, box-shadow;
}

/* Media Queries for Responsive adjustments */
@media (max-width: 991.98px) {
    .slide-item {
        min-height: 50vh;
    }
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
        border-bottom: none;
    }
    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active {
        border-left: 3px solid var(--primary-color);
        background-color: rgba(255, 255, 255, 0.05);
    }
}

/* Custom Slick Slider Dots */
.slick-dots {
    bottom: -35px !important;
}

.slick-dots li button:before {
    color: var(--primary-color) !important;
    font-size: 10px !important;
    opacity: 0.35 !important;
    transition: var(--transition-smooth);
}

.slick-dots li.slick-active button:before {
    color: var(--primary-color) !important;
    font-size: 12px !important;
    opacity: 1 !important;
}

/* Product Detail Page Gallery Thumbnails */
.thumb-box {
    transition: var(--transition-smooth);
    border-width: 2px !important;
    border-color: var(--border-color) !important;
    cursor: pointer;
}

.thumb-box:hover,
.thumb-box.active {
    border-color: var(--primary-color) !important;
}

/* Custom scrollbar for horizontal scrolling thumbnail track */
.custom-scrollbar::-webkit-scrollbar {
    height: 5px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Custom Spec Table Styling for Premium Look */
.spec-table tbody tr {
    transition: var(--transition-smooth);
}

.spec-table tbody tr:nth-of-type(odd) {
    background-color: #f8fafc;
}

.spec-table tbody tr:hover {
    background-color: var(--primary-light);
}

.spec-label {
    border-right: 1px solid var(--border-color);
    font-family: var(--font-heading);
}

.spec-label i {
    font-size: 1.1rem;
}

/* Hover Dropdown Menu on Desktop (992px and above) */
@media (min-width: 992px) {
    .navbar-nav .nav-item.dropdown:hover .dropdown-menu {
        display: block !important;
        margin-top: 0;
    }
}
