/* ===================================
   STANDARD INDUSTRIES - Dark Stealth Theme
   Inspired by Skunkworks / Defense Aesthetic
   =================================== */

/* ----- CSS Variables ----- */
:root {
    --bg-darkest: #000000;
    --bg-dark: #0a0a0a;
    --bg-medium: #111111;
    --bg-card: #161616;
    --bg-elevated: #1a1a1a;
    --bg-hover: #222222;
    
    --accent-primary: #00d4ff;
    --accent-secondary: #0088aa;
    --accent-glow: rgba(0, 212, 255, 0.15);
    --accent-warning: #ff6b35;
    --accent-gold: #c9a227;
    
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #707070;
    --text-dim: #505050;
    
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-medium: rgba(255, 255, 255, 0.1);
    --border-accent: rgba(0, 212, 255, 0.3);
    
    --gradient-dark: linear-gradient(180deg, #0a0a0a 0%, #000000 100%);
    --gradient-card: linear-gradient(145deg, #1a1a1a 0%, #111111 100%);
    --gradient-accent: linear-gradient(135deg, #00d4ff 0%, #0088aa 100%);
    --gradient-hero: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.95) 100%);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 30px rgba(0, 212, 255, 0.2);
}

/* ----- Base Styles ----- */
* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-darkest);
    color: var(--text-secondary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

h1 { font-size: 3.5rem; font-weight: 700; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 400;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--text-primary);
}

strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* ----- Navigation ----- */
.navbar {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.75rem 0;
    background: rgba(0, 0, 0, 0.95);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--text-primary) !important;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    height: 48px;
    width: auto;
}

.navbar-brand span {
    color: var(--accent-primary);
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.nav-link:hover {
    color: var(--accent-primary) !important;
}

.nav-link.active {
    color: var(--accent-primary) !important;
}

.navbar-toggler {
    border-color: var(--border-medium);
}

.navbar-toggler-icon {
    filter: invert(1);
}

.navbar-nav .dropdown-menu {
    background: var(--bg-card);
    border: 1px solid var(--border-medium);
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    padding: 0.5rem;
    margin-top: 0.5rem;
}

.dropdown-item {
    color: var(--text-secondary);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background: var(--bg-hover);
    color: var(--accent-primary);
}

/* ----- Hero Sections ----- */
.hero {
    position: relative;
    aspect-ratio: 16 / 9;
    min-height: 60vh;
    display: flex;
    align-items: center;
    background: var(--bg-darkest);
    overflow: hidden;
}

.hero .container {
    position: relative;
    z-index: 3;
    width: 100%;
}

.hero.hero-inner,
.hero-inner {
    min-height: 35vh !important;
    aspect-ratio: auto;
    display: flex;
    align-items: center;
    height: auto;
    padding: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(0, 136, 170, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 2;
}

/* Grid pattern overlay */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 2;
}

/* Hero Image */
.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.9;
    z-index: 0;
    max-width: 100%;
    max-height: 100%;
}

/* Hero image opacity variations for different pages */
.hero-image.opacity-60 {
    opacity: 0.6;
}

.hero-image.opacity-80 {
    opacity: 0.8;
}

/* Hero images in inner pages should show full image */
.hero-inner {
    position: relative;
    overflow: visible;
}

.hero-inner .hero-image {
    width: 100% !important;
    height: auto !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    display: block;
    object-fit: contain;
    min-height: 35vh;
}

.hero-inner .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
}

.hero-inner > .container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    z-index: 3;
    pointer-events: none;
}

.hero-inner > .container > * {
    pointer-events: auto;
}

/* Inner heroes without background images (e.g., News pages) */
.hero-inner.hero-inner-simple {
    min-height: auto !important;
    aspect-ratio: auto;
    padding: 7rem 0 2.5rem !important; /* clears fixed navbar */
}

/* Reduce gap between hero and body section on news pages */
.news-page .hero-inner.hero-inner-simple {
    padding-bottom: 0 !important;
}

