/* --- Hero Section with Advanced Tech-Inspired Background --- */
.hero-section {
    position: relative;
    /* Patriotic USA deep navy blue base */
    background-color: #041e42;
    background-image:
        linear-gradient(135deg, #041e42 0%, #0a3161 100%);
    background-size: cover;
    background-position: center;
    min-height: 500px;
    padding-top: 6rem;
    padding-bottom: 6rem;
    color: #fff;
    box-shadow: 0 4px 30px 0 rgba(0, 0, 0, 0.25);
    z-index: 1;
    border-bottom: 1px solid rgba(187, 19, 26, 0.3);
}

/* Add a subtle star pattern to the hero section background */
@keyframes twinkle {
    0% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.4;
    }
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        /* Patriotic grid pattern with red and blue accents */
        linear-gradient(to right, rgba(187, 19, 26, 0.08) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.09) 1px, transparent 1px),
        /* Add subtle stars pattern with radial gradients */
        radial-gradient(1px 1px at 50px 25px, rgba(255, 255, 255, 0.7) 50%, transparent 100%),
        radial-gradient(1px 1px at 100px 150px, rgba(255, 255, 255, 0.6) 50%, transparent 100%),
        radial-gradient(1px 1px at 200px 75px, rgba(255, 255, 255, 0.7) 50%, transparent 100%),
        radial-gradient(2px 2px at 300px 275px, rgba(255, 255, 255, 0.6) 50%, transparent 100%),
        radial-gradient(2px 2px at 400px 175px, rgba(255, 255, 255, 0.65) 50%, transparent 100%),
        radial-gradient(1px 1px at 500px 125px, rgba(255, 255, 255, 0.7) 50%, transparent 100%);
    background-size:
        40px 40px,
        /* grid pattern */
        40px 40px,
        /* grid pattern */
        600px 300px;
    /* stars pattern */
    z-index: 2;
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Enhanced patriotic overlay with red, white, and blue accents */
    background:
        /* Dark blue vignette for depth */
        radial-gradient(ellipse at center, transparent 0%, rgba(0, 10, 60, 0.5) 100%),
        /* Red accent from top left */
        linear-gradient(135deg, rgba(187, 19, 26, 0.15) 0%, transparent 40%),
        /* White accent from top right */
        linear-gradient(225deg, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
        /* Blue accent from bottom */
        linear-gradient(0deg, rgba(10, 49, 97, 0.2) 0%, transparent 40%);
    pointer-events: none;
    z-index: 3;
}

.hero-section .container {
    position: relative;
    z-index: 3;
    background: linear-gradient(145deg, rgba(10, 49, 97, 0.4), rgba(10, 49, 97, 0.2));
    /* Patriotic blue gradient for better dimension and readability */
    border-radius: 12px;
    padding: 2.5rem;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(187, 19, 26, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    border: none;
    /* Removed border in favor of box-shadow for better effect */
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 3.4rem;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
    margin-bottom: 1rem;
    line-height: 1.15;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hero-title-blue {
    color: #0a3161;
    /* American flag navy blue */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7), 0 0 10px rgba(255, 255, 255, 0.4);
    position: relative;
}

.hero-title-red {
    color: #bb131a;
    /* American flag red */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7), 0 0 10px rgba(255, 255, 255, 0.4);
    position: relative;
}

.hero-quote {
    font-size: 1.28rem;
    font-style: italic;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
    margin-bottom: 0.7rem;
    opacity: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.quote-author {
    font-size: 1.05rem;
    color: #f0f0f0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
    font-weight: 600;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hero-subtext {
    font-size: 1.22rem;
    color: #ffffff;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Enhanced readability improvements */
    font-weight: 400;
    /* Slightly lighter weight for better clarity */
    color: rgba(255, 255, 255, 0.95);
    /* Very slightly transparent white for better blend with background */
    animation: subtle-glow 4s ease-in-out infinite alternate;
}

@keyframes subtle-glow {
    0% {
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
    }

    33% {
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9), 0 0 20px rgba(10, 49, 97, 0.3);
    }

    66% {
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9), 0 0 20px rgba(187, 19, 26, 0.3);
    }

    100% {
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
    }
}


