/* 
    PREMIUM CORPORATE PROFILE DESIGN SYSTEM - VNGPOWER PRO (V3 - HIGH DENSITY)
    Style: Cinematic Industrial // Density: High
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --brand-red: #ED1C24;
    --brand-dark: #020617;
    --brand-blue: #0ea5e9;
    --brand-gold: #f59e0b;
    --text-white: #ffffff;
    --text-dim: #94a3b8;
    --bg-page: #ffffff;
    --page-width: 210mm;
    --page-height: 297mm;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #0f172a;
    color: var(--brand-dark);
}

@page {
    size: A4;
    margin: 0;
}

.page {
    width: var(--page-width);
    height: var(--page-height);
    background: var(--bg-page);
    margin: 20px auto;
    position: relative;
    overflow: hidden;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
}

/* HIGH DENSITY TEXTURES */
.page::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.5;
    pointer-events: none;
    z-index: 1;
}

.bg-midnight::before {
    background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
    opacity: 1;
}

.no-grid::before {
    display: none !important;
}

@media print {
    html, body {
        background: none !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    #hsnl-master-flow { display: block !important; }
    .page {
        margin: 0 !important;
        box-shadow: none !important;
        page-break-after: always !important;
        break-after: page !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
        display: block !important;
        width: 210mm !important;
        height: 297mm !important;
        position: relative !important;
        overflow: hidden !important;
    }
    .bg-midnight .glass-card {
        backdrop-filter: none !important;
        background: #1e293b !important;
        border: 1px solid rgba(255,255,255,0.2) !important;
    }
    .page:not(.bg-midnight) .glass-card {
        backdrop-filter: none !important;
        background: #ffffff !important;
        border: 1px solid #e2e8f0 !important;
    }
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        color-adjust: exact !important;
        forced-color-adjust: none !important;
    }
}

/* Typography Pro V3 */
.heading-hero {
    font-weight: 900;
    line-height: 0.9;
    text-transform: uppercase;
    letter-spacing: -4px;
}

.heading-section {
    font-size: 52px;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.0;
    letter-spacing: -2px;
}

.heading-chapter {
    font-size: 150px;
    font-weight: 900;
    color: rgba(0,0,0,0.03);
    position: absolute;
    top: -20px;
    right: -20px;
    z-index: 0;
}

.bg-midnight .heading-chapter {
    color: rgba(255,255,255,0.03);
}

/* Decorative Elements */
.tech-line {
    position: absolute;
    background: var(--brand-red);
    opacity: 0.2;
}

.coord {
    display: none;
    position: absolute;
    font-size: 8px;
    font-weight: 900;
    color: #94a3b8;
    letter-spacing: 2px;
    z-index: 10;
}

/* Glass & Premium Cards */
.glass-card {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 40px;
    border-radius: 30px;
}

.stat-box {
    text-align: center;
    padding: 30px;
    border: 1px solid #f1f5f9;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.stat-val {
    font-size: 48px;
    font-weight: 900;
    color: var(--brand-red);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #64748b;
}

/* Layout Core */
.container-full { height: 100%; width: 100%; position: relative; padding: 100px 80px; z-index: 5; }
.bg-midnight { background: var(--brand-dark); color: white; }
.text-red { color: var(--brand-red); }

.badge-pro {
    display: inline-block;
    padding: 10px 25px;
    background: var(--brand-red);
    color: white;
    font-weight: 900;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 4px;
    border-radius: 4px;
    margin-bottom: 40px;
}

.page-mark {
    position: absolute;
    bottom: 40px;
    right: 80px;
    font-weight: 900;
    font-size: 16px;
    color: var(--brand-red);
    z-index: 10;
}

/* Premium Icon Styling */
.icon-box {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-red);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05), inset 0 0 0 1px rgba(255,255,255,0.8);
    transition: all 0.3s ease;
}

.icon-box-dark {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
}

.icon-box-red {
    background: var(--brand-red);
    color: white;
    box-shadow: 0 15px 35px rgba(237,28,36,0.25);
}

.icon-box i {
    width: 28px;
    height: 28px;
    stroke-width: 2.5px;
}

/* Gallery & Media */
.gallery-item { position: relative; border-radius: 30px; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,0.15); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2,6,23,0.9) 0%, transparent 70%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    color: white;
}

/* Global Branding (Header/Footer) */
.page-header {
    position: absolute;
    top: 40px;
    left: 40px;
    right: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 50;
}

.page-header .mini-logo {
    height: 30px;
}

.page-header .chapter-title {
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 3px;
    color: #94a3b8;
    text-transform: uppercase;
}

.page-footer {
    position: absolute;
    bottom: 30px;
    left: 40px;
    right: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 50;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #94a3b8;
    text-transform: uppercase;
}

.page-branding-white .mini-logo {
    background: white;
    padding: 8px 12px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.page-branding-white .chapter-title,
.page-branding-white .page-footer { color: rgba(255,255,255,0.4); }