.hero-inner.hero-inner-simple > .container {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    display: block;
    pointer-events: auto;
}

/* News hero mobile padding */
@media (max-width: 767px) {
    .hero-inner.hero-inner-simple {
        padding: 120px 0 1.5rem !important;
    }
    
    .hero-inner.hero-inner-simple .hero-content {
        padding: 0 15px;
    }
}

@media (max-width: 575px) {
    .hero-inner.hero-inner-simple {
        padding: 115px 0 1rem !important;
    }
    
    .hero-inner.hero-inner-simple .hero-content {
        padding: 0 20px;
    }
    
    .hero-inner.hero-inner-simple h1,
    .hero-inner.hero-inner-simple h2 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
}

/* Extra small devices (375px and below) */
@media (max-width: 400px) {
    .hero-inner.hero-inner-simple {
        padding: 160px 0 1rem !important;
    }

    .hero-inner.hero-inner-simple .hero-content {
        padding: 0 15px;
    }

    .hero-inner.hero-inner-simple h1,
    .hero-inner.hero-inner-simple h2 {
        font-size: 1.35rem;
        line-height: 1.3;
    }

    .hero-inner.hero-inner-simple .hero-badge {
        font-size: 0.65rem;
        padding: 0.35rem 0.6rem;
        margin-bottom: 0.75rem;
    }
    
    /* Home hero padding at 400px */
    .hero.hero-home .hero-content h1 {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .hero.hero-home .hero-text-container .lead {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .hero.hero-home .hero-text-container .mt-4 {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Flag image mobile sizing */
@media (max-width: 767px) {
    .flag-image {
        min-height: 200px !important;
        max-width: 50%;
        margin: 0 auto;
        display: block;
    }
}

/* Hero Overlay for darkening effect */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.05) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
}

.hero h1 {
    color: var(--text-primary);
    font-size: 3.75rem;
    margin-bottom: 1.5rem;
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.hero .lead {
    color: var(--text-primary);
    font-size: 1.35rem;
    max-width: 800px;
    line-height: 1.6;
}

.hero p {
    color: var(--text-primary);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent-primary);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 212, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

.hero-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ----- Buttons ----- */
.btn {
    padding: 0.875rem 1.75rem;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
}

.btn-primary {
    background: var(--accent-primary);
    color: var(--bg-darkest);
}

.btn-primary:hover {
    background: var(--text-primary);
    color: var(--bg-darkest);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-outline-light {
    background: transparent;
    border: 1px solid var(--border-medium);
    color: var(--text-primary);
}

.btn-outline-light:hover {
    background: var(--text-primary);
    color: var(--bg-darkest);
    border-color: var(--text-primary);
    transform: translateY(-2px);
}

.btn-outline-primary {
    background: transparent;
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
}

.btn-outline-primary:hover {
    background: var(--accent-primary);
    color: var(--bg-darkest);
}

.btn-light {
    background: var(--text-primary);
    color: var(--bg-darkest);
    border: none;
}

.btn-light:hover {
    background: var(--accent-primary);
    color: var(--bg-darkest);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-lg {
    padding: 1rem 2.25rem;
    font-size: 0.9rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
}

.btn-link {
    color: var(--accent-primary);
    text-transform: none;
    letter-spacing: normal;
    padding: 0;
}

.btn-link:hover {
    color: var(--text-primary);
}

/* ----- Sections ----- */
section {
    padding: 2rem 0;
    background: var(--bg-darkest);
    position: relative;
}

.updates-strip {
    padding: 1rem 0;
    background: var(--bg-hover);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.updates-strip .updates-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0;
    line-height: 1.2;
}

.updates-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    border: 1px solid var(--border-medium);
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    height: 100%;
}

.updates-item:hover {
    border-color: var(--border-accent);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.1);
    color: var(--text-primary);
}

.updates-item .text-gold {
    font-size: 0.8rem;
    font-weight: 600;
}

.updates-item-title {
    font-size: 0.95rem;
    line-height: 1.4;
}

.news-detail-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.news-detail-meta {
    font-size: 0.9rem;
}

.section-dark {
    background: var(--bg-dark);
}

.section-medium {
    background: var(--bg-medium);
}

.section-light {
    background: var(--bg-card);
}

.section-header {
    margin-bottom: 4rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.15rem;
    max-width: 1000px;
    color: var(--text-secondary);
}

.section-header.text-center p {
    margin-left: auto;
    margin-right: auto;
}

.section-header.text-start {
    margin-bottom: 1.5rem;
}

.section-header.text-start p {
    max-width: 100%;
}

/* Horizontal line accent */
.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--gradient-accent);
    margin-top: 1rem;
}

.section-header.text-center h2::after {
    margin-left: auto;
    margin-right: auto;
}

/* "What We Do" section background on home page */
.what-we-do-section {
    position: relative;
    overflow: hidden;
}

.what-we-do-section > .container {
    position: relative;
    z-index: 1;
}

.what-we-do-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Capability card images - maintain aspect ratio on mobile */
@media (max-width: 991px) {
    .capability-card img {
        min-height: auto !important;
        object-fit: contain !important;
        height: auto !important;
        width: 100% !important;
    }
}

/* Full-width image section between Applications and Manufacturing */
.full-width-image-section {
    padding: 0;
    background: var(--bg-darkest);
}

.full-width-image-section img {
    display: block;
}

/* Core Technology section background */
.core-technology-section {
    position: relative;
    background-image: url('../img/tag_core_hero_2.webp');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.core-technology-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.95) 100%);
}

