/**
 * BMV Plastic - Modern Layout & Scroll Snap System
 * 
 * Native CSS Scroll Snap (100dvh), Modern CSS Reset, Flexbox & Grid Layouts.
 * Replaces fullpage.js and Bootstrap 4 grid system.
 * @package BMV Theme
 * @version 2.0.0
 * Author/Implementation: Le Viet Quang / Four Elements
 * Email : levietquangt2@gmail.com
 * Website : https://fourelementscorp.com/
 * License: MIT
 */

/* ==========================================================================
   1. Modern CSS Reset & Base Rules
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: var(--bmv-font-family);
    font-size: 16px;
    line-height: 1.5;
    color: var(--bmv-text-main);
    background-color: #0b1523;
    overflow: hidden;
    /* Scroll is handled by .fullpage-app */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--bmv-transition-fast), opacity var(--bmv-transition-fast);
}

a:hover,
a:focus {
    text-decoration: none;
    color: var(--bmv-accent);
}

ul,
ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: inline-block;
    vertical-align: middle;
}

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

/* ==========================================================================
   2. FullPage Native Scroll Snap Engine (100dvh)
   ========================================================================== */
.fullpage-app {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow-y: scroll;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    overscroll-behavior-y: contain;
    position: relative;
    /* Hide native scrollbar for cleaner app feel while preserving smooth scroll */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

.fullpage-app::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

/* Section Containers */
.section {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 100dvh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Section Background Images (Original BMV Images) */
.section-1,
.main {
    background-image: url("https://binhminhvietplastic.com/wp-content/uploads/2025/11/trang-chu-2-san-pham.jpg");
}

.section-2,
.product {
    background-image: url("https://binhminhvietplastic.com/wp-content/uploads/2025/10/nhan-vien.jpg");
}

.section-3,
.shareholder {
    background-image: url("https://binhminhvietplastic.com/wp-content/uploads/2025/11/trang-chu-4-su-kien.jpg");
}

.section-4,
.news {
    background-image: url("https://binhminhvietplastic.com/wp-content/uploads/2025/11/trang-chu-3-su-kien.jpg");
}

.section-5,
.intro {
    background-image: url("https://binhminhvietplastic.com/wp-content/uploads/2025/11/trang-chu-5-lien-he.jpg");
}

/* Section Overlay Filter for optimal readability */
.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.6) 100%), linear-gradient(180deg, rgba(11, 21, 35, 0.45) 0%, rgba(0, 0, 0, 0.2) 40%, rgba(11, 21, 35, 0.7) 100%);
    pointer-events: none;
    z-index: 1;
    opacity: 0.3;
}

.section>.container,
.section>.container-fluid,
.section>.content_wrapper {
    position: relative;
    z-index: var(--bmv-z-content);
    width: 100%;
}

/* ==========================================================================
   3. Modern Grid & Container System
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--bmv-space-4);
    padding-right: var(--bmv-space-4);
}

.container-fluid {
    width: 100%;
    padding-left: var(--bmv-space-4);
    padding-right: var(--bmv-space-4);
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

[class*="col-"] {
    position: relative;
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

.col-1 {
    flex: 0 0 8.333333%;
    max-width: 8.333333%;
}

.col-2 {
    flex: 0 0 16.666667%;
    max-width: 16.666667%;
}

.col-3 {
    flex: 0 0 25%;
    max-width: 25%;
}

.col-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

.col-5 {
    flex: 0 0 41.666667%;
    max-width: 41.666667%;
}

.col-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.col-7 {
    flex: 0 0 58.333333%;
    max-width: 58.333333%;
}

.col-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
}

.col-9 {
    flex: 0 0 75%;
    max-width: 75%;
}

.col-10 {
    flex: 0 0 83.333333%;
    max-width: 83.333333%;
}

.col-11 {
    flex: 0 0 91.666667%;
    max-width: 91.666667%;
}

.col-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

@media (min-width: 576px) {
    .col-sm-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }

    .col-sm-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }

    .col-sm-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .col-sm-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (min-width: 768px) {
    .col-md-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }

    .col-md-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }

    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .col-md-8 {
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
    }

    .col-md-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (min-width: 992px) {
    .col-lg-2 {
        flex: 0 0 16.666667%;
        max-width: 16.666667%;
    }

    .col-lg-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }

    .col-lg-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }

    .col-lg-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .col-lg-8 {
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
    }

    .col-lg-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.mb-1 {
    margin-bottom: 0.25rem !important;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.margin-left-10 {
    margin-left: 10px !important;
}

.margin-left-20 {
    margin-left: 20px !important;
}

.margin-left-30 {
    margin-left: 20px !important;
}

.margin-right-10 {
    margin-right: 10px !important;
}

.margin-right-20 {
    margin-right: 20px !important;
}

.margin-right-30 {
    margin-right: 20px !important;
}

/* ==========================================================================
   4. Flexbox & Display Utilities
   ========================================================================== */
.d-none {
    display: none !important;
}

.d-block {
    display: block !important;
}

.d-flex {
    display: flex !important;
}

.d-inline-flex {
    display: inline-flex !important;
}

.flex-column {
    flex-direction: column !important;
}

.flex-wrap {
    flex-wrap: wrap !important;
}

.align-items-center {
    align-items: center !important;
}

.align-items-start {
    align-items: flex-start !important;
}

.align-items-end {
    align-items: flex-end !important;
}

.justify-content-center {
    justify-content: center !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

.justify-content-end {
    justify-content: flex-end !important;
}

.justify-content-start {
    justify-content: flex-start !important;
}

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

.text-left {
    text-align: left !important;
}

.text-right {
    text-align: right !important;
}

.text-capitalize {
    text-transform: capitalize !important;
}

.text-uppercase {
    text-transform: uppercase !important;
}

.font-weight-400 {
    font-weight: 400 !important;
}

.font-weight-500 {
    font-weight: 500 !important;
}

.font-weight-600 {
    font-weight: 600 !important;
}

.font-weight-700 {
    font-weight: 700 !important;
}

.w-100 {
    width: 100% !important;
}

.h-100 {
    height: 100% !important;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

.rounded {
    border-radius: var(--bmv-radius-md) !important;
}

.shadow {
    box-shadow: var(--bmv-shadow-md) !important;
}

/* Responsive Visibility Helpers */
@media (max-width: 991px) {
    .hidden-md-down {
        display: none !important;
    }

    .hidden-lg-up {
        display: block !important;
    }
}

@media (min-width: 992px) {
    .hidden-lg-up {
        display: none !important;
    }

    .d-lg-none {
        display: none !important;
    }
}

@media (min-width: 768px) {
    .d-md-none {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .d-sm-none {
        display: none !important;
    }

    .hidden-sm-down {
        display: none !important;
    }
}