html,
body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    font-family: "Roboto", sans-serif;
    font-size: 1.15rem;
    line-height: 1.7;
}

/* NAVBAR */

.navbar {
    transition: all 0.3s ease;
    padding-top: 20px;
    padding-bottom: 20px;
}

/* NAV LINKS */

.navbar .nav-link {
    color: white;
    font-size: 1.05rem;
    font-weight: 500;
    position: relative;
    display: inline-flex;
    align-items: center;
    padding-bottom: 6px;
    transition:
            color 0.25s ease,
            transform 0.25s ease,
            opacity 0.25s ease;
}

/* UNDERLINE EFFECT */

.navbar .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: #ffffff;
    transition: width 0.3s ease;
}

/* HOVER */

.navbar .nav-link:hover {
    color: #ffffff !important;
    opacity: 0.85;
}

.navbar .nav-link:hover::after {
    width: 100%;
}

/* ACTIVE */

.navbar .nav-link.active {
    color: #ffffff !important;
}

.navbar .nav-link.active::after {
    width: 100%;
}

/* SCROLLED */

.navbar.scrolled {
    background-color: #ffffff !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.navbar.scrolled .nav-link {
    color: #222 !important;
}

.navbar.scrolled .nav-link::after {
    background: #123dbe;
}

.navbar.scrolled .nav-link:hover {
    color: #123dbe !important;
    opacity: 1;
}

.navbar.scrolled .nav-link.active {
    color: #123dbe
}

/* TOGGLER */

.navbar-toggler {
    border: none;
    box-shadow: none;
    padding: 0;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    width: 1.5em;
    height: 1.5em;
    filter: brightness(100);
}

.navbar.scrolled .navbar-toggler-icon {
    filter: brightness(0);
}

/* LOGO */

.navbar:not(.scrolled) .logo {
    filter: brightness(0) invert(1);
}

.logo {
    max-height: 65px;
    width: auto;
}

section {
    scroll-margin-top: 80px;
}

/* HERO */

.hero {
    height: 100vh;
    background:
            linear-gradient(120deg, rgba(32, 48, 96, .6), rgba(32, 48, 96, .9)),
            url('../img/background.jpg') center/cover;
    display: flex;
    align-items: center;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.35rem;
    opacity: 0.9;
}

/* SUB HERO */

.sub-hero {
    height: 300px;
    background:
            linear-gradient(120deg, rgba(32,48,96,.8), rgba(32,48,96,.95)),
            url('../img/background.jpg') center/cover;
}

/* SECTIONS */

.section {
    padding: 110px 0;
}

/* TYPOGRAPHY */

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 2rem;
}

h5 {
    font-size: 1.3rem;
}

/* CARDS */

.card,
.card-modern {
    border: none;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: 0.3s;
    padding: 2rem !important;
}

/* BUTTONS */

.btn {
    padding: 0.9rem 1.6rem;
    font-size: 1.05rem;
    border-radius: 12px;
}

/* PARTNER */

.partner-slider {
    display: flex;
    gap: 40px;
    overflow: hidden;
}

.partner-track {
    display: flex;
    gap: 40px;
    animation: scroll 20s linear infinite;
}

.partner-track img {
    height: 50px;
    opacity: 0.7;
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* FOOTER */

footer {
    background: rgb(32, 48, 96);
    color: #fff;
    padding: 40px 0;
}

footer a {
    text-decoration: none;
    color: rgba(255,255,255,0.72);
    transition:
            color 0.25s ease,
            opacity 0.25s ease;
}

footer a:hover {
    color: rgba(255,255,255,0.95);
}

/* MOBILE */

@media (max-width: 991px) {

    .navbar-collapse {
        background: white;
        padding: 0.75rem 1.25rem;
        border-radius: .5rem;
    }

    .navbar-collapse .nav-link {
        color: black !important;
    }

    .navbar-collapse .nav-link::after {
        background: #123dbe;
    }

    .navbar-collapse .nav-link:hover {
        color: #123dbe !important;
        opacity: 1;
    }
}

@media (max-width: 768px) {

    body {
        font-size: 1rem;
    }

    .hero h1 {
        font-size: 2.7rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.6rem;
    }

    .section {
        padding: 80px 0;
    }

    .logo {
        max-height: 50px;
    }
}