.core-technology-section > .container {
    position: relative;
    z-index: 1;
}

/* Lifecycle section */
.lifecycle-section {
    position: relative;
}

/* Lifecycle section image - reduce to 50% on mobile */
@media (max-width: 991px) {
    .lifecycle-section .col-lg-6 > img {
        width: 50% !important;
        min-height: auto !important;
        display: block;
        margin: 0 auto;
    }
}

/* ----- Cards ----- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    color: var(--text-secondary);
    transition: all 0.4s ease;
    overflow: hidden;
}

.card:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md), 0 0 30px rgba(0, 212, 255, 0.1);
}

.card-body {
    padding: 2rem;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.card-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient-accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.card-icon svg {
    width: 26px;
    height: 26px;
    color: var(--bg-darkest);
}

/* Feature Cards */
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 2rem;
    border-radius: 8px;
    height: 100%;
    transition: all 0.4s ease;
}

.feature-card:hover {
    border-color: var(--border-accent);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.08);
}

.feature-card h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.feature-card h5 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

/* Capability Cards */
.capability-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 2rem;
    height: 100%;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.capability-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-accent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.capability-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-2px);
}

.capability-card:hover::before {
    opacity: 1;
}

.capability-card h4 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 1.15rem;
}

.capability-card p {
    color: var(--text-secondary);
}

/* ----- Market Cards ----- */
.market-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.market-card:hover {
    border-color: var(--border-accent);
}

.market-card-header {
    display: block;
    background: var(--bg-elevated);
    padding: 2rem;
    border-bottom: 1px solid var(--border-subtle);
    text-decoration: none;
    transition: all 0.3s ease;
}

a.market-card-header:hover {
    background: var(--bg-hover);
    text-decoration: none;
}

.market-card-header h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

a.market-card-header:hover h3 {
    color: var(--accent-primary);
}

.market-card-header p {
    color: var(--text-muted);
    margin: 0;
}

.market-card-body {
    padding: 2rem;
}

/* Markets section - full width cards with no padding/margins */
#markets {
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow-x: hidden;
}

#markets > .container {
    padding-left: 15px;
    padding-right: 15px;
}

#markets > .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100%;
}

#markets > .row > .col-lg-6 {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Remove all border-radius on market cards for edge-to-edge look */
#markets .row.g-0 > .col-lg-6 .market-card {
    border-radius: 0;
}

