:root {
    --primary: #ffffff;
    --secondary: #f4f7fa; /* Slightly cooler grey-blue */
    --accent: #0052cc;    /* Deeper, more "Aviation" blue */
    --dark: #0f172a;      /* Slate-Dark instead of pure black */
    --gray: #475569;
    --border: #e2e8f0;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--primary);
    color: var(--dark);
    overflow-x: hidden;
}

/* Typography */
.fw-900 { font-weight: 900; }
.tracking-widest { letter-spacing: 4px; }
.tiny { font-size: 0.65rem; }
.text-accent { color: var(--accent); }

/* Navigation */
.nav-main {
    padding: 25px 0;
    transition: all 0.4s;
    background: transparent;
}

.nav-main.active {
    padding: 15px 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.nav-main .nav-link {
    color: var(--dark) !important;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 10px;
}

.btn-aog {
    background: var(--dark);
    color: #fff;
    padding: 10px 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 4px;
    transition: 0.3s;
}

.btn-aog:hover {
    background: var(--accent);
    color: #fff;
}

/* Hero Section */
.hero-wrap {
    position: relative;
    overflow: hidden;
    background: var(--secondary);
}

.hero-img {
    position: absolute;
    right: 0; top: 0;
    width: 60%; height: 100%;
    background: url('https://thumbs.dreamstime.com/b/big-airplane-engine-maintenance-warehouse-77233244.jpg') center/cover;
    opacity: 0.15;
    z-index: 1;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--primary) 30%, transparent 100%);
    z-index: 2;
}

.badge-industrial {
    display: inline-block;
    padding: 6px 12px;
    background: var(--border);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1px;
    border-radius: 4px;
}

.btn-primary-tech {
    background: var(--accent);
    color: white;
    padding: 16px 32px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 4px;
}

.btn-outline-tech {
    border: 2px solid var(--dark);
    color: var(--dark);
    padding: 16px 32px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 4px;
}

/* Ticker */
.ticker-box {
    background: var(--dark);
    padding: 15px 0;
    overflow: hidden;
    white-space: nowrap;
}

.ticker-scroll {
    display: inline-block;
    animation: scroll 20s linear infinite;
}

.ticker-pill {
    color: #fff;
    margin: 0 30px;
    font-size: 0.8rem;
    font-weight: 400;
}

.ticker-pill b { color: var(--accent); }

@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Content Sections */
.section-padding { padding: 100px 0; }

.stat-box {
    background: var(--secondary);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    border-bottom: 4px solid var(--border);
}

.stat-box.blue {
    background: var(--accent);
    color: #fff;
    border: none;
}

.stat-box h3 { font-weight: 900; margin-bottom: 5px; }
.stat-box p { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; margin: 0; opacity: 0.8; }

/* Hub Cards */
.hub-card {
    background: #fff;
    padding: 40px;
    border: 1px solid var(--border);
    transition: 0.3s;
    height: 100%;
}

.hub-card:hover {
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.hub-card h5 { font-weight: 900; color: var(--accent); margin-bottom: 15px; }
.hub-card p { font-size: 0.9rem; color: var(--gray); margin-bottom: 25px; }
.hub-link { font-weight: 700; text-decoration: none; color: var(--dark); font-size: 0.8rem; }

.footer { padding: 40px 0; border-top: 1px solid var(--border); background: #fff; }

/* Mobile Optimizations */
@media (max-width: 991px) {
    .hero-img { width: 100%; opacity: 0.1; }
    .hero-wrap { text-align: center; }
    .hero-wrap .d-flex { justify-content: center; flex-direction: column; }
    .section-padding { padding: 60px 0; }
}


/* Technical Grid Background to soften the "too bright" white */
.tech-grid-bg {
    background-color: #f1f4f8;
    background-image: 
        linear-gradient(rgba(0, 102, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 102, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
}

.platform-card {
    background: #ffffff;
    padding: 0;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    height: 100%;
}

.platform-card.blue {
    background: var(--dark); /* Deep Navy/Black from previous theme */
    border: none;
}

.platform-header {
    background: #f8fafc;
    padding: 15px 30px;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 2px;
    border-bottom: 1px solid #e2e8f0;
}

.platform-card.blue .platform-header {
    background: rgba(255,255,255,0.05);
    color: var(--accent);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.category-title {
    font-weight: 800;
    font-size: 0.9rem;
    margin: 30px 30px 15px;
    color: var(--dark);
}

.platform-list {
    list-style: none;
    padding: 0 30px 30px;
    margin: 0;
}

.platform-list li {
    font-size: 0.85rem;
    padding: 5px 0;
    color: #64748b;
    position: relative;
    padding-left: 15px;
}

.platform-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.platform-card.blue .platform-list li { color: #cbd5e1; }

/* Custom Borders for the Grid */
.border-start-custom { border-left: 1px solid #f1f5f9; }
.border-start-custom-white { border-left: 1px solid rgba(255,255,255,0.1); }

/* Component Marquee Styling */
.component-marquee {
    background: white;
    padding: 25px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    text-align: center;
}

.comp-item {
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--dark);
}

.comp-sep {
    margin: 0 15px;
    color: var(--accent);
    font-weight: 900;
}

/* Enhanced Mobile Adjustments */
@media (max-width: 991px) {
    /* 1. Kill all padding in the bar to let the logo touch the bottom */
    .nav-main {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        position: relative; /* Anchor for the absolute toggle button */
    }

    /* 2. Center the Logo and remove vertical gaps */
    .navbar-brand {
        margin: 0 !important;
        padding: 0 !important;
        width: 100%;
        text-align: center;
        display: block;
        line-height: 0; /* Removes tiny space below the image */
    }

    .navbar-brand img {
        height: 100px !important; /* Adjust this to change the bar's total height */
        width: auto;
        margin: 0 auto;
        display: block;
        vertical-align: bottom; /* Forces image to baseline */
    }

    /* 3. Move Menu Button Up and to the Right */
    .navbar-toggler {
        position: absolute !important;
        left: 20px;
        top: 30px; /* Adjust this to move it further up */
        padding: 4px !important; /* Smaller footprint */
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
    }

    /* 4. Hero & Logo with Tagline adjustments */
    .hero-glass-card {
        padding: 30px 15px;
        text-align: center; /* Better for mobile readability */
    }

    .hero-glass-card img {
        max-height: 140px !important; /* Prevents overwhelming the mobile screen */
        margin: 0 auto 1.5rem auto;
        display: block;
    }

    /* 5. Hide technical specs to save vertical space */
    .tiny.tracking-widest.fw-bold {
        display: none !important;
    }

    /* 6. Fix Nav Links when expanded so they don't overlap the logo */
    .navbar-collapse {
        background: #ffffff; /* Or your preferred theme color */
        margin-top: 0;
        padding: 20px;
    }
}

/* Fix for green-tinted logos */
.navbar-brand img, 
.hero-glass-card img {
    filter: saturate(0) brightness(1.2); /* Turns it into clean Black/White/Grey */
    transition: filter 0.3s ease;
}

/* If you want the logo to regain color when the user scrolls or hovers */
.nav-main.active .navbar-brand img {
    filter: saturate(1) brightness(1);
}