/* --- StrataFederal Navbar Styles --- */
.strata-navbar {
    background: #0b1533;
    min-height: 72px;
    border: none;
    box-shadow: none;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
    display: flex;
    align-items: center;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.13);
    /* very light white divider */
}

.strata-logo {
    color: #fff;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 3.2rem;
    width: 3.2rem;
}

.strata-logo i {
    color: #fff;
    font-size: 3.2rem;
    filter: drop-shadow(0 4px 12px rgba(10, 22, 51, 0.22));
    transition: transform 0.2s cubic-bezier(.4, 2, .6, 1), color 0.2s;
    display: block;
}

.strata-logo i:hover {
    color: #e63946;
    transform: scale(1.08) rotate(-4deg);
}

/* SVG shield logo styling for professional alignment */
.strata-logo svg {
    width: 3.2rem;
    height: 3.2rem;
    color: #fff;
    filter: drop-shadow(0 4px 12px rgba(10, 22, 51, 0.22));
    transition: color 0.2s, transform 0.2s cubic-bezier(.4, 2, .6, 1);
    display: block;
}

.strata-logo:hover svg {
    color: #e63946;
    transform: scale(1.08) rotate(-4deg);
}

.strata-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: #fff;
    font-weight: 900;
    letter-spacing: 0.5px;
    margin-left: 0;
    line-height: 1.1;
}

.strata-subtitle {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 0.98rem;
    color: #e3e6ee;
    font-weight: 500;
    margin-left: 0;
    margin-top: -2px;
    opacity: 0.95;
    letter-spacing: 0.1px;
    line-height: 1.1;
}

.strata-link {
    color: #fff !important;
    font-weight: 700;
    margin: 0 1.3rem;
    font-size: 1.13rem;
    transition: color 0.2s;
    letter-spacing: 0.2px;
    position: relative;
}

.strata-link:hover,
.strata-link.active {
    color: #fff !important;
    text-shadow: 0 0 8px #fff, 0 0 2px #fff;
}

