/* ===================================
   LOCAL FONTS — @font-face
   Primary: Hartone Softed (Display)
   Secondary: SVN-Gilroy (Body/UI)
   =================================== */

@font-face { font-family: 'Hartone'; src: url('../fonts/hartone-softed.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }

@font-face { font-family: 'Gilroy'; src: url('../fonts/SVN-Gilroy Thin.otf') format('opentype'); font-weight: 100; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gilroy'; src: url('../fonts/SVN-Gilroy Thin Italic.otf') format('opentype'); font-weight: 100; font-style: italic; font-display: swap; }
@font-face { font-family: 'Gilroy'; src: url('../fonts/SVN-Gilroy Xlight.otf') format('opentype'); font-weight: 200; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gilroy'; src: url('../fonts/SVN-Gilroy Xlight Italic.otf') format('opentype'); font-weight: 200; font-style: italic; font-display: swap; }
@font-face { font-family: 'Gilroy'; src: url('../fonts/SVN-Gilroy Light.otf') format('opentype'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gilroy'; src: url('../fonts/SVN-Gilroy Light Italic.otf') format('opentype'); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: 'Gilroy'; src: url('../fonts/SVN-Gilroy Regular.otf') format('opentype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gilroy'; src: url('../fonts/SVN-Gilroy Italic.otf') format('opentype'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Gilroy'; src: url('../fonts/SVN-Gilroy Medium.otf') format('opentype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gilroy'; src: url('../fonts/SVN-Gilroy Medium Italic.otf') format('opentype'); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: 'Gilroy'; src: url('../fonts/SVN-Gilroy SemiBold.otf') format('opentype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gilroy'; src: url('../fonts/SVN-Gilroy SemiBold Italic.otf') format('opentype'); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: 'Gilroy'; src: url('../fonts/SVN-Gilroy Bold.otf') format('opentype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gilroy'; src: url('../fonts/SVN-Gilroy Bold Italic.otf') format('opentype'); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'Gilroy'; src: url('../fonts/SVN-Gilroy XBold.otf') format('opentype'); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gilroy'; src: url('../fonts/SVN-Gilroy XBold Italic.otf') format('opentype'); font-weight: 800; font-style: italic; font-display: swap; }
@font-face { font-family: 'Gilroy'; src: url('../fonts/SVN-Gilroy Black.otf') format('opentype'); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gilroy'; src: url('../fonts/SVN-Gilroy Black Italic.otf') format('opentype'); font-weight: 900; font-style: italic; font-display: swap; }

/* ===================================
   GLOBAL STYLES - THE VIET MEDIA
   Mobile-First Design
   =================================== */

/* CSS Custom Properties */
:root {
    --color-bg: #0a0a0a;
    --color-bg-dark: #000000;
    --color-bg-light: #d4d0c8;
    --color-text: #ffffff;
    --color-text-dark: #0a0a0a;
    --color-accent: #c8a45a;
    --color-accent-orange: #e8832a;
    --color-border: rgba(255, 255, 255, 0.15);
    --color-border-dark: rgba(0, 0, 0, 0.15);
    --color-overlay: rgba(0, 0, 0, 0.4);

    /* Typography — Brand Guide */
    --font-display: 'Hartone', sans-serif;   /* Primary: hero, big headings */
    --font-primary: 'Gilroy', sans-serif;    /* Secondary: body, labels, UI */
    --font-logo: 'Gilroy', sans-serif;       /* Logo, nav: Gilroy SemiBold 600 */
    --font-serif: 'Gilroy', sans-serif;      /* Italic accent: Gilroy Italic */

    --transition-fast: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-medium: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-smooth: 0.8s cubic-bezier(0.16, 1, 0.3, 1);

    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 40px;
    --spacing-xl: 60px;
    --spacing-2xl: 100px;

    --header-height: 80px;
}

/* Reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    overscroll-behavior: none;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.4;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.menu-open {
    overflow: hidden;
}

body.loading {
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

a:active {
    opacity: 0.7;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: var(--font-primary);
    color: inherit;
    -webkit-tap-highlight-color: transparent;
}

ul {
    list-style: none;
}

/* Utility Classes */
.section-inner {
    padding: var(--spacing-xl) var(--spacing-md);
}

.section-label {
    font-family: var(--font-primary);
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: var(--spacing-lg);
    opacity: 0.6;
    font-weight: 400;
}

.btn-outline {
    display: inline-block;
    padding: 14px 32px;
    border: 1px solid currentColor;
    border-radius: 50px;
    font-family: var(--font-primary);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all var(--transition-fast);
    margin-top: var(--spacing-lg);
    font-weight: 500;
}

.btn-outline:active {
    background: var(--color-text);
    color: var(--color-bg);
}

/* Scroll reveal elements */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
}

.reveal-fade {
    opacity: 0;
}

.line {
    display: block;
    overflow: hidden;
}

.line-inner {
    display: block;
    transform: translateY(100%);
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-text {
    font-family: var(--font-logo);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 6px;
    margin-bottom: 30px;
    color: var(--color-text);
}

.preloader-bar {
    width: 120px;
    height: 2px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    overflow: hidden;
}

.preloader-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--color-text);
    border-radius: 2px;
    animation: preloaderFill 2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes preloaderFill {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* Custom Scrollbar - match original */

/* Selection */
::selection {
    background: var(--color-accent);
    color: var(--color-bg-dark);
}

/* ===================================
   MOBILE RESPONSIVE — Global
   =================================== */
@media (max-width: 768px) {
    :root {
        --header-height: 60px;
        --spacing-md: 20px;
        --spacing-lg: 32px;
        --spacing-xl: 48px;
        --spacing-2xl: 72px;
    }

    /* Fix WP admin bar pushing content */
    body.admin-bar {
        padding-top: 0 !important;
    }

    /* Override ALL Flatsome theme spacing — kill the black gap */
    body,
    main,
    .page,
    .page-wrapper,
    .page-inner,
    #wrapper,
    #content {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    /* Force video to fill from the TOP — no centering gap */
    .slide-video {
        object-position: top center !important;
    }
}
