/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    z-index: 9999;
    transition: opacity 0.45s ease, visibility 0.45s ease;
}
.preloader-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.preloader-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
}
.preloader-logo {
    width: 92px;
    height: 92px;
    object-fit: contain;
    filter: drop-shadow(0 14px 26px rgba(11, 61, 145, 0.16));
}

.loader {
    position: relative;
    display: flex;
}
.loader:before, .loader:after {
    content: '';
    width: 15px;
    height: 15px;
    display: inline-block;
    position: relative;
    margin: 0 5px;
    border-radius: 50%;
    color: var(--primary-color);
    background: currentColor;
    box-shadow: 50px 0, -50px 0;
    animation: left 1s infinite ease-in-out;
}
.loader:after {
    color: var(--secondary-color);
    animation: right 1.1s infinite ease-in-out;
}

@keyframes right {
    0%, 100% { transform: translateY(-10px) }
    50% { transform: translateY(10px) }
}

@keyframes left {
    0%, 100% { transform: translateY(10px) }
    50% { transform: translateY(-10px) }
}

/* Navbar */
#mainNavbar {
    transition: all var(--transition-speed) ease;
    box-shadow: 0 10px 30px rgba(11, 61, 145, 0.08);
    min-height: 86px;
}
.navbar-brand {
    gap: 14px;
    min-width: 245px;
    padding: 8px 0;
}
.navbar-brand img {
    transition: transform var(--transition-speed) ease;
}
.brand-logo {
    width: 66px;
    height: 66px;
    object-fit: contain;
    flex: 0 0 auto;
}
.brand-copy {
    line-height: 1.05;
}
.brand-title {
    color: var(--primary-color);
    font-size: clamp(1.65rem, 2.6vw, 2.25rem);
    font-weight: 800;
    margin: 0;
}
.brand-subtitle {
    color: #41516d;
    font-size: clamp(0.72rem, 1.1vw, 0.88rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    margin: 2px 0 0;
    text-transform: uppercase;
}
.navbar-brand:hover img {
    transform: scale(1.05);
}
.nav-link {
    color: #111 !important;
    font-weight: 600;
    position: relative;
    padding-bottom: 5px;
    margin: 0 5px;
    transition: color var(--transition-speed) ease;
}
.nav-link:hover {
    color: var(--primary-color) !important;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: all var(--transition-speed) ease;
    transform: translateX(-50%);
}
.nav-link:hover::after {
    width: 100%;
}
.nav-cta {
    border-radius: 999px;
    padding: 0.7rem 1.45rem;
    white-space: nowrap;
}