.strata-secure-btn {
    background: linear-gradient(90deg, #b71c2b 0%, #e63946 100%);
    color: #fff;
    border-radius: 16px;
    font-weight: 700;
    padding: 0.5rem 1.5rem;
    border: none;
    font-size: 1.08rem;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 12px rgba(230, 57, 70, 0.18);
    transition: background 0.2s, box-shadow 0.2s;
}

.strata-secure-btn:hover {
    background: linear-gradient(90deg, #e63946 0%, #b71c2b 100%);
    color: #fff;
    box-shadow: 0 4px 24px rgba(230, 57, 70, 0.25);
}

/* --- Enhanced Navbar Styles --- */
.custom-navbar {
    background: #041e42;
    box-shadow: 0 4px 24px rgba(10, 22, 51, 0.18);
    border-bottom: 3px solid #bb131a;
    min-height: 72px;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    z-index: 1050;
}

.navbar-brand {
    padding-top: 0.5rem;
    padding-bottom: 0.25rem;
}

.brand-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #fff;
    letter-spacing: 0.5px;
    font-weight: 900;
    line-height: 1.1;
}

.brand-subtitle {
    font-size: 0.98rem;
    color: #e3e6ee;
    font-weight: 400;
    margin-left: 0.1rem;
    margin-top: -2px;
    opacity: 0.85;
    font-family: 'Inter', sans-serif;
}

.ghost-logo i {
    color: #fff;
    filter: drop-shadow(0 2px 6px rgba(10, 22, 51, 0.25));
    margin-right: 2px;
}

.navbar-nav .nav-link {
    color: #fff !important;
    font-weight: 500;
    margin: 0 1.1rem;
    font-size: 1.08rem;
    transition: color 0.2s;
    letter-spacing: 0.2px;
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #e63946 !important;
    text-decoration: none;
}

.navbar-nav .nav-link::after {
    content: '';
    display: block;
    margin: 0 auto;
    width: 0%;
    height: 2px;
    background: #e63946;
    transition: width 0.3s;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 60%;
}

.secure-btn {
    background: #bb131a;
    color: #fff;
    border-radius: 22px;
    font-weight: 700;
    padding: 0.55rem 1.5rem;
    box-shadow: 0 2px 16px rgba(187, 19, 26, 0.15);
    border: none;
    transition: background 0.2s, box-shadow 0.2s;
}

.secure-btn:hover {
    background: #990000;
    color: #fff;
    box-shadow: 0 4px 24px rgba(187, 19, 26, 0.25);
}

/* --- Tech Background Animation --- */
@keyframes nodePulse {
    0% {
        opacity: 0.7;
        transform: scale(0.95);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0.7;
        transform: scale(0.95);
    }
}

/* Main styles */

body {
    background: #f8f9fa url('data:image/svg+xml;utf8,<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="1" cy="1" r="1" fill="%23e3e6ee"/></svg>') repeat;
    font-family: 'Inter', Arial, sans-serif;
}

.custom-navbar {
    background: #0a1633;
    box-shadow: 0 4px 24px rgba(10, 22, 51, 0.18);
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #e63946;
}

.ghost-logo i {
    color: #fff;
    filter: drop-shadow(0 2px 6px rgba(10, 22, 51, 0.25));
}

.navbar-brand {
    color: #fff !important;
    font-family: 'Merriweather', serif;
    font-size: 1.5rem;
}

.brand-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.7rem;
    color: #fff;
    letter-spacing: 0.5px;
    font-weight: 900;
}

.brand-subtitle {
    font-size: 1rem;
    color: #e3e6ee;
    font-weight: 400;
    margin-left: 0.5rem;
}

.navbar-nav .nav-link {
    color: #fff !important;
    font-weight: 500;
    margin: 0 0.75rem;
    font-size: 1.1rem;
    transition: color 0.2s;
}

.navbar-nav .nav-link:hover {
    color: #e63946 !important;
}

.secure-btn {
    background: #e63946;
    color: #fff;
    border-radius: 20px;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    box-shadow: 0 2px 8px rgba(230, 57, 70, 0.08);
    border: none;
    transition: background 0.2s;
}

.secure-btn:hover {
    background: #b71c2b;
    color: #fff;
}

.hero-section {
    background: linear-gradient(180deg, #0a1633 0%, #fff 100%);
    padding-top: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e3e6ee;
    box-shadow: 0 4px 24px rgba(10, 22, 51, 0.04);
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    letter-spacing: -1.5px;
}

.hero-title-blue {
    color: #0a1633;
}

.hero-title-red {
    color: #b71c2b;
}

.hero-quote {
    color: #e3e6ee;
    font-style: italic;
    font-size: 1.2rem;
}

.quote-author {
    color: #e3e6ee;
    font-size: 1rem;
}

/* This duplicate hero-subtext class is no longer needed as we've improved the main one */
/* .hero-subtext {
    color: #3a4256;
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto;
} */

/* Hero features styles - Tech Theme */
.hero-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.8rem;
    margin-top: 2rem;
}

.hero-feature-item {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(145deg, rgba(10, 49, 97, 0.3), rgba(10, 49, 97, 0.2));
    /* Patriotic navy blue gradient background */
    padding: 0.8rem 1.6rem;
    border-radius: 24px;
    font-weight: 700;
    font-size: 1.12rem;
    /* Slightly larger font for better readability */
    color: #fff;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(187, 19, 26, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transition: all 0.3s cubic-bezier(0.17, 0.67, 0.83, 0.67);
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hero-feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    opacity: 0.7;
}