/* ----- Use Case Lists ----- */
.use-case-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.use-case-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.use-case-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 1px;
    transform: rotate(45deg);
}

/* ----- Stats ----- */
.stat-item {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ----- Icon Box ----- */
.icon-box {
    width: 72px;
    height: 72px;
    background: var(--gradient-accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.icon-box svg {
    width: 32px;
    height: 32px;
    color: var(--bg-darkest);
}

.icon-box-sm {
    width: 48px;
    height: 48px;
    border-radius: 6px;
}

.icon-box-sm svg {
    width: 22px;
    height: 22px;
}

/* ----- Placeholder Images ----- */
.placeholder-img {
    background: var(--bg-medium);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    font-weight: 500;
    font-size: 0.875rem;
    min-height: 300px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
}

.placeholder-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 45%, var(--border-subtle) 45%, var(--border-subtle) 55%, transparent 55%),
        linear-gradient(-45deg, transparent 45%, var(--border-subtle) 45%, var(--border-subtle) 55%, transparent 55%);
    background-size: 20px 20px;
    opacity: 0.5;
}

.placeholder-img span {
    position: relative;
    z-index: 1;
    background: var(--bg-card);
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

/* ----- CTA Sections ----- */
.cta-section {
    background: var(--bg-medium);
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(0, 212, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.cta-section h2 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    position: relative;
}

.cta-section p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    margin-bottom: 2rem;
    position: relative;
}

/* ----- Footer ----- */
.footer {
    background: var(--bg-dark);
    color: var(--text-muted);
    padding: 5rem 0 2rem;
    border-top: 1px solid var(--border-subtle);
}

.footer h5 {
    color: var(--text-primary);
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-primary);
}

.footer-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: block;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.footer-brand img,
img.footer-brand {
    height: 48px;
    width: auto;
    margin-bottom: 1rem;
    display: block;
}

.footer-brand span {
    color: var(--accent-primary);
}

.footer-bottom {
    border-top: 1px solid var(--border-subtle);
    margin-top: 4rem;
    padding-top: 2rem;
    color: var(--text-dim);
    font-size: 0.85rem;
}

/* ----- Tabs ----- */
.nav-tabs {
    border-bottom: 1px solid var(--border-subtle);
}

.nav-tabs .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    color: var(--text-muted) !important;
    font-weight: 600;
    padding: 1rem 1.5rem !important;
    background: transparent;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

.nav-tabs .nav-link:hover {
    border-color: transparent;
    color: var(--text-secondary) !important;
}

.nav-tabs .nav-link.active {
    border-bottom-color: var(--accent-primary);
    color: var(--accent-primary) !important;
    background: transparent;
}

/* ----- News/Blog Cards ----- */
.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.news-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
}

.news-card-img {
    height: 180px;
    background: var(--bg-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-subtle);
}

.news-card-body {
    padding: 1.5rem;
}

