/* == VARS == */

:root,
[data-bs-theme=dark] {

    --app-color: #fff;
    --app-bg: #00112f;
    --app-featured: #00e3f8;
    --app-featured-primary: #149ee7;
    --app-featured-action: #0660dc;
    --app-featured-hover: #33e2ff;
    --app-featured-active: #00b8d9;
    --app-featured-bg: #093480;
    --app-featured-bg-secondary: #062b5c;
    --bs-body-bg: #000e32;
    --bs-border-color: #315a85;

    --bs-link-color-rgb: var(--bs-body-color-rgb);
    --bs-link-color: var(--bs-body-color);
    --bs-link-hover-color: var(--app-featured);
    --bs-link-hover-color-rgb: 0, 227, 248;
}

.btn-light {
    --bs-btn-color: var(--app-bg);
    --bs-btn-hover-color: var(--app-bg);
}

.btn-outline-light {
    --bs-btn-hover-color: var(--app-bg);
}

.input-group-text {
    --bs-tertiary-bg: var(--bs-border-color);
}


/* == SCROLL == */

html {
    scrollbar-width: thin;
    scrollbar-color: var(--app-featured-action) var(--app-featured-bg-secondary);
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--app-featured-bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--app-featured-action);
    border-radius: 10px;
    border: 2px solid var(--app-featured-bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--app-featured-hover);
}

::-webkit-scrollbar-thumb:active {
    background: var(--app-featured-active);
}


/* == OTHERS == */

.blur-16 {
    backdrop-filter: blur(16px);
}

nav.header-navbar {
    background-color: color-mix(in srgb, var(--app-bg) 80%, #000 5%);
}

.header-navbar a.navbar-brand img {
    max-width: 220px;
}

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

.featured-block {
    border: 1px solid rgb(from var(--app-featured-bg) r g b / 0.6) !important;
    background-color: rgb(from var(--app-featured-bg) r g b / 0.4) !important;
}

.featured-block-hover {
    transition:
        border-color 0.35s ease,
        background-color 0.35s ease;
}

.featured-block-hover:hover,
.featured-block-hover:active {
    border: 1px solid rgb(from var(--app-featured-bg) r g b / 0.7) !important;
    background-color: rgb(from var(--app-featured-bg) r g b / 0.7) !important;
}

.featured-card {
    border: 1px solid rgb(from var(--app-featured-bg) r g b / 0.4) !important;
    background-color: rgb(from var(--app-featured-bg) r g b / 0.2) !important;
    transition:
        border-color 0.35s ease,
        background-color 0.35s ease;
}

.featured-card:hover,
.featured-card:active {
    border: 1px solid rgb(from var(--app-featured-bg) r g b / 0.9) !important;
    background-color: rgb(from var(--app-featured-bg) r g b / 0.4) !important;
}

footer {
    background-color: rgb(from var(--app-featured-bg) r g b / 0.4) !important;
}

footer img.logo {
    max-width: 170px;
}

.footer-heading::after {
    content: '';
    display: block;
    width: 2rem;
    height: 2px;
    margin-top: .65rem;
    background-color: var(--app-featured);
}

.icon-34 {
    width: 34px !important;
    height: 34px !important;
    line-height: 0;
}

.featured-icon {
    width: 56px;
    height: 56px;
    line-height: 0;
    background-color: rgba(255, 255, 255, 0.05);
}

header h1 {
    text-shadow: 4px 4px 1px rgba(var(--app-bg), 0.3)
}

header h3, header p {
    text-shadow: 1px 1px 3px rgba(var(--app-bg), 0.6);
}

.header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/header-bg.jpg');
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    z-index: -1;
}

.page-header {
    border-bottom: var(--bs-border-width) var(--bs-border-style) color-mix(in srgb, var(--bs-border-color) 40%, transparent) !important;
}

.page-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/page-header-bg.jpg');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    z-index: -1;
}

.home-hero .header-bg {
    background-image:
        linear-gradient(90deg, rgba(0, 17, 47, 0.94) 0%, rgba(0, 17, 47, 0.78) 42%, rgba(0, 17, 47, 0.28) 100%),
        url('../images/header-bg.jpg');
}

.home-hero-content > .container {
    min-height: 34rem;
    display: flex;
    align-items: center;
}

.home-hero-description {
    max-width: 40rem;
}

.standards-logo {
    flex: 0 0 auto;
    object-fit: contain;
}

.home-card-image,
.home-feature-image,
.home-solution-image {
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.home-page .featured-block-hover,
.home-page .featured-card {
    overflow: hidden;
}

@media (max-width: 991.98px) {
    .home-hero .header-bg {
        background-position: center;
        background-image:
            linear-gradient(180deg, rgba(0, 17, 47, 0.96) 0%, rgba(0, 17, 47, 0.88) 55%, rgba(0, 17, 47, 0.72) 100%),
            url('../images/header-bg.jpg');
    }

    .home-hero-content > .container {
        min-height: auto;
    }

    .home-hero-title {
        max-width: 42rem;
    }
}

@media (max-width: 575.98px) {
    .home-hero-title {
        font-size: 2.5rem;
    }

    .home-hero-subtitle {
        font-size: 1.15rem;
    }

    .home-page section.my-5 {
        margin-top: 2.5rem !important;
        margin-bottom: 2.5rem !important;
    }

    .home-page .featured-block,
    .home-page .featured-block-hover,
    .home-page .featured-card {
        border-radius: 0.5rem !important;
    }
}