.hero-feature-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(187, 19, 26, 0.7), transparent);
    opacity: 0.5;
}

.hero-feature-item:hover {
    background: rgba(187, 19, 26, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(187, 19, 26, 0.4);
}

.hero-feature-item i {
    margin-right: 0.7rem;
    color: #e3e6ee;
    font-size: 1.1rem;
    filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.4));
    transition: transform 0.3s ease, color 0.3s ease;
}

.hero-feature-item:hover i {
    color: #bb131a;
    transform: scale(1.15) rotate(8deg);
}

/* --- Features Section Styles --- */
.features-section {
    position: relative;
    background-color: #f8f9fa;
    background-image:
        linear-gradient(0deg, #f8f9fa 0%, #eaecf0 100%),
        url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg"><rect opacity="0.05" width="100" height="100" fill="%230a3161"/></svg>');
    padding: 5rem 0;
    border-top: 1px solid rgba(10, 49, 97, 0.1);
    border-bottom: 1px solid rgba(10, 49, 97, 0.1);
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    font-size: 2.5rem;
    color: #041e42;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #041e42, #bb131a);
    border-radius: 2px;
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 1.15rem;
    color: #555;
    max-width: 700px;
    margin: 1.5rem auto 0;
}

.feature-card {
    background-color: white;
    border-radius: 12px;
    padding: 2.5rem 1.8rem;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.05),
        0 1px 3px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #041e42, #bb131a);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.1),
        0 3px 10px rgba(0, 0, 0, 0.05);
}

.feature-icon-container {
    background: linear-gradient(145deg, #f0f0f0, #ffffff);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
    box-shadow:
        0 4px 15px rgba(10, 49, 97, 0.1),
        0 1px 3px rgba(10, 49, 97, 0.1);
}

.feature-icon-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: linear-gradient(45deg, #041e42, #bb131a, #041e42);
    z-index: -1;
    opacity: 0.7;
}

.feature-icon {
    font-size: 2rem;
    background: linear-gradient(45deg, #041e42, #0a3161);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.1));
}

.feature-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #041e42;
    margin-bottom: 1rem;
    position: relative;
}

.feature-text {
    color: #444;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    color: #555;
}

.feature-list li i {
    color: #bb131a;
    margin-right: 8px;
    font-size: 0.9rem;
}

/* --- Enhanced Card Styles --- */
.card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.05),
        0 2px 6px rgba(0, 0, 0, 0.03);
    margin-bottom: 20px;
}

/* Launch Instance Card Styling */
.launch-card {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border: 1px solid rgba(10, 49, 97, 0.05);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.launch-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #041e42, #bb131a);
}

.launch-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 15px 30px rgba(0, 0, 0, 0.1),
        0 4px 8px rgba(0, 0, 0, 0.05);
}

.launch-header {
    background: linear-gradient(145deg, #041e42, #0a3161) !important;
    border-bottom: none;
    padding: 1.25rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.launch-header::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1));
    transform: skewX(-15deg) translateX(50px);
}

.launch-header h5 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: 0.01em;
    margin: 0;
    display: flex;
    align-items: center;
}

.launch-header h5 i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.launch-body {
    padding: 1.75rem;
    background-color: white;
}

.launch-button {
    background: linear-gradient(145deg, #bb131a, #a01017);
    border: none;
    color: white;
    border-radius: 8px;
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 4px 12px rgba(187, 19, 26, 0.2),
        0 2px 4px rgba(0, 0, 0, 0.1);
}

.launch-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
}