.news-card-meta {
    font-size: 0.75rem;
    color: var(--accent-primary);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.news-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

/* ----- Team Cards ----- */
.team-card {
    text-align: center;
    padding: 2rem;
}

.team-avatar {
    width: 140px;
    height: 140px;
    background: var(--bg-medium);
    border: 2px solid var(--border-subtle);
    border-radius: 50%;
    margin: 0 0 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    overflow: hidden;
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.team-card:hover .team-avatar {
    border-color: var(--accent-primary);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.15);
}

.team-card h4 {
    margin-bottom: 0.25rem;
    font-size: 1.15rem;
}

.team-card .role {
    color: var(--accent-primary);
    font-weight: 500;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.team-description {
    position: relative;
}

.team-description-content {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    transition: all 0.3s ease;
}

.team-description-content.expanded {
    display: block;
    -webkit-line-clamp: unset;
}

.team-read-more {
    background: none;
    border: none;
    color: var(--accent-primary);
    cursor: pointer;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.team-read-more:hover {
    color: var(--accent-secondary, #00d4ff);
}

.team-read-more::after {
    content: ' ↓';
    display: inline-block;
    transition: transform 0.3s ease;
}

.team-description.expanded .team-read-more::after {
    transform: rotate(180deg);
}

/* ----- Aerospace DNA Images ----- */
.aerospace-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
}

.aerospace-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.aerospace-image-container:hover .aerospace-image {
    transform: scale(1.05);
}

.aerospace-image-container:hover {
    border-color: var(--border-accent);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.1);
}

/* ----- Login Form ----- */
.login-form {
    max-width: 400px;
    margin: 0 auto;
    padding: 2.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
}

.login-form h3 {
    font-size: 1.5rem;
}

.form-control {
    padding: 0.875rem 1rem;
    border-radius: 4px;
    border: 1px solid var(--border-medium);
    background: var(--bg-medium);
    color: var(--text-primary);
    font-size: 0.9rem;
}

.form-control::placeholder {
    color: var(--text-dim);
}

.form-control:focus {
    border-color: var(--accent-primary);
    background: var(--bg-medium);
    color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-label {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* ----- Utilities ----- */
.text-accent {
    color: var(--accent-primary) !important;
}

.text-gold {
    color: var(--accent-gold) !important;
}

p.text-gold {
    font-weight: bold !important;
}

.text-white-50 {
    color: var(--text-muted) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.bg-white {
    background: var(--bg-card) !important;
}

.border-bottom {
    border-color: var(--border-subtle) !important;
}

.rounded-xl {
    border-radius: 8px;
}

hr {
    border-color: var(--border-subtle);
    opacity: 1;
}

.small, small {
    color: var(--text-muted);
}

.list-unstyled li {
    color: var(--text-secondary);
}

/* ----- Home Hero Mobile Stack ----- */
/* Desktop: Keep original overlay behavior */
.hero.hero-home {
    display: flex;
    align-items: center;
}

.hero.hero-home .hero-text-container {
    position: absolute;
    bottom: 2rem;
    left: 0;
    right: 0;
    z-index: 3;
}

.hero.hero-home > .container:first-of-type {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
}

/* ----- Responsive ----- */
@media (max-width: 991px) {
    .hero h1 {
        font-size: 2.75rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    section {
        padding: 2rem 0;
    }
    
    .navbar-collapse {
        background: var(--bg-card);
        padding: 1.5rem;
        border-radius: 8px;
        margin-top: 1rem;
        border: 1px solid var(--border-subtle);
    }
}

@media (max-width: 767px) {
    .hero {
        aspect-ratio: 16 / 9;
        min-height: 50vh;
        max-height: 100vh;
        padding: 5rem 0 2rem 0;
        padding-top: calc(76px + 2rem);
        width: 100%;
        max-width: 100vw;
        overflow: hidden;
    }
    
    /* Home hero mobile stacking */
    .hero.hero-home {
        display: flex;
        flex-direction: column;
        aspect-ratio: unset;
        min-height: unset;
        max-height: unset;
        height: auto;
        padding-top: 100px;
        padding-bottom: 0;
    }
    
    .hero.hero-home::before,
    .hero.hero-home::after {
        display: none;
    }
    
    .hero.hero-home .hero-overlay {
        display: none;
    }
    
    .hero.hero-home > .container:first-of-type {
        position: relative;
        top: auto;
        transform: none;
        order: 1;
        padding: 1rem 15px 1rem;
    }
    
    .hero.hero-home .hero-image {
        position: relative;
        order: 2;
        width: 100%;
        height: auto;
        max-height: 300px;
        object-fit: cover;
        object-position: center;
    }
    
    .hero.hero-home .hero-text-container {
        position: relative;
        bottom: auto;
        order: 3;
        padding: 1rem 15px;
        background: var(--bg-darkest);
    }
    
    .hero.hero-home .hero-content {
        padding: 0;
    }
    
    .hero.hero-home .hero-content h1 {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .hero.hero-home .hero-text-container .lead {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .hero.hero-home .hero-text-container .mt-4 {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .hero-inner {
        padding-top: calc(76px + 2rem);
    }
    
    .hero-image {
        object-fit: contain;
        object-position: center;
        width: 100%;
        max-width: 100%;
        height: 100%;
        left: 0;
        right: 0;
    }
    
    .hero-content {
        padding: 1rem 0 1rem 1rem;
    }
    
    .hero h1 {
        font-size: 2.25rem;
        margin-bottom: 1rem;
    }
    
    .hero .lead {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-badge {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
        margin-bottom: 1rem;
    }
    
    .hero .btn {
        margin-right: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .hero .btn:last-child {
        margin-right: 0;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    section {
        padding: 2rem 0;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .section-header {
        margin-bottom: 3rem;
    }
}

@media (max-width: 575px) {
    .hero {
        aspect-ratio: 16 / 9;
        min-height: 50vh;
        padding: 4rem 0 1.5rem 0;
        padding-top: calc(76px + 1.5rem);
        width: 100%;
        max-width: 100vw;
        overflow: hidden;
    }
    
    /* Home hero mobile stacking - smaller screens */
    .hero.hero-home {
        padding-top: 90px;
    }
    
    .hero.hero-home > .container:first-of-type {
        padding: 1rem 20px 0.75rem;
    }
    
    .hero.hero-home .hero-image {
        max-height: 220px;
    }
    
    .hero.hero-home .hero-text-container {
        padding: 0.75rem 20px;
    }
    
    .hero.hero-home .hero-content {
        padding: 0;
    }
    
    .hero.hero-home .hero-content h1 {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .hero.hero-home .hero-text-container .lead {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .hero.hero-home .hero-text-container .mt-4 {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .hero-inner {
        padding-top: calc(76px + 1.5rem);
    }
    
    .hero-image {
        object-fit: contain;
        object-position: center;
        width: 100%;
        max-width: 100%;
        left: 0;
        right: 0;
    }
    
    .hero-content {
        padding-left: 1rem;
    }
    
    .hero h1 {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    .hero .lead {
        font-size: 1rem;
    }
    
    .hero .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 0.85rem;
    }
    
    .hero .btn {
        margin-right: 0.5rem;
        margin-bottom: 0.5rem;
    }
}

/* ----- Animations ----- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Scanline effect for extra tactical feel */
@keyframes scanline {
    0% { top: -100%; }
    100% { top: 100%; }
}

.hero .scanline {
    position: absolute;
    top: -100%;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(180deg, transparent, rgba(0, 212, 255, 0.03), transparent);
    animation: scanline 8s linear infinite;
    pointer-events: none;
}

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

::-moz-selection {
    background: var(--accent-primary);
    color: var(--bg-darkest);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-hover);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-dim);
}

/* R2R Mobility Page */
.r2r-factory-section {
    padding-top: 0;
}

/* ----- Contact Modal ----- */
.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-medium);
    border-radius: 8px;
    box-shadow: var(--shadow-lg), 0 0 60px rgba(0, 0, 0, 0.5);
}

.modal-header {
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.modal-logo {
    height: 32px;
    width: auto;
}

.modal-title {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.modal-body {
    padding: 1.5rem;
}

.modal-intro {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.contact-form .form-control {
    background: var(--bg-medium);
    border: 1px solid var(--border-medium);
    color: var(--text-primary);
    padding: 0.875rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.contact-form .form-control::placeholder {
    color: var(--text-dim);
}

.contact-form .form-control:focus {
    background: var(--bg-dark);
    border-color: var(--accent-primary);
    color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
    outline: none;
}

.contact-form textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn-primary {
    margin-top: 0.5rem;
    padding: 1rem 1.5rem;
    font-size: 0.9rem;
}

.modal .btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.modal .btn-close-white:hover {
    opacity: 1;
}

.shoresey {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}