:root {
    --bg-dark: #000000;
    --text-dark: #f5f5f7;
    --bg-light: #f5f5f7;
    --text-light: #1d1d1f;
    --link-color: #2997ff;
    --link-hover: #0077ed;
    --btn-primary: #ffffff;
    --btn-primary-text: #000000;
    --nav-bg: rgba(0, 0, 0, 0.8);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: var(--link-color);
}

a:hover {
    text-decoration: underline;
}


/* Floating Container */
.floating-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
}

.floating-btn {
    background-color: #0071e3;
    color: #fff;
    padding: 12px 20px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 20px rgba(0, 113, 227, 0.3);
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: pulse 2s infinite;
}

.floating-social-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.floating-social-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.floating-social-icon[data-name="Facebook"] { background-color: #1877f2; }
.floating-social-icon[data-name="Zalo"] { background-color: #0068ff; }
.floating-social-icon[data-name="YouTube"] { background-color: #ff0000; }
.floating-social-icon[data-name="TikTok"] { background-color: #000000; }



.floating-btn:hover {
    text-decoration: none;
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 113, 227, 0.4);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: var(--nav-bg);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.nav-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 20px;
}

.logo {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}
.logo:hover {
    text-decoration: none;
    color: #fff;
}

.nav-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    border-radius: 50%; /* if it's a square logo, make it look nice */
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: #d1d1d6;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 24px;
}

.nav-links li a {
    color: #d1d1d6;
    font-size: 12px;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: #fff;
    text-decoration: none;
}

/* Main Banner (Factory) */
.main-banner {
    height: 100vh;
    min-height: 600px;
    background-image: url('assets/factory_hero.png');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 60px;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Giảm hẳn lớp phủ, để cho ảnh nền hiện rõ */
    background-color: rgba(0, 0, 0, 0.15);
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 60px 40px;
    /* Khối kính mờ (Glassmorphism) cực kỳ sang trọng bọc lấy chữ */
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: saturate(180%) blur(25px);
    -webkit-backdrop-filter: saturate(180%) blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    box-shadow: 0 40px 80px rgba(0,0,0,0.5);
    animation: fadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.banner-content h1 {
    font-size: clamp(20px, 7vw, 68px);
    white-space: nowrap;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    color: #fff;
}

.banner-content h2 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 24px;
    color: #f5f5f7;
    letter-spacing: -0.01em;
}

.banner-content p {
    font-size: 19px;
    color: #e5e5ea;
    margin-bottom: 40px;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    font-weight: 400;
}

.btn-secondary-light {
    color: #fff;
    font-size: 17px;
    font-weight: 500;
    background-color: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 14px 26px;
    border-radius: 980px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    white-space: nowrap;
}

.btn-secondary-light:hover {
    text-decoration: none;
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* Hero Sections */
#hero-products-container {
    scroll-margin-top: 60px;
}

.hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-dark {
    background-color: var(--bg-dark);
}

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

.hero-text {
    z-index: 10;
    max-width: 800px;
    padding: 0 20px;
}

.hero-text.text-black h1,
.hero-text.text-black h2 {
    color: var(--text-light);
}

.hero h1 {
    font-size: 56px;
    font-weight: 600;
    letter-spacing: -0.005em;
    margin-bottom: 6px;
}

.hero h2 {
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 14px;
}

.hero-price {
    font-size: 17px;
    color: #86868b;
    margin-top: 14px;
}

.hero-links {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 14px;
    align-items: center;
}

.banner-links {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.btn-primary {
    background-color: var(--btn-primary);
    color: var(--btn-primary-text);
    padding: 14px 28px;
    border-radius: 980px;
    font-size: 17px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
    border: none;
    white-space: nowrap;
}

.btn-primary:hover {
    background-color: #e8e8ed;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.25);
}

.hero-light .btn-primary {
    background-color: #000;
    color: #fff;
}
.hero-light .btn-primary:hover {
    background-color: #333;
}

.btn-secondary {
    font-size: 19px;
}
.btn-secondary:hover {
    text-decoration: underline;
}

.hero-image-container {
    flex: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    padding: 20px;
}

.hero-img {
    max-width: 100%;
    max-height: 60vh;
    object-fit: cover;
}

.hero-img-contain {
    max-width: 90%;
    max-height: 60vh;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

/* Products Grid Section */
.all-products-section {
    background-color: #fff;
    padding: 80px 12px 12px 12px;
}

.text-center {
    text-align: center;
}

.section-title {
    margin-bottom: 50px;
    color: #1d1d1f;
}

.section-title h2 {
    font-size: 48px;
    font-weight: 600;
    letter-spacing: -0.005em;
}

.section-title p {
    font-size: 21px;
    color: #86868b;
    margin-top: 10px;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    max-width: 2560px;
    margin: 0 auto;
}

.grid-item {
    height: 580px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 50px;
    border-radius: 18px;
}

.item-dark {
    background-color: #000;
    color: #f5f5f7;
}

.item-light {
    background-color: #f5f5f7;
    color: #1d1d1f;
}

.grid-text {
    z-index: 10;
    padding: 0 20px;
}

.grid-text h3 {
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 6px;
}

.grid-text h4 {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 14px;
}

.grid-text .hero-price {
    margin-bottom: 15px;
    font-size: 15px;
}

.grid-text .btn-primary {
    font-size: 14px;
    padding: 8px 16px;
}

.grid-image-container {
    width: 100%;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.grid-image-container img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 12px;
}

/* Services Section */
.services-section {
    background-color: #000;
    color: #f5f5f7;
    padding: 100px 20px;
}

.services-content h2 {
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.services-list {
    list-style: none;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.services-list li {
    font-size: 21px;
    padding: 20px 0;
    border-bottom: 1px solid #424245;
    display: flex;
    align-items: center;
}

.services-list li::before {
    content: "✓";
    color: #0071e3;
    font-weight: bold;
    font-size: 24px;
    margin-right: 15px;
}

.services-list li:last-child {
    border-bottom: none;
}

/* Contact Section */
.contact-section {
    background-color: #f5f5f7;
    color: #1d1d1f;
    padding: 100px 20px;
    text-align: center;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-content h2 {
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 20px;
}

.contact-hotline {
    font-size: 24px;
    margin-bottom: 20px;
}

.contact-content strong {
    color: #0071e3;
    font-size: 40px;
    display: block;
    margin-top: 10px;
}

.contact-content p {
    font-size: 21px;
    color: #86868b;
    margin-bottom: 15px;
    line-height: 1.5;
}

/* About Section */
.about-section {
    background-color: #f5f5f7;
    color: #1d1d1f;
    padding: 100px 20px;
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
}

.about-content h2 {
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 20px;
}

.about-content p {
    font-size: 21px;
    color: #86868b;
    margin-bottom: 50px;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.about-item {
    background-color: #ffffff;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.about-item:hover {
    transform: translateY(-10px);
}

.about-icon {
    color: #0071e3;
    margin-bottom: 20px;
}

.about-item h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
}

.about-item p {
    font-size: 17px;
    color: #515154;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Testimonials Section */
.testimonials-section {
    background-color: #ffffff;
    padding: 100px 20px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.testimonial-item {
    background-color: #f5f5f7;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
}

.testimonial-rating {
    color: #f59e0b;
    font-size: 24px;
    margin-bottom: 15px;
}

.testimonial-content {
    font-size: 17px;
    font-style: italic;
    color: #1d1d1f;
    margin-bottom: 20px;
    line-height: 1.6;
}

.testimonial-name {
    font-size: 15px;
    font-weight: 600;
    color: #86868b;
}

/* Footer */
footer {
    background-color: #f5f5f7;
    color: #1d1d1f;
    padding: 60px 20px 30px;
    font-size: 14px;
    border-top: 1px solid #d2d2d7;
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1d1d1f;
}

.footer-col p {
    color: #515154;
    margin-bottom: 12px;
    line-height: 1.5;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #515154;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #0071e3;
    text-decoration: none;
}

.bct-logo {
    max-width: 150px;
    margin-top: 10px;
}

.footer-bottom {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #d2d2d7;
    color: #86868b;
    font-size: 12px;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #e8e8ed;
    color: #1d1d1f !important;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: #0071e3;
    color: #ffffff !important;
    transform: translateY(-3px);
}

/* Animations */
@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-element {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-element.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    /* .banner-content h1 is handled by clamp */
    .hero h1 { font-size: 48px; }
}

@media (max-width: 768px) {
    .banner-content {
        padding: 40px 20px;
        margin: 0 15px;
        border-radius: 24px;
    }
    /* .banner-content h1 is handled by clamp */
    .banner-content h2 { font-size: 20px; }
    .banner-content p { font-size: 16px; }
    
    .hero h1 { font-size: 40px; }
    .hero h2 { font-size: 22px; }
    
    .product-grid { grid-template-columns: 1fr; }
    .menu-toggle { display: flex; }
    .nav-links {
        display: flex;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: rgba(29, 29, 31, 0.95);
        backdrop-filter: saturate(180%) blur(20px);
        -webkit-backdrop-filter: saturate(180%) blur(20px);
        flex-direction: column;
        gap: 0;
        transform: translateY(-150%);
        transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out, visibility 0.3s;
        opacity: 0;
        visibility: hidden;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        z-index: -1;
    }
    .nav-links.nav-active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        padding: 10px 0 20px;
    }
    .nav-links li {
        text-align: center;
        padding: 15px 0;
    }
    .menu-toggle.is-active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle.is-active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.is-active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .services-list li { font-size: 17px; }
    .contact-content h2 { font-size: 36px; }
    .contact-content strong { font-size: 32px; }
    .footer-container { grid-template-columns: 1fr; gap: 30px; text-align: center; }
    
    .about-grid, .testimonials-grid { grid-template-columns: 1fr; }
    .about-content h2, .section-title h2 { font-size: 36px; }
    .social-links { justify-content: center; }
}

/* Policy Pages */
.policy-page {
    background-color: #fff;
    color: #1d1d1f;
    padding: 120px 20px 60px;
    min-height: 70vh;
}
.policy-container {
    max-width: 800px;
    margin: 0 auto;
}
.policy-container h1 {
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
}
.policy-container h2 {
    font-size: 24px;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
}
.policy-container p, .policy-container li {
    font-size: 17px;
    line-height: 1.6;
    color: #515154;
    margin-bottom: 15px;
}
.policy-container ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

/* Language Switcher */
.lang-switcher {
    font-weight: 600;
    font-size: 13px;
    color: #86868b;
}
.lang-switcher a {
    color: #86868b !important;
    text-decoration: none;
    transition: color 0.3s ease;
}
.lang-switcher a.active {
    color: #fff !important;
}
.lang-switcher a:hover {
    color: #fff !important;
}

/* Video Background */
.main-banner {
    overflow: hidden;
    z-index: 1;
}

.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* 16:9 ratio */
    min-height: 100vh;
    min-width: 177.77vh; /* 16:9 ratio */
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: -1;
    object-fit: cover; /* For direct MP4 */
}

.hero-video-bg.youtube-bg {
    /* Thay vì dùng scale() làm vỡ ảnh, ta tăng kích thước vật lý của iframe lên 135%. 
       YouTube sẽ tự nhận diện khung hình lớn và phát luồng 4K cực nét! */
    transform: translate(-50%, -50%); 
    width: 135vw;
    height: 75.9375vw; /* 16:9 của 135vw */
    min-height: 135vh;
    min-width: 240vh; /* 16:9 của 135vh */
}


/* Factory Images Background Slider */
.about-section {
    position: relative;
    overflow: hidden;
}

.about-content {
    position: relative;
    z-index: 2;
}

.about-bg-slider-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: none;
}

.about-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    z-index: 1;
}

.about-bg-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.about-bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.about-bg-slide.active {
    opacity: 1;
}

.about-bg-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-bg-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
}

.about-bg-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.about-bg-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.about-bg-dot.active {
    background: #ffffff;
    transform: scale(1.3);
}

/* Bottom Gallery Carousel */
.bottom-gallery-wrapper {
    width: 100%;
    overflow: hidden;
    padding: 60px 0;
    position: relative;
    background: #ffffff;
}

.bottom-gallery-wrapper::before,
.bottom-gallery-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}
.bottom-gallery-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #ffffff 0%, transparent 100%);
}
.bottom-gallery-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #ffffff 0%, transparent 100%);
}

.bottom-gallery-track {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    cursor: grab;
}

.bottom-gallery-track::-webkit-scrollbar {
    display: none;
}

.bottom-gallery-track:active {
    cursor: grabbing;
}

.bottom-gallery-slide {
    width: 300px;
    height: 220px;
    margin: 0 10px;
    flex-shrink: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.bottom-gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    -webkit-user-drag: none;
    user-select: none;
}

.bottom-gallery-slide:hover img {
    transform: scale(1.08);
}

/* scrollGallery removed */

.about-section.has-bg-slider h2,
.about-section.has-bg-slider p#about-desc {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.about-section.has-bg-slider .feature-card {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    border: none;
}