.launch-button:hover {
    transform: translateY(-2px);
    box-shadow:
        0 6px 15px rgba(187, 19, 26, 0.25),
        0 3px 6px rgba(0, 0, 0, 0.15);
    background: linear-gradient(145deg, #c5161e, #a01017);
}

.launch-button:hover::before {
    left: 100%;
}

.launch-button i {
    margin-right: 8px;
    font-size: 0.9em;
}

/* Launch button ripple effect */
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.launch-button-ripple {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

.card-info-text {
    color: #555;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

/*
 * Tech-Inspired Background Design
 * -----------------------------
 * The hero section features a sophisticated tech-inspired pattern with:
 * - Dark blue-gray base (#0b1533) for professional appearance
 * - Strategic radial gradients for depth and visual interest
 * - Subtle grid lines resembling circuit patterns (60px grid)
 * - Animated pulse effect on circuit nodes suggesting data flow
 * - Color accents (blue #3b65c1 and red #e63946) for visual highlights
 * - Layered pseudo-elements for enhanced dimensionality
 */

/* Text clarity optimizations */
.hero-section h1,
.hero-section p,
.hero-section .hero-feature-item {
    letter-spacing: 0.02em;
    /* Adjusted for maximum text clarity */
    font-kerning: normal;
    text-rendering: optimizeLegibility;
}

/* Boost feature items contrast further */
.hero-feature-item strong {
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.02em;
}

/* Port information list styling */
.port-list li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
    font-size: 1.05rem;
}

.port-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.port-list i {
    width: 22px;
    margin-right: 10px;
    color: #0a3161;
    text-align: center;
}

.port-list strong {
    color: #041e42;
    margin-right: 5px;
}

/* Badge styling */
.badge {
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.4em 0.8em;
    border-radius: 20px;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.badge.bg-light {
    background: linear-gradient(145deg, #f8f9fa, #ffffff) !important;
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: #041e42 !important;
}

/* Enhanced table styles */
.table {
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

.table-header {
    background: linear-gradient(145deg, #041e42, #0a3161) !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: table-header-group !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: white !important;
}

.table-header th {
    color: white !important;
    font-weight: 600;
    padding: 1.2rem 1.25rem;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: none;
    position: relative;
    transition: background-color 0.2s ease;
    white-space: nowrap;
    display: table-cell;
    visibility: visible !important;
    opacity: 1 !important;
}

.table-header th:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.table-header th::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 5%;
    width: 90%;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
}

/* NEW FIXED TABLE HEADER STYLING */
.table-header th {
    position: relative;
    z-index: 2;
    color: white !important;
    font-weight: 600 !important;
    padding: 1.2rem 1.25rem !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    border: none !important;
    background-color: transparent !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Add span around table header text for better positioning */
.table-header-text {
    display: inline-block !important;
    vertical-align: middle !important;
    opacity: 1 !important;
    visibility: visible !important;
    color: white !important;
    position: static !important;
}

/* Add subtle red, white, blue accent to table headers */
.table-header th:nth-child(3n+1)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: rgba(187, 19, 26, 0.5);
    /* Red */
}

.table-header th:nth-child(3n+2)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.5);
    /* White */
}

.table-header th:nth-child(3n+3)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: rgba(10, 49, 97, 0.8);
    /* Blue */
}

.table td {
    padding: 1.2rem 1.25rem;
    vertical-align: middle;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.95rem;
}

/* Zebra striping for table rows */
.table tbody tr:nth-child(even) {
    background-color: rgba(10, 49, 97, 0.02);
}

.table tbody tr:hover {
    background-color: rgba(10, 49, 97, 0.05);
    transition: background-color 0.2s ease;
}

/* Status indicator styling with pulse animation */
.status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
    position: relative;
}

.status-indicator::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    z-index: 1;
    opacity: 0;
}

.status-running {
    background-color: #2ecc71;
}

.status-running::after {
    border: 2px solid rgba(46, 204, 113, 0.4);
    animation: pulse-green 2s infinite;
}

.status-starting {
    background-color: #f39c12;
}

.status-starting::after {
    border: 2px solid rgba(243, 156, 18, 0.4);
    animation: pulse-yellow 2s infinite;
}

.status-stopped,
.status-error {
    background-color: #e74c3c;
}

.status-stopped::after,
.status-error::after {
    border: 2px solid rgba(231, 76, 60, 0.4);
    animation: pulse-red 2s infinite;
}

