/* Alpha Northline Global - Cinematic CSS Framework */

:root {
    --primary-navy: #1D3557;
    --primary-teal: #00A896;
    --accent-blue: #3A86FF;
    --light-bg: #F8F9FA;
    --deep-navy: #0e1c2f;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--primary-navy);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Slimmer & Modern Navbar */
header.sticky, header[class*="sticky"] {
    backdrop-filter: blur(14px);
    transition: all 0.3s ease;
}

header .container,
header .container.mx-auto {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    transition: all 0.3s ease;
}

header nav a,
header nav button {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    line-height: 1.1 !important;
}

/* Compact State on Scroll */
header.nav-compact .container.mx-auto {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

header.nav-compact img {
    max-height: 38px !important;
}

/* Logo & Label Optimization */
header img {
    max-height: 44px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block;
    transition: max-height 0.3s ease;
}

header a span {
    margin-top: 4px !important;
    font-size: 10px !important;
    letter-spacing: 0.08em !important;
    font-weight: 800;
}

/* Dropdown Modernization */
.dropdown {
    position: relative;
}

.dropdown-panel {
    top: 100%;
    transform: translateY(0);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Invisible Bridge element to prevent close on gap travel */
.dropdown-panel::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -12px;
    height: 12px;
    background: transparent;
}

.group:hover .dropdown-panel {
    transform: translateY(0);
}

/* Mobile Header Harmony */
#mobile-menu-button svg {
    width: 28px !important;
    height: 28px !important;
}

/* Global Hero Styling */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(14, 28, 47, 0.65);
}

/* Standard Section Spacing */
section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* KPI Chart Bars */
.chart-bar {
    width: 100%;
    height: 6px;
    background-color: #f1f5f9;
    border-radius: 999px;
    overflow: hidden;
}

.chart-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* KPI and Glow Cards */
.kpi-card, .glow-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 3px solid transparent;
}

.kpi-card:hover, .glow-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px -12px rgba(14, 28, 47, 0.15);
    border-top-color: var(--primary-teal);
}

/* Button Styles */
.btn-primary {
    display: inline-block;
    background-color: var(--primary-teal);
    color: white;
    padding: 12px 32px;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px 0 rgba(0, 168, 150, 0.3);
}

.btn-primary:hover {
    background-color: #007a70;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(0, 168, 150, 0.4);
}

.btn-primary-outline {
    display: inline-block;
    border: 2px solid var(--primary-navy);
    color: var(--primary-navy);
    padding: 10px 32px;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-primary-outline:hover {
    background-color: var(--primary-navy);
    color: white;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-navy);
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

/* Animations */
@keyframes slow-zoom {
    from { transform: scale(1); }
    to { transform: scale(1.08); }
}

.animate-slow-zoom {
    animation: slow-zoom 20s ease-in-out infinite alternate;
}

.fade-in {
    animation: fadeIn 1.2s ease-out forwards;
    opacity: 0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

html {
    scroll-behavior: smooth;
}

/* Mobile responsive table: Reliability Gap */
.table-wrap{
  overflow: hidden;
}

@media (max-width: 768px){
  .table-wrap{
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .table-wrap table{
    min-width: 720px;
  }
  .table-wrap th,
  .table-wrap td{
    white-space: nowrap;
  }
}
