/* Footer reference links */
.ref-links img {
    max-height: 35px;
}

/* Fix navbar toggler icon - restore Bootstrap default icon */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
}

/* Mobile responsive improvements */
@media (max-width: 991.98px) {
    /* Navbar toggler improvements */
    .navbar-toggler {
        border: 1px solid rgba(255, 255, 255, 0.5);
        padding: 0.5rem 0.75rem;
    }

    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
    }

    /* Mobile navigation menu with glass morphism effect */
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.18);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        border-radius: 1rem;
        margin-top: 1rem;
        border: 1px solid rgba(255, 255, 255, 0.25);
        box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.15);
        position: relative;
        z-index: 1000;
    }

    /* Add semi-transparent overlay to improve readability */
    .navbar-collapse::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
        border-radius: 1rem;
        pointer-events: none;
    }

    .navbar-nav {
        margin-bottom: 0;
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
        position: relative;
        z-index: 1;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        transition: all 0.3s ease;
        border-radius: 0.5rem;
        margin-bottom: 0.25rem;
        position: relative;
    }

    .navbar-nav .nav-link:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateX(5px);
    }

    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }

    /* Footer improvements */
    .ref-links {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .ref-links img {
        max-height: 30px;
        max-width: 100%;
        height: auto;
    }
}

/* Tablet responsive improvements */
@media (max-width: 767.98px) {
    /* Hero section text improvements */
    .page-header h1 {
        font-size: 2rem;
    }

    .page-header .lead {
        font-size: 1rem;
        padding-right: 0 !important;
    }

    .page-header .buttons .btn {
        margin-bottom: 0.5rem;
        width: 100%;
    }

    /* Logo size adjustment */
    .navbar-brand img {
        height: 35px !important;
    }
}

/* Small mobile improvements */
@media (max-width: 575.98px) {
    .page-header h1 {
        font-size: 1.5rem;
    }

    .page-header .min-vh-100 {
        min-height: 100vh !important;
        padding-top: 80px;
    }

    .navbar-brand img {
        height: 30px !important;
    }

    .ref-links img {
        max-height: 25px;
    }
}