@keyframes pulse-green {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    70% {
        transform: scale(1.5);
        opacity: 0;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes pulse-yellow {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    70% {
        transform: scale(1.5);
        opacity: 0;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes pulse-red {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    70% {
        transform: scale(1.5);
        opacity: 0;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.creation-running {
    color: #1e7f4c;
    background-color: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.2);
}

.creation-starting {
    color: #985f0d;
    background-color: rgba(243, 156, 18, 0.1);
    border: 1px solid rgba(243, 156, 18, 0.2);
}

.creation-stopped,
.creation-error {
    color: #a43025;
    background-color: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.2);
}

/* Port items styling */
.instance-ports {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.port-item {
    display: flex;
    align-items: center;
    font-family: 'Roboto Mono', monospace;
}

.port-item i {
    width: 16px;
    margin-right: 8px;
    color: #0a3161;
}

.port-label {
    color: #6c757d;
    font-size: 0.8rem;
    width: 50px;
}

.port-number {
    font-weight: 500;
    color: #041e42;
}

/* Instance action buttons */
.instance-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-start;
    align-items: center;
}

.action-btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
}

.action-btn i {
    margin-right: 4px;
    font-size: 0.8rem;
}

.action-btn-primary {
    color: #fff;
    background: linear-gradient(145deg, #041e42, #0a3161);
    border-color: #041e42;
}

.action-btn-primary:hover {
    background: linear-gradient(145deg, #0a3161, #041e42);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(10, 49, 97, 0.2);
}

.action-btn-secondary {
    color: #0a3161;
    background-color: rgba(10, 49, 97, 0.05);
    border-color: rgba(10, 49, 97, 0.1);
}

.action-btn-secondary:hover {
    background-color: rgba(10, 49, 97, 0.1);
    transform: translateY(-1px);
}

.action-btn-danger {
    color: #a43025;
    background-color: rgba(231, 76, 60, 0.05);
    border-color: rgba(231, 76, 60, 0.2);
}

.action-btn-danger:hover {
    background-color: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    transform: translateY(-1px);
}

/* Instance ID styling */
.instance-id {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9rem;
    font-weight: 500;
    color: #041e42;
    background-color: rgba(10, 49, 97, 0.05);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    letter-spacing: 0.02em;
}

/* Instance empty state styling */
.empty-state {
    padding: 3rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.empty-icon {
    font-size: 3.5rem;
    color: rgba(10, 49, 97, 0.15);
    margin-bottom: 1rem;
}

/* Pulse animation for empty state */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.pulse-animation {
    animation: pulse 2s ease-in-out infinite;
}

/* Enhanced Active Instance Table Styles */
#instancesList td {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #333;
    vertical-align: middle;
}

#instancesList td strong {
    color: #041e42;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.02em;
    font-family: 'Inter', Arial, sans-serif;
}

/* Additional styling for instance table */
#instancesList td:first-child strong {
    font-family: 'Roboto Mono', monospace;
    color: #0a3161;
    background-color: rgba(10, 49, 97, 0.05);
    padding: 0.35rem 0.7rem;
    border-radius: 6px;
    display: inline-block;
    letter-spacing: 0.03em;
    border: 1px solid rgba(10, 49, 97, 0.1);
}

/* Improved table spacing for better readability */
.table-header th {
    padding: 1.2rem 1.2rem;
}

#instancesList td {
    padding: 1.2rem;
}

/* Improve instance count badge */
#instanceCount {
    background: #ffffff !important;
    color: #041e42 !important;
    font-weight: 600;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    padding: 0.4rem 1rem;
    margin-left: 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
}

#instanceCount::before {
    content: '\f233';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 6px;
    color: #041e42;
}

/* Loading state for buttons */
.action-btn.loading {
    position: relative;
    pointer-events: none;
    color: transparent !important;
}

