:root {
    --primary: #8B1A0E;
    --primary-dark: #6B1008;
    --accent-blue: #1147ce;
    --accent-blue-light: #1a5ae6;
    --secondary: #2C2C2C;
    --light-bg: #F8F5F2;
    --text-dark: #1a1a1a;
    --text-muted: #6c757d;
}

body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; color: var(--text-dark); }

.bg-primary-custom { background-color: var(--primary) !important; }
.text-primary-custom { color: var(--primary) !important; }

.btn-primary-custom {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s;
}
.btn-primary-custom:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
}
.btn-outline-custom {
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 10px 26px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s;
    background: transparent;
}
.btn-outline-custom:hover {
    background-color: var(--primary);
    color: #fff;
}

.header-top {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary) 85%, var(--accent-blue) 100%);
    color: #fff;
    padding: 8px 0;
    font-size: 0.85rem;
}
.header-top a { color: #fff; text-decoration: none; margin-right: 20px; }
.header-top a:hover { color: #a8d4ff; }
.header-top .social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-left: 6px;
    transition: background 0.3s;
}
.header-top .social-icons a:hover { background: var(--accent-blue); }

.navbar-custom {
    background: #fff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    padding: 12px 0;
}
.navbar-custom .navbar-brand img { height: 50px; }
.navbar-custom .nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    padding: 8px 16px !important;
    transition: color 0.3s;
    position: relative;
}
.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active { color: var(--primary) !important; }
.navbar-custom .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-blue);
    transition: all 0.3s;
    transform: translateX(-50%);
}
.navbar-custom .nav-link:hover::after,
.navbar-custom .nav-link.active::after { width: 60%; }
.navbar-toggler { border: none; }
.navbar-toggler:focus { box-shadow: none; }

.hero-carousel .carousel-item {
    height: 85vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.hero-carousel .carousel-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}
.hero-carousel .carousel-caption {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    text-align: left;
    left: 10%;
    right: 40%;
    z-index: 2;
}
.hero-carousel .carousel-caption h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.2;
}
.hero-carousel .carousel-caption p {
    color: rgba(255,255,255,0.85);
    font-size: 1.1rem;
    margin-bottom: 30px;
}
.hero-carousel .carousel-indicators [data-bs-target] {
    background-color: var(--accent-blue);
}
.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon {
    background-color: var(--accent-blue);
    border-radius: 50%;
    padding: 20px;
}

.marquee-bar {
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary) 80%, var(--accent-blue) 100%);
    color: #fff;
    padding: 12px 0;
    overflow: hidden;
}
.marquee-bar .marquee-content {
    display: flex;
    gap: 40px;
    animation: marquee 20s linear infinite;
    white-space: nowrap;
}
.marquee-bar .marquee-content span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 1rem;
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}
.section-title h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}
.section-title p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}
.section-title .title-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 60%, var(--accent-blue) 100%);
    margin: 15px auto;
}

.what-special { padding: 80px 0; }
.what-special .carousel-img {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(17, 71, 206, 0.12);
    border: 3px solid var(--accent-blue);
}
.what-special .carousel-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.what-special .progress {
    height: 8px;
    border-radius: 4px;
    background: #eee;
    margin-bottom: 20px;
}
.what-special .progress-bar {
    background: linear-gradient(90deg, var(--accent-blue) 0%, var(--accent-blue-light) 100%);
    border-radius: 4px;
}
.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: 500;
}

.features-section {
    background: linear-gradient(180deg, var(--light-bg) 0%, #eef1f8 100%);
    padding: 60px 0;
}
.feature-card {
    text-align: center;
    padding: 30px 20px;
    background: #fff;
    border-radius: 12px;
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 20px;
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(17, 71, 206, 0.12);
    border-bottom: 3px solid var(--accent-blue);
}
.feature-card img {
    height: 60px;
    margin-bottom: 15px;
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
}
.feature-card h5 {
    font-weight: 600;
    margin: 0;
    color: var(--text-dark);
}
.feature-card h5 a { color: inherit; text-decoration: none; }
.feature-card h5 a:hover { color: var(--primary); }

.projects-section { padding: 80px 0; }
.project-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(17, 71, 206, 0.08);
    transition: box-shadow 0.3s;
}
.project-card:hover { box-shadow: 0 10px 30px rgba(17, 71, 206, 0.15); }
.project-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.5s;
}
.project-card:hover img { transform: scale(1.05); }
.project-card .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    background: linear-gradient(transparent, rgba(17, 71, 206, 0.7));
    color: #fff;
}
.project-card .overlay h5 { margin-bottom: 5px; font-weight: 600; }
.project-card .overlay p { margin: 0; opacity: 0.8; font-size: 0.9rem; }

.counter-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 70%, var(--accent-blue) 100%);
    color: #fff;
    padding: 60px 0;
}
.counter-item { text-align: center; padding: 20px; }
.counter-item i { font-size: 2.5rem; margin-bottom: 15px; color: var(--accent-blue); opacity: 0.9; }
.counter-item h3 { font-size: 2.5rem; font-weight: 700; margin-bottom: 5px; }
.counter-item h4 { font-size: 1rem; font-weight: 400; opacity: 0.9; margin: 0; }