.action-btn.loading:after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    border: 3px solid transparent;
    border-top-color: white;
    border-radius: 50%;
    animation: button-loading-spinner 1s ease infinite;
}

@keyframes button-loading-spinner {
    from {
        transform: rotate(0turn);
    }

    to {
        transform: rotate(1turn);
    }
}

/* Instance Details Modal Styling */
.modal-content {
    border: none;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.details-section-title {
    color: #041e42;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(10, 49, 97, 0.1);
    padding-bottom: 0.5rem;
}

.metric-label {
    font-size: 0.85rem;
    color: #6c757d;
}

.metric-value {
    font-family: 'Roboto Mono', monospace;
    font-weight: 500;
    color: #041e42;
}

.progress {
    border-radius: 50px;
    background-color: rgba(10, 49, 97, 0.05);
    overflow: hidden;
}

.health-status-container {
    background: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(10, 49, 97, 0.05);
}

.health-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(10, 49, 97, 0.05);
}

.health-item:last-child {
    border-bottom: none;
}

.health-item-name {
    font-size: 0.9rem;
    color: #495057;
}

.health-item-status {
    font-size: 0.85rem;
    font-weight: 500;
}

.health-status-ok {
    color: #2ecc71;
}

.health-status-warning {
    color: #f39c12;
}

.health-status-error {
    color: #e74c3c;
}

/* Override close button in modal */
.modal-header .btn-close-white {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

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

/* Modal footer styling */
.modal-footer {
    border-top: 1px solid rgba(10, 49, 97, 0.05);
    padding: 1rem 1.5rem;
}

/* --- Responsive Styles --- */
@media (max-width: 767px) {
    .col-md-6+.col-md-6 {
        margin-top: 1.5rem;
    }

    .table-responsive {
        border-radius: 0;
    }

    .empty-state {
        padding: 1.5rem 1rem;
    }
}

/* Ensure table has horizontal scrolling but fits in viewport */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

/* Ensure the cards have consistent height on desktop */
@media (min-width: 768px) {
    .row .launch-card {
        height: calc(100% - 1.5rem);
    }
}

/* Table Header Icons */
.header-icon {
    margin-right: 8px;
    font-size: 0.9em;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
}

/* Add subtle animation for header icons */
@keyframes fadeIn {
    0% {
        opacity: 0.5;
        transform: translateY(-2px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-icon {
    margin-right: 8px !important;
    font-size: 0.9em !important;
    opacity: 1 !important;
    color: white !important;
    display: inline-block !important;
    vertical-align: middle !important;
    animation: none !important;
}

/* Each icon animates in sequence */
.table-header th:nth-child(1) .header-icon {
    animation-delay: 0.1s;
}

.table-header th:nth-child(2) .header-icon {
    animation-delay: 0.2s;
}

.table-header th:nth-child(3) .header-icon {
    animation-delay: 0.3s;
}

.table-header th:nth-child(4) .header-icon {
    animation-delay: 0.4s;
}

.table-header th:nth-child(5) .header-icon {
    animation-delay: 0.5s;
}

/* DIRECT CRITICAL FIX FOR HEADER VISIBILITY */
.table-header th,
.table-header th * {
    color: white !important;
    opacity: 1 !important;
    visibility: visible !important;
    text-shadow: 0 0 1px rgba(255, 255, 255, 0.5) !important;
    /* Add text shadow to increase visibility */
}

/* Completely disable animations */
.table-header th,
.table-header th *,
.header-icon,
.table-header-text {
    transition: none !important;
    animation: none !important;
    -webkit-animation: none !important;
    -moz-animation: none !important;
}

/* Clear any hover-only visibility and ensure consistent appearance */
.table-header th,
.table-header th:hover,
.table-header th:focus,
.table-header th:active,
.table-header th *,
.table-header th:hover *,
.table-header th:focus *,
.table-header th:active * {
    opacity: 1 !important;
    color: white !important;
    visibility: visible !important;
}