.video-section {
    background: url('/assets/images/Banner-Site.png') center/cover no-repeat;
    position: relative;
    padding: 100px 0;
}
.video-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(139, 26, 14, 0.85) 0%, rgba(17, 71, 206, 0.7) 100%);
}
.video-section .video-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
}
.video-section .play-btn {
    width: 80px;
    height: 80px;
    background: var(--accent-blue);
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
    transition: transform 0.3s, background 0.3s;
    text-decoration: none;
}
.video-section .play-btn:hover { transform: scale(1.1); background: var(--accent-blue-light); color: #fff; }
.video-section h3 { font-size: 1.5rem; font-weight: 600; }

.brands-section { padding: 60px 0; background: linear-gradient(180deg, var(--light-bg) 0%, #eef1f8 100%); }
.brand-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0.6;
    transition: opacity 0.3s, transform 0.3s;
}
.brand-item:hover { opacity: 1; transform: scale(1.05); }
.brand-item img { max-height: 50px; }

.skills-section { padding: 80px 0; }
.skills-section .skill-img {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(17, 71, 206, 0.15);
    border: 3px solid var(--accent-blue);
}
.skills-section .skill-img img { width: 100%; }
.skills-section .progress {
    height: 10px;
    border-radius: 5px;
    background: #eee;
    margin-bottom: 20px;
}
.skills-section .progress-bar {
    background: linear-gradient(90deg, var(--accent-blue) 0%, var(--accent-blue-light) 100%);
    border-radius: 5px;
}

.why-section { padding: 80px 0; background: linear-gradient(180deg, var(--light-bg) 0%, #e8edf7 100%); }
.why-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}
.why-card:hover { transform: translateY(-5px); border-top: 3px solid var(--accent-blue); }
.why-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    transition: color 0.3s;
}
.why-card:hover i { color: var(--accent-blue); }
.why-card h5 { font-weight: 600; margin-bottom: 10px; }
.why-card h5 a { color: var(--text-dark); text-decoration: none; }
.why-card h5 a:hover { color: var(--primary); }
.why-card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 15px; }
.why-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
}

.testimonials-section { padding: 80px 0; }
.testimonial-card {
    background: #fff;
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.06);
    margin-bottom: 30px;
    position: relative;
    border-left: 4px solid var(--accent-blue);
}
.testimonial-card .stars { color: #f5a623; margin-bottom: 15px; }
.testimonial-card .stars i { margin-right: 3px; }
.testimonial-card p {
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.7;
}
.testimonial-card .client {
    display: flex;
    align-items: center;
    gap: 15px;
}
.testimonial-card .client img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
}
.testimonial-card .client h5 { margin: 0; font-weight: 600; font-size: 1rem; }
.testimonial-card .client span { color: var(--accent-blue); font-size: 0.85rem; }

.cta-section {
    background: linear-gradient(135deg, var(--secondary) 0%, #1a2a4a 100%);
    padding: 50px 0;
    color: #fff;
}
.cta-section h2 { font-weight: 700; margin: 0; }
.cta-section .btn {
    background: var(--accent-blue);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
}
.cta-section .btn:hover { background: var(--accent-blue-light); }

.contact-form-card {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
}

.footer-top {
    background: var(--secondary);
    color: #fff;
    padding: 60px 0 40px;
    text-align: center;
}
.footer-top img { height: 60px; margin-bottom: 20px; }
.footer-top p { opacity: 0.7; max-width: 600px; margin: 0 auto 25px; }
.footer-top .social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    color: #fff;
    margin: 0 5px;
    transition: all 0.3s;
    text-decoration: none;
}
.footer-top .social-icons a:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
}
.footer-bottom {
    background: #1a1a1a;
    color: rgba(255,255,255,0.6);
    padding: 20px 0;
    font-size: 0.85rem;
}
.footer-bottom a { color: rgba(255,255,255,0.6); text-decoration: none; }
.footer-bottom a:hover { color: var(--accent-blue); }
.footer-bottom ul { list-style: none; padding: 0; margin: 0; }
.footer-bottom ul li { display: inline-block; margin-left: 20px; }

/* Products Page */
.promotion-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #fff 0%, var(--light-bg) 100%);
}
.products-page .product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}
.products-page .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(17, 71, 206, 0.15);
}
.products-page .product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
}
.products-page .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.products-page .product-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #ccc;
}
.products-page .product-type-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent-blue);
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}
.products-page .sale-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary);
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}
.products-page .product-info {
    padding: 20px;
}
.products-page .product-info h5 {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-dark);
}
.products-page .product-brand {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 8px;
}
.products-page .product-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 15px;
}
.products-page .product-footer {
    display: flex;
    align-items: baseline;
    gap: 5px;
    flex-wrap: wrap;
}
.products-page .product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}
.products-page .product-price-muted {
    color: var(--text-muted);
}
.products-page .product-old-price {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-decoration: line-through;
}
.products-page .product-unit {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Quotation Page */
.quotation-form-card {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
}
.quotation-form-card h4 {
    color: var(--primary);
    border-bottom: 2px solid var(--light-bg);
    padding-bottom: 10px;
}
.quotation-page .select2-container--default .select2-selection--single {
    height: 38px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
}
.quotation-page .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 36px;
    color: #212529;
    padding-left: 12px;
}
.quotation-page .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #6c757d;
}
.quotation-page .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
}
.select2-container--open {
    z-index: 1060;
}

@media (max-width: 991px) {
    .hero-carousel .carousel-caption {
        left: 5%;
        right: 5%;
        text-align: center;
    }
    .hero-carousel .carousel-caption h1 { font-size: 2rem; }
    .hero-carousel .carousel-item { height: 60vh; min-height: 400px; }
}
@media (max-width: 767px) {
    .hero-carousel .carousel-caption h1 { font-size: 1.6rem; }
    .section-title h2 { font-size: 1.6rem; }
}
